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,281 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Refund
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Refund endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /refund:
10
+ get:
11
+ summary: Find refunds
12
+ operationId: findRefunds
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
+ status:
40
+ type: string
41
+ enum: [pending, approved, rejected, processed]
42
+ from_date:
43
+ type: string
44
+ format: date-time
45
+ to_date:
46
+ type: string
47
+ format: date-time
48
+ from_updatedAt:
49
+ type: number
50
+ from__id:
51
+ type: string
52
+ to__id:
53
+ type: string
54
+ sortBy:
55
+ type: array
56
+ items:
57
+ type: object
58
+ properties:
59
+ field:
60
+ type: string
61
+ enum: [_id, createdAt, updatedAt, amount]
62
+ type:
63
+ type: string
64
+ enum: [asc, desc]
65
+ description: Query parameters for filtering refunds
66
+ responses:
67
+ "200":
68
+ description: A list of refunds
69
+ content:
70
+ application/json:
71
+ schema:
72
+ $ref: "#/components/schemas/RefundFindResult"
73
+ post:
74
+ summary: Create a refund
75
+ operationId: createRefund
76
+ requestBody:
77
+ required: true
78
+ content:
79
+ application/json:
80
+ schema:
81
+ $ref: "#/components/schemas/RefundCreateBody"
82
+ responses:
83
+ "201":
84
+ description: Refund created
85
+ content:
86
+ application/json:
87
+ schema:
88
+ $ref: "#/components/schemas/RefundCreateResult"
89
+ /refund/{id}:
90
+ get:
91
+ summary: Get a refund by ID
92
+ operationId: getRefund
93
+ parameters:
94
+ - in: path
95
+ name: id
96
+ required: true
97
+ schema:
98
+ type: string
99
+ responses:
100
+ "200":
101
+ description: Refund details
102
+ content:
103
+ application/json:
104
+ schema:
105
+ $ref: "#/components/schemas/RefundGetResult"
106
+ put:
107
+ summary: Update a refund
108
+ operationId: updateRefund
109
+ parameters:
110
+ - in: path
111
+ name: id
112
+ required: true
113
+ schema:
114
+ type: string
115
+ requestBody:
116
+ required: true
117
+ content:
118
+ application/json:
119
+ schema:
120
+ $ref: "#/components/schemas/RefundUpdateBody"
121
+ responses:
122
+ "200":
123
+ description: Refund updated
124
+ content:
125
+ application/json:
126
+ schema:
127
+ $ref: "#/components/schemas/RefundUpdateResult"
128
+ components:
129
+ schemas:
130
+ RefundFindResult:
131
+ type: object
132
+ description: Result of finding refunds
133
+ properties:
134
+ data:
135
+ type: array
136
+ items:
137
+ $ref: "#/components/schemas/RefundSchema"
138
+ total_result:
139
+ type: number
140
+ description: Total number of refunds
141
+ current_count:
142
+ type: number
143
+ description: Count of refunds in current page
144
+ total_pages:
145
+ type: number
146
+ description: Total number of pages
147
+ current_page:
148
+ type: number
149
+ description: Current page number
150
+ per_page:
151
+ type: number
152
+ description: Number of refunds per page
153
+ RefundSchema:
154
+ type: object
155
+ description: Refund schema
156
+ properties:
157
+ _id:
158
+ type: string
159
+ description: Unique identifier for the refund
160
+ client:
161
+ type: string
162
+ description: Client ID associated with the refund
163
+ rep:
164
+ type: string
165
+ description: Representative ID who processed the refund
166
+ invoice:
167
+ type: string
168
+ description: Invoice ID being refunded
169
+ amount:
170
+ type: number
171
+ description: Refund amount
172
+ reason:
173
+ type: string
174
+ description: Reason for the refund
175
+ status:
176
+ type: string
177
+ enum: [pending, approved, rejected, processed]
178
+ description: Status of the refund
179
+ refundMethod:
180
+ type: string
181
+ description: Method of refund
182
+ reference:
183
+ type: string
184
+ description: Reference number for the refund
185
+ notes:
186
+ type: string
187
+ description: Additional notes
188
+ processedAt:
189
+ type: string
190
+ format: date-time
191
+ description: When the refund was processed
192
+ integration_meta:
193
+ type: object
194
+ additionalProperties: true
195
+ description: Integration metadata
196
+ company_namespace:
197
+ type: array
198
+ items:
199
+ type: string
200
+ description: Company namespaces
201
+ createdAt:
202
+ type: string
203
+ format: date-time
204
+ description: Creation timestamp
205
+ updatedAt:
206
+ type: string
207
+ format: date-time
208
+ description: Last update timestamp
209
+ __v:
210
+ type: number
211
+ description: Version number
212
+ RefundCreateBody:
213
+ type: object
214
+ description: Body for creating a refund
215
+ required:
216
+ - client
217
+ - amount
218
+ - reason
219
+ properties:
220
+ client:
221
+ type: string
222
+ description: Client ID associated with the refund
223
+ rep:
224
+ type: string
225
+ description: Representative ID who processed the refund
226
+ invoice:
227
+ type: string
228
+ description: Invoice ID being refunded
229
+ amount:
230
+ type: number
231
+ description: Refund amount
232
+ reason:
233
+ type: string
234
+ description: Reason for the refund
235
+ refundMethod:
236
+ type: string
237
+ description: Method of refund
238
+ reference:
239
+ type: string
240
+ description: Reference number for the refund
241
+ notes:
242
+ type: string
243
+ description: Additional notes
244
+ integration_meta:
245
+ type: object
246
+ additionalProperties: true
247
+ description: Integration metadata
248
+ RefundCreateResult:
249
+ $ref: "#/components/schemas/RefundSchema"
250
+ description: Result of creating a refund
251
+ RefundGetResult:
252
+ $ref: "#/components/schemas/RefundSchema"
253
+ description: Result of getting a refund
254
+ RefundUpdateBody:
255
+ type: object
256
+ description: Body for updating a refund
257
+ properties:
258
+ status:
259
+ type: string
260
+ enum: [pending, approved, rejected, processed]
261
+ description: Status of the refund
262
+ refundMethod:
263
+ type: string
264
+ description: Method of refund
265
+ reference:
266
+ type: string
267
+ description: Reference number for the refund
268
+ notes:
269
+ type: string
270
+ description: Additional notes
271
+ processedAt:
272
+ type: string
273
+ format: date-time
274
+ description: When the refund was processed
275
+ integration_meta:
276
+ type: object
277
+ additionalProperties: true
278
+ description: Integration metadata
279
+ RefundUpdateResult:
280
+ $ref: "#/components/schemas/RefundSchema"
281
+ description: Result of updating a refund
@@ -0,0 +1,135 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Rep Balance Summary
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Rep Balance Summary endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /rep-balance-summary:
10
+ get:
11
+ summary: Find rep balance summaries
12
+ operationId: findRepBalanceSummaries
13
+ parameters:
14
+ - in: query
15
+ name: rep
16
+ required: true
17
+ schema:
18
+ type: string
19
+ description: The rep ID to get balance summary for
20
+ - in: query
21
+ name: page
22
+ schema:
23
+ type: integer
24
+ minimum: 1
25
+ default: 1
26
+ description: Page number for pagination
27
+ - in: query
28
+ name: per_page
29
+ schema:
30
+ type: integer
31
+ minimum: 1
32
+ maximum: 100
33
+ default: 20
34
+ description: Number of items per page
35
+ - in: query
36
+ name: disabled
37
+ schema:
38
+ type: boolean
39
+ default: false
40
+ description: Whether to include disabled records
41
+ - in: query
42
+ name: populatedKeys
43
+ schema:
44
+ type: array
45
+ items:
46
+ type: string
47
+ description: Keys to populate in the response
48
+ responses:
49
+ "200":
50
+ description: Successful response
51
+ content:
52
+ application/json:
53
+ schema:
54
+ type: object
55
+ properties:
56
+ total_result:
57
+ type: integer
58
+ description: Total number of results
59
+ current_count:
60
+ type: integer
61
+ description: Number of results in current page
62
+ total_pages:
63
+ type: integer
64
+ description: Total number of pages
65
+ current_page:
66
+ type: integer
67
+ description: Current page number
68
+ per_page:
69
+ type: integer
70
+ description: Number of items per page
71
+ first_page_url:
72
+ type: string
73
+ description: URL for first page
74
+ last_page_url:
75
+ type: string
76
+ description: URL for last page
77
+ next_page_url:
78
+ type: string
79
+ nullable: true
80
+ description: URL for next page
81
+ prev_page_url:
82
+ type: string
83
+ nullable: true
84
+ description: URL for previous page
85
+ path:
86
+ type: string
87
+ description: Base path for the endpoint
88
+ data:
89
+ type: array
90
+ items:
91
+ $ref: "#/components/schemas/RepBalanceSummary"
92
+ totals:
93
+ type: object
94
+ properties:
95
+ total_balances:
96
+ type: number
97
+ description: Sum of all balance summaries
98
+ options:
99
+ type: object
100
+ properties:
101
+ has_more:
102
+ type: boolean
103
+ description: Whether there are more results
104
+ include_documents_count:
105
+ type: boolean
106
+ description: Whether document count is included
107
+ "400":
108
+ description: Bad request
109
+ "401":
110
+ description: Unauthorized
111
+ "500":
112
+ description: Internal server error
113
+
114
+ components:
115
+ schemas:
116
+ RepBalanceSummary:
117
+ type: object
118
+ properties:
119
+ _id:
120
+ type: string
121
+ description: Unique identifier for the rep balance summary
122
+ rep:
123
+ type: string
124
+ description: Rep ID
125
+ rep_name:
126
+ type: string
127
+ description: Rep name
128
+ total_outstanding_balance_of_invoices_created_by_rep:
129
+ type: number
130
+ description: Total outstanding balance of invoices created by the rep
131
+ required:
132
+ - _id
133
+ - rep
134
+ - rep_name
135
+ - total_outstanding_balance_of_invoices_created_by_rep