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,268 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Team
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Team endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/team:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find teams
|
|
12
|
+
operationId: findTeams
|
|
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
|
+
disabled:
|
|
34
|
+
type: boolean
|
|
35
|
+
from_updatedAt:
|
|
36
|
+
type: number
|
|
37
|
+
to_updatedAt:
|
|
38
|
+
type: number
|
|
39
|
+
from__id:
|
|
40
|
+
type: string
|
|
41
|
+
to__id:
|
|
42
|
+
type: string
|
|
43
|
+
sortBy:
|
|
44
|
+
type: array
|
|
45
|
+
items:
|
|
46
|
+
type: object
|
|
47
|
+
properties:
|
|
48
|
+
field:
|
|
49
|
+
type: string
|
|
50
|
+
enum: [_id]
|
|
51
|
+
type:
|
|
52
|
+
type: string
|
|
53
|
+
enum: [asc, desc]
|
|
54
|
+
description: Query parameters for filtering teams
|
|
55
|
+
responses:
|
|
56
|
+
'200':
|
|
57
|
+
description: A list of teams
|
|
58
|
+
content:
|
|
59
|
+
application/json:
|
|
60
|
+
schema:
|
|
61
|
+
$ref: '#/components/schemas/TeamFindResult'
|
|
62
|
+
post:
|
|
63
|
+
summary: Create a team
|
|
64
|
+
operationId: createTeam
|
|
65
|
+
requestBody:
|
|
66
|
+
required: true
|
|
67
|
+
content:
|
|
68
|
+
application/json:
|
|
69
|
+
schema:
|
|
70
|
+
$ref: '#/components/schemas/TeamCreateBody'
|
|
71
|
+
responses:
|
|
72
|
+
'201':
|
|
73
|
+
description: Team created
|
|
74
|
+
content:
|
|
75
|
+
application/json:
|
|
76
|
+
schema:
|
|
77
|
+
$ref: '#/components/schemas/TeamCreateResult'
|
|
78
|
+
/team/{id}:
|
|
79
|
+
get:
|
|
80
|
+
summary: Get a team by ID
|
|
81
|
+
operationId: getTeam
|
|
82
|
+
parameters:
|
|
83
|
+
- in: path
|
|
84
|
+
name: id
|
|
85
|
+
required: true
|
|
86
|
+
schema:
|
|
87
|
+
type: string
|
|
88
|
+
responses:
|
|
89
|
+
'200':
|
|
90
|
+
description: Team details
|
|
91
|
+
content:
|
|
92
|
+
application/json:
|
|
93
|
+
schema:
|
|
94
|
+
$ref: '#/components/schemas/TeamGetResult'
|
|
95
|
+
put:
|
|
96
|
+
summary: Update a team
|
|
97
|
+
operationId: updateTeam
|
|
98
|
+
parameters:
|
|
99
|
+
- in: path
|
|
100
|
+
name: id
|
|
101
|
+
required: true
|
|
102
|
+
schema:
|
|
103
|
+
type: string
|
|
104
|
+
requestBody:
|
|
105
|
+
required: true
|
|
106
|
+
content:
|
|
107
|
+
application/json:
|
|
108
|
+
schema:
|
|
109
|
+
$ref: '#/components/schemas/TeamUpdateBody'
|
|
110
|
+
responses:
|
|
111
|
+
'200':
|
|
112
|
+
description: Team updated
|
|
113
|
+
content:
|
|
114
|
+
application/json:
|
|
115
|
+
schema:
|
|
116
|
+
$ref: '#/components/schemas/TeamUpdateResult'
|
|
117
|
+
delete:
|
|
118
|
+
summary: Remove a team
|
|
119
|
+
operationId: removeTeam
|
|
120
|
+
parameters:
|
|
121
|
+
- in: path
|
|
122
|
+
name: id
|
|
123
|
+
required: true
|
|
124
|
+
schema:
|
|
125
|
+
type: string
|
|
126
|
+
responses:
|
|
127
|
+
'200':
|
|
128
|
+
description: Team removed
|
|
129
|
+
content:
|
|
130
|
+
application/json:
|
|
131
|
+
schema:
|
|
132
|
+
$ref: '#/components/schemas/TeamRemoveResult'
|
|
133
|
+
components:
|
|
134
|
+
schemas:
|
|
135
|
+
TeamFindResult:
|
|
136
|
+
type: object
|
|
137
|
+
description: Result of finding teams
|
|
138
|
+
properties:
|
|
139
|
+
data:
|
|
140
|
+
type: array
|
|
141
|
+
items:
|
|
142
|
+
$ref: '#/components/schemas/TeamSchema'
|
|
143
|
+
total_result:
|
|
144
|
+
type: number
|
|
145
|
+
description: Total number of teams
|
|
146
|
+
current_count:
|
|
147
|
+
type: number
|
|
148
|
+
description: Count of teams in current page
|
|
149
|
+
total_pages:
|
|
150
|
+
type: number
|
|
151
|
+
description: Total number of pages
|
|
152
|
+
current_page:
|
|
153
|
+
type: number
|
|
154
|
+
description: Current page number
|
|
155
|
+
per_page:
|
|
156
|
+
type: number
|
|
157
|
+
description: Number of teams per page
|
|
158
|
+
first_page_url:
|
|
159
|
+
type: string
|
|
160
|
+
description: URL for the first page
|
|
161
|
+
last_page_url:
|
|
162
|
+
type: string
|
|
163
|
+
description: URL for the last page
|
|
164
|
+
next_page_url:
|
|
165
|
+
type: string
|
|
166
|
+
nullable: true
|
|
167
|
+
description: URL for the next page
|
|
168
|
+
prev_page_url:
|
|
169
|
+
type: string
|
|
170
|
+
nullable: true
|
|
171
|
+
description: URL for the previous page
|
|
172
|
+
path:
|
|
173
|
+
type: string
|
|
174
|
+
description: Base URL path
|
|
175
|
+
TeamSchema:
|
|
176
|
+
type: object
|
|
177
|
+
description: Team schema
|
|
178
|
+
properties:
|
|
179
|
+
_id:
|
|
180
|
+
type: string
|
|
181
|
+
description: Unique identifier for the team
|
|
182
|
+
name:
|
|
183
|
+
type: string
|
|
184
|
+
description: Name of the team
|
|
185
|
+
disabled:
|
|
186
|
+
type: boolean
|
|
187
|
+
description: Whether the team is disabled
|
|
188
|
+
company_namespace:
|
|
189
|
+
type: array
|
|
190
|
+
items:
|
|
191
|
+
type: string
|
|
192
|
+
description: Company namespaces
|
|
193
|
+
createdAt:
|
|
194
|
+
type: string
|
|
195
|
+
format: date-time
|
|
196
|
+
description: Creation timestamp
|
|
197
|
+
updatedAt:
|
|
198
|
+
type: string
|
|
199
|
+
format: date-time
|
|
200
|
+
description: Last update timestamp
|
|
201
|
+
__v:
|
|
202
|
+
type: number
|
|
203
|
+
description: Version number
|
|
204
|
+
TeamCreateBody:
|
|
205
|
+
type: object
|
|
206
|
+
description: Body for creating a team
|
|
207
|
+
required:
|
|
208
|
+
- name
|
|
209
|
+
properties:
|
|
210
|
+
name:
|
|
211
|
+
type: string
|
|
212
|
+
description: Name of the team
|
|
213
|
+
company_namespace:
|
|
214
|
+
type: array
|
|
215
|
+
items:
|
|
216
|
+
type: string
|
|
217
|
+
description: Company namespaces
|
|
218
|
+
disabled:
|
|
219
|
+
type: boolean
|
|
220
|
+
description: Whether the team is disabled
|
|
221
|
+
TeamCreateResult:
|
|
222
|
+
$ref: '#/components/schemas/TeamSchema'
|
|
223
|
+
description: Result of creating a team
|
|
224
|
+
TeamGetResult:
|
|
225
|
+
allOf:
|
|
226
|
+
- $ref: '#/components/schemas/TeamSchema'
|
|
227
|
+
- type: object
|
|
228
|
+
properties:
|
|
229
|
+
admins:
|
|
230
|
+
description: Administrators associated with the team
|
|
231
|
+
reps:
|
|
232
|
+
description: Representatives associated with the team
|
|
233
|
+
description: Result of getting a team
|
|
234
|
+
TeamUpdateBody:
|
|
235
|
+
type: object
|
|
236
|
+
description: Body for updating a team
|
|
237
|
+
properties:
|
|
238
|
+
name:
|
|
239
|
+
type: string
|
|
240
|
+
description: Name of the team
|
|
241
|
+
company_namespace:
|
|
242
|
+
type: array
|
|
243
|
+
items:
|
|
244
|
+
type: string
|
|
245
|
+
description: Company namespaces
|
|
246
|
+
disabled:
|
|
247
|
+
type: boolean
|
|
248
|
+
description: Whether the team is disabled
|
|
249
|
+
_id:
|
|
250
|
+
type: string
|
|
251
|
+
description: Unique identifier for the team
|
|
252
|
+
createdAt:
|
|
253
|
+
type: string
|
|
254
|
+
format: date-time
|
|
255
|
+
description: Creation timestamp
|
|
256
|
+
updatedAt:
|
|
257
|
+
type: string
|
|
258
|
+
format: date-time
|
|
259
|
+
description: Last update timestamp
|
|
260
|
+
__v:
|
|
261
|
+
type: number
|
|
262
|
+
description: Version number
|
|
263
|
+
TeamUpdateResult:
|
|
264
|
+
$ref: '#/components/schemas/TeamSchema'
|
|
265
|
+
description: Result of updating a team
|
|
266
|
+
TeamRemoveResult:
|
|
267
|
+
$ref: '#/components/schemas/TeamSchema'
|
|
268
|
+
description: Result of removing a team
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Variant
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Variant endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/variant:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find variants
|
|
12
|
+
operationId: findVariants
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
description: Query parameters for filtering variants
|
|
19
|
+
responses:
|
|
20
|
+
'200':
|
|
21
|
+
description: A list of variants
|
|
22
|
+
content:
|
|
23
|
+
application/json:
|
|
24
|
+
schema:
|
|
25
|
+
$ref: '#/components/schemas/VariantFindResult'
|
|
26
|
+
post:
|
|
27
|
+
summary: Create a variant
|
|
28
|
+
operationId: createVariant
|
|
29
|
+
requestBody:
|
|
30
|
+
required: true
|
|
31
|
+
content:
|
|
32
|
+
application/json:
|
|
33
|
+
schema:
|
|
34
|
+
$ref: '#/components/schemas/VariantCreateBody'
|
|
35
|
+
responses:
|
|
36
|
+
'201':
|
|
37
|
+
description: Variant created
|
|
38
|
+
content:
|
|
39
|
+
application/json:
|
|
40
|
+
schema:
|
|
41
|
+
$ref: '#/components/schemas/VariantCreateResult'
|
|
42
|
+
/variant/{id}:
|
|
43
|
+
get:
|
|
44
|
+
summary: Get a variant by ID
|
|
45
|
+
operationId: getVariant
|
|
46
|
+
parameters:
|
|
47
|
+
- in: path
|
|
48
|
+
name: id
|
|
49
|
+
required: true
|
|
50
|
+
schema:
|
|
51
|
+
type: string
|
|
52
|
+
responses:
|
|
53
|
+
'200':
|
|
54
|
+
description: Variant details
|
|
55
|
+
content:
|
|
56
|
+
application/json:
|
|
57
|
+
schema:
|
|
58
|
+
$ref: '#/components/schemas/VariantGetResult'
|
|
59
|
+
put:
|
|
60
|
+
summary: Update a variant
|
|
61
|
+
operationId: updateVariant
|
|
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/VariantUpdateBody'
|
|
74
|
+
responses:
|
|
75
|
+
'200':
|
|
76
|
+
description: Variant updated
|
|
77
|
+
content:
|
|
78
|
+
application/json:
|
|
79
|
+
schema:
|
|
80
|
+
$ref: '#/components/schemas/VariantUpdateResult'
|
|
81
|
+
delete:
|
|
82
|
+
summary: Remove a variant
|
|
83
|
+
operationId: removeVariant
|
|
84
|
+
parameters:
|
|
85
|
+
- in: path
|
|
86
|
+
name: id
|
|
87
|
+
required: true
|
|
88
|
+
schema:
|
|
89
|
+
type: string
|
|
90
|
+
responses:
|
|
91
|
+
'200':
|
|
92
|
+
description: Variant removed
|
|
93
|
+
content:
|
|
94
|
+
application/json:
|
|
95
|
+
schema:
|
|
96
|
+
$ref: '#/components/schemas/VariantRemoveResult'
|
|
97
|
+
components:
|
|
98
|
+
schemas:
|
|
99
|
+
VariantFindResult:
|
|
100
|
+
type: object
|
|
101
|
+
description: Result of finding variants
|
|
102
|
+
properties:
|
|
103
|
+
data:
|
|
104
|
+
type: array
|
|
105
|
+
items:
|
|
106
|
+
$ref: '#/components/schemas/VariantSchema'
|
|
107
|
+
total_result:
|
|
108
|
+
type: number
|
|
109
|
+
description: Total number of variants
|
|
110
|
+
current_count:
|
|
111
|
+
type: number
|
|
112
|
+
description: Count of variants in current page
|
|
113
|
+
total_pages:
|
|
114
|
+
type: number
|
|
115
|
+
description: Total number of pages
|
|
116
|
+
current_page:
|
|
117
|
+
type: number
|
|
118
|
+
description: Current page number
|
|
119
|
+
per_page:
|
|
120
|
+
type: number
|
|
121
|
+
description: Number of variants per page
|
|
122
|
+
first_page_url:
|
|
123
|
+
type: string
|
|
124
|
+
description: URL for the first page
|
|
125
|
+
last_page_url:
|
|
126
|
+
type: string
|
|
127
|
+
description: URL for the last page
|
|
128
|
+
next_page_url:
|
|
129
|
+
type: string
|
|
130
|
+
nullable: true
|
|
131
|
+
description: URL for the next page
|
|
132
|
+
prev_page_url:
|
|
133
|
+
type: string
|
|
134
|
+
nullable: true
|
|
135
|
+
description: URL for the previous page
|
|
136
|
+
path:
|
|
137
|
+
type: string
|
|
138
|
+
description: Base URL path
|
|
139
|
+
VariantSchema:
|
|
140
|
+
type: object
|
|
141
|
+
description: Variant schema
|
|
142
|
+
properties:
|
|
143
|
+
_id:
|
|
144
|
+
type: string
|
|
145
|
+
description: Unique identifier for the variant
|
|
146
|
+
name:
|
|
147
|
+
type: string
|
|
148
|
+
description: Name of the variant
|
|
149
|
+
product:
|
|
150
|
+
type: string
|
|
151
|
+
description: ID of the product this variant belongs to
|
|
152
|
+
price:
|
|
153
|
+
type: number
|
|
154
|
+
description: Price of the variant
|
|
155
|
+
company_namespace:
|
|
156
|
+
type: array
|
|
157
|
+
items:
|
|
158
|
+
type: string
|
|
159
|
+
description: Company namespaces
|
|
160
|
+
disabled:
|
|
161
|
+
type: boolean
|
|
162
|
+
description: Whether the variant is disabled
|
|
163
|
+
uuid:
|
|
164
|
+
type: string
|
|
165
|
+
description: UUID for the variant
|
|
166
|
+
local_name:
|
|
167
|
+
type: string
|
|
168
|
+
description: Localized name of the variant
|
|
169
|
+
sku:
|
|
170
|
+
type: string
|
|
171
|
+
description: Stock keeping unit
|
|
172
|
+
barcode:
|
|
173
|
+
type: string
|
|
174
|
+
description: Barcode of the variant
|
|
175
|
+
weight:
|
|
176
|
+
type: number
|
|
177
|
+
description: Weight of the variant
|
|
178
|
+
length:
|
|
179
|
+
type: number
|
|
180
|
+
description: Length of the variant
|
|
181
|
+
width:
|
|
182
|
+
type: number
|
|
183
|
+
description: Width of the variant
|
|
184
|
+
height:
|
|
185
|
+
type: number
|
|
186
|
+
description: Height of the variant
|
|
187
|
+
position:
|
|
188
|
+
type: number
|
|
189
|
+
description: Position of the variant
|
|
190
|
+
default:
|
|
191
|
+
type: boolean
|
|
192
|
+
description: Whether this is the default variant
|
|
193
|
+
variant_img:
|
|
194
|
+
type: string
|
|
195
|
+
description: Image URL for the variant
|
|
196
|
+
modifiers_groups:
|
|
197
|
+
type: array
|
|
198
|
+
items:
|
|
199
|
+
type: string
|
|
200
|
+
description: Modifier groups for the variant
|
|
201
|
+
integration_meta:
|
|
202
|
+
type: object
|
|
203
|
+
additionalProperties: true
|
|
204
|
+
description: Integration metadata
|
|
205
|
+
createdAt:
|
|
206
|
+
type: string
|
|
207
|
+
format: date-time
|
|
208
|
+
description: Creation timestamp
|
|
209
|
+
updatedAt:
|
|
210
|
+
type: string
|
|
211
|
+
format: date-time
|
|
212
|
+
description: Last update timestamp
|
|
213
|
+
__v:
|
|
214
|
+
type: number
|
|
215
|
+
description: Version number
|
|
216
|
+
VariantCreateBody:
|
|
217
|
+
type: object
|
|
218
|
+
description: Body for creating a variant
|
|
219
|
+
required:
|
|
220
|
+
- name
|
|
221
|
+
- product
|
|
222
|
+
- price
|
|
223
|
+
properties:
|
|
224
|
+
name:
|
|
225
|
+
type: string
|
|
226
|
+
description: Name of the variant
|
|
227
|
+
product:
|
|
228
|
+
type: string
|
|
229
|
+
description: ID of the product this variant belongs to
|
|
230
|
+
price:
|
|
231
|
+
type: number
|
|
232
|
+
description: Price of the variant
|
|
233
|
+
company_namespace:
|
|
234
|
+
type: array
|
|
235
|
+
items:
|
|
236
|
+
type: string
|
|
237
|
+
description: Company namespaces
|
|
238
|
+
disabled:
|
|
239
|
+
type: boolean
|
|
240
|
+
description: Whether the variant is disabled
|
|
241
|
+
uuid:
|
|
242
|
+
type: string
|
|
243
|
+
description: UUID for the variant
|
|
244
|
+
local_name:
|
|
245
|
+
type: string
|
|
246
|
+
description: Localized name of the variant
|
|
247
|
+
sku:
|
|
248
|
+
type: string
|
|
249
|
+
description: Stock keeping unit
|
|
250
|
+
barcode:
|
|
251
|
+
type: string
|
|
252
|
+
description: Barcode of the variant
|
|
253
|
+
weight:
|
|
254
|
+
type: number
|
|
255
|
+
description: Weight of the variant
|
|
256
|
+
length:
|
|
257
|
+
type: number
|
|
258
|
+
description: Length of the variant
|
|
259
|
+
width:
|
|
260
|
+
type: number
|
|
261
|
+
description: Width of the variant
|
|
262
|
+
height:
|
|
263
|
+
type: number
|
|
264
|
+
description: Height of the variant
|
|
265
|
+
position:
|
|
266
|
+
type: number
|
|
267
|
+
description: Position of the variant
|
|
268
|
+
default:
|
|
269
|
+
type: boolean
|
|
270
|
+
description: Whether this is the default variant
|
|
271
|
+
variant_img:
|
|
272
|
+
type: string
|
|
273
|
+
description: Image URL for the variant
|
|
274
|
+
modifiers_groups:
|
|
275
|
+
type: array
|
|
276
|
+
items:
|
|
277
|
+
type: string
|
|
278
|
+
description: Modifier groups for the variant
|
|
279
|
+
integration_meta:
|
|
280
|
+
type: object
|
|
281
|
+
additionalProperties: true
|
|
282
|
+
description: Integration metadata
|
|
283
|
+
VariantCreateResult:
|
|
284
|
+
type: object
|
|
285
|
+
description: Result of creating a variant
|
|
286
|
+
properties:
|
|
287
|
+
$ref: '#/components/schemas/VariantSchema'
|
|
288
|
+
VariantGetResult:
|
|
289
|
+
$ref: '#/components/schemas/VariantSchema'
|
|
290
|
+
description: Result of getting a variant
|
|
291
|
+
VariantUpdateBody:
|
|
292
|
+
type: object
|
|
293
|
+
description: Body for updating a variant
|
|
294
|
+
properties:
|
|
295
|
+
name:
|
|
296
|
+
type: string
|
|
297
|
+
description: Name of the variant
|
|
298
|
+
product:
|
|
299
|
+
type: string
|
|
300
|
+
description: ID of the product this variant belongs to
|
|
301
|
+
price:
|
|
302
|
+
type: number
|
|
303
|
+
description: Price of the variant
|
|
304
|
+
company_namespace:
|
|
305
|
+
type: array
|
|
306
|
+
items:
|
|
307
|
+
type: string
|
|
308
|
+
description: Company namespaces
|
|
309
|
+
disabled:
|
|
310
|
+
type: boolean
|
|
311
|
+
description: Whether the variant is disabled
|
|
312
|
+
uuid:
|
|
313
|
+
type: string
|
|
314
|
+
description: UUID for the variant
|
|
315
|
+
local_name:
|
|
316
|
+
type: string
|
|
317
|
+
description: Localized name of the variant
|
|
318
|
+
sku:
|
|
319
|
+
type: string
|
|
320
|
+
description: Stock keeping unit
|
|
321
|
+
barcode:
|
|
322
|
+
type: string
|
|
323
|
+
description: Barcode of the variant
|
|
324
|
+
weight:
|
|
325
|
+
type: number
|
|
326
|
+
description: Weight of the variant
|
|
327
|
+
length:
|
|
328
|
+
type: number
|
|
329
|
+
description: Length of the variant
|
|
330
|
+
width:
|
|
331
|
+
type: number
|
|
332
|
+
description: Width of the variant
|
|
333
|
+
height:
|
|
334
|
+
type: number
|
|
335
|
+
description: Height of the variant
|
|
336
|
+
position:
|
|
337
|
+
type: number
|
|
338
|
+
description: Position of the variant
|
|
339
|
+
default:
|
|
340
|
+
type: boolean
|
|
341
|
+
description: Whether this is the default variant
|
|
342
|
+
variant_img:
|
|
343
|
+
type: string
|
|
344
|
+
description: Image URL for the variant
|
|
345
|
+
modifiers_groups:
|
|
346
|
+
type: array
|
|
347
|
+
items:
|
|
348
|
+
type: string
|
|
349
|
+
description: Modifier groups for the variant
|
|
350
|
+
integration_meta:
|
|
351
|
+
type: object
|
|
352
|
+
additionalProperties: true
|
|
353
|
+
description: Integration metadata
|
|
354
|
+
_id:
|
|
355
|
+
type: string
|
|
356
|
+
description: Unique identifier for the variant
|
|
357
|
+
createdAt:
|
|
358
|
+
type: string
|
|
359
|
+
format: date-time
|
|
360
|
+
description: Creation timestamp
|
|
361
|
+
updatedAt:
|
|
362
|
+
type: string
|
|
363
|
+
format: date-time
|
|
364
|
+
description: Last update timestamp
|
|
365
|
+
__v:
|
|
366
|
+
type: number
|
|
367
|
+
description: Version number
|
|
368
|
+
VariantUpdateResult:
|
|
369
|
+
$ref: '#/components/schemas/VariantSchema'
|
|
370
|
+
description: Result of updating a variant
|
|
371
|
+
VariantRemoveResult:
|
|
372
|
+
$ref: '#/components/schemas/VariantSchema'
|
|
373
|
+
description: Result of removing a variant
|