repzo 1.0.155 → 1.0.157
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 +1 -2
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -2
- package/package.json +2 -2
- package/src/index.ts +4890 -0
- package/src/oas/activity-ai-sales-order.yaml +623 -0
- package/src/oas/activity-feedback-v2.yaml +753 -0
- package/src/oas/activity-feedback.yaml +645 -0
- package/src/oas/activity-storecheck.yaml +379 -0
- package/src/oas/adjust-account.yaml +241 -0
- package/src/oas/adjust-inventory.yaml +133 -0
- package/src/oas/approval-request.yaml +211 -0
- package/src/oas/approvals.yaml +176 -0
- package/src/oas/asset-part-receival.yaml +591 -0
- package/src/oas/asset-part-transfer.yaml +618 -0
- package/src/oas/asset-part-type.yaml +383 -0
- package/src/oas/asset-part-unit.yaml +722 -0
- package/src/oas/asset-part.yaml +485 -0
- package/src/oas/asset-type.yaml +180 -0
- package/src/oas/asset-unit.yaml +705 -0
- package/src/oas/asset.yaml +204 -0
- package/src/oas/banks.yaml +168 -0
- package/src/oas/bankslists.yaml +168 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/checks.yaml +247 -0
- package/src/oas/client-channel.yaml +480 -0
- package/src/oas/client-contact.yaml +665 -0
- package/src/oas/client-location.yaml +687 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/contract-installment.yaml +740 -0
- package/src/oas/contract.yaml +210 -0
- package/src/oas/custom-list-item.yaml +168 -0
- package/src/oas/custom-list.yaml +168 -0
- package/src/oas/custom-status.yaml +168 -0
- package/src/oas/day.yaml +246 -0
- package/src/oas/feedback-options.yaml +802 -0
- package/src/oas/fullinvoices.yaml +584 -0
- package/src/oas/integration-action-log.yaml +361 -0
- package/src/oas/integration-app.yaml +303 -0
- package/src/oas/integration-command-log.yaml +381 -0
- package/src/oas/inventory-adjustment-reason.yaml +165 -0
- package/src/oas/inventory.yaml +64 -0
- package/src/oas/mail-unsubscribe.yaml +463 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media-storage.yaml +329 -0
- package/src/oas/media.yaml +472 -0
- package/src/oas/msl-products.yaml +180 -0
- package/src/oas/msl.yaml +186 -0
- package/src/oas/ocr-invoice-job-group.yaml +528 -0
- package/src/oas/ocr-invoice-job-page.yaml +602 -0
- package/src/oas/ocr-invoice-job-template.yaml +628 -0
- package/src/oas/ocr-invoice-job.yaml +603 -0
- package/src/oas/patch-action.yaml +421 -0
- package/src/oas/payment-terms.yaml +235 -0
- package/src/oas/payments.yaml +536 -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-modifiers-group.yaml +524 -0
- package/src/oas/product.yaml +578 -0
- package/src/oas/proforma.yaml +180 -0
- package/src/oas/quick-convert-to-pdf.yaml +95 -0
- package/src/oas/receiving-material.yaml +336 -0
- package/src/oas/refund.yaml +281 -0
- package/src/oas/rep-balance-summary.yaml +135 -0
- package/src/oas/rep.yaml +1824 -0
- package/src/oas/return-asset-part-unit.yaml +573 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/safe-invoice-serial-counter.yaml +525 -0
- package/src/oas/settings.yaml +123 -0
- package/src/oas/settlement.yaml +505 -0
- package/src/oas/speciality.yaml +447 -0
- package/src/oas/store-asset-part-unit.yaml +658 -0
- package/src/oas/storecheck-template.yaml +415 -0
- package/src/oas/subcategory.yaml +355 -0
- package/src/oas/supplier.yaml +183 -0
- package/src/oas/svix-integration.yaml +335 -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/transfer.yaml +347 -0
- package/src/oas/update-integration-meta.yaml +387 -0
- package/src/oas/variant.yaml +569 -0
- package/src/oas/visit.yaml +174 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/oas/workorder-category.yaml +751 -0
- package/src/oas/workorder-portal-link.yaml +811 -0
- package/src/oas/workorder-portal.yaml +650 -0
- package/src/oas/workorder-request.yaml +193 -0
- package/src/oas/workorder.yaml +204 -0
- package/src/types/index.ts +2 -1
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Speciality API
|
|
4
|
+
description: API for managing specialities
|
|
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: Speciality
|
|
13
|
+
description: Speciality management operations
|
|
14
|
+
paths:
|
|
15
|
+
/speciality:
|
|
16
|
+
get:
|
|
17
|
+
tags:
|
|
18
|
+
- Speciality
|
|
19
|
+
summary: Get all specialities
|
|
20
|
+
description: Retrieve a list of all specialities 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: company_namespace
|
|
46
|
+
in: query
|
|
47
|
+
description: Company namespace for filtering
|
|
48
|
+
required: false
|
|
49
|
+
schema:
|
|
50
|
+
type: array
|
|
51
|
+
items:
|
|
52
|
+
type: string
|
|
53
|
+
- name: disabled
|
|
54
|
+
in: query
|
|
55
|
+
description: Filter by disabled status
|
|
56
|
+
required: false
|
|
57
|
+
schema:
|
|
58
|
+
type: boolean
|
|
59
|
+
- name: _id
|
|
60
|
+
in: query
|
|
61
|
+
description: Filter by ID
|
|
62
|
+
required: false
|
|
63
|
+
schema:
|
|
64
|
+
type: array
|
|
65
|
+
items:
|
|
66
|
+
type: string
|
|
67
|
+
responses:
|
|
68
|
+
"200":
|
|
69
|
+
description: Successful response
|
|
70
|
+
content:
|
|
71
|
+
application/json:
|
|
72
|
+
schema:
|
|
73
|
+
type: object
|
|
74
|
+
properties:
|
|
75
|
+
success:
|
|
76
|
+
type: boolean
|
|
77
|
+
example: true
|
|
78
|
+
data:
|
|
79
|
+
type: array
|
|
80
|
+
items:
|
|
81
|
+
$ref: "#/components/schemas/Speciality"
|
|
82
|
+
paging:
|
|
83
|
+
$ref: "#/components/schemas/PagingInfo"
|
|
84
|
+
"400":
|
|
85
|
+
$ref: "#/components/responses/BadRequest"
|
|
86
|
+
"401":
|
|
87
|
+
$ref: "#/components/responses/Unauthorized"
|
|
88
|
+
"403":
|
|
89
|
+
$ref: "#/components/responses/Forbidden"
|
|
90
|
+
"500":
|
|
91
|
+
$ref: "#/components/responses/InternalServerError"
|
|
92
|
+
post:
|
|
93
|
+
tags:
|
|
94
|
+
- Speciality
|
|
95
|
+
summary: Create a new speciality
|
|
96
|
+
description: Create a new speciality entry
|
|
97
|
+
requestBody:
|
|
98
|
+
required: true
|
|
99
|
+
content:
|
|
100
|
+
application/json:
|
|
101
|
+
schema:
|
|
102
|
+
$ref: "#/components/schemas/CreateSpecialityRequest"
|
|
103
|
+
responses:
|
|
104
|
+
"201":
|
|
105
|
+
description: Speciality created successfully
|
|
106
|
+
content:
|
|
107
|
+
application/json:
|
|
108
|
+
schema:
|
|
109
|
+
type: object
|
|
110
|
+
properties:
|
|
111
|
+
success:
|
|
112
|
+
type: boolean
|
|
113
|
+
example: true
|
|
114
|
+
data:
|
|
115
|
+
$ref: "#/components/schemas/Speciality"
|
|
116
|
+
"400":
|
|
117
|
+
$ref: "#/components/responses/BadRequest"
|
|
118
|
+
"401":
|
|
119
|
+
$ref: "#/components/responses/Unauthorized"
|
|
120
|
+
"403":
|
|
121
|
+
$ref: "#/components/responses/Forbidden"
|
|
122
|
+
"422":
|
|
123
|
+
$ref: "#/components/responses/ValidationError"
|
|
124
|
+
"500":
|
|
125
|
+
$ref: "#/components/responses/InternalServerError"
|
|
126
|
+
/speciality/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- Speciality
|
|
130
|
+
summary: Get speciality by ID
|
|
131
|
+
description: Retrieve a specific speciality by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: Speciality ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: Successful response
|
|
142
|
+
content:
|
|
143
|
+
application/json:
|
|
144
|
+
schema:
|
|
145
|
+
type: object
|
|
146
|
+
properties:
|
|
147
|
+
success:
|
|
148
|
+
type: boolean
|
|
149
|
+
example: true
|
|
150
|
+
data:
|
|
151
|
+
$ref: "#/components/schemas/Speciality"
|
|
152
|
+
"400":
|
|
153
|
+
$ref: "#/components/responses/BadRequest"
|
|
154
|
+
"401":
|
|
155
|
+
$ref: "#/components/responses/Unauthorized"
|
|
156
|
+
"403":
|
|
157
|
+
$ref: "#/components/responses/Forbidden"
|
|
158
|
+
"404":
|
|
159
|
+
$ref: "#/components/responses/NotFound"
|
|
160
|
+
"500":
|
|
161
|
+
$ref: "#/components/responses/InternalServerError"
|
|
162
|
+
patch:
|
|
163
|
+
tags:
|
|
164
|
+
- Speciality
|
|
165
|
+
summary: Update speciality
|
|
166
|
+
description: Update an existing speciality
|
|
167
|
+
parameters:
|
|
168
|
+
- name: id
|
|
169
|
+
in: path
|
|
170
|
+
required: true
|
|
171
|
+
description: Speciality ID
|
|
172
|
+
schema:
|
|
173
|
+
type: string
|
|
174
|
+
requestBody:
|
|
175
|
+
required: true
|
|
176
|
+
content:
|
|
177
|
+
application/json:
|
|
178
|
+
schema:
|
|
179
|
+
$ref: "#/components/schemas/UpdateSpecialityRequest"
|
|
180
|
+
responses:
|
|
181
|
+
"200":
|
|
182
|
+
description: Speciality updated successfully
|
|
183
|
+
content:
|
|
184
|
+
application/json:
|
|
185
|
+
schema:
|
|
186
|
+
type: object
|
|
187
|
+
properties:
|
|
188
|
+
success:
|
|
189
|
+
type: boolean
|
|
190
|
+
example: true
|
|
191
|
+
data:
|
|
192
|
+
$ref: "#/components/schemas/Speciality"
|
|
193
|
+
"400":
|
|
194
|
+
$ref: "#/components/responses/BadRequest"
|
|
195
|
+
"401":
|
|
196
|
+
$ref: "#/components/responses/Unauthorized"
|
|
197
|
+
"403":
|
|
198
|
+
$ref: "#/components/responses/Forbidden"
|
|
199
|
+
"404":
|
|
200
|
+
$ref: "#/components/responses/NotFound"
|
|
201
|
+
"422":
|
|
202
|
+
$ref: "#/components/responses/ValidationError"
|
|
203
|
+
"500":
|
|
204
|
+
$ref: "#/components/responses/InternalServerError"
|
|
205
|
+
delete:
|
|
206
|
+
tags:
|
|
207
|
+
- Speciality
|
|
208
|
+
summary: Delete speciality
|
|
209
|
+
description: Delete a speciality by ID
|
|
210
|
+
parameters:
|
|
211
|
+
- name: id
|
|
212
|
+
in: path
|
|
213
|
+
required: true
|
|
214
|
+
description: Speciality ID
|
|
215
|
+
schema:
|
|
216
|
+
type: string
|
|
217
|
+
responses:
|
|
218
|
+
"200":
|
|
219
|
+
description: Speciality deleted successfully
|
|
220
|
+
content:
|
|
221
|
+
application/json:
|
|
222
|
+
schema:
|
|
223
|
+
type: object
|
|
224
|
+
properties:
|
|
225
|
+
success:
|
|
226
|
+
type: boolean
|
|
227
|
+
example: true
|
|
228
|
+
"400":
|
|
229
|
+
$ref: "#/components/responses/BadRequest"
|
|
230
|
+
"401":
|
|
231
|
+
$ref: "#/components/responses/Unauthorized"
|
|
232
|
+
"403":
|
|
233
|
+
$ref: "#/components/responses/Forbidden"
|
|
234
|
+
"404":
|
|
235
|
+
$ref: "#/components/responses/NotFound"
|
|
236
|
+
"500":
|
|
237
|
+
$ref: "#/components/responses/InternalServerError"
|
|
238
|
+
/speciality/remove:
|
|
239
|
+
post:
|
|
240
|
+
tags:
|
|
241
|
+
- Speciality
|
|
242
|
+
summary: Bulk delete specialities
|
|
243
|
+
description: Delete multiple specialities by their IDs
|
|
244
|
+
requestBody:
|
|
245
|
+
required: true
|
|
246
|
+
content:
|
|
247
|
+
application/json:
|
|
248
|
+
schema:
|
|
249
|
+
type: object
|
|
250
|
+
properties:
|
|
251
|
+
ids:
|
|
252
|
+
type: array
|
|
253
|
+
items:
|
|
254
|
+
type: string
|
|
255
|
+
description: Array of speciality IDs to delete
|
|
256
|
+
required:
|
|
257
|
+
- ids
|
|
258
|
+
responses:
|
|
259
|
+
"200":
|
|
260
|
+
description: Specialities deleted successfully
|
|
261
|
+
content:
|
|
262
|
+
application/json:
|
|
263
|
+
schema:
|
|
264
|
+
type: object
|
|
265
|
+
properties:
|
|
266
|
+
success:
|
|
267
|
+
type: boolean
|
|
268
|
+
example: true
|
|
269
|
+
"400":
|
|
270
|
+
$ref: "#/components/responses/BadRequest"
|
|
271
|
+
"401":
|
|
272
|
+
$ref: "#/components/responses/Unauthorized"
|
|
273
|
+
"403":
|
|
274
|
+
$ref: "#/components/responses/Forbidden"
|
|
275
|
+
"500":
|
|
276
|
+
$ref: "#/components/responses/InternalServerError"
|
|
277
|
+
components:
|
|
278
|
+
securitySchemes:
|
|
279
|
+
ApiKeyAuth:
|
|
280
|
+
type: apiKey
|
|
281
|
+
in: header
|
|
282
|
+
name: Authorization
|
|
283
|
+
description: "Use format: Bearer {api_key}"
|
|
284
|
+
schemas:
|
|
285
|
+
Speciality:
|
|
286
|
+
type: object
|
|
287
|
+
properties:
|
|
288
|
+
_id:
|
|
289
|
+
type: string
|
|
290
|
+
description: Unique identifier
|
|
291
|
+
example: "507f1f77bcf86cd799439011"
|
|
292
|
+
name:
|
|
293
|
+
type: string
|
|
294
|
+
description: Speciality name
|
|
295
|
+
example: "Cardiology"
|
|
296
|
+
company_namespace:
|
|
297
|
+
type: array
|
|
298
|
+
items:
|
|
299
|
+
type: string
|
|
300
|
+
description: Company namespace
|
|
301
|
+
disabled:
|
|
302
|
+
type: boolean
|
|
303
|
+
description: Whether the speciality is disabled
|
|
304
|
+
example: false
|
|
305
|
+
createdAt:
|
|
306
|
+
type: string
|
|
307
|
+
format: date-time
|
|
308
|
+
description: Creation timestamp
|
|
309
|
+
modifiedAt:
|
|
310
|
+
type: string
|
|
311
|
+
format: date-time
|
|
312
|
+
description: Last modification timestamp
|
|
313
|
+
SVClient:
|
|
314
|
+
type: integer
|
|
315
|
+
description: Client version
|
|
316
|
+
__v:
|
|
317
|
+
type: integer
|
|
318
|
+
description: Document version
|
|
319
|
+
required:
|
|
320
|
+
- name
|
|
321
|
+
CreateSpecialityRequest:
|
|
322
|
+
type: object
|
|
323
|
+
properties:
|
|
324
|
+
name:
|
|
325
|
+
type: string
|
|
326
|
+
description: Speciality name
|
|
327
|
+
example: "Cardiology"
|
|
328
|
+
company_namespace:
|
|
329
|
+
type: array
|
|
330
|
+
items:
|
|
331
|
+
type: string
|
|
332
|
+
description: Company namespace
|
|
333
|
+
disabled:
|
|
334
|
+
type: boolean
|
|
335
|
+
description: Whether the speciality is disabled
|
|
336
|
+
default: false
|
|
337
|
+
required:
|
|
338
|
+
- name
|
|
339
|
+
UpdateSpecialityRequest:
|
|
340
|
+
type: object
|
|
341
|
+
properties:
|
|
342
|
+
name:
|
|
343
|
+
type: string
|
|
344
|
+
description: Speciality name
|
|
345
|
+
example: "Cardiology"
|
|
346
|
+
company_namespace:
|
|
347
|
+
type: array
|
|
348
|
+
items:
|
|
349
|
+
type: string
|
|
350
|
+
description: Company namespace
|
|
351
|
+
disabled:
|
|
352
|
+
type: boolean
|
|
353
|
+
description: Whether the speciality is disabled
|
|
354
|
+
PagingInfo:
|
|
355
|
+
type: object
|
|
356
|
+
properties:
|
|
357
|
+
total:
|
|
358
|
+
type: integer
|
|
359
|
+
description: Total number of items
|
|
360
|
+
page:
|
|
361
|
+
type: integer
|
|
362
|
+
description: Current page number
|
|
363
|
+
per_page:
|
|
364
|
+
type: integer
|
|
365
|
+
description: Items per page
|
|
366
|
+
pages:
|
|
367
|
+
type: integer
|
|
368
|
+
description: Total number of pages
|
|
369
|
+
responses:
|
|
370
|
+
BadRequest:
|
|
371
|
+
description: Bad request
|
|
372
|
+
content:
|
|
373
|
+
application/json:
|
|
374
|
+
schema:
|
|
375
|
+
type: object
|
|
376
|
+
properties:
|
|
377
|
+
success:
|
|
378
|
+
type: boolean
|
|
379
|
+
example: false
|
|
380
|
+
error:
|
|
381
|
+
type: string
|
|
382
|
+
example: "Invalid request parameters"
|
|
383
|
+
Unauthorized:
|
|
384
|
+
description: Unauthorized
|
|
385
|
+
content:
|
|
386
|
+
application/json:
|
|
387
|
+
schema:
|
|
388
|
+
type: object
|
|
389
|
+
properties:
|
|
390
|
+
success:
|
|
391
|
+
type: boolean
|
|
392
|
+
example: false
|
|
393
|
+
error:
|
|
394
|
+
type: string
|
|
395
|
+
example: "Authentication required"
|
|
396
|
+
Forbidden:
|
|
397
|
+
description: Forbidden
|
|
398
|
+
content:
|
|
399
|
+
application/json:
|
|
400
|
+
schema:
|
|
401
|
+
type: object
|
|
402
|
+
properties:
|
|
403
|
+
success:
|
|
404
|
+
type: boolean
|
|
405
|
+
example: false
|
|
406
|
+
error:
|
|
407
|
+
type: string
|
|
408
|
+
example: "Insufficient permissions"
|
|
409
|
+
NotFound:
|
|
410
|
+
description: Resource not found
|
|
411
|
+
content:
|
|
412
|
+
application/json:
|
|
413
|
+
schema:
|
|
414
|
+
type: object
|
|
415
|
+
properties:
|
|
416
|
+
success:
|
|
417
|
+
type: boolean
|
|
418
|
+
example: false
|
|
419
|
+
error:
|
|
420
|
+
type: string
|
|
421
|
+
example: "Resource not found"
|
|
422
|
+
ValidationError:
|
|
423
|
+
description: Validation error
|
|
424
|
+
content:
|
|
425
|
+
application/json:
|
|
426
|
+
schema:
|
|
427
|
+
type: object
|
|
428
|
+
properties:
|
|
429
|
+
success:
|
|
430
|
+
type: boolean
|
|
431
|
+
example: false
|
|
432
|
+
error:
|
|
433
|
+
type: string
|
|
434
|
+
example: "Validation failed"
|
|
435
|
+
InternalServerError:
|
|
436
|
+
description: Internal server error
|
|
437
|
+
content:
|
|
438
|
+
application/json:
|
|
439
|
+
schema:
|
|
440
|
+
type: object
|
|
441
|
+
properties:
|
|
442
|
+
success:
|
|
443
|
+
type: boolean
|
|
444
|
+
example: false
|
|
445
|
+
error:
|
|
446
|
+
type: string
|
|
447
|
+
example: "Internal server error"
|