repzo 1.0.141 → 1.0.143
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/docs/README.md +16 -315
- package/docs/api/activity-ai-sales-order-examples.md +63 -112
- package/docs/api/activity-ai-sales-order.md +15 -215
- package/docs/api/activity-feedback-examples.md +82 -136
- package/docs/api/activity-feedback-v2-examples.md +86 -138
- package/docs/api/activity-feedback-v2.md +19 -263
- package/docs/api/activity-feedback.md +19 -263
- package/docs/api/activity-storecheck-examples.md +62 -101
- package/docs/api/activity-storecheck.md +13 -186
- package/docs/api/adjust-account-examples.md +50 -78
- package/docs/api/adjust-account.md +12 -117
- package/docs/api/adjust-inventory-examples.md +50 -78
- package/docs/api/adjust-inventory.md +16 -121
- package/docs/api/approval-request-examples.md +58 -97
- package/docs/api/approval-request.md +26 -189
- package/docs/api/approvals-examples.md +58 -97
- package/docs/api/approvals.md +26 -189
- package/docs/api/asset-examples.md +53 -95
- package/docs/api/asset-part-examples.md +62 -101
- package/docs/api/asset-part-receival-examples.md +62 -101
- package/docs/api/asset-part-receival.md +13 -186
- package/docs/api/asset-part-transfer-examples.md +63 -112
- package/docs/api/asset-part-transfer.md +15 -215
- package/docs/api/asset-part-type-examples.md +62 -101
- package/docs/api/asset-part-type.md +13 -186
- package/docs/api/asset-part-unit-examples.md +62 -101
- package/docs/api/asset-part-unit.md +13 -186
- package/docs/api/asset-part.md +13 -186
- package/docs/api/asset-type-examples.md +58 -97
- package/docs/api/asset-type.md +26 -189
- package/docs/api/asset-unit-examples.md +80 -147
- package/docs/api/asset-unit.md +19 -306
- package/docs/api/asset.md +26 -189
- package/docs/api/banks-examples.md +53 -95
- package/docs/api/banks.md +26 -189
- package/docs/api/bankslists-examples.md +58 -97
- package/docs/api/bankslists.md +26 -189
- package/docs/api/brand-examples.md +58 -97
- package/docs/api/brand.md +18 -181
- package/docs/api/category-examples.md +58 -97
- package/docs/api/category.md +18 -181
- package/docs/api/checks-examples.md +45 -76
- package/docs/api/checks.md +12 -117
- package/docs/api/client-channel-examples.md +62 -101
- package/docs/api/client-channel.md +20 -207
- package/docs/api/client-contact-examples.md +62 -101
- package/docs/api/client-contact.md +25 -233
- package/docs/api/client-examples.md +53 -95
- package/docs/api/client-location-examples.md +71 -126
- package/docs/api/client-location.md +19 -275
- package/docs/api/client.md +18 -181
- package/docs/api/contract-examples.md +58 -97
- package/docs/api/contract-installment-examples.md +84 -148
- package/docs/api/contract-installment.md +21 -303
- package/docs/api/contract.md +26 -189
- package/docs/api/custom-list-examples.md +58 -97
- package/docs/api/custom-list-item-examples.md +58 -97
- package/docs/api/custom-list-item.md +26 -189
- package/docs/api/custom-list.md +26 -189
- package/docs/api/custom-status-examples.md +58 -97
- package/docs/api/custom-status.md +26 -189
- package/docs/api/day-examples.md +45 -76
- package/docs/api/day.md +12 -117
- package/docs/api/feedback-options-examples.md +90 -153
- package/docs/api/feedback-options.md +23 -307
- package/docs/api/fullinvoices-examples.md +51 -83
- package/docs/api/fullinvoices.md +22 -162
- package/docs/api/index.md +99 -705
- package/docs/api/integration-action-log-examples.md +62 -101
- package/docs/api/integration-action-log.md +13 -186
- package/docs/api/integration-app-examples.md +51 -83
- package/docs/api/integration-app.md +16 -156
- package/docs/api/integration-command-log-examples.md +62 -101
- package/docs/api/integration-command-log.md +13 -186
- package/docs/api/inventory-adjustment-reason-examples.md +58 -97
- package/docs/api/inventory-adjustment-reason.md +26 -189
- package/docs/api/inventory-examples.md +35 -45
- package/docs/api/inventory.md +8 -53
- package/docs/api/mail-unsubscribe-examples.md +69 -124
- package/docs/api/mail-unsubscribe.md +13 -251
- package/docs/api/measureunit-examples.md +58 -97
- package/docs/api/measureunit-family-examples.md +58 -97
- package/docs/api/measureunit-family.md +18 -188
- package/docs/api/measureunit.md +20 -190
- package/docs/api/media-examples.md +53 -95
- package/docs/api/media-storage-examples.md +58 -97
- package/docs/api/media-storage.md +18 -181
- package/docs/api/media.md +18 -181
- package/docs/api/msl-examples.md +53 -95
- package/docs/api/msl-products-examples.md +58 -97
- package/docs/api/msl-products.md +26 -189
- package/docs/api/msl.md +26 -189
- package/docs/api/ocr-invoice-job-examples.md +74 -132
- package/docs/api/ocr-invoice-job-group-examples.md +73 -121
- package/docs/api/ocr-invoice-job-group.md +15 -215
- package/docs/api/ocr-invoice-job-page-examples.md +63 -112
- package/docs/api/ocr-invoice-job-page.md +15 -215
- package/docs/api/ocr-invoice-job-template-examples.md +62 -101
- package/docs/api/ocr-invoice-job-template.md +13 -186
- package/docs/api/ocr-invoice-job.md +19 -253
- package/docs/api/patch-action-examples.md +63 -112
- package/docs/api/patch-action.md +15 -215
- package/docs/api/payment-terms-examples.md +58 -97
- package/docs/api/payment-terms.md +28 -198
- package/docs/api/payments-examples.md +51 -83
- package/docs/api/payments.md +22 -162
- package/docs/api/pricelist-examples.md +58 -97
- package/docs/api/pricelist-item-examples.md +58 -97
- package/docs/api/pricelist-item.md +24 -208
- package/docs/api/pricelist.md +18 -181
- package/docs/api/product-examples.md +58 -97
- package/docs/api/product-group-examples.md +58 -97
- package/docs/api/product-group.md +18 -181
- package/docs/api/product-modifiers-group-examples.md +70 -125
- package/docs/api/product-modifiers-group.md +19 -275
- package/docs/api/product.md +20 -190
- package/docs/api/proforma-examples.md +51 -83
- package/docs/api/proforma.md +22 -162
- package/docs/api/quick-convert-to-pdf-examples.md +30 -41
- package/docs/api/quick-convert-to-pdf.md +6 -56
- package/docs/api/receiving-material-examples.md +51 -83
- package/docs/api/receiving-material.md +16 -156
- package/docs/api/refund-examples.md +46 -81
- package/docs/api/refund.md +16 -156
- package/docs/api/rep-balance-summary-examples.md +36 -46
- package/docs/api/rep-balance-summary.md +6 -53
- package/docs/api/rep-examples.md +53 -95
- package/docs/api/rep.md +18 -181
- package/docs/api/return-asset-part-unit-examples.md +62 -101
- package/docs/api/return-asset-part-unit.md +13 -186
- package/docs/api/return-reason-examples.md +58 -97
- package/docs/api/return-reason.md +18 -181
- package/docs/api/route-examples.md +53 -95
- package/docs/api/route.md +18 -181
- package/docs/api/safe-invoice-serial-counter-examples.md +72 -127
- package/docs/api/safe-invoice-serial-counter.md +17 -266
- package/docs/api/settings-examples.md +47 -70
- package/docs/api/settings.md +18 -123
- package/docs/api/settlement-examples.md +50 -78
- package/docs/api/settlement.md +12 -117
- package/docs/api/speciality-examples.md +70 -125
- package/docs/api/speciality.md +17 -266
- package/docs/api/store-asset-part-unit-examples.md +62 -101
- package/docs/api/store-asset-part-unit.md +13 -186
- package/docs/api/storecheck-template-examples.md +58 -97
- package/docs/api/storecheck-template.md +18 -181
- package/docs/api/subcategory-examples.md +58 -97
- package/docs/api/subcategory.md +18 -181
- package/docs/api/supplier-examples.md +58 -97
- package/docs/api/supplier.md +26 -189
- package/docs/api/svix-integration-examples.md +62 -101
- package/docs/api/svix-integration.md +13 -186
- package/docs/api/tag-examples.md +53 -95
- package/docs/api/tag.md +18 -181
- package/docs/api/tax-examples.md +53 -95
- package/docs/api/tax.md +18 -181
- package/docs/api/team-examples.md +53 -95
- package/docs/api/team.md +18 -181
- package/docs/api/transfer-examples.md +51 -83
- package/docs/api/transfer.md +16 -156
- package/docs/api/update-integration-meta-examples.md +63 -112
- package/docs/api/update-integration-meta.md +15 -215
- package/docs/api/variant-examples.md +58 -97
- package/docs/api/variant.md +20 -183
- package/docs/api/visit-examples.md +46 -81
- package/docs/api/visit.md +22 -162
- package/docs/api/warehouse-examples.md +58 -97
- package/docs/api/warehouse.md +18 -181
- package/docs/api/workorder-category-examples.md +76 -141
- package/docs/api/workorder-category.md +19 -305
- package/docs/api/workorder-examples.md +58 -97
- package/docs/api/workorder-portal-examples.md +75 -132
- package/docs/api/workorder-portal-link-examples.md +70 -145
- package/docs/api/workorder-portal-link.md +23 -336
- package/docs/api/workorder-portal.md +19 -271
- package/docs/api/workorder-request-examples.md +58 -97
- package/docs/api/workorder-request.md +26 -189
- package/docs/api/workorder.md +26 -189
- package/docs/generated/index.html +1 -1
- package/docs/generated/repzo-api-complete.yaml +2585 -2585
- package/lib/index.d.ts +180 -0
- package/lib/index.js +90 -0
- package/lib/types/index.d.ts +13393 -14636
- package/package.json +3 -4
- package/src/types/index.ts +14 -1
package/lib/index.d.ts
CHANGED
|
@@ -99,6 +99,96 @@ export declare const end_points: {
|
|
|
99
99
|
readonly CUSTOM_FIELD: "customfields";
|
|
100
100
|
};
|
|
101
101
|
export type EndPoints = typeof end_points[keyof typeof end_points];
|
|
102
|
+
declare const availableService: readonly [
|
|
103
|
+
"client",
|
|
104
|
+
"product",
|
|
105
|
+
"variant",
|
|
106
|
+
"category",
|
|
107
|
+
"sub_category",
|
|
108
|
+
"brand",
|
|
109
|
+
"product_group",
|
|
110
|
+
"tax",
|
|
111
|
+
"measureunit",
|
|
112
|
+
"measureunitFamily",
|
|
113
|
+
"media",
|
|
114
|
+
"priceList",
|
|
115
|
+
"priceListItem",
|
|
116
|
+
"team",
|
|
117
|
+
"returnReason",
|
|
118
|
+
"rep",
|
|
119
|
+
"tag",
|
|
120
|
+
"warehouse",
|
|
121
|
+
"route",
|
|
122
|
+
"productModifiersGroup",
|
|
123
|
+
"channel",
|
|
124
|
+
"speciality",
|
|
125
|
+
"clientContact",
|
|
126
|
+
"paymentTerm",
|
|
127
|
+
"bank",
|
|
128
|
+
"bank_list",
|
|
129
|
+
"customStatus",
|
|
130
|
+
"customList",
|
|
131
|
+
"customListItem",
|
|
132
|
+
"inventoryAdjustmentReason",
|
|
133
|
+
"workorder",
|
|
134
|
+
"workorderRequest",
|
|
135
|
+
"supplier",
|
|
136
|
+
"quickConvertToPdf",
|
|
137
|
+
"visit",
|
|
138
|
+
"activityFeedback",
|
|
139
|
+
"activityFeedbackV2",
|
|
140
|
+
"feedbackOption",
|
|
141
|
+
"invoice",
|
|
142
|
+
"proforma",
|
|
143
|
+
"payment",
|
|
144
|
+
"refund",
|
|
145
|
+
"settlement",
|
|
146
|
+
"check",
|
|
147
|
+
"day",
|
|
148
|
+
"receivingMaterial",
|
|
149
|
+
"adjustAccount",
|
|
150
|
+
"transfer",
|
|
151
|
+
"msl",
|
|
152
|
+
"mslProduct",
|
|
153
|
+
"mediaStorage",
|
|
154
|
+
"storecheckTemplate",
|
|
155
|
+
"activityStorecheck",
|
|
156
|
+
"adjustInventory",
|
|
157
|
+
"inventory",
|
|
158
|
+
"integrationApp",
|
|
159
|
+
"joinActionsWebHook",
|
|
160
|
+
"patchAction",
|
|
161
|
+
"updateIntegrationMeta",
|
|
162
|
+
"assetPartType",
|
|
163
|
+
"assetPart",
|
|
164
|
+
"assetPartUnit",
|
|
165
|
+
"assetPartReceival",
|
|
166
|
+
"assetPartTransfer",
|
|
167
|
+
"returnAssetPartUnit",
|
|
168
|
+
"storeAssetPartUnit",
|
|
169
|
+
"ocrInvoiceJobTemplate",
|
|
170
|
+
"ocrInvoiceJobGroup",
|
|
171
|
+
"activityAiSalesOrder",
|
|
172
|
+
"ocrInvoiceJob",
|
|
173
|
+
"ocrInvoiceJobPage",
|
|
174
|
+
"settings",
|
|
175
|
+
"mailUnsubscribe",
|
|
176
|
+
"approvalRequest",
|
|
177
|
+
"safeInvoiceSerialCounter",
|
|
178
|
+
"clientLocation",
|
|
179
|
+
"assetType",
|
|
180
|
+
"asset",
|
|
181
|
+
"assetUnit",
|
|
182
|
+
"workorderPortal",
|
|
183
|
+
"approval",
|
|
184
|
+
"workorderCategory",
|
|
185
|
+
"contract",
|
|
186
|
+
"contractInstallment",
|
|
187
|
+
"repBalanceSummary",
|
|
188
|
+
"workorderPortalLink",
|
|
189
|
+
"customField"
|
|
190
|
+
];
|
|
191
|
+
export type AvailableService = typeof availableService[number];
|
|
102
192
|
export default class Repzo {
|
|
103
193
|
private svAPIEndpoint;
|
|
104
194
|
headers: Headers;
|
|
@@ -201,6 +291,95 @@ export default class Repzo {
|
|
|
201
291
|
private _update;
|
|
202
292
|
private _patch;
|
|
203
293
|
private _delete;
|
|
294
|
+
available_services: readonly [
|
|
295
|
+
"client",
|
|
296
|
+
"product",
|
|
297
|
+
"variant",
|
|
298
|
+
"category",
|
|
299
|
+
"sub_category",
|
|
300
|
+
"brand",
|
|
301
|
+
"product_group",
|
|
302
|
+
"tax",
|
|
303
|
+
"measureunit",
|
|
304
|
+
"measureunitFamily",
|
|
305
|
+
"media",
|
|
306
|
+
"priceList",
|
|
307
|
+
"priceListItem",
|
|
308
|
+
"team",
|
|
309
|
+
"returnReason",
|
|
310
|
+
"rep",
|
|
311
|
+
"tag",
|
|
312
|
+
"warehouse",
|
|
313
|
+
"route",
|
|
314
|
+
"productModifiersGroup",
|
|
315
|
+
"channel",
|
|
316
|
+
"speciality",
|
|
317
|
+
"clientContact",
|
|
318
|
+
"paymentTerm",
|
|
319
|
+
"bank",
|
|
320
|
+
"bank_list",
|
|
321
|
+
"customStatus",
|
|
322
|
+
"customList",
|
|
323
|
+
"customListItem",
|
|
324
|
+
"inventoryAdjustmentReason",
|
|
325
|
+
"workorder",
|
|
326
|
+
"workorderRequest",
|
|
327
|
+
"supplier",
|
|
328
|
+
"quickConvertToPdf",
|
|
329
|
+
"visit",
|
|
330
|
+
"activityFeedback",
|
|
331
|
+
"activityFeedbackV2",
|
|
332
|
+
"feedbackOption",
|
|
333
|
+
"invoice",
|
|
334
|
+
"proforma",
|
|
335
|
+
"payment",
|
|
336
|
+
"refund",
|
|
337
|
+
"settlement",
|
|
338
|
+
"check",
|
|
339
|
+
"day",
|
|
340
|
+
"receivingMaterial",
|
|
341
|
+
"adjustAccount",
|
|
342
|
+
"transfer",
|
|
343
|
+
"msl",
|
|
344
|
+
"mslProduct",
|
|
345
|
+
"mediaStorage",
|
|
346
|
+
"storecheckTemplate",
|
|
347
|
+
"activityStorecheck",
|
|
348
|
+
"adjustInventory",
|
|
349
|
+
"inventory",
|
|
350
|
+
"integrationApp",
|
|
351
|
+
"joinActionsWebHook",
|
|
352
|
+
"patchAction",
|
|
353
|
+
"updateIntegrationMeta",
|
|
354
|
+
"assetPartType",
|
|
355
|
+
"assetPart",
|
|
356
|
+
"assetPartUnit",
|
|
357
|
+
"assetPartReceival",
|
|
358
|
+
"assetPartTransfer",
|
|
359
|
+
"returnAssetPartUnit",
|
|
360
|
+
"storeAssetPartUnit",
|
|
361
|
+
"ocrInvoiceJobTemplate",
|
|
362
|
+
"ocrInvoiceJobGroup",
|
|
363
|
+
"activityAiSalesOrder",
|
|
364
|
+
"ocrInvoiceJob",
|
|
365
|
+
"ocrInvoiceJobPage",
|
|
366
|
+
"settings",
|
|
367
|
+
"mailUnsubscribe",
|
|
368
|
+
"approvalRequest",
|
|
369
|
+
"safeInvoiceSerialCounter",
|
|
370
|
+
"clientLocation",
|
|
371
|
+
"assetType",
|
|
372
|
+
"asset",
|
|
373
|
+
"assetUnit",
|
|
374
|
+
"workorderPortal",
|
|
375
|
+
"approval",
|
|
376
|
+
"workorderCategory",
|
|
377
|
+
"contract",
|
|
378
|
+
"contractInstallment",
|
|
379
|
+
"repBalanceSummary",
|
|
380
|
+
"workorderPortalLink",
|
|
381
|
+
"customField"
|
|
382
|
+
];
|
|
204
383
|
client: {
|
|
205
384
|
_path: "client";
|
|
206
385
|
find: (
|
|
@@ -1760,3 +1939,4 @@ export default class Repzo {
|
|
|
1760
1939
|
) => Promise<Service.CustomField.Remove.Result>;
|
|
1761
1940
|
};
|
|
1762
1941
|
}
|
|
1942
|
+
export {};
|
package/lib/index.js
CHANGED
|
@@ -91,8 +91,98 @@ export const end_points = {
|
|
|
91
91
|
WORKORDER_PORTAL_LINK: "workorder-portal-link",
|
|
92
92
|
CUSTOM_FIELD: "customfields",
|
|
93
93
|
};
|
|
94
|
+
const availableService = [
|
|
95
|
+
"client",
|
|
96
|
+
"product",
|
|
97
|
+
"variant",
|
|
98
|
+
"category",
|
|
99
|
+
"sub_category",
|
|
100
|
+
"brand",
|
|
101
|
+
"product_group",
|
|
102
|
+
"tax",
|
|
103
|
+
"measureunit",
|
|
104
|
+
"measureunitFamily",
|
|
105
|
+
"media",
|
|
106
|
+
"priceList",
|
|
107
|
+
"priceListItem",
|
|
108
|
+
"team",
|
|
109
|
+
"returnReason",
|
|
110
|
+
"rep",
|
|
111
|
+
"tag",
|
|
112
|
+
"warehouse",
|
|
113
|
+
"route",
|
|
114
|
+
"productModifiersGroup",
|
|
115
|
+
"channel",
|
|
116
|
+
"speciality",
|
|
117
|
+
"clientContact",
|
|
118
|
+
"paymentTerm",
|
|
119
|
+
"bank",
|
|
120
|
+
"bank_list",
|
|
121
|
+
"customStatus",
|
|
122
|
+
"customList",
|
|
123
|
+
"customListItem",
|
|
124
|
+
"inventoryAdjustmentReason",
|
|
125
|
+
"workorder",
|
|
126
|
+
"workorderRequest",
|
|
127
|
+
"supplier",
|
|
128
|
+
"quickConvertToPdf",
|
|
129
|
+
"visit",
|
|
130
|
+
"activityFeedback",
|
|
131
|
+
"activityFeedbackV2",
|
|
132
|
+
"feedbackOption",
|
|
133
|
+
"invoice",
|
|
134
|
+
"proforma",
|
|
135
|
+
"payment",
|
|
136
|
+
"refund",
|
|
137
|
+
"settlement",
|
|
138
|
+
"check",
|
|
139
|
+
"day",
|
|
140
|
+
"receivingMaterial",
|
|
141
|
+
"adjustAccount",
|
|
142
|
+
"transfer",
|
|
143
|
+
"msl",
|
|
144
|
+
"mslProduct",
|
|
145
|
+
"mediaStorage",
|
|
146
|
+
"storecheckTemplate",
|
|
147
|
+
"activityStorecheck",
|
|
148
|
+
"adjustInventory",
|
|
149
|
+
"inventory",
|
|
150
|
+
"integrationApp",
|
|
151
|
+
"joinActionsWebHook",
|
|
152
|
+
"patchAction",
|
|
153
|
+
"updateIntegrationMeta",
|
|
154
|
+
"assetPartType",
|
|
155
|
+
"assetPart",
|
|
156
|
+
"assetPartUnit",
|
|
157
|
+
"assetPartReceival",
|
|
158
|
+
"assetPartTransfer",
|
|
159
|
+
"returnAssetPartUnit",
|
|
160
|
+
"storeAssetPartUnit",
|
|
161
|
+
"ocrInvoiceJobTemplate",
|
|
162
|
+
"ocrInvoiceJobGroup",
|
|
163
|
+
"activityAiSalesOrder",
|
|
164
|
+
"ocrInvoiceJob",
|
|
165
|
+
"ocrInvoiceJobPage",
|
|
166
|
+
"settings",
|
|
167
|
+
"mailUnsubscribe",
|
|
168
|
+
"approvalRequest",
|
|
169
|
+
"safeInvoiceSerialCounter",
|
|
170
|
+
"clientLocation",
|
|
171
|
+
"assetType",
|
|
172
|
+
"asset",
|
|
173
|
+
"assetUnit",
|
|
174
|
+
"workorderPortal",
|
|
175
|
+
"approval",
|
|
176
|
+
"workorderCategory",
|
|
177
|
+
"contract",
|
|
178
|
+
"contractInstallment",
|
|
179
|
+
"repBalanceSummary",
|
|
180
|
+
"workorderPortalLink",
|
|
181
|
+
"customField",
|
|
182
|
+
];
|
|
94
183
|
export default class Repzo {
|
|
95
184
|
constructor(apiKey, options) {
|
|
185
|
+
this.available_services = availableService;
|
|
96
186
|
this.client = {
|
|
97
187
|
_path: Repzo._end_points.CLIENT,
|
|
98
188
|
find: async (params) => {
|