@wix/auto_sdk_benefit-programs_items 1.0.0 → 1.0.2

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 (41) hide show
  1. package/build/cjs/src/benefit-programs-v1-item-items.http.d.ts +6 -4
  2. package/build/cjs/src/benefit-programs-v1-item-items.http.js +6 -4
  3. package/build/cjs/src/benefit-programs-v1-item-items.http.js.map +1 -1
  4. package/build/cjs/src/benefit-programs-v1-item-items.public.d.ts +6 -4
  5. package/build/cjs/src/benefit-programs-v1-item-items.public.js.map +1 -1
  6. package/build/cjs/src/benefit-programs-v1-item-items.types.d.ts +205 -44
  7. package/build/cjs/src/benefit-programs-v1-item-items.types.js.map +1 -1
  8. package/build/cjs/src/benefit-programs-v1-item-items.universal.d.ts +282 -51
  9. package/build/cjs/src/benefit-programs-v1-item-items.universal.js +55 -4
  10. package/build/cjs/src/benefit-programs-v1-item-items.universal.js.map +1 -1
  11. package/build/es/src/benefit-programs-v1-item-items.http.d.ts +6 -4
  12. package/build/es/src/benefit-programs-v1-item-items.http.js +6 -4
  13. package/build/es/src/benefit-programs-v1-item-items.http.js.map +1 -1
  14. package/build/es/src/benefit-programs-v1-item-items.public.d.ts +6 -4
  15. package/build/es/src/benefit-programs-v1-item-items.public.js.map +1 -1
  16. package/build/es/src/benefit-programs-v1-item-items.types.d.ts +205 -44
  17. package/build/es/src/benefit-programs-v1-item-items.types.js.map +1 -1
  18. package/build/es/src/benefit-programs-v1-item-items.universal.d.ts +282 -51
  19. package/build/es/src/benefit-programs-v1-item-items.universal.js +55 -4
  20. package/build/es/src/benefit-programs-v1-item-items.universal.js.map +1 -1
  21. package/build/internal/cjs/src/benefit-programs-v1-item-items.http.d.ts +6 -4
  22. package/build/internal/cjs/src/benefit-programs-v1-item-items.http.js +6 -4
  23. package/build/internal/cjs/src/benefit-programs-v1-item-items.http.js.map +1 -1
  24. package/build/internal/cjs/src/benefit-programs-v1-item-items.public.d.ts +6 -4
  25. package/build/internal/cjs/src/benefit-programs-v1-item-items.public.js.map +1 -1
  26. package/build/internal/cjs/src/benefit-programs-v1-item-items.types.d.ts +205 -44
  27. package/build/internal/cjs/src/benefit-programs-v1-item-items.types.js.map +1 -1
  28. package/build/internal/cjs/src/benefit-programs-v1-item-items.universal.d.ts +282 -51
  29. package/build/internal/cjs/src/benefit-programs-v1-item-items.universal.js +55 -4
  30. package/build/internal/cjs/src/benefit-programs-v1-item-items.universal.js.map +1 -1
  31. package/build/internal/es/src/benefit-programs-v1-item-items.http.d.ts +6 -4
  32. package/build/internal/es/src/benefit-programs-v1-item-items.http.js +6 -4
  33. package/build/internal/es/src/benefit-programs-v1-item-items.http.js.map +1 -1
  34. package/build/internal/es/src/benefit-programs-v1-item-items.public.d.ts +6 -4
  35. package/build/internal/es/src/benefit-programs-v1-item-items.public.js.map +1 -1
  36. package/build/internal/es/src/benefit-programs-v1-item-items.types.d.ts +205 -44
  37. package/build/internal/es/src/benefit-programs-v1-item-items.types.js.map +1 -1
  38. package/build/internal/es/src/benefit-programs-v1-item-items.universal.d.ts +282 -51
  39. package/build/internal/es/src/benefit-programs-v1-item-items.universal.js +55 -4
  40. package/build/internal/es/src/benefit-programs-v1-item-items.universal.js.map +1 -1
  41. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  export interface Item {
2
2
  /**
3
3
  * Benefit item ID.
4
+ * @format GUID
4
5
  * @readonly
5
6
  */
6
7
  id?: string | null;
@@ -26,9 +27,13 @@ export interface Item {
26
27
  * External item ID assigned by the provider of the items.
27
28
  *
28
29
  * For example, if the benefit items are products, this ID corresponds to the specific product ID in the supplier's system.
30
+ * @format GUID
29
31
  */
30
32
  externalId?: string;
31
- /** Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups. */
33
+ /**
34
+ * Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups.
35
+ * @maxLength 20
36
+ */
32
37
  category?: string | null;
33
38
  /**
34
39
  * ID that is a shared reference between a benefit pool and a specific item.
@@ -36,14 +41,21 @@ export interface Item {
36
41
  * This ID is returned when calling the Create Pool Definition method in the Pool Definitions API.
37
42
  *
38
43
  * It is used to link the specific benefit item to its corresponding location within the benefit pool.
44
+ * @format GUID
45
+ * @immutable
39
46
  */
40
47
  itemSetId?: string;
41
- /** Display name of the item. For example, a concert ticket or an exercise session with a personal trainer. */
48
+ /**
49
+ * Display name of the item. For example, a concert ticket or an exercise session with a personal trainer.
50
+ * @maxLength 64
51
+ */
42
52
  displayName?: string | null;
43
53
  /**
44
54
  * ID of the application providing the benefit item.
45
55
  *
46
56
  * ID of the external application supplying the items. Each item's external ID is unique to its respective provider's application.
57
+ * @format GUID
58
+ * @immutable
47
59
  */
48
60
  providerAppId?: string | null;
49
61
  /**
@@ -55,6 +67,9 @@ export interface Item {
55
67
  * Module name of the item provider's application that originated the items.
56
68
  *
57
69
  * For example, `store-inventory` or `fitness-resources`.
70
+ * @minLength 1
71
+ * @maxLength 50
72
+ * @immutable
58
73
  */
59
74
  namespace?: string | null;
60
75
  }
@@ -70,7 +85,10 @@ export interface ExtendedFields {
70
85
  namespaces?: Record<string, Record<string, any>>;
71
86
  }
72
87
  export interface ItemsCloned {
73
- /** ID of the pool that had its items provisioned */
88
+ /**
89
+ * ID of the pool that had its items provisioned
90
+ * @format GUID
91
+ */
74
92
  itemSetId?: string;
75
93
  }
76
94
  export interface CreateItemRequest {
@@ -82,7 +100,11 @@ export interface CreateItemResponse {
82
100
  item?: Item;
83
101
  }
84
102
  export interface BulkCreateItemsRequest {
85
- /** Items to be created. */
103
+ /**
104
+ * Items to be created.
105
+ * @minSize 1
106
+ * @maxSize 100
107
+ */
86
108
  items: Item[];
87
109
  /**
88
110
  * Whether to return the full item entities.
@@ -96,6 +118,8 @@ export interface BulkCreateItemsResponse {
96
118
  * List of results for each item.
97
119
  *
98
120
  * Includes the item and whether the operation was successful.
121
+ * @minSize 1
122
+ * @maxSize 100
99
123
  */
100
124
  results?: BulkItemResult[];
101
125
  /** Bulk action metadata. */
@@ -108,7 +132,10 @@ export interface BulkItemResult {
108
132
  item?: Item;
109
133
  }
110
134
  export interface ItemMetadata {
111
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
135
+ /**
136
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
137
+ * @format GUID
138
+ */
112
139
  id?: string | null;
113
140
  /** Index of the item within the request array. Allows for correlation between request and response items. */
114
141
  originalIndex?: number;
@@ -134,13 +161,21 @@ export interface BulkActionMetadata {
134
161
  undetailedFailures?: number;
135
162
  }
136
163
  export interface DeleteItemRequest {
137
- /** Item ID. */
164
+ /**
165
+ * Item ID.
166
+ * @format GUID
167
+ */
138
168
  itemId: string;
139
169
  }
140
170
  export interface DeleteItemResponse {
141
171
  }
142
172
  export interface BulkDeleteItemsRequest {
143
- /** ID of the items to delete. */
173
+ /**
174
+ * ID of the items to delete.
175
+ * @minSize 1
176
+ * @maxSize 100
177
+ * @format GUID
178
+ */
144
179
  itemIds: string[];
145
180
  }
146
181
  export interface BulkDeleteItemsResponse {
@@ -148,13 +183,19 @@ export interface BulkDeleteItemsResponse {
148
183
  * List of results for each item.
149
184
  *
150
185
  * Includes the item and whether the deletion was successful.
186
+ * @minSize 1
187
+ * @maxSize 100
151
188
  */
152
189
  results?: BulkItemResult[];
153
190
  /** Bulk action metadata. */
154
191
  bulkActionMetadata?: BulkActionMetadata;
155
192
  }
156
193
  export interface BulkDeleteItemsByFilterRequest {
157
- /** Sub-module name of the item provider's application that originated the items. */
194
+ /**
195
+ * Sub-module name of the item provider's application that originated the items.
196
+ * @minLength 1
197
+ * @maxLength 50
198
+ */
158
199
  namespace: string;
159
200
  /** Filter options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
160
201
  filter?: Record<string, any> | null;
@@ -164,6 +205,7 @@ export interface BulkDeleteItemsByFilterResponse {
164
205
  * Job ID. Use the Async Job API to retrieve bulk delete results.
165
206
  *
166
207
  * Specify this job ID in the Get Async Job method to retrieve job details and metadata.
208
+ * @format GUID
167
209
  */
168
210
  jobId?: string;
169
211
  }
@@ -176,7 +218,11 @@ export interface UpdateItemResponse {
176
218
  item?: Item;
177
219
  }
178
220
  export interface BulkUpdateItemsRequest {
179
- /** Items to update. */
221
+ /**
222
+ * Items to update.
223
+ * @minSize 1
224
+ * @maxSize 100
225
+ */
180
226
  items?: MaskedItem[];
181
227
  /**
182
228
  * Whether to return the full item entities.
@@ -192,13 +238,20 @@ export interface MaskedItem {
192
238
  fieldMask?: string[];
193
239
  }
194
240
  export interface BulkUpdateItemsResponse {
195
- /** Items that were updated. */
241
+ /**
242
+ * Items that were updated.
243
+ * @minSize 1
244
+ * @maxSize 100
245
+ */
196
246
  results?: BulkItemResult[];
197
247
  /** Bulk action metadata. */
198
248
  bulkActionMetadata?: BulkActionMetadata;
199
249
  }
200
250
  export interface GetItemRequest {
201
- /** ID of the item to retrieve. */
251
+ /**
252
+ * ID of the item to retrieve.
253
+ * @format GUID
254
+ */
202
255
  itemId: string;
203
256
  }
204
257
  export interface GetItemResponse {
@@ -231,29 +284,58 @@ export declare enum Type {
231
284
  BY_REFERENCE = "BY_REFERENCE"
232
285
  }
233
286
  export interface ByItemSetIdAndReference {
234
- /** Filter list. */
287
+ /**
288
+ * Filter list.
289
+ * @minSize 1
290
+ * @maxSize 100
291
+ */
235
292
  filters?: ByItemSetIdAndReferenceFilter[];
236
293
  }
237
294
  export interface ByItemSetIdAndReferenceFilter {
238
- /** ID that is a shared reference between a benefit pool and a specific item. */
295
+ /**
296
+ * ID that is a shared reference between a benefit pool and a specific item.
297
+ * @format GUID
298
+ */
239
299
  itemSetId?: string;
240
- /** External item ID assigned by the provider of the items. */
300
+ /**
301
+ * External item ID assigned by the provider of the items.
302
+ * @format GUID
303
+ */
241
304
  externalId?: string;
242
- /** Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups. */
305
+ /**
306
+ * Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups.
307
+ * @maxLength 20
308
+ */
243
309
  category?: string;
244
- /** ID of the external application supplying the items. */
310
+ /**
311
+ * ID of the external application supplying the items.
312
+ * @format GUID
313
+ */
245
314
  providerAppId?: string;
246
315
  }
247
316
  export interface ByReference {
248
- /** Filter list. */
317
+ /**
318
+ * Filter list.
319
+ * @minSize 1
320
+ * @maxSize 100
321
+ */
249
322
  filters?: ByReferenceFilter[];
250
323
  }
251
324
  export interface ByReferenceFilter {
252
- /** External item ID assigned by the provider of the items. */
325
+ /**
326
+ * External item ID assigned by the provider of the items.
327
+ * @format GUID
328
+ */
253
329
  externalId?: string;
254
- /** Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups. */
330
+ /**
331
+ * Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups.
332
+ * @maxLength 20
333
+ */
255
334
  category?: string;
256
- /** ID of the external application supplying the items. */
335
+ /**
336
+ * ID of the external application supplying the items.
337
+ * @format GUID
338
+ */
257
339
  providerAppId?: string;
258
340
  }
259
341
  export interface Filter extends FilterFilterOneOf {
@@ -274,7 +356,11 @@ export interface Filter extends FilterFilterOneOf {
274
356
  byReferenceOptions?: ByReference;
275
357
  /** Filter type. */
276
358
  type?: Type;
277
- /** Filter items by the item's namespace. */
359
+ /**
360
+ * Filter items by the item's namespace.
361
+ * @minLength 1
362
+ * @maxLength 50
363
+ */
278
364
  namespace?: string;
279
365
  }
280
366
  /** @oneof */
@@ -296,13 +382,17 @@ export interface FilterFilterOneOf {
296
382
  byReferenceOptions?: ByReference;
297
383
  }
298
384
  export interface CursorPaging {
299
- /** Maximum number of items to return in the results. */
385
+ /**
386
+ * Maximum number of items to return in the results.
387
+ * @max 1000
388
+ */
300
389
  limit?: number | null;
301
390
  /**
302
391
  * Pointer to the next or previous page in the list of results.
303
392
  *
304
393
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
305
394
  * Not relevant for the first request.
395
+ * @maxLength 16000
306
396
  */
307
397
  cursor?: string | null;
308
398
  }
@@ -326,9 +416,15 @@ export interface CursorPagingMetadata {
326
416
  hasNext?: boolean | null;
327
417
  }
328
418
  export interface Cursors {
329
- /** Cursor string pointing to the next page in the list of results. */
419
+ /**
420
+ * Cursor string pointing to the next page in the list of results.
421
+ * @maxLength 16000
422
+ */
330
423
  next?: string | null;
331
- /** Cursor pointing to the previous page in the list of results. */
424
+ /**
425
+ * Cursor pointing to the previous page in the list of results.
426
+ * @maxLength 16000
427
+ */
332
428
  prev?: string | null;
333
429
  }
334
430
  export interface QueryItemsRequest {
@@ -350,6 +446,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
350
446
  /**
351
447
  * Sort object in the following format:
352
448
  * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
449
+ * @maxSize 5
353
450
  */
354
451
  sort?: Sorting[];
355
452
  }
@@ -359,7 +456,10 @@ export interface CursorQueryPagingMethodOneOf {
359
456
  cursorPaging?: CursorPaging;
360
457
  }
361
458
  export interface Sorting {
362
- /** Name of the field to sort by. */
459
+ /**
460
+ * Name of the field to sort by.
461
+ * @maxLength 512
462
+ */
363
463
  fieldName?: string;
364
464
  /** Sort order. */
365
465
  order?: SortOrder;
@@ -387,39 +487,70 @@ export interface CountItemsResponse {
387
487
  count?: number;
388
488
  }
389
489
  export interface CloneItemsRequest {
390
- /** Id of the item set to be cloned */
490
+ /**
491
+ * Id of the item set to be cloned
492
+ * @format GUID
493
+ */
391
494
  itemSetId?: string;
392
495
  }
393
496
  export interface CloneItemsResponse {
394
- /** Id of the item set that these items were added to */
497
+ /**
498
+ * Id of the item set that these items were added to
499
+ * @format GUID
500
+ */
395
501
  clonedItemSetId?: string;
396
- /** Id of the job that is cloning the item set */
502
+ /**
503
+ * Id of the job that is cloning the item set
504
+ * @format GUID
505
+ */
397
506
  cloneJobId?: string;
398
507
  }
399
508
  export interface BulkCloneItemSetsRequest {
400
- /** Id of the item sets to be cloned */
509
+ /**
510
+ * Id of the item sets to be cloned
511
+ * @format GUID
512
+ * @minSize 1
513
+ * @maxSize 1000
514
+ */
401
515
  itemSetIds?: string[];
402
516
  }
403
517
  export interface BulkCloneItemSetsResponse {
404
- /** Results */
518
+ /**
519
+ * Results
520
+ * @minSize 1
521
+ * @maxSize 1000
522
+ */
405
523
  results?: BulkCloneItemSetsResult[];
406
524
  /** Bulk action metadata */
407
525
  bulkActionMetadata?: BulkActionMetadata;
408
- /** Id of the job that is cloning the item set */
526
+ /**
527
+ * Id of the job that is cloning the item set
528
+ * @format GUID
529
+ */
409
530
  jobId?: string;
410
531
  }
411
532
  export interface BulkCloneItemSetsResult {
412
533
  /** Item metadata */
413
534
  itemMetadata?: ItemMetadata;
414
- /** Id of the item set that these items were added to */
535
+ /**
536
+ * Id of the item set that these items were added to
537
+ * @format GUID
538
+ */
415
539
  clonedItemSetId?: string;
416
540
  }
417
541
  export interface AllocateItemSetsRequest {
418
- /** Number of sets to allocate */
542
+ /**
543
+ * Number of sets to allocate
544
+ * @min 1
545
+ * @max 1000
546
+ */
419
547
  numberOfSets?: number;
420
548
  }
421
549
  export interface AllocateItemSetsResponse {
422
- /** ID that is a shared reference between a benefit pool and a specific item. */
550
+ /**
551
+ * ID that is a shared reference between a benefit pool and a specific item.
552
+ * @format GUID
553
+ */
423
554
  itemSetIds?: string[];
424
555
  }
425
556
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -495,9 +626,15 @@ export interface ActionEvent {
495
626
  bodyAsJson?: string;
496
627
  }
497
628
  export interface MessageEnvelope {
498
- /** App instance ID. */
629
+ /**
630
+ * App instance ID.
631
+ * @format GUID
632
+ */
499
633
  instanceId?: string | null;
500
- /** Event type. */
634
+ /**
635
+ * Event type.
636
+ * @maxLength 150
637
+ */
501
638
  eventType?: string;
502
639
  /** The identification type and identity data. */
503
640
  identity?: IdentificationData;
@@ -505,26 +642,50 @@ export interface MessageEnvelope {
505
642
  data?: string;
506
643
  }
507
644
  export interface IdentificationData extends IdentificationDataIdOneOf {
508
- /** ID of a site visitor that has not logged in to the site. */
645
+ /**
646
+ * ID of a site visitor that has not logged in to the site.
647
+ * @format GUID
648
+ */
509
649
  anonymousVisitorId?: string;
510
- /** ID of a site visitor that has logged in to the site. */
650
+ /**
651
+ * ID of a site visitor that has logged in to the site.
652
+ * @format GUID
653
+ */
511
654
  memberId?: string;
512
- /** ID of a Wix user (site owner, contributor, etc.). */
655
+ /**
656
+ * ID of a Wix user (site owner, contributor, etc.).
657
+ * @format GUID
658
+ */
513
659
  wixUserId?: string;
514
- /** ID of an app. */
660
+ /**
661
+ * ID of an app.
662
+ * @format GUID
663
+ */
515
664
  appId?: string;
516
665
  /** @readonly */
517
666
  identityType?: WebhookIdentityType;
518
667
  }
519
668
  /** @oneof */
520
669
  export interface IdentificationDataIdOneOf {
521
- /** ID of a site visitor that has not logged in to the site. */
670
+ /**
671
+ * ID of a site visitor that has not logged in to the site.
672
+ * @format GUID
673
+ */
522
674
  anonymousVisitorId?: string;
523
- /** ID of a site visitor that has logged in to the site. */
675
+ /**
676
+ * ID of a site visitor that has logged in to the site.
677
+ * @format GUID
678
+ */
524
679
  memberId?: string;
525
- /** ID of a Wix user (site owner, contributor, etc.). */
680
+ /**
681
+ * ID of a Wix user (site owner, contributor, etc.).
682
+ * @format GUID
683
+ */
526
684
  wixUserId?: string;
527
- /** ID of an app. */
685
+ /**
686
+ * ID of an app.
687
+ * @format GUID
688
+ */
528
689
  appId?: string;
529
690
  }
530
691
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"benefit-programs-v1-item-items.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-item-items.types.ts"],"names":[],"mappings":"AA6OA,MAAM,CAAN,IAAY,IAkBX;AAlBD,WAAY,IAAI;IACd,2BAA2B;IAC3B,yCAAiC,CAAA;IACjC;;;;;;;OAOG;IACH,qEAA6D,CAAA;IAC7D;;;;OAIG;IACH,qCAA6B,CAAA;AAC/B,CAAC,EAlBW,IAAI,KAAJ,IAAI,QAkBf;AAsJD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAqLD,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"}
1
+ {"version":3,"file":"benefit-programs-v1-item-items.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-item-items.types.ts"],"names":[],"mappings":"AAkSA,MAAM,CAAN,IAAY,IAkBX;AAlBD,WAAY,IAAI;IACd,2BAA2B;IAC3B,yCAAiC,CAAA;IACjC;;;;;;;OAOG;IACH,qEAA6D,CAAA;IAC7D;;;;OAIG;IACH,qCAA6B,CAAA;AAC/B,CAAC,EAlBW,IAAI,KAAJ,IAAI,QAkBf;AAqMD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAkPD,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"}