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,525 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Safe Invoice Serial Counter API
|
|
4
|
+
description: API for managing safe invoice serial counters
|
|
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: Safe Invoice Serial Counter
|
|
13
|
+
description: Safe invoice serial counter management operations
|
|
14
|
+
paths:
|
|
15
|
+
/safe-invoice-serial-counter:
|
|
16
|
+
get:
|
|
17
|
+
tags:
|
|
18
|
+
- Safe Invoice Serial Counter
|
|
19
|
+
summary: Get all safe invoice serial counters
|
|
20
|
+
description: Retrieve a list of all safe invoice serial counters 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: rep
|
|
54
|
+
in: query
|
|
55
|
+
description: Filter by representative ID
|
|
56
|
+
required: false
|
|
57
|
+
schema:
|
|
58
|
+
type: string
|
|
59
|
+
- name: warehouse
|
|
60
|
+
in: query
|
|
61
|
+
description: Filter by warehouse ID
|
|
62
|
+
required: false
|
|
63
|
+
schema:
|
|
64
|
+
type: string
|
|
65
|
+
- name: _id
|
|
66
|
+
in: query
|
|
67
|
+
description: Filter by ID
|
|
68
|
+
required: false
|
|
69
|
+
schema:
|
|
70
|
+
type: array
|
|
71
|
+
items:
|
|
72
|
+
type: string
|
|
73
|
+
responses:
|
|
74
|
+
"200":
|
|
75
|
+
description: Successful response
|
|
76
|
+
content:
|
|
77
|
+
application/json:
|
|
78
|
+
schema:
|
|
79
|
+
type: object
|
|
80
|
+
properties:
|
|
81
|
+
success:
|
|
82
|
+
type: boolean
|
|
83
|
+
example: true
|
|
84
|
+
data:
|
|
85
|
+
type: array
|
|
86
|
+
items:
|
|
87
|
+
$ref: "#/components/schemas/SafeInvoiceSerialCounter"
|
|
88
|
+
paging:
|
|
89
|
+
$ref: "#/components/schemas/PagingInfo"
|
|
90
|
+
"400":
|
|
91
|
+
$ref: "#/components/responses/BadRequest"
|
|
92
|
+
"401":
|
|
93
|
+
$ref: "#/components/responses/Unauthorized"
|
|
94
|
+
"403":
|
|
95
|
+
$ref: "#/components/responses/Forbidden"
|
|
96
|
+
"500":
|
|
97
|
+
$ref: "#/components/responses/InternalServerError"
|
|
98
|
+
post:
|
|
99
|
+
tags:
|
|
100
|
+
- Safe Invoice Serial Counter
|
|
101
|
+
summary: Create a new safe invoice serial counter
|
|
102
|
+
description: Create a new safe invoice serial counter entry
|
|
103
|
+
requestBody:
|
|
104
|
+
required: true
|
|
105
|
+
content:
|
|
106
|
+
application/json:
|
|
107
|
+
schema:
|
|
108
|
+
$ref: "#/components/schemas/CreateSafeInvoiceSerialCounterRequest"
|
|
109
|
+
responses:
|
|
110
|
+
"201":
|
|
111
|
+
description: Safe invoice serial counter created successfully
|
|
112
|
+
content:
|
|
113
|
+
application/json:
|
|
114
|
+
schema:
|
|
115
|
+
type: object
|
|
116
|
+
properties:
|
|
117
|
+
success:
|
|
118
|
+
type: boolean
|
|
119
|
+
example: true
|
|
120
|
+
data:
|
|
121
|
+
$ref: "#/components/schemas/SafeInvoiceSerialCounter"
|
|
122
|
+
"400":
|
|
123
|
+
$ref: "#/components/responses/BadRequest"
|
|
124
|
+
"401":
|
|
125
|
+
$ref: "#/components/responses/Unauthorized"
|
|
126
|
+
"403":
|
|
127
|
+
$ref: "#/components/responses/Forbidden"
|
|
128
|
+
"422":
|
|
129
|
+
$ref: "#/components/responses/ValidationError"
|
|
130
|
+
"500":
|
|
131
|
+
$ref: "#/components/responses/InternalServerError"
|
|
132
|
+
/safe-invoice-serial-counter/{id}:
|
|
133
|
+
get:
|
|
134
|
+
tags:
|
|
135
|
+
- Safe Invoice Serial Counter
|
|
136
|
+
summary: Get safe invoice serial counter by ID
|
|
137
|
+
description: Retrieve a specific safe invoice serial counter by its ID
|
|
138
|
+
parameters:
|
|
139
|
+
- name: id
|
|
140
|
+
in: path
|
|
141
|
+
required: true
|
|
142
|
+
description: Safe invoice serial counter ID
|
|
143
|
+
schema:
|
|
144
|
+
type: string
|
|
145
|
+
responses:
|
|
146
|
+
"200":
|
|
147
|
+
description: Successful response
|
|
148
|
+
content:
|
|
149
|
+
application/json:
|
|
150
|
+
schema:
|
|
151
|
+
type: object
|
|
152
|
+
properties:
|
|
153
|
+
success:
|
|
154
|
+
type: boolean
|
|
155
|
+
example: true
|
|
156
|
+
data:
|
|
157
|
+
$ref: "#/components/schemas/SafeInvoiceSerialCounter"
|
|
158
|
+
"400":
|
|
159
|
+
$ref: "#/components/responses/BadRequest"
|
|
160
|
+
"401":
|
|
161
|
+
$ref: "#/components/responses/Unauthorized"
|
|
162
|
+
"403":
|
|
163
|
+
$ref: "#/components/responses/Forbidden"
|
|
164
|
+
"404":
|
|
165
|
+
$ref: "#/components/responses/NotFound"
|
|
166
|
+
"500":
|
|
167
|
+
$ref: "#/components/responses/InternalServerError"
|
|
168
|
+
patch:
|
|
169
|
+
tags:
|
|
170
|
+
- Safe Invoice Serial Counter
|
|
171
|
+
summary: Update safe invoice serial counter
|
|
172
|
+
description: Update an existing safe invoice serial counter
|
|
173
|
+
parameters:
|
|
174
|
+
- name: id
|
|
175
|
+
in: path
|
|
176
|
+
required: true
|
|
177
|
+
description: Safe invoice serial counter ID
|
|
178
|
+
schema:
|
|
179
|
+
type: string
|
|
180
|
+
requestBody:
|
|
181
|
+
required: true
|
|
182
|
+
content:
|
|
183
|
+
application/json:
|
|
184
|
+
schema:
|
|
185
|
+
$ref: "#/components/schemas/UpdateSafeInvoiceSerialCounterRequest"
|
|
186
|
+
responses:
|
|
187
|
+
"200":
|
|
188
|
+
description: Safe invoice serial counter updated successfully
|
|
189
|
+
content:
|
|
190
|
+
application/json:
|
|
191
|
+
schema:
|
|
192
|
+
type: object
|
|
193
|
+
properties:
|
|
194
|
+
success:
|
|
195
|
+
type: boolean
|
|
196
|
+
example: true
|
|
197
|
+
data:
|
|
198
|
+
$ref: "#/components/schemas/SafeInvoiceSerialCounter"
|
|
199
|
+
"400":
|
|
200
|
+
$ref: "#/components/responses/BadRequest"
|
|
201
|
+
"401":
|
|
202
|
+
$ref: "#/components/responses/Unauthorized"
|
|
203
|
+
"403":
|
|
204
|
+
$ref: "#/components/responses/Forbidden"
|
|
205
|
+
"404":
|
|
206
|
+
$ref: "#/components/responses/NotFound"
|
|
207
|
+
"422":
|
|
208
|
+
$ref: "#/components/responses/ValidationError"
|
|
209
|
+
"500":
|
|
210
|
+
$ref: "#/components/responses/InternalServerError"
|
|
211
|
+
delete:
|
|
212
|
+
tags:
|
|
213
|
+
- Safe Invoice Serial Counter
|
|
214
|
+
summary: Delete safe invoice serial counter
|
|
215
|
+
description: Delete a safe invoice serial counter by ID
|
|
216
|
+
parameters:
|
|
217
|
+
- name: id
|
|
218
|
+
in: path
|
|
219
|
+
required: true
|
|
220
|
+
description: Safe invoice serial counter ID
|
|
221
|
+
schema:
|
|
222
|
+
type: string
|
|
223
|
+
responses:
|
|
224
|
+
"200":
|
|
225
|
+
description: Safe invoice serial counter deleted successfully
|
|
226
|
+
content:
|
|
227
|
+
application/json:
|
|
228
|
+
schema:
|
|
229
|
+
type: object
|
|
230
|
+
properties:
|
|
231
|
+
success:
|
|
232
|
+
type: boolean
|
|
233
|
+
example: true
|
|
234
|
+
"400":
|
|
235
|
+
$ref: "#/components/responses/BadRequest"
|
|
236
|
+
"401":
|
|
237
|
+
$ref: "#/components/responses/Unauthorized"
|
|
238
|
+
"403":
|
|
239
|
+
$ref: "#/components/responses/Forbidden"
|
|
240
|
+
"404":
|
|
241
|
+
$ref: "#/components/responses/NotFound"
|
|
242
|
+
"500":
|
|
243
|
+
$ref: "#/components/responses/InternalServerError"
|
|
244
|
+
/safe-invoice-serial-counter/next:
|
|
245
|
+
post:
|
|
246
|
+
tags:
|
|
247
|
+
- Safe Invoice Serial Counter
|
|
248
|
+
summary: Get next serial number
|
|
249
|
+
description: Get the next available serial number for invoice generation
|
|
250
|
+
requestBody:
|
|
251
|
+
required: true
|
|
252
|
+
content:
|
|
253
|
+
application/json:
|
|
254
|
+
schema:
|
|
255
|
+
type: object
|
|
256
|
+
properties:
|
|
257
|
+
rep:
|
|
258
|
+
type: string
|
|
259
|
+
description: Representative ID
|
|
260
|
+
warehouse:
|
|
261
|
+
type: string
|
|
262
|
+
description: Warehouse ID
|
|
263
|
+
invoice_type:
|
|
264
|
+
type: string
|
|
265
|
+
description: Type of invoice
|
|
266
|
+
enum: ["sales", "return", "proforma"]
|
|
267
|
+
required:
|
|
268
|
+
- rep
|
|
269
|
+
- warehouse
|
|
270
|
+
- invoice_type
|
|
271
|
+
responses:
|
|
272
|
+
"200":
|
|
273
|
+
description: Next serial number retrieved successfully
|
|
274
|
+
content:
|
|
275
|
+
application/json:
|
|
276
|
+
schema:
|
|
277
|
+
type: object
|
|
278
|
+
properties:
|
|
279
|
+
success:
|
|
280
|
+
type: boolean
|
|
281
|
+
example: true
|
|
282
|
+
data:
|
|
283
|
+
type: object
|
|
284
|
+
properties:
|
|
285
|
+
next_serial:
|
|
286
|
+
type: integer
|
|
287
|
+
description: Next available serial number
|
|
288
|
+
example: 1001
|
|
289
|
+
formatted_serial:
|
|
290
|
+
type: string
|
|
291
|
+
description: Formatted serial number
|
|
292
|
+
example: "INV-2024-001001"
|
|
293
|
+
"400":
|
|
294
|
+
$ref: "#/components/responses/BadRequest"
|
|
295
|
+
"401":
|
|
296
|
+
$ref: "#/components/responses/Unauthorized"
|
|
297
|
+
"403":
|
|
298
|
+
$ref: "#/components/responses/Forbidden"
|
|
299
|
+
"500":
|
|
300
|
+
$ref: "#/components/responses/InternalServerError"
|
|
301
|
+
components:
|
|
302
|
+
securitySchemes:
|
|
303
|
+
ApiKeyAuth:
|
|
304
|
+
type: apiKey
|
|
305
|
+
in: header
|
|
306
|
+
name: Authorization
|
|
307
|
+
description: "Use format: Bearer {api_key}"
|
|
308
|
+
schemas:
|
|
309
|
+
SafeInvoiceSerialCounter:
|
|
310
|
+
type: object
|
|
311
|
+
properties:
|
|
312
|
+
_id:
|
|
313
|
+
type: string
|
|
314
|
+
description: Unique identifier
|
|
315
|
+
example: "507f1f77bcf86cd799439011"
|
|
316
|
+
rep:
|
|
317
|
+
type: string
|
|
318
|
+
description: Representative ID
|
|
319
|
+
example: "507f1f77bcf86cd799439012"
|
|
320
|
+
warehouse:
|
|
321
|
+
type: string
|
|
322
|
+
description: Warehouse ID
|
|
323
|
+
example: "507f1f77bcf86cd799439013"
|
|
324
|
+
invoice_type:
|
|
325
|
+
type: string
|
|
326
|
+
description: Type of invoice
|
|
327
|
+
enum: ["sales", "return", "proforma"]
|
|
328
|
+
example: "sales"
|
|
329
|
+
current_serial:
|
|
330
|
+
type: integer
|
|
331
|
+
description: Current serial number
|
|
332
|
+
example: 1000
|
|
333
|
+
last_used_date:
|
|
334
|
+
type: string
|
|
335
|
+
format: date-time
|
|
336
|
+
description: Date when serial was last used
|
|
337
|
+
prefix:
|
|
338
|
+
type: string
|
|
339
|
+
description: Serial number prefix
|
|
340
|
+
example: "INV-2024-"
|
|
341
|
+
suffix:
|
|
342
|
+
type: string
|
|
343
|
+
description: Serial number suffix
|
|
344
|
+
pad_length:
|
|
345
|
+
type: integer
|
|
346
|
+
description: Length to pad the serial number
|
|
347
|
+
example: 6
|
|
348
|
+
company_namespace:
|
|
349
|
+
type: array
|
|
350
|
+
items:
|
|
351
|
+
type: string
|
|
352
|
+
description: Company namespace
|
|
353
|
+
createdAt:
|
|
354
|
+
type: string
|
|
355
|
+
format: date-time
|
|
356
|
+
description: Creation timestamp
|
|
357
|
+
modifiedAt:
|
|
358
|
+
type: string
|
|
359
|
+
format: date-time
|
|
360
|
+
description: Last modification timestamp
|
|
361
|
+
SVClient:
|
|
362
|
+
type: integer
|
|
363
|
+
description: Client version
|
|
364
|
+
__v:
|
|
365
|
+
type: integer
|
|
366
|
+
description: Document version
|
|
367
|
+
required:
|
|
368
|
+
- rep
|
|
369
|
+
- warehouse
|
|
370
|
+
- invoice_type
|
|
371
|
+
- current_serial
|
|
372
|
+
CreateSafeInvoiceSerialCounterRequest:
|
|
373
|
+
type: object
|
|
374
|
+
properties:
|
|
375
|
+
rep:
|
|
376
|
+
type: string
|
|
377
|
+
description: Representative ID
|
|
378
|
+
example: "507f1f77bcf86cd799439012"
|
|
379
|
+
warehouse:
|
|
380
|
+
type: string
|
|
381
|
+
description: Warehouse ID
|
|
382
|
+
example: "507f1f77bcf86cd799439013"
|
|
383
|
+
invoice_type:
|
|
384
|
+
type: string
|
|
385
|
+
description: Type of invoice
|
|
386
|
+
enum: ["sales", "return", "proforma"]
|
|
387
|
+
example: "sales"
|
|
388
|
+
current_serial:
|
|
389
|
+
type: integer
|
|
390
|
+
description: Starting serial number
|
|
391
|
+
default: 0
|
|
392
|
+
prefix:
|
|
393
|
+
type: string
|
|
394
|
+
description: Serial number prefix
|
|
395
|
+
example: "INV-2024-"
|
|
396
|
+
suffix:
|
|
397
|
+
type: string
|
|
398
|
+
description: Serial number suffix
|
|
399
|
+
pad_length:
|
|
400
|
+
type: integer
|
|
401
|
+
description: Length to pad the serial number
|
|
402
|
+
default: 6
|
|
403
|
+
company_namespace:
|
|
404
|
+
type: array
|
|
405
|
+
items:
|
|
406
|
+
type: string
|
|
407
|
+
description: Company namespace
|
|
408
|
+
required:
|
|
409
|
+
- rep
|
|
410
|
+
- warehouse
|
|
411
|
+
- invoice_type
|
|
412
|
+
UpdateSafeInvoiceSerialCounterRequest:
|
|
413
|
+
type: object
|
|
414
|
+
properties:
|
|
415
|
+
current_serial:
|
|
416
|
+
type: integer
|
|
417
|
+
description: Current serial number
|
|
418
|
+
prefix:
|
|
419
|
+
type: string
|
|
420
|
+
description: Serial number prefix
|
|
421
|
+
suffix:
|
|
422
|
+
type: string
|
|
423
|
+
description: Serial number suffix
|
|
424
|
+
pad_length:
|
|
425
|
+
type: integer
|
|
426
|
+
description: Length to pad the serial number
|
|
427
|
+
company_namespace:
|
|
428
|
+
type: array
|
|
429
|
+
items:
|
|
430
|
+
type: string
|
|
431
|
+
description: Company namespace
|
|
432
|
+
PagingInfo:
|
|
433
|
+
type: object
|
|
434
|
+
properties:
|
|
435
|
+
total:
|
|
436
|
+
type: integer
|
|
437
|
+
description: Total number of items
|
|
438
|
+
page:
|
|
439
|
+
type: integer
|
|
440
|
+
description: Current page number
|
|
441
|
+
per_page:
|
|
442
|
+
type: integer
|
|
443
|
+
description: Items per page
|
|
444
|
+
pages:
|
|
445
|
+
type: integer
|
|
446
|
+
description: Total number of pages
|
|
447
|
+
responses:
|
|
448
|
+
BadRequest:
|
|
449
|
+
description: Bad request
|
|
450
|
+
content:
|
|
451
|
+
application/json:
|
|
452
|
+
schema:
|
|
453
|
+
type: object
|
|
454
|
+
properties:
|
|
455
|
+
success:
|
|
456
|
+
type: boolean
|
|
457
|
+
example: false
|
|
458
|
+
error:
|
|
459
|
+
type: string
|
|
460
|
+
example: "Invalid request parameters"
|
|
461
|
+
Unauthorized:
|
|
462
|
+
description: Unauthorized
|
|
463
|
+
content:
|
|
464
|
+
application/json:
|
|
465
|
+
schema:
|
|
466
|
+
type: object
|
|
467
|
+
properties:
|
|
468
|
+
success:
|
|
469
|
+
type: boolean
|
|
470
|
+
example: false
|
|
471
|
+
error:
|
|
472
|
+
type: string
|
|
473
|
+
example: "Authentication required"
|
|
474
|
+
Forbidden:
|
|
475
|
+
description: Forbidden
|
|
476
|
+
content:
|
|
477
|
+
application/json:
|
|
478
|
+
schema:
|
|
479
|
+
type: object
|
|
480
|
+
properties:
|
|
481
|
+
success:
|
|
482
|
+
type: boolean
|
|
483
|
+
example: false
|
|
484
|
+
error:
|
|
485
|
+
type: string
|
|
486
|
+
example: "Insufficient permissions"
|
|
487
|
+
NotFound:
|
|
488
|
+
description: Resource not found
|
|
489
|
+
content:
|
|
490
|
+
application/json:
|
|
491
|
+
schema:
|
|
492
|
+
type: object
|
|
493
|
+
properties:
|
|
494
|
+
success:
|
|
495
|
+
type: boolean
|
|
496
|
+
example: false
|
|
497
|
+
error:
|
|
498
|
+
type: string
|
|
499
|
+
example: "Resource not found"
|
|
500
|
+
ValidationError:
|
|
501
|
+
description: Validation error
|
|
502
|
+
content:
|
|
503
|
+
application/json:
|
|
504
|
+
schema:
|
|
505
|
+
type: object
|
|
506
|
+
properties:
|
|
507
|
+
success:
|
|
508
|
+
type: boolean
|
|
509
|
+
example: false
|
|
510
|
+
error:
|
|
511
|
+
type: string
|
|
512
|
+
example: "Validation failed"
|
|
513
|
+
InternalServerError:
|
|
514
|
+
description: Internal server error
|
|
515
|
+
content:
|
|
516
|
+
application/json:
|
|
517
|
+
schema:
|
|
518
|
+
type: object
|
|
519
|
+
properties:
|
|
520
|
+
success:
|
|
521
|
+
type: boolean
|
|
522
|
+
example: false
|
|
523
|
+
error:
|
|
524
|
+
type: string
|
|
525
|
+
example: "Internal server error"
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Settings
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Settings endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/settings:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find settings
|
|
12
|
+
operationId: findSettings
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
description: Query parameters for filtering settings
|
|
19
|
+
responses:
|
|
20
|
+
"200":
|
|
21
|
+
description: A list of settings
|
|
22
|
+
content:
|
|
23
|
+
application/json:
|
|
24
|
+
schema:
|
|
25
|
+
$ref: "#/components/schemas/SettingsFindResult"
|
|
26
|
+
/settings/{id}:
|
|
27
|
+
get:
|
|
28
|
+
summary: Get settings by ID
|
|
29
|
+
operationId: getSettings
|
|
30
|
+
parameters:
|
|
31
|
+
- in: path
|
|
32
|
+
name: id
|
|
33
|
+
required: true
|
|
34
|
+
schema:
|
|
35
|
+
type: string
|
|
36
|
+
responses:
|
|
37
|
+
"200":
|
|
38
|
+
description: Settings details
|
|
39
|
+
content:
|
|
40
|
+
application/json:
|
|
41
|
+
schema:
|
|
42
|
+
$ref: "#/components/schemas/SettingsGetResult"
|
|
43
|
+
put:
|
|
44
|
+
summary: Update settings
|
|
45
|
+
operationId: updateSettings
|
|
46
|
+
parameters:
|
|
47
|
+
- in: path
|
|
48
|
+
name: id
|
|
49
|
+
required: true
|
|
50
|
+
schema:
|
|
51
|
+
type: string
|
|
52
|
+
requestBody:
|
|
53
|
+
required: true
|
|
54
|
+
content:
|
|
55
|
+
application/json:
|
|
56
|
+
schema:
|
|
57
|
+
$ref: "#/components/schemas/SettingsUpdateBody"
|
|
58
|
+
responses:
|
|
59
|
+
"200":
|
|
60
|
+
description: Settings updated
|
|
61
|
+
content:
|
|
62
|
+
application/json:
|
|
63
|
+
schema:
|
|
64
|
+
$ref: "#/components/schemas/SettingsUpdateResult"
|
|
65
|
+
components:
|
|
66
|
+
schemas:
|
|
67
|
+
SettingsFindResult:
|
|
68
|
+
type: object
|
|
69
|
+
properties:
|
|
70
|
+
data:
|
|
71
|
+
type: array
|
|
72
|
+
items:
|
|
73
|
+
$ref: "#/components/schemas/Settings"
|
|
74
|
+
meta:
|
|
75
|
+
type: object
|
|
76
|
+
SettingsGetResult:
|
|
77
|
+
type: object
|
|
78
|
+
properties:
|
|
79
|
+
data:
|
|
80
|
+
$ref: "#/components/schemas/Settings"
|
|
81
|
+
SettingsUpdateBody:
|
|
82
|
+
type: object
|
|
83
|
+
properties:
|
|
84
|
+
key:
|
|
85
|
+
type: string
|
|
86
|
+
value:
|
|
87
|
+
oneOf:
|
|
88
|
+
- type: string
|
|
89
|
+
- type: number
|
|
90
|
+
- type: boolean
|
|
91
|
+
- type: object
|
|
92
|
+
category:
|
|
93
|
+
type: string
|
|
94
|
+
description:
|
|
95
|
+
type: string
|
|
96
|
+
SettingsUpdateResult:
|
|
97
|
+
type: object
|
|
98
|
+
properties:
|
|
99
|
+
data:
|
|
100
|
+
$ref: "#/components/schemas/Settings"
|
|
101
|
+
Settings:
|
|
102
|
+
type: object
|
|
103
|
+
properties:
|
|
104
|
+
_id:
|
|
105
|
+
type: string
|
|
106
|
+
key:
|
|
107
|
+
type: string
|
|
108
|
+
value:
|
|
109
|
+
oneOf:
|
|
110
|
+
- type: string
|
|
111
|
+
- type: number
|
|
112
|
+
- type: boolean
|
|
113
|
+
- type: object
|
|
114
|
+
category:
|
|
115
|
+
type: string
|
|
116
|
+
description:
|
|
117
|
+
type: string
|
|
118
|
+
createdAt:
|
|
119
|
+
type: string
|
|
120
|
+
format: date-time
|
|
121
|
+
updatedAt:
|
|
122
|
+
type: string
|
|
123
|
+
format: date-time
|