repzo 1.0.202 → 1.0.204

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
@@ -107,13 +107,14 @@ export declare const end_points: {
107
107
  readonly REPORT_VIEW_DEFAULT: "report-view-default";
108
108
  readonly REPORT_VIEW_FAVORITE: "report-view-favorite";
109
109
  readonly COPY_REPORT_VIEW: "copy-report-view";
110
- readonly PRESENTATION: "presentation";
111
- readonly SEQUENCE: "sequence";
112
- readonly SLIDE: "slide";
110
+ readonly CLM_PRESENTATION: "clm-presentation";
111
+ readonly CLM_SEQUENCE: "clm-sequence";
112
+ readonly CLM_SLIDE: "clm-slide";
113
+ readonly CLM_FEEDBACK_ACTIVITY: "clm-feedback-activity";
113
114
  };
114
- export type EndPoints = typeof end_points[keyof typeof end_points];
115
- 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", "presentation", "sequence", "slide"];
116
- export type AvailableService = typeof availableService[number];
115
+ 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 type AvailableService = (typeof availableService)[number];
117
118
  export default class Repzo {
118
119
  private svAPIEndpoint;
119
120
  headers: Headers;
@@ -228,16 +229,17 @@ export default class Repzo {
228
229
  readonly REPORT_VIEW_DEFAULT: "report-view-default";
229
230
  readonly REPORT_VIEW_FAVORITE: "report-view-favorite";
230
231
  readonly COPY_REPORT_VIEW: "copy-report-view";
231
- readonly PRESENTATION: "presentation";
232
- readonly SEQUENCE: "sequence";
233
- readonly SLIDE: "slide";
232
+ readonly CLM_PRESENTATION: "clm-presentation";
233
+ readonly CLM_SEQUENCE: "clm-sequence";
234
+ readonly CLM_SLIDE: "clm-slide";
235
+ readonly CLM_FEEDBACK_ACTIVITY: "clm-feedback-activity";
234
236
  };
235
237
  private _fetch;
236
238
  private _create;
237
239
  private _update;
238
240
  private _patch;
239
241
  private _delete;
240
- 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", "presentation", "sequence", "slide"];
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"];
241
243
  client: {
242
244
  _path: "client";
243
245
  find: (params?: Service.Client.Find.Params) => Promise<Service.Client.Find.Result>;
@@ -1072,28 +1074,34 @@ export default class Repzo {
1072
1074
  _path: "copy-report-view";
1073
1075
  update: (id: Service.CopyReportView.Update.ID, body: Service.CopyReportView.Update.Body) => Promise<Service.CopyReportView.Update.Result>;
1074
1076
  };
1075
- presentation: {
1076
- _path: "presentation";
1077
- find: (params?: Service.Presentation.Find.Params) => Promise<Service.Presentation.Find.Result>;
1078
- get: (id: Service.Presentation.Get.ID, params?: Service.Presentation.Get.Params) => Promise<Service.Presentation.Get.Result>;
1079
- create: (body: Service.Presentation.Create.Body) => Promise<Service.Presentation.Create.Result>;
1080
- update: (id: Service.Presentation.Update.ID, body: Service.Presentation.Update.Body) => Promise<Service.Presentation.Update.Result>;
1081
- remove: (id: Service.Presentation.Update.ID) => Promise<Service.Presentation.Remove.Result>;
1082
- };
1083
- sequence: {
1084
- _path: "sequence";
1085
- find: (params?: Service.Sequence.Find.Params) => Promise<Service.Sequence.Find.Result>;
1086
- get: (id: Service.Sequence.Get.ID, params?: Service.Sequence.Get.Params) => Promise<Service.Sequence.Get.Result>;
1087
- create: (body: Service.Sequence.Create.Body) => Promise<Service.Sequence.Create.Result>;
1088
- update: (id: Service.Sequence.Update.ID, body: Service.Sequence.Update.Body) => Promise<Service.Sequence.Update.Result>;
1089
- remove: (id: Service.Sequence.Update.ID) => Promise<Service.Sequence.Remove.Result>;
1090
- };
1091
- slide: {
1092
- _path: "slide";
1093
- find: (params?: Service.Slide.Find.Params) => Promise<Service.Slide.Find.Result>;
1094
- get: (id: Service.Slide.Get.ID, params?: Service.Slide.Get.Params) => Promise<Service.Slide.Get.Result>;
1095
- create: (body: Service.Slide.Create.Body) => Promise<Service.Slide.Create.Result>;
1096
- update: (id: Service.Slide.Update.ID, body: Service.Slide.Update.Body) => Promise<Service.Slide.Update.Result>;
1097
- remove: (id: Service.Slide.Update.ID) => Promise<Service.Slide.Remove.Result>;
1077
+ clmPresentation: {
1078
+ _path: "clm-presentation";
1079
+ find: (params?: Service.CLMPresentation.Find.Params) => Promise<Service.CLMPresentation.Find.Result>;
1080
+ get: (id: Service.CLMPresentation.Get.ID, params?: Service.CLMPresentation.Get.Params) => Promise<Service.CLMPresentation.Get.Result>;
1081
+ create: (body: Service.CLMPresentation.Create.Body) => Promise<Service.CLMPresentation.Create.Result>;
1082
+ update: (id: Service.CLMPresentation.Update.ID, body: Service.CLMPresentation.Update.Body) => Promise<Service.CLMPresentation.Update.Result>;
1083
+ remove: (id: Service.CLMPresentation.Update.ID) => Promise<Service.CLMPresentation.Remove.Result>;
1084
+ };
1085
+ clmSequence: {
1086
+ _path: "clm-sequence";
1087
+ find: (params?: Service.CLMSequence.Find.Params) => Promise<Service.CLMSequence.Find.Result>;
1088
+ get: (id: Service.CLMSequence.Get.ID, params?: Service.CLMSequence.Get.Params) => Promise<Service.CLMSequence.Get.Result>;
1089
+ create: (body: Service.CLMSequence.Create.Body) => Promise<Service.CLMSequence.Create.Result>;
1090
+ update: (id: Service.CLMSequence.Update.ID, body: Service.CLMSequence.Update.Body) => Promise<Service.CLMSequence.Update.Result>;
1091
+ remove: (id: Service.CLMSequence.Update.ID) => Promise<Service.CLMSequence.Remove.Result>;
1092
+ };
1093
+ clmSlide: {
1094
+ _path: "clm-slide";
1095
+ find: (params?: Service.CLMSlide.Find.Params) => Promise<Service.CLMSlide.Find.Result>;
1096
+ get: (id: Service.CLMSlide.Get.ID, params?: Service.CLMSlide.Get.Params) => Promise<Service.CLMSlide.Get.Result>;
1097
+ create: (body: Service.CLMSlide.Create.Body) => Promise<Service.CLMSlide.Create.Result>;
1098
+ update: (id: Service.CLMSlide.Update.ID, body: Service.CLMSlide.Update.Body) => Promise<Service.CLMSlide.Update.Result>;
1099
+ remove: (id: Service.CLMSlide.Update.ID) => Promise<Service.CLMSlide.Remove.Result>;
1100
+ };
1101
+ clmFeedbackActivity: {
1102
+ _path: "clm-feedback-activity";
1103
+ find: (params?: Service.CLMFeedbackActivity.Find.Params) => Promise<Service.CLMFeedbackActivity.Find.Result>;
1104
+ get: (id: Service.CLMFeedbackActivity.Get.ID, params?: Service.CLMFeedbackActivity.Get.Params) => Promise<Service.CLMFeedbackActivity.Get.Result>;
1105
+ create: (body: Service.CLMFeedbackActivity.Create.Body) => Promise<Service.CLMFeedbackActivity.Create.Result>;
1098
1106
  };
1099
1107
  }
package/lib/index.js CHANGED
@@ -108,9 +108,10 @@ export const end_points = {
108
108
  REPORT_VIEW_DEFAULT: "report-view-default",
109
109
  REPORT_VIEW_FAVORITE: "report-view-favorite",
110
110
  COPY_REPORT_VIEW: "copy-report-view",
111
- PRESENTATION: "presentation",
112
- SEQUENCE: "sequence",
113
- SLIDE: "slide",
111
+ CLM_PRESENTATION: "clm-presentation",
112
+ CLM_SEQUENCE: "clm-sequence",
113
+ CLM_SLIDE: "clm-slide",
114
+ CLM_FEEDBACK_ACTIVITY: "clm-feedback-activity",
114
115
  };
115
116
  export const availableService = [
116
117
  "client",
@@ -201,9 +202,9 @@ export const availableService = [
201
202
  "workorderPortalLink",
202
203
  "customField",
203
204
  "salesAnalyticsReport",
204
- "presentation",
205
- "sequence",
206
- "slide",
205
+ "clmPresentation",
206
+ "clmSequence",
207
+ "clmSlide",
207
208
  ];
208
209
  class Repzo {
209
210
  constructor(apiKey, options) {
@@ -2194,69 +2195,83 @@ class Repzo {
2194
2195
  return res;
2195
2196
  },
2196
2197
  };
2197
- this.presentation = {
2198
- _path: Repzo._end_points.PRESENTATION,
2198
+ this.clmPresentation = {
2199
+ _path: Repzo._end_points.CLM_PRESENTATION,
2199
2200
  find: async (params) => {
2200
- let res = await this._fetch(this.svAPIEndpoint, this.presentation._path, params);
2201
+ let res = await this._fetch(this.svAPIEndpoint, this.clmPresentation._path, params);
2201
2202
  return res;
2202
2203
  },
2203
2204
  get: async (id, params) => {
2204
- return await this._fetch(this.svAPIEndpoint, this.presentation._path + `/${id}`, params);
2205
+ return await this._fetch(this.svAPIEndpoint, this.clmPresentation._path + `/${id}`, params);
2205
2206
  },
2206
2207
  create: async (body) => {
2207
- let res = await this._create(this.svAPIEndpoint, this.presentation._path, body);
2208
+ let res = await this._create(this.svAPIEndpoint, this.clmPresentation._path, body);
2208
2209
  return res;
2209
2210
  },
2210
2211
  update: async (id, body) => {
2211
- let res = await this._update(this.svAPIEndpoint, this.presentation._path + `/${id}`, body);
2212
+ let res = await this._update(this.svAPIEndpoint, this.clmPresentation._path + `/${id}`, body);
2212
2213
  return res;
2213
2214
  },
2214
2215
  remove: async (id) => {
2215
- let res = await this._delete(this.svAPIEndpoint, this.presentation._path + `/${id}`);
2216
+ let res = await this._delete(this.svAPIEndpoint, this.clmPresentation._path + `/${id}`);
2216
2217
  return res;
2217
2218
  },
2218
2219
  };
2219
- this.sequence = {
2220
- _path: Repzo._end_points.SEQUENCE,
2220
+ this.clmSequence = {
2221
+ _path: Repzo._end_points.CLM_SEQUENCE,
2221
2222
  find: async (params) => {
2222
- let res = await this._fetch(this.svAPIEndpoint, this.sequence._path, params);
2223
+ let res = await this._fetch(this.svAPIEndpoint, this.clmSequence._path, params);
2223
2224
  return res;
2224
2225
  },
2225
2226
  get: async (id, params) => {
2226
- return await this._fetch(this.svAPIEndpoint, this.sequence._path + `/${id}`, params);
2227
+ return await this._fetch(this.svAPIEndpoint, this.clmSequence._path + `/${id}`, params);
2227
2228
  },
2228
2229
  create: async (body) => {
2229
- let res = await this._create(this.svAPIEndpoint, this.sequence._path, body);
2230
+ let res = await this._create(this.svAPIEndpoint, this.clmSequence._path, body);
2230
2231
  return res;
2231
2232
  },
2232
2233
  update: async (id, body) => {
2233
- let res = await this._update(this.svAPIEndpoint, this.sequence._path + `/${id}`, body);
2234
+ let res = await this._update(this.svAPIEndpoint, this.clmSequence._path + `/${id}`, body);
2234
2235
  return res;
2235
2236
  },
2236
2237
  remove: async (id) => {
2237
- let res = await this._delete(this.svAPIEndpoint, this.sequence._path + `/${id}`);
2238
+ let res = await this._delete(this.svAPIEndpoint, this.clmSequence._path + `/${id}`);
2238
2239
  return res;
2239
2240
  },
2240
2241
  };
2241
- this.slide = {
2242
- _path: Repzo._end_points.SLIDE,
2242
+ this.clmSlide = {
2243
+ _path: Repzo._end_points.CLM_SLIDE,
2243
2244
  find: async (params) => {
2244
- let res = await this._fetch(this.svAPIEndpoint, this.slide._path, params);
2245
+ let res = await this._fetch(this.svAPIEndpoint, this.clmSlide._path, params);
2245
2246
  return res;
2246
2247
  },
2247
2248
  get: async (id, params) => {
2248
- return await this._fetch(this.svAPIEndpoint, this.slide._path + `/${id}`, params);
2249
+ return await this._fetch(this.svAPIEndpoint, this.clmSlide._path + `/${id}`, params);
2249
2250
  },
2250
2251
  create: async (body) => {
2251
- let res = await this._create(this.svAPIEndpoint, this.slide._path, body);
2252
+ let res = await this._create(this.svAPIEndpoint, this.clmSlide._path, body);
2252
2253
  return res;
2253
2254
  },
2254
2255
  update: async (id, body) => {
2255
- let res = await this._update(this.svAPIEndpoint, this.slide._path + `/${id}`, body);
2256
+ let res = await this._update(this.svAPIEndpoint, this.clmSlide._path + `/${id}`, body);
2256
2257
  return res;
2257
2258
  },
2258
2259
  remove: async (id) => {
2259
- let res = await this._delete(this.svAPIEndpoint, this.slide._path + `/${id}`);
2260
+ let res = await this._delete(this.svAPIEndpoint, this.clmSlide._path + `/${id}`);
2261
+ return res;
2262
+ },
2263
+ };
2264
+ this.clmFeedbackActivity = {
2265
+ _path: Repzo._end_points.CLM_FEEDBACK_ACTIVITY,
2266
+ find: async (params) => {
2267
+ let res = await this._fetch(this.svAPIEndpoint, this.clmFeedbackActivity._path, params);
2268
+ return res;
2269
+ },
2270
+ get: async (id, params) => {
2271
+ return await this._fetch(this.svAPIEndpoint, this.clmFeedbackActivity._path + `/${id}`, params);
2272
+ },
2273
+ create: async (body) => {
2274
+ let res = await this._create(this.svAPIEndpoint, this.clmFeedbackActivity._path, body);
2260
2275
  return res;
2261
2276
  },
2262
2277
  };
@@ -2898,6 +2898,7 @@ export declare namespace Service {
2898
2898
  createdAt: string;
2899
2899
  updatedAt: string;
2900
2900
  }
2901
+ export type Data = RouteSchema;
2901
2902
  export interface RouteBody {
2902
2903
  name?: string;
2903
2904
  disabled?: boolean;
@@ -14051,7 +14052,7 @@ export declare namespace Service {
14051
14052
  }[];
14052
14053
  }
14053
14054
  export const fieldType_enums: readonly ["Text", "String", "Phone", "Email", "Date", "Number", "List", "Separator", "Heading", "Media", "Signature", "DateTime", "YesNo", "ProductBarcodeScan", "BarcodeScan", "GeoPoint"];
14054
- export type FormV2FieldType = typeof fieldType_enums[number];
14055
+ export type FormV2FieldType = (typeof fieldType_enums)[number];
14055
14056
  interface FieldPrintSettings {
14056
14057
  three_inch: {
14057
14058
  grid_column?: 1 | 2;
@@ -14193,7 +14194,7 @@ export declare namespace Service {
14193
14194
  }
14194
14195
  namespace ActivityFormV2Result {
14195
14196
  const fieldType_enums: readonly ["Text", "String", "Phone", "Email", "Date", "Number", "List", "Separator", "Heading", "Media", "Signature", "DateTime", "YesNo", "ProductBarcodeScan", "BarcodeScan", "GeoPoint"];
14196
- type FormV2FieldType = typeof fieldType_enums[number];
14197
+ type FormV2FieldType = (typeof fieldType_enums)[number];
14197
14198
  interface FieldResult {
14198
14199
  _id?: string;
14199
14200
  field_id: string;
@@ -14468,7 +14469,7 @@ export declare namespace Service {
14468
14469
  }
14469
14470
  namespace TimelineReport {
14470
14471
  export const activity_types: readonly ["day", "client", "visit", "payment", "activity-photo", "activity-audit", "activity-availability", "activity-checkout-display", "activity-feedback", "activity-form-result", "activity-form-v2-result", "activity-item-status", "activity-note", "activity-planogram", "activity-secondary-display", "activity-shelfshare", "activity-storecheck", "activity-task", "approval-request", "asset-part-receival", "asset-part-transfer", "asset", "asset-part", "asset-unit", "reminders", "return-asset-part-unit", "store-asset-part-unit", "refund", "settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
14471
- type ActivityType = typeof activity_types[number];
14472
+ type ActivityType = (typeof activity_types)[number];
14472
14473
  export interface Data {
14473
14474
  _id: StringId;
14474
14475
  company_namespace: string[];
@@ -15174,7 +15175,7 @@ export declare namespace Service {
15174
15175
  }
15175
15176
  namespace TimelineTimeList {
15176
15177
  export const activity_types: readonly ["day", "client", "visit", "payment", "activity-photo", "activity-audit", "activity-availability", "activity-checkout-display", "activity-feedback", "activity-form-result", "activity-form-v2-result", "activity-item-status", "activity-note", "activity-planogram", "activity-secondary-display", "activity-shelfshare", "activity-storecheck", "activity-task", "approval-request", "asset-part-receival", "asset-part-transfer", "asset", "asset-part", "asset-unit", "reminders", "return-asset-part-unit", "store-asset-part-unit", "refund", "settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
15177
- type ActivityType = typeof activity_types[number];
15178
+ type ActivityType = (typeof activity_types)[number];
15178
15179
  export interface Data {
15179
15180
  _id: StringId;
15180
15181
  company_namespace: string[];
@@ -15635,17 +15636,17 @@ export declare namespace Service {
15635
15636
  }
15636
15637
  namespace SalesAnalyticsReport {
15637
15638
  const groupBy_options: readonly ["client", "rep", "issue_date", "due_date", "serial_number", "product", "variant", "brand", "category", "status", "promotion_type", "class", "measureunit", "promotion", "chain", "channel", "city", "region", "country", "route", "teams"];
15638
- type GroupByOption = typeof groupBy_options[number];
15639
+ type GroupByOption = (typeof groupBy_options)[number];
15639
15640
  const promotion_type_options: readonly ["get", "buy"];
15640
- type PromotionTypeOption = typeof promotion_type_options[number];
15641
+ type PromotionTypeOption = (typeof promotion_type_options)[number];
15641
15642
  const class_options: readonly ["invoice", "return"];
15642
- type ClassOption = typeof class_options[number];
15643
+ type ClassOption = (typeof class_options)[number];
15643
15644
  const status_options: readonly ["unpaid", "partially_paid", "paid"];
15644
- type StatusOption = typeof status_options[number];
15645
+ type StatusOption = (typeof status_options)[number];
15645
15646
  const sortBy_field_options: readonly ["_id", "time"];
15646
- type SortByFieldOption = typeof sortBy_field_options[number];
15647
+ type SortByFieldOption = (typeof sortBy_field_options)[number];
15647
15648
  const sortBy_type_options: readonly ["asc", "desc"];
15648
- type SortByTypeOption = typeof sortBy_type_options[number];
15649
+ type SortByTypeOption = (typeof sortBy_type_options)[number];
15649
15650
  interface SortByOption {
15650
15651
  field: SortByFieldOption;
15651
15652
  type: SortByTypeOption;
@@ -15932,7 +15933,7 @@ export declare namespace Service {
15932
15933
  export {};
15933
15934
  }
15934
15935
  namespace NotificationsCenter {
15935
- export type Command = "update-categories" | "update-clients" | "bulk-update-clients" | "update-inventory" | "update-measureunitFamilies" | "update-measureunits" | "update-pricelistItems" | "update-pricelists" | "update-products" | "update-rep" | "update-salesmsl" | "update-settings" | "update-tags" | "update-taxes" | "update-transfer" | "update-warehouses" | "update-jobCategories" | "update-plans" | "update-workorders" | "update-commentsThread" | "update-approval-request" | "update-variant-batch" | "update-asset-part-type" | "update-asset-part" | "update-asset-part-unit" | "update-custom-status" | "update-module-custom-validator" | "update-feedback-options" | "update-customfields";
15936
+ export type Command = "update-categories" | "update-clients" | "bulk-update-clients" | "update-inventory" | "update-measureunitFamilies" | "update-measureunits" | "update-pricelistItems" | "update-pricelists" | "update-products" | "update-rep" | "update-salesmsl" | "update-settings" | "update-tags" | "update-taxes" | "update-transfer" | "update-warehouses" | "update-jobCategories" | "update-plans" | "update-workorders" | "update-commentsThread" | "update-approval-request" | "update-variant-batch" | "update-asset-part-type" | "update-asset-part" | "update-asset-part-unit" | "update-custom-status" | "update-module-custom-validator" | "update-feedback-options" | "update-customfields" | "update-speciality" | "update-presentation" | "update-sequence" | "update-slide";
15936
15937
  export interface Data {
15937
15938
  _id: StringId;
15938
15939
  command: Command;
@@ -16859,7 +16860,7 @@ export declare namespace Service {
16859
16860
  };
16860
16861
  }
16861
16862
  }
16862
- namespace Presentation {
16863
+ namespace CLMPresentation {
16863
16864
  export interface Data {
16864
16865
  _id: StringId;
16865
16866
  company_namespace: string[];
@@ -16925,7 +16926,7 @@ export declare namespace Service {
16925
16926
  }
16926
16927
  export {};
16927
16928
  }
16928
- namespace Sequence {
16929
+ namespace CLMSequence {
16929
16930
  export interface Data {
16930
16931
  _id: StringId;
16931
16932
  company_namespace: string[];
@@ -16946,7 +16947,7 @@ export declare namespace Service {
16946
16947
  }
16947
16948
  export type UpdateBody = Partial<Data>;
16948
16949
  export type PopulatedDoc = Data & {
16949
- presentation_populated?: Pick<Presentation.Data, "name" | "_id">[];
16950
+ presentation_populated?: Pick<CLMPresentation.Data, "name" | "_id">[];
16950
16951
  product_populated?: Pick<Product.Data, "name" | "_id" | "local_name" | "barcode" | "sku">[];
16951
16952
  };
16952
16953
  type PopulatedKeys = "presentation" | "product";
@@ -16994,7 +16995,7 @@ export declare namespace Service {
16994
16995
  }
16995
16996
  export {};
16996
16997
  }
16997
- namespace Slide {
16998
+ namespace CLMSlide {
16998
16999
  export interface Data {
16999
17000
  _id: StringId;
17000
17001
  company_namespace: string[];
@@ -17019,7 +17020,7 @@ export declare namespace Service {
17019
17020
  }
17020
17021
  export type UpdateBody = Partial<Data>;
17021
17022
  export type PopulatedDoc = Data & {
17022
- sequence_populated?: Pick<Sequence.Data, "position" | "_id" | "product" | "presentation">[];
17023
+ sequence_populated?: Pick<CLMSequence.Data, "position" | "_id" | "product" | "presentation">[];
17023
17024
  photo_media_populated?: PopulatedMediaStorage;
17024
17025
  };
17025
17026
  type PopulatedKeys = "sequence" | "photo_media";
@@ -17067,6 +17068,176 @@ export declare namespace Service {
17067
17068
  }
17068
17069
  export {};
17069
17070
  }
17071
+ namespace CLMFeedbackActivity {
17072
+ export interface Data {
17073
+ _id: StringId;
17074
+ geo_tag: GeoTag;
17075
+ geoPoint?: GeoPoint;
17076
+ time: number;
17077
+ tags?: StringId[];
17078
+ visit_id: string;
17079
+ visit?: StringId;
17080
+ creator: {
17081
+ _id: StringId;
17082
+ type: "rep";
17083
+ name?: string;
17084
+ rep?: StringId;
17085
+ };
17086
+ client: StringId;
17087
+ client_name: string;
17088
+ sync_id: string;
17089
+ teams?: StringId[];
17090
+ route?: StringId;
17091
+ platform?: string;
17092
+ version_name?: string;
17093
+ battery_level?: number;
17094
+ device_brand?: string;
17095
+ device_os?: string;
17096
+ device_os_version?: string;
17097
+ device_model?: string;
17098
+ time_zone?: string;
17099
+ identifier?: number;
17100
+ device_id?: string;
17101
+ device_unique_id?: string;
17102
+ network_state?: number;
17103
+ job_start_time?: number;
17104
+ job_end_time?: number;
17105
+ job_duration?: number;
17106
+ company_namespace: string[];
17107
+ createdAt: string;
17108
+ updatedAt: string;
17109
+ __v?: number;
17110
+ completion_status: "ended" | "canceled";
17111
+ presentation: StringId;
17112
+ presentation_name: string;
17113
+ duration_on_presentation_ms: number;
17114
+ result: {
17115
+ sequence: StringId;
17116
+ duration_on_sequence_ms: number;
17117
+ slides: {
17118
+ slide: StringId;
17119
+ feedback: "positive" | "negative" | "notProvided";
17120
+ duration_on_slide_ms: number;
17121
+ }[];
17122
+ }[];
17123
+ }
17124
+ export interface CreateBody {
17125
+ geo_tag: GeoTag;
17126
+ geoPoint: GeoPoint;
17127
+ time: number;
17128
+ tags?: StringId[];
17129
+ visit_id: string;
17130
+ visit?: StringId;
17131
+ creator?: {
17132
+ _id: StringId;
17133
+ type: "rep";
17134
+ name?: string;
17135
+ rep?: StringId;
17136
+ };
17137
+ client: StringId;
17138
+ client_name: string;
17139
+ sync_id: string;
17140
+ teams?: StringId[];
17141
+ route?: StringId;
17142
+ platform?: string;
17143
+ version_name?: string;
17144
+ battery_level?: number;
17145
+ device_brand?: string;
17146
+ device_os?: string;
17147
+ device_os_version?: string;
17148
+ device_model?: string;
17149
+ time_zone?: string;
17150
+ identifier?: number;
17151
+ device_id?: string;
17152
+ device_unique_id?: string;
17153
+ network_state?: number;
17154
+ job_start_time?: number;
17155
+ job_end_time?: number;
17156
+ job_duration?: number;
17157
+ company_namespace?: string[];
17158
+ completion_status: "ended" | "canceled";
17159
+ presentation: StringId;
17160
+ presentation_name: string;
17161
+ duration_on_presentation_ms?: number;
17162
+ result?: {
17163
+ sequence: StringId;
17164
+ duration_on_sequence_ms: number;
17165
+ slides: {
17166
+ slide: StringId;
17167
+ feedback: "positive" | "negative" | "notProvided";
17168
+ duration_on_slide_ms: number;
17169
+ }[];
17170
+ }[];
17171
+ interactions: {
17172
+ interaction_time: number;
17173
+ interaction_type: "slide_landing" | "slide_leaving" | "zoom" | "feedback_given" | "presentation_play" | "presentation_end" | "presentation_cancel";
17174
+ interaction_detail: "in" | "out" | "positive" | "negative" | null;
17175
+ slide?: StringId;
17176
+ sequence?: StringId;
17177
+ }[];
17178
+ }
17179
+ export interface CLMActivityInteraction {
17180
+ _id: StringId;
17181
+ interaction_time: number;
17182
+ interaction_type: "slide_landing" | "slide_leaving" | "zoom" | "feedback_given" | "presentation_play" | "presentation_end" | "presentation_cancel";
17183
+ interaction_detail: "in" | "out" | "positive" | "negative" | null;
17184
+ slide?: StringId;
17185
+ sequence?: StringId;
17186
+ presentation: StringId;
17187
+ clmFeedBackActivity: StringId;
17188
+ company_namespace: string[];
17189
+ createdAt: string;
17190
+ updatedAt: string;
17191
+ __v?: number;
17192
+ }
17193
+ export type PopulatedDoc = Data & {
17194
+ client_populated?: Pick<Client.Data, "_id" | "name" | "local_name" | "client_code">[];
17195
+ visit_populated?: Visit.Data;
17196
+ route_populated?: Pick<Route.Data, "_id" | "name">;
17197
+ teams_populated?: Pick<Team.TeamSchema, "name" | "_id">[];
17198
+ tags_populated?: Pick<Tag.Data, "_id" | "tag" | "type">[];
17199
+ presentation_populated?: Pick<CLMPresentation.Data, "name" | "_id">;
17200
+ };
17201
+ type PopulatedKeys = "client" | "visit" | "route" | "teams" | "tags" | "presentation";
17202
+ export namespace Find {
17203
+ type Params = DefaultPaginationQueryParams & {
17204
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
17205
+ from_time?: number;
17206
+ to_time?: number;
17207
+ _id?: StringId | StringId[];
17208
+ presentation?: StringId | StringId[];
17209
+ client?: StringId | StringId[];
17210
+ tags?: StringId | StringId[];
17211
+ CLIENT_TAGS?: StringId | StringId[];
17212
+ AREA_TAGS?: StringId | StringId[];
17213
+ teams?: StringId | StringId[];
17214
+ route?: StringId | StringId[];
17215
+ creator?: StringId | StringId[];
17216
+ creator_id?: StringId | StringId[];
17217
+ creator_type?: StringId | StringId[];
17218
+ "creator._id"?: StringId | StringId[];
17219
+ "creator.type"?: StringId | StringId[];
17220
+ visit_id?: string | string[];
17221
+ visit?: StringId | StringId[];
17222
+ sync_id?: string | string[];
17223
+ };
17224
+ interface Result extends DefaultPaginationResult {
17225
+ data: PopulatedDoc[];
17226
+ }
17227
+ }
17228
+ export namespace Get {
17229
+ type ID = string;
17230
+ type Params = {
17231
+ populatedKeys?: PopulatedKeys[];
17232
+ };
17233
+ type Result = PopulatedDoc;
17234
+ }
17235
+ export namespace Create {
17236
+ type Body = CreateBody;
17237
+ type Result = Data;
17238
+ }
17239
+ export {};
17240
+ }
17070
17241
  }
17071
17242
  export type StringId = string;
17072
17243
  export type NameSpaces = string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.202",
3
+ "version": "1.0.204",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/index.ts CHANGED
@@ -118,9 +118,10 @@ export const end_points = {
118
118
  REPORT_VIEW_DEFAULT: "report-view-default",
119
119
  REPORT_VIEW_FAVORITE: "report-view-favorite",
120
120
  COPY_REPORT_VIEW: "copy-report-view",
121
- PRESENTATION: "presentation",
122
- SEQUENCE: "sequence",
123
- SLIDE: "slide",
121
+ CLM_PRESENTATION: "clm-presentation",
122
+ CLM_SEQUENCE: "clm-sequence",
123
+ CLM_SLIDE: "clm-slide",
124
+ CLM_FEEDBACK_ACTIVITY: "clm-feedback-activity",
124
125
  } as const;
125
126
  export type EndPoints = (typeof end_points)[keyof typeof end_points];
126
127
 
@@ -213,9 +214,9 @@ export const availableService = [
213
214
  "workorderPortalLink",
214
215
  "customField",
215
216
  "salesAnalyticsReport",
216
- "presentation",
217
- "sequence",
218
- "slide",
217
+ "clmPresentation",
218
+ "clmSequence",
219
+ "clmSlide",
219
220
  ] as const;
220
221
  export type AvailableService = (typeof availableService)[number];
221
222
 
@@ -5571,159 +5572,197 @@ export default class Repzo {
5571
5572
  },
5572
5573
  };
5573
5574
 
5574
- presentation = {
5575
- _path: Repzo._end_points.PRESENTATION,
5575
+ clmPresentation = {
5576
+ _path: Repzo._end_points.CLM_PRESENTATION,
5576
5577
  find: async (
5577
- params?: Service.Presentation.Find.Params,
5578
- ): Promise<Service.Presentation.Find.Result> => {
5579
- let res: Service.Presentation.Find.Result = await this._fetch(
5578
+ params?: Service.CLMPresentation.Find.Params,
5579
+ ): Promise<Service.CLMPresentation.Find.Result> => {
5580
+ let res: Service.CLMPresentation.Find.Result = await this._fetch(
5580
5581
  this.svAPIEndpoint,
5581
- this.presentation._path,
5582
+ this.clmPresentation._path,
5582
5583
  params,
5583
5584
  );
5584
5585
  return res;
5585
5586
  },
5586
5587
  get: async (
5587
- id: Service.Presentation.Get.ID,
5588
- params?: Service.Presentation.Get.Params,
5589
- ): Promise<Service.Presentation.Get.Result> => {
5588
+ id: Service.CLMPresentation.Get.ID,
5589
+ params?: Service.CLMPresentation.Get.Params,
5590
+ ): Promise<Service.CLMPresentation.Get.Result> => {
5590
5591
  return await this._fetch(
5591
5592
  this.svAPIEndpoint,
5592
- this.presentation._path + `/${id}`,
5593
+ this.clmPresentation._path + `/${id}`,
5593
5594
  params,
5594
5595
  );
5595
5596
  },
5596
5597
  create: async (
5597
- body: Service.Presentation.Create.Body,
5598
- ): Promise<Service.Presentation.Create.Result> => {
5598
+ body: Service.CLMPresentation.Create.Body,
5599
+ ): Promise<Service.CLMPresentation.Create.Result> => {
5599
5600
  let res = await this._create(
5600
5601
  this.svAPIEndpoint,
5601
- this.presentation._path,
5602
+ this.clmPresentation._path,
5602
5603
  body,
5603
5604
  );
5604
5605
  return res;
5605
5606
  },
5606
5607
  update: async (
5607
- id: Service.Presentation.Update.ID,
5608
- body: Service.Presentation.Update.Body,
5609
- ): Promise<Service.Presentation.Update.Result> => {
5610
- let res: Service.Presentation.Update.Result = await this._update(
5608
+ id: Service.CLMPresentation.Update.ID,
5609
+ body: Service.CLMPresentation.Update.Body,
5610
+ ): Promise<Service.CLMPresentation.Update.Result> => {
5611
+ let res: Service.CLMPresentation.Update.Result = await this._update(
5611
5612
  this.svAPIEndpoint,
5612
- this.presentation._path + `/${id}`,
5613
+ this.clmPresentation._path + `/${id}`,
5613
5614
  body,
5614
5615
  );
5615
5616
  return res;
5616
5617
  },
5617
5618
  remove: async (
5618
- id: Service.Presentation.Update.ID,
5619
- ): Promise<Service.Presentation.Remove.Result> => {
5620
- let res: Service.Presentation.Remove.Result = await this._delete(
5619
+ id: Service.CLMPresentation.Update.ID,
5620
+ ): Promise<Service.CLMPresentation.Remove.Result> => {
5621
+ let res: Service.CLMPresentation.Remove.Result = await this._delete(
5621
5622
  this.svAPIEndpoint,
5622
- this.presentation._path + `/${id}`,
5623
+ this.clmPresentation._path + `/${id}`,
5623
5624
  );
5624
5625
  return res;
5625
5626
  },
5626
5627
  };
5627
5628
 
5628
- sequence = {
5629
- _path: Repzo._end_points.SEQUENCE,
5629
+ clmSequence = {
5630
+ _path: Repzo._end_points.CLM_SEQUENCE,
5630
5631
  find: async (
5631
- params?: Service.Sequence.Find.Params,
5632
- ): Promise<Service.Sequence.Find.Result> => {
5633
- let res: Service.Sequence.Find.Result = await this._fetch(
5632
+ params?: Service.CLMSequence.Find.Params,
5633
+ ): Promise<Service.CLMSequence.Find.Result> => {
5634
+ let res: Service.CLMSequence.Find.Result = await this._fetch(
5634
5635
  this.svAPIEndpoint,
5635
- this.sequence._path,
5636
+ this.clmSequence._path,
5636
5637
  params,
5637
5638
  );
5638
5639
  return res;
5639
5640
  },
5640
5641
  get: async (
5641
- id: Service.Sequence.Get.ID,
5642
- params?: Service.Sequence.Get.Params,
5643
- ): Promise<Service.Sequence.Get.Result> => {
5642
+ id: Service.CLMSequence.Get.ID,
5643
+ params?: Service.CLMSequence.Get.Params,
5644
+ ): Promise<Service.CLMSequence.Get.Result> => {
5644
5645
  return await this._fetch(
5645
5646
  this.svAPIEndpoint,
5646
- this.sequence._path + `/${id}`,
5647
+ this.clmSequence._path + `/${id}`,
5647
5648
  params,
5648
5649
  );
5649
5650
  },
5650
5651
  create: async (
5651
- body: Service.Sequence.Create.Body,
5652
- ): Promise<Service.Sequence.Create.Result> => {
5652
+ body: Service.CLMSequence.Create.Body,
5653
+ ): Promise<Service.CLMSequence.Create.Result> => {
5653
5654
  let res = await this._create(
5654
5655
  this.svAPIEndpoint,
5655
- this.sequence._path,
5656
+ this.clmSequence._path,
5656
5657
  body,
5657
5658
  );
5658
5659
  return res;
5659
5660
  },
5660
5661
  update: async (
5661
- id: Service.Sequence.Update.ID,
5662
- body: Service.Sequence.Update.Body,
5663
- ): Promise<Service.Sequence.Update.Result> => {
5664
- let res: Service.Sequence.Update.Result = await this._update(
5662
+ id: Service.CLMSequence.Update.ID,
5663
+ body: Service.CLMSequence.Update.Body,
5664
+ ): Promise<Service.CLMSequence.Update.Result> => {
5665
+ let res: Service.CLMSequence.Update.Result = await this._update(
5665
5666
  this.svAPIEndpoint,
5666
- this.sequence._path + `/${id}`,
5667
+ this.clmSequence._path + `/${id}`,
5667
5668
  body,
5668
5669
  );
5669
5670
  return res;
5670
5671
  },
5671
5672
  remove: async (
5672
- id: Service.Sequence.Update.ID,
5673
- ): Promise<Service.Sequence.Remove.Result> => {
5674
- let res: Service.Sequence.Remove.Result = await this._delete(
5673
+ id: Service.CLMSequence.Update.ID,
5674
+ ): Promise<Service.CLMSequence.Remove.Result> => {
5675
+ let res: Service.CLMSequence.Remove.Result = await this._delete(
5675
5676
  this.svAPIEndpoint,
5676
- this.sequence._path + `/${id}`,
5677
+ this.clmSequence._path + `/${id}`,
5677
5678
  );
5678
5679
  return res;
5679
5680
  },
5680
5681
  };
5681
5682
 
5682
- slide = {
5683
- _path: Repzo._end_points.SLIDE,
5683
+ clmSlide = {
5684
+ _path: Repzo._end_points.CLM_SLIDE,
5684
5685
  find: async (
5685
- params?: Service.Slide.Find.Params,
5686
- ): Promise<Service.Slide.Find.Result> => {
5687
- let res: Service.Slide.Find.Result = await this._fetch(
5686
+ params?: Service.CLMSlide.Find.Params,
5687
+ ): Promise<Service.CLMSlide.Find.Result> => {
5688
+ let res: Service.CLMSlide.Find.Result = await this._fetch(
5688
5689
  this.svAPIEndpoint,
5689
- this.slide._path,
5690
+ this.clmSlide._path,
5690
5691
  params,
5691
5692
  );
5692
5693
  return res;
5693
5694
  },
5694
5695
  get: async (
5695
- id: Service.Slide.Get.ID,
5696
- params?: Service.Slide.Get.Params,
5697
- ): Promise<Service.Slide.Get.Result> => {
5696
+ id: Service.CLMSlide.Get.ID,
5697
+ params?: Service.CLMSlide.Get.Params,
5698
+ ): Promise<Service.CLMSlide.Get.Result> => {
5698
5699
  return await this._fetch(
5699
5700
  this.svAPIEndpoint,
5700
- this.slide._path + `/${id}`,
5701
+ this.clmSlide._path + `/${id}`,
5701
5702
  params,
5702
5703
  );
5703
5704
  },
5704
5705
  create: async (
5705
- body: Service.Slide.Create.Body,
5706
- ): Promise<Service.Slide.Create.Result> => {
5707
- let res = await this._create(this.svAPIEndpoint, this.slide._path, body);
5706
+ body: Service.CLMSlide.Create.Body,
5707
+ ): Promise<Service.CLMSlide.Create.Result> => {
5708
+ let res = await this._create(
5709
+ this.svAPIEndpoint,
5710
+ this.clmSlide._path,
5711
+ body,
5712
+ );
5708
5713
  return res;
5709
5714
  },
5710
5715
  update: async (
5711
- id: Service.Slide.Update.ID,
5712
- body: Service.Slide.Update.Body,
5713
- ): Promise<Service.Slide.Update.Result> => {
5714
- let res: Service.Slide.Update.Result = await this._update(
5716
+ id: Service.CLMSlide.Update.ID,
5717
+ body: Service.CLMSlide.Update.Body,
5718
+ ): Promise<Service.CLMSlide.Update.Result> => {
5719
+ let res: Service.CLMSlide.Update.Result = await this._update(
5715
5720
  this.svAPIEndpoint,
5716
- this.slide._path + `/${id}`,
5721
+ this.clmSlide._path + `/${id}`,
5717
5722
  body,
5718
5723
  );
5719
5724
  return res;
5720
5725
  },
5721
5726
  remove: async (
5722
- id: Service.Slide.Update.ID,
5723
- ): Promise<Service.Slide.Remove.Result> => {
5724
- let res: Service.Slide.Remove.Result = await this._delete(
5727
+ id: Service.CLMSlide.Update.ID,
5728
+ ): Promise<Service.CLMSlide.Remove.Result> => {
5729
+ let res: Service.CLMSlide.Remove.Result = await this._delete(
5725
5730
  this.svAPIEndpoint,
5726
- this.slide._path + `/${id}`,
5731
+ this.clmSlide._path + `/${id}`,
5732
+ );
5733
+ return res;
5734
+ },
5735
+ };
5736
+
5737
+ clmFeedbackActivity = {
5738
+ _path: Repzo._end_points.CLM_FEEDBACK_ACTIVITY,
5739
+ find: async (
5740
+ params?: Service.CLMFeedbackActivity.Find.Params,
5741
+ ): Promise<Service.CLMFeedbackActivity.Find.Result> => {
5742
+ let res: Service.CLMFeedbackActivity.Find.Result = await this._fetch(
5743
+ this.svAPIEndpoint,
5744
+ this.clmFeedbackActivity._path,
5745
+ params,
5746
+ );
5747
+ return res;
5748
+ },
5749
+ get: async (
5750
+ id: Service.CLMFeedbackActivity.Get.ID,
5751
+ params?: Service.CLMFeedbackActivity.Get.Params,
5752
+ ): Promise<Service.CLMFeedbackActivity.Get.Result> => {
5753
+ return await this._fetch(
5754
+ this.svAPIEndpoint,
5755
+ this.clmFeedbackActivity._path + `/${id}`,
5756
+ params,
5757
+ );
5758
+ },
5759
+ create: async (
5760
+ body: Service.CLMFeedbackActivity.Create.Body,
5761
+ ): Promise<Service.CLMFeedbackActivity.Create.Result> => {
5762
+ let res = await this._create(
5763
+ this.svAPIEndpoint,
5764
+ this.clmFeedbackActivity._path,
5765
+ body,
5727
5766
  );
5728
5767
  return res;
5729
5768
  },
@@ -3322,6 +3322,7 @@ export namespace Service {
3322
3322
  createdAt: string;
3323
3323
  updatedAt: string;
3324
3324
  }
3325
+ export type Data = RouteSchema;
3325
3326
  export interface RouteBody {
3326
3327
  name?: string;
3327
3328
  disabled?: boolean;
@@ -18106,7 +18107,12 @@ export namespace Service {
18106
18107
  | "update-custom-status"
18107
18108
  | "update-module-custom-validator"
18108
18109
  | "update-feedback-options"
18109
- | "update-customfields";
18110
+ | "update-customfields"
18111
+ | "update-speciality"
18112
+ | "update-presentation"
18113
+ | "update-sequence"
18114
+ | "update-slide";
18115
+
18110
18116
  export interface Data {
18111
18117
  _id: StringId;
18112
18118
  command: Command;
@@ -19110,7 +19116,7 @@ export namespace Service {
19110
19116
  }
19111
19117
  }
19112
19118
 
19113
- export namespace Presentation {
19119
+ export namespace CLMPresentation {
19114
19120
  export interface Data {
19115
19121
  _id: StringId;
19116
19122
  company_namespace: string[];
@@ -19174,7 +19180,7 @@ export namespace Service {
19174
19180
  }
19175
19181
  }
19176
19182
 
19177
- export namespace Sequence {
19183
+ export namespace CLMSequence {
19178
19184
  export interface Data {
19179
19185
  _id: StringId;
19180
19186
  company_namespace: string[];
@@ -19196,7 +19202,7 @@ export namespace Service {
19196
19202
  export type UpdateBody = Partial<Data>;
19197
19203
 
19198
19204
  export type PopulatedDoc = Data & {
19199
- presentation_populated?: Pick<Presentation.Data, "name" | "_id">[];
19205
+ presentation_populated?: Pick<CLMPresentation.Data, "name" | "_id">[];
19200
19206
  product_populated?: Pick<
19201
19207
  Product.Data,
19202
19208
  "name" | "_id" | "local_name" | "barcode" | "sku"
@@ -19244,7 +19250,7 @@ export namespace Service {
19244
19250
  }
19245
19251
  }
19246
19252
 
19247
- export namespace Slide {
19253
+ export namespace CLMSlide {
19248
19254
  export interface Data {
19249
19255
  _id: StringId;
19250
19256
  company_namespace: string[];
@@ -19271,7 +19277,7 @@ export namespace Service {
19271
19277
 
19272
19278
  export type PopulatedDoc = Data & {
19273
19279
  sequence_populated?: Pick<
19274
- Sequence.Data,
19280
+ CLMSequence.Data,
19275
19281
  "position" | "_id" | "product" | "presentation"
19276
19282
  >[];
19277
19283
  photo_media_populated?: PopulatedMediaStorage;
@@ -19317,6 +19323,193 @@ export namespace Service {
19317
19323
  export type Result = Data;
19318
19324
  }
19319
19325
  }
19326
+
19327
+ export namespace CLMFeedbackActivity {
19328
+ export interface Data {
19329
+ _id: StringId;
19330
+ geo_tag: GeoTag;
19331
+ geoPoint?: GeoPoint;
19332
+ time: number;
19333
+ tags?: StringId[];
19334
+ visit_id: string;
19335
+ visit?: StringId;
19336
+ creator: { _id: StringId; type: "rep"; name?: string; rep?: StringId };
19337
+ client: StringId;
19338
+ client_name: string;
19339
+ sync_id: string;
19340
+ teams?: StringId[];
19341
+ route?: StringId;
19342
+ platform?: string;
19343
+ version_name?: string;
19344
+ battery_level?: number;
19345
+ device_brand?: string;
19346
+ device_os?: string;
19347
+ device_os_version?: string;
19348
+ device_model?: string;
19349
+ time_zone?: string;
19350
+ identifier?: number;
19351
+ device_id?: string;
19352
+ device_unique_id?: string;
19353
+ network_state?: number;
19354
+ job_start_time?: number;
19355
+ job_end_time?: number;
19356
+ job_duration?: number;
19357
+ company_namespace: string[];
19358
+ createdAt: string;
19359
+ updatedAt: string;
19360
+ __v?: number;
19361
+
19362
+ completion_status: "ended" | "canceled";
19363
+ presentation: StringId;
19364
+ presentation_name: string;
19365
+ duration_on_presentation_ms: number;
19366
+ result: {
19367
+ sequence: StringId;
19368
+ duration_on_sequence_ms: number;
19369
+ slides: {
19370
+ slide: StringId;
19371
+ feedback: "positive" | "negative" | "notProvided";
19372
+ duration_on_slide_ms: number;
19373
+ }[];
19374
+ }[];
19375
+ }
19376
+
19377
+ export interface CreateBody {
19378
+ geo_tag: GeoTag;
19379
+ geoPoint: GeoPoint;
19380
+ time: number;
19381
+ tags?: StringId[];
19382
+ visit_id: string;
19383
+ visit?: StringId;
19384
+ creator?: { _id: StringId; type: "rep"; name?: string; rep?: StringId };
19385
+ client: StringId;
19386
+ client_name: string;
19387
+ sync_id: string;
19388
+ teams?: StringId[];
19389
+ route?: StringId;
19390
+ platform?: string;
19391
+ version_name?: string;
19392
+ battery_level?: number;
19393
+ device_brand?: string;
19394
+ device_os?: string;
19395
+ device_os_version?: string;
19396
+ device_model?: string;
19397
+ time_zone?: string;
19398
+ identifier?: number;
19399
+ device_id?: string;
19400
+ device_unique_id?: string;
19401
+ network_state?: number;
19402
+ job_start_time?: number;
19403
+ job_end_time?: number;
19404
+ job_duration?: number;
19405
+ company_namespace?: string[];
19406
+ completion_status: "ended" | "canceled";
19407
+ presentation: StringId;
19408
+ presentation_name: string;
19409
+ duration_on_presentation_ms?: number;
19410
+ result?: {
19411
+ sequence: StringId;
19412
+ duration_on_sequence_ms: number;
19413
+ slides: {
19414
+ slide: StringId;
19415
+ feedback: "positive" | "negative" | "notProvided";
19416
+ duration_on_slide_ms: number;
19417
+ }[];
19418
+ }[];
19419
+ interactions: {
19420
+ interaction_time: number;
19421
+ interaction_type:
19422
+ | "slide_landing"
19423
+ | "slide_leaving"
19424
+ | "zoom"
19425
+ | "feedback_given"
19426
+ | "presentation_play"
19427
+ | "presentation_end"
19428
+ | "presentation_cancel";
19429
+ interaction_detail: "in" | "out" | "positive" | "negative" | null; // required for zoom and feedback_given, null for other
19430
+ slide?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
19431
+ sequence?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
19432
+ }[];
19433
+ }
19434
+
19435
+ export interface CLMActivityInteraction {
19436
+ _id: StringId;
19437
+ interaction_time: number;
19438
+ interaction_type:
19439
+ | "slide_landing"
19440
+ | "slide_leaving"
19441
+ | "zoom"
19442
+ | "feedback_given"
19443
+ | "presentation_play"
19444
+ | "presentation_end"
19445
+ | "presentation_cancel";
19446
+ interaction_detail: "in" | "out" | "positive" | "negative" | null; // required for zoom and feedback_given, null for other
19447
+ slide?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
19448
+ sequence?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
19449
+ presentation: StringId;
19450
+ clmFeedBackActivity: StringId;
19451
+ company_namespace: string[];
19452
+ createdAt: string;
19453
+ updatedAt: string;
19454
+ __v?: number;
19455
+ }
19456
+
19457
+ export type PopulatedDoc = Data & {
19458
+ client_populated?: Pick<
19459
+ Client.Data,
19460
+ "_id" | "name" | "local_name" | "client_code"
19461
+ >[];
19462
+ visit_populated?: Visit.Data;
19463
+ route_populated?: Pick<Route.Data, "_id" | "name">;
19464
+ teams_populated?: Pick<Team.TeamSchema, "name" | "_id">[];
19465
+ tags_populated?: Pick<Tag.Data, "_id" | "tag" | "type">[];
19466
+ presentation_populated?: Pick<CLMPresentation.Data, "name" | "_id">;
19467
+ };
19468
+
19469
+ type PopulatedKeys =
19470
+ | "client"
19471
+ | "visit"
19472
+ | "route"
19473
+ | "teams"
19474
+ | "tags"
19475
+ | "presentation";
19476
+
19477
+ export namespace Find {
19478
+ export type Params = DefaultPaginationQueryParams & {
19479
+ populatedKeys?: PopulatedKeys | PopulatedKeys[];
19480
+ from_time?: number;
19481
+ to_time?: number;
19482
+ _id?: StringId | StringId[];
19483
+ presentation?: StringId | StringId[];
19484
+ client?: StringId | StringId[];
19485
+ tags?: StringId | StringId[];
19486
+ CLIENT_TAGS?: StringId | StringId[];
19487
+ AREA_TAGS?: StringId | StringId[];
19488
+ teams?: StringId | StringId[];
19489
+ route?: StringId | StringId[];
19490
+ creator?: StringId | StringId[];
19491
+ creator_id?: StringId | StringId[];
19492
+ creator_type?: StringId | StringId[];
19493
+ "creator._id"?: StringId | StringId[];
19494
+ "creator.type"?: StringId | StringId[];
19495
+ visit_id?: string | string[];
19496
+ visit?: StringId | StringId[];
19497
+ sync_id?: string | string[];
19498
+ };
19499
+ export interface Result extends DefaultPaginationResult {
19500
+ data: PopulatedDoc[];
19501
+ }
19502
+ }
19503
+ export namespace Get {
19504
+ export type ID = string;
19505
+ export type Params = { populatedKeys?: PopulatedKeys[] };
19506
+ export type Result = PopulatedDoc;
19507
+ }
19508
+ export namespace Create {
19509
+ export type Body = CreateBody;
19510
+ export type Result = Data;
19511
+ }
19512
+ }
19320
19513
  }
19321
19514
 
19322
19515
  export type StringId = string;