@@ -3,7 +3,7 @@ import type {
3
3
RecordID ,
4
4
Revision ,
5
5
Properties ,
6
- Lang ,
6
+ AppLang ,
7
7
Layout ,
8
8
ViewForResponse ,
9
9
ViewForParameter ,
@@ -33,6 +33,7 @@ import type {
33
33
ReportForResponse ,
34
34
AppActionsForParameter ,
35
35
AppActionsForResponse ,
36
+ PluginLocale ,
36
37
} from "./types" ;
37
38
import { BaseClient } from "./BaseClient" ;
38
39
import type { AppPlugin } from "./types/app/plugin" ;
@@ -69,7 +70,7 @@ type SpaceResponseParameters = {
69
70
export class AppClient extends BaseClient {
70
71
public getFormFields < T extends Properties > ( params : {
71
72
app : AppID ;
72
- lang ?: Lang ;
73
+ lang ?: AppLang ;
73
74
preview ?: boolean ;
74
75
} ) : Promise < { properties : T ; revision : string } > {
75
76
const { preview, ...rest } = params ;
@@ -142,7 +143,7 @@ export class AppClient extends BaseClient {
142
143
143
144
public getViews ( params : {
144
145
app : AppID ;
145
- lang ?: Lang ;
146
+ lang ?: AppLang ;
146
147
preview ?: boolean ;
147
148
} ) : Promise < {
148
149
views : { [ viewName : string ] : ViewForResponse } ;
@@ -222,7 +223,7 @@ export class AppClient extends BaseClient {
222
223
223
224
public getAppSettings ( params : {
224
225
app : AppID ;
225
- lang ?: Lang ;
226
+ lang ?: AppLang ;
226
227
preview ?: boolean ;
227
228
} ) : Promise < {
228
229
name : string ;
@@ -293,7 +294,7 @@ export class AppClient extends BaseClient {
293
294
294
295
public getProcessManagement ( params : {
295
296
app : AppID ;
296
- lang ?: Lang ;
297
+ lang ?: AppLang ;
297
298
preview ?: boolean ;
298
299
} ) : Promise < {
299
300
enable : boolean ;
@@ -414,7 +415,7 @@ export class AppClient extends BaseClient {
414
415
415
416
public getRecordAcl ( params : {
416
417
app : AppID ;
417
- lang ?: Lang ;
418
+ lang ?: AppLang ;
418
419
preview ?: boolean ;
419
420
} ) : Promise < { rights : RecordRightForResponse [ ] ; revision : string } > {
420
421
const { preview, ...rest } = params ;
@@ -500,7 +501,7 @@ export class AppClient extends BaseClient {
500
501
501
502
public getPerRecordNotifications ( params : {
502
503
app : AppID ;
503
- lang ?: Lang ;
504
+ lang ?: AppLang ;
504
505
preview ?: boolean ;
505
506
} ) : Promise < {
506
507
notifications : PerRecordNotificationForResponse [ ] ;
@@ -528,7 +529,7 @@ export class AppClient extends BaseClient {
528
529
529
530
public getReminderNotifications ( params : {
530
531
app : AppID ;
531
- lang ?: Lang ;
532
+ lang ?: AppLang ;
532
533
preview ?: boolean ;
533
534
} ) : Promise < {
534
535
notifications : ReminderNotificationForResponse [ ] ;
@@ -558,7 +559,7 @@ export class AppClient extends BaseClient {
558
559
559
560
public getReports ( params : {
560
561
app : AppID ;
561
- lang ?: Lang ;
562
+ lang ?: AppLang ;
562
563
preview ?: boolean ;
563
564
} ) : Promise < {
564
565
reports : { [ reportName : string ] : ReportForResponse } ;
@@ -589,7 +590,7 @@ export class AppClient extends BaseClient {
589
590
590
591
public getAppActions ( params : {
591
592
app : AppID ;
592
- lang ?: Lang ;
593
+ lang ?: AppLang ;
593
594
preview ?: boolean ;
594
595
} ) : Promise < {
595
596
actions : AppActionsForResponse ;
@@ -620,7 +621,7 @@ export class AppClient extends BaseClient {
620
621
621
622
public getPlugins ( params : {
622
623
app : AppID ;
623
- lang ?: Exclude < Lang , "default" | "user" > ;
624
+ lang ?: PluginLocale ;
624
625
preview ?: boolean ;
625
626
} ) : Promise < {
626
627
plugins : AppPlugin [ ] ;
0 commit comments