repzo 1.0.130 → 1.0.131
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/lib/index.d.ts +759 -1549
- package/lib/index.js +1989 -3242
- package/lib/types/index.d.ts +12740 -13928
- package/package.json +1 -1
- package/src/index.ts +85 -83
- package/src/oas/brand.yaml +17 -17
- package/src/oas/category.yaml +17 -17
- package/src/oas/client.yaml +17 -17
- package/src/oas/measureunit-family.yaml +18 -18
- package/src/oas/measureunit.yaml +24 -24
- package/src/oas/media.yaml +151 -24
- package/src/oas/pricelist-item.yaml +20 -20
- package/src/oas/pricelist.yaml +17 -17
- package/src/oas/product-group.yaml +17 -17
- package/src/oas/product.yaml +19 -19
- package/src/oas/rep.yaml +17 -17
- package/src/oas/return-reason.yaml +17 -17
- package/src/oas/route.yaml +17 -17
- package/src/oas/subcategory.yaml +17 -17
- package/src/oas/tag.yaml +17 -17
- package/src/oas/tax.yaml +17 -17
- package/src/oas/team.yaml +17 -17
- package/src/oas/variant.yaml +17 -17
- package/src/oas/warehouse.yaml +17 -17
- package/src/types/index.ts +1 -0
- package/test.ts +0 -2
package/src/oas/media.yaml
CHANGED
|
@@ -52,7 +52,23 @@ paths:
|
|
|
52
52
|
type: boolean
|
|
53
53
|
document_type:
|
|
54
54
|
type: string
|
|
55
|
-
enum:
|
|
55
|
+
enum:
|
|
56
|
+
[
|
|
57
|
+
html,
|
|
58
|
+
csv,
|
|
59
|
+
json,
|
|
60
|
+
image,
|
|
61
|
+
pdf,
|
|
62
|
+
ppt,
|
|
63
|
+
pptx,
|
|
64
|
+
xls,
|
|
65
|
+
xlsx,
|
|
66
|
+
doc,
|
|
67
|
+
docx,
|
|
68
|
+
images,
|
|
69
|
+
zip,
|
|
70
|
+
pt,
|
|
71
|
+
]
|
|
56
72
|
from_updatedAt:
|
|
57
73
|
type: number
|
|
58
74
|
from__id:
|
|
@@ -72,12 +88,12 @@ paths:
|
|
|
72
88
|
enum: [asc, desc]
|
|
73
89
|
description: Query parameters for filtering media
|
|
74
90
|
responses:
|
|
75
|
-
|
|
91
|
+
"200":
|
|
76
92
|
description: A list of media
|
|
77
93
|
content:
|
|
78
94
|
application/json:
|
|
79
95
|
schema:
|
|
80
|
-
$ref:
|
|
96
|
+
$ref: "#/components/schemas/MediaFindResult"
|
|
81
97
|
post:
|
|
82
98
|
summary: Create media
|
|
83
99
|
operationId: createMedia
|
|
@@ -86,14 +102,14 @@ paths:
|
|
|
86
102
|
content:
|
|
87
103
|
application/json:
|
|
88
104
|
schema:
|
|
89
|
-
$ref:
|
|
105
|
+
$ref: "#/components/schemas/MediaCreateBody"
|
|
90
106
|
responses:
|
|
91
|
-
|
|
107
|
+
"201":
|
|
92
108
|
description: Media created
|
|
93
109
|
content:
|
|
94
110
|
application/json:
|
|
95
111
|
schema:
|
|
96
|
-
$ref:
|
|
112
|
+
$ref: "#/components/schemas/MediaCreateResult"
|
|
97
113
|
/media/{id}:
|
|
98
114
|
get:
|
|
99
115
|
summary: Get media by ID
|
|
@@ -105,12 +121,12 @@ paths:
|
|
|
105
121
|
schema:
|
|
106
122
|
type: string
|
|
107
123
|
responses:
|
|
108
|
-
|
|
124
|
+
"200":
|
|
109
125
|
description: Media details
|
|
110
126
|
content:
|
|
111
127
|
application/json:
|
|
112
128
|
schema:
|
|
113
|
-
$ref:
|
|
129
|
+
$ref: "#/components/schemas/MediaGetResult"
|
|
114
130
|
put:
|
|
115
131
|
summary: Update media
|
|
116
132
|
operationId: updateMedia
|
|
@@ -125,14 +141,14 @@ paths:
|
|
|
125
141
|
content:
|
|
126
142
|
application/json:
|
|
127
143
|
schema:
|
|
128
|
-
$ref:
|
|
144
|
+
$ref: "#/components/schemas/MediaUpdateBody"
|
|
129
145
|
responses:
|
|
130
|
-
|
|
146
|
+
"200":
|
|
131
147
|
description: Media updated
|
|
132
148
|
content:
|
|
133
149
|
application/json:
|
|
134
150
|
schema:
|
|
135
|
-
$ref:
|
|
151
|
+
$ref: "#/components/schemas/MediaUpdateResult"
|
|
136
152
|
delete:
|
|
137
153
|
summary: Remove media
|
|
138
154
|
operationId: removeMedia
|
|
@@ -143,12 +159,12 @@ paths:
|
|
|
143
159
|
schema:
|
|
144
160
|
type: string
|
|
145
161
|
responses:
|
|
146
|
-
|
|
162
|
+
"200":
|
|
147
163
|
description: Media removed
|
|
148
164
|
content:
|
|
149
165
|
application/json:
|
|
150
166
|
schema:
|
|
151
|
-
$ref:
|
|
167
|
+
$ref: "#/components/schemas/MediaRemoveResult"
|
|
152
168
|
components:
|
|
153
169
|
schemas:
|
|
154
170
|
MediaFindResult:
|
|
@@ -158,7 +174,7 @@ components:
|
|
|
158
174
|
data:
|
|
159
175
|
type: array
|
|
160
176
|
items:
|
|
161
|
-
$ref:
|
|
177
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
162
178
|
total_result:
|
|
163
179
|
type: number
|
|
164
180
|
description: Total number of media
|
|
@@ -209,11 +225,48 @@ components:
|
|
|
209
225
|
description: URL of the media
|
|
210
226
|
document_type:
|
|
211
227
|
type: string
|
|
212
|
-
enum:
|
|
228
|
+
enum:
|
|
229
|
+
[
|
|
230
|
+
html,
|
|
231
|
+
csv,
|
|
232
|
+
json,
|
|
233
|
+
image,
|
|
234
|
+
pdf,
|
|
235
|
+
ppt,
|
|
236
|
+
pptx,
|
|
237
|
+
xls,
|
|
238
|
+
xlsx,
|
|
239
|
+
doc,
|
|
240
|
+
docx,
|
|
241
|
+
images,
|
|
242
|
+
zip,
|
|
243
|
+
pt,
|
|
244
|
+
]
|
|
213
245
|
description: Type of media document
|
|
214
246
|
parent_document_type:
|
|
215
247
|
type: string
|
|
216
|
-
enum:
|
|
248
|
+
enum:
|
|
249
|
+
[
|
|
250
|
+
clients,
|
|
251
|
+
asset,
|
|
252
|
+
assetUnit,
|
|
253
|
+
workorder,
|
|
254
|
+
clientLocation,
|
|
255
|
+
clientContact,
|
|
256
|
+
commentsThread,
|
|
257
|
+
workorderRequest,
|
|
258
|
+
workorderPortal,
|
|
259
|
+
invoice,
|
|
260
|
+
products,
|
|
261
|
+
productvariations,
|
|
262
|
+
representatives,
|
|
263
|
+
productcategories,
|
|
264
|
+
productSubCategory,
|
|
265
|
+
speciality,
|
|
266
|
+
line,
|
|
267
|
+
banner,
|
|
268
|
+
intgAvailableApps,
|
|
269
|
+
]
|
|
217
270
|
description: Type of parent document
|
|
218
271
|
parent_document_key:
|
|
219
272
|
type: string
|
|
@@ -260,11 +313,48 @@ components:
|
|
|
260
313
|
description: URL of the media
|
|
261
314
|
document_type:
|
|
262
315
|
type: string
|
|
263
|
-
enum:
|
|
316
|
+
enum:
|
|
317
|
+
[
|
|
318
|
+
html,
|
|
319
|
+
csv,
|
|
320
|
+
json,
|
|
321
|
+
image,
|
|
322
|
+
pdf,
|
|
323
|
+
ppt,
|
|
324
|
+
pptx,
|
|
325
|
+
xls,
|
|
326
|
+
xlsx,
|
|
327
|
+
doc,
|
|
328
|
+
docx,
|
|
329
|
+
images,
|
|
330
|
+
zip,
|
|
331
|
+
pt,
|
|
332
|
+
]
|
|
264
333
|
description: Type of media document
|
|
265
334
|
parent_document_type:
|
|
266
335
|
type: string
|
|
267
|
-
enum:
|
|
336
|
+
enum:
|
|
337
|
+
[
|
|
338
|
+
clients,
|
|
339
|
+
asset,
|
|
340
|
+
assetUnit,
|
|
341
|
+
workorder,
|
|
342
|
+
clientLocation,
|
|
343
|
+
clientContact,
|
|
344
|
+
commentsThread,
|
|
345
|
+
workorderRequest,
|
|
346
|
+
workorderPortal,
|
|
347
|
+
invoice,
|
|
348
|
+
products,
|
|
349
|
+
productvariations,
|
|
350
|
+
representatives,
|
|
351
|
+
productcategories,
|
|
352
|
+
productSubCategory,
|
|
353
|
+
speciality,
|
|
354
|
+
line,
|
|
355
|
+
banner,
|
|
356
|
+
intgAvailableApps,
|
|
357
|
+
]
|
|
268
358
|
description: Type of parent document
|
|
269
359
|
parent_document_key:
|
|
270
360
|
type: string
|
|
@@ -282,10 +372,10 @@ components:
|
|
|
282
372
|
type: string
|
|
283
373
|
description: Company namespaces
|
|
284
374
|
MediaCreateResult:
|
|
285
|
-
$ref:
|
|
375
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
286
376
|
description: Result of creating media
|
|
287
377
|
MediaGetResult:
|
|
288
|
-
$ref:
|
|
378
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
289
379
|
description: Result of getting media
|
|
290
380
|
MediaUpdateBody:
|
|
291
381
|
type: object
|
|
@@ -302,11 +392,48 @@ components:
|
|
|
302
392
|
description: URL of the media
|
|
303
393
|
document_type:
|
|
304
394
|
type: string
|
|
305
|
-
enum:
|
|
395
|
+
enum:
|
|
396
|
+
[
|
|
397
|
+
html,
|
|
398
|
+
csv,
|
|
399
|
+
json,
|
|
400
|
+
image,
|
|
401
|
+
pdf,
|
|
402
|
+
ppt,
|
|
403
|
+
pptx,
|
|
404
|
+
xls,
|
|
405
|
+
xlsx,
|
|
406
|
+
doc,
|
|
407
|
+
docx,
|
|
408
|
+
images,
|
|
409
|
+
zip,
|
|
410
|
+
pt,
|
|
411
|
+
]
|
|
306
412
|
description: Type of media document
|
|
307
413
|
parent_document_type:
|
|
308
414
|
type: string
|
|
309
|
-
enum:
|
|
415
|
+
enum:
|
|
416
|
+
[
|
|
417
|
+
clients,
|
|
418
|
+
asset,
|
|
419
|
+
assetUnit,
|
|
420
|
+
workorder,
|
|
421
|
+
clientLocation,
|
|
422
|
+
clientContact,
|
|
423
|
+
commentsThread,
|
|
424
|
+
workorderRequest,
|
|
425
|
+
workorderPortal,
|
|
426
|
+
invoice,
|
|
427
|
+
products,
|
|
428
|
+
productvariations,
|
|
429
|
+
representatives,
|
|
430
|
+
productcategories,
|
|
431
|
+
productSubCategory,
|
|
432
|
+
speciality,
|
|
433
|
+
line,
|
|
434
|
+
banner,
|
|
435
|
+
intgAvailableApps,
|
|
436
|
+
]
|
|
310
437
|
description: Type of parent document
|
|
311
438
|
parent_document_key:
|
|
312
439
|
type: string
|
|
@@ -338,8 +465,8 @@ components:
|
|
|
338
465
|
type: number
|
|
339
466
|
description: Version number
|
|
340
467
|
MediaUpdateResult:
|
|
341
|
-
$ref:
|
|
468
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
342
469
|
description: Result of updating media
|
|
343
470
|
MediaRemoveResult:
|
|
344
|
-
$ref:
|
|
471
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
345
472
|
description: Result of removing media
|
|
@@ -53,12 +53,12 @@ paths:
|
|
|
53
53
|
enum: [product, variant, pricelist]
|
|
54
54
|
description: Query parameters for filtering price list items
|
|
55
55
|
responses:
|
|
56
|
-
|
|
56
|
+
"200":
|
|
57
57
|
description: A list of price list items
|
|
58
58
|
content:
|
|
59
59
|
application/json:
|
|
60
60
|
schema:
|
|
61
|
-
$ref:
|
|
61
|
+
$ref: "#/components/schemas/PriceListItemFindResult"
|
|
62
62
|
post:
|
|
63
63
|
summary: Create a price list item
|
|
64
64
|
operationId: createPriceListItem
|
|
@@ -67,14 +67,14 @@ paths:
|
|
|
67
67
|
content:
|
|
68
68
|
application/json:
|
|
69
69
|
schema:
|
|
70
|
-
$ref:
|
|
70
|
+
$ref: "#/components/schemas/PriceListItemCreateBody"
|
|
71
71
|
responses:
|
|
72
|
-
|
|
72
|
+
"201":
|
|
73
73
|
description: Price list item created
|
|
74
74
|
content:
|
|
75
75
|
application/json:
|
|
76
76
|
schema:
|
|
77
|
-
$ref:
|
|
77
|
+
$ref: "#/components/schemas/PriceListItemCreateResult"
|
|
78
78
|
/pricelistitem/{id}:
|
|
79
79
|
get:
|
|
80
80
|
summary: Get a price list item by ID
|
|
@@ -86,12 +86,12 @@ paths:
|
|
|
86
86
|
schema:
|
|
87
87
|
type: string
|
|
88
88
|
responses:
|
|
89
|
-
|
|
89
|
+
"200":
|
|
90
90
|
description: Price list item details
|
|
91
91
|
content:
|
|
92
92
|
application/json:
|
|
93
93
|
schema:
|
|
94
|
-
$ref:
|
|
94
|
+
$ref: "#/components/schemas/PriceListItemGetResult"
|
|
95
95
|
put:
|
|
96
96
|
summary: Update a price list item
|
|
97
97
|
operationId: updatePriceListItem
|
|
@@ -106,14 +106,14 @@ paths:
|
|
|
106
106
|
content:
|
|
107
107
|
application/json:
|
|
108
108
|
schema:
|
|
109
|
-
$ref:
|
|
109
|
+
$ref: "#/components/schemas/PriceListItemUpdateBody"
|
|
110
110
|
responses:
|
|
111
|
-
|
|
111
|
+
"200":
|
|
112
112
|
description: Price list item updated
|
|
113
113
|
content:
|
|
114
114
|
application/json:
|
|
115
115
|
schema:
|
|
116
|
-
$ref:
|
|
116
|
+
$ref: "#/components/schemas/PriceListItemUpdateResult"
|
|
117
117
|
delete:
|
|
118
118
|
summary: Remove a price list item
|
|
119
119
|
operationId: removePriceListItem
|
|
@@ -124,12 +124,12 @@ paths:
|
|
|
124
124
|
schema:
|
|
125
125
|
type: string
|
|
126
126
|
responses:
|
|
127
|
-
|
|
127
|
+
"200":
|
|
128
128
|
description: Price list item removed
|
|
129
129
|
content:
|
|
130
130
|
application/json:
|
|
131
131
|
schema:
|
|
132
|
-
$ref:
|
|
132
|
+
$ref: "#/components/schemas/PriceListItemRemoveResult"
|
|
133
133
|
components:
|
|
134
134
|
schemas:
|
|
135
135
|
PriceListItemFindResult:
|
|
@@ -140,21 +140,21 @@ components:
|
|
|
140
140
|
type: array
|
|
141
141
|
items:
|
|
142
142
|
allOf:
|
|
143
|
-
- $ref:
|
|
143
|
+
- $ref: "#/components/schemas/PriceListItemSchema"
|
|
144
144
|
- type: object
|
|
145
145
|
properties:
|
|
146
146
|
product_id:
|
|
147
147
|
oneOf:
|
|
148
148
|
- type: string
|
|
149
|
-
- $ref:
|
|
149
|
+
- $ref: "#/components/schemas/ProductReference"
|
|
150
150
|
variant_id:
|
|
151
151
|
oneOf:
|
|
152
152
|
- type: string
|
|
153
|
-
- $ref:
|
|
153
|
+
- $ref: "#/components/schemas/VariantReference"
|
|
154
154
|
pricelist_id:
|
|
155
155
|
oneOf:
|
|
156
156
|
- type: string
|
|
157
|
-
- $ref:
|
|
157
|
+
- $ref: "#/components/schemas/PriceListReference"
|
|
158
158
|
total_result:
|
|
159
159
|
type: number
|
|
160
160
|
description: Total number of price list items
|
|
@@ -314,10 +314,10 @@ components:
|
|
|
314
314
|
type: string
|
|
315
315
|
description: Company namespaces
|
|
316
316
|
PriceListItemCreateResult:
|
|
317
|
-
$ref:
|
|
317
|
+
$ref: "#/components/schemas/PriceListItemSchema"
|
|
318
318
|
description: Result of creating a price list item
|
|
319
319
|
PriceListItemGetResult:
|
|
320
|
-
$ref:
|
|
320
|
+
$ref: "#/components/schemas/PriceListItemSchema"
|
|
321
321
|
description: Result of getting a price list item
|
|
322
322
|
PriceListItemUpdateBody:
|
|
323
323
|
type: object
|
|
@@ -362,8 +362,8 @@ components:
|
|
|
362
362
|
type: number
|
|
363
363
|
description: Version number
|
|
364
364
|
PriceListItemUpdateResult:
|
|
365
|
-
$ref:
|
|
365
|
+
$ref: "#/components/schemas/PriceListItemSchema"
|
|
366
366
|
description: Result of updating a price list item
|
|
367
367
|
PriceListItemRemoveResult:
|
|
368
|
-
$ref:
|
|
368
|
+
$ref: "#/components/schemas/PriceListItemSchema"
|
|
369
369
|
description: Result of removing a price list item
|
package/src/oas/pricelist.yaml
CHANGED
|
@@ -57,12 +57,12 @@ paths:
|
|
|
57
57
|
enum: [asc, desc]
|
|
58
58
|
description: Query parameters for filtering price lists
|
|
59
59
|
responses:
|
|
60
|
-
|
|
60
|
+
"200":
|
|
61
61
|
description: A list of price lists
|
|
62
62
|
content:
|
|
63
63
|
application/json:
|
|
64
64
|
schema:
|
|
65
|
-
$ref:
|
|
65
|
+
$ref: "#/components/schemas/PriceListFindResult"
|
|
66
66
|
post:
|
|
67
67
|
summary: Create a price list
|
|
68
68
|
operationId: createPriceList
|
|
@@ -71,14 +71,14 @@ paths:
|
|
|
71
71
|
content:
|
|
72
72
|
application/json:
|
|
73
73
|
schema:
|
|
74
|
-
$ref:
|
|
74
|
+
$ref: "#/components/schemas/PriceListCreateBody"
|
|
75
75
|
responses:
|
|
76
|
-
|
|
76
|
+
"201":
|
|
77
77
|
description: Price list created
|
|
78
78
|
content:
|
|
79
79
|
application/json:
|
|
80
80
|
schema:
|
|
81
|
-
$ref:
|
|
81
|
+
$ref: "#/components/schemas/PriceListCreateResult"
|
|
82
82
|
/pricelist/{id}:
|
|
83
83
|
get:
|
|
84
84
|
summary: Get a price list by ID
|
|
@@ -90,12 +90,12 @@ paths:
|
|
|
90
90
|
schema:
|
|
91
91
|
type: string
|
|
92
92
|
responses:
|
|
93
|
-
|
|
93
|
+
"200":
|
|
94
94
|
description: Price list details
|
|
95
95
|
content:
|
|
96
96
|
application/json:
|
|
97
97
|
schema:
|
|
98
|
-
$ref:
|
|
98
|
+
$ref: "#/components/schemas/PriceListGetResult"
|
|
99
99
|
put:
|
|
100
100
|
summary: Update a price list
|
|
101
101
|
operationId: updatePriceList
|
|
@@ -110,14 +110,14 @@ paths:
|
|
|
110
110
|
content:
|
|
111
111
|
application/json:
|
|
112
112
|
schema:
|
|
113
|
-
$ref:
|
|
113
|
+
$ref: "#/components/schemas/PriceListUpdateBody"
|
|
114
114
|
responses:
|
|
115
|
-
|
|
115
|
+
"200":
|
|
116
116
|
description: Price list updated
|
|
117
117
|
content:
|
|
118
118
|
application/json:
|
|
119
119
|
schema:
|
|
120
|
-
$ref:
|
|
120
|
+
$ref: "#/components/schemas/PriceListUpdateResult"
|
|
121
121
|
delete:
|
|
122
122
|
summary: Remove a price list
|
|
123
123
|
operationId: removePriceList
|
|
@@ -128,12 +128,12 @@ paths:
|
|
|
128
128
|
schema:
|
|
129
129
|
type: string
|
|
130
130
|
responses:
|
|
131
|
-
|
|
131
|
+
"200":
|
|
132
132
|
description: Price list removed
|
|
133
133
|
content:
|
|
134
134
|
application/json:
|
|
135
135
|
schema:
|
|
136
|
-
$ref:
|
|
136
|
+
$ref: "#/components/schemas/PriceListRemoveResult"
|
|
137
137
|
components:
|
|
138
138
|
schemas:
|
|
139
139
|
PriceListFindResult:
|
|
@@ -143,7 +143,7 @@ components:
|
|
|
143
143
|
data:
|
|
144
144
|
type: array
|
|
145
145
|
items:
|
|
146
|
-
$ref:
|
|
146
|
+
$ref: "#/components/schemas/PriceListSchema"
|
|
147
147
|
total_result:
|
|
148
148
|
type: number
|
|
149
149
|
description: Total number of price lists
|
|
@@ -241,10 +241,10 @@ components:
|
|
|
241
241
|
type: string
|
|
242
242
|
description: Company namespaces
|
|
243
243
|
PriceListCreateResult:
|
|
244
|
-
$ref:
|
|
244
|
+
$ref: "#/components/schemas/PriceListSchema"
|
|
245
245
|
description: Result of creating a price list
|
|
246
246
|
PriceListGetResult:
|
|
247
|
-
$ref:
|
|
247
|
+
$ref: "#/components/schemas/PriceListSchema"
|
|
248
248
|
description: Result of getting a price list
|
|
249
249
|
PriceListUpdateBody:
|
|
250
250
|
type: object
|
|
@@ -280,8 +280,8 @@ components:
|
|
|
280
280
|
type: number
|
|
281
281
|
description: Version number
|
|
282
282
|
PriceListUpdateResult:
|
|
283
|
-
$ref:
|
|
283
|
+
$ref: "#/components/schemas/PriceListSchema"
|
|
284
284
|
description: Result of updating a price list
|
|
285
285
|
PriceListRemoveResult:
|
|
286
|
-
$ref:
|
|
286
|
+
$ref: "#/components/schemas/PriceListSchema"
|
|
287
287
|
description: Result of removing a price list
|
|
@@ -61,12 +61,12 @@ paths:
|
|
|
61
61
|
type: number
|
|
62
62
|
description: Query parameters for filtering product groups
|
|
63
63
|
responses:
|
|
64
|
-
|
|
64
|
+
"200":
|
|
65
65
|
description: A list of product groups
|
|
66
66
|
content:
|
|
67
67
|
application/json:
|
|
68
68
|
schema:
|
|
69
|
-
$ref:
|
|
69
|
+
$ref: "#/components/schemas/ProductGroupFindResult"
|
|
70
70
|
post:
|
|
71
71
|
summary: Create a product group
|
|
72
72
|
operationId: createProductGroup
|
|
@@ -75,14 +75,14 @@ paths:
|
|
|
75
75
|
content:
|
|
76
76
|
application/json:
|
|
77
77
|
schema:
|
|
78
|
-
$ref:
|
|
78
|
+
$ref: "#/components/schemas/ProductGroupCreateBody"
|
|
79
79
|
responses:
|
|
80
|
-
|
|
80
|
+
"201":
|
|
81
81
|
description: Product group created
|
|
82
82
|
content:
|
|
83
83
|
application/json:
|
|
84
84
|
schema:
|
|
85
|
-
$ref:
|
|
85
|
+
$ref: "#/components/schemas/ProductGroupCreateResult"
|
|
86
86
|
/product-group/{id}:
|
|
87
87
|
get:
|
|
88
88
|
summary: Get a product group by ID
|
|
@@ -94,12 +94,12 @@ paths:
|
|
|
94
94
|
schema:
|
|
95
95
|
type: string
|
|
96
96
|
responses:
|
|
97
|
-
|
|
97
|
+
"200":
|
|
98
98
|
description: Product group details
|
|
99
99
|
content:
|
|
100
100
|
application/json:
|
|
101
101
|
schema:
|
|
102
|
-
$ref:
|
|
102
|
+
$ref: "#/components/schemas/ProductGroupGetResult"
|
|
103
103
|
put:
|
|
104
104
|
summary: Update a product group
|
|
105
105
|
operationId: updateProductGroup
|
|
@@ -114,14 +114,14 @@ paths:
|
|
|
114
114
|
content:
|
|
115
115
|
application/json:
|
|
116
116
|
schema:
|
|
117
|
-
$ref:
|
|
117
|
+
$ref: "#/components/schemas/ProductGroupUpdateBody"
|
|
118
118
|
responses:
|
|
119
|
-
|
|
119
|
+
"200":
|
|
120
120
|
description: Product group updated
|
|
121
121
|
content:
|
|
122
122
|
application/json:
|
|
123
123
|
schema:
|
|
124
|
-
$ref:
|
|
124
|
+
$ref: "#/components/schemas/ProductGroupUpdateResult"
|
|
125
125
|
delete:
|
|
126
126
|
summary: Remove a product group
|
|
127
127
|
operationId: removeProductGroup
|
|
@@ -132,12 +132,12 @@ paths:
|
|
|
132
132
|
schema:
|
|
133
133
|
type: string
|
|
134
134
|
responses:
|
|
135
|
-
|
|
135
|
+
"200":
|
|
136
136
|
description: Product group removed
|
|
137
137
|
content:
|
|
138
138
|
application/json:
|
|
139
139
|
schema:
|
|
140
|
-
$ref:
|
|
140
|
+
$ref: "#/components/schemas/ProductGroupRemoveResult"
|
|
141
141
|
components:
|
|
142
142
|
schemas:
|
|
143
143
|
ProductGroupFindResult:
|
|
@@ -147,7 +147,7 @@ components:
|
|
|
147
147
|
data:
|
|
148
148
|
type: array
|
|
149
149
|
items:
|
|
150
|
-
$ref:
|
|
150
|
+
$ref: "#/components/schemas/ProductGroupSchema"
|
|
151
151
|
total_result:
|
|
152
152
|
type: number
|
|
153
153
|
description: Total number of product groups
|
|
@@ -233,10 +233,10 @@ components:
|
|
|
233
233
|
type: string
|
|
234
234
|
description: Company namespaces
|
|
235
235
|
ProductGroupCreateResult:
|
|
236
|
-
$ref:
|
|
236
|
+
$ref: "#/components/schemas/ProductGroupSchema"
|
|
237
237
|
description: Result of creating a product group
|
|
238
238
|
ProductGroupGetResult:
|
|
239
|
-
$ref:
|
|
239
|
+
$ref: "#/components/schemas/ProductGroupSchema"
|
|
240
240
|
description: Result of getting a product group
|
|
241
241
|
ProductGroupUpdateBody:
|
|
242
242
|
type: object
|
|
@@ -271,8 +271,8 @@ components:
|
|
|
271
271
|
type: number
|
|
272
272
|
description: Version number
|
|
273
273
|
ProductGroupUpdateResult:
|
|
274
|
-
$ref:
|
|
274
|
+
$ref: "#/components/schemas/ProductGroupSchema"
|
|
275
275
|
description: Result of updating a product group
|
|
276
276
|
ProductGroupRemoveResult:
|
|
277
|
-
$ref:
|
|
277
|
+
$ref: "#/components/schemas/ProductGroupSchema"
|
|
278
278
|
description: Result of removing a product group
|