repzo 1.0.154 → 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.
- package/changelog.md +1 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +38 -0
- package/lib/types/index.d.ts +462 -198
- package/lib/types/index.js +2 -1
- 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 +1175 -223
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Asset Part Type API
|
|
4
|
+
description: API for managing asset part types
|
|
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 Type
|
|
18
|
+
description: Operations related to asset part type management
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/asset-part-type:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- Asset Part Type
|
|
25
|
+
summary: Get all asset part types
|
|
26
|
+
description: Retrieve a list of all asset part types 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 part types 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/AssetPartType"
|
|
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 Type
|
|
98
|
+
summary: Create a new asset part type
|
|
99
|
+
description: Create a new asset part type with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/AssetPartTypeInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: Asset part type 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/AssetPartType"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/asset-part-type/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- Asset Part Type
|
|
130
|
+
summary: Get asset part type by ID
|
|
131
|
+
description: Retrieve a specific asset part type by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: Asset part type ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: Asset part type 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/AssetPartType"
|
|
152
|
+
"404":
|
|
153
|
+
description: Asset part type not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- Asset Part Type
|
|
161
|
+
summary: Update asset part type
|
|
162
|
+
description: Update an existing asset part type with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: Asset part type ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/AssetPartTypeInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: Asset part type 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/AssetPartType"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: Asset part type not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- Asset Part Type
|
|
200
|
+
summary: Delete asset part type
|
|
201
|
+
description: Delete an existing asset part type
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: Asset part type ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: Asset part type 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 type deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: Asset part type not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
components:
|
|
231
|
+
schemas:
|
|
232
|
+
AssetPartType:
|
|
233
|
+
type: object
|
|
234
|
+
properties:
|
|
235
|
+
_id:
|
|
236
|
+
type: string
|
|
237
|
+
description: Unique identifier for the asset part type
|
|
238
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
239
|
+
name:
|
|
240
|
+
type: string
|
|
241
|
+
description: Name of the asset part type
|
|
242
|
+
example: "Engine Parts"
|
|
243
|
+
description:
|
|
244
|
+
type: string
|
|
245
|
+
description: Description of the asset part type
|
|
246
|
+
category:
|
|
247
|
+
type: string
|
|
248
|
+
description: Category of the asset part type
|
|
249
|
+
example: "Mechanical"
|
|
250
|
+
subcategory:
|
|
251
|
+
type: string
|
|
252
|
+
description: Subcategory of the asset part type
|
|
253
|
+
specifications:
|
|
254
|
+
type: object
|
|
255
|
+
additionalProperties: true
|
|
256
|
+
description: Technical specifications
|
|
257
|
+
example:
|
|
258
|
+
material: "Steel"
|
|
259
|
+
dimensions: "10x5x2 cm"
|
|
260
|
+
weight: "0.5 kg"
|
|
261
|
+
compatibleAssetTypes:
|
|
262
|
+
type: array
|
|
263
|
+
items:
|
|
264
|
+
type: string
|
|
265
|
+
description: List of compatible asset type IDs
|
|
266
|
+
maintenanceSchedule:
|
|
267
|
+
type: object
|
|
268
|
+
properties:
|
|
269
|
+
frequency:
|
|
270
|
+
type: string
|
|
271
|
+
enum: [daily, weekly, monthly, quarterly, annually]
|
|
272
|
+
intervalDays:
|
|
273
|
+
type: integer
|
|
274
|
+
minimum: 1
|
|
275
|
+
description:
|
|
276
|
+
type: string
|
|
277
|
+
warrantPeriod:
|
|
278
|
+
type: integer
|
|
279
|
+
description: Warranty period in days
|
|
280
|
+
example: 365
|
|
281
|
+
supplier:
|
|
282
|
+
type: string
|
|
283
|
+
description: Default supplier ID
|
|
284
|
+
standardCost:
|
|
285
|
+
type: number
|
|
286
|
+
format: double
|
|
287
|
+
minimum: 0
|
|
288
|
+
description: Standard cost of the part
|
|
289
|
+
isActive:
|
|
290
|
+
type: boolean
|
|
291
|
+
default: true
|
|
292
|
+
description: Whether the part type is active
|
|
293
|
+
metadata:
|
|
294
|
+
type: object
|
|
295
|
+
additionalProperties: true
|
|
296
|
+
description: Additional metadata
|
|
297
|
+
createdAt:
|
|
298
|
+
type: string
|
|
299
|
+
format: date-time
|
|
300
|
+
description: Record creation timestamp
|
|
301
|
+
example: "2023-01-15T08:00:00Z"
|
|
302
|
+
updatedAt:
|
|
303
|
+
type: string
|
|
304
|
+
format: date-time
|
|
305
|
+
description: Record last update timestamp
|
|
306
|
+
example: "2023-01-15T10:30:00Z"
|
|
307
|
+
required:
|
|
308
|
+
- name
|
|
309
|
+
- category
|
|
310
|
+
|
|
311
|
+
AssetPartTypeInput:
|
|
312
|
+
type: object
|
|
313
|
+
properties:
|
|
314
|
+
name:
|
|
315
|
+
type: string
|
|
316
|
+
description: Name of the asset part type
|
|
317
|
+
example: "Engine Parts"
|
|
318
|
+
description:
|
|
319
|
+
type: string
|
|
320
|
+
description: Description of the asset part type
|
|
321
|
+
category:
|
|
322
|
+
type: string
|
|
323
|
+
description: Category of the asset part type
|
|
324
|
+
example: "Mechanical"
|
|
325
|
+
subcategory:
|
|
326
|
+
type: string
|
|
327
|
+
description: Subcategory of the asset part type
|
|
328
|
+
specifications:
|
|
329
|
+
type: object
|
|
330
|
+
additionalProperties: true
|
|
331
|
+
description: Technical specifications
|
|
332
|
+
example:
|
|
333
|
+
material: "Steel"
|
|
334
|
+
dimensions: "10x5x2 cm"
|
|
335
|
+
weight: "0.5 kg"
|
|
336
|
+
compatibleAssetTypes:
|
|
337
|
+
type: array
|
|
338
|
+
items:
|
|
339
|
+
type: string
|
|
340
|
+
description: List of compatible asset type IDs
|
|
341
|
+
maintenanceSchedule:
|
|
342
|
+
type: object
|
|
343
|
+
properties:
|
|
344
|
+
frequency:
|
|
345
|
+
type: string
|
|
346
|
+
enum: [daily, weekly, monthly, quarterly, annually]
|
|
347
|
+
intervalDays:
|
|
348
|
+
type: integer
|
|
349
|
+
minimum: 1
|
|
350
|
+
description:
|
|
351
|
+
type: string
|
|
352
|
+
warrantPeriod:
|
|
353
|
+
type: integer
|
|
354
|
+
description: Warranty period in days
|
|
355
|
+
example: 365
|
|
356
|
+
supplier:
|
|
357
|
+
type: string
|
|
358
|
+
description: Default supplier ID
|
|
359
|
+
standardCost:
|
|
360
|
+
type: number
|
|
361
|
+
format: double
|
|
362
|
+
minimum: 0
|
|
363
|
+
description: Standard cost of the part
|
|
364
|
+
isActive:
|
|
365
|
+
type: boolean
|
|
366
|
+
default: true
|
|
367
|
+
description: Whether the part type is active
|
|
368
|
+
metadata:
|
|
369
|
+
type: object
|
|
370
|
+
additionalProperties: true
|
|
371
|
+
description: Additional metadata
|
|
372
|
+
required:
|
|
373
|
+
- name
|
|
374
|
+
- category
|
|
375
|
+
|
|
376
|
+
securitySchemes:
|
|
377
|
+
ApiKeyAuth:
|
|
378
|
+
type: apiKey
|
|
379
|
+
in: header
|
|
380
|
+
name: api-key
|
|
381
|
+
|
|
382
|
+
security:
|
|
383
|
+
- ApiKeyAuth: []
|