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,354 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Measureunit Family
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Measureunit Family endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/measureunitfamily:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find measure unit families
|
|
12
|
+
operationId: findMeasureUnitFamilies
|
|
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
|
+
local_name:
|
|
34
|
+
oneOf:
|
|
35
|
+
- type: array
|
|
36
|
+
items:
|
|
37
|
+
type: string
|
|
38
|
+
- type: string
|
|
39
|
+
disabled:
|
|
40
|
+
type: boolean
|
|
41
|
+
from_updatedAt:
|
|
42
|
+
type: number
|
|
43
|
+
measureunits:
|
|
44
|
+
oneOf:
|
|
45
|
+
- type: array
|
|
46
|
+
items:
|
|
47
|
+
type: string
|
|
48
|
+
- type: string
|
|
49
|
+
populatedKeys:
|
|
50
|
+
type: array
|
|
51
|
+
items:
|
|
52
|
+
type: string
|
|
53
|
+
enum: [measureunits]
|
|
54
|
+
from__id:
|
|
55
|
+
type: string
|
|
56
|
+
to__id:
|
|
57
|
+
type: string
|
|
58
|
+
sortBy:
|
|
59
|
+
type: array
|
|
60
|
+
items:
|
|
61
|
+
type: object
|
|
62
|
+
properties:
|
|
63
|
+
field:
|
|
64
|
+
type: string
|
|
65
|
+
enum: [_id]
|
|
66
|
+
type:
|
|
67
|
+
type: string
|
|
68
|
+
enum: [asc, desc]
|
|
69
|
+
description: Query parameters for filtering measure unit families
|
|
70
|
+
responses:
|
|
71
|
+
"200":
|
|
72
|
+
description: A list of measure unit families
|
|
73
|
+
content:
|
|
74
|
+
application/json:
|
|
75
|
+
schema:
|
|
76
|
+
$ref: "#/components/schemas/MeasureUnitFamilyFindResult"
|
|
77
|
+
post:
|
|
78
|
+
summary: Create a measure unit family
|
|
79
|
+
operationId: createMeasureUnitFamily
|
|
80
|
+
requestBody:
|
|
81
|
+
required: true
|
|
82
|
+
content:
|
|
83
|
+
application/json:
|
|
84
|
+
schema:
|
|
85
|
+
$ref: "#/components/schemas/MeasureUnitFamilyCreateBody"
|
|
86
|
+
responses:
|
|
87
|
+
"201":
|
|
88
|
+
description: Measure unit family created
|
|
89
|
+
content:
|
|
90
|
+
application/json:
|
|
91
|
+
schema:
|
|
92
|
+
$ref: "#/components/schemas/MeasureUnitFamilyCreateResult"
|
|
93
|
+
/measureunitfamily/{id}:
|
|
94
|
+
get:
|
|
95
|
+
summary: Get a measure unit family by ID
|
|
96
|
+
operationId: getMeasureUnitFamily
|
|
97
|
+
parameters:
|
|
98
|
+
- in: path
|
|
99
|
+
name: id
|
|
100
|
+
required: true
|
|
101
|
+
schema:
|
|
102
|
+
type: string
|
|
103
|
+
responses:
|
|
104
|
+
"200":
|
|
105
|
+
description: Measure unit family details
|
|
106
|
+
content:
|
|
107
|
+
application/json:
|
|
108
|
+
schema:
|
|
109
|
+
$ref: "#/components/schemas/MeasureUnitFamilyGetResult"
|
|
110
|
+
put:
|
|
111
|
+
summary: Update a measure unit family
|
|
112
|
+
operationId: updateMeasureUnitFamily
|
|
113
|
+
parameters:
|
|
114
|
+
- in: path
|
|
115
|
+
name: id
|
|
116
|
+
required: true
|
|
117
|
+
schema:
|
|
118
|
+
type: string
|
|
119
|
+
requestBody:
|
|
120
|
+
required: true
|
|
121
|
+
content:
|
|
122
|
+
application/json:
|
|
123
|
+
schema:
|
|
124
|
+
$ref: "#/components/schemas/MeasureUnitFamilyUpdateBody"
|
|
125
|
+
responses:
|
|
126
|
+
"200":
|
|
127
|
+
description: Measure unit family updated
|
|
128
|
+
content:
|
|
129
|
+
application/json:
|
|
130
|
+
schema:
|
|
131
|
+
$ref: "#/components/schemas/MeasureUnitFamilyUpdateResult"
|
|
132
|
+
delete:
|
|
133
|
+
summary: Remove a measure unit family
|
|
134
|
+
operationId: removeMeasureUnitFamily
|
|
135
|
+
parameters:
|
|
136
|
+
- in: path
|
|
137
|
+
name: id
|
|
138
|
+
required: true
|
|
139
|
+
schema:
|
|
140
|
+
type: string
|
|
141
|
+
responses:
|
|
142
|
+
"200":
|
|
143
|
+
description: Measure unit family removed
|
|
144
|
+
content:
|
|
145
|
+
application/json:
|
|
146
|
+
schema:
|
|
147
|
+
$ref: "#/components/schemas/MeasureUnitFamilyRemoveResult"
|
|
148
|
+
components:
|
|
149
|
+
schemas:
|
|
150
|
+
MeasureUnitFamilyFindResult:
|
|
151
|
+
type: object
|
|
152
|
+
description: Result of finding measure unit families
|
|
153
|
+
properties:
|
|
154
|
+
data:
|
|
155
|
+
type: array
|
|
156
|
+
items:
|
|
157
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchemaWithPopulatedKeys"
|
|
158
|
+
total_result:
|
|
159
|
+
type: number
|
|
160
|
+
description: Total number of measure unit families
|
|
161
|
+
current_count:
|
|
162
|
+
type: number
|
|
163
|
+
description: Count of measure unit families in current page
|
|
164
|
+
total_pages:
|
|
165
|
+
type: number
|
|
166
|
+
description: Total number of pages
|
|
167
|
+
current_page:
|
|
168
|
+
type: number
|
|
169
|
+
description: Current page number
|
|
170
|
+
per_page:
|
|
171
|
+
type: number
|
|
172
|
+
description: Number of measure unit families per page
|
|
173
|
+
first_page_url:
|
|
174
|
+
type: string
|
|
175
|
+
description: URL for the first page
|
|
176
|
+
last_page_url:
|
|
177
|
+
type: string
|
|
178
|
+
description: URL for the last page
|
|
179
|
+
next_page_url:
|
|
180
|
+
type: string
|
|
181
|
+
nullable: true
|
|
182
|
+
description: URL for the next page
|
|
183
|
+
prev_page_url:
|
|
184
|
+
type: string
|
|
185
|
+
nullable: true
|
|
186
|
+
description: URL for the previous page
|
|
187
|
+
path:
|
|
188
|
+
type: string
|
|
189
|
+
description: Base URL path
|
|
190
|
+
MeasureUnitFamilySchema:
|
|
191
|
+
type: object
|
|
192
|
+
description: Measure unit family schema
|
|
193
|
+
properties:
|
|
194
|
+
_id:
|
|
195
|
+
type: string
|
|
196
|
+
description: Unique identifier for the measure unit family
|
|
197
|
+
name:
|
|
198
|
+
type: string
|
|
199
|
+
description: Name of the measure unit family
|
|
200
|
+
local_name:
|
|
201
|
+
type: string
|
|
202
|
+
description: Localized name of the measure unit family
|
|
203
|
+
measureunits:
|
|
204
|
+
type: array
|
|
205
|
+
items:
|
|
206
|
+
type: string
|
|
207
|
+
description: IDs of measure units in this family
|
|
208
|
+
disabled:
|
|
209
|
+
type: boolean
|
|
210
|
+
description: Whether the measure unit family is disabled
|
|
211
|
+
integration_meta:
|
|
212
|
+
type: object
|
|
213
|
+
additionalProperties: true
|
|
214
|
+
description: Integration metadata
|
|
215
|
+
company_namespace:
|
|
216
|
+
type: array
|
|
217
|
+
items:
|
|
218
|
+
type: string
|
|
219
|
+
description: Company namespaces
|
|
220
|
+
createdAt:
|
|
221
|
+
type: string
|
|
222
|
+
format: date-time
|
|
223
|
+
description: Creation timestamp
|
|
224
|
+
updatedAt:
|
|
225
|
+
type: string
|
|
226
|
+
format: date-time
|
|
227
|
+
description: Last update timestamp
|
|
228
|
+
__v:
|
|
229
|
+
type: number
|
|
230
|
+
description: Version number
|
|
231
|
+
MeasureUnitFamilySchemaWithPopulatedKeys:
|
|
232
|
+
allOf:
|
|
233
|
+
- $ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
234
|
+
- type: object
|
|
235
|
+
properties:
|
|
236
|
+
measureunits_populated:
|
|
237
|
+
oneOf:
|
|
238
|
+
- type: array
|
|
239
|
+
items:
|
|
240
|
+
type: string
|
|
241
|
+
- type: array
|
|
242
|
+
items:
|
|
243
|
+
type: object
|
|
244
|
+
properties:
|
|
245
|
+
_id:
|
|
246
|
+
type: string
|
|
247
|
+
name:
|
|
248
|
+
type: string
|
|
249
|
+
factor:
|
|
250
|
+
type: number
|
|
251
|
+
local_name:
|
|
252
|
+
type: string
|
|
253
|
+
parent:
|
|
254
|
+
type: string
|
|
255
|
+
disabled:
|
|
256
|
+
type: boolean
|
|
257
|
+
integration_meta:
|
|
258
|
+
type: object
|
|
259
|
+
additionalProperties: true
|
|
260
|
+
company_namespace:
|
|
261
|
+
type: array
|
|
262
|
+
items:
|
|
263
|
+
type: string
|
|
264
|
+
createdAt:
|
|
265
|
+
type: string
|
|
266
|
+
format: date-time
|
|
267
|
+
updatedAt:
|
|
268
|
+
type: string
|
|
269
|
+
format: date-time
|
|
270
|
+
__v:
|
|
271
|
+
type: number
|
|
272
|
+
description: Populated measure units
|
|
273
|
+
MeasureUnitFamilyCreateBody:
|
|
274
|
+
type: object
|
|
275
|
+
description: Body for creating a measure unit family
|
|
276
|
+
required:
|
|
277
|
+
- name
|
|
278
|
+
properties:
|
|
279
|
+
name:
|
|
280
|
+
type: string
|
|
281
|
+
description: Name of the measure unit family
|
|
282
|
+
local_name:
|
|
283
|
+
type: string
|
|
284
|
+
description: Localized name of the measure unit family
|
|
285
|
+
measureunits:
|
|
286
|
+
type: array
|
|
287
|
+
items:
|
|
288
|
+
type: string
|
|
289
|
+
description: IDs of measure units in this family
|
|
290
|
+
company_namespace:
|
|
291
|
+
type: array
|
|
292
|
+
items:
|
|
293
|
+
type: string
|
|
294
|
+
description: Company namespaces
|
|
295
|
+
disabled:
|
|
296
|
+
type: boolean
|
|
297
|
+
description: Whether the measure unit family is disabled
|
|
298
|
+
integration_meta:
|
|
299
|
+
type: object
|
|
300
|
+
additionalProperties: true
|
|
301
|
+
description: Integration metadata
|
|
302
|
+
MeasureUnitFamilyCreateResult:
|
|
303
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
304
|
+
description: Result of creating a measure unit family
|
|
305
|
+
MeasureUnitFamilyGetResult:
|
|
306
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
307
|
+
description: Result of getting a measure unit family
|
|
308
|
+
MeasureUnitFamilyUpdateBody:
|
|
309
|
+
type: object
|
|
310
|
+
description: Body for updating a measure unit family
|
|
311
|
+
properties:
|
|
312
|
+
name:
|
|
313
|
+
type: string
|
|
314
|
+
description: Name of the measure unit family
|
|
315
|
+
local_name:
|
|
316
|
+
type: string
|
|
317
|
+
description: Localized name of the measure unit family
|
|
318
|
+
measureunits:
|
|
319
|
+
type: array
|
|
320
|
+
items:
|
|
321
|
+
type: string
|
|
322
|
+
description: IDs of measure units in this family
|
|
323
|
+
company_namespace:
|
|
324
|
+
type: array
|
|
325
|
+
items:
|
|
326
|
+
type: string
|
|
327
|
+
description: Company namespaces
|
|
328
|
+
disabled:
|
|
329
|
+
type: boolean
|
|
330
|
+
description: Whether the measure unit family is disabled
|
|
331
|
+
integration_meta:
|
|
332
|
+
type: object
|
|
333
|
+
additionalProperties: true
|
|
334
|
+
description: Integration metadata
|
|
335
|
+
_id:
|
|
336
|
+
type: string
|
|
337
|
+
description: Unique identifier for the measure unit family
|
|
338
|
+
createdAt:
|
|
339
|
+
type: string
|
|
340
|
+
format: date-time
|
|
341
|
+
description: Creation timestamp
|
|
342
|
+
updatedAt:
|
|
343
|
+
type: string
|
|
344
|
+
format: date-time
|
|
345
|
+
description: Last update timestamp
|
|
346
|
+
__v:
|
|
347
|
+
type: number
|
|
348
|
+
description: Version number
|
|
349
|
+
MeasureUnitFamilyUpdateResult:
|
|
350
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
351
|
+
description: Result of updating a measure unit family
|
|
352
|
+
MeasureUnitFamilyRemoveResult:
|
|
353
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
354
|
+
description: Result of removing a measure unit family
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Measure Unit
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Measure Unit endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/measure-unit:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find measure units
|
|
12
|
+
operationId: findMeasureUnits
|
|
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
|
+
factor:
|
|
34
|
+
oneOf:
|
|
35
|
+
- type: array
|
|
36
|
+
items:
|
|
37
|
+
type: number
|
|
38
|
+
- type: number
|
|
39
|
+
parent:
|
|
40
|
+
type: string
|
|
41
|
+
enum: [nil]
|
|
42
|
+
disabled:
|
|
43
|
+
type: boolean
|
|
44
|
+
from_updatedAt:
|
|
45
|
+
type: number
|
|
46
|
+
family_name:
|
|
47
|
+
oneOf:
|
|
48
|
+
- type: array
|
|
49
|
+
items:
|
|
50
|
+
type: string
|
|
51
|
+
- type: string
|
|
52
|
+
withFamily:
|
|
53
|
+
type: boolean
|
|
54
|
+
from__id:
|
|
55
|
+
type: string
|
|
56
|
+
to__id:
|
|
57
|
+
type: string
|
|
58
|
+
sortBy:
|
|
59
|
+
type: array
|
|
60
|
+
items:
|
|
61
|
+
type: object
|
|
62
|
+
properties:
|
|
63
|
+
field:
|
|
64
|
+
type: string
|
|
65
|
+
enum: [_id]
|
|
66
|
+
type:
|
|
67
|
+
type: string
|
|
68
|
+
enum: [asc, desc]
|
|
69
|
+
description: Query parameters for filtering measure units
|
|
70
|
+
responses:
|
|
71
|
+
"200":
|
|
72
|
+
description: A list of measure units
|
|
73
|
+
content:
|
|
74
|
+
application/json:
|
|
75
|
+
schema:
|
|
76
|
+
$ref: "#/components/schemas/MeasureUnitFindResult"
|
|
77
|
+
post:
|
|
78
|
+
summary: Create a measure unit
|
|
79
|
+
operationId: createMeasureUnit
|
|
80
|
+
requestBody:
|
|
81
|
+
required: true
|
|
82
|
+
content:
|
|
83
|
+
application/json:
|
|
84
|
+
schema:
|
|
85
|
+
$ref: "#/components/schemas/MeasureUnitCreateBody"
|
|
86
|
+
responses:
|
|
87
|
+
"201":
|
|
88
|
+
description: Measure unit created
|
|
89
|
+
content:
|
|
90
|
+
application/json:
|
|
91
|
+
schema:
|
|
92
|
+
$ref: "#/components/schemas/MeasureUnitCreateResult"
|
|
93
|
+
/measure-unit/{id}:
|
|
94
|
+
get:
|
|
95
|
+
summary: Get a measure unit by ID
|
|
96
|
+
operationId: getMeasureUnit
|
|
97
|
+
parameters:
|
|
98
|
+
- in: path
|
|
99
|
+
name: id
|
|
100
|
+
required: true
|
|
101
|
+
schema:
|
|
102
|
+
type: string
|
|
103
|
+
responses:
|
|
104
|
+
"200":
|
|
105
|
+
description: Measure unit details
|
|
106
|
+
content:
|
|
107
|
+
application/json:
|
|
108
|
+
schema:
|
|
109
|
+
$ref: "#/components/schemas/MeasureUnitGetResult"
|
|
110
|
+
put:
|
|
111
|
+
summary: Update a measure unit
|
|
112
|
+
operationId: updateMeasureUnit
|
|
113
|
+
parameters:
|
|
114
|
+
- in: path
|
|
115
|
+
name: id
|
|
116
|
+
required: true
|
|
117
|
+
schema:
|
|
118
|
+
type: string
|
|
119
|
+
requestBody:
|
|
120
|
+
required: true
|
|
121
|
+
content:
|
|
122
|
+
application/json:
|
|
123
|
+
schema:
|
|
124
|
+
$ref: "#/components/schemas/MeasureUnitUpdateBody"
|
|
125
|
+
responses:
|
|
126
|
+
"200":
|
|
127
|
+
description: Measure unit updated
|
|
128
|
+
content:
|
|
129
|
+
application/json:
|
|
130
|
+
schema:
|
|
131
|
+
$ref: "#/components/schemas/MeasureUnitUpdateResult"
|
|
132
|
+
delete:
|
|
133
|
+
summary: Remove a measure unit
|
|
134
|
+
operationId: removeMeasureUnit
|
|
135
|
+
parameters:
|
|
136
|
+
- in: path
|
|
137
|
+
name: id
|
|
138
|
+
required: true
|
|
139
|
+
schema:
|
|
140
|
+
type: string
|
|
141
|
+
responses:
|
|
142
|
+
"200":
|
|
143
|
+
description: Measure unit removed
|
|
144
|
+
content:
|
|
145
|
+
application/json:
|
|
146
|
+
schema:
|
|
147
|
+
$ref: "#/components/schemas/MeasureUnitRemoveResult"
|
|
148
|
+
components:
|
|
149
|
+
schemas:
|
|
150
|
+
MeasureUnitFindResult:
|
|
151
|
+
type: object
|
|
152
|
+
description: Result of finding measure units
|
|
153
|
+
properties:
|
|
154
|
+
data:
|
|
155
|
+
type: array
|
|
156
|
+
items:
|
|
157
|
+
oneOf:
|
|
158
|
+
- $ref: "#/components/schemas/MeasureUnitSchema"
|
|
159
|
+
- allOf:
|
|
160
|
+
- $ref: "#/components/schemas/MeasureUnitSchema"
|
|
161
|
+
- type: object
|
|
162
|
+
properties:
|
|
163
|
+
family:
|
|
164
|
+
type: array
|
|
165
|
+
items:
|
|
166
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
167
|
+
total_result:
|
|
168
|
+
type: number
|
|
169
|
+
description: Total number of measure units
|
|
170
|
+
current_count:
|
|
171
|
+
type: number
|
|
172
|
+
description: Count of measure units in current page
|
|
173
|
+
total_pages:
|
|
174
|
+
type: number
|
|
175
|
+
description: Total number of pages
|
|
176
|
+
current_page:
|
|
177
|
+
type: number
|
|
178
|
+
description: Current page number
|
|
179
|
+
per_page:
|
|
180
|
+
type: number
|
|
181
|
+
description: Number of measure units per page
|
|
182
|
+
first_page_url:
|
|
183
|
+
type: string
|
|
184
|
+
description: URL for the first page
|
|
185
|
+
last_page_url:
|
|
186
|
+
type: string
|
|
187
|
+
description: URL for the last page
|
|
188
|
+
next_page_url:
|
|
189
|
+
type: string
|
|
190
|
+
nullable: true
|
|
191
|
+
description: URL for the next page
|
|
192
|
+
prev_page_url:
|
|
193
|
+
type: string
|
|
194
|
+
nullable: true
|
|
195
|
+
description: URL for the previous page
|
|
196
|
+
path:
|
|
197
|
+
type: string
|
|
198
|
+
description: Base URL path
|
|
199
|
+
MeasureUnitSchema:
|
|
200
|
+
type: object
|
|
201
|
+
description: Measure unit schema
|
|
202
|
+
properties:
|
|
203
|
+
_id:
|
|
204
|
+
type: string
|
|
205
|
+
description: Unique identifier for the measure unit
|
|
206
|
+
name:
|
|
207
|
+
type: string
|
|
208
|
+
description: Name of the measure unit
|
|
209
|
+
factor:
|
|
210
|
+
type: number
|
|
211
|
+
description: Factor of the measure unit
|
|
212
|
+
local_name:
|
|
213
|
+
type: string
|
|
214
|
+
description: Localized name of the measure unit
|
|
215
|
+
parent:
|
|
216
|
+
type: string
|
|
217
|
+
description: Parent measure unit ID
|
|
218
|
+
disabled:
|
|
219
|
+
type: boolean
|
|
220
|
+
description: Whether the measure unit is disabled
|
|
221
|
+
integration_meta:
|
|
222
|
+
type: object
|
|
223
|
+
additionalProperties: true
|
|
224
|
+
description: Integration metadata
|
|
225
|
+
company_namespace:
|
|
226
|
+
type: array
|
|
227
|
+
items:
|
|
228
|
+
type: string
|
|
229
|
+
description: Company namespaces
|
|
230
|
+
createdAt:
|
|
231
|
+
type: string
|
|
232
|
+
format: date-time
|
|
233
|
+
description: Creation timestamp
|
|
234
|
+
updatedAt:
|
|
235
|
+
type: string
|
|
236
|
+
format: date-time
|
|
237
|
+
description: Last update timestamp
|
|
238
|
+
__v:
|
|
239
|
+
type: number
|
|
240
|
+
description: Version number
|
|
241
|
+
MeasureUnitFamilySchema:
|
|
242
|
+
type: object
|
|
243
|
+
description: Measure unit family schema
|
|
244
|
+
properties:
|
|
245
|
+
_id:
|
|
246
|
+
type: string
|
|
247
|
+
description: Unique identifier for the measure unit family
|
|
248
|
+
name:
|
|
249
|
+
type: string
|
|
250
|
+
description: Name of the measure unit family
|
|
251
|
+
local_name:
|
|
252
|
+
type: string
|
|
253
|
+
description: Localized name of the measure unit family
|
|
254
|
+
measureunits:
|
|
255
|
+
type: array
|
|
256
|
+
items:
|
|
257
|
+
type: string
|
|
258
|
+
description: Measure unit IDs in this family
|
|
259
|
+
disabled:
|
|
260
|
+
type: boolean
|
|
261
|
+
description: Whether the measure unit family is disabled
|
|
262
|
+
integration_meta:
|
|
263
|
+
type: object
|
|
264
|
+
additionalProperties: true
|
|
265
|
+
description: Integration metadata
|
|
266
|
+
company_namespace:
|
|
267
|
+
type: array
|
|
268
|
+
items:
|
|
269
|
+
type: string
|
|
270
|
+
description: Company namespaces
|
|
271
|
+
createdAt:
|
|
272
|
+
type: string
|
|
273
|
+
format: date-time
|
|
274
|
+
description: Creation timestamp
|
|
275
|
+
updatedAt:
|
|
276
|
+
type: string
|
|
277
|
+
format: date-time
|
|
278
|
+
description: Last update timestamp
|
|
279
|
+
__v:
|
|
280
|
+
type: number
|
|
281
|
+
description: Version number
|
|
282
|
+
MeasureUnitCreateBody:
|
|
283
|
+
type: object
|
|
284
|
+
description: Body for creating a measure unit
|
|
285
|
+
required:
|
|
286
|
+
- name
|
|
287
|
+
- factor
|
|
288
|
+
properties:
|
|
289
|
+
name:
|
|
290
|
+
type: string
|
|
291
|
+
description: Name of the measure unit
|
|
292
|
+
factor:
|
|
293
|
+
type: number
|
|
294
|
+
description: Factor of the measure unit
|
|
295
|
+
local_name:
|
|
296
|
+
type: string
|
|
297
|
+
description: Localized name of the measure unit
|
|
298
|
+
parent:
|
|
299
|
+
type: string
|
|
300
|
+
description: Parent measure unit ID
|
|
301
|
+
company_namespace:
|
|
302
|
+
type: array
|
|
303
|
+
items:
|
|
304
|
+
type: string
|
|
305
|
+
description: Company namespaces
|
|
306
|
+
disabled:
|
|
307
|
+
type: boolean
|
|
308
|
+
description: Whether the measure unit is disabled
|
|
309
|
+
integration_meta:
|
|
310
|
+
type: object
|
|
311
|
+
additionalProperties: true
|
|
312
|
+
description: Integration metadata
|
|
313
|
+
MeasureUnitCreateResult:
|
|
314
|
+
$ref: "#/components/schemas/MeasureUnitSchema"
|
|
315
|
+
description: Result of creating a measure unit
|
|
316
|
+
MeasureUnitGetResult:
|
|
317
|
+
$ref: "#/components/schemas/MeasureUnitSchema"
|
|
318
|
+
description: Result of getting a measure unit
|
|
319
|
+
MeasureUnitUpdateBody:
|
|
320
|
+
type: object
|
|
321
|
+
description: Body for updating a measure unit
|
|
322
|
+
properties:
|
|
323
|
+
name:
|
|
324
|
+
type: string
|
|
325
|
+
description: Name of the measure unit
|
|
326
|
+
factor:
|
|
327
|
+
type: number
|
|
328
|
+
description: Factor of the measure unit
|
|
329
|
+
local_name:
|
|
330
|
+
type: string
|
|
331
|
+
description: Localized name of the measure unit
|
|
332
|
+
parent:
|
|
333
|
+
type: string
|
|
334
|
+
description: Parent measure unit ID
|
|
335
|
+
company_namespace:
|
|
336
|
+
type: array
|
|
337
|
+
items:
|
|
338
|
+
type: string
|
|
339
|
+
description: Company namespaces
|
|
340
|
+
disabled:
|
|
341
|
+
type: boolean
|
|
342
|
+
description: Whether the measure unit is disabled
|
|
343
|
+
integration_meta:
|
|
344
|
+
type: object
|
|
345
|
+
additionalProperties: true
|
|
346
|
+
description: Integration metadata
|
|
347
|
+
_id:
|
|
348
|
+
type: string
|
|
349
|
+
description: Unique identifier for the measure unit
|
|
350
|
+
createdAt:
|
|
351
|
+
type: string
|
|
352
|
+
format: date-time
|
|
353
|
+
description: Creation timestamp
|
|
354
|
+
updatedAt:
|
|
355
|
+
type: string
|
|
356
|
+
format: date-time
|
|
357
|
+
description: Last update timestamp
|
|
358
|
+
__v:
|
|
359
|
+
type: number
|
|
360
|
+
description: Version number
|
|
361
|
+
MeasureUnitUpdateResult:
|
|
362
|
+
$ref: "#/components/schemas/MeasureUnitSchema"
|
|
363
|
+
description: Result of updating a measure unit
|
|
364
|
+
MeasureUnitRemoveResult:
|
|
365
|
+
$ref: "#/components/schemas/MeasureUnitSchema"
|
|
366
|
+
description: Result of removing a measure unit
|