repzo 1.0.152 → 1.0.154
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 +6 -0
- package/lib/index.js +8 -0
- package/lib/types/index.d.ts +1388 -71
- package/lib/types/index.js +91 -1
- package/package.json +1 -1
- package/src/types/index.ts +1881 -91
package/lib/index.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export declare const end_points: {
|
|
|
89
89
|
readonly CONTRACT_INSTALLMENT: "contract-installment";
|
|
90
90
|
readonly WORKORDER_PORTAL_LINK: "workorder-portal-link";
|
|
91
91
|
readonly CUSTOM_FIELD: "customfields";
|
|
92
|
+
readonly TIMELINE_REPORT: "timeline-report";
|
|
92
93
|
};
|
|
93
94
|
export type EndPoints = (typeof end_points)[keyof typeof end_points];
|
|
94
95
|
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"];
|
|
@@ -189,6 +190,7 @@ export default class Repzo {
|
|
|
189
190
|
readonly CONTRACT_INSTALLMENT: "contract-installment";
|
|
190
191
|
readonly WORKORDER_PORTAL_LINK: "workorder-portal-link";
|
|
191
192
|
readonly CUSTOM_FIELD: "customfields";
|
|
193
|
+
readonly TIMELINE_REPORT: "timeline-report";
|
|
192
194
|
};
|
|
193
195
|
private _fetch;
|
|
194
196
|
private _create;
|
|
@@ -906,5 +908,9 @@ export default class Repzo {
|
|
|
906
908
|
update: (id: Service.CustomField.Update.ID, body: Service.CustomField.Update.Body) => Promise<Service.CustomField.Update.Result>;
|
|
907
909
|
remove: (id: Service.CustomField.Update.ID, params: Service.CustomField.Remove.Params) => Promise<Service.CustomField.Remove.Result>;
|
|
908
910
|
};
|
|
911
|
+
timelineReport: {
|
|
912
|
+
_path: "timeline-report";
|
|
913
|
+
find: (params?: Service.TimelineReport.Find.Params) => Promise<Service.TimelineReport.Find.Result>;
|
|
914
|
+
};
|
|
909
915
|
}
|
|
910
916
|
export {};
|
package/lib/index.js
CHANGED
|
@@ -90,6 +90,7 @@ export const end_points = {
|
|
|
90
90
|
CONTRACT_INSTALLMENT: "contract-installment",
|
|
91
91
|
WORKORDER_PORTAL_LINK: "workorder-portal-link",
|
|
92
92
|
CUSTOM_FIELD: "customfields",
|
|
93
|
+
TIMELINE_REPORT: "timeline-report",
|
|
93
94
|
};
|
|
94
95
|
const availableService = [
|
|
95
96
|
"client",
|
|
@@ -1843,6 +1844,13 @@ class Repzo {
|
|
|
1843
1844
|
return res;
|
|
1844
1845
|
},
|
|
1845
1846
|
};
|
|
1847
|
+
this.timelineReport = {
|
|
1848
|
+
_path: Repzo._end_points.TIMELINE_REPORT,
|
|
1849
|
+
find: async (params) => {
|
|
1850
|
+
let res = await this._fetch(this.svAPIEndpoint, this.timelineReport._path, params);
|
|
1851
|
+
return res;
|
|
1852
|
+
},
|
|
1853
|
+
};
|
|
1846
1854
|
this.svAPIEndpoint =
|
|
1847
1855
|
!options?.env || options?.env == "production"
|
|
1848
1856
|
? "https://sv.api.repzo.me"
|