repzo 1.0.207 → 1.0.208
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 +8 -2
- package/lib/index.js +9 -0
- package/lib/types/index.d.ts +14 -3
- package/package.json +1 -1
- package/src/index.ts +16 -0
- package/src/types/index.ts +22 -3
package/lib/index.d.ts
CHANGED
|
@@ -111,9 +111,10 @@ export declare const end_points: {
|
|
|
111
111
|
readonly CLM_SEQUENCE: "clm-sequence";
|
|
112
112
|
readonly CLM_SLIDE: "clm-slide";
|
|
113
113
|
readonly CLM_FEEDBACK_ACTIVITY: "clm-feedback-activity";
|
|
114
|
+
readonly CLM_FETCH: "clm-fetch";
|
|
114
115
|
};
|
|
115
116
|
export type EndPoints = (typeof end_points)[keyof typeof end_points];
|
|
116
|
-
export 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", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide"];
|
|
117
|
+
export 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", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch"];
|
|
117
118
|
export type AvailableService = (typeof availableService)[number];
|
|
118
119
|
export default class Repzo {
|
|
119
120
|
private svAPIEndpoint;
|
|
@@ -233,13 +234,14 @@ export default class Repzo {
|
|
|
233
234
|
readonly CLM_SEQUENCE: "clm-sequence";
|
|
234
235
|
readonly CLM_SLIDE: "clm-slide";
|
|
235
236
|
readonly CLM_FEEDBACK_ACTIVITY: "clm-feedback-activity";
|
|
237
|
+
readonly CLM_FETCH: "clm-fetch";
|
|
236
238
|
};
|
|
237
239
|
private _fetch;
|
|
238
240
|
private _create;
|
|
239
241
|
private _update;
|
|
240
242
|
private _patch;
|
|
241
243
|
private _delete;
|
|
242
|
-
available_services: 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", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide"];
|
|
244
|
+
available_services: 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", "salesAnalyticsReport", "clmPresentation", "clmSequence", "clmSlide", "clmFetch"];
|
|
243
245
|
client: {
|
|
244
246
|
_path: "client";
|
|
245
247
|
find: (params?: Service.Client.Find.Params) => Promise<Service.Client.Find.Result>;
|
|
@@ -1104,4 +1106,8 @@ export default class Repzo {
|
|
|
1104
1106
|
get: (id: Service.CLMFeedbackActivity.Get.ID, params?: Service.CLMFeedbackActivity.Get.Params) => Promise<Service.CLMFeedbackActivity.Get.Result>;
|
|
1105
1107
|
create: (body: Service.CLMFeedbackActivity.Create.Body) => Promise<Service.CLMFeedbackActivity.Create.Result>;
|
|
1106
1108
|
};
|
|
1109
|
+
clmFetch: {
|
|
1110
|
+
_path: "clm-fetch";
|
|
1111
|
+
find: (params?: Service.CLMFetch.Find.Params) => Promise<Service.CLMFetch.Find.Result>;
|
|
1112
|
+
};
|
|
1107
1113
|
}
|
package/lib/index.js
CHANGED
|
@@ -112,6 +112,7 @@ export const end_points = {
|
|
|
112
112
|
CLM_SEQUENCE: "clm-sequence",
|
|
113
113
|
CLM_SLIDE: "clm-slide",
|
|
114
114
|
CLM_FEEDBACK_ACTIVITY: "clm-feedback-activity",
|
|
115
|
+
CLM_FETCH: "clm-fetch",
|
|
115
116
|
};
|
|
116
117
|
export const availableService = [
|
|
117
118
|
"client",
|
|
@@ -205,6 +206,7 @@ export const availableService = [
|
|
|
205
206
|
"clmPresentation",
|
|
206
207
|
"clmSequence",
|
|
207
208
|
"clmSlide",
|
|
209
|
+
"clmFetch",
|
|
208
210
|
];
|
|
209
211
|
class Repzo {
|
|
210
212
|
constructor(apiKey, options) {
|
|
@@ -2275,6 +2277,13 @@ class Repzo {
|
|
|
2275
2277
|
return res;
|
|
2276
2278
|
},
|
|
2277
2279
|
};
|
|
2280
|
+
this.clmFetch = {
|
|
2281
|
+
_path: Repzo._end_points.CLM_FETCH,
|
|
2282
|
+
find: async (params) => {
|
|
2283
|
+
let res = await this._fetch(this.svAPIEndpoint, this.clmFetch._path, params);
|
|
2284
|
+
return res;
|
|
2285
|
+
},
|
|
2286
|
+
};
|
|
2278
2287
|
this.svAPIEndpoint =
|
|
2279
2288
|
!options?.env || options?.env == "production"
|
|
2280
2289
|
? "https://sv.api.repzo.me"
|
package/lib/types/index.d.ts
CHANGED
|
@@ -549,6 +549,7 @@ export declare namespace Service {
|
|
|
549
549
|
type: "asc" | "desc";
|
|
550
550
|
}[];
|
|
551
551
|
customFields?: Record<string, string | number | boolean | StringId>;
|
|
552
|
+
assigned_clm_presentations?: string[] | string;
|
|
552
553
|
integration_meta?: Record<string, any>;
|
|
553
554
|
[key: string]: any;
|
|
554
555
|
};
|
|
@@ -2715,11 +2716,11 @@ export declare namespace Service {
|
|
|
2715
2716
|
"settings.treating_invoice_as_proforma_for_etax"?: boolean;
|
|
2716
2717
|
is_test?: boolean;
|
|
2717
2718
|
form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
|
|
2718
|
-
assigned_forms_v2?:
|
|
2719
|
+
assigned_forms_v2?: StringId | StringId[];
|
|
2719
2720
|
retail_execution_template_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2720
|
-
assigned_retail_execution_templates?:
|
|
2721
|
+
assigned_retail_execution_templates?: StringId | StringId[];
|
|
2721
2722
|
clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2722
|
-
assigned_clm_presentations?:
|
|
2723
|
+
assigned_clm_presentations?: StringId | StringId[];
|
|
2723
2724
|
media?: string | string[];
|
|
2724
2725
|
cover_photo?: string;
|
|
2725
2726
|
last_login_time?: number;
|
|
@@ -17270,6 +17271,16 @@ export declare namespace Service {
|
|
|
17270
17271
|
}
|
|
17271
17272
|
export {};
|
|
17272
17273
|
}
|
|
17274
|
+
namespace CLMFetch {
|
|
17275
|
+
namespace Find {
|
|
17276
|
+
type Params = {
|
|
17277
|
+
type: "presentation" | "sequence" | "slide";
|
|
17278
|
+
me?: boolean;
|
|
17279
|
+
client?: StringId | StringId[];
|
|
17280
|
+
} & (CLMPresentation.Find.Params | CLMSequence.Find.Params | CLMSlide.Find.Params);
|
|
17281
|
+
type Result = CLMPresentation.Find.Result | CLMSequence.Find.Result | CLMSlide.Find.Result;
|
|
17282
|
+
}
|
|
17283
|
+
}
|
|
17273
17284
|
}
|
|
17274
17285
|
export type StringId = string;
|
|
17275
17286
|
export type NameSpaces = string[];
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -122,6 +122,7 @@ export const end_points = {
|
|
|
122
122
|
CLM_SEQUENCE: "clm-sequence",
|
|
123
123
|
CLM_SLIDE: "clm-slide",
|
|
124
124
|
CLM_FEEDBACK_ACTIVITY: "clm-feedback-activity",
|
|
125
|
+
CLM_FETCH: "clm-fetch",
|
|
125
126
|
} as const;
|
|
126
127
|
export type EndPoints = (typeof end_points)[keyof typeof end_points];
|
|
127
128
|
|
|
@@ -217,6 +218,7 @@ export const availableService = [
|
|
|
217
218
|
"clmPresentation",
|
|
218
219
|
"clmSequence",
|
|
219
220
|
"clmSlide",
|
|
221
|
+
"clmFetch",
|
|
220
222
|
] as const;
|
|
221
223
|
export type AvailableService = (typeof availableService)[number];
|
|
222
224
|
|
|
@@ -5767,6 +5769,20 @@ export default class Repzo {
|
|
|
5767
5769
|
return res;
|
|
5768
5770
|
},
|
|
5769
5771
|
};
|
|
5772
|
+
|
|
5773
|
+
clmFetch = {
|
|
5774
|
+
_path: Repzo._end_points.CLM_FETCH,
|
|
5775
|
+
find: async (
|
|
5776
|
+
params?: Service.CLMFetch.Find.Params,
|
|
5777
|
+
): Promise<Service.CLMFetch.Find.Result> => {
|
|
5778
|
+
let res: Service.CLMFetch.Find.Result = await this._fetch(
|
|
5779
|
+
this.svAPIEndpoint,
|
|
5780
|
+
this.clmFetch._path,
|
|
5781
|
+
params,
|
|
5782
|
+
);
|
|
5783
|
+
return res;
|
|
5784
|
+
},
|
|
5785
|
+
};
|
|
5770
5786
|
}
|
|
5771
5787
|
|
|
5772
5788
|
function normalizeParams(params: Params): { [key: string]: any } {
|
package/src/types/index.ts
CHANGED
|
@@ -747,6 +747,7 @@ export namespace Service {
|
|
|
747
747
|
type: "asc" | "desc";
|
|
748
748
|
}[];
|
|
749
749
|
customFields?: Record<string, string | number | boolean | StringId>;
|
|
750
|
+
assigned_clm_presentations?: string[] | string;
|
|
750
751
|
integration_meta?: Record<string, any>;
|
|
751
752
|
// Index signatures for dynamic keys
|
|
752
753
|
// [key: `integration_meta.${string}`]: any;
|
|
@@ -3128,19 +3129,19 @@ export namespace Service {
|
|
|
3128
3129
|
"settings.treating_invoice_as_proforma_for_etax"?: boolean;
|
|
3129
3130
|
is_test?: boolean;
|
|
3130
3131
|
form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
|
|
3131
|
-
assigned_forms_v2?:
|
|
3132
|
+
assigned_forms_v2?: StringId | StringId[];
|
|
3132
3133
|
retail_execution_template_option?:
|
|
3133
3134
|
| "all"
|
|
3134
3135
|
| "client_assigned"
|
|
3135
3136
|
| "assigned"
|
|
3136
3137
|
| "none";
|
|
3137
|
-
assigned_retail_execution_templates?:
|
|
3138
|
+
assigned_retail_execution_templates?: StringId | StringId[];
|
|
3138
3139
|
clm_presentation_option?:
|
|
3139
3140
|
| "all"
|
|
3140
3141
|
| "client_assigned"
|
|
3141
3142
|
| "assigned"
|
|
3142
3143
|
| "none";
|
|
3143
|
-
assigned_clm_presentations?:
|
|
3144
|
+
assigned_clm_presentations?: StringId | StringId[];
|
|
3144
3145
|
media?: string | string[];
|
|
3145
3146
|
cover_photo?: string;
|
|
3146
3147
|
last_login_time?: number;
|
|
@@ -19550,6 +19551,24 @@ export namespace Service {
|
|
|
19550
19551
|
export type Result = Data;
|
|
19551
19552
|
}
|
|
19552
19553
|
}
|
|
19554
|
+
|
|
19555
|
+
export namespace CLMFetch {
|
|
19556
|
+
export namespace Find {
|
|
19557
|
+
export type Params = {
|
|
19558
|
+
type: "presentation" | "sequence" | "slide";
|
|
19559
|
+
me?: boolean;
|
|
19560
|
+
client?: StringId | StringId[];
|
|
19561
|
+
} & (
|
|
19562
|
+
| CLMPresentation.Find.Params
|
|
19563
|
+
| CLMSequence.Find.Params
|
|
19564
|
+
| CLMSlide.Find.Params
|
|
19565
|
+
);
|
|
19566
|
+
export type Result =
|
|
19567
|
+
| CLMPresentation.Find.Result
|
|
19568
|
+
| CLMSequence.Find.Result
|
|
19569
|
+
| CLMSlide.Find.Result;
|
|
19570
|
+
}
|
|
19571
|
+
}
|
|
19553
19572
|
}
|
|
19554
19573
|
|
|
19555
19574
|
export type StringId = string;
|