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.
@@ -0,0 +1,345 @@
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: [html, csv, json, image, pdf, ppt, pptx, xls, xlsx, doc, docx, images, zip, pt]
56
+ from_updatedAt:
57
+ type: number
58
+ from__id:
59
+ type: string
60
+ to__id:
61
+ type: string
62
+ sortBy:
63
+ type: array
64
+ items:
65
+ type: object
66
+ properties:
67
+ field:
68
+ type: string
69
+ enum: [_id]
70
+ type:
71
+ type: string
72
+ enum: [asc, desc]
73
+ description: Query parameters for filtering media
74
+ responses:
75
+ '200':
76
+ description: A list of media
77
+ content:
78
+ application/json:
79
+ schema:
80
+ $ref: '#/components/schemas/MediaFindResult'
81
+ post:
82
+ summary: Create media
83
+ operationId: createMedia
84
+ requestBody:
85
+ required: true
86
+ content:
87
+ application/json:
88
+ schema:
89
+ $ref: '#/components/schemas/MediaCreateBody'
90
+ responses:
91
+ '201':
92
+ description: Media created
93
+ content:
94
+ application/json:
95
+ schema:
96
+ $ref: '#/components/schemas/MediaCreateResult'
97
+ /media/{id}:
98
+ get:
99
+ summary: Get media by ID
100
+ operationId: getMedia
101
+ parameters:
102
+ - in: path
103
+ name: id
104
+ required: true
105
+ schema:
106
+ type: string
107
+ responses:
108
+ '200':
109
+ description: Media details
110
+ content:
111
+ application/json:
112
+ schema:
113
+ $ref: '#/components/schemas/MediaGetResult'
114
+ put:
115
+ summary: Update media
116
+ operationId: updateMedia
117
+ parameters:
118
+ - in: path
119
+ name: id
120
+ required: true
121
+ schema:
122
+ type: string
123
+ requestBody:
124
+ required: true
125
+ content:
126
+ application/json:
127
+ schema:
128
+ $ref: '#/components/schemas/MediaUpdateBody'
129
+ responses:
130
+ '200':
131
+ description: Media updated
132
+ content:
133
+ application/json:
134
+ schema:
135
+ $ref: '#/components/schemas/MediaUpdateResult'
136
+ delete:
137
+ summary: Remove media
138
+ operationId: removeMedia
139
+ parameters:
140
+ - in: path
141
+ name: id
142
+ required: true
143
+ schema:
144
+ type: string
145
+ responses:
146
+ '200':
147
+ description: Media removed
148
+ content:
149
+ application/json:
150
+ schema:
151
+ $ref: '#/components/schemas/MediaRemoveResult'
152
+ components:
153
+ schemas:
154
+ MediaFindResult:
155
+ type: object
156
+ description: Result of finding media
157
+ properties:
158
+ data:
159
+ type: array
160
+ items:
161
+ $ref: '#/components/schemas/MediaSchema'
162
+ total_result:
163
+ type: number
164
+ description: Total number of media
165
+ current_count:
166
+ type: number
167
+ description: Count of media in current page
168
+ total_pages:
169
+ type: number
170
+ description: Total number of pages
171
+ current_page:
172
+ type: number
173
+ description: Current page number
174
+ per_page:
175
+ type: number
176
+ description: Number of media per page
177
+ first_page_url:
178
+ type: string
179
+ description: URL for the first page
180
+ last_page_url:
181
+ type: string
182
+ description: URL for the last page
183
+ next_page_url:
184
+ type: string
185
+ nullable: true
186
+ description: URL for the next page
187
+ prev_page_url:
188
+ type: string
189
+ nullable: true
190
+ description: URL for the previous page
191
+ path:
192
+ type: string
193
+ description: Base URL path
194
+ MediaSchema:
195
+ type: object
196
+ description: Media schema
197
+ properties:
198
+ _id:
199
+ type: string
200
+ description: Unique identifier for the media
201
+ name:
202
+ type: string
203
+ description: Name of the media
204
+ description:
205
+ type: string
206
+ description: Description of the media
207
+ url:
208
+ type: string
209
+ description: URL of the media
210
+ document_type:
211
+ type: string
212
+ enum: [html, csv, json, image, pdf, ppt, pptx, xls, xlsx, doc, docx, images, zip, pt]
213
+ description: Type of media document
214
+ parent_document_type:
215
+ type: string
216
+ enum: [clients, asset, assetUnit, workorder, clientLocation, clientContact, commentsThread, workorderRequest, workorderPortal, invoice, products, productvariations, representatives, productcategories, productSubCategory, speciality, line, banner, intgAvailableApps]
217
+ description: Type of parent document
218
+ parent_document_key:
219
+ type: string
220
+ description: Key of parent document
221
+ disabled:
222
+ type: boolean
223
+ description: Whether the media is disabled
224
+ integration_meta:
225
+ type: object
226
+ additionalProperties: true
227
+ description: Integration metadata
228
+ company_namespace:
229
+ type: array
230
+ items:
231
+ type: string
232
+ description: Company namespaces
233
+ createdAt:
234
+ type: string
235
+ format: date-time
236
+ description: Creation timestamp
237
+ updatedAt:
238
+ type: string
239
+ format: date-time
240
+ description: Last update timestamp
241
+ __v:
242
+ type: number
243
+ description: Version number
244
+ MediaCreateBody:
245
+ type: object
246
+ description: Body for creating media
247
+ required:
248
+ - name
249
+ - url
250
+ - document_type
251
+ properties:
252
+ name:
253
+ type: string
254
+ description: Name of the media
255
+ description:
256
+ type: string
257
+ description: Description of the media
258
+ url:
259
+ type: string
260
+ description: URL of the media
261
+ document_type:
262
+ type: string
263
+ enum: [html, csv, json, image, pdf, ppt, pptx, xls, xlsx, doc, docx, images, zip, pt]
264
+ description: Type of media document
265
+ parent_document_type:
266
+ type: string
267
+ enum: [clients, asset, assetUnit, workorder, clientLocation, clientContact, commentsThread, workorderRequest, workorderPortal, invoice, products, productvariations, representatives, productcategories, productSubCategory, speciality, line, banner, intgAvailableApps]
268
+ description: Type of parent document
269
+ parent_document_key:
270
+ type: string
271
+ description: Key of parent document
272
+ disabled:
273
+ type: boolean
274
+ description: Whether the media is disabled
275
+ integration_meta:
276
+ type: object
277
+ additionalProperties: true
278
+ description: Integration metadata
279
+ company_namespace:
280
+ type: array
281
+ items:
282
+ type: string
283
+ description: Company namespaces
284
+ MediaCreateResult:
285
+ $ref: '#/components/schemas/MediaSchema'
286
+ description: Result of creating media
287
+ MediaGetResult:
288
+ $ref: '#/components/schemas/MediaSchema'
289
+ description: Result of getting media
290
+ MediaUpdateBody:
291
+ type: object
292
+ description: Body for updating media
293
+ properties:
294
+ name:
295
+ type: string
296
+ description: Name of the media
297
+ description:
298
+ type: string
299
+ description: Description of the media
300
+ url:
301
+ type: string
302
+ description: URL of the media
303
+ document_type:
304
+ type: string
305
+ enum: [html, csv, json, image, pdf, ppt, pptx, xls, xlsx, doc, docx, images, zip, pt]
306
+ description: Type of media document
307
+ parent_document_type:
308
+ type: string
309
+ enum: [clients, asset, assetUnit, workorder, clientLocation, clientContact, commentsThread, workorderRequest, workorderPortal, invoice, products, productvariations, representatives, productcategories, productSubCategory, speciality, line, banner, intgAvailableApps]
310
+ description: Type of parent document
311
+ parent_document_key:
312
+ type: string
313
+ description: Key of parent document
314
+ disabled:
315
+ type: boolean
316
+ description: Whether the media is disabled
317
+ integration_meta:
318
+ type: object
319
+ additionalProperties: true
320
+ description: Integration metadata
321
+ company_namespace:
322
+ type: array
323
+ items:
324
+ type: string
325
+ description: Company namespaces
326
+ _id:
327
+ type: string
328
+ description: Unique identifier for the media
329
+ createdAt:
330
+ type: string
331
+ format: date-time
332
+ description: Creation timestamp
333
+ updatedAt:
334
+ type: string
335
+ format: date-time
336
+ description: Last update timestamp
337
+ __v:
338
+ type: number
339
+ description: Version number
340
+ MediaUpdateResult:
341
+ $ref: '#/components/schemas/MediaSchema'
342
+ description: Result of updating media
343
+ MediaRemoveResult:
344
+ $ref: '#/components/schemas/MediaSchema'
345
+ description: Result of removing media
@@ -0,0 +1,369 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Price List Item
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Price List Item endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /pricelistitem:
10
+ get:
11
+ summary: Find price list items
12
+ operationId: findPriceListItems
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
+ product_id:
28
+ oneOf:
29
+ - type: array
30
+ items:
31
+ type: string
32
+ - type: string
33
+ variant_id:
34
+ oneOf:
35
+ - type: array
36
+ items:
37
+ type: string
38
+ - type: string
39
+ pricelist_id:
40
+ oneOf:
41
+ - type: array
42
+ items:
43
+ type: string
44
+ - type: string
45
+ disabled:
46
+ type: boolean
47
+ from_updatedAt:
48
+ type: number
49
+ populatedKeys:
50
+ type: array
51
+ items:
52
+ type: string
53
+ enum: [product, variant, pricelist]
54
+ description: Query parameters for filtering price list items
55
+ responses:
56
+ '200':
57
+ description: A list of price list items
58
+ content:
59
+ application/json:
60
+ schema:
61
+ $ref: '#/components/schemas/PriceListItemFindResult'
62
+ post:
63
+ summary: Create a price list item
64
+ operationId: createPriceListItem
65
+ requestBody:
66
+ required: true
67
+ content:
68
+ application/json:
69
+ schema:
70
+ $ref: '#/components/schemas/PriceListItemCreateBody'
71
+ responses:
72
+ '201':
73
+ description: Price list item created
74
+ content:
75
+ application/json:
76
+ schema:
77
+ $ref: '#/components/schemas/PriceListItemCreateResult'
78
+ /pricelistitem/{id}:
79
+ get:
80
+ summary: Get a price list item by ID
81
+ operationId: getPriceListItem
82
+ parameters:
83
+ - in: path
84
+ name: id
85
+ required: true
86
+ schema:
87
+ type: string
88
+ responses:
89
+ '200':
90
+ description: Price list item details
91
+ content:
92
+ application/json:
93
+ schema:
94
+ $ref: '#/components/schemas/PriceListItemGetResult'
95
+ put:
96
+ summary: Update a price list item
97
+ operationId: updatePriceListItem
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/PriceListItemUpdateBody'
110
+ responses:
111
+ '200':
112
+ description: Price list item updated
113
+ content:
114
+ application/json:
115
+ schema:
116
+ $ref: '#/components/schemas/PriceListItemUpdateResult'
117
+ delete:
118
+ summary: Remove a price list item
119
+ operationId: removePriceListItem
120
+ parameters:
121
+ - in: path
122
+ name: id
123
+ required: true
124
+ schema:
125
+ type: string
126
+ responses:
127
+ '200':
128
+ description: Price list item removed
129
+ content:
130
+ application/json:
131
+ schema:
132
+ $ref: '#/components/schemas/PriceListItemRemoveResult'
133
+ components:
134
+ schemas:
135
+ PriceListItemFindResult:
136
+ type: object
137
+ description: Result of finding price list items
138
+ properties:
139
+ data:
140
+ type: array
141
+ items:
142
+ allOf:
143
+ - $ref: '#/components/schemas/PriceListItemSchema'
144
+ - type: object
145
+ properties:
146
+ product_id:
147
+ oneOf:
148
+ - type: string
149
+ - $ref: '#/components/schemas/ProductReference'
150
+ variant_id:
151
+ oneOf:
152
+ - type: string
153
+ - $ref: '#/components/schemas/VariantReference'
154
+ pricelist_id:
155
+ oneOf:
156
+ - type: string
157
+ - $ref: '#/components/schemas/PriceListReference'
158
+ total_result:
159
+ type: number
160
+ description: Total number of price list items
161
+ current_count:
162
+ type: number
163
+ description: Count of price list items 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 price list items 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
+ PriceListItemSchema:
191
+ type: object
192
+ description: Price list item schema
193
+ properties:
194
+ _id:
195
+ type: string
196
+ description: Unique identifier for the price list item
197
+ product_id:
198
+ type: string
199
+ description: ID of the product
200
+ variant_id:
201
+ type: string
202
+ description: ID of the variant
203
+ pricelist_id:
204
+ type: string
205
+ description: ID of the price list
206
+ price:
207
+ type: number
208
+ description: Price value
209
+ disabled:
210
+ type: boolean
211
+ description: Whether the price list item is disabled
212
+ integration_meta:
213
+ type: object
214
+ additionalProperties: true
215
+ description: Integration metadata
216
+ company_namespace:
217
+ type: array
218
+ items:
219
+ type: string
220
+ description: Company namespaces
221
+ createdAt:
222
+ type: string
223
+ format: date-time
224
+ description: Creation timestamp
225
+ updatedAt:
226
+ type: string
227
+ format: date-time
228
+ description: Last update timestamp
229
+ __v:
230
+ type: number
231
+ description: Version number
232
+ ProductReference:
233
+ type: object
234
+ description: Reference to a product
235
+ properties:
236
+ _id:
237
+ type: string
238
+ description: Product ID
239
+ name:
240
+ type: string
241
+ description: Product name
242
+ category:
243
+ type: string
244
+ description: Product category
245
+ active:
246
+ type: boolean
247
+ description: Whether the product is active
248
+ sku:
249
+ type: string
250
+ description: Product SKU
251
+ barcode:
252
+ type: string
253
+ description: Product barcode
254
+ VariantReference:
255
+ type: object
256
+ description: Reference to a variant
257
+ properties:
258
+ _id:
259
+ type: string
260
+ description: Variant ID
261
+ name:
262
+ type: string
263
+ description: Variant name
264
+ product:
265
+ type: string
266
+ description: Product ID
267
+ sku:
268
+ type: string
269
+ description: Variant SKU
270
+ barcode:
271
+ type: string
272
+ description: Variant barcode
273
+ PriceListReference:
274
+ type: object
275
+ description: Reference to a price list
276
+ properties:
277
+ _id:
278
+ type: string
279
+ description: Price list ID
280
+ name:
281
+ type: string
282
+ description: Price list name
283
+ PriceListItemCreateBody:
284
+ type: object
285
+ description: Body for creating a price list item
286
+ required:
287
+ - product_id
288
+ - variant_id
289
+ - pricelist_id
290
+ - price
291
+ properties:
292
+ product_id:
293
+ type: string
294
+ description: ID of the product
295
+ variant_id:
296
+ type: string
297
+ description: ID of the variant
298
+ pricelist_id:
299
+ type: string
300
+ description: ID of the price list
301
+ price:
302
+ type: number
303
+ description: Price value
304
+ integration_meta:
305
+ type: object
306
+ additionalProperties: true
307
+ description: Integration metadata
308
+ disabled:
309
+ type: boolean
310
+ description: Whether the price list item is disabled
311
+ company_namespace:
312
+ type: array
313
+ items:
314
+ type: string
315
+ description: Company namespaces
316
+ PriceListItemCreateResult:
317
+ $ref: '#/components/schemas/PriceListItemSchema'
318
+ description: Result of creating a price list item
319
+ PriceListItemGetResult:
320
+ $ref: '#/components/schemas/PriceListItemSchema'
321
+ description: Result of getting a price list item
322
+ PriceListItemUpdateBody:
323
+ type: object
324
+ description: Body for updating a price list item
325
+ properties:
326
+ product_id:
327
+ type: string
328
+ description: ID of the product
329
+ variant_id:
330
+ type: string
331
+ description: ID of the variant
332
+ pricelist_id:
333
+ type: string
334
+ description: ID of the price list
335
+ price:
336
+ type: number
337
+ description: Price value
338
+ integration_meta:
339
+ type: object
340
+ additionalProperties: true
341
+ description: Integration metadata
342
+ disabled:
343
+ type: boolean
344
+ description: Whether the price list item is disabled
345
+ company_namespace:
346
+ type: array
347
+ items:
348
+ type: string
349
+ description: Company namespaces
350
+ _id:
351
+ type: string
352
+ description: Unique identifier for the price list item
353
+ createdAt:
354
+ type: string
355
+ format: date-time
356
+ description: Creation timestamp
357
+ updatedAt:
358
+ type: string
359
+ format: date-time
360
+ description: Last update timestamp
361
+ __v:
362
+ type: number
363
+ description: Version number
364
+ PriceListItemUpdateResult:
365
+ $ref: '#/components/schemas/PriceListItemSchema'
366
+ description: Result of updating a price list item
367
+ PriceListItemRemoveResult:
368
+ $ref: '#/components/schemas/PriceListItemSchema'
369
+ description: Result of removing a price list item