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.
Files changed (94) hide show
  1. package/lib/index.d.ts +1 -2
  2. package/lib/index.js +1 -1
  3. package/lib/types/index.d.ts +2 -2
  4. package/package.json +2 -2
  5. package/src/index.ts +4890 -0
  6. package/src/oas/activity-ai-sales-order.yaml +623 -0
  7. package/src/oas/activity-feedback-v2.yaml +753 -0
  8. package/src/oas/activity-feedback.yaml +645 -0
  9. package/src/oas/activity-storecheck.yaml +379 -0
  10. package/src/oas/adjust-account.yaml +241 -0
  11. package/src/oas/adjust-inventory.yaml +133 -0
  12. package/src/oas/approval-request.yaml +211 -0
  13. package/src/oas/approvals.yaml +176 -0
  14. package/src/oas/asset-part-receival.yaml +591 -0
  15. package/src/oas/asset-part-transfer.yaml +618 -0
  16. package/src/oas/asset-part-type.yaml +383 -0
  17. package/src/oas/asset-part-unit.yaml +722 -0
  18. package/src/oas/asset-part.yaml +485 -0
  19. package/src/oas/asset-type.yaml +180 -0
  20. package/src/oas/asset-unit.yaml +705 -0
  21. package/src/oas/asset.yaml +204 -0
  22. package/src/oas/banks.yaml +168 -0
  23. package/src/oas/bankslists.yaml +168 -0
  24. package/src/oas/brand.yaml +246 -0
  25. package/src/oas/category.yaml +285 -0
  26. package/src/oas/checks.yaml +247 -0
  27. package/src/oas/client-channel.yaml +480 -0
  28. package/src/oas/client-contact.yaml +665 -0
  29. package/src/oas/client-location.yaml +687 -0
  30. package/src/oas/client.yaml +669 -0
  31. package/src/oas/contract-installment.yaml +740 -0
  32. package/src/oas/contract.yaml +210 -0
  33. package/src/oas/custom-list-item.yaml +168 -0
  34. package/src/oas/custom-list.yaml +168 -0
  35. package/src/oas/custom-status.yaml +168 -0
  36. package/src/oas/day.yaml +246 -0
  37. package/src/oas/feedback-options.yaml +802 -0
  38. package/src/oas/fullinvoices.yaml +584 -0
  39. package/src/oas/integration-action-log.yaml +361 -0
  40. package/src/oas/integration-app.yaml +303 -0
  41. package/src/oas/integration-command-log.yaml +381 -0
  42. package/src/oas/inventory-adjustment-reason.yaml +165 -0
  43. package/src/oas/inventory.yaml +64 -0
  44. package/src/oas/mail-unsubscribe.yaml +463 -0
  45. package/src/oas/measureunit-family.yaml +354 -0
  46. package/src/oas/measureunit.yaml +366 -0
  47. package/src/oas/media-storage.yaml +329 -0
  48. package/src/oas/media.yaml +472 -0
  49. package/src/oas/msl-products.yaml +180 -0
  50. package/src/oas/msl.yaml +186 -0
  51. package/src/oas/ocr-invoice-job-group.yaml +528 -0
  52. package/src/oas/ocr-invoice-job-page.yaml +602 -0
  53. package/src/oas/ocr-invoice-job-template.yaml +628 -0
  54. package/src/oas/ocr-invoice-job.yaml +603 -0
  55. package/src/oas/patch-action.yaml +421 -0
  56. package/src/oas/payment-terms.yaml +235 -0
  57. package/src/oas/payments.yaml +536 -0
  58. package/src/oas/pricelist-item.yaml +369 -0
  59. package/src/oas/pricelist.yaml +287 -0
  60. package/src/oas/product-group.yaml +278 -0
  61. package/src/oas/product-modifiers-group.yaml +524 -0
  62. package/src/oas/product.yaml +578 -0
  63. package/src/oas/proforma.yaml +180 -0
  64. package/src/oas/quick-convert-to-pdf.yaml +95 -0
  65. package/src/oas/receiving-material.yaml +336 -0
  66. package/src/oas/refund.yaml +281 -0
  67. package/src/oas/rep-balance-summary.yaml +135 -0
  68. package/src/oas/rep.yaml +1824 -0
  69. package/src/oas/return-asset-part-unit.yaml +573 -0
  70. package/src/oas/return-reason.yaml +286 -0
  71. package/src/oas/route.yaml +337 -0
  72. package/src/oas/safe-invoice-serial-counter.yaml +525 -0
  73. package/src/oas/settings.yaml +123 -0
  74. package/src/oas/settlement.yaml +505 -0
  75. package/src/oas/speciality.yaml +447 -0
  76. package/src/oas/store-asset-part-unit.yaml +658 -0
  77. package/src/oas/storecheck-template.yaml +415 -0
  78. package/src/oas/subcategory.yaml +355 -0
  79. package/src/oas/supplier.yaml +183 -0
  80. package/src/oas/svix-integration.yaml +335 -0
  81. package/src/oas/tag.yaml +272 -0
  82. package/src/oas/tax.yaml +303 -0
  83. package/src/oas/team.yaml +268 -0
  84. package/src/oas/transfer.yaml +347 -0
  85. package/src/oas/update-integration-meta.yaml +387 -0
  86. package/src/oas/variant.yaml +569 -0
  87. package/src/oas/visit.yaml +174 -0
  88. package/src/oas/warehouse.yaml +311 -0
  89. package/src/oas/workorder-category.yaml +751 -0
  90. package/src/oas/workorder-portal-link.yaml +811 -0
  91. package/src/oas/workorder-portal.yaml +650 -0
  92. package/src/oas/workorder-request.yaml +193 -0
  93. package/src/oas/workorder.yaml +204 -0
  94. package/src/types/index.ts +2 -1
@@ -0,0 +1,485 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: Asset Part API
4
+ description: API for managing asset parts
5
+ version: 1.0.0
6
+ contact:
7
+ name: Repzo
8
+ url: https://repzo.com
9
+
10
+ servers:
11
+ - url: https://sv.api.repzo.me
12
+ description: Production server
13
+ - url: https://staging.sv.api.repzo.me
14
+ description: Staging server
15
+
16
+ tags:
17
+ - name: Asset Part
18
+ description: Operations related to asset part management
19
+
20
+ paths:
21
+ /asset-part:
22
+ get:
23
+ tags:
24
+ - Asset Part
25
+ summary: Get all asset parts
26
+ description: Retrieve a list of all asset parts with optional filtering and pagination
27
+ parameters:
28
+ - name: limit
29
+ in: query
30
+ description: Maximum number of records to return
31
+ required: false
32
+ schema:
33
+ type: integer
34
+ minimum: 1
35
+ maximum: 100
36
+ default: 50
37
+ - name: offset
38
+ in: query
39
+ description: Number of records to skip for pagination
40
+ required: false
41
+ schema:
42
+ type: integer
43
+ minimum: 0
44
+ default: 0
45
+ - name: sort
46
+ in: query
47
+ description: Field to sort by
48
+ required: false
49
+ schema:
50
+ type: string
51
+ - name: order
52
+ in: query
53
+ description: Sort order (asc or desc)
54
+ required: false
55
+ schema:
56
+ type: string
57
+ enum: [asc, desc]
58
+ default: desc
59
+ - name: filter
60
+ in: query
61
+ description: Filter conditions in JSON format
62
+ required: false
63
+ schema:
64
+ type: string
65
+ - name: search
66
+ in: query
67
+ description: Search term for text fields
68
+ required: false
69
+ schema:
70
+ type: string
71
+ responses:
72
+ "200":
73
+ description: List of asset parts retrieved successfully
74
+ content:
75
+ application/json:
76
+ schema:
77
+ type: object
78
+ properties:
79
+ success:
80
+ type: boolean
81
+ example: true
82
+ data:
83
+ type: array
84
+ items:
85
+ $ref: "#/components/schemas/AssetPart"
86
+ total:
87
+ type: integer
88
+ description: Total number of records
89
+ "400":
90
+ description: Bad request
91
+ "401":
92
+ description: Unauthorized
93
+ "500":
94
+ description: Internal server error
95
+ post:
96
+ tags:
97
+ - Asset Part
98
+ summary: Create a new asset part
99
+ description: Create a new asset part with the provided data
100
+ requestBody:
101
+ required: true
102
+ content:
103
+ application/json:
104
+ schema:
105
+ $ref: "#/components/schemas/AssetPartInput"
106
+ responses:
107
+ "201":
108
+ description: Asset part created successfully
109
+ content:
110
+ application/json:
111
+ schema:
112
+ type: object
113
+ properties:
114
+ success:
115
+ type: boolean
116
+ example: true
117
+ data:
118
+ $ref: "#/components/schemas/AssetPart"
119
+ "400":
120
+ description: Bad request
121
+ "401":
122
+ description: Unauthorized
123
+ "500":
124
+ description: Internal server error
125
+
126
+ /asset-part/{id}:
127
+ get:
128
+ tags:
129
+ - Asset Part
130
+ summary: Get asset part by ID
131
+ description: Retrieve a specific asset part by its ID
132
+ parameters:
133
+ - name: id
134
+ in: path
135
+ required: true
136
+ description: Asset part ID
137
+ schema:
138
+ type: string
139
+ responses:
140
+ "200":
141
+ description: Asset part retrieved successfully
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/AssetPart"
152
+ "404":
153
+ description: Asset part not found
154
+ "401":
155
+ description: Unauthorized
156
+ "500":
157
+ description: Internal server error
158
+ put:
159
+ tags:
160
+ - Asset Part
161
+ summary: Update asset part
162
+ description: Update an existing asset part with new data
163
+ parameters:
164
+ - name: id
165
+ in: path
166
+ required: true
167
+ description: Asset part ID
168
+ schema:
169
+ type: string
170
+ requestBody:
171
+ required: true
172
+ content:
173
+ application/json:
174
+ schema:
175
+ $ref: "#/components/schemas/AssetPartInput"
176
+ responses:
177
+ "200":
178
+ description: Asset part updated successfully
179
+ content:
180
+ application/json:
181
+ schema:
182
+ type: object
183
+ properties:
184
+ success:
185
+ type: boolean
186
+ example: true
187
+ data:
188
+ $ref: "#/components/schemas/AssetPart"
189
+ "400":
190
+ description: Bad request
191
+ "404":
192
+ description: Asset part not found
193
+ "401":
194
+ description: Unauthorized
195
+ "500":
196
+ description: Internal server error
197
+ delete:
198
+ tags:
199
+ - Asset Part
200
+ summary: Delete asset part
201
+ description: Delete an existing asset part
202
+ parameters:
203
+ - name: id
204
+ in: path
205
+ required: true
206
+ description: Asset part ID
207
+ schema:
208
+ type: string
209
+ responses:
210
+ "200":
211
+ description: Asset part deleted successfully
212
+ content:
213
+ application/json:
214
+ schema:
215
+ type: object
216
+ properties:
217
+ success:
218
+ type: boolean
219
+ example: true
220
+ message:
221
+ type: string
222
+ example: Asset part deleted successfully
223
+ "404":
224
+ description: Asset part not found
225
+ "401":
226
+ description: Unauthorized
227
+ "500":
228
+ description: Internal server error
229
+
230
+ components:
231
+ schemas:
232
+ AssetPart:
233
+ type: object
234
+ properties:
235
+ _id:
236
+ type: string
237
+ description: Unique identifier for the asset part
238
+ example: "60f7b1b3e4b0e8b3f8b3f8b3"
239
+ partNumber:
240
+ type: string
241
+ description: Unique part number
242
+ example: "EP-001-2023"
243
+ name:
244
+ type: string
245
+ description: Name of the asset part
246
+ example: "Engine Valve"
247
+ description:
248
+ type: string
249
+ description: Description of the asset part
250
+ partType:
251
+ type: string
252
+ description: Asset part type ID
253
+ example: "60f7b1b3e4b0e8b3f8b3f8b4"
254
+ manufacturer:
255
+ type: string
256
+ description: Manufacturer name
257
+ example: "ABC Manufacturing"
258
+ model:
259
+ type: string
260
+ description: Part model number
261
+ specifications:
262
+ type: object
263
+ additionalProperties: true
264
+ description: Technical specifications
265
+ example:
266
+ material: "Stainless Steel"
267
+ diameter: "25mm"
268
+ length: "50mm"
269
+ compatibleAssets:
270
+ type: array
271
+ items:
272
+ type: string
273
+ description: List of compatible asset IDs
274
+ supplier:
275
+ type: string
276
+ description: Primary supplier ID
277
+ cost:
278
+ type: number
279
+ format: double
280
+ minimum: 0
281
+ description: Current cost of the part
282
+ currency:
283
+ type: string
284
+ description: Currency code
285
+ example: "USD"
286
+ minStockLevel:
287
+ type: integer
288
+ minimum: 0
289
+ description: Minimum stock level
290
+ maxStockLevel:
291
+ type: integer
292
+ minimum: 0
293
+ description: Maximum stock level
294
+ reorderPoint:
295
+ type: integer
296
+ minimum: 0
297
+ description: Reorder point threshold
298
+ leadTime:
299
+ type: integer
300
+ description: Lead time in days
301
+ example: 7
302
+ warrantyPeriod:
303
+ type: integer
304
+ description: Warranty period in days
305
+ example: 365
306
+ category:
307
+ type: string
308
+ description: Part category
309
+ example: "Engine"
310
+ subcategory:
311
+ type: string
312
+ description: Part subcategory
313
+ example: "Valves"
314
+ isActive:
315
+ type: boolean
316
+ default: true
317
+ description: Whether the part is active
318
+ barcode:
319
+ type: string
320
+ description: Barcode for the part
321
+ qrCode:
322
+ type: string
323
+ description: QR code for the part
324
+ images:
325
+ type: array
326
+ items:
327
+ type: string
328
+ format: uri
329
+ description: Part images URLs
330
+ documents:
331
+ type: array
332
+ items:
333
+ type: object
334
+ properties:
335
+ name:
336
+ type: string
337
+ url:
338
+ type: string
339
+ format: uri
340
+ type:
341
+ type: string
342
+ enum: [manual, specification, certificate, warranty]
343
+ metadata:
344
+ type: object
345
+ additionalProperties: true
346
+ description: Additional metadata
347
+ createdAt:
348
+ type: string
349
+ format: date-time
350
+ description: Record creation timestamp
351
+ example: "2023-01-15T08:00:00Z"
352
+ updatedAt:
353
+ type: string
354
+ format: date-time
355
+ description: Record last update timestamp
356
+ example: "2023-01-15T10:30:00Z"
357
+ required:
358
+ - partNumber
359
+ - name
360
+ - partType
361
+
362
+ AssetPartInput:
363
+ type: object
364
+ properties:
365
+ partNumber:
366
+ type: string
367
+ description: Unique part number
368
+ example: "EP-001-2023"
369
+ name:
370
+ type: string
371
+ description: Name of the asset part
372
+ example: "Engine Valve"
373
+ description:
374
+ type: string
375
+ description: Description of the asset part
376
+ partType:
377
+ type: string
378
+ description: Asset part type ID
379
+ example: "60f7b1b3e4b0e8b3f8b3f8b4"
380
+ manufacturer:
381
+ type: string
382
+ description: Manufacturer name
383
+ example: "ABC Manufacturing"
384
+ model:
385
+ type: string
386
+ description: Part model number
387
+ specifications:
388
+ type: object
389
+ additionalProperties: true
390
+ description: Technical specifications
391
+ example:
392
+ material: "Stainless Steel"
393
+ diameter: "25mm"
394
+ length: "50mm"
395
+ compatibleAssets:
396
+ type: array
397
+ items:
398
+ type: string
399
+ description: List of compatible asset IDs
400
+ supplier:
401
+ type: string
402
+ description: Primary supplier ID
403
+ cost:
404
+ type: number
405
+ format: double
406
+ minimum: 0
407
+ description: Current cost of the part
408
+ currency:
409
+ type: string
410
+ description: Currency code
411
+ example: "USD"
412
+ minStockLevel:
413
+ type: integer
414
+ minimum: 0
415
+ description: Minimum stock level
416
+ maxStockLevel:
417
+ type: integer
418
+ minimum: 0
419
+ description: Maximum stock level
420
+ reorderPoint:
421
+ type: integer
422
+ minimum: 0
423
+ description: Reorder point threshold
424
+ leadTime:
425
+ type: integer
426
+ description: Lead time in days
427
+ example: 7
428
+ warrantyPeriod:
429
+ type: integer
430
+ description: Warranty period in days
431
+ example: 365
432
+ category:
433
+ type: string
434
+ description: Part category
435
+ example: "Engine"
436
+ subcategory:
437
+ type: string
438
+ description: Part subcategory
439
+ example: "Valves"
440
+ isActive:
441
+ type: boolean
442
+ default: true
443
+ description: Whether the part is active
444
+ barcode:
445
+ type: string
446
+ description: Barcode for the part
447
+ qrCode:
448
+ type: string
449
+ description: QR code for the part
450
+ images:
451
+ type: array
452
+ items:
453
+ type: string
454
+ format: uri
455
+ description: Part images URLs
456
+ documents:
457
+ type: array
458
+ items:
459
+ type: object
460
+ properties:
461
+ name:
462
+ type: string
463
+ url:
464
+ type: string
465
+ format: uri
466
+ type:
467
+ type: string
468
+ enum: [manual, specification, certificate, warranty]
469
+ metadata:
470
+ type: object
471
+ additionalProperties: true
472
+ description: Additional metadata
473
+ required:
474
+ - partNumber
475
+ - name
476
+ - partType
477
+
478
+ securitySchemes:
479
+ ApiKeyAuth:
480
+ type: apiKey
481
+ in: header
482
+ name: api-key
483
+
484
+ security:
485
+ - ApiKeyAuth: []
@@ -0,0 +1,180 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Asset Type
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Asset Type endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /asset-type:
10
+ get:
11
+ summary: Find asset types
12
+ operationId: findAssetTypes
13
+ parameters:
14
+ - in: query
15
+ name: params
16
+ schema:
17
+ type: object
18
+ description: Query parameters for filtering asset types
19
+ responses:
20
+ "200":
21
+ description: A list of asset types
22
+ content:
23
+ application/json:
24
+ schema:
25
+ $ref: "#/components/schemas/AssetTypeFindResult"
26
+ post:
27
+ summary: Create an asset type
28
+ operationId: createAssetType
29
+ requestBody:
30
+ required: true
31
+ content:
32
+ application/json:
33
+ schema:
34
+ $ref: "#/components/schemas/AssetTypeCreateBody"
35
+ responses:
36
+ "201":
37
+ description: Asset type created
38
+ content:
39
+ application/json:
40
+ schema:
41
+ $ref: "#/components/schemas/AssetTypeCreateResult"
42
+ /asset-type/{id}:
43
+ get:
44
+ summary: Get an asset type by ID
45
+ operationId: getAssetType
46
+ parameters:
47
+ - in: path
48
+ name: id
49
+ required: true
50
+ schema:
51
+ type: string
52
+ responses:
53
+ "200":
54
+ description: Asset type details
55
+ content:
56
+ application/json:
57
+ schema:
58
+ $ref: "#/components/schemas/AssetTypeGetResult"
59
+ put:
60
+ summary: Update an asset type
61
+ operationId: updateAssetType
62
+ parameters:
63
+ - in: path
64
+ name: id
65
+ required: true
66
+ schema:
67
+ type: string
68
+ requestBody:
69
+ required: true
70
+ content:
71
+ application/json:
72
+ schema:
73
+ $ref: "#/components/schemas/AssetTypeUpdateBody"
74
+ responses:
75
+ "200":
76
+ description: Asset type updated
77
+ content:
78
+ application/json:
79
+ schema:
80
+ $ref: "#/components/schemas/AssetTypeUpdateResult"
81
+ delete:
82
+ summary: Remove an asset type
83
+ operationId: removeAssetType
84
+ parameters:
85
+ - in: path
86
+ name: id
87
+ required: true
88
+ schema:
89
+ type: string
90
+ responses:
91
+ "200":
92
+ description: Asset type removed
93
+ content:
94
+ application/json:
95
+ schema:
96
+ $ref: "#/components/schemas/AssetTypeRemoveResult"
97
+ components:
98
+ schemas:
99
+ AssetTypeFindResult:
100
+ type: object
101
+ properties:
102
+ data:
103
+ type: array
104
+ items:
105
+ $ref: "#/components/schemas/AssetType"
106
+ meta:
107
+ type: object
108
+ AssetTypeCreateBody:
109
+ type: object
110
+ properties:
111
+ name:
112
+ type: string
113
+ description:
114
+ type: string
115
+ category:
116
+ type: string
117
+ fields:
118
+ type: array
119
+ items:
120
+ type: object
121
+ disabled:
122
+ type: boolean
123
+ AssetTypeCreateResult:
124
+ type: object
125
+ properties:
126
+ data:
127
+ $ref: "#/components/schemas/AssetType"
128
+ AssetTypeGetResult:
129
+ type: object
130
+ properties:
131
+ data:
132
+ $ref: "#/components/schemas/AssetType"
133
+ AssetTypeUpdateBody:
134
+ type: object
135
+ properties:
136
+ name:
137
+ type: string
138
+ description:
139
+ type: string
140
+ category:
141
+ type: string
142
+ fields:
143
+ type: array
144
+ items:
145
+ type: object
146
+ disabled:
147
+ type: boolean
148
+ AssetTypeUpdateResult:
149
+ type: object
150
+ properties:
151
+ data:
152
+ $ref: "#/components/schemas/AssetType"
153
+ AssetTypeRemoveResult:
154
+ type: object
155
+ properties:
156
+ success:
157
+ type: boolean
158
+ AssetType:
159
+ type: object
160
+ properties:
161
+ _id:
162
+ type: string
163
+ name:
164
+ type: string
165
+ description:
166
+ type: string
167
+ category:
168
+ type: string
169
+ fields:
170
+ type: array
171
+ items:
172
+ type: object
173
+ disabled:
174
+ type: boolean
175
+ createdAt:
176
+ type: string
177
+ format: date-time
178
+ updatedAt:
179
+ type: string
180
+ format: date-time