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.
- package/lib/index.d.ts +1 -2
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -2
- 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 +2 -1
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Mail Unsubscribe API
|
|
4
|
+
description: API for managing email unsubscription
|
|
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: Mail Unsubscribe
|
|
13
|
+
description: Email unsubscription management operations
|
|
14
|
+
paths:
|
|
15
|
+
/mail-unsubscribe:
|
|
16
|
+
get:
|
|
17
|
+
tags:
|
|
18
|
+
- Mail Unsubscribe
|
|
19
|
+
summary: Get all unsubscribed emails
|
|
20
|
+
description: Retrieve a list of all unsubscribed email addresses 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: email
|
|
46
|
+
in: query
|
|
47
|
+
description: Filter by email address
|
|
48
|
+
required: false
|
|
49
|
+
schema:
|
|
50
|
+
type: string
|
|
51
|
+
- name: company_namespace
|
|
52
|
+
in: query
|
|
53
|
+
description: Company namespace for filtering
|
|
54
|
+
required: false
|
|
55
|
+
schema:
|
|
56
|
+
type: array
|
|
57
|
+
items:
|
|
58
|
+
type: string
|
|
59
|
+
- name: _id
|
|
60
|
+
in: query
|
|
61
|
+
description: Filter by ID
|
|
62
|
+
required: false
|
|
63
|
+
schema:
|
|
64
|
+
type: array
|
|
65
|
+
items:
|
|
66
|
+
type: string
|
|
67
|
+
responses:
|
|
68
|
+
"200":
|
|
69
|
+
description: Successful response
|
|
70
|
+
content:
|
|
71
|
+
application/json:
|
|
72
|
+
schema:
|
|
73
|
+
type: object
|
|
74
|
+
properties:
|
|
75
|
+
success:
|
|
76
|
+
type: boolean
|
|
77
|
+
example: true
|
|
78
|
+
data:
|
|
79
|
+
type: array
|
|
80
|
+
items:
|
|
81
|
+
$ref: "#/components/schemas/MailUnsubscribe"
|
|
82
|
+
paging:
|
|
83
|
+
$ref: "#/components/schemas/PagingInfo"
|
|
84
|
+
"400":
|
|
85
|
+
$ref: "#/components/responses/BadRequest"
|
|
86
|
+
"401":
|
|
87
|
+
$ref: "#/components/responses/Unauthorized"
|
|
88
|
+
"403":
|
|
89
|
+
$ref: "#/components/responses/Forbidden"
|
|
90
|
+
"500":
|
|
91
|
+
$ref: "#/components/responses/InternalServerError"
|
|
92
|
+
post:
|
|
93
|
+
tags:
|
|
94
|
+
- Mail Unsubscribe
|
|
95
|
+
summary: Add email to unsubscribe list
|
|
96
|
+
description: Add an email address to the unsubscribe list
|
|
97
|
+
requestBody:
|
|
98
|
+
required: true
|
|
99
|
+
content:
|
|
100
|
+
application/json:
|
|
101
|
+
schema:
|
|
102
|
+
$ref: "#/components/schemas/CreateMailUnsubscribeRequest"
|
|
103
|
+
responses:
|
|
104
|
+
"201":
|
|
105
|
+
description: Email unsubscribed successfully
|
|
106
|
+
content:
|
|
107
|
+
application/json:
|
|
108
|
+
schema:
|
|
109
|
+
type: object
|
|
110
|
+
properties:
|
|
111
|
+
success:
|
|
112
|
+
type: boolean
|
|
113
|
+
example: true
|
|
114
|
+
data:
|
|
115
|
+
$ref: "#/components/schemas/MailUnsubscribe"
|
|
116
|
+
"400":
|
|
117
|
+
$ref: "#/components/responses/BadRequest"
|
|
118
|
+
"401":
|
|
119
|
+
$ref: "#/components/responses/Unauthorized"
|
|
120
|
+
"403":
|
|
121
|
+
$ref: "#/components/responses/Forbidden"
|
|
122
|
+
"422":
|
|
123
|
+
$ref: "#/components/responses/ValidationError"
|
|
124
|
+
"500":
|
|
125
|
+
$ref: "#/components/responses/InternalServerError"
|
|
126
|
+
/mail-unsubscribe/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- Mail Unsubscribe
|
|
130
|
+
summary: Get unsubscribe record by ID
|
|
131
|
+
description: Retrieve a specific unsubscribe record by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: Unsubscribe record ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: Successful response
|
|
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/MailUnsubscribe"
|
|
152
|
+
"400":
|
|
153
|
+
$ref: "#/components/responses/BadRequest"
|
|
154
|
+
"401":
|
|
155
|
+
$ref: "#/components/responses/Unauthorized"
|
|
156
|
+
"403":
|
|
157
|
+
$ref: "#/components/responses/Forbidden"
|
|
158
|
+
"404":
|
|
159
|
+
$ref: "#/components/responses/NotFound"
|
|
160
|
+
"500":
|
|
161
|
+
$ref: "#/components/responses/InternalServerError"
|
|
162
|
+
delete:
|
|
163
|
+
tags:
|
|
164
|
+
- Mail Unsubscribe
|
|
165
|
+
summary: Remove email from unsubscribe list
|
|
166
|
+
description: Remove an email address from the unsubscribe list (re-subscribe)
|
|
167
|
+
parameters:
|
|
168
|
+
- name: id
|
|
169
|
+
in: path
|
|
170
|
+
required: true
|
|
171
|
+
description: Unsubscribe record ID
|
|
172
|
+
schema:
|
|
173
|
+
type: string
|
|
174
|
+
responses:
|
|
175
|
+
"200":
|
|
176
|
+
description: Email re-subscribed successfully
|
|
177
|
+
content:
|
|
178
|
+
application/json:
|
|
179
|
+
schema:
|
|
180
|
+
type: object
|
|
181
|
+
properties:
|
|
182
|
+
success:
|
|
183
|
+
type: boolean
|
|
184
|
+
example: true
|
|
185
|
+
"400":
|
|
186
|
+
$ref: "#/components/responses/BadRequest"
|
|
187
|
+
"401":
|
|
188
|
+
$ref: "#/components/responses/Unauthorized"
|
|
189
|
+
"403":
|
|
190
|
+
$ref: "#/components/responses/Forbidden"
|
|
191
|
+
"404":
|
|
192
|
+
$ref: "#/components/responses/NotFound"
|
|
193
|
+
"500":
|
|
194
|
+
$ref: "#/components/responses/InternalServerError"
|
|
195
|
+
/mail-unsubscribe/remove:
|
|
196
|
+
post:
|
|
197
|
+
tags:
|
|
198
|
+
- Mail Unsubscribe
|
|
199
|
+
summary: Bulk remove emails from unsubscribe list
|
|
200
|
+
description: Remove multiple email addresses from the unsubscribe list
|
|
201
|
+
requestBody:
|
|
202
|
+
required: true
|
|
203
|
+
content:
|
|
204
|
+
application/json:
|
|
205
|
+
schema:
|
|
206
|
+
type: object
|
|
207
|
+
properties:
|
|
208
|
+
ids:
|
|
209
|
+
type: array
|
|
210
|
+
items:
|
|
211
|
+
type: string
|
|
212
|
+
description: Array of unsubscribe record IDs to remove
|
|
213
|
+
required:
|
|
214
|
+
- ids
|
|
215
|
+
responses:
|
|
216
|
+
"200":
|
|
217
|
+
description: Emails re-subscribed successfully
|
|
218
|
+
content:
|
|
219
|
+
application/json:
|
|
220
|
+
schema:
|
|
221
|
+
type: object
|
|
222
|
+
properties:
|
|
223
|
+
success:
|
|
224
|
+
type: boolean
|
|
225
|
+
example: true
|
|
226
|
+
"400":
|
|
227
|
+
$ref: "#/components/responses/BadRequest"
|
|
228
|
+
"401":
|
|
229
|
+
$ref: "#/components/responses/Unauthorized"
|
|
230
|
+
"403":
|
|
231
|
+
$ref: "#/components/responses/Forbidden"
|
|
232
|
+
"500":
|
|
233
|
+
$ref: "#/components/responses/InternalServerError"
|
|
234
|
+
/mail-unsubscribe/check:
|
|
235
|
+
post:
|
|
236
|
+
tags:
|
|
237
|
+
- Mail Unsubscribe
|
|
238
|
+
summary: Check if email is unsubscribed
|
|
239
|
+
description: Check if an email address is in the unsubscribe list
|
|
240
|
+
requestBody:
|
|
241
|
+
required: true
|
|
242
|
+
content:
|
|
243
|
+
application/json:
|
|
244
|
+
schema:
|
|
245
|
+
type: object
|
|
246
|
+
properties:
|
|
247
|
+
email:
|
|
248
|
+
type: string
|
|
249
|
+
format: email
|
|
250
|
+
description: Email address to check
|
|
251
|
+
required:
|
|
252
|
+
- email
|
|
253
|
+
responses:
|
|
254
|
+
"200":
|
|
255
|
+
description: Check result
|
|
256
|
+
content:
|
|
257
|
+
application/json:
|
|
258
|
+
schema:
|
|
259
|
+
type: object
|
|
260
|
+
properties:
|
|
261
|
+
success:
|
|
262
|
+
type: boolean
|
|
263
|
+
example: true
|
|
264
|
+
data:
|
|
265
|
+
type: object
|
|
266
|
+
properties:
|
|
267
|
+
is_unsubscribed:
|
|
268
|
+
type: boolean
|
|
269
|
+
description: Whether the email is unsubscribed
|
|
270
|
+
unsubscribe_date:
|
|
271
|
+
type: string
|
|
272
|
+
format: date-time
|
|
273
|
+
description: Date when email was unsubscribed (if applicable)
|
|
274
|
+
"400":
|
|
275
|
+
$ref: "#/components/responses/BadRequest"
|
|
276
|
+
"401":
|
|
277
|
+
$ref: "#/components/responses/Unauthorized"
|
|
278
|
+
"403":
|
|
279
|
+
$ref: "#/components/responses/Forbidden"
|
|
280
|
+
"500":
|
|
281
|
+
$ref: "#/components/responses/InternalServerError"
|
|
282
|
+
components:
|
|
283
|
+
securitySchemes:
|
|
284
|
+
ApiKeyAuth:
|
|
285
|
+
type: apiKey
|
|
286
|
+
in: header
|
|
287
|
+
name: Authorization
|
|
288
|
+
description: "Use format: Bearer {api_key}"
|
|
289
|
+
schemas:
|
|
290
|
+
MailUnsubscribe:
|
|
291
|
+
type: object
|
|
292
|
+
properties:
|
|
293
|
+
_id:
|
|
294
|
+
type: string
|
|
295
|
+
description: Unique identifier
|
|
296
|
+
example: "507f1f77bcf86cd799439011"
|
|
297
|
+
email:
|
|
298
|
+
type: string
|
|
299
|
+
format: email
|
|
300
|
+
description: Unsubscribed email address
|
|
301
|
+
example: "user@example.com"
|
|
302
|
+
reason:
|
|
303
|
+
type: string
|
|
304
|
+
description: Reason for unsubscribing
|
|
305
|
+
example: "User requested unsubscribe"
|
|
306
|
+
unsubscribe_types:
|
|
307
|
+
type: array
|
|
308
|
+
items:
|
|
309
|
+
type: string
|
|
310
|
+
description: Types of emails to unsubscribe from
|
|
311
|
+
example: ["marketing", "newsletters"]
|
|
312
|
+
company_namespace:
|
|
313
|
+
type: array
|
|
314
|
+
items:
|
|
315
|
+
type: string
|
|
316
|
+
description: Company namespace
|
|
317
|
+
user_agent:
|
|
318
|
+
type: string
|
|
319
|
+
description: User agent of the request
|
|
320
|
+
ip_address:
|
|
321
|
+
type: string
|
|
322
|
+
description: IP address of the request
|
|
323
|
+
createdAt:
|
|
324
|
+
type: string
|
|
325
|
+
format: date-time
|
|
326
|
+
description: Unsubscribe date
|
|
327
|
+
modifiedAt:
|
|
328
|
+
type: string
|
|
329
|
+
format: date-time
|
|
330
|
+
description: Last modification timestamp
|
|
331
|
+
SVClient:
|
|
332
|
+
type: integer
|
|
333
|
+
description: Client version
|
|
334
|
+
__v:
|
|
335
|
+
type: integer
|
|
336
|
+
description: Document version
|
|
337
|
+
required:
|
|
338
|
+
- email
|
|
339
|
+
CreateMailUnsubscribeRequest:
|
|
340
|
+
type: object
|
|
341
|
+
properties:
|
|
342
|
+
email:
|
|
343
|
+
type: string
|
|
344
|
+
format: email
|
|
345
|
+
description: Email address to unsubscribe
|
|
346
|
+
example: "user@example.com"
|
|
347
|
+
reason:
|
|
348
|
+
type: string
|
|
349
|
+
description: Reason for unsubscribing
|
|
350
|
+
example: "User requested unsubscribe"
|
|
351
|
+
unsubscribe_types:
|
|
352
|
+
type: array
|
|
353
|
+
items:
|
|
354
|
+
type: string
|
|
355
|
+
description: Types of emails to unsubscribe from
|
|
356
|
+
default: ["all"]
|
|
357
|
+
company_namespace:
|
|
358
|
+
type: array
|
|
359
|
+
items:
|
|
360
|
+
type: string
|
|
361
|
+
description: Company namespace
|
|
362
|
+
user_agent:
|
|
363
|
+
type: string
|
|
364
|
+
description: User agent of the request
|
|
365
|
+
ip_address:
|
|
366
|
+
type: string
|
|
367
|
+
description: IP address of the request
|
|
368
|
+
required:
|
|
369
|
+
- email
|
|
370
|
+
PagingInfo:
|
|
371
|
+
type: object
|
|
372
|
+
properties:
|
|
373
|
+
total:
|
|
374
|
+
type: integer
|
|
375
|
+
description: Total number of items
|
|
376
|
+
page:
|
|
377
|
+
type: integer
|
|
378
|
+
description: Current page number
|
|
379
|
+
per_page:
|
|
380
|
+
type: integer
|
|
381
|
+
description: Items per page
|
|
382
|
+
pages:
|
|
383
|
+
type: integer
|
|
384
|
+
description: Total number of pages
|
|
385
|
+
responses:
|
|
386
|
+
BadRequest:
|
|
387
|
+
description: Bad request
|
|
388
|
+
content:
|
|
389
|
+
application/json:
|
|
390
|
+
schema:
|
|
391
|
+
type: object
|
|
392
|
+
properties:
|
|
393
|
+
success:
|
|
394
|
+
type: boolean
|
|
395
|
+
example: false
|
|
396
|
+
error:
|
|
397
|
+
type: string
|
|
398
|
+
example: "Invalid request parameters"
|
|
399
|
+
Unauthorized:
|
|
400
|
+
description: Unauthorized
|
|
401
|
+
content:
|
|
402
|
+
application/json:
|
|
403
|
+
schema:
|
|
404
|
+
type: object
|
|
405
|
+
properties:
|
|
406
|
+
success:
|
|
407
|
+
type: boolean
|
|
408
|
+
example: false
|
|
409
|
+
error:
|
|
410
|
+
type: string
|
|
411
|
+
example: "Authentication required"
|
|
412
|
+
Forbidden:
|
|
413
|
+
description: Forbidden
|
|
414
|
+
content:
|
|
415
|
+
application/json:
|
|
416
|
+
schema:
|
|
417
|
+
type: object
|
|
418
|
+
properties:
|
|
419
|
+
success:
|
|
420
|
+
type: boolean
|
|
421
|
+
example: false
|
|
422
|
+
error:
|
|
423
|
+
type: string
|
|
424
|
+
example: "Insufficient permissions"
|
|
425
|
+
NotFound:
|
|
426
|
+
description: Resource not found
|
|
427
|
+
content:
|
|
428
|
+
application/json:
|
|
429
|
+
schema:
|
|
430
|
+
type: object
|
|
431
|
+
properties:
|
|
432
|
+
success:
|
|
433
|
+
type: boolean
|
|
434
|
+
example: false
|
|
435
|
+
error:
|
|
436
|
+
type: string
|
|
437
|
+
example: "Resource not found"
|
|
438
|
+
ValidationError:
|
|
439
|
+
description: Validation error
|
|
440
|
+
content:
|
|
441
|
+
application/json:
|
|
442
|
+
schema:
|
|
443
|
+
type: object
|
|
444
|
+
properties:
|
|
445
|
+
success:
|
|
446
|
+
type: boolean
|
|
447
|
+
example: false
|
|
448
|
+
error:
|
|
449
|
+
type: string
|
|
450
|
+
example: "Validation failed"
|
|
451
|
+
InternalServerError:
|
|
452
|
+
description: Internal server error
|
|
453
|
+
content:
|
|
454
|
+
application/json:
|
|
455
|
+
schema:
|
|
456
|
+
type: object
|
|
457
|
+
properties:
|
|
458
|
+
success:
|
|
459
|
+
type: boolean
|
|
460
|
+
example: false
|
|
461
|
+
error:
|
|
462
|
+
type: string
|
|
463
|
+
example: "Internal server error"
|