@wix/auto_sdk_stores_ribbons-v-3 1.0.10 → 1.0.12
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/index.d.mts +136 -0
- package/build/index.d.ts +136 -0
- package/build/index.js +872 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +833 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +136 -0
- package/build/internal/index.d.ts +136 -0
- package/build/internal/index.js +872 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +833 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +394 -0
- package/build/internal/meta.d.ts +394 -0
- package/build/internal/meta.js +580 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +544 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts → internal/stores-catalog-v3-ribbon-ribbons-v-3.universal-DWKP9-aP.d.mts} +308 -68
- package/build/{cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts → internal/stores-catalog-v3-ribbon-ribbons-v-3.universal-DWKP9-aP.d.ts} +308 -68
- package/build/meta.d.mts +394 -0
- package/build/meta.d.ts +394 -0
- package/build/meta.js +580 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +544 -0
- package/build/meta.mjs.map +1 -0
- package/build/{internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts → stores-catalog-v3-ribbon-ribbons-v-3.universal-DWKP9-aP.d.mts} +308 -68
- package/build/{internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.d.ts → stores-catalog-v3-ribbon-ribbons-v-3.universal-DWKP9-aP.d.ts} +308 -68
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +0 -24
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +0 -30
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +0 -59
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +0 -410
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +0 -28
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +0 -218
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +0 -119
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +0 -104
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +0 -24
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +0 -1237
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +0 -606
- package/build/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +0 -24
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +0 -24
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +0 -1
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +0 -59
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +0 -397
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +0 -1
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +0 -28
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +0 -182
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +0 -1
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +0 -119
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +0 -88
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +0 -1
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +0 -21
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +0 -1
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +0 -1237
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +0 -570
- package/build/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +0 -24
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +0 -30
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +0 -59
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +0 -410
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +0 -28
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +0 -218
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +0 -119
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +0 -104
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +0 -24
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +0 -1237
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +0 -606
- package/build/internal/cjs/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.d.ts +0 -24
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js +0 -24
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.context.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.d.ts +0 -59
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js +0 -397
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.http.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.d.ts +0 -28
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js +0 -182
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.meta.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.d.ts +0 -119
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js +0 -88
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.public.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js +0 -21
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.types.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.d.ts +0 -1237
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js +0 -570
- package/build/internal/es/src/stores-catalog-v3-ribbon-ribbons-v-3.universal.js.map +0 -1
package/build/meta.d.mts
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { q as CreateRibbonRequest$1, r as CreateRibbonResponse$1, s as GetRibbonRequest$1, t as GetRibbonResponse$1, u as UpdateRibbonRequest$1, v as UpdateRibbonResponse$1, D as DeleteRibbonRequest$1, w as DeleteRibbonResponse$1, x as QueryRibbonsRequest$1, J as QueryRibbonsResponse$1, N as BulkCreateRibbonsRequest$1, c as BulkCreateRibbonsResponse$1, Y as BulkUpdateRibbonsRequest$1, e as BulkUpdateRibbonsResponse$1, Z as GetOrCreateRibbonRequest$1, g as GetOrCreateRibbonResponse$1, _ as BulkGetOrCreateRibbonsRequest$1, i as BulkGetOrCreateRibbonsResponse$1, $ as BulkDeleteRibbonsRequest$1, j as BulkDeleteRibbonsResponse$1 } from './stores-catalog-v3-ribbon-ribbons-v-3.universal-DWKP9-aP.mjs';
|
|
2
|
+
|
|
3
|
+
/** A Ribbon is a visual element that you can assign to products to highlight them on your site. */
|
|
4
|
+
interface Ribbon {
|
|
5
|
+
/**
|
|
6
|
+
* Ribbon ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Revision number, which increments by 1 each time the ribbon is updated.
|
|
13
|
+
* To prevent conflicting changes,
|
|
14
|
+
* the current revision must be passed when updating the ribbon.
|
|
15
|
+
*
|
|
16
|
+
* Ignored when creating a ribbon.
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
revision?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Date and time the ribbon was created.
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
createdDate?: Date | null;
|
|
25
|
+
/**
|
|
26
|
+
* Date and time the ribbon was updated.
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
updatedDate?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* Ribbon name.
|
|
32
|
+
* @minLength 1
|
|
33
|
+
* @maxLength 30
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Number of products this ribbon is assigned to.
|
|
38
|
+
* > **Note:** Returned only when you pass `"ASSIGNED_PRODUCT_COUNT"` to the `fields` array in Ribbon API requests.
|
|
39
|
+
* @readonly
|
|
40
|
+
*/
|
|
41
|
+
assignedProductCount?: number | null;
|
|
42
|
+
}
|
|
43
|
+
interface CreateRibbonRequest {
|
|
44
|
+
/** Ribbon to create. */
|
|
45
|
+
ribbon: Ribbon;
|
|
46
|
+
}
|
|
47
|
+
interface CreateRibbonResponse {
|
|
48
|
+
/** Created ribbon. */
|
|
49
|
+
ribbon?: Ribbon;
|
|
50
|
+
}
|
|
51
|
+
interface GetRibbonRequest {
|
|
52
|
+
/**
|
|
53
|
+
* Ribbon ID.
|
|
54
|
+
* @format GUID
|
|
55
|
+
*/
|
|
56
|
+
ribbonId: string;
|
|
57
|
+
/**
|
|
58
|
+
* Fields to include in the response.
|
|
59
|
+
*
|
|
60
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
61
|
+
* @maxSize 100
|
|
62
|
+
*/
|
|
63
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
64
|
+
}
|
|
65
|
+
declare enum RequestedFields {
|
|
66
|
+
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
67
|
+
ASSIGNED_PRODUCT_COUNT = "ASSIGNED_PRODUCT_COUNT"
|
|
68
|
+
}
|
|
69
|
+
/** @enumType */
|
|
70
|
+
type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'ASSIGNED_PRODUCT_COUNT';
|
|
71
|
+
interface GetRibbonResponse {
|
|
72
|
+
/** Ribbon. */
|
|
73
|
+
ribbon?: Ribbon;
|
|
74
|
+
}
|
|
75
|
+
interface UpdateRibbonRequest {
|
|
76
|
+
/** Ribbon to update. */
|
|
77
|
+
ribbon: Ribbon;
|
|
78
|
+
/**
|
|
79
|
+
* Fields to include in the response.
|
|
80
|
+
*
|
|
81
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
82
|
+
* @maxSize 100
|
|
83
|
+
*/
|
|
84
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
85
|
+
}
|
|
86
|
+
interface UpdateRibbonResponse {
|
|
87
|
+
/** Updated Ribbon. */
|
|
88
|
+
ribbon?: Ribbon;
|
|
89
|
+
}
|
|
90
|
+
interface DeleteRibbonRequest {
|
|
91
|
+
/**
|
|
92
|
+
* Ribbon ID.
|
|
93
|
+
* @format GUID
|
|
94
|
+
*/
|
|
95
|
+
ribbonId: string;
|
|
96
|
+
}
|
|
97
|
+
interface DeleteRibbonResponse {
|
|
98
|
+
}
|
|
99
|
+
interface QueryRibbonsRequest {
|
|
100
|
+
/** Query options. */
|
|
101
|
+
query?: CursorQuery;
|
|
102
|
+
/**
|
|
103
|
+
* Fields to include in the response.
|
|
104
|
+
*
|
|
105
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
106
|
+
* @maxSize 100
|
|
107
|
+
*/
|
|
108
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
109
|
+
}
|
|
110
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
111
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
112
|
+
cursorPaging?: CursorPaging;
|
|
113
|
+
/**
|
|
114
|
+
* Filter object in the following format:
|
|
115
|
+
* `"filter" : {
|
|
116
|
+
* "fieldName1": "value1",
|
|
117
|
+
* "fieldName2":{"$operator":"value2"}
|
|
118
|
+
* }`
|
|
119
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
120
|
+
*/
|
|
121
|
+
filter?: Record<string, any> | null;
|
|
122
|
+
/**
|
|
123
|
+
* Sort object in the following format:
|
|
124
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
125
|
+
* @maxSize 4
|
|
126
|
+
*/
|
|
127
|
+
sort?: Sorting[];
|
|
128
|
+
}
|
|
129
|
+
/** @oneof */
|
|
130
|
+
interface CursorQueryPagingMethodOneOf {
|
|
131
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
132
|
+
cursorPaging?: CursorPaging;
|
|
133
|
+
}
|
|
134
|
+
interface Sorting {
|
|
135
|
+
/**
|
|
136
|
+
* Name of the field to sort by.
|
|
137
|
+
* @maxLength 512
|
|
138
|
+
*/
|
|
139
|
+
fieldName?: string;
|
|
140
|
+
/** Sort order. */
|
|
141
|
+
order?: SortOrderWithLiterals;
|
|
142
|
+
}
|
|
143
|
+
declare enum SortOrder {
|
|
144
|
+
/** Ascending order. */
|
|
145
|
+
ASC = "ASC",
|
|
146
|
+
/** Descending order. */
|
|
147
|
+
DESC = "DESC"
|
|
148
|
+
}
|
|
149
|
+
/** @enumType */
|
|
150
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
151
|
+
interface CursorPaging {
|
|
152
|
+
/**
|
|
153
|
+
* Maximum number of items to return in the results.
|
|
154
|
+
* @max 100
|
|
155
|
+
*/
|
|
156
|
+
limit?: number | null;
|
|
157
|
+
/**
|
|
158
|
+
* Pointer to the next or previous page in the list of results.
|
|
159
|
+
*
|
|
160
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
161
|
+
* Not relevant for the first request.
|
|
162
|
+
* @maxLength 16000
|
|
163
|
+
*/
|
|
164
|
+
cursor?: string | null;
|
|
165
|
+
}
|
|
166
|
+
interface QueryRibbonsResponse {
|
|
167
|
+
/**
|
|
168
|
+
* List of ribbons.
|
|
169
|
+
* @minSize 1
|
|
170
|
+
* @maxSize 100
|
|
171
|
+
*/
|
|
172
|
+
ribbons?: Ribbon[];
|
|
173
|
+
/** Details on the paged set of results returned. */
|
|
174
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
175
|
+
}
|
|
176
|
+
interface CursorPagingMetadata {
|
|
177
|
+
/** Number of items returned in the response. */
|
|
178
|
+
count?: number | null;
|
|
179
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
180
|
+
cursors?: Cursors;
|
|
181
|
+
/**
|
|
182
|
+
* Whether there are more pages to retrieve following the current page.
|
|
183
|
+
*
|
|
184
|
+
* + `true`: Another page of results can be retrieved.
|
|
185
|
+
* + `false`: This is the last page.
|
|
186
|
+
*/
|
|
187
|
+
hasNext?: boolean | null;
|
|
188
|
+
}
|
|
189
|
+
interface Cursors {
|
|
190
|
+
/**
|
|
191
|
+
* Cursor string pointing to the next page in the list of results.
|
|
192
|
+
* @maxLength 16000
|
|
193
|
+
*/
|
|
194
|
+
next?: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* Cursor pointing to the previous page in the list of results.
|
|
197
|
+
* @maxLength 16000
|
|
198
|
+
*/
|
|
199
|
+
prev?: string | null;
|
|
200
|
+
}
|
|
201
|
+
interface BulkCreateRibbonsRequest {
|
|
202
|
+
/**
|
|
203
|
+
* Ribbons to create.
|
|
204
|
+
* @minSize 1
|
|
205
|
+
* @maxSize 100
|
|
206
|
+
*/
|
|
207
|
+
ribbons: Ribbon[];
|
|
208
|
+
/**
|
|
209
|
+
* Whether to return the full created ribbon entities in the response.
|
|
210
|
+
*
|
|
211
|
+
* Default: `false`
|
|
212
|
+
*/
|
|
213
|
+
returnEntity?: boolean;
|
|
214
|
+
}
|
|
215
|
+
interface BulkCreateRibbonsResponse {
|
|
216
|
+
/**
|
|
217
|
+
* Ribbons created by bulk action.
|
|
218
|
+
* @maxSize 100
|
|
219
|
+
*/
|
|
220
|
+
results?: V3BulkRibbonResult[];
|
|
221
|
+
/** Bulk action metadata. */
|
|
222
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
223
|
+
}
|
|
224
|
+
interface V3BulkRibbonResult {
|
|
225
|
+
/** Bulk action metadata for ribbon. */
|
|
226
|
+
itemMetadata?: ItemMetadata;
|
|
227
|
+
/**
|
|
228
|
+
* Full ribbon entity.
|
|
229
|
+
*
|
|
230
|
+
* Returned only if `returnEntity: true` is passed in the request.
|
|
231
|
+
*/
|
|
232
|
+
item?: Ribbon;
|
|
233
|
+
}
|
|
234
|
+
interface ItemMetadata {
|
|
235
|
+
/**
|
|
236
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
237
|
+
* @format GUID
|
|
238
|
+
*/
|
|
239
|
+
id?: string | null;
|
|
240
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
241
|
+
originalIndex?: number;
|
|
242
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
243
|
+
success?: boolean;
|
|
244
|
+
/** Details about the error in case of failure. */
|
|
245
|
+
error?: ApplicationError;
|
|
246
|
+
}
|
|
247
|
+
interface ApplicationError {
|
|
248
|
+
/** Error code. */
|
|
249
|
+
code?: string;
|
|
250
|
+
/** Description of the error. */
|
|
251
|
+
description?: string;
|
|
252
|
+
/** Data related to the error. */
|
|
253
|
+
data?: Record<string, any> | null;
|
|
254
|
+
}
|
|
255
|
+
interface BulkActionMetadata {
|
|
256
|
+
/** Number of items that were successfully processed. */
|
|
257
|
+
totalSuccesses?: number;
|
|
258
|
+
/** Number of items that couldn't be processed. */
|
|
259
|
+
totalFailures?: number;
|
|
260
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
261
|
+
undetailedFailures?: number;
|
|
262
|
+
}
|
|
263
|
+
interface BulkUpdateRibbonsRequest {
|
|
264
|
+
/**
|
|
265
|
+
* List of ribbons to update.
|
|
266
|
+
* @minSize 1
|
|
267
|
+
* @maxSize 100
|
|
268
|
+
*/
|
|
269
|
+
ribbons: MaskedRibbon[];
|
|
270
|
+
/**
|
|
271
|
+
* Whether to return the full updated ribbon entities in the response.
|
|
272
|
+
*
|
|
273
|
+
* Default: `false`
|
|
274
|
+
*/
|
|
275
|
+
returnEntity?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Fields to include in the response.
|
|
278
|
+
*
|
|
279
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
280
|
+
* @maxSize 100
|
|
281
|
+
*/
|
|
282
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
283
|
+
}
|
|
284
|
+
interface MaskedRibbon {
|
|
285
|
+
/** Ribbon to update. */
|
|
286
|
+
ribbon?: Ribbon;
|
|
287
|
+
/** Explicit list of fields to update. */
|
|
288
|
+
fieldMask?: string[];
|
|
289
|
+
}
|
|
290
|
+
interface BulkUpdateRibbonsResponse {
|
|
291
|
+
/**
|
|
292
|
+
* Ribbons updated by bulk action.
|
|
293
|
+
* @maxSize 100
|
|
294
|
+
*/
|
|
295
|
+
results?: V3BulkRibbonResult[];
|
|
296
|
+
/** Bulk action metadata. */
|
|
297
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
298
|
+
}
|
|
299
|
+
interface GetOrCreateRibbonRequest {
|
|
300
|
+
/**
|
|
301
|
+
* Ribbon name to retrieve or create.
|
|
302
|
+
* @minLength 1
|
|
303
|
+
* @maxLength 30
|
|
304
|
+
*/
|
|
305
|
+
ribbonName: string;
|
|
306
|
+
/**
|
|
307
|
+
* Fields to include in the response.
|
|
308
|
+
*
|
|
309
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
310
|
+
* @maxSize 100
|
|
311
|
+
*/
|
|
312
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
313
|
+
}
|
|
314
|
+
interface GetOrCreateRibbonResponse {
|
|
315
|
+
/** Ribbon. */
|
|
316
|
+
ribbon?: Ribbon;
|
|
317
|
+
}
|
|
318
|
+
interface BulkGetOrCreateRibbonsRequest {
|
|
319
|
+
/**
|
|
320
|
+
* Ribbon names to retrieve or create.
|
|
321
|
+
* @minLength 1
|
|
322
|
+
* @maxLength 30
|
|
323
|
+
* @minSize 1
|
|
324
|
+
* @maxSize 100
|
|
325
|
+
*/
|
|
326
|
+
ribbonNames: string[];
|
|
327
|
+
/**
|
|
328
|
+
* Fields to include in the response.
|
|
329
|
+
*
|
|
330
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
331
|
+
* @maxSize 100
|
|
332
|
+
*/
|
|
333
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
334
|
+
}
|
|
335
|
+
interface BulkGetOrCreateRibbonsResponse {
|
|
336
|
+
/**
|
|
337
|
+
* Ribbons retrieved or created by bulk action.
|
|
338
|
+
* @maxSize 100
|
|
339
|
+
*/
|
|
340
|
+
results?: V3BulkRibbonResult[];
|
|
341
|
+
/** Bulk action metadata. */
|
|
342
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
343
|
+
}
|
|
344
|
+
interface BulkDeleteRibbonsRequest {
|
|
345
|
+
/**
|
|
346
|
+
* IDs of ribbons to delete.
|
|
347
|
+
* @format GUID
|
|
348
|
+
* @minSize 1
|
|
349
|
+
* @maxSize 100
|
|
350
|
+
*/
|
|
351
|
+
ribbonIds: string[];
|
|
352
|
+
}
|
|
353
|
+
interface BulkDeleteRibbonsResponse {
|
|
354
|
+
/**
|
|
355
|
+
* Ribbons deleted by bulk action.
|
|
356
|
+
* @maxSize 100
|
|
357
|
+
*/
|
|
358
|
+
results?: BulkRibbonResult[];
|
|
359
|
+
/** Bulk action metadata. */
|
|
360
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
361
|
+
}
|
|
362
|
+
interface BulkRibbonResult {
|
|
363
|
+
/** Bulk action metadata for ribbon. */
|
|
364
|
+
itemMetadata?: ItemMetadata;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
368
|
+
getUrl: (context: any) => string;
|
|
369
|
+
httpMethod: K;
|
|
370
|
+
path: string;
|
|
371
|
+
pathParams: M;
|
|
372
|
+
__requestType: T;
|
|
373
|
+
__originalRequestType: S;
|
|
374
|
+
__responseType: Q;
|
|
375
|
+
__originalResponseType: R;
|
|
376
|
+
};
|
|
377
|
+
declare function createRibbon(): __PublicMethodMetaInfo<'POST', {}, CreateRibbonRequest$1, CreateRibbonRequest, CreateRibbonResponse$1, CreateRibbonResponse>;
|
|
378
|
+
declare function getRibbon(): __PublicMethodMetaInfo<'GET', {
|
|
379
|
+
ribbonId: string;
|
|
380
|
+
}, GetRibbonRequest$1, GetRibbonRequest, GetRibbonResponse$1, GetRibbonResponse>;
|
|
381
|
+
declare function updateRibbon(): __PublicMethodMetaInfo<'PATCH', {
|
|
382
|
+
ribbonId: string;
|
|
383
|
+
}, UpdateRibbonRequest$1, UpdateRibbonRequest, UpdateRibbonResponse$1, UpdateRibbonResponse>;
|
|
384
|
+
declare function deleteRibbon(): __PublicMethodMetaInfo<'DELETE', {
|
|
385
|
+
ribbonId: string;
|
|
386
|
+
}, DeleteRibbonRequest$1, DeleteRibbonRequest, DeleteRibbonResponse$1, DeleteRibbonResponse>;
|
|
387
|
+
declare function queryRibbons(): __PublicMethodMetaInfo<'POST', {}, QueryRibbonsRequest$1, QueryRibbonsRequest, QueryRibbonsResponse$1, QueryRibbonsResponse>;
|
|
388
|
+
declare function bulkCreateRibbons(): __PublicMethodMetaInfo<'POST', {}, BulkCreateRibbonsRequest$1, BulkCreateRibbonsRequest, BulkCreateRibbonsResponse$1, BulkCreateRibbonsResponse>;
|
|
389
|
+
declare function bulkUpdateRibbons(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateRibbonsRequest$1, BulkUpdateRibbonsRequest, BulkUpdateRibbonsResponse$1, BulkUpdateRibbonsResponse>;
|
|
390
|
+
declare function getOrCreateRibbon(): __PublicMethodMetaInfo<'POST', {}, GetOrCreateRibbonRequest$1, GetOrCreateRibbonRequest, GetOrCreateRibbonResponse$1, GetOrCreateRibbonResponse>;
|
|
391
|
+
declare function bulkGetOrCreateRibbons(): __PublicMethodMetaInfo<'POST', {}, BulkGetOrCreateRibbonsRequest$1, BulkGetOrCreateRibbonsRequest, BulkGetOrCreateRibbonsResponse$1, BulkGetOrCreateRibbonsResponse>;
|
|
392
|
+
declare function bulkDeleteRibbons(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteRibbonsRequest$1, BulkDeleteRibbonsRequest, BulkDeleteRibbonsResponse$1, BulkDeleteRibbonsResponse>;
|
|
393
|
+
|
|
394
|
+
export { type __PublicMethodMetaInfo, bulkCreateRibbons, bulkDeleteRibbons, bulkGetOrCreateRibbons, bulkUpdateRibbons, createRibbon, deleteRibbon, getOrCreateRibbon, getRibbon, queryRibbons, updateRibbon };
|