repzo 1.0.153 → 1.0.155
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 +512 -222
- package/lib/types/index.js +2 -1
- package/package.json +1 -1
- package/src/types/index.ts +1225 -247
package/changelog.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ export declare const end_points: {
|
|
|
90
90
|
readonly WORKORDER_PORTAL_LINK: "workorder-portal-link";
|
|
91
91
|
readonly CUSTOM_FIELD: "customfields";
|
|
92
92
|
readonly TIMELINE_REPORT: "timeline-report";
|
|
93
|
+
readonly RESET_COMPANY_NAMESPACE: "reset-company-namespace";
|
|
94
|
+
readonly TEST_RESET_COMPANY_NAMESPACE: "test-reset-company-namespace";
|
|
93
95
|
};
|
|
94
96
|
export type EndPoints = (typeof end_points)[keyof typeof end_points];
|
|
95
97
|
declare const availableService: readonly ["client", "product", "variant", "category", "sub_category", "brand", "product_group", "tax", "measureunit", "measureunitFamily", "media", "priceList", "priceListItem", "team", "returnReason", "rep", "tag", "warehouse", "route", "productModifiersGroup", "channel", "speciality", "clientContact", "paymentTerm", "bank", "bank_list", "customStatus", "customList", "customListItem", "inventoryAdjustmentReason", "workorder", "workorderRequest", "supplier", "quickConvertToPdf", "visit", "activityFeedback", "activityFeedbackV2", "feedbackOption", "invoice", "proforma", "payment", "refund", "settlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "adjustInventory", "inventory", "integrationApp", "joinActionsWebHook", "patchAction", "updateIntegrationMeta", "assetPartType", "assetPart", "assetPartUnit", "assetPartReceival", "assetPartTransfer", "returnAssetPartUnit", "storeAssetPartUnit", "ocrInvoiceJobTemplate", "ocrInvoiceJobGroup", "activityAiSalesOrder", "ocrInvoiceJob", "ocrInvoiceJobPage", "settings", "mailUnsubscribe", "approvalRequest", "safeInvoiceSerialCounter", "clientLocation", "assetType", "asset", "assetUnit", "workorderPortal", "approval", "workorderCategory", "contract", "contractInstallment", "repBalanceSummary", "workorderPortalLink", "customField"];
|
|
@@ -191,6 +193,8 @@ export default class Repzo {
|
|
|
191
193
|
readonly WORKORDER_PORTAL_LINK: "workorder-portal-link";
|
|
192
194
|
readonly CUSTOM_FIELD: "customfields";
|
|
193
195
|
readonly TIMELINE_REPORT: "timeline-report";
|
|
196
|
+
readonly RESET_COMPANY_NAMESPACE: "reset-company-namespace";
|
|
197
|
+
readonly TEST_RESET_COMPANY_NAMESPACE: "test-reset-company-namespace";
|
|
194
198
|
};
|
|
195
199
|
private _fetch;
|
|
196
200
|
private _create;
|
|
@@ -912,5 +916,19 @@ export default class Repzo {
|
|
|
912
916
|
_path: "timeline-report";
|
|
913
917
|
find: (params?: Service.TimelineReport.Find.Params) => Promise<Service.TimelineReport.Find.Result>;
|
|
914
918
|
};
|
|
919
|
+
resetCompanyNamespace: {
|
|
920
|
+
_path: "reset-company-namespace";
|
|
921
|
+
find: (params?: Service.ResetCompanyNamespace.Find.Params) => Promise<Service.ResetCompanyNamespace.Find.Result>;
|
|
922
|
+
get: (id: Service.ResetCompanyNamespace.Get.ID, params?: Service.ResetCompanyNamespace.Get.Params) => Promise<Service.ResetCompanyNamespace.Get.Result>;
|
|
923
|
+
create: (body: Service.ResetCompanyNamespace.Create.Body) => Promise<Service.ResetCompanyNamespace.Create.Result>;
|
|
924
|
+
update: (id: Service.ResetCompanyNamespace.Update.ID) => Promise<Service.ResetCompanyNamespace.Update.Result>;
|
|
925
|
+
};
|
|
926
|
+
testResetCompanyNamespace: {
|
|
927
|
+
_path: "test-reset-company-namespace";
|
|
928
|
+
find: (params?: Service.TestResetCompanyNamespace.Find.Params) => Promise<Service.TestResetCompanyNamespace.Find.Result>;
|
|
929
|
+
get: (id: Service.TestResetCompanyNamespace.Get.ID, params?: Service.TestResetCompanyNamespace.Get.Params) => Promise<Service.TestResetCompanyNamespace.Get.Result>;
|
|
930
|
+
create: (body: Service.TestResetCompanyNamespace.Create.Body) => Promise<Service.TestResetCompanyNamespace.Create.Result>;
|
|
931
|
+
update: (id: Service.TestResetCompanyNamespace.Update.ID) => Promise<Service.TestResetCompanyNamespace.Update.Result>;
|
|
932
|
+
};
|
|
915
933
|
}
|
|
916
934
|
export {};
|
package/lib/index.js
CHANGED
|
@@ -91,6 +91,8 @@ export const end_points = {
|
|
|
91
91
|
WORKORDER_PORTAL_LINK: "workorder-portal-link",
|
|
92
92
|
CUSTOM_FIELD: "customfields",
|
|
93
93
|
TIMELINE_REPORT: "timeline-report",
|
|
94
|
+
RESET_COMPANY_NAMESPACE: "reset-company-namespace",
|
|
95
|
+
TEST_RESET_COMPANY_NAMESPACE: "test-reset-company-namespace",
|
|
94
96
|
};
|
|
95
97
|
const availableService = [
|
|
96
98
|
"client",
|
|
@@ -1851,6 +1853,42 @@ class Repzo {
|
|
|
1851
1853
|
return res;
|
|
1852
1854
|
},
|
|
1853
1855
|
};
|
|
1856
|
+
this.resetCompanyNamespace = {
|
|
1857
|
+
_path: Repzo._end_points.RESET_COMPANY_NAMESPACE,
|
|
1858
|
+
find: async (params) => {
|
|
1859
|
+
let res = await this._fetch(this.svAPIEndpoint, this.resetCompanyNamespace._path, params);
|
|
1860
|
+
return res;
|
|
1861
|
+
},
|
|
1862
|
+
get: async (id, params) => {
|
|
1863
|
+
return await this._fetch(this.svAPIEndpoint, this.resetCompanyNamespace._path + `/${id}`, params);
|
|
1864
|
+
},
|
|
1865
|
+
create: async (body) => {
|
|
1866
|
+
let res = await this._create(this.svAPIEndpoint, this.resetCompanyNamespace._path, body);
|
|
1867
|
+
return res;
|
|
1868
|
+
},
|
|
1869
|
+
update: async (id) => {
|
|
1870
|
+
let res = await this._update(this.svAPIEndpoint, this.resetCompanyNamespace._path + `/${id}`, {});
|
|
1871
|
+
return res;
|
|
1872
|
+
},
|
|
1873
|
+
};
|
|
1874
|
+
this.testResetCompanyNamespace = {
|
|
1875
|
+
_path: Repzo._end_points.TEST_RESET_COMPANY_NAMESPACE,
|
|
1876
|
+
find: async (params) => {
|
|
1877
|
+
let res = await this._fetch(this.svAPIEndpoint, this.testResetCompanyNamespace._path, params);
|
|
1878
|
+
return res;
|
|
1879
|
+
},
|
|
1880
|
+
get: async (id, params) => {
|
|
1881
|
+
return await this._fetch(this.svAPIEndpoint, this.testResetCompanyNamespace._path + `/${id}`, params);
|
|
1882
|
+
},
|
|
1883
|
+
create: async (body) => {
|
|
1884
|
+
let res = await this._create(this.svAPIEndpoint, this.testResetCompanyNamespace._path, body);
|
|
1885
|
+
return res;
|
|
1886
|
+
},
|
|
1887
|
+
update: async (id) => {
|
|
1888
|
+
let res = await this._update(this.svAPIEndpoint, this.testResetCompanyNamespace._path + `/${id}`, {});
|
|
1889
|
+
return res;
|
|
1890
|
+
},
|
|
1891
|
+
};
|
|
1854
1892
|
this.svAPIEndpoint =
|
|
1855
1893
|
!options?.env || options?.env == "production"
|
|
1856
1894
|
? "https://sv.api.repzo.me"
|