repzo 1.0.130 → 1.0.132
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 +65 -2
- package/lib/index.js +295 -167
- package/lib/types/index.d.ts +406 -3
- package/package.json +1 -1
- package/src/index.ts +250 -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 +389 -6
- package/test.ts +0 -2
package/src/oas/brand.yaml
CHANGED
|
@@ -17,12 +17,12 @@ paths:
|
|
|
17
17
|
type: object
|
|
18
18
|
description: Query parameters for filtering brands
|
|
19
19
|
responses:
|
|
20
|
-
|
|
20
|
+
"200":
|
|
21
21
|
description: A list of brands
|
|
22
22
|
content:
|
|
23
23
|
application/json:
|
|
24
24
|
schema:
|
|
25
|
-
$ref:
|
|
25
|
+
$ref: "#/components/schemas/BrandFindResult"
|
|
26
26
|
post:
|
|
27
27
|
summary: Create a brand
|
|
28
28
|
operationId: createBrand
|
|
@@ -31,14 +31,14 @@ paths:
|
|
|
31
31
|
content:
|
|
32
32
|
application/json:
|
|
33
33
|
schema:
|
|
34
|
-
$ref:
|
|
34
|
+
$ref: "#/components/schemas/BrandCreateBody"
|
|
35
35
|
responses:
|
|
36
|
-
|
|
36
|
+
"201":
|
|
37
37
|
description: Brand created
|
|
38
38
|
content:
|
|
39
39
|
application/json:
|
|
40
40
|
schema:
|
|
41
|
-
$ref:
|
|
41
|
+
$ref: "#/components/schemas/BrandCreateResult"
|
|
42
42
|
/product-brand/{id}:
|
|
43
43
|
get:
|
|
44
44
|
summary: Get a brand by ID
|
|
@@ -50,12 +50,12 @@ paths:
|
|
|
50
50
|
schema:
|
|
51
51
|
type: string
|
|
52
52
|
responses:
|
|
53
|
-
|
|
53
|
+
"200":
|
|
54
54
|
description: Brand details
|
|
55
55
|
content:
|
|
56
56
|
application/json:
|
|
57
57
|
schema:
|
|
58
|
-
$ref:
|
|
58
|
+
$ref: "#/components/schemas/BrandGetResult"
|
|
59
59
|
put:
|
|
60
60
|
summary: Update a brand
|
|
61
61
|
operationId: updateBrand
|
|
@@ -70,14 +70,14 @@ paths:
|
|
|
70
70
|
content:
|
|
71
71
|
application/json:
|
|
72
72
|
schema:
|
|
73
|
-
$ref:
|
|
73
|
+
$ref: "#/components/schemas/BrandUpdateBody"
|
|
74
74
|
responses:
|
|
75
|
-
|
|
75
|
+
"200":
|
|
76
76
|
description: Brand updated
|
|
77
77
|
content:
|
|
78
78
|
application/json:
|
|
79
79
|
schema:
|
|
80
|
-
$ref:
|
|
80
|
+
$ref: "#/components/schemas/BrandUpdateResult"
|
|
81
81
|
delete:
|
|
82
82
|
summary: Remove a brand
|
|
83
83
|
operationId: removeBrand
|
|
@@ -88,12 +88,12 @@ paths:
|
|
|
88
88
|
schema:
|
|
89
89
|
type: string
|
|
90
90
|
responses:
|
|
91
|
-
|
|
91
|
+
"200":
|
|
92
92
|
description: Brand removed
|
|
93
93
|
content:
|
|
94
94
|
application/json:
|
|
95
95
|
schema:
|
|
96
|
-
$ref:
|
|
96
|
+
$ref: "#/components/schemas/BrandRemoveResult"
|
|
97
97
|
components:
|
|
98
98
|
schemas:
|
|
99
99
|
BrandFindResult:
|
|
@@ -103,7 +103,7 @@ components:
|
|
|
103
103
|
data:
|
|
104
104
|
type: array
|
|
105
105
|
items:
|
|
106
|
-
$ref:
|
|
106
|
+
$ref: "#/components/schemas/BrandSchema"
|
|
107
107
|
total_result:
|
|
108
108
|
type: number
|
|
109
109
|
description: Total number of brands
|
|
@@ -197,10 +197,10 @@ components:
|
|
|
197
197
|
type: string
|
|
198
198
|
description: Company namespaces
|
|
199
199
|
BrandCreateResult:
|
|
200
|
-
$ref:
|
|
200
|
+
$ref: "#/components/schemas/BrandSchema"
|
|
201
201
|
description: Result of creating a brand
|
|
202
202
|
BrandGetResult:
|
|
203
|
-
$ref:
|
|
203
|
+
$ref: "#/components/schemas/BrandSchema"
|
|
204
204
|
description: Result of getting a brand
|
|
205
205
|
BrandUpdateBody:
|
|
206
206
|
type: object
|
|
@@ -239,8 +239,8 @@ components:
|
|
|
239
239
|
type: number
|
|
240
240
|
description: Version number
|
|
241
241
|
BrandUpdateResult:
|
|
242
|
-
$ref:
|
|
242
|
+
$ref: "#/components/schemas/BrandSchema"
|
|
243
243
|
description: Result of updating a brand
|
|
244
244
|
BrandRemoveResult:
|
|
245
|
-
$ref:
|
|
245
|
+
$ref: "#/components/schemas/BrandSchema"
|
|
246
246
|
description: Result of removing a brand
|
package/src/oas/category.yaml
CHANGED
|
@@ -17,12 +17,12 @@ paths:
|
|
|
17
17
|
type: object
|
|
18
18
|
description: Query parameters for filtering categories
|
|
19
19
|
responses:
|
|
20
|
-
|
|
20
|
+
"200":
|
|
21
21
|
description: A list of categories
|
|
22
22
|
content:
|
|
23
23
|
application/json:
|
|
24
24
|
schema:
|
|
25
|
-
$ref:
|
|
25
|
+
$ref: "#/components/schemas/CategoryFindResult"
|
|
26
26
|
post:
|
|
27
27
|
summary: Create a category
|
|
28
28
|
operationId: createCategory
|
|
@@ -31,14 +31,14 @@ paths:
|
|
|
31
31
|
content:
|
|
32
32
|
application/json:
|
|
33
33
|
schema:
|
|
34
|
-
$ref:
|
|
34
|
+
$ref: "#/components/schemas/CategoryCreateBody"
|
|
35
35
|
responses:
|
|
36
|
-
|
|
36
|
+
"201":
|
|
37
37
|
description: Category created
|
|
38
38
|
content:
|
|
39
39
|
application/json:
|
|
40
40
|
schema:
|
|
41
|
-
$ref:
|
|
41
|
+
$ref: "#/components/schemas/CategoryCreateResult"
|
|
42
42
|
/product-category/{id}:
|
|
43
43
|
get:
|
|
44
44
|
summary: Get a category by ID
|
|
@@ -50,12 +50,12 @@ paths:
|
|
|
50
50
|
schema:
|
|
51
51
|
type: string
|
|
52
52
|
responses:
|
|
53
|
-
|
|
53
|
+
"200":
|
|
54
54
|
description: Category details
|
|
55
55
|
content:
|
|
56
56
|
application/json:
|
|
57
57
|
schema:
|
|
58
|
-
$ref:
|
|
58
|
+
$ref: "#/components/schemas/CategoryGetResult"
|
|
59
59
|
put:
|
|
60
60
|
summary: Update a category
|
|
61
61
|
operationId: updateCategory
|
|
@@ -70,14 +70,14 @@ paths:
|
|
|
70
70
|
content:
|
|
71
71
|
application/json:
|
|
72
72
|
schema:
|
|
73
|
-
$ref:
|
|
73
|
+
$ref: "#/components/schemas/CategoryUpdateBody"
|
|
74
74
|
responses:
|
|
75
|
-
|
|
75
|
+
"200":
|
|
76
76
|
description: Category updated
|
|
77
77
|
content:
|
|
78
78
|
application/json:
|
|
79
79
|
schema:
|
|
80
|
-
$ref:
|
|
80
|
+
$ref: "#/components/schemas/CategoryUpdateResult"
|
|
81
81
|
delete:
|
|
82
82
|
summary: Remove a category
|
|
83
83
|
operationId: removeCategory
|
|
@@ -88,12 +88,12 @@ paths:
|
|
|
88
88
|
schema:
|
|
89
89
|
type: string
|
|
90
90
|
responses:
|
|
91
|
-
|
|
91
|
+
"200":
|
|
92
92
|
description: Category removed
|
|
93
93
|
content:
|
|
94
94
|
application/json:
|
|
95
95
|
schema:
|
|
96
|
-
$ref:
|
|
96
|
+
$ref: "#/components/schemas/CategoryRemoveResult"
|
|
97
97
|
components:
|
|
98
98
|
schemas:
|
|
99
99
|
CategoryFindResult:
|
|
@@ -103,7 +103,7 @@ components:
|
|
|
103
103
|
data:
|
|
104
104
|
type: array
|
|
105
105
|
items:
|
|
106
|
-
$ref:
|
|
106
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
107
107
|
total_result:
|
|
108
108
|
type: number
|
|
109
109
|
description: Total number of categories
|
|
@@ -223,10 +223,10 @@ components:
|
|
|
223
223
|
additionalProperties: true
|
|
224
224
|
description: Integration metadata
|
|
225
225
|
CategoryCreateResult:
|
|
226
|
-
$ref:
|
|
226
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
227
227
|
description: Result of creating a category
|
|
228
228
|
CategoryGetResult:
|
|
229
|
-
$ref:
|
|
229
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
230
230
|
description: Result of getting a category
|
|
231
231
|
CategoryUpdateBody:
|
|
232
232
|
type: object
|
|
@@ -278,8 +278,8 @@ components:
|
|
|
278
278
|
type: number
|
|
279
279
|
description: Version number
|
|
280
280
|
CategoryUpdateResult:
|
|
281
|
-
$ref:
|
|
281
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
282
282
|
description: Result of updating a category
|
|
283
283
|
CategoryRemoveResult:
|
|
284
|
-
$ref:
|
|
284
|
+
$ref: "#/components/schemas/CategorySchema"
|
|
285
285
|
description: Result of removing a category
|
package/src/oas/client.yaml
CHANGED
|
@@ -17,12 +17,12 @@ paths:
|
|
|
17
17
|
type: object
|
|
18
18
|
description: Query parameters for filtering clients
|
|
19
19
|
responses:
|
|
20
|
-
|
|
20
|
+
"200":
|
|
21
21
|
description: A list of clients
|
|
22
22
|
content:
|
|
23
23
|
application/json:
|
|
24
24
|
schema:
|
|
25
|
-
$ref:
|
|
25
|
+
$ref: "#/components/schemas/ClientFindResult"
|
|
26
26
|
post:
|
|
27
27
|
summary: Create a client
|
|
28
28
|
operationId: createClient
|
|
@@ -31,14 +31,14 @@ paths:
|
|
|
31
31
|
content:
|
|
32
32
|
application/json:
|
|
33
33
|
schema:
|
|
34
|
-
$ref:
|
|
34
|
+
$ref: "#/components/schemas/ClientCreateBody"
|
|
35
35
|
responses:
|
|
36
|
-
|
|
36
|
+
"201":
|
|
37
37
|
description: Client created
|
|
38
38
|
content:
|
|
39
39
|
application/json:
|
|
40
40
|
schema:
|
|
41
|
-
$ref:
|
|
41
|
+
$ref: "#/components/schemas/ClientCreateResult"
|
|
42
42
|
/client/{id}:
|
|
43
43
|
get:
|
|
44
44
|
summary: Get a client by ID
|
|
@@ -50,12 +50,12 @@ paths:
|
|
|
50
50
|
schema:
|
|
51
51
|
type: string
|
|
52
52
|
responses:
|
|
53
|
-
|
|
53
|
+
"200":
|
|
54
54
|
description: Client details
|
|
55
55
|
content:
|
|
56
56
|
application/json:
|
|
57
57
|
schema:
|
|
58
|
-
$ref:
|
|
58
|
+
$ref: "#/components/schemas/ClientGetResult"
|
|
59
59
|
put:
|
|
60
60
|
summary: Update a client
|
|
61
61
|
operationId: updateClient
|
|
@@ -70,14 +70,14 @@ paths:
|
|
|
70
70
|
content:
|
|
71
71
|
application/json:
|
|
72
72
|
schema:
|
|
73
|
-
$ref:
|
|
73
|
+
$ref: "#/components/schemas/ClientUpdateBody"
|
|
74
74
|
responses:
|
|
75
|
-
|
|
75
|
+
"200":
|
|
76
76
|
description: Client updated
|
|
77
77
|
content:
|
|
78
78
|
application/json:
|
|
79
79
|
schema:
|
|
80
|
-
$ref:
|
|
80
|
+
$ref: "#/components/schemas/ClientUpdateResult"
|
|
81
81
|
delete:
|
|
82
82
|
summary: Remove a client
|
|
83
83
|
operationId: removeClient
|
|
@@ -88,12 +88,12 @@ paths:
|
|
|
88
88
|
schema:
|
|
89
89
|
type: string
|
|
90
90
|
responses:
|
|
91
|
-
|
|
91
|
+
"200":
|
|
92
92
|
description: Client removed
|
|
93
93
|
content:
|
|
94
94
|
application/json:
|
|
95
95
|
schema:
|
|
96
|
-
$ref:
|
|
96
|
+
$ref: "#/components/schemas/ClientRemoveResult"
|
|
97
97
|
components:
|
|
98
98
|
schemas:
|
|
99
99
|
ClientFindResult:
|
|
@@ -103,7 +103,7 @@ components:
|
|
|
103
103
|
data:
|
|
104
104
|
type: array
|
|
105
105
|
items:
|
|
106
|
-
$ref:
|
|
106
|
+
$ref: "#/components/schemas/ClientSchema"
|
|
107
107
|
total_result:
|
|
108
108
|
type: number
|
|
109
109
|
description: Total number of clients
|
|
@@ -486,10 +486,10 @@ components:
|
|
|
486
486
|
additionalProperties: true
|
|
487
487
|
description: Integration metadata
|
|
488
488
|
ClientCreateResult:
|
|
489
|
-
$ref:
|
|
489
|
+
$ref: "#/components/schemas/ClientSchema"
|
|
490
490
|
description: Result of creating a client
|
|
491
491
|
ClientGetResult:
|
|
492
|
-
$ref:
|
|
492
|
+
$ref: "#/components/schemas/ClientSchema"
|
|
493
493
|
description: Result of getting a client
|
|
494
494
|
ClientUpdateBody:
|
|
495
495
|
type: object
|
|
@@ -662,8 +662,8 @@ components:
|
|
|
662
662
|
type: number
|
|
663
663
|
description: Version number
|
|
664
664
|
ClientUpdateResult:
|
|
665
|
-
$ref:
|
|
665
|
+
$ref: "#/components/schemas/ClientSchema"
|
|
666
666
|
description: Result of updating a client
|
|
667
667
|
ClientRemoveResult:
|
|
668
|
-
$ref:
|
|
668
|
+
$ref: "#/components/schemas/ClientSchema"
|
|
669
669
|
description: Result of removing a client
|
|
@@ -68,12 +68,12 @@ paths:
|
|
|
68
68
|
enum: [asc, desc]
|
|
69
69
|
description: Query parameters for filtering measure unit families
|
|
70
70
|
responses:
|
|
71
|
-
|
|
71
|
+
"200":
|
|
72
72
|
description: A list of measure unit families
|
|
73
73
|
content:
|
|
74
74
|
application/json:
|
|
75
75
|
schema:
|
|
76
|
-
$ref:
|
|
76
|
+
$ref: "#/components/schemas/MeasureUnitFamilyFindResult"
|
|
77
77
|
post:
|
|
78
78
|
summary: Create a measure unit family
|
|
79
79
|
operationId: createMeasureUnitFamily
|
|
@@ -82,14 +82,14 @@ paths:
|
|
|
82
82
|
content:
|
|
83
83
|
application/json:
|
|
84
84
|
schema:
|
|
85
|
-
$ref:
|
|
85
|
+
$ref: "#/components/schemas/MeasureUnitFamilyCreateBody"
|
|
86
86
|
responses:
|
|
87
|
-
|
|
87
|
+
"201":
|
|
88
88
|
description: Measure unit family created
|
|
89
89
|
content:
|
|
90
90
|
application/json:
|
|
91
91
|
schema:
|
|
92
|
-
$ref:
|
|
92
|
+
$ref: "#/components/schemas/MeasureUnitFamilyCreateResult"
|
|
93
93
|
/measureunitfamily/{id}:
|
|
94
94
|
get:
|
|
95
95
|
summary: Get a measure unit family by ID
|
|
@@ -101,12 +101,12 @@ paths:
|
|
|
101
101
|
schema:
|
|
102
102
|
type: string
|
|
103
103
|
responses:
|
|
104
|
-
|
|
104
|
+
"200":
|
|
105
105
|
description: Measure unit family details
|
|
106
106
|
content:
|
|
107
107
|
application/json:
|
|
108
108
|
schema:
|
|
109
|
-
$ref:
|
|
109
|
+
$ref: "#/components/schemas/MeasureUnitFamilyGetResult"
|
|
110
110
|
put:
|
|
111
111
|
summary: Update a measure unit family
|
|
112
112
|
operationId: updateMeasureUnitFamily
|
|
@@ -121,14 +121,14 @@ paths:
|
|
|
121
121
|
content:
|
|
122
122
|
application/json:
|
|
123
123
|
schema:
|
|
124
|
-
$ref:
|
|
124
|
+
$ref: "#/components/schemas/MeasureUnitFamilyUpdateBody"
|
|
125
125
|
responses:
|
|
126
|
-
|
|
126
|
+
"200":
|
|
127
127
|
description: Measure unit family updated
|
|
128
128
|
content:
|
|
129
129
|
application/json:
|
|
130
130
|
schema:
|
|
131
|
-
$ref:
|
|
131
|
+
$ref: "#/components/schemas/MeasureUnitFamilyUpdateResult"
|
|
132
132
|
delete:
|
|
133
133
|
summary: Remove a measure unit family
|
|
134
134
|
operationId: removeMeasureUnitFamily
|
|
@@ -139,12 +139,12 @@ paths:
|
|
|
139
139
|
schema:
|
|
140
140
|
type: string
|
|
141
141
|
responses:
|
|
142
|
-
|
|
142
|
+
"200":
|
|
143
143
|
description: Measure unit family removed
|
|
144
144
|
content:
|
|
145
145
|
application/json:
|
|
146
146
|
schema:
|
|
147
|
-
$ref:
|
|
147
|
+
$ref: "#/components/schemas/MeasureUnitFamilyRemoveResult"
|
|
148
148
|
components:
|
|
149
149
|
schemas:
|
|
150
150
|
MeasureUnitFamilyFindResult:
|
|
@@ -154,7 +154,7 @@ components:
|
|
|
154
154
|
data:
|
|
155
155
|
type: array
|
|
156
156
|
items:
|
|
157
|
-
$ref:
|
|
157
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchemaWithPopulatedKeys"
|
|
158
158
|
total_result:
|
|
159
159
|
type: number
|
|
160
160
|
description: Total number of measure unit families
|
|
@@ -230,7 +230,7 @@ components:
|
|
|
230
230
|
description: Version number
|
|
231
231
|
MeasureUnitFamilySchemaWithPopulatedKeys:
|
|
232
232
|
allOf:
|
|
233
|
-
- $ref:
|
|
233
|
+
- $ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
234
234
|
- type: object
|
|
235
235
|
properties:
|
|
236
236
|
measureunits_populated:
|
|
@@ -300,10 +300,10 @@ components:
|
|
|
300
300
|
additionalProperties: true
|
|
301
301
|
description: Integration metadata
|
|
302
302
|
MeasureUnitFamilyCreateResult:
|
|
303
|
-
$ref:
|
|
303
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
304
304
|
description: Result of creating a measure unit family
|
|
305
305
|
MeasureUnitFamilyGetResult:
|
|
306
|
-
$ref:
|
|
306
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
307
307
|
description: Result of getting a measure unit family
|
|
308
308
|
MeasureUnitFamilyUpdateBody:
|
|
309
309
|
type: object
|
|
@@ -347,8 +347,8 @@ components:
|
|
|
347
347
|
type: number
|
|
348
348
|
description: Version number
|
|
349
349
|
MeasureUnitFamilyUpdateResult:
|
|
350
|
-
$ref:
|
|
350
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
351
351
|
description: Result of updating a measure unit family
|
|
352
352
|
MeasureUnitFamilyRemoveResult:
|
|
353
|
-
$ref:
|
|
353
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
354
354
|
description: Result of removing a measure unit family
|
package/src/oas/measureunit.yaml
CHANGED
|
@@ -68,12 +68,12 @@ paths:
|
|
|
68
68
|
enum: [asc, desc]
|
|
69
69
|
description: Query parameters for filtering measure units
|
|
70
70
|
responses:
|
|
71
|
-
|
|
71
|
+
"200":
|
|
72
72
|
description: A list of measure units
|
|
73
73
|
content:
|
|
74
74
|
application/json:
|
|
75
75
|
schema:
|
|
76
|
-
$ref:
|
|
76
|
+
$ref: "#/components/schemas/MeasureUnitFindResult"
|
|
77
77
|
post:
|
|
78
78
|
summary: Create a measure unit
|
|
79
79
|
operationId: createMeasureUnit
|
|
@@ -82,14 +82,14 @@ paths:
|
|
|
82
82
|
content:
|
|
83
83
|
application/json:
|
|
84
84
|
schema:
|
|
85
|
-
$ref:
|
|
85
|
+
$ref: "#/components/schemas/MeasureUnitCreateBody"
|
|
86
86
|
responses:
|
|
87
|
-
|
|
87
|
+
"201":
|
|
88
88
|
description: Measure unit created
|
|
89
89
|
content:
|
|
90
90
|
application/json:
|
|
91
91
|
schema:
|
|
92
|
-
$ref:
|
|
92
|
+
$ref: "#/components/schemas/MeasureUnitCreateResult"
|
|
93
93
|
/measure-unit/{id}:
|
|
94
94
|
get:
|
|
95
95
|
summary: Get a measure unit by ID
|
|
@@ -101,12 +101,12 @@ paths:
|
|
|
101
101
|
schema:
|
|
102
102
|
type: string
|
|
103
103
|
responses:
|
|
104
|
-
|
|
104
|
+
"200":
|
|
105
105
|
description: Measure unit details
|
|
106
106
|
content:
|
|
107
107
|
application/json:
|
|
108
108
|
schema:
|
|
109
|
-
$ref:
|
|
109
|
+
$ref: "#/components/schemas/MeasureUnitGetResult"
|
|
110
110
|
put:
|
|
111
111
|
summary: Update a measure unit
|
|
112
112
|
operationId: updateMeasureUnit
|
|
@@ -121,14 +121,14 @@ paths:
|
|
|
121
121
|
content:
|
|
122
122
|
application/json:
|
|
123
123
|
schema:
|
|
124
|
-
$ref:
|
|
124
|
+
$ref: "#/components/schemas/MeasureUnitUpdateBody"
|
|
125
125
|
responses:
|
|
126
|
-
|
|
126
|
+
"200":
|
|
127
127
|
description: Measure unit updated
|
|
128
128
|
content:
|
|
129
129
|
application/json:
|
|
130
130
|
schema:
|
|
131
|
-
$ref:
|
|
131
|
+
$ref: "#/components/schemas/MeasureUnitUpdateResult"
|
|
132
132
|
delete:
|
|
133
133
|
summary: Remove a measure unit
|
|
134
134
|
operationId: removeMeasureUnit
|
|
@@ -139,12 +139,12 @@ paths:
|
|
|
139
139
|
schema:
|
|
140
140
|
type: string
|
|
141
141
|
responses:
|
|
142
|
-
|
|
142
|
+
"200":
|
|
143
143
|
description: Measure unit removed
|
|
144
144
|
content:
|
|
145
145
|
application/json:
|
|
146
146
|
schema:
|
|
147
|
-
$ref:
|
|
147
|
+
$ref: "#/components/schemas/MeasureUnitRemoveResult"
|
|
148
148
|
components:
|
|
149
149
|
schemas:
|
|
150
150
|
MeasureUnitFindResult:
|
|
@@ -155,15 +155,15 @@ components:
|
|
|
155
155
|
type: array
|
|
156
156
|
items:
|
|
157
157
|
oneOf:
|
|
158
|
-
- $ref:
|
|
158
|
+
- $ref: "#/components/schemas/MeasureUnitSchema"
|
|
159
159
|
- allOf:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
160
|
+
- $ref: "#/components/schemas/MeasureUnitSchema"
|
|
161
|
+
- type: object
|
|
162
|
+
properties:
|
|
163
|
+
family:
|
|
164
|
+
type: array
|
|
165
|
+
items:
|
|
166
|
+
$ref: "#/components/schemas/MeasureUnitFamilySchema"
|
|
167
167
|
total_result:
|
|
168
168
|
type: number
|
|
169
169
|
description: Total number of measure units
|
|
@@ -311,10 +311,10 @@ components:
|
|
|
311
311
|
additionalProperties: true
|
|
312
312
|
description: Integration metadata
|
|
313
313
|
MeasureUnitCreateResult:
|
|
314
|
-
$ref:
|
|
314
|
+
$ref: "#/components/schemas/MeasureUnitSchema"
|
|
315
315
|
description: Result of creating a measure unit
|
|
316
316
|
MeasureUnitGetResult:
|
|
317
|
-
$ref:
|
|
317
|
+
$ref: "#/components/schemas/MeasureUnitSchema"
|
|
318
318
|
description: Result of getting a measure unit
|
|
319
319
|
MeasureUnitUpdateBody:
|
|
320
320
|
type: object
|
|
@@ -359,8 +359,8 @@ components:
|
|
|
359
359
|
type: number
|
|
360
360
|
description: Version number
|
|
361
361
|
MeasureUnitUpdateResult:
|
|
362
|
-
$ref:
|
|
362
|
+
$ref: "#/components/schemas/MeasureUnitSchema"
|
|
363
363
|
description: Result of updating a measure unit
|
|
364
364
|
MeasureUnitRemoveResult:
|
|
365
|
-
$ref:
|
|
365
|
+
$ref: "#/components/schemas/MeasureUnitSchema"
|
|
366
366
|
description: Result of removing a measure unit
|