repzo 1.0.133 → 1.0.134
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/package.json +1 -1
- package/src/index.ts +91 -88
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -10,6 +10,96 @@ import type {
|
|
|
10
10
|
NameSpaces,
|
|
11
11
|
} from "./types/index";
|
|
12
12
|
|
|
13
|
+
export const end_points = {
|
|
14
|
+
CLIENT: "client",
|
|
15
|
+
PRODUCT: "product",
|
|
16
|
+
VARIANT: "variant",
|
|
17
|
+
CATEGORY: "product-category",
|
|
18
|
+
SUB_CATEGORY: "product-sub-category",
|
|
19
|
+
BRAND: "product-brand",
|
|
20
|
+
PRODUCT_GROUP: "product-group",
|
|
21
|
+
TAX: "tax",
|
|
22
|
+
MEASUREUNIT: "measureunits",
|
|
23
|
+
MEASUREUNIT_FAMILY: "measureunit-family",
|
|
24
|
+
MEDIA: "media",
|
|
25
|
+
PRICELIST: "pricelists",
|
|
26
|
+
PRICELIST_ITEM: "pricelistsitems",
|
|
27
|
+
TEAM: "teams",
|
|
28
|
+
RETURN_REASON: "return-reason",
|
|
29
|
+
REP: "rep",
|
|
30
|
+
TAG: "tag",
|
|
31
|
+
WAREHOUSE: "warehouse",
|
|
32
|
+
ROUTE: "route",
|
|
33
|
+
PRODUCT_MODIFIERS_GROUP: "product-modifiers-group",
|
|
34
|
+
CHANNEL: "client-channel",
|
|
35
|
+
SPECIALITY: "speciality",
|
|
36
|
+
CLIENT_CONTACT: "client-contact",
|
|
37
|
+
PAYMENT_TERM: "paymentterms",
|
|
38
|
+
BANK: "banks",
|
|
39
|
+
BANK_LIST: "bankslists",
|
|
40
|
+
CUSTOM_STATUS: "custom-status",
|
|
41
|
+
CUSTOM_LIST: "custom-list",
|
|
42
|
+
CUSTOM_LIST_ITEM: "custom-list-item",
|
|
43
|
+
INVENTORY_ADJUSTMENT_REASON: "inventory-adjustment-reason",
|
|
44
|
+
WORKORDER: "workorder",
|
|
45
|
+
WORKORDER_REQUEST: "workorder-request",
|
|
46
|
+
SUPPLIER: "supplier",
|
|
47
|
+
QUICK_CONVERT_TO_PDF: "quick-convert-to-pdf",
|
|
48
|
+
VISIT: "visit",
|
|
49
|
+
INVOICE: "fullinvoices",
|
|
50
|
+
PROFORMA: "proforma",
|
|
51
|
+
PAYMENT: "payments",
|
|
52
|
+
REFUND: "refund",
|
|
53
|
+
SETTLEMENT: "settlement",
|
|
54
|
+
CHECK: "checks",
|
|
55
|
+
DAY: "day",
|
|
56
|
+
RECEIVING_MATERIAL: "receiving-material",
|
|
57
|
+
ADJUST_ACCOUNT: "adjust-account",
|
|
58
|
+
TRANSFER: "transfer",
|
|
59
|
+
MSL: "msl",
|
|
60
|
+
MSL_PRODUCT: "msl-products",
|
|
61
|
+
MEDIA_STORAGE: "media-storage",
|
|
62
|
+
STORECHECK_TEMPLATE: "storecheck-template",
|
|
63
|
+
ACTIVITY_STORECHECK: "activity-storecheck",
|
|
64
|
+
ADJUST_INVENTORY: "adjust-inventory",
|
|
65
|
+
INVENTORY: "inventory",
|
|
66
|
+
INTEGRATION_APP: "integration-app",
|
|
67
|
+
JOIN_ACTIONS_WEBHOOK: "svix-integration",
|
|
68
|
+
INTEGRATION_ACTION_LOG: "integration-action-log",
|
|
69
|
+
INTEGRATION_COMMAND_LOG: "integration-command-log",
|
|
70
|
+
PATCH_ACTION: "patch-action",
|
|
71
|
+
UPDATE_INTEGRATION_META: "update-integration-meta",
|
|
72
|
+
ASSET_PART_TYPE: "asset-part-type",
|
|
73
|
+
ASSET_PART: "asset-part",
|
|
74
|
+
ASSET_PART_UNIT: "asset-part-unit",
|
|
75
|
+
ASSET_PART_RECEIVAL: "asset-part-receival",
|
|
76
|
+
ASSET_PART_TRANSFER: "asset-part-transfer",
|
|
77
|
+
RETURN_ASSET_PART_UNIT: "return-asset-part-unit",
|
|
78
|
+
STORE_ASSET_PART_UNIT: "store-asset-part-unit",
|
|
79
|
+
OCR_INVOICE_JOB_TEMPLATE: "ocr-invoice-job-template",
|
|
80
|
+
OCR_INVOICE_JOB_GROUP: "ocr-invoice-job-group",
|
|
81
|
+
ACTIVITY_AI_SALES_ORDER: "activity-ai-sales-order",
|
|
82
|
+
OCR_INVOICE_JOB: "ocr-invoice-job",
|
|
83
|
+
OCR_INVOICE_JOB_PAGE: "ocr-invoice-job-page",
|
|
84
|
+
SETTINGS: "settings",
|
|
85
|
+
MAIL_UNSUBSCRIBE: "mail-unsubscribe",
|
|
86
|
+
APPROVAL_REQUEST: "approval-request",
|
|
87
|
+
SAFE_INVOICE_SERIAL_COUNTER: "safe-invoice-serial-counter",
|
|
88
|
+
CLIENT_LOCATION: "client-location",
|
|
89
|
+
ASSET_TYPE: "asset-type",
|
|
90
|
+
ASSET: "asset",
|
|
91
|
+
ASSET_UNIT: "asset-unit",
|
|
92
|
+
WORKORDER_PORTAL: "workorder-portal",
|
|
93
|
+
APPROVAL: "approvals",
|
|
94
|
+
ACTIVITY_FEEDBACK: "activity-feedback",
|
|
95
|
+
ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
|
|
96
|
+
FEEDBACK_OPTION: "feedback-options",
|
|
97
|
+
WORKORDER_CATEGORY: "workorder-category",
|
|
98
|
+
CONTRACT: "contract",
|
|
99
|
+
CONTRACT_INSTALLMENT: "contract-installment",
|
|
100
|
+
} as const;
|
|
101
|
+
export type EndPoints = typeof end_points[keyof typeof end_points];
|
|
102
|
+
|
|
13
103
|
export default class Repzo {
|
|
14
104
|
private svAPIEndpoint: string;
|
|
15
105
|
headers: Headers;
|
|
@@ -37,94 +127,7 @@ export default class Repzo {
|
|
|
37
127
|
}
|
|
38
128
|
}
|
|
39
129
|
|
|
40
|
-
private static _end_points =
|
|
41
|
-
CLIENT: "client",
|
|
42
|
-
PRODUCT: "product",
|
|
43
|
-
VARIANT: "variant",
|
|
44
|
-
CATEGORY: "product-category",
|
|
45
|
-
SUB_CATEGORY: "product-sub-category",
|
|
46
|
-
BRAND: "product-brand",
|
|
47
|
-
PRODUCT_GROUP: "product-group",
|
|
48
|
-
TAX: "tax",
|
|
49
|
-
MEASUREUNIT: "measureunits",
|
|
50
|
-
MEASUREUNIT_FAMILY: "measureunit-family",
|
|
51
|
-
MEDIA: "media",
|
|
52
|
-
PRICELIST: "pricelists",
|
|
53
|
-
PRICELIST_ITEM: "pricelistsitems",
|
|
54
|
-
TEAM: "teams",
|
|
55
|
-
RETURN_REASON: "return-reason",
|
|
56
|
-
REP: "rep",
|
|
57
|
-
TAG: "tag",
|
|
58
|
-
WAREHOUSE: "warehouse",
|
|
59
|
-
ROUTE: "route",
|
|
60
|
-
PRODUCT_MODIFIERS_GROUP: "product-modifiers-group",
|
|
61
|
-
CHANNEL: "client-channel",
|
|
62
|
-
SPECIALITY: "speciality",
|
|
63
|
-
CLIENT_CONTACT: "client-contact",
|
|
64
|
-
PAYMENT_TERM: "paymentterms",
|
|
65
|
-
BANK: "banks",
|
|
66
|
-
BANK_LIST: "bankslists",
|
|
67
|
-
CUSTOM_STATUS: "custom-status",
|
|
68
|
-
CUSTOM_LIST: "custom-list",
|
|
69
|
-
CUSTOM_LIST_ITEM: "custom-list-item",
|
|
70
|
-
INVENTORY_ADJUSTMENT_REASON: "inventory-adjustment-reason",
|
|
71
|
-
WORKORDER: "workorder",
|
|
72
|
-
WORKORDER_REQUEST: "workorder-request",
|
|
73
|
-
SUPPLIER: "supplier",
|
|
74
|
-
QUICK_CONVERT_TO_PDF: "quick-convert-to-pdf",
|
|
75
|
-
VISIT: "visit",
|
|
76
|
-
INVOICE: "fullinvoices",
|
|
77
|
-
PROFORMA: "proforma",
|
|
78
|
-
PAYMENT: "payments",
|
|
79
|
-
REFUND: "refund",
|
|
80
|
-
SETTLEMENT: "settlement",
|
|
81
|
-
CHECK: "checks",
|
|
82
|
-
DAY: "day",
|
|
83
|
-
RECEIVING_MATERIAL: "receiving-material",
|
|
84
|
-
ADJUST_ACCOUNT: "adjust-account",
|
|
85
|
-
TRANSFER: "transfer",
|
|
86
|
-
MSL: "msl",
|
|
87
|
-
MSL_PRODUCT: "msl-products",
|
|
88
|
-
MEDIA_STORAGE: "media-storage",
|
|
89
|
-
STORECHECK_TEMPLATE: "storecheck-template",
|
|
90
|
-
ACTIVITY_STORECHECK: "activity-storecheck",
|
|
91
|
-
ADJUST_INVENTORY: "adjust-inventory",
|
|
92
|
-
INVENTORY: "inventory",
|
|
93
|
-
INTEGRATION_APP: "integration-app",
|
|
94
|
-
JOIN_ACTIONS_WEBHOOK: "svix-integration",
|
|
95
|
-
INTEGRATION_ACTION_LOG: "integration-action-log",
|
|
96
|
-
INTEGRATION_COMMAND_LOG: "integration-command-log",
|
|
97
|
-
PATCH_ACTION: "patch-action",
|
|
98
|
-
UPDATE_INTEGRATION_META: "update-integration-meta",
|
|
99
|
-
ASSET_PART_TYPE: "asset-part-type",
|
|
100
|
-
ASSET_PART: "asset-part",
|
|
101
|
-
ASSET_PART_UNIT: "asset-part-unit",
|
|
102
|
-
ASSET_PART_RECEIVAL: "asset-part-receival",
|
|
103
|
-
ASSET_PART_TRANSFER: "asset-part-transfer",
|
|
104
|
-
RETURN_ASSET_PART_UNIT: "return-asset-part-unit",
|
|
105
|
-
STORE_ASSET_PART_UNIT: "store-asset-part-unit",
|
|
106
|
-
OCR_INVOICE_JOB_TEMPLATE: "ocr-invoice-job-template",
|
|
107
|
-
OCR_INVOICE_JOB_GROUP: "ocr-invoice-job-group",
|
|
108
|
-
ACTIVITY_AI_SALES_ORDER: "activity-ai-sales-order",
|
|
109
|
-
OCR_INVOICE_JOB: "ocr-invoice-job",
|
|
110
|
-
OCR_INVOICE_JOB_PAGE: "ocr-invoice-job-page",
|
|
111
|
-
SETTINGS: "settings",
|
|
112
|
-
MAIL_UNSUBSCRIBE: "mail-unsubscribe",
|
|
113
|
-
APPROVAL_REQUEST: "approval-request",
|
|
114
|
-
SAFE_INVOICE_SERIAL_COUNTER: "safe-invoice-serial-counter",
|
|
115
|
-
CLIENT_LOCATION: "client-location",
|
|
116
|
-
ASSET_TYPE: "asset-type",
|
|
117
|
-
ASSET: "asset",
|
|
118
|
-
ASSET_UNIT: "asset-unit",
|
|
119
|
-
WORKORDER_PORTAL: "workorder-portal",
|
|
120
|
-
APPROVAL: "approvals",
|
|
121
|
-
ACTIVITY_FEEDBACK: "activity-feedback",
|
|
122
|
-
ACTIVITY_FEEDBACKV2: "activity-feedback-v2",
|
|
123
|
-
FEEDBACK_OPTION: "feedback-options",
|
|
124
|
-
WORKORDER_CATEGORY: "workorder-category",
|
|
125
|
-
CONTRACT: "contract",
|
|
126
|
-
CONTRACT_INSTALLMENT: "contract-installment",
|
|
127
|
-
} as const;
|
|
130
|
+
private static _end_points = end_points;
|
|
128
131
|
public static get END_POINTS() {
|
|
129
132
|
return Repzo._end_points;
|
|
130
133
|
}
|