repzo 1.0.155 → 1.0.156

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.
Files changed (90) hide show
  1. package/package.json +2 -2
  2. package/src/index.ts +4890 -0
  3. package/src/oas/activity-ai-sales-order.yaml +623 -0
  4. package/src/oas/activity-feedback-v2.yaml +753 -0
  5. package/src/oas/activity-feedback.yaml +645 -0
  6. package/src/oas/activity-storecheck.yaml +379 -0
  7. package/src/oas/adjust-account.yaml +241 -0
  8. package/src/oas/adjust-inventory.yaml +133 -0
  9. package/src/oas/approval-request.yaml +211 -0
  10. package/src/oas/approvals.yaml +176 -0
  11. package/src/oas/asset-part-receival.yaml +591 -0
  12. package/src/oas/asset-part-transfer.yaml +618 -0
  13. package/src/oas/asset-part-type.yaml +383 -0
  14. package/src/oas/asset-part-unit.yaml +722 -0
  15. package/src/oas/asset-part.yaml +485 -0
  16. package/src/oas/asset-type.yaml +180 -0
  17. package/src/oas/asset-unit.yaml +705 -0
  18. package/src/oas/asset.yaml +204 -0
  19. package/src/oas/banks.yaml +168 -0
  20. package/src/oas/bankslists.yaml +168 -0
  21. package/src/oas/brand.yaml +246 -0
  22. package/src/oas/category.yaml +285 -0
  23. package/src/oas/checks.yaml +247 -0
  24. package/src/oas/client-channel.yaml +480 -0
  25. package/src/oas/client-contact.yaml +665 -0
  26. package/src/oas/client-location.yaml +687 -0
  27. package/src/oas/client.yaml +669 -0
  28. package/src/oas/contract-installment.yaml +740 -0
  29. package/src/oas/contract.yaml +210 -0
  30. package/src/oas/custom-list-item.yaml +168 -0
  31. package/src/oas/custom-list.yaml +168 -0
  32. package/src/oas/custom-status.yaml +168 -0
  33. package/src/oas/day.yaml +246 -0
  34. package/src/oas/feedback-options.yaml +802 -0
  35. package/src/oas/fullinvoices.yaml +584 -0
  36. package/src/oas/integration-action-log.yaml +361 -0
  37. package/src/oas/integration-app.yaml +303 -0
  38. package/src/oas/integration-command-log.yaml +381 -0
  39. package/src/oas/inventory-adjustment-reason.yaml +165 -0
  40. package/src/oas/inventory.yaml +64 -0
  41. package/src/oas/mail-unsubscribe.yaml +463 -0
  42. package/src/oas/measureunit-family.yaml +354 -0
  43. package/src/oas/measureunit.yaml +366 -0
  44. package/src/oas/media-storage.yaml +329 -0
  45. package/src/oas/media.yaml +472 -0
  46. package/src/oas/msl-products.yaml +180 -0
  47. package/src/oas/msl.yaml +186 -0
  48. package/src/oas/ocr-invoice-job-group.yaml +528 -0
  49. package/src/oas/ocr-invoice-job-page.yaml +602 -0
  50. package/src/oas/ocr-invoice-job-template.yaml +628 -0
  51. package/src/oas/ocr-invoice-job.yaml +603 -0
  52. package/src/oas/patch-action.yaml +421 -0
  53. package/src/oas/payment-terms.yaml +235 -0
  54. package/src/oas/payments.yaml +536 -0
  55. package/src/oas/pricelist-item.yaml +369 -0
  56. package/src/oas/pricelist.yaml +287 -0
  57. package/src/oas/product-group.yaml +278 -0
  58. package/src/oas/product-modifiers-group.yaml +524 -0
  59. package/src/oas/product.yaml +578 -0
  60. package/src/oas/proforma.yaml +180 -0
  61. package/src/oas/quick-convert-to-pdf.yaml +95 -0
  62. package/src/oas/receiving-material.yaml +336 -0
  63. package/src/oas/refund.yaml +281 -0
  64. package/src/oas/rep-balance-summary.yaml +135 -0
  65. package/src/oas/rep.yaml +1824 -0
  66. package/src/oas/return-asset-part-unit.yaml +573 -0
  67. package/src/oas/return-reason.yaml +286 -0
  68. package/src/oas/route.yaml +337 -0
  69. package/src/oas/safe-invoice-serial-counter.yaml +525 -0
  70. package/src/oas/settings.yaml +123 -0
  71. package/src/oas/settlement.yaml +505 -0
  72. package/src/oas/speciality.yaml +447 -0
  73. package/src/oas/store-asset-part-unit.yaml +658 -0
  74. package/src/oas/storecheck-template.yaml +415 -0
  75. package/src/oas/subcategory.yaml +355 -0
  76. package/src/oas/supplier.yaml +183 -0
  77. package/src/oas/svix-integration.yaml +335 -0
  78. package/src/oas/tag.yaml +272 -0
  79. package/src/oas/tax.yaml +303 -0
  80. package/src/oas/team.yaml +268 -0
  81. package/src/oas/transfer.yaml +347 -0
  82. package/src/oas/update-integration-meta.yaml +387 -0
  83. package/src/oas/variant.yaml +569 -0
  84. package/src/oas/visit.yaml +174 -0
  85. package/src/oas/warehouse.yaml +311 -0
  86. package/src/oas/workorder-category.yaml +751 -0
  87. package/src/oas/workorder-portal-link.yaml +811 -0
  88. package/src/oas/workorder-portal.yaml +650 -0
  89. package/src/oas/workorder-request.yaml +193 -0
  90. package/src/oas/workorder.yaml +204 -0
@@ -0,0 +1,247 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Checks
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Checks endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /checks:
10
+ get:
11
+ summary: Find checks
12
+ operationId: findChecks
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
+ client:
28
+ oneOf:
29
+ - type: array
30
+ items:
31
+ type: string
32
+ - type: string
33
+ rep:
34
+ oneOf:
35
+ - type: array
36
+ items:
37
+ type: string
38
+ - type: string
39
+ checkNumber:
40
+ type: string
41
+ status:
42
+ type: string
43
+ enum: [pending, cleared, bounced, cancelled]
44
+ bank:
45
+ type: string
46
+ from_date:
47
+ type: string
48
+ format: date-time
49
+ to_date:
50
+ type: string
51
+ format: date-time
52
+ from_updatedAt:
53
+ type: number
54
+ from__id:
55
+ type: string
56
+ to__id:
57
+ type: string
58
+ sortBy:
59
+ type: array
60
+ items:
61
+ type: object
62
+ properties:
63
+ field:
64
+ type: string
65
+ enum: [_id, createdAt, updatedAt, amount, dueDate]
66
+ type:
67
+ type: string
68
+ enum: [asc, desc]
69
+ description: Query parameters for filtering checks
70
+ responses:
71
+ "200":
72
+ description: A list of checks
73
+ content:
74
+ application/json:
75
+ schema:
76
+ $ref: "#/components/schemas/CheckFindResult"
77
+ post:
78
+ summary: Create a check
79
+ operationId: createCheck
80
+ requestBody:
81
+ required: true
82
+ content:
83
+ application/json:
84
+ schema:
85
+ $ref: "#/components/schemas/CheckCreateBody"
86
+ responses:
87
+ "201":
88
+ description: Check created
89
+ content:
90
+ application/json:
91
+ schema:
92
+ $ref: "#/components/schemas/CheckCreateResult"
93
+ /checks/{id}:
94
+ get:
95
+ summary: Get a check by ID
96
+ operationId: getCheck
97
+ parameters:
98
+ - in: path
99
+ name: id
100
+ required: true
101
+ schema:
102
+ type: string
103
+ responses:
104
+ "200":
105
+ description: Check details
106
+ content:
107
+ application/json:
108
+ schema:
109
+ $ref: "#/components/schemas/CheckGetResult"
110
+ components:
111
+ schemas:
112
+ CheckFindResult:
113
+ type: object
114
+ description: Result of finding checks
115
+ properties:
116
+ data:
117
+ type: array
118
+ items:
119
+ $ref: "#/components/schemas/CheckSchema"
120
+ total_result:
121
+ type: number
122
+ description: Total number of checks
123
+ current_count:
124
+ type: number
125
+ description: Count of checks in current page
126
+ total_pages:
127
+ type: number
128
+ description: Total number of pages
129
+ current_page:
130
+ type: number
131
+ description: Current page number
132
+ per_page:
133
+ type: number
134
+ description: Number of checks per page
135
+ CheckSchema:
136
+ type: object
137
+ description: Check schema
138
+ properties:
139
+ _id:
140
+ type: string
141
+ description: Unique identifier for the check
142
+ client:
143
+ type: string
144
+ description: Client ID associated with the check
145
+ rep:
146
+ type: string
147
+ description: Representative ID who received the check
148
+ checkNumber:
149
+ type: string
150
+ description: Check number
151
+ amount:
152
+ type: number
153
+ description: Check amount
154
+ bank:
155
+ type: string
156
+ description: Bank name or ID
157
+ accountNumber:
158
+ type: string
159
+ description: Account number
160
+ issueDate:
161
+ type: string
162
+ format: date-time
163
+ description: Date when check was issued
164
+ dueDate:
165
+ type: string
166
+ format: date-time
167
+ description: Due date of the check
168
+ status:
169
+ type: string
170
+ enum: [pending, cleared, bounced, cancelled]
171
+ description: Status of the check
172
+ clearedDate:
173
+ type: string
174
+ format: date-time
175
+ description: Date when check was cleared
176
+ notes:
177
+ type: string
178
+ description: Additional notes
179
+ integration_meta:
180
+ type: object
181
+ additionalProperties: true
182
+ description: Integration metadata
183
+ company_namespace:
184
+ type: array
185
+ items:
186
+ type: string
187
+ description: Company namespaces
188
+ createdAt:
189
+ type: string
190
+ format: date-time
191
+ description: Creation timestamp
192
+ updatedAt:
193
+ type: string
194
+ format: date-time
195
+ description: Last update timestamp
196
+ __v:
197
+ type: number
198
+ description: Version number
199
+ CheckCreateBody:
200
+ type: object
201
+ description: Body for creating a check
202
+ required:
203
+ - client
204
+ - checkNumber
205
+ - amount
206
+ - bank
207
+ - dueDate
208
+ properties:
209
+ client:
210
+ type: string
211
+ description: Client ID associated with the check
212
+ rep:
213
+ type: string
214
+ description: Representative ID who received the check
215
+ checkNumber:
216
+ type: string
217
+ description: Check number
218
+ amount:
219
+ type: number
220
+ description: Check amount
221
+ bank:
222
+ type: string
223
+ description: Bank name or ID
224
+ accountNumber:
225
+ type: string
226
+ description: Account number
227
+ issueDate:
228
+ type: string
229
+ format: date-time
230
+ description: Date when check was issued
231
+ dueDate:
232
+ type: string
233
+ format: date-time
234
+ description: Due date of the check
235
+ notes:
236
+ type: string
237
+ description: Additional notes
238
+ integration_meta:
239
+ type: object
240
+ additionalProperties: true
241
+ description: Integration metadata
242
+ CheckCreateResult:
243
+ $ref: "#/components/schemas/CheckSchema"
244
+ description: Result of creating a check
245
+ CheckGetResult:
246
+ $ref: "#/components/schemas/CheckSchema"
247
+ description: Result of getting a check
@@ -0,0 +1,480 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: Client Channel API
4
+ description: API for managing client channels - distribution channels for organizing and categorizing clients
5
+ version: 1.0.0
6
+ servers:
7
+ - url: https://api.repzo.me/v1
8
+ description: Production server
9
+ security:
10
+ - ApiKeyAuth: []
11
+ tags:
12
+ - name: Channel
13
+ description: Client channel management operations
14
+ paths:
15
+ /client-channel:
16
+ get:
17
+ tags:
18
+ - Channel
19
+ summary: Get all client channels
20
+ description: Retrieve a list of all client channels with optional filtering and pagination
21
+ parameters:
22
+ - name: page
23
+ in: query
24
+ description: Page number for pagination
25
+ required: false
26
+ schema:
27
+ type: integer
28
+ minimum: 1
29
+ default: 1
30
+ - name: per_page
31
+ in: query
32
+ description: Number of items per page
33
+ required: false
34
+ schema:
35
+ type: integer
36
+ minimum: 1
37
+ maximum: 100
38
+ default: 25
39
+ - name: sort
40
+ in: query
41
+ description: Sort field
42
+ required: false
43
+ schema:
44
+ type: string
45
+ - name: _id
46
+ in: query
47
+ description: Filter by channel ID(s)
48
+ required: false
49
+ schema:
50
+ oneOf:
51
+ - type: string
52
+ - type: array
53
+ items:
54
+ type: string
55
+ - name: search
56
+ in: query
57
+ description: Search text for channel name
58
+ required: false
59
+ schema:
60
+ type: string
61
+ - name: name
62
+ in: query
63
+ description: Filter by channel name(s)
64
+ required: false
65
+ schema:
66
+ oneOf:
67
+ - type: string
68
+ - type: array
69
+ items:
70
+ type: string
71
+ - name: local_name
72
+ in: query
73
+ description: Filter by local name(s)
74
+ required: false
75
+ schema:
76
+ oneOf:
77
+ - type: string
78
+ - type: array
79
+ items:
80
+ type: string
81
+ - name: disabled
82
+ in: query
83
+ description: Filter by disabled status
84
+ required: false
85
+ schema:
86
+ type: boolean
87
+ - name: from_updatedAt
88
+ in: query
89
+ description: Filter channels updated after this timestamp
90
+ required: false
91
+ schema:
92
+ type: integer
93
+ format: int64
94
+ - name: from__id
95
+ in: query
96
+ description: Filter channels with ID greater than this value
97
+ required: false
98
+ schema:
99
+ type: string
100
+ - name: to__id
101
+ in: query
102
+ description: Filter channels with ID less than this value
103
+ required: false
104
+ schema:
105
+ type: string
106
+ - name: sortBy
107
+ in: query
108
+ description: Advanced sorting options
109
+ required: false
110
+ schema:
111
+ type: array
112
+ items:
113
+ type: object
114
+ properties:
115
+ field:
116
+ type: string
117
+ enum: ["_id"]
118
+ type:
119
+ type: string
120
+ enum: ["asc", "desc"]
121
+ responses:
122
+ "200":
123
+ description: Successful response
124
+ content:
125
+ application/json:
126
+ schema:
127
+ type: object
128
+ properties:
129
+ success:
130
+ type: boolean
131
+ example: true
132
+ data:
133
+ type: array
134
+ items:
135
+ $ref: "#/components/schemas/ChannelSchema"
136
+ pagination:
137
+ $ref: "#/components/schemas/PaginationResult"
138
+ "400":
139
+ $ref: "#/components/responses/BadRequest"
140
+ "401":
141
+ $ref: "#/components/responses/Unauthorized"
142
+ "500":
143
+ $ref: "#/components/responses/InternalServerError"
144
+ post:
145
+ tags:
146
+ - Channel
147
+ summary: Create a new client channel
148
+ description: Create a new client channel
149
+ requestBody:
150
+ required: true
151
+ content:
152
+ application/json:
153
+ schema:
154
+ $ref: "#/components/schemas/ChannelCreateBody"
155
+ responses:
156
+ "201":
157
+ description: Channel created successfully
158
+ content:
159
+ application/json:
160
+ schema:
161
+ type: object
162
+ properties:
163
+ success:
164
+ type: boolean
165
+ example: true
166
+ data:
167
+ $ref: "#/components/schemas/ChannelSchema"
168
+ "400":
169
+ $ref: "#/components/responses/BadRequest"
170
+ "401":
171
+ $ref: "#/components/responses/Unauthorized"
172
+ "500":
173
+ $ref: "#/components/responses/InternalServerError"
174
+ /client-channel/{id}:
175
+ get:
176
+ tags:
177
+ - Channel
178
+ summary: Get a specific client channel
179
+ description: Retrieve a specific client channel by ID
180
+ parameters:
181
+ - name: id
182
+ in: path
183
+ description: Channel ID
184
+ required: true
185
+ schema:
186
+ type: string
187
+ responses:
188
+ "200":
189
+ description: Successful response
190
+ content:
191
+ application/json:
192
+ schema:
193
+ type: object
194
+ properties:
195
+ success:
196
+ type: boolean
197
+ example: true
198
+ data:
199
+ $ref: "#/components/schemas/ChannelSchema"
200
+ "404":
201
+ $ref: "#/components/responses/NotFound"
202
+ "401":
203
+ $ref: "#/components/responses/Unauthorized"
204
+ "500":
205
+ $ref: "#/components/responses/InternalServerError"
206
+ put:
207
+ tags:
208
+ - Channel
209
+ summary: Update a client channel
210
+ description: Update an existing client channel
211
+ parameters:
212
+ - name: id
213
+ in: path
214
+ description: Channel ID
215
+ required: true
216
+ schema:
217
+ type: string
218
+ requestBody:
219
+ required: true
220
+ content:
221
+ application/json:
222
+ schema:
223
+ $ref: "#/components/schemas/ChannelUpdateBody"
224
+ responses:
225
+ "200":
226
+ description: Channel updated successfully
227
+ content:
228
+ application/json:
229
+ schema:
230
+ type: object
231
+ properties:
232
+ success:
233
+ type: boolean
234
+ example: true
235
+ data:
236
+ $ref: "#/components/schemas/ChannelSchema"
237
+ "400":
238
+ $ref: "#/components/responses/BadRequest"
239
+ "404":
240
+ $ref: "#/components/responses/NotFound"
241
+ "401":
242
+ $ref: "#/components/responses/Unauthorized"
243
+ "500":
244
+ $ref: "#/components/responses/InternalServerError"
245
+ delete:
246
+ tags:
247
+ - Channel
248
+ summary: Delete a client channel
249
+ description: Delete an existing client channel
250
+ parameters:
251
+ - name: id
252
+ in: path
253
+ description: Channel ID
254
+ required: true
255
+ schema:
256
+ type: string
257
+ responses:
258
+ "200":
259
+ description: Channel deleted successfully
260
+ content:
261
+ application/json:
262
+ schema:
263
+ type: object
264
+ properties:
265
+ success:
266
+ type: boolean
267
+ example: true
268
+ data:
269
+ $ref: "#/components/schemas/ChannelSchema"
270
+ "404":
271
+ $ref: "#/components/responses/NotFound"
272
+ "401":
273
+ $ref: "#/components/responses/Unauthorized"
274
+ "500":
275
+ $ref: "#/components/responses/InternalServerError"
276
+ components:
277
+ securitySchemes:
278
+ ApiKeyAuth:
279
+ type: apiKey
280
+ in: header
281
+ name: Authorization
282
+ description: Bearer token authentication
283
+ schemas:
284
+ ChannelSchema:
285
+ type: object
286
+ properties:
287
+ _id:
288
+ type: string
289
+ description: Unique identifier for the channel
290
+ example: "60f1b2b3c9e9a12345678901"
291
+ name:
292
+ type: string
293
+ description: Channel name
294
+ example: "Retail Channel"
295
+ local_name:
296
+ type: string
297
+ description: Local/translated name
298
+ example: "قناة التجزئة"
299
+ disabled:
300
+ type: boolean
301
+ description: Whether the channel is disabled
302
+ example: false
303
+ integration_meta:
304
+ type: object
305
+ additionalProperties: true
306
+ description: Metadata for third-party integrations
307
+ example: { "external_id": "ch_123", "sync_status": "active" }
308
+ company_namespace:
309
+ type: array
310
+ items:
311
+ type: string
312
+ description: Company namespaces this channel belongs to
313
+ example: ["company1"]
314
+ createdAt:
315
+ type: string
316
+ format: date-time
317
+ description: Creation timestamp
318
+ example: "2023-01-15T10:30:00.000Z"
319
+ updatedAt:
320
+ type: string
321
+ format: date-time
322
+ description: Last update timestamp
323
+ example: "2023-01-15T10:30:00.000Z"
324
+ __v:
325
+ type: integer
326
+ description: Version key
327
+ example: 0
328
+ required:
329
+ - _id
330
+ - name
331
+ - company_namespace
332
+ - createdAt
333
+ - updatedAt
334
+ - __v
335
+ ChannelCreateBody:
336
+ type: object
337
+ properties:
338
+ name:
339
+ type: string
340
+ description: Channel name (required)
341
+ example: "Retail Channel"
342
+ local_name:
343
+ type: string
344
+ description: Local/translated name
345
+ example: "قناة التجزئة"
346
+ disabled:
347
+ type: boolean
348
+ description: Whether the channel is disabled
349
+ example: false
350
+ integration_meta:
351
+ type: object
352
+ additionalProperties: true
353
+ description: Metadata for third-party integrations
354
+ example: { "external_id": "ch_123" }
355
+ company_namespace:
356
+ type: array
357
+ items:
358
+ type: string
359
+ description: Company namespaces this channel belongs to
360
+ example: ["company1"]
361
+ required:
362
+ - name
363
+ ChannelUpdateBody:
364
+ type: object
365
+ properties:
366
+ name:
367
+ type: string
368
+ description: Channel name
369
+ example: "Updated Retail Channel"
370
+ local_name:
371
+ type: string
372
+ description: Local/translated name
373
+ example: "قناة التجزئة المحدثة"
374
+ disabled:
375
+ type: boolean
376
+ description: Whether the channel is disabled
377
+ example: false
378
+ integration_meta:
379
+ type: object
380
+ additionalProperties: true
381
+ description: Metadata for third-party integrations
382
+ example: { "external_id": "ch_123", "sync_status": "updated" }
383
+ company_namespace:
384
+ type: array
385
+ items:
386
+ type: string
387
+ description: Company namespaces this channel belongs to
388
+ example: ["company1"]
389
+ _id:
390
+ type: string
391
+ description: Channel ID (for internal use)
392
+ example: "60f1b2b3c9e9a12345678901"
393
+ createdAt:
394
+ type: string
395
+ format: date-time
396
+ description: Creation timestamp (for internal use)
397
+ example: "2023-01-15T10:30:00.000Z"
398
+ updatedAt:
399
+ type: string
400
+ format: date-time
401
+ description: Last update timestamp (for internal use)
402
+ example: "2023-01-15T10:30:00.000Z"
403
+ __v:
404
+ type: integer
405
+ description: Version key (for internal use)
406
+ example: 0
407
+ PaginationResult:
408
+ type: object
409
+ properties:
410
+ page:
411
+ type: integer
412
+ example: 1
413
+ per_page:
414
+ type: integer
415
+ example: 25
416
+ pre_page:
417
+ type: integer
418
+ example: 0
419
+ next_page:
420
+ type: integer
421
+ example: 2
422
+ total:
423
+ type: integer
424
+ example: 100
425
+ total_page:
426
+ type: integer
427
+ example: 4
428
+ responses:
429
+ BadRequest:
430
+ description: Bad request
431
+ content:
432
+ application/json:
433
+ schema:
434
+ type: object
435
+ properties:
436
+ success:
437
+ type: boolean
438
+ example: false
439
+ error:
440
+ type: string
441
+ example: "Invalid request parameters"
442
+ Unauthorized:
443
+ description: Unauthorized
444
+ content:
445
+ application/json:
446
+ schema:
447
+ type: object
448
+ properties:
449
+ success:
450
+ type: boolean
451
+ example: false
452
+ error:
453
+ type: string
454
+ example: "Authentication required"
455
+ NotFound:
456
+ description: Resource not found
457
+ content:
458
+ application/json:
459
+ schema:
460
+ type: object
461
+ properties:
462
+ success:
463
+ type: boolean
464
+ example: false
465
+ error:
466
+ type: string
467
+ example: "Channel not found"
468
+ InternalServerError:
469
+ description: Internal server error
470
+ content:
471
+ application/json:
472
+ schema:
473
+ type: object
474
+ properties:
475
+ success:
476
+ type: boolean
477
+ example: false
478
+ error:
479
+ type: string
480
+ example: "Internal server error"