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,286 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Return Reason
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Return Reason endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/return-reason:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find return reasons
|
|
12
|
+
operationId: findReturnReasons
|
|
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
|
+
name:
|
|
28
|
+
oneOf:
|
|
29
|
+
- type: array
|
|
30
|
+
items:
|
|
31
|
+
type: string
|
|
32
|
+
- type: string
|
|
33
|
+
local_name:
|
|
34
|
+
oneOf:
|
|
35
|
+
- type: array
|
|
36
|
+
items:
|
|
37
|
+
type: string
|
|
38
|
+
- type: string
|
|
39
|
+
disabled:
|
|
40
|
+
type: boolean
|
|
41
|
+
from_updatedAt:
|
|
42
|
+
type: number
|
|
43
|
+
from__id:
|
|
44
|
+
type: string
|
|
45
|
+
to__id:
|
|
46
|
+
type: string
|
|
47
|
+
sortBy:
|
|
48
|
+
type: array
|
|
49
|
+
items:
|
|
50
|
+
type: object
|
|
51
|
+
properties:
|
|
52
|
+
field:
|
|
53
|
+
type: string
|
|
54
|
+
enum: [_id]
|
|
55
|
+
type:
|
|
56
|
+
type: string
|
|
57
|
+
enum: [asc, desc]
|
|
58
|
+
description: Query parameters for filtering return reasons
|
|
59
|
+
responses:
|
|
60
|
+
"200":
|
|
61
|
+
description: A list of return reasons
|
|
62
|
+
content:
|
|
63
|
+
application/json:
|
|
64
|
+
schema:
|
|
65
|
+
$ref: "#/components/schemas/ReturnReasonFindResult"
|
|
66
|
+
post:
|
|
67
|
+
summary: Create a return reason
|
|
68
|
+
operationId: createReturnReason
|
|
69
|
+
requestBody:
|
|
70
|
+
required: true
|
|
71
|
+
content:
|
|
72
|
+
application/json:
|
|
73
|
+
schema:
|
|
74
|
+
$ref: "#/components/schemas/ReturnReasonCreateBody"
|
|
75
|
+
responses:
|
|
76
|
+
"201":
|
|
77
|
+
description: Return reason created
|
|
78
|
+
content:
|
|
79
|
+
application/json:
|
|
80
|
+
schema:
|
|
81
|
+
$ref: "#/components/schemas/ReturnReasonCreateResult"
|
|
82
|
+
/return-reason/{id}:
|
|
83
|
+
get:
|
|
84
|
+
summary: Get a return reason by ID
|
|
85
|
+
operationId: getReturnReason
|
|
86
|
+
parameters:
|
|
87
|
+
- in: path
|
|
88
|
+
name: id
|
|
89
|
+
required: true
|
|
90
|
+
schema:
|
|
91
|
+
type: string
|
|
92
|
+
responses:
|
|
93
|
+
"200":
|
|
94
|
+
description: Return reason details
|
|
95
|
+
content:
|
|
96
|
+
application/json:
|
|
97
|
+
schema:
|
|
98
|
+
$ref: "#/components/schemas/ReturnReasonGetResult"
|
|
99
|
+
put:
|
|
100
|
+
summary: Update a return reason
|
|
101
|
+
operationId: updateReturnReason
|
|
102
|
+
parameters:
|
|
103
|
+
- in: path
|
|
104
|
+
name: id
|
|
105
|
+
required: true
|
|
106
|
+
schema:
|
|
107
|
+
type: string
|
|
108
|
+
requestBody:
|
|
109
|
+
required: true
|
|
110
|
+
content:
|
|
111
|
+
application/json:
|
|
112
|
+
schema:
|
|
113
|
+
$ref: "#/components/schemas/ReturnReasonUpdateBody"
|
|
114
|
+
responses:
|
|
115
|
+
"200":
|
|
116
|
+
description: Return reason updated
|
|
117
|
+
content:
|
|
118
|
+
application/json:
|
|
119
|
+
schema:
|
|
120
|
+
$ref: "#/components/schemas/ReturnReasonUpdateResult"
|
|
121
|
+
delete:
|
|
122
|
+
summary: Remove a return reason
|
|
123
|
+
operationId: removeReturnReason
|
|
124
|
+
parameters:
|
|
125
|
+
- in: path
|
|
126
|
+
name: id
|
|
127
|
+
required: true
|
|
128
|
+
schema:
|
|
129
|
+
type: string
|
|
130
|
+
responses:
|
|
131
|
+
"200":
|
|
132
|
+
description: Return reason removed
|
|
133
|
+
content:
|
|
134
|
+
application/json:
|
|
135
|
+
schema:
|
|
136
|
+
$ref: "#/components/schemas/ReturnReasonRemoveResult"
|
|
137
|
+
components:
|
|
138
|
+
schemas:
|
|
139
|
+
ReturnReasonFindResult:
|
|
140
|
+
type: object
|
|
141
|
+
description: Result of finding return reasons
|
|
142
|
+
properties:
|
|
143
|
+
data:
|
|
144
|
+
type: array
|
|
145
|
+
items:
|
|
146
|
+
$ref: "#/components/schemas/ReturnReasonSchema"
|
|
147
|
+
total_result:
|
|
148
|
+
type: number
|
|
149
|
+
description: Total number of return reasons
|
|
150
|
+
current_count:
|
|
151
|
+
type: number
|
|
152
|
+
description: Count of return reasons in current page
|
|
153
|
+
total_pages:
|
|
154
|
+
type: number
|
|
155
|
+
description: Total number of pages
|
|
156
|
+
current_page:
|
|
157
|
+
type: number
|
|
158
|
+
description: Current page number
|
|
159
|
+
per_page:
|
|
160
|
+
type: number
|
|
161
|
+
description: Number of return reasons per page
|
|
162
|
+
first_page_url:
|
|
163
|
+
type: string
|
|
164
|
+
description: URL for the first page
|
|
165
|
+
last_page_url:
|
|
166
|
+
type: string
|
|
167
|
+
description: URL for the last page
|
|
168
|
+
next_page_url:
|
|
169
|
+
type: string
|
|
170
|
+
nullable: true
|
|
171
|
+
description: URL for the next page
|
|
172
|
+
prev_page_url:
|
|
173
|
+
type: string
|
|
174
|
+
nullable: true
|
|
175
|
+
description: URL for the previous page
|
|
176
|
+
path:
|
|
177
|
+
type: string
|
|
178
|
+
description: Base URL path
|
|
179
|
+
ReturnReasonSchema:
|
|
180
|
+
type: object
|
|
181
|
+
description: Return reason schema
|
|
182
|
+
properties:
|
|
183
|
+
_id:
|
|
184
|
+
type: string
|
|
185
|
+
description: Unique identifier for the return reason
|
|
186
|
+
name:
|
|
187
|
+
type: string
|
|
188
|
+
description: Name of the return reason
|
|
189
|
+
local_name:
|
|
190
|
+
type: string
|
|
191
|
+
description: Localized name of the return reason
|
|
192
|
+
disabled:
|
|
193
|
+
type: boolean
|
|
194
|
+
description: Whether the return reason is disabled
|
|
195
|
+
integration_meta:
|
|
196
|
+
type: object
|
|
197
|
+
additionalProperties: true
|
|
198
|
+
description: Integration metadata
|
|
199
|
+
company_namespace:
|
|
200
|
+
type: array
|
|
201
|
+
items:
|
|
202
|
+
type: string
|
|
203
|
+
description: Company namespaces
|
|
204
|
+
createdAt:
|
|
205
|
+
type: string
|
|
206
|
+
format: date-time
|
|
207
|
+
description: Creation timestamp
|
|
208
|
+
updatedAt:
|
|
209
|
+
type: string
|
|
210
|
+
format: date-time
|
|
211
|
+
description: Last update timestamp
|
|
212
|
+
__v:
|
|
213
|
+
type: number
|
|
214
|
+
description: Version number
|
|
215
|
+
ReturnReasonCreateBody:
|
|
216
|
+
type: object
|
|
217
|
+
description: Body for creating a return reason
|
|
218
|
+
required:
|
|
219
|
+
- name
|
|
220
|
+
properties:
|
|
221
|
+
name:
|
|
222
|
+
type: string
|
|
223
|
+
description: Name of the return reason
|
|
224
|
+
local_name:
|
|
225
|
+
type: string
|
|
226
|
+
description: Localized name of the return reason
|
|
227
|
+
disabled:
|
|
228
|
+
type: boolean
|
|
229
|
+
description: Whether the return reason is disabled
|
|
230
|
+
integration_meta:
|
|
231
|
+
type: object
|
|
232
|
+
additionalProperties: true
|
|
233
|
+
description: Integration metadata
|
|
234
|
+
company_namespace:
|
|
235
|
+
type: array
|
|
236
|
+
items:
|
|
237
|
+
type: string
|
|
238
|
+
description: Company namespaces
|
|
239
|
+
ReturnReasonCreateResult:
|
|
240
|
+
$ref: "#/components/schemas/ReturnReasonSchema"
|
|
241
|
+
description: Result of creating a return reason
|
|
242
|
+
ReturnReasonGetResult:
|
|
243
|
+
$ref: "#/components/schemas/ReturnReasonSchema"
|
|
244
|
+
description: Result of getting a return reason
|
|
245
|
+
ReturnReasonUpdateBody:
|
|
246
|
+
type: object
|
|
247
|
+
description: Body for updating a return reason
|
|
248
|
+
properties:
|
|
249
|
+
name:
|
|
250
|
+
type: string
|
|
251
|
+
description: Name of the return reason
|
|
252
|
+
local_name:
|
|
253
|
+
type: string
|
|
254
|
+
description: Localized name of the return reason
|
|
255
|
+
disabled:
|
|
256
|
+
type: boolean
|
|
257
|
+
description: Whether the return reason is disabled
|
|
258
|
+
integration_meta:
|
|
259
|
+
type: object
|
|
260
|
+
additionalProperties: true
|
|
261
|
+
description: Integration metadata
|
|
262
|
+
company_namespace:
|
|
263
|
+
type: array
|
|
264
|
+
items:
|
|
265
|
+
type: string
|
|
266
|
+
description: Company namespaces
|
|
267
|
+
_id:
|
|
268
|
+
type: string
|
|
269
|
+
description: Unique identifier for the return reason
|
|
270
|
+
createdAt:
|
|
271
|
+
type: string
|
|
272
|
+
format: date-time
|
|
273
|
+
description: Creation timestamp
|
|
274
|
+
updatedAt:
|
|
275
|
+
type: string
|
|
276
|
+
format: date-time
|
|
277
|
+
description: Last update timestamp
|
|
278
|
+
__v:
|
|
279
|
+
type: number
|
|
280
|
+
description: Version number
|
|
281
|
+
ReturnReasonUpdateResult:
|
|
282
|
+
$ref: "#/components/schemas/ReturnReasonSchema"
|
|
283
|
+
description: Result of updating a return reason
|
|
284
|
+
ReturnReasonRemoveResult:
|
|
285
|
+
$ref: "#/components/schemas/ReturnReasonSchema"
|
|
286
|
+
description: Result of removing a return reason
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Route
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Route endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/route:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find routes
|
|
12
|
+
operationId: findRoutes
|
|
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
|
+
name:
|
|
28
|
+
oneOf:
|
|
29
|
+
- type: array
|
|
30
|
+
items:
|
|
31
|
+
type: string
|
|
32
|
+
- type: string
|
|
33
|
+
disabled:
|
|
34
|
+
type: boolean
|
|
35
|
+
from_updatedAt:
|
|
36
|
+
type: number
|
|
37
|
+
from__id:
|
|
38
|
+
type: string
|
|
39
|
+
to__id:
|
|
40
|
+
type: string
|
|
41
|
+
rep_id:
|
|
42
|
+
oneOf:
|
|
43
|
+
- type: array
|
|
44
|
+
items:
|
|
45
|
+
type: string
|
|
46
|
+
- type: string
|
|
47
|
+
sortBy:
|
|
48
|
+
type: array
|
|
49
|
+
items:
|
|
50
|
+
type: object
|
|
51
|
+
properties:
|
|
52
|
+
field:
|
|
53
|
+
type: string
|
|
54
|
+
enum: [_id, name, day]
|
|
55
|
+
type:
|
|
56
|
+
type: string
|
|
57
|
+
enum: [asc, desc]
|
|
58
|
+
description: Query parameters for filtering routes
|
|
59
|
+
responses:
|
|
60
|
+
"200":
|
|
61
|
+
description: A list of routes
|
|
62
|
+
content:
|
|
63
|
+
application/json:
|
|
64
|
+
schema:
|
|
65
|
+
$ref: "#/components/schemas/RouteFindResult"
|
|
66
|
+
post:
|
|
67
|
+
summary: Create a route
|
|
68
|
+
operationId: createRoute
|
|
69
|
+
requestBody:
|
|
70
|
+
required: true
|
|
71
|
+
content:
|
|
72
|
+
application/json:
|
|
73
|
+
schema:
|
|
74
|
+
$ref: "#/components/schemas/RouteCreateBody"
|
|
75
|
+
responses:
|
|
76
|
+
"201":
|
|
77
|
+
description: Route created
|
|
78
|
+
content:
|
|
79
|
+
application/json:
|
|
80
|
+
schema:
|
|
81
|
+
$ref: "#/components/schemas/RouteCreateResult"
|
|
82
|
+
/route/{id}:
|
|
83
|
+
get:
|
|
84
|
+
summary: Get a route by ID
|
|
85
|
+
operationId: getRoute
|
|
86
|
+
parameters:
|
|
87
|
+
- in: path
|
|
88
|
+
name: id
|
|
89
|
+
required: true
|
|
90
|
+
schema:
|
|
91
|
+
type: string
|
|
92
|
+
responses:
|
|
93
|
+
"200":
|
|
94
|
+
description: Route details
|
|
95
|
+
content:
|
|
96
|
+
application/json:
|
|
97
|
+
schema:
|
|
98
|
+
$ref: "#/components/schemas/RouteGetResult"
|
|
99
|
+
put:
|
|
100
|
+
summary: Update a route
|
|
101
|
+
operationId: updateRoute
|
|
102
|
+
parameters:
|
|
103
|
+
- in: path
|
|
104
|
+
name: id
|
|
105
|
+
required: true
|
|
106
|
+
schema:
|
|
107
|
+
type: string
|
|
108
|
+
requestBody:
|
|
109
|
+
required: true
|
|
110
|
+
content:
|
|
111
|
+
application/json:
|
|
112
|
+
schema:
|
|
113
|
+
$ref: "#/components/schemas/RouteUpdateBody"
|
|
114
|
+
responses:
|
|
115
|
+
"200":
|
|
116
|
+
description: Route updated
|
|
117
|
+
content:
|
|
118
|
+
application/json:
|
|
119
|
+
schema:
|
|
120
|
+
$ref: "#/components/schemas/RouteUpdateResult"
|
|
121
|
+
delete:
|
|
122
|
+
summary: Remove a route
|
|
123
|
+
operationId: removeRoute
|
|
124
|
+
parameters:
|
|
125
|
+
- in: path
|
|
126
|
+
name: id
|
|
127
|
+
required: true
|
|
128
|
+
schema:
|
|
129
|
+
type: string
|
|
130
|
+
responses:
|
|
131
|
+
"200":
|
|
132
|
+
description: Route removed
|
|
133
|
+
content:
|
|
134
|
+
application/json:
|
|
135
|
+
schema:
|
|
136
|
+
$ref: "#/components/schemas/RouteRemoveResult"
|
|
137
|
+
components:
|
|
138
|
+
schemas:
|
|
139
|
+
RouteFindResult:
|
|
140
|
+
type: object
|
|
141
|
+
description: Result of finding routes
|
|
142
|
+
properties:
|
|
143
|
+
data:
|
|
144
|
+
type: array
|
|
145
|
+
items:
|
|
146
|
+
$ref: "#/components/schemas/RouteSchema"
|
|
147
|
+
total_result:
|
|
148
|
+
type: number
|
|
149
|
+
description: Total number of routes
|
|
150
|
+
current_count:
|
|
151
|
+
type: number
|
|
152
|
+
description: Count of routes in current page
|
|
153
|
+
total_pages:
|
|
154
|
+
type: number
|
|
155
|
+
description: Total number of pages
|
|
156
|
+
current_page:
|
|
157
|
+
type: number
|
|
158
|
+
description: Current page number
|
|
159
|
+
per_page:
|
|
160
|
+
type: number
|
|
161
|
+
description: Number of routes per page
|
|
162
|
+
first_page_url:
|
|
163
|
+
type: string
|
|
164
|
+
description: URL for the first page
|
|
165
|
+
last_page_url:
|
|
166
|
+
type: string
|
|
167
|
+
description: URL for the last page
|
|
168
|
+
next_page_url:
|
|
169
|
+
type: string
|
|
170
|
+
nullable: true
|
|
171
|
+
description: URL for the next page
|
|
172
|
+
prev_page_url:
|
|
173
|
+
type: string
|
|
174
|
+
nullable: true
|
|
175
|
+
description: URL for the previous page
|
|
176
|
+
path:
|
|
177
|
+
type: string
|
|
178
|
+
description: Base URL path
|
|
179
|
+
RouteSchema:
|
|
180
|
+
type: object
|
|
181
|
+
description: Route schema
|
|
182
|
+
properties:
|
|
183
|
+
_id:
|
|
184
|
+
type: string
|
|
185
|
+
description: Unique identifier for the route
|
|
186
|
+
name:
|
|
187
|
+
type: string
|
|
188
|
+
description: Name of the route
|
|
189
|
+
rep_id:
|
|
190
|
+
type: string
|
|
191
|
+
description: ID of the assigned rep
|
|
192
|
+
day:
|
|
193
|
+
type: string
|
|
194
|
+
enum: [sat, sun, mon, tue, wed, thu, fri]
|
|
195
|
+
description: Day of the week for the route
|
|
196
|
+
clients:
|
|
197
|
+
type: array
|
|
198
|
+
description: List of clients on this route
|
|
199
|
+
items:
|
|
200
|
+
type: object
|
|
201
|
+
properties:
|
|
202
|
+
client_id:
|
|
203
|
+
type: string
|
|
204
|
+
description: Client ID
|
|
205
|
+
priority:
|
|
206
|
+
type: number
|
|
207
|
+
description: Priority order of the client
|
|
208
|
+
disabled:
|
|
209
|
+
type: boolean
|
|
210
|
+
description: Whether the route is disabled
|
|
211
|
+
integration_meta:
|
|
212
|
+
type: object
|
|
213
|
+
additionalProperties: true
|
|
214
|
+
description: Integration metadata
|
|
215
|
+
company_namespace:
|
|
216
|
+
type: array
|
|
217
|
+
items:
|
|
218
|
+
type: string
|
|
219
|
+
description: Company namespaces
|
|
220
|
+
createdAt:
|
|
221
|
+
type: string
|
|
222
|
+
format: date-time
|
|
223
|
+
description: Creation timestamp
|
|
224
|
+
updatedAt:
|
|
225
|
+
type: string
|
|
226
|
+
format: date-time
|
|
227
|
+
description: Last update timestamp
|
|
228
|
+
__v:
|
|
229
|
+
type: number
|
|
230
|
+
description: Version number
|
|
231
|
+
RouteCreateBody:
|
|
232
|
+
type: object
|
|
233
|
+
description: Body for creating a route
|
|
234
|
+
required:
|
|
235
|
+
- name
|
|
236
|
+
- rep_id
|
|
237
|
+
- day
|
|
238
|
+
- company_namespace
|
|
239
|
+
properties:
|
|
240
|
+
name:
|
|
241
|
+
type: string
|
|
242
|
+
description: Name of the route
|
|
243
|
+
rep_id:
|
|
244
|
+
type: string
|
|
245
|
+
description: ID of the assigned rep
|
|
246
|
+
day:
|
|
247
|
+
type: string
|
|
248
|
+
enum: [sat, sun, mon, tue, wed, thu, fri]
|
|
249
|
+
description: Day of the week for the route
|
|
250
|
+
clients:
|
|
251
|
+
type: array
|
|
252
|
+
description: List of clients on this route
|
|
253
|
+
items:
|
|
254
|
+
type: object
|
|
255
|
+
properties:
|
|
256
|
+
client_id:
|
|
257
|
+
type: string
|
|
258
|
+
description: Client ID
|
|
259
|
+
priority:
|
|
260
|
+
type: number
|
|
261
|
+
description: Priority order of the client
|
|
262
|
+
disabled:
|
|
263
|
+
type: boolean
|
|
264
|
+
description: Whether the route is disabled
|
|
265
|
+
integration_meta:
|
|
266
|
+
type: object
|
|
267
|
+
additionalProperties: true
|
|
268
|
+
description: Integration metadata
|
|
269
|
+
company_namespace:
|
|
270
|
+
type: array
|
|
271
|
+
items:
|
|
272
|
+
type: string
|
|
273
|
+
description: Company namespaces
|
|
274
|
+
RouteCreateResult:
|
|
275
|
+
$ref: "#/components/schemas/RouteSchema"
|
|
276
|
+
description: Result of creating a route
|
|
277
|
+
RouteGetResult:
|
|
278
|
+
$ref: "#/components/schemas/RouteSchema"
|
|
279
|
+
description: Result of getting a route
|
|
280
|
+
RouteUpdateBody:
|
|
281
|
+
type: object
|
|
282
|
+
description: Body for updating a route
|
|
283
|
+
properties:
|
|
284
|
+
name:
|
|
285
|
+
type: string
|
|
286
|
+
description: Name of the route
|
|
287
|
+
rep_id:
|
|
288
|
+
type: string
|
|
289
|
+
description: ID of the assigned rep
|
|
290
|
+
day:
|
|
291
|
+
type: string
|
|
292
|
+
enum: [sat, sun, mon, tue, wed, thu, fri]
|
|
293
|
+
description: Day of the week for the route
|
|
294
|
+
clients:
|
|
295
|
+
type: array
|
|
296
|
+
description: List of clients on this route
|
|
297
|
+
items:
|
|
298
|
+
type: object
|
|
299
|
+
properties:
|
|
300
|
+
client_id:
|
|
301
|
+
type: string
|
|
302
|
+
description: Client ID
|
|
303
|
+
priority:
|
|
304
|
+
type: number
|
|
305
|
+
description: Priority order of the client
|
|
306
|
+
disabled:
|
|
307
|
+
type: boolean
|
|
308
|
+
description: Whether the route is disabled
|
|
309
|
+
integration_meta:
|
|
310
|
+
type: object
|
|
311
|
+
additionalProperties: true
|
|
312
|
+
description: Integration metadata
|
|
313
|
+
company_namespace:
|
|
314
|
+
type: array
|
|
315
|
+
items:
|
|
316
|
+
type: string
|
|
317
|
+
description: Company namespaces
|
|
318
|
+
_id:
|
|
319
|
+
type: string
|
|
320
|
+
description: Unique identifier for the route
|
|
321
|
+
createdAt:
|
|
322
|
+
type: string
|
|
323
|
+
format: date-time
|
|
324
|
+
description: Creation timestamp
|
|
325
|
+
updatedAt:
|
|
326
|
+
type: string
|
|
327
|
+
format: date-time
|
|
328
|
+
description: Last update timestamp
|
|
329
|
+
__v:
|
|
330
|
+
type: number
|
|
331
|
+
description: Version number
|
|
332
|
+
RouteUpdateResult:
|
|
333
|
+
$ref: "#/components/schemas/RouteSchema"
|
|
334
|
+
description: Result of updating a route
|
|
335
|
+
RouteRemoveResult:
|
|
336
|
+
$ref: "#/components/schemas/RouteSchema"
|
|
337
|
+
description: Result of removing a route
|