@wix/auto_sdk_benefit-programs_programs 1.0.0 → 1.0.1

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.
Files changed (21) hide show
  1. package/build/cjs/src/benefit-programs-v1-program-programs.types.d.ts +189 -42
  2. package/build/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  3. package/build/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +214 -43
  4. package/build/cjs/src/benefit-programs-v1-program-programs.universal.js +6 -0
  5. package/build/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  6. package/build/es/src/benefit-programs-v1-program-programs.types.d.ts +189 -42
  7. package/build/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  8. package/build/es/src/benefit-programs-v1-program-programs.universal.d.ts +214 -43
  9. package/build/es/src/benefit-programs-v1-program-programs.universal.js +6 -0
  10. package/build/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  11. package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.d.ts +189 -42
  12. package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  13. package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +214 -43
  14. package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js +6 -0
  15. package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  16. package/build/internal/es/src/benefit-programs-v1-program-programs.types.d.ts +189 -42
  17. package/build/internal/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  18. package/build/internal/es/src/benefit-programs-v1-program-programs.universal.d.ts +214 -43
  19. package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js +6 -0
  20. package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  21. package/package.json +2 -2
@@ -1,7 +1,9 @@
1
1
  export interface Program {
2
2
  /**
3
3
  * Program ID.
4
+ * @format GUID
4
5
  * @readonly
6
+ * @immutable
5
7
  */
6
8
  id?: string | null;
7
9
  /**
@@ -24,7 +26,9 @@ export interface Program {
24
26
  updatedDate?: Date | null;
25
27
  /**
26
28
  * ID of program definition that provisioned this benefit pool.
29
+ * @format GUID
27
30
  * @readonly
31
+ * @immutable
28
32
  */
29
33
  programDefinitionId?: string | null;
30
34
  /**
@@ -35,15 +39,22 @@ export interface Program {
35
39
  /**
36
40
  * Identity of the individual that enrolled in the program, granting access to its associated benefits.
37
41
  * @readonly
42
+ * @immutable
38
43
  */
39
44
  beneficiary?: CommonIdentificationData;
40
45
  /**
41
46
  * Program name.
42
47
  *
43
48
  * Suggest setting the same value that was already specified in the program definition's `displayName`.
49
+ * @maxLength 64
44
50
  */
45
51
  displayName?: string | null;
46
- /** External system that is the source of the program creation. For example, `wix-pricing-plans`, `wix-loyalty`. */
52
+ /**
53
+ * External system that is the source of the program creation. For example, `wix-pricing-plans`, `wix-loyalty`.
54
+ * @minLength 1
55
+ * @maxLength 50
56
+ * @immutable
57
+ */
47
58
  namespace?: string | null;
48
59
  /**
49
60
  * Custom field data for the program object.
@@ -55,6 +66,8 @@ export interface Program {
55
66
  * External program ID.
56
67
  *
57
68
  * Must be unique to every app's namespace.
69
+ * @format GUID
70
+ * @immutable
58
71
  */
59
72
  externalId?: string | null;
60
73
  /**
@@ -91,20 +104,38 @@ export declare enum ProgramStatus {
91
104
  ENDING = "ENDING"
92
105
  }
93
106
  export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
94
- /** ID of a site visitor that has not logged in to the site. */
107
+ /**
108
+ * ID of a site visitor that has not logged in to the site.
109
+ * @format GUID
110
+ */
95
111
  anonymousVisitorId?: string;
96
- /** ID of a site visitor that has logged in to the site. */
112
+ /**
113
+ * ID of a site visitor that has logged in to the site.
114
+ * @format GUID
115
+ */
97
116
  memberId?: string;
98
- /** ID of a Wix user (site owner, contributor, etc.). */
117
+ /**
118
+ * ID of a Wix user (site owner, contributor, etc.).
119
+ * @format GUID
120
+ */
99
121
  wixUserId?: string;
100
122
  }
101
123
  /** @oneof */
102
124
  export interface CommonIdentificationDataIdOneOf {
103
- /** ID of a site visitor that has not logged in to the site. */
125
+ /**
126
+ * ID of a site visitor that has not logged in to the site.
127
+ * @format GUID
128
+ */
104
129
  anonymousVisitorId?: string;
105
- /** ID of a site visitor that has logged in to the site. */
130
+ /**
131
+ * ID of a site visitor that has logged in to the site.
132
+ * @format GUID
133
+ */
106
134
  memberId?: string;
107
- /** ID of a Wix user (site owner, contributor, etc.). */
135
+ /**
136
+ * ID of a Wix user (site owner, contributor, etc.).
137
+ * @format GUID
138
+ */
108
139
  wixUserId?: string;
109
140
  }
110
141
  export declare enum IdentityType {
@@ -131,6 +162,7 @@ export interface ExtendedFields {
131
162
  export interface ProgramDefinitionInfo {
132
163
  /**
133
164
  * ID of the program definition that provisioned the program associated with this benefit pool.
165
+ * @format GUID
134
166
  * @readonly
135
167
  */
136
168
  id?: string;
@@ -138,6 +170,7 @@ export interface ProgramDefinitionInfo {
138
170
  * External ID of the program definition that provisioned this program.
139
171
  *
140
172
  * This identifies the source program definition in the external system.
173
+ * @format GUID
141
174
  * @readonly
142
175
  */
143
176
  externalId?: string | null;
@@ -188,32 +221,48 @@ export interface ProvisionProgramRequest {
188
221
  * Application sub-module that is the source of the program creation.
189
222
  *
190
223
  * Use the namespace that was designated to the program definition.
224
+ * @minLength 1
225
+ * @maxLength 50
191
226
  */
192
227
  namespace: string;
193
228
  /**
194
229
  * Program name.
195
230
  *
196
231
  * Suggest using the same value that was already specified in the program definition's `displayName`.
232
+ * @maxLength 64
197
233
  */
198
234
  displayName?: string | null;
199
235
  /**
200
236
  * External program ID.
201
237
  *
202
238
  * Must be unique to every app owner's namespace.
239
+ * @format GUID
203
240
  */
204
241
  externalProgramId: string;
205
242
  }
206
243
  export interface PoolDefinitionLookupId extends PoolDefinitionLookupIdIdOneOf {
207
- /** Pool definition ID. */
244
+ /**
245
+ * Pool definition ID.
246
+ * @format GUID
247
+ */
208
248
  poolDefinitionId?: string;
209
- /** Program definition ID. */
249
+ /**
250
+ * Program definition ID.
251
+ * @format GUID
252
+ */
210
253
  programDefinitionId?: string;
211
254
  }
212
255
  /** @oneof */
213
256
  export interface PoolDefinitionLookupIdIdOneOf {
214
- /** Pool definition ID. */
257
+ /**
258
+ * Pool definition ID.
259
+ * @format GUID
260
+ */
215
261
  poolDefinitionId?: string;
216
- /** Program definition ID. */
262
+ /**
263
+ * Program definition ID.
264
+ * @format GUID
265
+ */
217
266
  programDefinitionId?: string;
218
267
  }
219
268
  export declare enum ProvisionProgramRequestProgramStatus {
@@ -223,32 +272,53 @@ export declare enum ProvisionProgramRequestProgramStatus {
223
272
  PAUSED = "PAUSED"
224
273
  }
225
274
  export interface ProvisionProgramResponse {
226
- /** Job ID of the provisioned program. */
275
+ /**
276
+ * Job ID of the provisioned program.
277
+ * @format GUID
278
+ */
227
279
  jobId?: string;
228
280
  /** Provisioned program. */
229
281
  program?: Program;
230
282
  }
231
283
  export interface ProgramAlreadyExists {
232
- /** Key of a program that already exists */
284
+ /**
285
+ * Key of a program that already exists
286
+ * @format GUID
287
+ */
233
288
  externalProgramId?: string;
234
- /** Key of a program that already exists */
289
+ /**
290
+ * Key of a program that already exists
291
+ * @format GUID
292
+ */
235
293
  namespace?: string;
236
294
  }
237
295
  /** Updates the pool credit amount according to the configuration. */
238
296
  export interface RenewProgramRequest {
239
- /** ID of the program to renew. */
297
+ /**
298
+ * ID of the program to renew.
299
+ * @format GUID
300
+ */
240
301
  programId: string;
241
302
  }
242
303
  export interface RenewProgramResponse {
243
- /** Job ID of the renewed program. */
304
+ /**
305
+ * Job ID of the renewed program.
306
+ * @format GUID
307
+ */
244
308
  jobId?: string;
245
309
  }
246
310
  export interface PauseProgramRequest {
247
- /** ID of the program to pause. */
311
+ /**
312
+ * ID of the program to pause.
313
+ * @format GUID
314
+ */
248
315
  programId: string;
249
316
  }
250
317
  export interface PauseProgramResponse {
251
- /** Job ID of the paused program. */
318
+ /**
319
+ * Job ID of the paused program.
320
+ * @format GUID
321
+ */
252
322
  jobId?: string;
253
323
  }
254
324
  export interface ProgramStatusTransitionNotAllowed {
@@ -258,23 +328,38 @@ export interface ProgramStatusTransitionNotAllowed {
258
328
  requestedStatus?: ProgramStatus;
259
329
  }
260
330
  export interface ResumeProgramRequest {
261
- /** ID of program to resume. */
331
+ /**
332
+ * ID of program to resume.
333
+ * @format GUID
334
+ */
262
335
  programId: string;
263
336
  }
264
337
  export interface ResumeProgramResponse {
265
- /** Job ID of the resumed program. */
338
+ /**
339
+ * Job ID of the resumed program.
340
+ * @format GUID
341
+ */
266
342
  jobId?: string;
267
343
  }
268
344
  export interface EndProgramRequest {
269
- /** Package of pools */
345
+ /**
346
+ * Package of pools
347
+ * @format GUID
348
+ */
270
349
  programId: string;
271
350
  }
272
351
  export interface EndProgramResponse {
273
- /** Job ID of the discontinued program. */
352
+ /**
353
+ * Job ID of the discontinued program.
354
+ * @format GUID
355
+ */
274
356
  jobId?: string;
275
357
  }
276
358
  export interface UpdateProgramStatusRequest {
277
- /** Program to update */
359
+ /**
360
+ * Program to update
361
+ * @format GUID
362
+ */
278
363
  programId?: string;
279
364
  /** Program revision */
280
365
  programRevision?: string;
@@ -288,15 +373,27 @@ export interface UpdateProgramStatusResponse {
288
373
  program?: Program;
289
374
  }
290
375
  export interface UpsertMigratedProgramRequest {
291
- /** Order id */
376
+ /**
377
+ * Order id
378
+ * @format GUID
379
+ */
292
380
  orderId?: string;
293
- /** Plan id */
381
+ /**
382
+ * Plan id
383
+ * @format GUID
384
+ */
294
385
  planId?: string;
295
- /** Order member id */
386
+ /**
387
+ * Order member id
388
+ * @format GUID
389
+ */
296
390
  memberId?: string;
297
391
  /** Order status */
298
392
  status?: OrderStatus;
299
- /** Plan name */
393
+ /**
394
+ * Plan name
395
+ * @maxLength 64
396
+ */
300
397
  planName?: string;
301
398
  }
302
399
  export declare enum OrderStatus {
@@ -318,7 +415,10 @@ export interface UpdateProgramResponse {
318
415
  program?: Program;
319
416
  }
320
417
  export interface GetProgramRequest {
321
- /** ID of the program to retrieve. */
418
+ /**
419
+ * ID of the program to retrieve.
420
+ * @format GUID
421
+ */
322
422
  programId: string;
323
423
  }
324
424
  export interface GetProgramResponse {
@@ -344,6 +444,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
344
444
  /**
345
445
  * Sort object in the following format:
346
446
  * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
447
+ * @maxSize 5
347
448
  */
348
449
  sort?: Sorting[];
349
450
  }
@@ -353,7 +454,10 @@ export interface CursorQueryPagingMethodOneOf {
353
454
  cursorPaging?: CursorPaging;
354
455
  }
355
456
  export interface Sorting {
356
- /** Name of the field to sort by. */
457
+ /**
458
+ * Name of the field to sort by.
459
+ * @maxLength 512
460
+ */
357
461
  fieldName?: string;
358
462
  /** Sort order. */
359
463
  order?: SortOrder;
@@ -365,13 +469,17 @@ export declare enum SortOrder {
365
469
  DESC = "DESC"
366
470
  }
367
471
  export interface CursorPaging {
368
- /** Maximum number of items to return in the results. */
472
+ /**
473
+ * Maximum number of items to return in the results.
474
+ * @max 100
475
+ */
369
476
  limit?: number | null;
370
477
  /**
371
478
  * Pointer to the next or previous page in the list of results.
372
479
  *
373
480
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
374
481
  * Not relevant for the first request.
482
+ * @maxLength 16000
375
483
  */
376
484
  cursor?: string | null;
377
485
  }
@@ -395,9 +503,15 @@ export interface CursorPagingMetadata {
395
503
  hasNext?: boolean | null;
396
504
  }
397
505
  export interface Cursors {
398
- /** Cursor string pointing to the next page in the list of results. */
506
+ /**
507
+ * Cursor string pointing to the next page in the list of results.
508
+ * @maxLength 16000
509
+ */
399
510
  next?: string | null;
400
- /** Cursor pointing to the previous page in the list of results. */
511
+ /**
512
+ * Cursor pointing to the previous page in the list of results.
513
+ * @maxLength 16000
514
+ */
401
515
  prev?: string | null;
402
516
  }
403
517
  export interface GetProgramByExternalIdAndNamespaceRequest {
@@ -405,12 +519,15 @@ export interface GetProgramByExternalIdAndNamespaceRequest {
405
519
  * Application sub-module that is the source of the program creation.
406
520
  *
407
521
  * Use the namespace that was designated to the program definition.
522
+ * @minLength 1
523
+ * @maxLength 50
408
524
  */
409
525
  namespace: string;
410
526
  /**
411
527
  * External program ID.
412
528
  *
413
529
  * Must be unique to every app's namespace.
530
+ * @format GUID
414
531
  */
415
532
  externalId: string;
416
533
  }
@@ -491,9 +608,15 @@ export interface ActionEvent {
491
608
  bodyAsJson?: string;
492
609
  }
493
610
  export interface MessageEnvelope {
494
- /** App instance ID. */
611
+ /**
612
+ * App instance ID.
613
+ * @format GUID
614
+ */
495
615
  instanceId?: string | null;
496
- /** Event type. */
616
+ /**
617
+ * Event type.
618
+ * @maxLength 150
619
+ */
497
620
  eventType?: string;
498
621
  /** The identification type and identity data. */
499
622
  identity?: IdentificationData;
@@ -501,26 +624,50 @@ export interface MessageEnvelope {
501
624
  data?: string;
502
625
  }
503
626
  export interface IdentificationData extends IdentificationDataIdOneOf {
504
- /** ID of a site visitor that has not logged in to the site. */
627
+ /**
628
+ * ID of a site visitor that has not logged in to the site.
629
+ * @format GUID
630
+ */
505
631
  anonymousVisitorId?: string;
506
- /** ID of a site visitor that has logged in to the site. */
632
+ /**
633
+ * ID of a site visitor that has logged in to the site.
634
+ * @format GUID
635
+ */
507
636
  memberId?: string;
508
- /** ID of a Wix user (site owner, contributor, etc.). */
637
+ /**
638
+ * ID of a Wix user (site owner, contributor, etc.).
639
+ * @format GUID
640
+ */
509
641
  wixUserId?: string;
510
- /** ID of an app. */
642
+ /**
643
+ * ID of an app.
644
+ * @format GUID
645
+ */
511
646
  appId?: string;
512
647
  /** @readonly */
513
648
  identityType?: WebhookIdentityType;
514
649
  }
515
650
  /** @oneof */
516
651
  export interface IdentificationDataIdOneOf {
517
- /** ID of a site visitor that has not logged in to the site. */
652
+ /**
653
+ * ID of a site visitor that has not logged in to the site.
654
+ * @format GUID
655
+ */
518
656
  anonymousVisitorId?: string;
519
- /** ID of a site visitor that has logged in to the site. */
657
+ /**
658
+ * ID of a site visitor that has logged in to the site.
659
+ * @format GUID
660
+ */
520
661
  memberId?: string;
521
- /** ID of a Wix user (site owner, contributor, etc.). */
662
+ /**
663
+ * ID of a Wix user (site owner, contributor, etc.).
664
+ * @format GUID
665
+ */
522
666
  wixUserId?: string;
523
- /** ID of an app. */
667
+ /**
668
+ * ID of an app.
669
+ * @format GUID
670
+ */
524
671
  appId?: string;
525
672
  }
526
673
  export declare enum WebhookIdentityType {
@@ -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":";;;AAuEA,IAAY,aAqBX;AArBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,sBAAsB;IACtB,kCAAiB,CAAA;IACjB;;;;OAIG;IACH,gCAAe,CAAA;IACf,yHAAyH;IACzH,8CAA6B,CAAA;IAC7B,6DAA6D;IAC7D,oCAAmB,CAAA;IACnB,8DAA8D;IAC9D,sCAAqB,CAAA;IACrB,4DAA4D;IAC5D,kCAAiB,CAAA;AACnB,CAAC,EArBW,aAAa,6BAAb,aAAa,QAqBxB;AAsBD,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;AA+GD,IAAY,oCAKX;AALD,WAAY,oCAAoC;IAC9C,sBAAsB;IACtB,yDAAiB,CAAA;IACjB,sBAAsB;IACtB,yDAAiB,CAAA;AACnB,CAAC,EALW,oCAAoC,oDAApC,oCAAoC,QAK/C;AA6FD,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAgED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAiLD,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"}
1
+ {"version":3,"file":"benefit-programs-v1-program-programs.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.types.ts"],"names":[],"mappings":";;;AAoFA,IAAY,aAqBX;AArBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,sBAAsB;IACtB,kCAAiB,CAAA;IACjB,sBAAsB;IACtB,kCAAiB,CAAA;IACjB;;;;OAIG;IACH,gCAAe,CAAA;IACf,yHAAyH;IACzH,8CAA6B,CAAA;IAC7B,6DAA6D;IAC7D,oCAAmB,CAAA;IACnB,8DAA8D;IAC9D,sCAAqB,CAAA;IACrB,4DAA4D;IAC5D,kCAAiB,CAAA;AACnB,CAAC,EArBW,aAAa,6BAAb,aAAa,QAqBxB;AAwCD,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;AAiID,IAAY,oCAKX;AALD,WAAY,oCAAoC;IAC9C,sBAAsB;IACtB,yDAAiB,CAAA;IACjB,sBAAsB;IACtB,yDAAiB,CAAA;AACnB,CAAC,EALW,oCAAoC,oDAApC,oCAAoC,QAK/C;AA6ID,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAuED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA4ND,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"}