@wix/auto_sdk_stores_ribbons-v-3 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 (21) hide show
  1. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts +184 -41
  2. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +1 -1
  3. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +256 -47
  4. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +28 -0
  5. package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +1 -1
  6. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts +184 -41
  7. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +1 -1
  8. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +256 -47
  9. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +28 -0
  10. package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +1 -1
  11. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts +184 -41
  12. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +1 -1
  13. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +256 -47
  14. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +28 -0
  15. package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +1 -1
  16. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts +184 -41
  17. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +1 -1
  18. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +256 -47
  19. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +28 -0
  20. package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +1 -1
  21. package/package.json +2 -2
@@ -2,6 +2,7 @@
2
2
  export interface Ribbon {
3
3
  /**
4
4
  * Ribbon ID.
5
+ * @format GUID
5
6
  * @readonly
6
7
  */
7
8
  id?: string | null;
@@ -24,7 +25,11 @@ export interface Ribbon {
24
25
  * @readonly
25
26
  */
26
27
  updatedDate?: Date | null;
27
- /** Ribbon name. */
28
+ /**
29
+ * Ribbon name.
30
+ * @minLength 1
31
+ * @maxLength 30
32
+ */
28
33
  name?: string;
29
34
  /**
30
35
  * Number of products this ribbon is assigned to.
@@ -34,9 +39,15 @@ export interface Ribbon {
34
39
  assignedProductCount?: number | null;
35
40
  }
36
41
  export interface InvalidateCache extends InvalidateCacheGetByOneOf {
37
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
42
+ /**
43
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
44
+ * @format GUID
45
+ */
38
46
  metaSiteId?: string;
39
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
47
+ /**
48
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
49
+ * @format GUID
50
+ */
40
51
  siteId?: string;
41
52
  /** Invalidate by App */
42
53
  app?: App;
@@ -46,7 +57,10 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
46
57
  uri?: URI;
47
58
  /** Invalidate by file (for media files such as PDFs) */
48
59
  file?: File;
49
- /** tell us why you're invalidating the cache. You don't need to add your app name */
60
+ /**
61
+ * tell us why you're invalidating the cache. You don't need to add your app name
62
+ * @maxLength 256
63
+ */
50
64
  reason?: string | null;
51
65
  /** Is local DS */
52
66
  localDc?: boolean;
@@ -54,9 +68,15 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
54
68
  }
55
69
  /** @oneof */
56
70
  export interface InvalidateCacheGetByOneOf {
57
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
71
+ /**
72
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
73
+ * @format GUID
74
+ */
58
75
  metaSiteId?: string;
59
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
76
+ /**
77
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
78
+ * @format GUID
79
+ */
60
80
  siteId?: string;
61
81
  /** Invalidate by App */
62
82
  app?: App;
@@ -68,27 +88,52 @@ export interface InvalidateCacheGetByOneOf {
68
88
  file?: File;
69
89
  }
70
90
  export interface App {
71
- /** The AppDefId */
91
+ /**
92
+ * The AppDefId
93
+ * @minLength 1
94
+ */
72
95
  appDefId?: string;
73
- /** The instance Id */
96
+ /**
97
+ * The instance Id
98
+ * @format GUID
99
+ */
74
100
  instanceId?: string;
75
101
  }
76
102
  export interface Page {
77
- /** the msid the page is on */
103
+ /**
104
+ * the msid the page is on
105
+ * @format GUID
106
+ */
78
107
  metaSiteId?: string;
79
- /** Invalidate by Page ID */
108
+ /**
109
+ * Invalidate by Page ID
110
+ * @minLength 1
111
+ */
80
112
  pageId?: string;
81
113
  }
82
114
  export interface URI {
83
- /** the msid the URI is on */
115
+ /**
116
+ * the msid the URI is on
117
+ * @format GUID
118
+ */
84
119
  metaSiteId?: string;
85
- /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
120
+ /**
121
+ * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
122
+ * @minLength 1
123
+ */
86
124
  uriPath?: string;
87
125
  }
88
126
  export interface File {
89
- /** the msid the file is related to */
127
+ /**
128
+ * the msid the file is related to
129
+ * @format GUID
130
+ */
90
131
  metaSiteId?: string;
91
- /** Invalidate by filename (for media files such as PDFs) */
132
+ /**
133
+ * Invalidate by filename (for media files such as PDFs)
134
+ * @minLength 1
135
+ * @maxLength 256
136
+ */
92
137
  fileName?: string;
93
138
  }
94
139
  export interface CreateRibbonRequest {
@@ -100,12 +145,16 @@ export interface CreateRibbonResponse {
100
145
  ribbon?: Ribbon;
101
146
  }
102
147
  export interface GetRibbonRequest {
103
- /** Ribbon ID. */
148
+ /**
149
+ * Ribbon ID.
150
+ * @format GUID
151
+ */
104
152
  ribbonId: string;
105
153
  /**
106
154
  * Fields to include in the response.
107
155
  *
108
156
  * Supported values: `ASSIGNED_PRODUCTS_COUNT`
157
+ * @maxSize 100
109
158
  */
110
159
  fields?: RequestedFields[];
111
160
  }
@@ -124,6 +173,7 @@ export interface UpdateRibbonRequest {
124
173
  * Fields to include in the response.
125
174
  *
126
175
  * Supported values: `ASSIGNED_PRODUCTS_COUNT`
176
+ * @maxSize 100
127
177
  */
128
178
  fields?: RequestedFields[];
129
179
  }
@@ -132,7 +182,10 @@ export interface UpdateRibbonResponse {
132
182
  ribbon?: Ribbon;
133
183
  }
134
184
  export interface DeleteRibbonRequest {
135
- /** Ribbon ID. */
185
+ /**
186
+ * Ribbon ID.
187
+ * @format GUID
188
+ */
136
189
  ribbonId: string;
137
190
  }
138
191
  export interface DeleteRibbonResponse {
@@ -144,6 +197,7 @@ export interface QueryRibbonsRequest {
144
197
  * Fields to include in the response.
145
198
  *
146
199
  * Supported values: `ASSIGNED_PRODUCTS_COUNT`
200
+ * @maxSize 100
147
201
  */
148
202
  fields?: RequestedFields[];
149
203
  }
@@ -162,6 +216,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
162
216
  /**
163
217
  * Sort object in the following format:
164
218
  * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
219
+ * @maxSize 4
165
220
  */
166
221
  sort?: Sorting[];
167
222
  }
@@ -171,7 +226,10 @@ export interface CursorQueryPagingMethodOneOf {
171
226
  cursorPaging?: CursorPaging;
172
227
  }
173
228
  export interface Sorting {
174
- /** Name of the field to sort by. */
229
+ /**
230
+ * Name of the field to sort by.
231
+ * @maxLength 512
232
+ */
175
233
  fieldName?: string;
176
234
  /** Sort order. */
177
235
  order?: SortOrder;
@@ -183,18 +241,26 @@ export declare enum SortOrder {
183
241
  DESC = "DESC"
184
242
  }
185
243
  export interface CursorPaging {
186
- /** Maximum number of items to return in the results. */
244
+ /**
245
+ * Maximum number of items to return in the results.
246
+ * @max 100
247
+ */
187
248
  limit?: number | null;
188
249
  /**
189
250
  * Pointer to the next or previous page in the list of results.
190
251
  *
191
252
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
192
253
  * Not relevant for the first request.
254
+ * @maxLength 16000
193
255
  */
194
256
  cursor?: string | null;
195
257
  }
196
258
  export interface QueryRibbonsResponse {
197
- /** List of ribbons. */
259
+ /**
260
+ * List of ribbons.
261
+ * @minSize 1
262
+ * @maxSize 100
263
+ */
198
264
  ribbons?: Ribbon[];
199
265
  /** Details on the paged set of results returned. */
200
266
  pagingMetadata?: CursorPagingMetadata;
@@ -213,13 +279,23 @@ export interface CursorPagingMetadata {
213
279
  hasNext?: boolean | null;
214
280
  }
215
281
  export interface Cursors {
216
- /** Cursor string pointing to the next page in the list of results. */
282
+ /**
283
+ * Cursor string pointing to the next page in the list of results.
284
+ * @maxLength 16000
285
+ */
217
286
  next?: string | null;
218
- /** Cursor pointing to the previous page in the list of results. */
287
+ /**
288
+ * Cursor pointing to the previous page in the list of results.
289
+ * @maxLength 16000
290
+ */
219
291
  prev?: string | null;
220
292
  }
221
293
  export interface BulkCreateRibbonsRequest {
222
- /** Ribbons to create. */
294
+ /**
295
+ * Ribbons to create.
296
+ * @minSize 1
297
+ * @maxSize 100
298
+ */
223
299
  ribbons: Ribbon[];
224
300
  /**
225
301
  * Whether to return the full created ribbon entities in the response.
@@ -229,7 +305,10 @@ export interface BulkCreateRibbonsRequest {
229
305
  returnEntity?: boolean;
230
306
  }
231
307
  export interface BulkCreateRibbonsResponse {
232
- /** Ribbons created by bulk action. */
308
+ /**
309
+ * Ribbons created by bulk action.
310
+ * @maxSize 100
311
+ */
233
312
  results?: V3BulkRibbonResult[];
234
313
  /** Bulk action metadata. */
235
314
  bulkActionMetadata?: BulkActionMetadata;
@@ -245,7 +324,10 @@ export interface V3BulkRibbonResult {
245
324
  item?: Ribbon;
246
325
  }
247
326
  export interface ItemMetadata {
248
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
327
+ /**
328
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
329
+ * @format GUID
330
+ */
249
331
  id?: string | null;
250
332
  /** Index of the item within the request array. Allows for correlation between request and response items. */
251
333
  originalIndex?: number;
@@ -271,7 +353,11 @@ export interface BulkActionMetadata {
271
353
  undetailedFailures?: number;
272
354
  }
273
355
  export interface BulkUpdateRibbonsRequest {
274
- /** List of ribbons to update. */
356
+ /**
357
+ * List of ribbons to update.
358
+ * @minSize 1
359
+ * @maxSize 100
360
+ */
275
361
  ribbons: MaskedRibbon[];
276
362
  /**
277
363
  * Whether to return the full updated ribbon entities in the response.
@@ -283,6 +369,7 @@ export interface BulkUpdateRibbonsRequest {
283
369
  * Fields to include in the response.
284
370
  *
285
371
  * Supported values: `ASSIGNED_PRODUCTS_COUNT`
372
+ * @maxSize 100
286
373
  */
287
374
  fields?: RequestedFields[];
288
375
  }
@@ -293,18 +380,26 @@ export interface MaskedRibbon {
293
380
  fieldMask?: string[];
294
381
  }
295
382
  export interface BulkUpdateRibbonsResponse {
296
- /** Ribbons updated by bulk action. */
383
+ /**
384
+ * Ribbons updated by bulk action.
385
+ * @maxSize 100
386
+ */
297
387
  results?: V3BulkRibbonResult[];
298
388
  /** Bulk action metadata. */
299
389
  bulkActionMetadata?: BulkActionMetadata;
300
390
  }
301
391
  export interface GetOrCreateRibbonRequest {
302
- /** Ribbon name to retrieve or create. */
392
+ /**
393
+ * Ribbon name to retrieve or create.
394
+ * @minLength 1
395
+ * @maxLength 30
396
+ */
303
397
  ribbonName: string;
304
398
  /**
305
399
  * Fields to include in the response.
306
400
  *
307
401
  * Supported values: `ASSIGNED_PRODUCTS_COUNT`
402
+ * @maxSize 100
308
403
  */
309
404
  fields?: RequestedFields[];
310
405
  }
@@ -313,27 +408,45 @@ export interface GetOrCreateRibbonResponse {
313
408
  ribbon?: Ribbon;
314
409
  }
315
410
  export interface BulkGetOrCreateRibbonsRequest {
316
- /** Ribbon names to retrieve or create. */
411
+ /**
412
+ * Ribbon names to retrieve or create.
413
+ * @minLength 1
414
+ * @maxLength 30
415
+ * @minSize 1
416
+ * @maxSize 100
417
+ */
317
418
  ribbonNames: string[];
318
419
  /**
319
420
  * Fields to include in the response.
320
421
  *
321
422
  * Supported values: `ASSIGNED_PRODUCTS_COUNT`
423
+ * @maxSize 100
322
424
  */
323
425
  fields?: RequestedFields[];
324
426
  }
325
427
  export interface BulkGetOrCreateRibbonsResponse {
326
- /** Ribbons retrieved or created by bulk action. */
428
+ /**
429
+ * Ribbons retrieved or created by bulk action.
430
+ * @maxSize 100
431
+ */
327
432
  results?: V3BulkRibbonResult[];
328
433
  /** Bulk action metadata. */
329
434
  bulkActionMetadata?: BulkActionMetadata;
330
435
  }
331
436
  export interface BulkDeleteRibbonsRequest {
332
- /** IDs of ribbons to delete. */
437
+ /**
438
+ * IDs of ribbons to delete.
439
+ * @format GUID
440
+ * @minSize 1
441
+ * @maxSize 100
442
+ */
333
443
  ribbonIds: string[];
334
444
  }
335
445
  export interface BulkDeleteRibbonsResponse {
336
- /** Ribbons deleted by bulk action. */
446
+ /**
447
+ * Ribbons deleted by bulk action.
448
+ * @maxSize 100
449
+ */
337
450
  results?: BulkRibbonResult[];
338
451
  /** Bulk action metadata. */
339
452
  bulkActionMetadata?: BulkActionMetadata;
@@ -417,9 +530,15 @@ export interface ActionEvent {
417
530
  export interface Empty {
418
531
  }
419
532
  export interface MessageEnvelope {
420
- /** App instance ID. */
533
+ /**
534
+ * App instance ID.
535
+ * @format GUID
536
+ */
421
537
  instanceId?: string | null;
422
- /** Event type. */
538
+ /**
539
+ * Event type.
540
+ * @maxLength 150
541
+ */
423
542
  eventType?: string;
424
543
  /** The identification type and identity data. */
425
544
  identity?: IdentificationData;
@@ -427,26 +546,50 @@ export interface MessageEnvelope {
427
546
  data?: string;
428
547
  }
429
548
  export interface IdentificationData extends IdentificationDataIdOneOf {
430
- /** ID of a site visitor that has not logged in to the site. */
549
+ /**
550
+ * ID of a site visitor that has not logged in to the site.
551
+ * @format GUID
552
+ */
431
553
  anonymousVisitorId?: string;
432
- /** ID of a site visitor that has logged in to the site. */
554
+ /**
555
+ * ID of a site visitor that has logged in to the site.
556
+ * @format GUID
557
+ */
433
558
  memberId?: string;
434
- /** ID of a Wix user (site owner, contributor, etc.). */
559
+ /**
560
+ * ID of a Wix user (site owner, contributor, etc.).
561
+ * @format GUID
562
+ */
435
563
  wixUserId?: string;
436
- /** ID of an app. */
564
+ /**
565
+ * ID of an app.
566
+ * @format GUID
567
+ */
437
568
  appId?: string;
438
569
  /** @readonly */
439
570
  identityType?: WebhookIdentityType;
440
571
  }
441
572
  /** @oneof */
442
573
  export interface IdentificationDataIdOneOf {
443
- /** ID of a site visitor that has not logged in to the site. */
574
+ /**
575
+ * ID of a site visitor that has not logged in to the site.
576
+ * @format GUID
577
+ */
444
578
  anonymousVisitorId?: string;
445
- /** ID of a site visitor that has logged in to the site. */
579
+ /**
580
+ * ID of a site visitor that has logged in to the site.
581
+ * @format GUID
582
+ */
446
583
  memberId?: string;
447
- /** ID of a Wix user (site owner, contributor, etc.). */
584
+ /**
585
+ * ID of a Wix user (site owner, contributor, etc.).
586
+ * @format GUID
587
+ */
448
588
  wixUserId?: string;
449
- /** ID of an app. */
589
+ /**
590
+ * ID of an app.
591
+ * @format GUID
592
+ */
450
593
  appId?: string;
451
594
  }
452
595
  export declare enum WebhookIdentityType {
@@ -1 +1 @@
1
- {"version":3,"file":"stores-catalog-v3-ribbon-ribbons-v-3.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v3-ribbon-ribbons-v-3.types.ts"],"names":[],"mappings":";;;AAyHA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,sEAAmD,CAAA;IACnD,oEAAiD,CAAA;AACnD,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAyED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,uBAAuB;IACvB,wBAAW,CAAA;IACX,wBAAwB;IACxB,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AA2SD,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":"stores-catalog-v3-ribbon-ribbons-v-3.types.js","sourceRoot":"","sources":["../../../src/stores-catalog-v3-ribbon-ribbons-v-3.types.ts"],"names":[],"mappings":";;;AA0KA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,sEAAmD,CAAA;IACnD,oEAAiD,CAAA;AACnD,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAkFD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,uBAAuB;IACvB,wBAAW,CAAA;IACX,wBAAwB;IACxB,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAgYD,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"}