@wix/auto_sdk_benefit-programs_items 1.0.2 → 1.0.4

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 (45) hide show
  1. package/build/cjs/src/benefit-programs-v1-item-items.http.d.ts +19 -29
  2. package/build/cjs/src/benefit-programs-v1-item-items.http.js +19 -29
  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 +21 -25
  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 +37 -84
  7. package/build/cjs/src/benefit-programs-v1-item-items.types.js +2 -13
  8. package/build/cjs/src/benefit-programs-v1-item-items.types.js.map +1 -1
  9. package/build/cjs/src/benefit-programs-v1-item-items.universal.d.ts +68 -127
  10. package/build/cjs/src/benefit-programs-v1-item-items.universal.js +23 -38
  11. package/build/cjs/src/benefit-programs-v1-item-items.universal.js.map +1 -1
  12. package/build/es/src/benefit-programs-v1-item-items.http.d.ts +19 -29
  13. package/build/es/src/benefit-programs-v1-item-items.http.js +19 -29
  14. package/build/es/src/benefit-programs-v1-item-items.http.js.map +1 -1
  15. package/build/es/src/benefit-programs-v1-item-items.public.d.ts +21 -25
  16. package/build/es/src/benefit-programs-v1-item-items.public.js.map +1 -1
  17. package/build/es/src/benefit-programs-v1-item-items.types.d.ts +37 -84
  18. package/build/es/src/benefit-programs-v1-item-items.types.js +2 -13
  19. package/build/es/src/benefit-programs-v1-item-items.types.js.map +1 -1
  20. package/build/es/src/benefit-programs-v1-item-items.universal.d.ts +68 -127
  21. package/build/es/src/benefit-programs-v1-item-items.universal.js +23 -38
  22. package/build/es/src/benefit-programs-v1-item-items.universal.js.map +1 -1
  23. package/build/internal/cjs/src/benefit-programs-v1-item-items.http.d.ts +19 -29
  24. package/build/internal/cjs/src/benefit-programs-v1-item-items.http.js +19 -29
  25. package/build/internal/cjs/src/benefit-programs-v1-item-items.http.js.map +1 -1
  26. package/build/internal/cjs/src/benefit-programs-v1-item-items.public.d.ts +21 -25
  27. package/build/internal/cjs/src/benefit-programs-v1-item-items.public.js.map +1 -1
  28. package/build/internal/cjs/src/benefit-programs-v1-item-items.types.d.ts +37 -84
  29. package/build/internal/cjs/src/benefit-programs-v1-item-items.types.js +2 -13
  30. package/build/internal/cjs/src/benefit-programs-v1-item-items.types.js.map +1 -1
  31. package/build/internal/cjs/src/benefit-programs-v1-item-items.universal.d.ts +68 -127
  32. package/build/internal/cjs/src/benefit-programs-v1-item-items.universal.js +23 -38
  33. package/build/internal/cjs/src/benefit-programs-v1-item-items.universal.js.map +1 -1
  34. package/build/internal/es/src/benefit-programs-v1-item-items.http.d.ts +19 -29
  35. package/build/internal/es/src/benefit-programs-v1-item-items.http.js +19 -29
  36. package/build/internal/es/src/benefit-programs-v1-item-items.http.js.map +1 -1
  37. package/build/internal/es/src/benefit-programs-v1-item-items.public.d.ts +21 -25
  38. package/build/internal/es/src/benefit-programs-v1-item-items.public.js.map +1 -1
  39. package/build/internal/es/src/benefit-programs-v1-item-items.types.d.ts +37 -84
  40. package/build/internal/es/src/benefit-programs-v1-item-items.types.js +2 -13
  41. package/build/internal/es/src/benefit-programs-v1-item-items.types.js.map +1 -1
  42. package/build/internal/es/src/benefit-programs-v1-item-items.universal.d.ts +68 -127
  43. package/build/internal/es/src/benefit-programs-v1-item-items.universal.js +23 -38
  44. package/build/internal/es/src/benefit-programs-v1-item-items.universal.js.map +1 -1
  45. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  export interface Item {
2
2
  /**
3
- * Benefit item ID.
3
+ * Item ID.
4
4
  * @format GUID
5
5
  * @readonly
6
6
  */
7
7
  id?: string | null;
8
8
  /**
9
- * Revision number, which increments by 1 each time the benefit item is updated.
9
+ * Revision number, which increments by 1 each time the item is updated.
10
10
  * To prevent conflicting changes, the current revision must be passed when updating the item.
11
11
  *
12
12
  * Ignored when creating an item.
@@ -24,36 +24,30 @@ export interface Item {
24
24
  */
25
25
  updatedDate?: Date | null;
26
26
  /**
27
- * External item ID assigned by the provider of the items.
27
+ * ID of the item in the app providing it.
28
28
  *
29
- * For example, if the benefit items are products, this ID corresponds to the specific product ID in the supplier's system.
29
+ * For example, if the item is a product provided by Wix Stores, this would be the product ID.
30
30
  * @format GUID
31
31
  */
32
32
  externalId?: string;
33
33
  /**
34
- * Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups.
34
+ * Item category.
35
35
  * @maxLength 20
36
36
  */
37
37
  category?: string | null;
38
38
  /**
39
- * ID that is a shared reference between a benefit pool and a specific item.
40
- *
41
- * This ID is returned when calling the Create Pool Definition method in the Pool Definitions API.
42
- *
43
- * It is used to link the specific benefit item to its corresponding location within the benefit pool.
39
+ * Item set ID of the benefit that this item is a part of.
44
40
  * @format GUID
45
41
  * @immutable
46
42
  */
47
43
  itemSetId?: string;
48
44
  /**
49
- * Display name of the item. For example, a concert ticket or an exercise session with a personal trainer.
45
+ * Item name.
50
46
  * @maxLength 64
51
47
  */
52
48
  displayName?: string | null;
53
49
  /**
54
- * ID of the application providing the benefit item.
55
- *
56
- * ID of the external application supplying the items. Each item's external ID is unique to its respective provider's application.
50
+ * ID of the app that defines and provides the item. For example, if the item is a Wix Stores product, this field's value is `215238eb-22a5-4c36-9e7b-e7c08025e04e`.
57
51
  * @format GUID
58
52
  * @immutable
59
53
  */
@@ -64,9 +58,7 @@ export interface Item {
64
58
  */
65
59
  extendedFields?: ExtendedFields;
66
60
  /**
67
- * Module name of the item provider's application that originated the items.
68
- *
69
- * For example, `store-inventory` or `fitness-resources`.
61
+ * Namespace for your app or site's benefit programs.
70
62
  * @minLength 1
71
63
  * @maxLength 50
72
64
  * @immutable
@@ -101,7 +93,7 @@ export interface CreateItemResponse {
101
93
  }
102
94
  export interface BulkCreateItemsRequest {
103
95
  /**
104
- * Items to be created.
96
+ * Items to create.
105
97
  * @minSize 1
106
98
  * @maxSize 100
107
99
  */
@@ -115,9 +107,7 @@ export interface BulkCreateItemsRequest {
115
107
  }
116
108
  export interface BulkCreateItemsResponse {
117
109
  /**
118
- * List of results for each item.
119
- *
120
- * Includes the item and whether the operation was successful.
110
+ * List of created items and associated metadata.
121
111
  * @minSize 1
122
112
  * @maxSize 100
123
113
  */
@@ -171,7 +161,7 @@ export interface DeleteItemResponse {
171
161
  }
172
162
  export interface BulkDeleteItemsRequest {
173
163
  /**
174
- * ID of the items to delete.
164
+ * List of IDs of the items to delete.
175
165
  * @minSize 1
176
166
  * @maxSize 100
177
167
  * @format GUID
@@ -180,9 +170,7 @@ export interface BulkDeleteItemsRequest {
180
170
  }
181
171
  export interface BulkDeleteItemsResponse {
182
172
  /**
183
- * List of results for each item.
184
- *
185
- * Includes the item and whether the deletion was successful.
173
+ * List of deleted items and associated metadata.
186
174
  * @minSize 1
187
175
  * @maxSize 100
188
176
  */
@@ -192,25 +180,23 @@ export interface BulkDeleteItemsResponse {
192
180
  }
193
181
  export interface BulkDeleteItemsByFilterRequest {
194
182
  /**
195
- * Sub-module name of the item provider's application that originated the items.
183
+ * Namespace for your app or site's benefit programs.
196
184
  * @minLength 1
197
185
  * @maxLength 50
198
186
  */
199
187
  namespace: string;
200
- /** Filter options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
188
+ /** Filter options. To learn more, see [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
201
189
  filter?: Record<string, any> | null;
202
190
  }
203
191
  export interface BulkDeleteItemsByFilterResponse {
204
192
  /**
205
- * Job ID. Use the Async Job API to retrieve bulk delete results.
206
- *
207
- * Specify this job ID in the Get Async Job method to retrieve job details and metadata.
193
+ * Job ID for item deletion.
208
194
  * @format GUID
209
195
  */
210
196
  jobId?: string;
211
197
  }
212
198
  export interface UpdateItemRequest {
213
- /** Item to be updated. */
199
+ /** Item to update. */
214
200
  item: Item;
215
201
  }
216
202
  export interface UpdateItemResponse {
@@ -239,7 +225,7 @@ export interface MaskedItem {
239
225
  }
240
226
  export interface BulkUpdateItemsResponse {
241
227
  /**
242
- * Items that were updated.
228
+ * List of updated items and associated metadata.
243
229
  * @minSize 1
244
230
  * @maxSize 100
245
231
  */
@@ -267,20 +253,9 @@ export interface ListItemsRequest {
267
253
  export declare enum Type {
268
254
  /** Unknown filter type. */
269
255
  UNKNOWN_FILTER = "UNKNOWN_FILTER",
270
- /**
271
- * Filter the list by `itemSetId` and a reference to the item.
272
- *
273
- * Retrieve a list of a benefit item in a specific benefit pool.
274
- *
275
- * The items must be referenced by their `providerAppId`.
276
- * The `externalId` can be included for additional specificity of an item, but can only be used with its corresponding `providerAppId`.
277
- */
256
+ /** Use with `filter.byItemSetIdAndReferenceOptions`. */
278
257
  BY_ITEM_SET_ID_AND_REFERENCE = "BY_ITEM_SET_ID_AND_REFERENCE",
279
- /**
280
- * Filter the list by reference to the item.
281
- *
282
- * Retrieve a list of a benefit item in all benefit pools.
283
- */
258
+ /** Use with `filter.byReferenceOptions`. */
284
259
  BY_REFERENCE = "BY_REFERENCE"
285
260
  }
286
261
  export interface ByItemSetIdAndReference {
@@ -293,22 +268,22 @@ export interface ByItemSetIdAndReference {
293
268
  }
294
269
  export interface ByItemSetIdAndReferenceFilter {
295
270
  /**
296
- * ID that is a shared reference between a benefit pool and a specific item.
271
+ * ID set ID.
297
272
  * @format GUID
298
273
  */
299
274
  itemSetId?: string;
300
275
  /**
301
- * External item ID assigned by the provider of the items.
276
+ * External item ID.
302
277
  * @format GUID
303
278
  */
304
279
  externalId?: string;
305
280
  /**
306
- * Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups.
281
+ * Item category.
307
282
  * @maxLength 20
308
283
  */
309
284
  category?: string;
310
285
  /**
311
- * ID of the external application supplying the items.
286
+ * *Required**. ID of the app providing the item.
312
287
  * @format GUID
313
288
  */
314
289
  providerAppId?: string;
@@ -323,41 +298,30 @@ export interface ByReference {
323
298
  }
324
299
  export interface ByReferenceFilter {
325
300
  /**
326
- * External item ID assigned by the provider of the items.
301
+ * External item ID.
327
302
  * @format GUID
328
303
  */
329
304
  externalId?: string;
330
305
  /**
331
- * Item category. Groups benefit items together for organization and management purposes. For example, classes, posts, groups.
306
+ * Item category.
332
307
  * @maxLength 20
333
308
  */
334
309
  category?: string;
335
310
  /**
336
- * ID of the external application supplying the items.
311
+ * *Required**. ID of the app providing the item.
337
312
  * @format GUID
338
313
  */
339
314
  providerAppId?: string;
340
315
  }
341
316
  export interface Filter extends FilterFilterOneOf {
342
- /**
343
- * Filter the list by `itemSetId` and a reference to the item.
344
- *
345
- * Retrieve a list of benefit items in a specific benefit pool.
346
- *
347
- * The items must be referenced by their `providerAppId`.
348
- * The `externalId` can be included for additional specificity of an item, but can only be used with its corresponding `providerAppId`.
349
- */
317
+ /** Filter the request by `itemSetId` and item reference. */
350
318
  byItemSetIdAndReferenceOptions?: ByItemSetIdAndReference;
351
- /**
352
- * Filter the list by reference to the item.
353
- *
354
- * Retrieve a list of a benefit item in all benefit pools.
355
- */
319
+ /** Filter the request item reference. */
356
320
  byReferenceOptions?: ByReference;
357
321
  /** Filter type. */
358
322
  type?: Type;
359
323
  /**
360
- * Filter items by the item's namespace.
324
+ * Filter by namespace.
361
325
  * @minLength 1
362
326
  * @maxLength 50
363
327
  */
@@ -365,25 +329,14 @@ export interface Filter extends FilterFilterOneOf {
365
329
  }
366
330
  /** @oneof */
367
331
  export interface FilterFilterOneOf {
368
- /**
369
- * Filter the list by `itemSetId` and a reference to the item.
370
- *
371
- * Retrieve a list of benefit items in a specific benefit pool.
372
- *
373
- * The items must be referenced by their `providerAppId`.
374
- * The `externalId` can be included for additional specificity of an item, but can only be used with its corresponding `providerAppId`.
375
- */
332
+ /** Filter the request by `itemSetId` and item reference. */
376
333
  byItemSetIdAndReferenceOptions?: ByItemSetIdAndReference;
377
- /**
378
- * Filter the list by reference to the item.
379
- *
380
- * Retrieve a list of a benefit item in all benefit pools.
381
- */
334
+ /** Filter the request item reference. */
382
335
  byReferenceOptions?: ByReference;
383
336
  }
384
337
  export interface CursorPaging {
385
338
  /**
386
- * Maximum number of items to return in the results.
339
+ * Maximum number of items to return.
387
340
  * @max 1000
388
341
  */
389
342
  limit?: number | null;
@@ -428,7 +381,7 @@ export interface Cursors {
428
381
  prev?: string | null;
429
382
  }
430
383
  export interface QueryItemsRequest {
431
- /** Query to select benefit items. */
384
+ /** Filter, sort, and paging to apply to the query. */
432
385
  query?: CursorQuery;
433
386
  }
434
387
  export interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -457,7 +410,7 @@ export interface CursorQueryPagingMethodOneOf {
457
410
  }
458
411
  export interface Sorting {
459
412
  /**
460
- * Name of the field to sort by.
413
+ * Field to sort by.
461
414
  * @maxLength 512
462
415
  */
463
416
  fieldName?: string;
@@ -469,7 +422,7 @@ export declare enum SortOrder {
469
422
  DESC = "DESC"
470
423
  }
471
424
  export interface QueryItemsResponse {
472
- /** List of items. */
425
+ /** List of retrieved items. */
473
426
  items?: Item[];
474
427
  /** Metadata for paginated results. */
475
428
  metadata?: CursorPagingMetadata;
@@ -483,7 +436,7 @@ export interface CountItemsRequest {
483
436
  filter?: Record<string, any> | null;
484
437
  }
485
438
  export interface CountItemsResponse {
486
- /** Number of items. */
439
+ /** Number of items fulfilling the specified filter conditions. */
487
440
  count?: number;
488
441
  }
489
442
  export interface CloneItemsRequest {
@@ -2,20 +2,9 @@ export var Type;
2
2
  (function (Type) {
3
3
  /** Unknown filter type. */
4
4
  Type["UNKNOWN_FILTER"] = "UNKNOWN_FILTER";
5
- /**
6
- * Filter the list by `itemSetId` and a reference to the item.
7
- *
8
- * Retrieve a list of a benefit item in a specific benefit pool.
9
- *
10
- * The items must be referenced by their `providerAppId`.
11
- * The `externalId` can be included for additional specificity of an item, but can only be used with its corresponding `providerAppId`.
12
- */
5
+ /** Use with `filter.byItemSetIdAndReferenceOptions`. */
13
6
  Type["BY_ITEM_SET_ID_AND_REFERENCE"] = "BY_ITEM_SET_ID_AND_REFERENCE";
14
- /**
15
- * Filter the list by reference to the item.
16
- *
17
- * Retrieve a list of a benefit item in all benefit pools.
18
- */
7
+ /** Use with `filter.byReferenceOptions`. */
19
8
  Type["BY_REFERENCE"] = "BY_REFERENCE";
20
9
  })(Type || (Type = {}));
21
10
  export var SortOrder;
@@ -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":"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"}
1
+ {"version":3,"file":"benefit-programs-v1-item-items.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-item-items.types.ts"],"names":[],"mappings":"AAoRA,MAAM,CAAN,IAAY,IAOX;AAPD,WAAY,IAAI;IACd,2BAA2B;IAC3B,yCAAiC,CAAA;IACjC,wDAAwD;IACxD,qEAA6D,CAAA;IAC7D,4CAA4C;IAC5C,qCAA6B,CAAA;AAC/B,CAAC,EAPW,IAAI,KAAJ,IAAI,QAOf;AA+KD,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"}