repzo 1.0.206 → 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 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"
@@ -392,6 +392,7 @@ export declare namespace Service {
392
392
  last_login_time?: number;
393
393
  assigned_forms_v2_templates?: StringId[];
394
394
  retail_execution_templates?: StringId[];
395
+ assigned_clm_presentations?: StringId[];
395
396
  last_sales_invoice_time?: number;
396
397
  last_sales_proforma_time?: number;
397
398
  media?: StringId[];
@@ -474,13 +475,14 @@ export declare namespace Service {
474
475
  last_login_time?: number;
475
476
  assigned_forms_v2_templates?: StringId[];
476
477
  retail_execution_templates?: StringId[];
478
+ assigned_clm_presentations?: StringId[];
477
479
  last_sales_invoice_time?: number;
478
480
  last_sales_proforma_time?: number;
479
481
  media?: StringId[];
480
482
  cover_photo?: StringId;
481
483
  sales?: Sales;
482
484
  }
483
- export type PopulatedKeys = "tags" | "reps" | "assigned_to" | "sv_priceList" | "paymentTerm" | "job_category" | "msl" | "chain" | "channel" | "status" | "product" | "assigned_products" | "assigned_product_groups" | "speciality" | "teams" | "contacts" | "retail_execution_templates" | "assigned_forms_v2_templates" | "media" | "cover_photo" | "sales.logo_media";
485
+ export type PopulatedKeys = "tags" | "reps" | "assigned_to" | "sv_priceList" | "paymentTerm" | "job_category" | "msl" | "chain" | "channel" | "status" | "product" | "assigned_products" | "assigned_product_groups" | "speciality" | "teams" | "contacts" | "retail_execution_templates" | "assigned_forms_v2_templates" | "assigned_clm_presentations" | "media" | "cover_photo" | "sales.logo_media";
484
486
  type ClientSchemaWithPopulatedKeys = ClientSchema & {
485
487
  assigned_products?: StringId[] | Pick<Product.ProductSchema, "_id" | "name">[];
486
488
  assigned_product_groups?: StringId | Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
@@ -495,6 +497,7 @@ export declare namespace Service {
495
497
  chain?: StringId | Pick<Client.ClientSchema, "_id" | "name" | "client_code" | "local_name">;
496
498
  channel?: StringId | Channel.ChannelSchema;
497
499
  assigned_forms_v2_templates?: StringId[] | Pick<FormPopulated, "_id" | "name">[];
500
+ assigned_clm_presentations?: StringId[] | Pick<CLMPresentation.Data, "_id" | "name">[];
498
501
  retail_execution_templates?: StringId[] | Pick<RetailExecutionTemplatePopulated, "_id" | "name">[];
499
502
  media?: StringId[] | PopulatedMediaStorage[];
500
503
  cover_photo?: StringId | PopulatedMediaStorage;
@@ -546,6 +549,7 @@ export declare namespace Service {
546
549
  type: "asc" | "desc";
547
550
  }[];
548
551
  customFields?: Record<string, string | number | boolean | StringId>;
552
+ assigned_clm_presentations?: string[] | string;
549
553
  integration_meta?: Record<string, any>;
550
554
  [key: string]: any;
551
555
  };
@@ -2510,6 +2514,8 @@ export declare namespace Service {
2510
2514
  assigned_forms_v2?: string[];
2511
2515
  retail_execution_template_option?: "all" | "client_assigned" | "assigned" | "none";
2512
2516
  assigned_retail_execution_templates?: string[];
2517
+ clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
2518
+ assigned_clm_presentations?: string[];
2513
2519
  customFields?: {
2514
2520
  [key: string]: boolean | string | number | StringId;
2515
2521
  };
@@ -2568,6 +2574,8 @@ export declare namespace Service {
2568
2574
  assigned_forms_v2?: string[];
2569
2575
  retail_execution_template_option?: "all" | "client_assigned" | "assigned" | "none";
2570
2576
  assigned_retail_execution_templates?: string[];
2577
+ clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
2578
+ assigned_clm_presentations?: string[];
2571
2579
  customFields?: {
2572
2580
  [key: string]: boolean | string | number | StringId;
2573
2581
  };
@@ -2578,7 +2586,7 @@ export declare namespace Service {
2578
2586
  handle_credit_limit?: boolean;
2579
2587
  credit_limit?: number;
2580
2588
  }
2581
- type PopulatedKeys = "line" | "lines" | "job_category" | "teams" | "assigned_forms_v2" | "job_category" | "cover_photo" | "assigned_plan" | "assigned_retail_execution_templates" | "warehouse";
2589
+ type PopulatedKeys = "line" | "lines" | "job_category" | "teams" | "assigned_forms_v2" | "job_category" | "cover_photo" | "assigned_plan" | "assigned_retail_execution_templates" | "assigned_clm_presentations" | "warehouse";
2582
2590
  export type RepWithPopulatedKeysSchema = RepSchema & {
2583
2591
  lines?: string[] | Line.LineSchema[];
2584
2592
  job_category?: string[] | JobCategory.JobCategorySchema[];
@@ -2708,9 +2716,11 @@ export declare namespace Service {
2708
2716
  "settings.treating_invoice_as_proforma_for_etax"?: boolean;
2709
2717
  is_test?: boolean;
2710
2718
  form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
2711
- assigned_forms_v2?: string | string[];
2719
+ assigned_forms_v2?: StringId | StringId[];
2712
2720
  retail_execution_template_option?: "all" | "client_assigned" | "assigned" | "none";
2713
- assigned_retail_execution_templates?: string | string[];
2721
+ assigned_retail_execution_templates?: StringId | StringId[];
2722
+ clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
2723
+ assigned_clm_presentations?: StringId | StringId[];
2714
2724
  media?: string | string[];
2715
2725
  cover_photo?: string;
2716
2726
  last_login_time?: number;
@@ -17261,6 +17271,16 @@ export declare namespace Service {
17261
17271
  }
17262
17272
  export {};
17263
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
+ }
17264
17284
  }
17265
17285
  export type StringId = string;
17266
17286
  export type NameSpaces = string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.206",
3
+ "version": "1.0.208",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
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 } {
@@ -551,6 +551,7 @@ export namespace Service {
551
551
  last_login_time?: number;
552
552
  assigned_forms_v2_templates?: StringId[];
553
553
  retail_execution_templates?: StringId[];
554
+ assigned_clm_presentations?: StringId[];
554
555
  last_sales_invoice_time?: number;
555
556
  last_sales_proforma_time?: number;
556
557
  media?: StringId[];
@@ -630,6 +631,7 @@ export namespace Service {
630
631
  last_login_time?: number;
631
632
  assigned_forms_v2_templates?: StringId[];
632
633
  retail_execution_templates?: StringId[];
634
+ assigned_clm_presentations?: StringId[];
633
635
  last_sales_invoice_time?: number;
634
636
  last_sales_proforma_time?: number;
635
637
  media?: StringId[];
@@ -655,6 +657,7 @@ export namespace Service {
655
657
  | "contacts"
656
658
  | "retail_execution_templates"
657
659
  | "assigned_forms_v2_templates"
660
+ | "assigned_clm_presentations"
658
661
  | "media"
659
662
  | "cover_photo"
660
663
  | "sales.logo_media";
@@ -686,6 +689,9 @@ export namespace Service {
686
689
  assigned_forms_v2_templates?:
687
690
  | StringId[]
688
691
  | Pick<FormPopulated, "_id" | "name">[];
692
+ assigned_clm_presentations?:
693
+ | StringId[]
694
+ | Pick<CLMPresentation.Data, "_id" | "name">[];
689
695
  retail_execution_templates?:
690
696
  | StringId[]
691
697
  | Pick<RetailExecutionTemplatePopulated, "_id" | "name">[];
@@ -741,6 +747,7 @@ export namespace Service {
741
747
  type: "asc" | "desc";
742
748
  }[];
743
749
  customFields?: Record<string, string | number | boolean | StringId>;
750
+ assigned_clm_presentations?: string[] | string;
744
751
  integration_meta?: Record<string, any>;
745
752
  // Index signatures for dynamic keys
746
753
  // [key: `integration_meta.${string}`]: any;
@@ -2895,6 +2902,8 @@ export namespace Service {
2895
2902
  | "assigned"
2896
2903
  | "none";
2897
2904
  assigned_retail_execution_templates?: string[];
2905
+ clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
2906
+ assigned_clm_presentations?: string[];
2898
2907
  customFields?: { [key: string]: boolean | string | number | StringId };
2899
2908
  media?: string[];
2900
2909
  cover_photo?: string;
@@ -2953,6 +2962,8 @@ export namespace Service {
2953
2962
  | "assigned"
2954
2963
  | "none";
2955
2964
  assigned_retail_execution_templates?: string[];
2965
+ clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
2966
+ assigned_clm_presentations?: string[];
2956
2967
  customFields?: { [key: string]: boolean | string | number | StringId };
2957
2968
  media?: string[];
2958
2969
  cover_photo?: string;
@@ -2972,6 +2983,7 @@ export namespace Service {
2972
2983
  | "cover_photo"
2973
2984
  | "assigned_plan"
2974
2985
  | "assigned_retail_execution_templates"
2986
+ | "assigned_clm_presentations"
2975
2987
  | "warehouse";
2976
2988
 
2977
2989
  export type RepWithPopulatedKeysSchema = RepSchema & {
@@ -3117,13 +3129,19 @@ export namespace Service {
3117
3129
  "settings.treating_invoice_as_proforma_for_etax"?: boolean;
3118
3130
  is_test?: boolean;
3119
3131
  form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
3120
- assigned_forms_v2?: string | string[];
3132
+ assigned_forms_v2?: StringId | StringId[];
3121
3133
  retail_execution_template_option?:
3122
3134
  | "all"
3123
3135
  | "client_assigned"
3124
3136
  | "assigned"
3125
3137
  | "none";
3126
- assigned_retail_execution_templates?: string | string[];
3138
+ assigned_retail_execution_templates?: StringId | StringId[];
3139
+ clm_presentation_option?:
3140
+ | "all"
3141
+ | "client_assigned"
3142
+ | "assigned"
3143
+ | "none";
3144
+ assigned_clm_presentations?: StringId | StringId[];
3127
3145
  media?: string | string[];
3128
3146
  cover_photo?: string;
3129
3147
  last_login_time?: number;
@@ -19533,6 +19551,24 @@ export namespace Service {
19533
19551
  export type Result = Data;
19534
19552
  }
19535
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
+ }
19536
19572
  }
19537
19573
 
19538
19574
  export type StringId = string;