repzo 1.0.155 → 1.0.156
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/package.json +2 -2
- package/src/index.ts +4890 -0
- package/src/oas/activity-ai-sales-order.yaml +623 -0
- package/src/oas/activity-feedback-v2.yaml +753 -0
- package/src/oas/activity-feedback.yaml +645 -0
- package/src/oas/activity-storecheck.yaml +379 -0
- package/src/oas/adjust-account.yaml +241 -0
- package/src/oas/adjust-inventory.yaml +133 -0
- package/src/oas/approval-request.yaml +211 -0
- package/src/oas/approvals.yaml +176 -0
- package/src/oas/asset-part-receival.yaml +591 -0
- package/src/oas/asset-part-transfer.yaml +618 -0
- package/src/oas/asset-part-type.yaml +383 -0
- package/src/oas/asset-part-unit.yaml +722 -0
- package/src/oas/asset-part.yaml +485 -0
- package/src/oas/asset-type.yaml +180 -0
- package/src/oas/asset-unit.yaml +705 -0
- package/src/oas/asset.yaml +204 -0
- package/src/oas/banks.yaml +168 -0
- package/src/oas/bankslists.yaml +168 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/checks.yaml +247 -0
- package/src/oas/client-channel.yaml +480 -0
- package/src/oas/client-contact.yaml +665 -0
- package/src/oas/client-location.yaml +687 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/contract-installment.yaml +740 -0
- package/src/oas/contract.yaml +210 -0
- package/src/oas/custom-list-item.yaml +168 -0
- package/src/oas/custom-list.yaml +168 -0
- package/src/oas/custom-status.yaml +168 -0
- package/src/oas/day.yaml +246 -0
- package/src/oas/feedback-options.yaml +802 -0
- package/src/oas/fullinvoices.yaml +584 -0
- package/src/oas/integration-action-log.yaml +361 -0
- package/src/oas/integration-app.yaml +303 -0
- package/src/oas/integration-command-log.yaml +381 -0
- package/src/oas/inventory-adjustment-reason.yaml +165 -0
- package/src/oas/inventory.yaml +64 -0
- package/src/oas/mail-unsubscribe.yaml +463 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media-storage.yaml +329 -0
- package/src/oas/media.yaml +472 -0
- package/src/oas/msl-products.yaml +180 -0
- package/src/oas/msl.yaml +186 -0
- package/src/oas/ocr-invoice-job-group.yaml +528 -0
- package/src/oas/ocr-invoice-job-page.yaml +602 -0
- package/src/oas/ocr-invoice-job-template.yaml +628 -0
- package/src/oas/ocr-invoice-job.yaml +603 -0
- package/src/oas/patch-action.yaml +421 -0
- package/src/oas/payment-terms.yaml +235 -0
- package/src/oas/payments.yaml +536 -0
- package/src/oas/pricelist-item.yaml +369 -0
- package/src/oas/pricelist.yaml +287 -0
- package/src/oas/product-group.yaml +278 -0
- package/src/oas/product-modifiers-group.yaml +524 -0
- package/src/oas/product.yaml +578 -0
- package/src/oas/proforma.yaml +180 -0
- package/src/oas/quick-convert-to-pdf.yaml +95 -0
- package/src/oas/receiving-material.yaml +336 -0
- package/src/oas/refund.yaml +281 -0
- package/src/oas/rep-balance-summary.yaml +135 -0
- package/src/oas/rep.yaml +1824 -0
- package/src/oas/return-asset-part-unit.yaml +573 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/safe-invoice-serial-counter.yaml +525 -0
- package/src/oas/settings.yaml +123 -0
- package/src/oas/settlement.yaml +505 -0
- package/src/oas/speciality.yaml +447 -0
- package/src/oas/store-asset-part-unit.yaml +658 -0
- package/src/oas/storecheck-template.yaml +415 -0
- package/src/oas/subcategory.yaml +355 -0
- package/src/oas/supplier.yaml +183 -0
- package/src/oas/svix-integration.yaml +335 -0
- package/src/oas/tag.yaml +272 -0
- package/src/oas/tax.yaml +303 -0
- package/src/oas/team.yaml +268 -0
- package/src/oas/transfer.yaml +347 -0
- package/src/oas/update-integration-meta.yaml +387 -0
- package/src/oas/variant.yaml +569 -0
- package/src/oas/visit.yaml +174 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/oas/workorder-category.yaml +751 -0
- package/src/oas/workorder-portal-link.yaml +811 -0
- package/src/oas/workorder-portal.yaml +650 -0
- package/src/oas/workorder-request.yaml +193 -0
- package/src/oas/workorder.yaml +204 -0
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Media
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Media endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/media:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find media
|
|
12
|
+
operationId: findMedia
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
properties:
|
|
19
|
+
_id:
|
|
20
|
+
oneOf:
|
|
21
|
+
- type: array
|
|
22
|
+
items:
|
|
23
|
+
type: string
|
|
24
|
+
- type: string
|
|
25
|
+
search:
|
|
26
|
+
type: string
|
|
27
|
+
name:
|
|
28
|
+
oneOf:
|
|
29
|
+
- type: array
|
|
30
|
+
items:
|
|
31
|
+
type: string
|
|
32
|
+
- type: string
|
|
33
|
+
description:
|
|
34
|
+
oneOf:
|
|
35
|
+
- type: array
|
|
36
|
+
items:
|
|
37
|
+
type: string
|
|
38
|
+
- type: string
|
|
39
|
+
parent_document_key:
|
|
40
|
+
oneOf:
|
|
41
|
+
- type: array
|
|
42
|
+
items:
|
|
43
|
+
type: string
|
|
44
|
+
- type: string
|
|
45
|
+
url:
|
|
46
|
+
oneOf:
|
|
47
|
+
- type: array
|
|
48
|
+
items:
|
|
49
|
+
type: string
|
|
50
|
+
- type: string
|
|
51
|
+
disabled:
|
|
52
|
+
type: boolean
|
|
53
|
+
document_type:
|
|
54
|
+
type: string
|
|
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
|
+
]
|
|
72
|
+
from_updatedAt:
|
|
73
|
+
type: number
|
|
74
|
+
from__id:
|
|
75
|
+
type: string
|
|
76
|
+
to__id:
|
|
77
|
+
type: string
|
|
78
|
+
sortBy:
|
|
79
|
+
type: array
|
|
80
|
+
items:
|
|
81
|
+
type: object
|
|
82
|
+
properties:
|
|
83
|
+
field:
|
|
84
|
+
type: string
|
|
85
|
+
enum: [_id]
|
|
86
|
+
type:
|
|
87
|
+
type: string
|
|
88
|
+
enum: [asc, desc]
|
|
89
|
+
description: Query parameters for filtering media
|
|
90
|
+
responses:
|
|
91
|
+
"200":
|
|
92
|
+
description: A list of media
|
|
93
|
+
content:
|
|
94
|
+
application/json:
|
|
95
|
+
schema:
|
|
96
|
+
$ref: "#/components/schemas/MediaFindResult"
|
|
97
|
+
post:
|
|
98
|
+
summary: Create media
|
|
99
|
+
operationId: createMedia
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/MediaCreateBody"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: Media created
|
|
109
|
+
content:
|
|
110
|
+
application/json:
|
|
111
|
+
schema:
|
|
112
|
+
$ref: "#/components/schemas/MediaCreateResult"
|
|
113
|
+
/media/{id}:
|
|
114
|
+
get:
|
|
115
|
+
summary: Get media by ID
|
|
116
|
+
operationId: getMedia
|
|
117
|
+
parameters:
|
|
118
|
+
- in: path
|
|
119
|
+
name: id
|
|
120
|
+
required: true
|
|
121
|
+
schema:
|
|
122
|
+
type: string
|
|
123
|
+
responses:
|
|
124
|
+
"200":
|
|
125
|
+
description: Media details
|
|
126
|
+
content:
|
|
127
|
+
application/json:
|
|
128
|
+
schema:
|
|
129
|
+
$ref: "#/components/schemas/MediaGetResult"
|
|
130
|
+
put:
|
|
131
|
+
summary: Update media
|
|
132
|
+
operationId: updateMedia
|
|
133
|
+
parameters:
|
|
134
|
+
- in: path
|
|
135
|
+
name: id
|
|
136
|
+
required: true
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
requestBody:
|
|
140
|
+
required: true
|
|
141
|
+
content:
|
|
142
|
+
application/json:
|
|
143
|
+
schema:
|
|
144
|
+
$ref: "#/components/schemas/MediaUpdateBody"
|
|
145
|
+
responses:
|
|
146
|
+
"200":
|
|
147
|
+
description: Media updated
|
|
148
|
+
content:
|
|
149
|
+
application/json:
|
|
150
|
+
schema:
|
|
151
|
+
$ref: "#/components/schemas/MediaUpdateResult"
|
|
152
|
+
delete:
|
|
153
|
+
summary: Remove media
|
|
154
|
+
operationId: removeMedia
|
|
155
|
+
parameters:
|
|
156
|
+
- in: path
|
|
157
|
+
name: id
|
|
158
|
+
required: true
|
|
159
|
+
schema:
|
|
160
|
+
type: string
|
|
161
|
+
responses:
|
|
162
|
+
"200":
|
|
163
|
+
description: Media removed
|
|
164
|
+
content:
|
|
165
|
+
application/json:
|
|
166
|
+
schema:
|
|
167
|
+
$ref: "#/components/schemas/MediaRemoveResult"
|
|
168
|
+
components:
|
|
169
|
+
schemas:
|
|
170
|
+
MediaFindResult:
|
|
171
|
+
type: object
|
|
172
|
+
description: Result of finding media
|
|
173
|
+
properties:
|
|
174
|
+
data:
|
|
175
|
+
type: array
|
|
176
|
+
items:
|
|
177
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
178
|
+
total_result:
|
|
179
|
+
type: number
|
|
180
|
+
description: Total number of media
|
|
181
|
+
current_count:
|
|
182
|
+
type: number
|
|
183
|
+
description: Count of media in current page
|
|
184
|
+
total_pages:
|
|
185
|
+
type: number
|
|
186
|
+
description: Total number of pages
|
|
187
|
+
current_page:
|
|
188
|
+
type: number
|
|
189
|
+
description: Current page number
|
|
190
|
+
per_page:
|
|
191
|
+
type: number
|
|
192
|
+
description: Number of media per page
|
|
193
|
+
first_page_url:
|
|
194
|
+
type: string
|
|
195
|
+
description: URL for the first page
|
|
196
|
+
last_page_url:
|
|
197
|
+
type: string
|
|
198
|
+
description: URL for the last page
|
|
199
|
+
next_page_url:
|
|
200
|
+
type: string
|
|
201
|
+
nullable: true
|
|
202
|
+
description: URL for the next page
|
|
203
|
+
prev_page_url:
|
|
204
|
+
type: string
|
|
205
|
+
nullable: true
|
|
206
|
+
description: URL for the previous page
|
|
207
|
+
path:
|
|
208
|
+
type: string
|
|
209
|
+
description: Base URL path
|
|
210
|
+
MediaSchema:
|
|
211
|
+
type: object
|
|
212
|
+
description: Media schema
|
|
213
|
+
properties:
|
|
214
|
+
_id:
|
|
215
|
+
type: string
|
|
216
|
+
description: Unique identifier for the media
|
|
217
|
+
name:
|
|
218
|
+
type: string
|
|
219
|
+
description: Name of the media
|
|
220
|
+
description:
|
|
221
|
+
type: string
|
|
222
|
+
description: Description of the media
|
|
223
|
+
url:
|
|
224
|
+
type: string
|
|
225
|
+
description: URL of the media
|
|
226
|
+
document_type:
|
|
227
|
+
type: string
|
|
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
|
+
]
|
|
245
|
+
description: Type of media document
|
|
246
|
+
parent_document_type:
|
|
247
|
+
type: string
|
|
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
|
+
]
|
|
270
|
+
description: Type of parent document
|
|
271
|
+
parent_document_key:
|
|
272
|
+
type: string
|
|
273
|
+
description: Key of parent document
|
|
274
|
+
disabled:
|
|
275
|
+
type: boolean
|
|
276
|
+
description: Whether the media is disabled
|
|
277
|
+
integration_meta:
|
|
278
|
+
type: object
|
|
279
|
+
additionalProperties: true
|
|
280
|
+
description: Integration metadata
|
|
281
|
+
company_namespace:
|
|
282
|
+
type: array
|
|
283
|
+
items:
|
|
284
|
+
type: string
|
|
285
|
+
description: Company namespaces
|
|
286
|
+
createdAt:
|
|
287
|
+
type: string
|
|
288
|
+
format: date-time
|
|
289
|
+
description: Creation timestamp
|
|
290
|
+
updatedAt:
|
|
291
|
+
type: string
|
|
292
|
+
format: date-time
|
|
293
|
+
description: Last update timestamp
|
|
294
|
+
__v:
|
|
295
|
+
type: number
|
|
296
|
+
description: Version number
|
|
297
|
+
MediaCreateBody:
|
|
298
|
+
type: object
|
|
299
|
+
description: Body for creating media
|
|
300
|
+
required:
|
|
301
|
+
- name
|
|
302
|
+
- url
|
|
303
|
+
- document_type
|
|
304
|
+
properties:
|
|
305
|
+
name:
|
|
306
|
+
type: string
|
|
307
|
+
description: Name of the media
|
|
308
|
+
description:
|
|
309
|
+
type: string
|
|
310
|
+
description: Description of the media
|
|
311
|
+
url:
|
|
312
|
+
type: string
|
|
313
|
+
description: URL of the media
|
|
314
|
+
document_type:
|
|
315
|
+
type: string
|
|
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
|
+
]
|
|
333
|
+
description: Type of media document
|
|
334
|
+
parent_document_type:
|
|
335
|
+
type: string
|
|
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
|
+
]
|
|
358
|
+
description: Type of parent document
|
|
359
|
+
parent_document_key:
|
|
360
|
+
type: string
|
|
361
|
+
description: Key of parent document
|
|
362
|
+
disabled:
|
|
363
|
+
type: boolean
|
|
364
|
+
description: Whether the media is disabled
|
|
365
|
+
integration_meta:
|
|
366
|
+
type: object
|
|
367
|
+
additionalProperties: true
|
|
368
|
+
description: Integration metadata
|
|
369
|
+
company_namespace:
|
|
370
|
+
type: array
|
|
371
|
+
items:
|
|
372
|
+
type: string
|
|
373
|
+
description: Company namespaces
|
|
374
|
+
MediaCreateResult:
|
|
375
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
376
|
+
description: Result of creating media
|
|
377
|
+
MediaGetResult:
|
|
378
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
379
|
+
description: Result of getting media
|
|
380
|
+
MediaUpdateBody:
|
|
381
|
+
type: object
|
|
382
|
+
description: Body for updating media
|
|
383
|
+
properties:
|
|
384
|
+
name:
|
|
385
|
+
type: string
|
|
386
|
+
description: Name of the media
|
|
387
|
+
description:
|
|
388
|
+
type: string
|
|
389
|
+
description: Description of the media
|
|
390
|
+
url:
|
|
391
|
+
type: string
|
|
392
|
+
description: URL of the media
|
|
393
|
+
document_type:
|
|
394
|
+
type: string
|
|
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
|
+
]
|
|
412
|
+
description: Type of media document
|
|
413
|
+
parent_document_type:
|
|
414
|
+
type: string
|
|
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
|
+
]
|
|
437
|
+
description: Type of parent document
|
|
438
|
+
parent_document_key:
|
|
439
|
+
type: string
|
|
440
|
+
description: Key of parent document
|
|
441
|
+
disabled:
|
|
442
|
+
type: boolean
|
|
443
|
+
description: Whether the media is disabled
|
|
444
|
+
integration_meta:
|
|
445
|
+
type: object
|
|
446
|
+
additionalProperties: true
|
|
447
|
+
description: Integration metadata
|
|
448
|
+
company_namespace:
|
|
449
|
+
type: array
|
|
450
|
+
items:
|
|
451
|
+
type: string
|
|
452
|
+
description: Company namespaces
|
|
453
|
+
_id:
|
|
454
|
+
type: string
|
|
455
|
+
description: Unique identifier for the media
|
|
456
|
+
createdAt:
|
|
457
|
+
type: string
|
|
458
|
+
format: date-time
|
|
459
|
+
description: Creation timestamp
|
|
460
|
+
updatedAt:
|
|
461
|
+
type: string
|
|
462
|
+
format: date-time
|
|
463
|
+
description: Last update timestamp
|
|
464
|
+
__v:
|
|
465
|
+
type: number
|
|
466
|
+
description: Version number
|
|
467
|
+
MediaUpdateResult:
|
|
468
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
469
|
+
description: Result of updating media
|
|
470
|
+
MediaRemoveResult:
|
|
471
|
+
$ref: "#/components/schemas/MediaSchema"
|
|
472
|
+
description: Result of removing media
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - MSL Products
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo MSL Products endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/msl-products:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find MSL products
|
|
12
|
+
operationId: findMSLProducts
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
description: Query parameters for filtering MSL products
|
|
19
|
+
responses:
|
|
20
|
+
"200":
|
|
21
|
+
description: A list of MSL products
|
|
22
|
+
content:
|
|
23
|
+
application/json:
|
|
24
|
+
schema:
|
|
25
|
+
$ref: "#/components/schemas/MSLProductFindResult"
|
|
26
|
+
post:
|
|
27
|
+
summary: Create an MSL product
|
|
28
|
+
operationId: createMSLProduct
|
|
29
|
+
requestBody:
|
|
30
|
+
required: true
|
|
31
|
+
content:
|
|
32
|
+
application/json:
|
|
33
|
+
schema:
|
|
34
|
+
$ref: "#/components/schemas/MSLProductCreateBody"
|
|
35
|
+
responses:
|
|
36
|
+
"201":
|
|
37
|
+
description: MSL product created
|
|
38
|
+
content:
|
|
39
|
+
application/json:
|
|
40
|
+
schema:
|
|
41
|
+
$ref: "#/components/schemas/MSLProductCreateResult"
|
|
42
|
+
/msl-products/{id}:
|
|
43
|
+
get:
|
|
44
|
+
summary: Get an MSL product by ID
|
|
45
|
+
operationId: getMSLProduct
|
|
46
|
+
parameters:
|
|
47
|
+
- in: path
|
|
48
|
+
name: id
|
|
49
|
+
required: true
|
|
50
|
+
schema:
|
|
51
|
+
type: string
|
|
52
|
+
responses:
|
|
53
|
+
"200":
|
|
54
|
+
description: MSL product details
|
|
55
|
+
content:
|
|
56
|
+
application/json:
|
|
57
|
+
schema:
|
|
58
|
+
$ref: "#/components/schemas/MSLProductGetResult"
|
|
59
|
+
put:
|
|
60
|
+
summary: Update an MSL product
|
|
61
|
+
operationId: updateMSLProduct
|
|
62
|
+
parameters:
|
|
63
|
+
- in: path
|
|
64
|
+
name: id
|
|
65
|
+
required: true
|
|
66
|
+
schema:
|
|
67
|
+
type: string
|
|
68
|
+
requestBody:
|
|
69
|
+
required: true
|
|
70
|
+
content:
|
|
71
|
+
application/json:
|
|
72
|
+
schema:
|
|
73
|
+
$ref: "#/components/schemas/MSLProductUpdateBody"
|
|
74
|
+
responses:
|
|
75
|
+
"200":
|
|
76
|
+
description: MSL product updated
|
|
77
|
+
content:
|
|
78
|
+
application/json:
|
|
79
|
+
schema:
|
|
80
|
+
$ref: "#/components/schemas/MSLProductUpdateResult"
|
|
81
|
+
delete:
|
|
82
|
+
summary: Remove an MSL product
|
|
83
|
+
operationId: removeMSLProduct
|
|
84
|
+
parameters:
|
|
85
|
+
- in: path
|
|
86
|
+
name: id
|
|
87
|
+
required: true
|
|
88
|
+
schema:
|
|
89
|
+
type: string
|
|
90
|
+
responses:
|
|
91
|
+
"200":
|
|
92
|
+
description: MSL product removed
|
|
93
|
+
content:
|
|
94
|
+
application/json:
|
|
95
|
+
schema:
|
|
96
|
+
$ref: "#/components/schemas/MSLProductRemoveResult"
|
|
97
|
+
components:
|
|
98
|
+
schemas:
|
|
99
|
+
MSLProductFindResult:
|
|
100
|
+
type: object
|
|
101
|
+
properties:
|
|
102
|
+
data:
|
|
103
|
+
type: array
|
|
104
|
+
items:
|
|
105
|
+
$ref: "#/components/schemas/MSLProduct"
|
|
106
|
+
meta:
|
|
107
|
+
type: object
|
|
108
|
+
MSLProductCreateBody:
|
|
109
|
+
type: object
|
|
110
|
+
properties:
|
|
111
|
+
msl:
|
|
112
|
+
type: string
|
|
113
|
+
product:
|
|
114
|
+
type: string
|
|
115
|
+
variant:
|
|
116
|
+
type: string
|
|
117
|
+
targetQuantity:
|
|
118
|
+
type: number
|
|
119
|
+
achievedQuantity:
|
|
120
|
+
type: number
|
|
121
|
+
disabled:
|
|
122
|
+
type: boolean
|
|
123
|
+
MSLProductCreateResult:
|
|
124
|
+
type: object
|
|
125
|
+
properties:
|
|
126
|
+
data:
|
|
127
|
+
$ref: "#/components/schemas/MSLProduct"
|
|
128
|
+
MSLProductGetResult:
|
|
129
|
+
type: object
|
|
130
|
+
properties:
|
|
131
|
+
data:
|
|
132
|
+
$ref: "#/components/schemas/MSLProduct"
|
|
133
|
+
MSLProductUpdateBody:
|
|
134
|
+
type: object
|
|
135
|
+
properties:
|
|
136
|
+
msl:
|
|
137
|
+
type: string
|
|
138
|
+
product:
|
|
139
|
+
type: string
|
|
140
|
+
variant:
|
|
141
|
+
type: string
|
|
142
|
+
targetQuantity:
|
|
143
|
+
type: number
|
|
144
|
+
achievedQuantity:
|
|
145
|
+
type: number
|
|
146
|
+
disabled:
|
|
147
|
+
type: boolean
|
|
148
|
+
MSLProductUpdateResult:
|
|
149
|
+
type: object
|
|
150
|
+
properties:
|
|
151
|
+
data:
|
|
152
|
+
$ref: "#/components/schemas/MSLProduct"
|
|
153
|
+
MSLProductRemoveResult:
|
|
154
|
+
type: object
|
|
155
|
+
properties:
|
|
156
|
+
success:
|
|
157
|
+
type: boolean
|
|
158
|
+
MSLProduct:
|
|
159
|
+
type: object
|
|
160
|
+
properties:
|
|
161
|
+
_id:
|
|
162
|
+
type: string
|
|
163
|
+
msl:
|
|
164
|
+
type: string
|
|
165
|
+
product:
|
|
166
|
+
type: string
|
|
167
|
+
variant:
|
|
168
|
+
type: string
|
|
169
|
+
targetQuantity:
|
|
170
|
+
type: number
|
|
171
|
+
achievedQuantity:
|
|
172
|
+
type: number
|
|
173
|
+
disabled:
|
|
174
|
+
type: boolean
|
|
175
|
+
createdAt:
|
|
176
|
+
type: string
|
|
177
|
+
format: date-time
|
|
178
|
+
updatedAt:
|
|
179
|
+
type: string
|
|
180
|
+
format: date-time
|