repzo 1.0.125 → 1.0.126
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 +36 -0
- package/lib/index.js +70 -0
- package/lib/types/index.d.ts +120 -0
- package/package.json +1 -1
- package/src/index.ts +94 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media.yaml +345 -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.yaml +578 -0
- package/src/oas/rep.yaml +410 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/subcategory.yaml +355 -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/variant.yaml +373 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/types/index.ts +127 -0
- package/test.ts +2 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Price List
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Price List endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/pricelist:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find price lists
|
|
12
|
+
operationId: findPriceLists
|
|
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
|
+
"createdby._id":
|
|
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
|
+
from__id:
|
|
44
|
+
type: string
|
|
45
|
+
to__id:
|
|
46
|
+
type: string
|
|
47
|
+
sortBy:
|
|
48
|
+
type: array
|
|
49
|
+
items:
|
|
50
|
+
type: object
|
|
51
|
+
properties:
|
|
52
|
+
field:
|
|
53
|
+
type: string
|
|
54
|
+
enum: [_id]
|
|
55
|
+
type:
|
|
56
|
+
type: string
|
|
57
|
+
enum: [asc, desc]
|
|
58
|
+
description: Query parameters for filtering price lists
|
|
59
|
+
responses:
|
|
60
|
+
'200':
|
|
61
|
+
description: A list of price lists
|
|
62
|
+
content:
|
|
63
|
+
application/json:
|
|
64
|
+
schema:
|
|
65
|
+
$ref: '#/components/schemas/PriceListFindResult'
|
|
66
|
+
post:
|
|
67
|
+
summary: Create a price list
|
|
68
|
+
operationId: createPriceList
|
|
69
|
+
requestBody:
|
|
70
|
+
required: true
|
|
71
|
+
content:
|
|
72
|
+
application/json:
|
|
73
|
+
schema:
|
|
74
|
+
$ref: '#/components/schemas/PriceListCreateBody'
|
|
75
|
+
responses:
|
|
76
|
+
'201':
|
|
77
|
+
description: Price list created
|
|
78
|
+
content:
|
|
79
|
+
application/json:
|
|
80
|
+
schema:
|
|
81
|
+
$ref: '#/components/schemas/PriceListCreateResult'
|
|
82
|
+
/pricelist/{id}:
|
|
83
|
+
get:
|
|
84
|
+
summary: Get a price list by ID
|
|
85
|
+
operationId: getPriceList
|
|
86
|
+
parameters:
|
|
87
|
+
- in: path
|
|
88
|
+
name: id
|
|
89
|
+
required: true
|
|
90
|
+
schema:
|
|
91
|
+
type: string
|
|
92
|
+
responses:
|
|
93
|
+
'200':
|
|
94
|
+
description: Price list details
|
|
95
|
+
content:
|
|
96
|
+
application/json:
|
|
97
|
+
schema:
|
|
98
|
+
$ref: '#/components/schemas/PriceListGetResult'
|
|
99
|
+
put:
|
|
100
|
+
summary: Update a price list
|
|
101
|
+
operationId: updatePriceList
|
|
102
|
+
parameters:
|
|
103
|
+
- in: path
|
|
104
|
+
name: id
|
|
105
|
+
required: true
|
|
106
|
+
schema:
|
|
107
|
+
type: string
|
|
108
|
+
requestBody:
|
|
109
|
+
required: true
|
|
110
|
+
content:
|
|
111
|
+
application/json:
|
|
112
|
+
schema:
|
|
113
|
+
$ref: '#/components/schemas/PriceListUpdateBody'
|
|
114
|
+
responses:
|
|
115
|
+
'200':
|
|
116
|
+
description: Price list updated
|
|
117
|
+
content:
|
|
118
|
+
application/json:
|
|
119
|
+
schema:
|
|
120
|
+
$ref: '#/components/schemas/PriceListUpdateResult'
|
|
121
|
+
delete:
|
|
122
|
+
summary: Remove a price list
|
|
123
|
+
operationId: removePriceList
|
|
124
|
+
parameters:
|
|
125
|
+
- in: path
|
|
126
|
+
name: id
|
|
127
|
+
required: true
|
|
128
|
+
schema:
|
|
129
|
+
type: string
|
|
130
|
+
responses:
|
|
131
|
+
'200':
|
|
132
|
+
description: Price list removed
|
|
133
|
+
content:
|
|
134
|
+
application/json:
|
|
135
|
+
schema:
|
|
136
|
+
$ref: '#/components/schemas/PriceListRemoveResult'
|
|
137
|
+
components:
|
|
138
|
+
schemas:
|
|
139
|
+
PriceListFindResult:
|
|
140
|
+
type: object
|
|
141
|
+
description: Result of finding price lists
|
|
142
|
+
properties:
|
|
143
|
+
data:
|
|
144
|
+
type: array
|
|
145
|
+
items:
|
|
146
|
+
$ref: '#/components/schemas/PriceListSchema'
|
|
147
|
+
total_result:
|
|
148
|
+
type: number
|
|
149
|
+
description: Total number of price lists
|
|
150
|
+
current_count:
|
|
151
|
+
type: number
|
|
152
|
+
description: Count of price lists in current page
|
|
153
|
+
total_pages:
|
|
154
|
+
type: number
|
|
155
|
+
description: Total number of pages
|
|
156
|
+
current_page:
|
|
157
|
+
type: number
|
|
158
|
+
description: Current page number
|
|
159
|
+
per_page:
|
|
160
|
+
type: number
|
|
161
|
+
description: Number of price lists per page
|
|
162
|
+
first_page_url:
|
|
163
|
+
type: string
|
|
164
|
+
description: URL for the first page
|
|
165
|
+
last_page_url:
|
|
166
|
+
type: string
|
|
167
|
+
description: URL for the last page
|
|
168
|
+
next_page_url:
|
|
169
|
+
type: string
|
|
170
|
+
nullable: true
|
|
171
|
+
description: URL for the next page
|
|
172
|
+
prev_page_url:
|
|
173
|
+
type: string
|
|
174
|
+
nullable: true
|
|
175
|
+
description: URL for the previous page
|
|
176
|
+
path:
|
|
177
|
+
type: string
|
|
178
|
+
description: Base URL path
|
|
179
|
+
PriceListSchema:
|
|
180
|
+
type: object
|
|
181
|
+
description: Price list schema
|
|
182
|
+
properties:
|
|
183
|
+
_id:
|
|
184
|
+
type: string
|
|
185
|
+
description: Unique identifier for the price list
|
|
186
|
+
name:
|
|
187
|
+
type: string
|
|
188
|
+
description: Name of the price list
|
|
189
|
+
createdby:
|
|
190
|
+
type: object
|
|
191
|
+
properties:
|
|
192
|
+
_id:
|
|
193
|
+
type: string
|
|
194
|
+
description: ID of the creator
|
|
195
|
+
name:
|
|
196
|
+
type: string
|
|
197
|
+
description: Name of the creator
|
|
198
|
+
description: Creator information
|
|
199
|
+
disabled:
|
|
200
|
+
type: boolean
|
|
201
|
+
description: Whether the price list is disabled
|
|
202
|
+
integration_meta:
|
|
203
|
+
type: object
|
|
204
|
+
additionalProperties: true
|
|
205
|
+
description: Integration metadata
|
|
206
|
+
company_namespace:
|
|
207
|
+
type: array
|
|
208
|
+
items:
|
|
209
|
+
type: string
|
|
210
|
+
description: Company namespaces
|
|
211
|
+
createdAt:
|
|
212
|
+
type: string
|
|
213
|
+
format: date-time
|
|
214
|
+
description: Creation timestamp
|
|
215
|
+
updatedAt:
|
|
216
|
+
type: string
|
|
217
|
+
format: date-time
|
|
218
|
+
description: Last update timestamp
|
|
219
|
+
__v:
|
|
220
|
+
type: number
|
|
221
|
+
description: Version number
|
|
222
|
+
PriceListCreateBody:
|
|
223
|
+
type: object
|
|
224
|
+
description: Body for creating a price list
|
|
225
|
+
required:
|
|
226
|
+
- name
|
|
227
|
+
properties:
|
|
228
|
+
name:
|
|
229
|
+
type: string
|
|
230
|
+
description: Name of the price list
|
|
231
|
+
integration_meta:
|
|
232
|
+
type: object
|
|
233
|
+
additionalProperties: true
|
|
234
|
+
description: Integration metadata
|
|
235
|
+
disabled:
|
|
236
|
+
type: boolean
|
|
237
|
+
description: Whether the price list is disabled
|
|
238
|
+
company_namespace:
|
|
239
|
+
type: array
|
|
240
|
+
items:
|
|
241
|
+
type: string
|
|
242
|
+
description: Company namespaces
|
|
243
|
+
PriceListCreateResult:
|
|
244
|
+
$ref: '#/components/schemas/PriceListSchema'
|
|
245
|
+
description: Result of creating a price list
|
|
246
|
+
PriceListGetResult:
|
|
247
|
+
$ref: '#/components/schemas/PriceListSchema'
|
|
248
|
+
description: Result of getting a price list
|
|
249
|
+
PriceListUpdateBody:
|
|
250
|
+
type: object
|
|
251
|
+
description: Body for updating a price list
|
|
252
|
+
properties:
|
|
253
|
+
name:
|
|
254
|
+
type: string
|
|
255
|
+
description: Name of the price list
|
|
256
|
+
integration_meta:
|
|
257
|
+
type: object
|
|
258
|
+
additionalProperties: true
|
|
259
|
+
description: Integration metadata
|
|
260
|
+
disabled:
|
|
261
|
+
type: boolean
|
|
262
|
+
description: Whether the price list is disabled
|
|
263
|
+
company_namespace:
|
|
264
|
+
type: array
|
|
265
|
+
items:
|
|
266
|
+
type: string
|
|
267
|
+
description: Company namespaces
|
|
268
|
+
_id:
|
|
269
|
+
type: string
|
|
270
|
+
description: Unique identifier for the price list
|
|
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
|
+
PriceListUpdateResult:
|
|
283
|
+
$ref: '#/components/schemas/PriceListSchema'
|
|
284
|
+
description: Result of updating a price list
|
|
285
|
+
PriceListRemoveResult:
|
|
286
|
+
$ref: '#/components/schemas/PriceListSchema'
|
|
287
|
+
description: Result of removing a price list
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Product Group
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Product Group endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/product-group:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find product groups
|
|
12
|
+
operationId: findProductGroups
|
|
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
|
+
from__id:
|
|
44
|
+
type: string
|
|
45
|
+
to__id:
|
|
46
|
+
type: string
|
|
47
|
+
sortBy:
|
|
48
|
+
type: array
|
|
49
|
+
items:
|
|
50
|
+
type: object
|
|
51
|
+
properties:
|
|
52
|
+
field:
|
|
53
|
+
type: string
|
|
54
|
+
enum: [_id]
|
|
55
|
+
type:
|
|
56
|
+
type: string
|
|
57
|
+
enum: [asc, desc]
|
|
58
|
+
createdAt:
|
|
59
|
+
type: number
|
|
60
|
+
updatedAt:
|
|
61
|
+
type: number
|
|
62
|
+
description: Query parameters for filtering product groups
|
|
63
|
+
responses:
|
|
64
|
+
'200':
|
|
65
|
+
description: A list of product groups
|
|
66
|
+
content:
|
|
67
|
+
application/json:
|
|
68
|
+
schema:
|
|
69
|
+
$ref: '#/components/schemas/ProductGroupFindResult'
|
|
70
|
+
post:
|
|
71
|
+
summary: Create a product group
|
|
72
|
+
operationId: createProductGroup
|
|
73
|
+
requestBody:
|
|
74
|
+
required: true
|
|
75
|
+
content:
|
|
76
|
+
application/json:
|
|
77
|
+
schema:
|
|
78
|
+
$ref: '#/components/schemas/ProductGroupCreateBody'
|
|
79
|
+
responses:
|
|
80
|
+
'201':
|
|
81
|
+
description: Product group created
|
|
82
|
+
content:
|
|
83
|
+
application/json:
|
|
84
|
+
schema:
|
|
85
|
+
$ref: '#/components/schemas/ProductGroupCreateResult'
|
|
86
|
+
/product-group/{id}:
|
|
87
|
+
get:
|
|
88
|
+
summary: Get a product group by ID
|
|
89
|
+
operationId: getProductGroup
|
|
90
|
+
parameters:
|
|
91
|
+
- in: path
|
|
92
|
+
name: id
|
|
93
|
+
required: true
|
|
94
|
+
schema:
|
|
95
|
+
type: string
|
|
96
|
+
responses:
|
|
97
|
+
'200':
|
|
98
|
+
description: Product group details
|
|
99
|
+
content:
|
|
100
|
+
application/json:
|
|
101
|
+
schema:
|
|
102
|
+
$ref: '#/components/schemas/ProductGroupGetResult'
|
|
103
|
+
put:
|
|
104
|
+
summary: Update a product group
|
|
105
|
+
operationId: updateProductGroup
|
|
106
|
+
parameters:
|
|
107
|
+
- in: path
|
|
108
|
+
name: id
|
|
109
|
+
required: true
|
|
110
|
+
schema:
|
|
111
|
+
type: string
|
|
112
|
+
requestBody:
|
|
113
|
+
required: true
|
|
114
|
+
content:
|
|
115
|
+
application/json:
|
|
116
|
+
schema:
|
|
117
|
+
$ref: '#/components/schemas/ProductGroupUpdateBody'
|
|
118
|
+
responses:
|
|
119
|
+
'200':
|
|
120
|
+
description: Product group updated
|
|
121
|
+
content:
|
|
122
|
+
application/json:
|
|
123
|
+
schema:
|
|
124
|
+
$ref: '#/components/schemas/ProductGroupUpdateResult'
|
|
125
|
+
delete:
|
|
126
|
+
summary: Remove a product group
|
|
127
|
+
operationId: removeProductGroup
|
|
128
|
+
parameters:
|
|
129
|
+
- in: path
|
|
130
|
+
name: id
|
|
131
|
+
required: true
|
|
132
|
+
schema:
|
|
133
|
+
type: string
|
|
134
|
+
responses:
|
|
135
|
+
'200':
|
|
136
|
+
description: Product group removed
|
|
137
|
+
content:
|
|
138
|
+
application/json:
|
|
139
|
+
schema:
|
|
140
|
+
$ref: '#/components/schemas/ProductGroupRemoveResult'
|
|
141
|
+
components:
|
|
142
|
+
schemas:
|
|
143
|
+
ProductGroupFindResult:
|
|
144
|
+
type: object
|
|
145
|
+
description: Result of finding product groups
|
|
146
|
+
properties:
|
|
147
|
+
data:
|
|
148
|
+
type: array
|
|
149
|
+
items:
|
|
150
|
+
$ref: '#/components/schemas/ProductGroupSchema'
|
|
151
|
+
total_result:
|
|
152
|
+
type: number
|
|
153
|
+
description: Total number of product groups
|
|
154
|
+
current_count:
|
|
155
|
+
type: number
|
|
156
|
+
description: Count of product groups in current page
|
|
157
|
+
total_pages:
|
|
158
|
+
type: number
|
|
159
|
+
description: Total number of pages
|
|
160
|
+
current_page:
|
|
161
|
+
type: number
|
|
162
|
+
description: Current page number
|
|
163
|
+
per_page:
|
|
164
|
+
type: number
|
|
165
|
+
description: Number of product groups per page
|
|
166
|
+
first_page_url:
|
|
167
|
+
type: string
|
|
168
|
+
description: URL for the first page
|
|
169
|
+
last_page_url:
|
|
170
|
+
type: string
|
|
171
|
+
description: URL for the last page
|
|
172
|
+
next_page_url:
|
|
173
|
+
type: string
|
|
174
|
+
nullable: true
|
|
175
|
+
description: URL for the next page
|
|
176
|
+
prev_page_url:
|
|
177
|
+
type: string
|
|
178
|
+
nullable: true
|
|
179
|
+
description: URL for the previous page
|
|
180
|
+
path:
|
|
181
|
+
type: string
|
|
182
|
+
description: Base URL path
|
|
183
|
+
ProductGroupSchema:
|
|
184
|
+
type: object
|
|
185
|
+
description: Product group schema
|
|
186
|
+
properties:
|
|
187
|
+
_id:
|
|
188
|
+
type: string
|
|
189
|
+
description: Unique identifier for the product group
|
|
190
|
+
name:
|
|
191
|
+
type: string
|
|
192
|
+
description: Name of the product group
|
|
193
|
+
local_name:
|
|
194
|
+
type: string
|
|
195
|
+
description: Localized name of the product group
|
|
196
|
+
disabled:
|
|
197
|
+
type: boolean
|
|
198
|
+
description: Whether the product group is disabled
|
|
199
|
+
company_namespace:
|
|
200
|
+
type: array
|
|
201
|
+
items:
|
|
202
|
+
type: string
|
|
203
|
+
description: Company namespaces
|
|
204
|
+
createdAt:
|
|
205
|
+
type: string
|
|
206
|
+
format: date-time
|
|
207
|
+
description: Creation timestamp
|
|
208
|
+
updatedAt:
|
|
209
|
+
type: string
|
|
210
|
+
format: date-time
|
|
211
|
+
description: Last update timestamp
|
|
212
|
+
__v:
|
|
213
|
+
type: number
|
|
214
|
+
description: Version number
|
|
215
|
+
ProductGroupCreateBody:
|
|
216
|
+
type: object
|
|
217
|
+
description: Body for creating a product group
|
|
218
|
+
required:
|
|
219
|
+
- name
|
|
220
|
+
properties:
|
|
221
|
+
name:
|
|
222
|
+
type: string
|
|
223
|
+
description: Name of the product group
|
|
224
|
+
local_name:
|
|
225
|
+
type: string
|
|
226
|
+
description: Localized name of the product group
|
|
227
|
+
disabled:
|
|
228
|
+
type: boolean
|
|
229
|
+
description: Whether the product group is disabled
|
|
230
|
+
company_namespace:
|
|
231
|
+
type: array
|
|
232
|
+
items:
|
|
233
|
+
type: string
|
|
234
|
+
description: Company namespaces
|
|
235
|
+
ProductGroupCreateResult:
|
|
236
|
+
$ref: '#/components/schemas/ProductGroupSchema'
|
|
237
|
+
description: Result of creating a product group
|
|
238
|
+
ProductGroupGetResult:
|
|
239
|
+
$ref: '#/components/schemas/ProductGroupSchema'
|
|
240
|
+
description: Result of getting a product group
|
|
241
|
+
ProductGroupUpdateBody:
|
|
242
|
+
type: object
|
|
243
|
+
description: Body for updating a product group
|
|
244
|
+
properties:
|
|
245
|
+
name:
|
|
246
|
+
type: string
|
|
247
|
+
description: Name of the product group
|
|
248
|
+
local_name:
|
|
249
|
+
type: string
|
|
250
|
+
description: Localized name of the product group
|
|
251
|
+
disabled:
|
|
252
|
+
type: boolean
|
|
253
|
+
description: Whether the product group is disabled
|
|
254
|
+
company_namespace:
|
|
255
|
+
type: array
|
|
256
|
+
items:
|
|
257
|
+
type: string
|
|
258
|
+
description: Company namespaces
|
|
259
|
+
_id:
|
|
260
|
+
type: string
|
|
261
|
+
description: Unique identifier for the product group
|
|
262
|
+
createdAt:
|
|
263
|
+
type: string
|
|
264
|
+
format: date-time
|
|
265
|
+
description: Creation timestamp
|
|
266
|
+
updatedAt:
|
|
267
|
+
type: string
|
|
268
|
+
format: date-time
|
|
269
|
+
description: Last update timestamp
|
|
270
|
+
__v:
|
|
271
|
+
type: number
|
|
272
|
+
description: Version number
|
|
273
|
+
ProductGroupUpdateResult:
|
|
274
|
+
$ref: '#/components/schemas/ProductGroupSchema'
|
|
275
|
+
description: Result of updating a product group
|
|
276
|
+
ProductGroupRemoveResult:
|
|
277
|
+
$ref: '#/components/schemas/ProductGroupSchema'
|
|
278
|
+
description: Result of removing a product group
|