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,337 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Route
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Route endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /route:
10
+ get:
11
+ summary: Find routes
12
+ operationId: findRoutes
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
+ from__id:
38
+ type: string
39
+ to__id:
40
+ type: string
41
+ rep_id:
42
+ oneOf:
43
+ - type: array
44
+ items:
45
+ type: string
46
+ - type: string
47
+ sortBy:
48
+ type: array
49
+ items:
50
+ type: object
51
+ properties:
52
+ field:
53
+ type: string
54
+ enum: [_id, name, day]
55
+ type:
56
+ type: string
57
+ enum: [asc, desc]
58
+ description: Query parameters for filtering routes
59
+ responses:
60
+ '200':
61
+ description: A list of routes
62
+ content:
63
+ application/json:
64
+ schema:
65
+ $ref: '#/components/schemas/RouteFindResult'
66
+ post:
67
+ summary: Create a route
68
+ operationId: createRoute
69
+ requestBody:
70
+ required: true
71
+ content:
72
+ application/json:
73
+ schema:
74
+ $ref: '#/components/schemas/RouteCreateBody'
75
+ responses:
76
+ '201':
77
+ description: Route created
78
+ content:
79
+ application/json:
80
+ schema:
81
+ $ref: '#/components/schemas/RouteCreateResult'
82
+ /route/{id}:
83
+ get:
84
+ summary: Get a route by ID
85
+ operationId: getRoute
86
+ parameters:
87
+ - in: path
88
+ name: id
89
+ required: true
90
+ schema:
91
+ type: string
92
+ responses:
93
+ '200':
94
+ description: Route details
95
+ content:
96
+ application/json:
97
+ schema:
98
+ $ref: '#/components/schemas/RouteGetResult'
99
+ put:
100
+ summary: Update a route
101
+ operationId: updateRoute
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/RouteUpdateBody'
114
+ responses:
115
+ '200':
116
+ description: Route updated
117
+ content:
118
+ application/json:
119
+ schema:
120
+ $ref: '#/components/schemas/RouteUpdateResult'
121
+ delete:
122
+ summary: Remove a route
123
+ operationId: removeRoute
124
+ parameters:
125
+ - in: path
126
+ name: id
127
+ required: true
128
+ schema:
129
+ type: string
130
+ responses:
131
+ '200':
132
+ description: Route removed
133
+ content:
134
+ application/json:
135
+ schema:
136
+ $ref: '#/components/schemas/RouteRemoveResult'
137
+ components:
138
+ schemas:
139
+ RouteFindResult:
140
+ type: object
141
+ description: Result of finding routes
142
+ properties:
143
+ data:
144
+ type: array
145
+ items:
146
+ $ref: '#/components/schemas/RouteSchema'
147
+ total_result:
148
+ type: number
149
+ description: Total number of routes
150
+ current_count:
151
+ type: number
152
+ description: Count of routes 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 routes 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
+ RouteSchema:
180
+ type: object
181
+ description: Route schema
182
+ properties:
183
+ _id:
184
+ type: string
185
+ description: Unique identifier for the route
186
+ name:
187
+ type: string
188
+ description: Name of the route
189
+ rep_id:
190
+ type: string
191
+ description: ID of the assigned rep
192
+ day:
193
+ type: string
194
+ enum: [sat, sun, mon, tue, wed, thu, fri]
195
+ description: Day of the week for the route
196
+ clients:
197
+ type: array
198
+ description: List of clients on this route
199
+ items:
200
+ type: object
201
+ properties:
202
+ client_id:
203
+ type: string
204
+ description: Client ID
205
+ priority:
206
+ type: number
207
+ description: Priority order of the client
208
+ disabled:
209
+ type: boolean
210
+ description: Whether the route 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
+ RouteCreateBody:
232
+ type: object
233
+ description: Body for creating a route
234
+ required:
235
+ - name
236
+ - rep_id
237
+ - day
238
+ - company_namespace
239
+ properties:
240
+ name:
241
+ type: string
242
+ description: Name of the route
243
+ rep_id:
244
+ type: string
245
+ description: ID of the assigned rep
246
+ day:
247
+ type: string
248
+ enum: [sat, sun, mon, tue, wed, thu, fri]
249
+ description: Day of the week for the route
250
+ clients:
251
+ type: array
252
+ description: List of clients on this route
253
+ items:
254
+ type: object
255
+ properties:
256
+ client_id:
257
+ type: string
258
+ description: Client ID
259
+ priority:
260
+ type: number
261
+ description: Priority order of the client
262
+ disabled:
263
+ type: boolean
264
+ description: Whether the route is disabled
265
+ integration_meta:
266
+ type: object
267
+ additionalProperties: true
268
+ description: Integration metadata
269
+ company_namespace:
270
+ type: array
271
+ items:
272
+ type: string
273
+ description: Company namespaces
274
+ RouteCreateResult:
275
+ $ref: '#/components/schemas/RouteSchema'
276
+ description: Result of creating a route
277
+ RouteGetResult:
278
+ $ref: '#/components/schemas/RouteSchema'
279
+ description: Result of getting a route
280
+ RouteUpdateBody:
281
+ type: object
282
+ description: Body for updating a route
283
+ properties:
284
+ name:
285
+ type: string
286
+ description: Name of the route
287
+ rep_id:
288
+ type: string
289
+ description: ID of the assigned rep
290
+ day:
291
+ type: string
292
+ enum: [sat, sun, mon, tue, wed, thu, fri]
293
+ description: Day of the week for the route
294
+ clients:
295
+ type: array
296
+ description: List of clients on this route
297
+ items:
298
+ type: object
299
+ properties:
300
+ client_id:
301
+ type: string
302
+ description: Client ID
303
+ priority:
304
+ type: number
305
+ description: Priority order of the client
306
+ disabled:
307
+ type: boolean
308
+ description: Whether the route is disabled
309
+ integration_meta:
310
+ type: object
311
+ additionalProperties: true
312
+ description: Integration metadata
313
+ company_namespace:
314
+ type: array
315
+ items:
316
+ type: string
317
+ description: Company namespaces
318
+ _id:
319
+ type: string
320
+ description: Unique identifier for the route
321
+ createdAt:
322
+ type: string
323
+ format: date-time
324
+ description: Creation timestamp
325
+ updatedAt:
326
+ type: string
327
+ format: date-time
328
+ description: Last update timestamp
329
+ __v:
330
+ type: number
331
+ description: Version number
332
+ RouteUpdateResult:
333
+ $ref: '#/components/schemas/RouteSchema'
334
+ description: Result of updating a route
335
+ RouteRemoveResult:
336
+ $ref: '#/components/schemas/RouteSchema'
337
+ description: Result of removing a route
@@ -0,0 +1,355 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - SubCategory
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo SubCategory endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /product/sub-categories:
10
+ get:
11
+ summary: Find subcategories
12
+ operationId: findSubCategories
13
+ parameters:
14
+ - in: query
15
+ name: params
16
+ schema:
17
+ type: object
18
+ properties:
19
+ populatedKeys:
20
+ type: array
21
+ items:
22
+ type: string
23
+ enum: [parent_id]
24
+ _id:
25
+ type: array
26
+ items:
27
+ type: string
28
+ search:
29
+ type: string
30
+ name:
31
+ oneOf:
32
+ - type: array
33
+ items:
34
+ type: string
35
+ - type: string
36
+ local_name:
37
+ oneOf:
38
+ - type: array
39
+ items:
40
+ type: string
41
+ - type: string
42
+ parent_id:
43
+ oneOf:
44
+ - type: array
45
+ items:
46
+ type: string
47
+ - type: string
48
+ disabled:
49
+ type: boolean
50
+ position:
51
+ oneOf:
52
+ - type: array
53
+ items:
54
+ type: number
55
+ - type: number
56
+ from_updatedAt:
57
+ type: number
58
+ createdAt:
59
+ type: number
60
+ updatedAt:
61
+ type: number
62
+ withProduct:
63
+ type: boolean
64
+ from__id:
65
+ type: string
66
+ to__id:
67
+ type: string
68
+ sortBy:
69
+ type: array
70
+ items:
71
+ type: object
72
+ properties:
73
+ field:
74
+ type: string
75
+ enum: [_id]
76
+ type:
77
+ type: string
78
+ enum: [asc, desc]
79
+ description: Query parameters for filtering subcategories
80
+ responses:
81
+ '200':
82
+ description: A list of subcategories
83
+ content:
84
+ application/json:
85
+ schema:
86
+ $ref: '#/components/schemas/SubCategoryFindResult'
87
+ post:
88
+ summary: Create a subcategory
89
+ operationId: createSubCategory
90
+ requestBody:
91
+ required: true
92
+ content:
93
+ application/json:
94
+ schema:
95
+ $ref: '#/components/schemas/SubCategoryCreateBody'
96
+ responses:
97
+ '201':
98
+ description: SubCategory created
99
+ content:
100
+ application/json:
101
+ schema:
102
+ $ref: '#/components/schemas/SubCategoryCreateResult'
103
+ /product/sub-categories/{id}:
104
+ get:
105
+ summary: Get a subcategory by ID
106
+ operationId: getSubCategory
107
+ parameters:
108
+ - in: path
109
+ name: id
110
+ required: true
111
+ schema:
112
+ type: string
113
+ - in: query
114
+ name: params
115
+ schema:
116
+ type: object
117
+ properties:
118
+ populatedKeys:
119
+ type: array
120
+ items:
121
+ type: string
122
+ enum: [parent_id]
123
+ responses:
124
+ '200':
125
+ description: SubCategory details
126
+ content:
127
+ application/json:
128
+ schema:
129
+ $ref: '#/components/schemas/SubCategoryGetResult'
130
+ put:
131
+ summary: Update a subcategory
132
+ operationId: updateSubCategory
133
+ parameters:
134
+ - in: path
135
+ name: id
136
+ required: true
137
+ schema:
138
+ type: string
139
+ requestBody:
140
+ required: true
141
+ content:
142
+ application/json:
143
+ schema:
144
+ $ref: '#/components/schemas/SubCategoryUpdateBody'
145
+ responses:
146
+ '200':
147
+ description: SubCategory updated
148
+ content:
149
+ application/json:
150
+ schema:
151
+ $ref: '#/components/schemas/SubCategoryUpdateResult'
152
+ delete:
153
+ summary: Remove a subcategory
154
+ operationId: removeSubCategory
155
+ parameters:
156
+ - in: path
157
+ name: id
158
+ required: true
159
+ schema:
160
+ type: string
161
+ responses:
162
+ '200':
163
+ description: SubCategory removed
164
+ content:
165
+ application/json:
166
+ schema:
167
+ $ref: '#/components/schemas/SubCategoryRemoveResult'
168
+ components:
169
+ schemas:
170
+ SubCategoryFindResult:
171
+ type: object
172
+ description: Result of finding subcategories
173
+ properties:
174
+ data:
175
+ type: array
176
+ items:
177
+ $ref: '#/components/schemas/SubCategorySchema'
178
+ total_result:
179
+ type: number
180
+ description: Total number of subcategories
181
+ current_count:
182
+ type: number
183
+ description: Count of subcategories in current page
184
+ total_pages:
185
+ type: number
186
+ description: Total number of pages
187
+ current_page:
188
+ type: number
189
+ description: Current page number
190
+ per_page:
191
+ type: number
192
+ description: Number of subcategories per page
193
+ first_page_url:
194
+ type: string
195
+ description: URL for the first page
196
+ last_page_url:
197
+ type: string
198
+ description: URL for the last page
199
+ next_page_url:
200
+ type: string
201
+ nullable: true
202
+ description: URL for the next page
203
+ prev_page_url:
204
+ type: string
205
+ nullable: true
206
+ description: URL for the previous page
207
+ path:
208
+ type: string
209
+ description: Base URL path
210
+ SubCategorySchema:
211
+ type: object
212
+ description: SubCategory schema
213
+ properties:
214
+ _id:
215
+ type: string
216
+ description: Unique identifier for the subcategory
217
+ name:
218
+ type: string
219
+ description: Name of the subcategory
220
+ parent_id:
221
+ oneOf:
222
+ - type: string
223
+ description: ID of the parent category
224
+ - type: object
225
+ properties:
226
+ _id:
227
+ type: string
228
+ description: ID of the parent category
229
+ name:
230
+ type: string
231
+ description: Name of the parent category
232
+ description: Parent category object when populated
233
+ local_name:
234
+ type: string
235
+ description: Localized name of the subcategory
236
+ disabled:
237
+ type: boolean
238
+ description: Whether the subcategory is disabled
239
+ photo:
240
+ type: string
241
+ description: Photo URL of the subcategory
242
+ position:
243
+ type: number
244
+ description: Position of the subcategory
245
+ integration_meta:
246
+ type: object
247
+ additionalProperties: true
248
+ description: Integration metadata
249
+ company_namespace:
250
+ type: array
251
+ items:
252
+ type: string
253
+ description: Company namespaces
254
+ createdAt:
255
+ type: string
256
+ format: date-time
257
+ description: Creation timestamp
258
+ updatedAt:
259
+ type: string
260
+ format: date-time
261
+ description: Last update timestamp
262
+ __v:
263
+ type: number
264
+ description: Version number
265
+ SubCategoryCreateBody:
266
+ type: object
267
+ description: Body for creating a subcategory
268
+ required:
269
+ - name
270
+ - parent_id
271
+ properties:
272
+ name:
273
+ type: string
274
+ description: Name of the subcategory
275
+ parent_id:
276
+ type: string
277
+ description: ID of the parent category
278
+ local_name:
279
+ type: string
280
+ description: Localized name of the subcategory
281
+ disabled:
282
+ type: boolean
283
+ description: Whether the subcategory is disabled
284
+ photo:
285
+ type: string
286
+ description: Photo URL of the subcategory
287
+ position:
288
+ type: number
289
+ description: Position of the subcategory
290
+ company_namespace:
291
+ type: array
292
+ items:
293
+ type: string
294
+ description: Company namespaces
295
+ integration_meta:
296
+ type: object
297
+ additionalProperties: true
298
+ description: Integration metadata
299
+ SubCategoryCreateResult:
300
+ $ref: '#/components/schemas/SubCategorySchema'
301
+ description: Result of creating a subcategory
302
+ SubCategoryGetResult:
303
+ $ref: '#/components/schemas/SubCategorySchema'
304
+ description: Result of getting a subcategory
305
+ SubCategoryUpdateBody:
306
+ type: object
307
+ description: Body for updating a subcategory
308
+ properties:
309
+ name:
310
+ type: string
311
+ description: Name of the subcategory
312
+ parent_id:
313
+ type: string
314
+ description: ID of the parent category
315
+ local_name:
316
+ type: string
317
+ description: Localized name of the subcategory
318
+ disabled:
319
+ type: boolean
320
+ description: Whether the subcategory is disabled
321
+ photo:
322
+ type: string
323
+ description: Photo URL of the subcategory
324
+ position:
325
+ type: number
326
+ description: Position of the subcategory
327
+ company_namespace:
328
+ type: array
329
+ items:
330
+ type: string
331
+ description: Company namespaces
332
+ integration_meta:
333
+ type: object
334
+ additionalProperties: true
335
+ description: Integration metadata
336
+ _id:
337
+ type: string
338
+ description: Unique identifier for the subcategory
339
+ createdAt:
340
+ type: string
341
+ format: date-time
342
+ description: Creation timestamp
343
+ updatedAt:
344
+ type: string
345
+ format: date-time
346
+ description: Last update timestamp
347
+ __v:
348
+ type: number
349
+ description: Version number
350
+ SubCategoryUpdateResult:
351
+ $ref: '#/components/schemas/SubCategorySchema'
352
+ description: Result of updating a subcategory
353
+ SubCategoryRemoveResult:
354
+ $ref: '#/components/schemas/SubCategorySchema'
355
+ description: Result of removing a subcategory