@wix/auto_sdk_benefit-programs_programs 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/benefit-programs-v1-program-programs.types.d.ts +21 -9
- package/build/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +27 -15
- package/build/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-programs.types.d.ts +21 -9
- package/build/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-programs.universal.d.ts +27 -15
- package/build/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.d.ts +21 -9
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +27 -15
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.types.d.ts +21 -9
- package/build/internal/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.universal.d.ts +27 -15
- package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -35,7 +35,7 @@ export interface Program {
|
|
|
35
35
|
* Program status.
|
|
36
36
|
* @readonly
|
|
37
37
|
*/
|
|
38
|
-
status?:
|
|
38
|
+
status?: ProgramStatusWithLiterals;
|
|
39
39
|
/**
|
|
40
40
|
* Program beneficiary.
|
|
41
41
|
* @readonly
|
|
@@ -94,6 +94,8 @@ export declare enum ProgramStatus {
|
|
|
94
94
|
/** Program is being ended. This status exists for a short time during processing. */
|
|
95
95
|
ENDING = "ENDING"
|
|
96
96
|
}
|
|
97
|
+
/** @enumType */
|
|
98
|
+
export type ProgramStatusWithLiterals = ProgramStatus | 'UNDEFINED' | 'ACTIVE' | 'PAUSED' | 'ENDED' | 'PROVISIONING' | 'PAUSING' | 'RESUMING' | 'ENDING';
|
|
97
99
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
98
100
|
/**
|
|
99
101
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -139,6 +141,8 @@ export declare enum IdentityType {
|
|
|
139
141
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
140
142
|
WIX_USER = "WIX_USER"
|
|
141
143
|
}
|
|
144
|
+
/** @enumType */
|
|
145
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
142
146
|
export interface ExtendedFields {
|
|
143
147
|
/**
|
|
144
148
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -195,7 +199,7 @@ export interface ProvisionProgramRequest {
|
|
|
195
199
|
*
|
|
196
200
|
* Default: `ACTIVE`
|
|
197
201
|
*/
|
|
198
|
-
programStatus?:
|
|
202
|
+
programStatus?: ProvisionProgramRequestProgramStatusWithLiterals;
|
|
199
203
|
/**
|
|
200
204
|
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
201
205
|
* @minLength 1
|
|
@@ -246,6 +250,8 @@ export declare enum ProvisionProgramRequestProgramStatus {
|
|
|
246
250
|
/** Program is paused. */
|
|
247
251
|
PAUSED = "PAUSED"
|
|
248
252
|
}
|
|
253
|
+
/** @enumType */
|
|
254
|
+
export type ProvisionProgramRequestProgramStatusWithLiterals = ProvisionProgramRequestProgramStatus | 'ACTIVE' | 'PAUSED';
|
|
249
255
|
export interface ProvisionProgramResponse {
|
|
250
256
|
/**
|
|
251
257
|
* Job ID of the provisioning of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
@@ -298,9 +304,9 @@ export interface PauseProgramResponse {
|
|
|
298
304
|
}
|
|
299
305
|
export interface ProgramStatusTransitionNotAllowed {
|
|
300
306
|
/** Current status of the program */
|
|
301
|
-
currentStatus?:
|
|
307
|
+
currentStatus?: ProgramStatusWithLiterals;
|
|
302
308
|
/** Status to which the program is being transitioned */
|
|
303
|
-
requestedStatus?:
|
|
309
|
+
requestedStatus?: ProgramStatusWithLiterals;
|
|
304
310
|
}
|
|
305
311
|
export interface ResumeProgramRequest {
|
|
306
312
|
/**
|
|
@@ -339,9 +345,9 @@ export interface UpdateProgramStatusRequest {
|
|
|
339
345
|
/** Program revision */
|
|
340
346
|
programRevision?: string;
|
|
341
347
|
/** Status to update */
|
|
342
|
-
status?:
|
|
348
|
+
status?: ProgramStatusWithLiterals;
|
|
343
349
|
/** Status to update */
|
|
344
|
-
targetStatus?:
|
|
350
|
+
targetStatus?: ProgramStatusWithLiterals;
|
|
345
351
|
}
|
|
346
352
|
export interface UpdateProgramStatusResponse {
|
|
347
353
|
/** The updated Program */
|
|
@@ -364,7 +370,7 @@ export interface UpsertMigratedProgramRequest {
|
|
|
364
370
|
*/
|
|
365
371
|
memberId?: string;
|
|
366
372
|
/** Order status */
|
|
367
|
-
status?:
|
|
373
|
+
status?: OrderStatusWithLiterals;
|
|
368
374
|
/**
|
|
369
375
|
* Plan name
|
|
370
376
|
* @maxLength 64
|
|
@@ -377,6 +383,8 @@ export declare enum OrderStatus {
|
|
|
377
383
|
PAUSED = "PAUSED",
|
|
378
384
|
ENDED = "ENDED"
|
|
379
385
|
}
|
|
386
|
+
/** @enumType */
|
|
387
|
+
export type OrderStatusWithLiterals = OrderStatus | 'UNKNOWN' | 'ACTIVE' | 'PAUSED' | 'ENDED';
|
|
380
388
|
export interface UpsertMigratedProgramResponse {
|
|
381
389
|
/** Inserted or updated program */
|
|
382
390
|
program?: Program;
|
|
@@ -435,7 +443,7 @@ export interface Sorting {
|
|
|
435
443
|
*
|
|
436
444
|
* Default: `ASC`
|
|
437
445
|
*/
|
|
438
|
-
order?:
|
|
446
|
+
order?: SortOrderWithLiterals;
|
|
439
447
|
}
|
|
440
448
|
export declare enum SortOrder {
|
|
441
449
|
/** Ascending sort order. */
|
|
@@ -443,6 +451,8 @@ export declare enum SortOrder {
|
|
|
443
451
|
/** Descending sort order. */
|
|
444
452
|
DESC = "DESC"
|
|
445
453
|
}
|
|
454
|
+
/** @enumType */
|
|
455
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
446
456
|
export interface CursorPaging {
|
|
447
457
|
/**
|
|
448
458
|
* Maximum number of items to return.
|
|
@@ -608,7 +618,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
608
618
|
*/
|
|
609
619
|
appId?: string;
|
|
610
620
|
/** @readonly */
|
|
611
|
-
identityType?:
|
|
621
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
612
622
|
}
|
|
613
623
|
/** @oneof */
|
|
614
624
|
export interface IdentificationDataIdOneOf {
|
|
@@ -640,3 +650,5 @@ export declare enum WebhookIdentityType {
|
|
|
640
650
|
WIX_USER = "WIX_USER",
|
|
641
651
|
APP = "APP"
|
|
642
652
|
}
|
|
653
|
+
/** @enumType */
|
|
654
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-programs.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.types.ts"],"names":[],"mappings":";;;AA+EA,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf,4GAA4G;IAC5G,8CAA6B,CAAA;IAC7B,sFAAsF;IACtF,oCAAmB,CAAA;IACnB,+GAA+G;IAC/G,sCAAqB,CAAA;IACrB,qFAAqF;IACrF,kCAAiB,CAAA;AACnB,CAAC,EAjBW,aAAa,6BAAb,aAAa,QAiBxB;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-programs.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.types.ts"],"names":[],"mappings":";;;AA+EA,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf,4GAA4G;IAC5G,8CAA6B,CAAA;IAC7B,sFAAsF;IACtF,oCAAmB,CAAA;IACnB,+GAA+G;IAC/G,sCAAqB,CAAA;IACrB,qFAAqF;IACrF,kCAAiB,CAAA;AACnB,CAAC,EAjBW,aAAa,6BAAb,aAAa,QAiBxB;AAoDD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,4CAA4C;IAC5C,mCAAmB,CAAA;IACnB,4CAA4C;IAC5C,uDAAuC,CAAA;IACvC,+BAA+B;IAC/B,iCAAiB,CAAA;IACjB,iEAAiE;IACjE,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAyHD,IAAY,oCAKX;AALD,WAAY,oCAAoC;IAC9C,yBAAyB;IACzB,yDAAiB,CAAA;IACjB,yBAAyB;IACzB,yDAAiB,CAAA;AACnB,CAAC,EALW,oCAAoC,oDAApC,oCAAoC,QAK/C;AAmJD,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AA+ED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAmND,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -36,7 +36,7 @@ export interface Program {
|
|
|
36
36
|
* Program status.
|
|
37
37
|
* @readonly
|
|
38
38
|
*/
|
|
39
|
-
status?:
|
|
39
|
+
status?: ProgramStatusWithLiterals;
|
|
40
40
|
/**
|
|
41
41
|
* Program beneficiary.
|
|
42
42
|
* @readonly
|
|
@@ -95,6 +95,8 @@ export declare enum ProgramStatus {
|
|
|
95
95
|
/** Program is being ended. This status exists for a short time during processing. */
|
|
96
96
|
ENDING = "ENDING"
|
|
97
97
|
}
|
|
98
|
+
/** @enumType */
|
|
99
|
+
export type ProgramStatusWithLiterals = ProgramStatus | 'UNDEFINED' | 'ACTIVE' | 'PAUSED' | 'ENDED' | 'PROVISIONING' | 'PAUSING' | 'RESUMING' | 'ENDING';
|
|
98
100
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
99
101
|
/**
|
|
100
102
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -140,6 +142,8 @@ export declare enum IdentityType {
|
|
|
140
142
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
141
143
|
WIX_USER = "WIX_USER"
|
|
142
144
|
}
|
|
145
|
+
/** @enumType */
|
|
146
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
143
147
|
export interface ExtendedFields {
|
|
144
148
|
/**
|
|
145
149
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -196,7 +200,7 @@ export interface ProvisionProgramRequest {
|
|
|
196
200
|
*
|
|
197
201
|
* Default: `ACTIVE`
|
|
198
202
|
*/
|
|
199
|
-
programStatus?:
|
|
203
|
+
programStatus?: ProvisionProgramRequestProgramStatusWithLiterals;
|
|
200
204
|
/**
|
|
201
205
|
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
202
206
|
* @minLength 1
|
|
@@ -247,6 +251,8 @@ export declare enum ProvisionProgramRequestProgramStatus {
|
|
|
247
251
|
/** Program is paused. */
|
|
248
252
|
PAUSED = "PAUSED"
|
|
249
253
|
}
|
|
254
|
+
/** @enumType */
|
|
255
|
+
export type ProvisionProgramRequestProgramStatusWithLiterals = ProvisionProgramRequestProgramStatus | 'ACTIVE' | 'PAUSED';
|
|
250
256
|
export interface ProvisionProgramResponse {
|
|
251
257
|
/**
|
|
252
258
|
* Job ID of the provisioning of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
@@ -299,9 +305,9 @@ export interface PauseProgramResponse {
|
|
|
299
305
|
}
|
|
300
306
|
export interface ProgramStatusTransitionNotAllowed {
|
|
301
307
|
/** Current status of the program */
|
|
302
|
-
currentStatus?:
|
|
308
|
+
currentStatus?: ProgramStatusWithLiterals;
|
|
303
309
|
/** Status to which the program is being transitioned */
|
|
304
|
-
requestedStatus?:
|
|
310
|
+
requestedStatus?: ProgramStatusWithLiterals;
|
|
305
311
|
}
|
|
306
312
|
export interface ResumeProgramRequest {
|
|
307
313
|
/**
|
|
@@ -340,9 +346,9 @@ export interface UpdateProgramStatusRequest {
|
|
|
340
346
|
/** Program revision */
|
|
341
347
|
programRevision?: string;
|
|
342
348
|
/** Status to update */
|
|
343
|
-
status?:
|
|
349
|
+
status?: ProgramStatusWithLiterals;
|
|
344
350
|
/** Status to update */
|
|
345
|
-
targetStatus?:
|
|
351
|
+
targetStatus?: ProgramStatusWithLiterals;
|
|
346
352
|
}
|
|
347
353
|
export interface UpdateProgramStatusResponse {
|
|
348
354
|
/** The updated Program */
|
|
@@ -365,7 +371,7 @@ export interface UpsertMigratedProgramRequest {
|
|
|
365
371
|
*/
|
|
366
372
|
memberId?: string;
|
|
367
373
|
/** Order status */
|
|
368
|
-
status?:
|
|
374
|
+
status?: OrderStatusWithLiterals;
|
|
369
375
|
/**
|
|
370
376
|
* Plan name
|
|
371
377
|
* @maxLength 64
|
|
@@ -378,6 +384,8 @@ export declare enum OrderStatus {
|
|
|
378
384
|
PAUSED = "PAUSED",
|
|
379
385
|
ENDED = "ENDED"
|
|
380
386
|
}
|
|
387
|
+
/** @enumType */
|
|
388
|
+
export type OrderStatusWithLiterals = OrderStatus | 'UNKNOWN' | 'ACTIVE' | 'PAUSED' | 'ENDED';
|
|
381
389
|
export interface UpsertMigratedProgramResponse {
|
|
382
390
|
/** Inserted or updated program */
|
|
383
391
|
program?: Program;
|
|
@@ -436,7 +444,7 @@ export interface Sorting {
|
|
|
436
444
|
*
|
|
437
445
|
* Default: `ASC`
|
|
438
446
|
*/
|
|
439
|
-
order?:
|
|
447
|
+
order?: SortOrderWithLiterals;
|
|
440
448
|
}
|
|
441
449
|
export declare enum SortOrder {
|
|
442
450
|
/** Ascending sort order. */
|
|
@@ -444,6 +452,8 @@ export declare enum SortOrder {
|
|
|
444
452
|
/** Descending sort order. */
|
|
445
453
|
DESC = "DESC"
|
|
446
454
|
}
|
|
455
|
+
/** @enumType */
|
|
456
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
447
457
|
export interface CursorPaging {
|
|
448
458
|
/**
|
|
449
459
|
* Maximum number of items to return.
|
|
@@ -607,7 +617,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
607
617
|
*/
|
|
608
618
|
appId?: string;
|
|
609
619
|
/** @readonly */
|
|
610
|
-
identityType?:
|
|
620
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
611
621
|
}
|
|
612
622
|
/** @oneof */
|
|
613
623
|
export interface IdentificationDataIdOneOf {
|
|
@@ -639,6 +649,8 @@ export declare enum WebhookIdentityType {
|
|
|
639
649
|
WIX_USER = "WIX_USER",
|
|
640
650
|
APP = "APP"
|
|
641
651
|
}
|
|
652
|
+
/** @enumType */
|
|
653
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
642
654
|
type ProgramNonNullablePaths = `status` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `programDefinition._id`;
|
|
643
655
|
/**
|
|
644
656
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
@@ -670,7 +682,7 @@ export interface ProvisionProgramOptions {
|
|
|
670
682
|
*
|
|
671
683
|
* Default: `ACTIVE`
|
|
672
684
|
*/
|
|
673
|
-
programStatus?:
|
|
685
|
+
programStatus?: ProvisionProgramRequestProgramStatusWithLiterals;
|
|
674
686
|
/**
|
|
675
687
|
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
676
688
|
* @minLength 1
|
|
@@ -805,7 +817,7 @@ export interface UpdateProgram {
|
|
|
805
817
|
* Program status.
|
|
806
818
|
* @readonly
|
|
807
819
|
*/
|
|
808
|
-
status?:
|
|
820
|
+
status?: ProgramStatusWithLiterals;
|
|
809
821
|
/**
|
|
810
822
|
* Program beneficiary.
|
|
811
823
|
* @readonly
|
|
@@ -917,22 +929,22 @@ export interface ProgramsQueryBuilder {
|
|
|
917
929
|
* @param value - Value to compare against.
|
|
918
930
|
* @documentationMaturity preview
|
|
919
931
|
*/
|
|
920
|
-
ge: (propertyName: '_createdDate', value: any) => ProgramsQueryBuilder;
|
|
932
|
+
ge: (propertyName: '_id' | '_createdDate' | 'programDefinitionId' | 'namespace' | 'externalId' | 'programDefinition.id', value: any) => ProgramsQueryBuilder;
|
|
921
933
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
922
934
|
* @param value - Value to compare against.
|
|
923
935
|
* @documentationMaturity preview
|
|
924
936
|
*/
|
|
925
|
-
gt: (propertyName: '_createdDate', value: any) => ProgramsQueryBuilder;
|
|
937
|
+
gt: (propertyName: '_id' | '_createdDate' | 'programDefinitionId' | 'namespace' | 'externalId' | 'programDefinition.id', value: any) => ProgramsQueryBuilder;
|
|
926
938
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
927
939
|
* @param value - Value to compare against.
|
|
928
940
|
* @documentationMaturity preview
|
|
929
941
|
*/
|
|
930
|
-
le: (propertyName: '_createdDate', value: any) => ProgramsQueryBuilder;
|
|
942
|
+
le: (propertyName: '_id' | '_createdDate' | 'programDefinitionId' | 'namespace' | 'externalId' | 'programDefinition.id', value: any) => ProgramsQueryBuilder;
|
|
931
943
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
932
944
|
* @param value - Value to compare against.
|
|
933
945
|
* @documentationMaturity preview
|
|
934
946
|
*/
|
|
935
|
-
lt: (propertyName: '_createdDate', value: any) => ProgramsQueryBuilder;
|
|
947
|
+
lt: (propertyName: '_id' | '_createdDate' | 'programDefinitionId' | 'namespace' | 'externalId' | 'programDefinition.id', value: any) => ProgramsQueryBuilder;
|
|
936
948
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
937
949
|
* @param string - String to compare against. Case-insensitive.
|
|
938
950
|
* @documentationMaturity preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-programs.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,sHAAwG;AACxG,aAAa;AACb,sFAAkF;AAiFlF,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf,4GAA4G;IAC5G,8CAA6B,CAAA;IAC7B,sFAAsF;IACtF,oCAAmB,CAAA;IACnB,+GAA+G;IAC/G,sCAAqB,CAAA;IACrB,qFAAqF;IACrF,kCAAiB,CAAA;AACnB,CAAC,EAjBW,aAAa,6BAAb,aAAa,QAiBxB;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-programs.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,sHAAwG;AACxG,aAAa;AACb,sFAAkF;AAiFlF,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf,4GAA4G;IAC5G,8CAA6B,CAAA;IAC7B,sFAAsF;IACtF,oCAAmB,CAAA;IACnB,+GAA+G;IAC/G,sCAAqB,CAAA;IACrB,qFAAqF;IACrF,kCAAiB,CAAA;AACnB,CAAC,EAjBW,aAAa,6BAAb,aAAa,QAiBxB;AAoDD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,4CAA4C;IAC5C,mCAAmB,CAAA;IACnB,4CAA4C;IAC5C,uDAAuC,CAAA;IACvC,+BAA+B;IAC/B,iCAAiB,CAAA;IACjB,iEAAiE;IACjE,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAyHD,IAAY,oCAKX;AALD,WAAY,oCAAoC;IAC9C,yBAAyB;IACzB,yDAAiB,CAAA;IACjB,yBAAyB;IACzB,yDAAiB,CAAA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B,EAAE;gBACxB,SAAS,EAAE,MAAM;gBACjB,UAAU,EAAE,iBAAiB;aAC9B;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,WAAW,EAAE,SAAS,CAAC,CACzB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAnDD,gFAmDC"}
|
|
@@ -35,7 +35,7 @@ export interface Program {
|
|
|
35
35
|
* Program status.
|
|
36
36
|
* @readonly
|
|
37
37
|
*/
|
|
38
|
-
status?:
|
|
38
|
+
status?: ProgramStatusWithLiterals;
|
|
39
39
|
/**
|
|
40
40
|
* Program beneficiary.
|
|
41
41
|
* @readonly
|
|
@@ -94,6 +94,8 @@ export declare enum ProgramStatus {
|
|
|
94
94
|
/** Program is being ended. This status exists for a short time during processing. */
|
|
95
95
|
ENDING = "ENDING"
|
|
96
96
|
}
|
|
97
|
+
/** @enumType */
|
|
98
|
+
export type ProgramStatusWithLiterals = ProgramStatus | 'UNDEFINED' | 'ACTIVE' | 'PAUSED' | 'ENDED' | 'PROVISIONING' | 'PAUSING' | 'RESUMING' | 'ENDING';
|
|
97
99
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
98
100
|
/**
|
|
99
101
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -139,6 +141,8 @@ export declare enum IdentityType {
|
|
|
139
141
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
140
142
|
WIX_USER = "WIX_USER"
|
|
141
143
|
}
|
|
144
|
+
/** @enumType */
|
|
145
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
142
146
|
export interface ExtendedFields {
|
|
143
147
|
/**
|
|
144
148
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -195,7 +199,7 @@ export interface ProvisionProgramRequest {
|
|
|
195
199
|
*
|
|
196
200
|
* Default: `ACTIVE`
|
|
197
201
|
*/
|
|
198
|
-
programStatus?:
|
|
202
|
+
programStatus?: ProvisionProgramRequestProgramStatusWithLiterals;
|
|
199
203
|
/**
|
|
200
204
|
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
201
205
|
* @minLength 1
|
|
@@ -246,6 +250,8 @@ export declare enum ProvisionProgramRequestProgramStatus {
|
|
|
246
250
|
/** Program is paused. */
|
|
247
251
|
PAUSED = "PAUSED"
|
|
248
252
|
}
|
|
253
|
+
/** @enumType */
|
|
254
|
+
export type ProvisionProgramRequestProgramStatusWithLiterals = ProvisionProgramRequestProgramStatus | 'ACTIVE' | 'PAUSED';
|
|
249
255
|
export interface ProvisionProgramResponse {
|
|
250
256
|
/**
|
|
251
257
|
* Job ID of the provisioning of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
@@ -298,9 +304,9 @@ export interface PauseProgramResponse {
|
|
|
298
304
|
}
|
|
299
305
|
export interface ProgramStatusTransitionNotAllowed {
|
|
300
306
|
/** Current status of the program */
|
|
301
|
-
currentStatus?:
|
|
307
|
+
currentStatus?: ProgramStatusWithLiterals;
|
|
302
308
|
/** Status to which the program is being transitioned */
|
|
303
|
-
requestedStatus?:
|
|
309
|
+
requestedStatus?: ProgramStatusWithLiterals;
|
|
304
310
|
}
|
|
305
311
|
export interface ResumeProgramRequest {
|
|
306
312
|
/**
|
|
@@ -339,9 +345,9 @@ export interface UpdateProgramStatusRequest {
|
|
|
339
345
|
/** Program revision */
|
|
340
346
|
programRevision?: string;
|
|
341
347
|
/** Status to update */
|
|
342
|
-
status?:
|
|
348
|
+
status?: ProgramStatusWithLiterals;
|
|
343
349
|
/** Status to update */
|
|
344
|
-
targetStatus?:
|
|
350
|
+
targetStatus?: ProgramStatusWithLiterals;
|
|
345
351
|
}
|
|
346
352
|
export interface UpdateProgramStatusResponse {
|
|
347
353
|
/** The updated Program */
|
|
@@ -364,7 +370,7 @@ export interface UpsertMigratedProgramRequest {
|
|
|
364
370
|
*/
|
|
365
371
|
memberId?: string;
|
|
366
372
|
/** Order status */
|
|
367
|
-
status?:
|
|
373
|
+
status?: OrderStatusWithLiterals;
|
|
368
374
|
/**
|
|
369
375
|
* Plan name
|
|
370
376
|
* @maxLength 64
|
|
@@ -377,6 +383,8 @@ export declare enum OrderStatus {
|
|
|
377
383
|
PAUSED = "PAUSED",
|
|
378
384
|
ENDED = "ENDED"
|
|
379
385
|
}
|
|
386
|
+
/** @enumType */
|
|
387
|
+
export type OrderStatusWithLiterals = OrderStatus | 'UNKNOWN' | 'ACTIVE' | 'PAUSED' | 'ENDED';
|
|
380
388
|
export interface UpsertMigratedProgramResponse {
|
|
381
389
|
/** Inserted or updated program */
|
|
382
390
|
program?: Program;
|
|
@@ -435,7 +443,7 @@ export interface Sorting {
|
|
|
435
443
|
*
|
|
436
444
|
* Default: `ASC`
|
|
437
445
|
*/
|
|
438
|
-
order?:
|
|
446
|
+
order?: SortOrderWithLiterals;
|
|
439
447
|
}
|
|
440
448
|
export declare enum SortOrder {
|
|
441
449
|
/** Ascending sort order. */
|
|
@@ -443,6 +451,8 @@ export declare enum SortOrder {
|
|
|
443
451
|
/** Descending sort order. */
|
|
444
452
|
DESC = "DESC"
|
|
445
453
|
}
|
|
454
|
+
/** @enumType */
|
|
455
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
446
456
|
export interface CursorPaging {
|
|
447
457
|
/**
|
|
448
458
|
* Maximum number of items to return.
|
|
@@ -608,7 +618,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
608
618
|
*/
|
|
609
619
|
appId?: string;
|
|
610
620
|
/** @readonly */
|
|
611
|
-
identityType?:
|
|
621
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
612
622
|
}
|
|
613
623
|
/** @oneof */
|
|
614
624
|
export interface IdentificationDataIdOneOf {
|
|
@@ -640,3 +650,5 @@ export declare enum WebhookIdentityType {
|
|
|
640
650
|
WIX_USER = "WIX_USER",
|
|
641
651
|
APP = "APP"
|
|
642
652
|
}
|
|
653
|
+
/** @enumType */
|
|
654
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-programs.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.types.ts"],"names":[],"mappings":"AA+EA,MAAM,CAAN,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf,4GAA4G;IAC5G,8CAA6B,CAAA;IAC7B,sFAAsF;IACtF,oCAAmB,CAAA;IACnB,+GAA+G;IAC/G,sCAAqB,CAAA;IACrB,qFAAqF;IACrF,kCAAiB,CAAA;AACnB,CAAC,EAjBW,aAAa,KAAb,aAAa,QAiBxB;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-programs.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.types.ts"],"names":[],"mappings":"AA+EA,MAAM,CAAN,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf,4GAA4G;IAC5G,8CAA6B,CAAA;IAC7B,sFAAsF;IACtF,oCAAmB,CAAA;IACnB,+GAA+G;IAC/G,sCAAqB,CAAA;IACrB,qFAAqF;IACrF,kCAAiB,CAAA;AACnB,CAAC,EAjBW,aAAa,KAAb,aAAa,QAiBxB;AAoDD,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,4CAA4C;IAC5C,mCAAmB,CAAA;IACnB,4CAA4C;IAC5C,uDAAuC,CAAA;IACvC,+BAA+B;IAC/B,iCAAiB,CAAA;IACjB,iEAAiE;IACjE,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAyHD,MAAM,CAAN,IAAY,oCAKX;AALD,WAAY,oCAAoC;IAC9C,yBAAyB;IACzB,yDAAiB,CAAA;IACjB,yBAAyB;IACzB,yDAAiB,CAAA;AACnB,CAAC,EALW,oCAAoC,KAApC,oCAAoC,QAK/C;AAmJD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AA+ED,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAmND,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -36,7 +36,7 @@ export interface Program {
|
|
|
36
36
|
* Program status.
|
|
37
37
|
* @readonly
|
|
38
38
|
*/
|
|
39
|
-
status?:
|
|
39
|
+
status?: ProgramStatusWithLiterals;
|
|
40
40
|
/**
|
|
41
41
|
* Program beneficiary.
|
|
42
42
|
* @readonly
|
|
@@ -95,6 +95,8 @@ export declare enum ProgramStatus {
|
|
|
95
95
|
/** Program is being ended. This status exists for a short time during processing. */
|
|
96
96
|
ENDING = "ENDING"
|
|
97
97
|
}
|
|
98
|
+
/** @enumType */
|
|
99
|
+
export type ProgramStatusWithLiterals = ProgramStatus | 'UNDEFINED' | 'ACTIVE' | 'PAUSED' | 'ENDED' | 'PROVISIONING' | 'PAUSING' | 'RESUMING' | 'ENDING';
|
|
98
100
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
99
101
|
/**
|
|
100
102
|
* ID of a site visitor that hasn't logged in to the site.
|
|
@@ -140,6 +142,8 @@ export declare enum IdentityType {
|
|
|
140
142
|
/** A Wix account holder, such as a site owner or contributor. */
|
|
141
143
|
WIX_USER = "WIX_USER"
|
|
142
144
|
}
|
|
145
|
+
/** @enumType */
|
|
146
|
+
export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER';
|
|
143
147
|
export interface ExtendedFields {
|
|
144
148
|
/**
|
|
145
149
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -196,7 +200,7 @@ export interface ProvisionProgramRequest {
|
|
|
196
200
|
*
|
|
197
201
|
* Default: `ACTIVE`
|
|
198
202
|
*/
|
|
199
|
-
programStatus?:
|
|
203
|
+
programStatus?: ProvisionProgramRequestProgramStatusWithLiterals;
|
|
200
204
|
/**
|
|
201
205
|
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
202
206
|
* @minLength 1
|
|
@@ -247,6 +251,8 @@ export declare enum ProvisionProgramRequestProgramStatus {
|
|
|
247
251
|
/** Program is paused. */
|
|
248
252
|
PAUSED = "PAUSED"
|
|
249
253
|
}
|
|
254
|
+
/** @enumType */
|
|
255
|
+
export type ProvisionProgramRequestProgramStatusWithLiterals = ProvisionProgramRequestProgramStatus | 'ACTIVE' | 'PAUSED';
|
|
250
256
|
export interface ProvisionProgramResponse {
|
|
251
257
|
/**
|
|
252
258
|
* Job ID of the provisioning of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
@@ -299,9 +305,9 @@ export interface PauseProgramResponse {
|
|
|
299
305
|
}
|
|
300
306
|
export interface ProgramStatusTransitionNotAllowed {
|
|
301
307
|
/** Current status of the program */
|
|
302
|
-
currentStatus?:
|
|
308
|
+
currentStatus?: ProgramStatusWithLiterals;
|
|
303
309
|
/** Status to which the program is being transitioned */
|
|
304
|
-
requestedStatus?:
|
|
310
|
+
requestedStatus?: ProgramStatusWithLiterals;
|
|
305
311
|
}
|
|
306
312
|
export interface ResumeProgramRequest {
|
|
307
313
|
/**
|
|
@@ -340,9 +346,9 @@ export interface UpdateProgramStatusRequest {
|
|
|
340
346
|
/** Program revision */
|
|
341
347
|
programRevision?: string;
|
|
342
348
|
/** Status to update */
|
|
343
|
-
status?:
|
|
349
|
+
status?: ProgramStatusWithLiterals;
|
|
344
350
|
/** Status to update */
|
|
345
|
-
targetStatus?:
|
|
351
|
+
targetStatus?: ProgramStatusWithLiterals;
|
|
346
352
|
}
|
|
347
353
|
export interface UpdateProgramStatusResponse {
|
|
348
354
|
/** The updated Program */
|
|
@@ -365,7 +371,7 @@ export interface UpsertMigratedProgramRequest {
|
|
|
365
371
|
*/
|
|
366
372
|
memberId?: string;
|
|
367
373
|
/** Order status */
|
|
368
|
-
status?:
|
|
374
|
+
status?: OrderStatusWithLiterals;
|
|
369
375
|
/**
|
|
370
376
|
* Plan name
|
|
371
377
|
* @maxLength 64
|
|
@@ -378,6 +384,8 @@ export declare enum OrderStatus {
|
|
|
378
384
|
PAUSED = "PAUSED",
|
|
379
385
|
ENDED = "ENDED"
|
|
380
386
|
}
|
|
387
|
+
/** @enumType */
|
|
388
|
+
export type OrderStatusWithLiterals = OrderStatus | 'UNKNOWN' | 'ACTIVE' | 'PAUSED' | 'ENDED';
|
|
381
389
|
export interface UpsertMigratedProgramResponse {
|
|
382
390
|
/** Inserted or updated program */
|
|
383
391
|
program?: Program;
|
|
@@ -436,7 +444,7 @@ export interface Sorting {
|
|
|
436
444
|
*
|
|
437
445
|
* Default: `ASC`
|
|
438
446
|
*/
|
|
439
|
-
order?:
|
|
447
|
+
order?: SortOrderWithLiterals;
|
|
440
448
|
}
|
|
441
449
|
export declare enum SortOrder {
|
|
442
450
|
/** Ascending sort order. */
|
|
@@ -444,6 +452,8 @@ export declare enum SortOrder {
|
|
|
444
452
|
/** Descending sort order. */
|
|
445
453
|
DESC = "DESC"
|
|
446
454
|
}
|
|
455
|
+
/** @enumType */
|
|
456
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
447
457
|
export interface CursorPaging {
|
|
448
458
|
/**
|
|
449
459
|
* Maximum number of items to return.
|
|
@@ -607,7 +617,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
607
617
|
*/
|
|
608
618
|
appId?: string;
|
|
609
619
|
/** @readonly */
|
|
610
|
-
identityType?:
|
|
620
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
611
621
|
}
|
|
612
622
|
/** @oneof */
|
|
613
623
|
export interface IdentificationDataIdOneOf {
|
|
@@ -639,6 +649,8 @@ export declare enum WebhookIdentityType {
|
|
|
639
649
|
WIX_USER = "WIX_USER",
|
|
640
650
|
APP = "APP"
|
|
641
651
|
}
|
|
652
|
+
/** @enumType */
|
|
653
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
642
654
|
type ProgramNonNullablePaths = `status` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `programDefinition._id`;
|
|
643
655
|
/**
|
|
644
656
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
@@ -670,7 +682,7 @@ export interface ProvisionProgramOptions {
|
|
|
670
682
|
*
|
|
671
683
|
* Default: `ACTIVE`
|
|
672
684
|
*/
|
|
673
|
-
programStatus?:
|
|
685
|
+
programStatus?: ProvisionProgramRequestProgramStatusWithLiterals;
|
|
674
686
|
/**
|
|
675
687
|
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
676
688
|
* @minLength 1
|
|
@@ -805,7 +817,7 @@ export interface UpdateProgram {
|
|
|
805
817
|
* Program status.
|
|
806
818
|
* @readonly
|
|
807
819
|
*/
|
|
808
|
-
status?:
|
|
820
|
+
status?: ProgramStatusWithLiterals;
|
|
809
821
|
/**
|
|
810
822
|
* Program beneficiary.
|
|
811
823
|
* @readonly
|
|
@@ -917,22 +929,22 @@ export interface ProgramsQueryBuilder {
|
|
|
917
929
|
* @param value - Value to compare against.
|
|
918
930
|
* @documentationMaturity preview
|
|
919
931
|
*/
|
|
920
|
-
ge: (propertyName: '_createdDate', value: any) => ProgramsQueryBuilder;
|
|
932
|
+
ge: (propertyName: '_id' | '_createdDate' | 'programDefinitionId' | 'namespace' | 'externalId' | 'programDefinition.id', value: any) => ProgramsQueryBuilder;
|
|
921
933
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
922
934
|
* @param value - Value to compare against.
|
|
923
935
|
* @documentationMaturity preview
|
|
924
936
|
*/
|
|
925
|
-
gt: (propertyName: '_createdDate', value: any) => ProgramsQueryBuilder;
|
|
937
|
+
gt: (propertyName: '_id' | '_createdDate' | 'programDefinitionId' | 'namespace' | 'externalId' | 'programDefinition.id', value: any) => ProgramsQueryBuilder;
|
|
926
938
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
927
939
|
* @param value - Value to compare against.
|
|
928
940
|
* @documentationMaturity preview
|
|
929
941
|
*/
|
|
930
|
-
le: (propertyName: '_createdDate', value: any) => ProgramsQueryBuilder;
|
|
942
|
+
le: (propertyName: '_id' | '_createdDate' | 'programDefinitionId' | 'namespace' | 'externalId' | 'programDefinition.id', value: any) => ProgramsQueryBuilder;
|
|
931
943
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
932
944
|
* @param value - Value to compare against.
|
|
933
945
|
* @documentationMaturity preview
|
|
934
946
|
*/
|
|
935
|
-
lt: (propertyName: '_createdDate', value: any) => ProgramsQueryBuilder;
|
|
947
|
+
lt: (propertyName: '_id' | '_createdDate' | 'programDefinitionId' | 'namespace' | 'externalId' | 'programDefinition.id', value: any) => ProgramsQueryBuilder;
|
|
936
948
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
937
949
|
* @param string - String to compare against. Case-insensitive.
|
|
938
950
|
* @documentationMaturity preview
|