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
package/src/oas/day.yaml
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Day
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Day endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/day:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find days
|
|
12
|
+
operationId: findDays
|
|
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
|
+
rep:
|
|
28
|
+
oneOf:
|
|
29
|
+
- type: array
|
|
30
|
+
items:
|
|
31
|
+
type: string
|
|
32
|
+
- type: string
|
|
33
|
+
date:
|
|
34
|
+
type: string
|
|
35
|
+
format: date
|
|
36
|
+
status:
|
|
37
|
+
type: string
|
|
38
|
+
enum: [open, closed, submitted]
|
|
39
|
+
from_date:
|
|
40
|
+
type: string
|
|
41
|
+
format: date
|
|
42
|
+
to_date:
|
|
43
|
+
type: string
|
|
44
|
+
format: date
|
|
45
|
+
from_updatedAt:
|
|
46
|
+
type: number
|
|
47
|
+
from__id:
|
|
48
|
+
type: string
|
|
49
|
+
to__id:
|
|
50
|
+
type: string
|
|
51
|
+
sortBy:
|
|
52
|
+
type: array
|
|
53
|
+
items:
|
|
54
|
+
type: object
|
|
55
|
+
properties:
|
|
56
|
+
field:
|
|
57
|
+
type: string
|
|
58
|
+
enum: [_id, createdAt, updatedAt, date]
|
|
59
|
+
type:
|
|
60
|
+
type: string
|
|
61
|
+
enum: [asc, desc]
|
|
62
|
+
description: Query parameters for filtering days
|
|
63
|
+
responses:
|
|
64
|
+
"200":
|
|
65
|
+
description: A list of days
|
|
66
|
+
content:
|
|
67
|
+
application/json:
|
|
68
|
+
schema:
|
|
69
|
+
$ref: "#/components/schemas/DayFindResult"
|
|
70
|
+
post:
|
|
71
|
+
summary: Create a day
|
|
72
|
+
operationId: createDay
|
|
73
|
+
requestBody:
|
|
74
|
+
required: true
|
|
75
|
+
content:
|
|
76
|
+
application/json:
|
|
77
|
+
schema:
|
|
78
|
+
$ref: "#/components/schemas/DayCreateBody"
|
|
79
|
+
responses:
|
|
80
|
+
"201":
|
|
81
|
+
description: Day created
|
|
82
|
+
content:
|
|
83
|
+
application/json:
|
|
84
|
+
schema:
|
|
85
|
+
$ref: "#/components/schemas/DayCreateResult"
|
|
86
|
+
/day/{id}:
|
|
87
|
+
get:
|
|
88
|
+
summary: Get a day by ID
|
|
89
|
+
operationId: getDay
|
|
90
|
+
parameters:
|
|
91
|
+
- in: path
|
|
92
|
+
name: id
|
|
93
|
+
required: true
|
|
94
|
+
schema:
|
|
95
|
+
type: string
|
|
96
|
+
responses:
|
|
97
|
+
"200":
|
|
98
|
+
description: Day details
|
|
99
|
+
content:
|
|
100
|
+
application/json:
|
|
101
|
+
schema:
|
|
102
|
+
$ref: "#/components/schemas/DayGetResult"
|
|
103
|
+
components:
|
|
104
|
+
schemas:
|
|
105
|
+
DayFindResult:
|
|
106
|
+
type: object
|
|
107
|
+
description: Result of finding days
|
|
108
|
+
properties:
|
|
109
|
+
data:
|
|
110
|
+
type: array
|
|
111
|
+
items:
|
|
112
|
+
$ref: "#/components/schemas/DaySchema"
|
|
113
|
+
total_result:
|
|
114
|
+
type: number
|
|
115
|
+
description: Total number of days
|
|
116
|
+
current_count:
|
|
117
|
+
type: number
|
|
118
|
+
description: Count of days in current page
|
|
119
|
+
total_pages:
|
|
120
|
+
type: number
|
|
121
|
+
description: Total number of pages
|
|
122
|
+
current_page:
|
|
123
|
+
type: number
|
|
124
|
+
description: Current page number
|
|
125
|
+
per_page:
|
|
126
|
+
type: number
|
|
127
|
+
description: Number of days per page
|
|
128
|
+
DaySchema:
|
|
129
|
+
type: object
|
|
130
|
+
description: Day schema
|
|
131
|
+
properties:
|
|
132
|
+
_id:
|
|
133
|
+
type: string
|
|
134
|
+
description: Unique identifier for the day
|
|
135
|
+
rep:
|
|
136
|
+
type: string
|
|
137
|
+
description: Representative ID
|
|
138
|
+
date:
|
|
139
|
+
type: string
|
|
140
|
+
format: date
|
|
141
|
+
description: Date of the working day
|
|
142
|
+
startTime:
|
|
143
|
+
type: string
|
|
144
|
+
format: time
|
|
145
|
+
description: Start time of the day
|
|
146
|
+
endTime:
|
|
147
|
+
type: string
|
|
148
|
+
format: time
|
|
149
|
+
description: End time of the day
|
|
150
|
+
status:
|
|
151
|
+
type: string
|
|
152
|
+
enum: [open, closed, submitted]
|
|
153
|
+
description: Status of the day
|
|
154
|
+
visits:
|
|
155
|
+
type: array
|
|
156
|
+
items:
|
|
157
|
+
type: string
|
|
158
|
+
description: List of visit IDs for the day
|
|
159
|
+
orders:
|
|
160
|
+
type: array
|
|
161
|
+
items:
|
|
162
|
+
type: string
|
|
163
|
+
description: List of order IDs for the day
|
|
164
|
+
activities:
|
|
165
|
+
type: array
|
|
166
|
+
items:
|
|
167
|
+
type: object
|
|
168
|
+
properties:
|
|
169
|
+
type:
|
|
170
|
+
type: string
|
|
171
|
+
description: Activity type
|
|
172
|
+
description:
|
|
173
|
+
type: string
|
|
174
|
+
description: Activity description
|
|
175
|
+
timestamp:
|
|
176
|
+
type: string
|
|
177
|
+
format: date-time
|
|
178
|
+
description: Activity timestamp
|
|
179
|
+
description: List of activities for the day
|
|
180
|
+
summary:
|
|
181
|
+
type: object
|
|
182
|
+
properties:
|
|
183
|
+
totalVisits:
|
|
184
|
+
type: number
|
|
185
|
+
description: Total number of visits
|
|
186
|
+
totalOrders:
|
|
187
|
+
type: number
|
|
188
|
+
description: Total number of orders
|
|
189
|
+
totalSales:
|
|
190
|
+
type: number
|
|
191
|
+
description: Total sales amount
|
|
192
|
+
description: Day summary statistics
|
|
193
|
+
notes:
|
|
194
|
+
type: string
|
|
195
|
+
description: Additional notes for the day
|
|
196
|
+
integration_meta:
|
|
197
|
+
type: object
|
|
198
|
+
additionalProperties: true
|
|
199
|
+
description: Integration metadata
|
|
200
|
+
company_namespace:
|
|
201
|
+
type: array
|
|
202
|
+
items:
|
|
203
|
+
type: string
|
|
204
|
+
description: Company namespaces
|
|
205
|
+
createdAt:
|
|
206
|
+
type: string
|
|
207
|
+
format: date-time
|
|
208
|
+
description: Creation timestamp
|
|
209
|
+
updatedAt:
|
|
210
|
+
type: string
|
|
211
|
+
format: date-time
|
|
212
|
+
description: Last update timestamp
|
|
213
|
+
__v:
|
|
214
|
+
type: number
|
|
215
|
+
description: Version number
|
|
216
|
+
DayCreateBody:
|
|
217
|
+
type: object
|
|
218
|
+
description: Body for creating a day
|
|
219
|
+
required:
|
|
220
|
+
- rep
|
|
221
|
+
- date
|
|
222
|
+
properties:
|
|
223
|
+
rep:
|
|
224
|
+
type: string
|
|
225
|
+
description: Representative ID
|
|
226
|
+
date:
|
|
227
|
+
type: string
|
|
228
|
+
format: date
|
|
229
|
+
description: Date of the working day
|
|
230
|
+
startTime:
|
|
231
|
+
type: string
|
|
232
|
+
format: time
|
|
233
|
+
description: Start time of the day
|
|
234
|
+
notes:
|
|
235
|
+
type: string
|
|
236
|
+
description: Additional notes for the day
|
|
237
|
+
integration_meta:
|
|
238
|
+
type: object
|
|
239
|
+
additionalProperties: true
|
|
240
|
+
description: Integration metadata
|
|
241
|
+
DayCreateResult:
|
|
242
|
+
$ref: "#/components/schemas/DaySchema"
|
|
243
|
+
description: Result of creating a day
|
|
244
|
+
DayGetResult:
|
|
245
|
+
$ref: "#/components/schemas/DaySchema"
|
|
246
|
+
description: Result of getting a day
|