repzo 1.0.273 → 1.0.275

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
@@ -56,6 +56,7 @@ export declare const end_points: {
56
56
  readonly MEDIA_STORAGE: "media-storage";
57
57
  readonly STORECHECK_TEMPLATE: "storecheck-template";
58
58
  readonly ACTIVITY_STORECHECK: "activity-storecheck";
59
+ readonly ACTIVITY_ITEM_STATUS: "activity-item-status";
59
60
  readonly ADJUST_INVENTORY: "adjust-inventory";
60
61
  readonly INVENTORY: "inventory";
61
62
  readonly INTEGRATION_APP: "integration-app";
@@ -137,7 +138,7 @@ export declare const end_points: {
137
138
  readonly JOB_CATEGORY_AUTOSKIP_ANALYZE: "job-category-autoskip-analyze";
138
139
  };
139
140
  export type EndPoints = (typeof end_points)[keyof typeof end_points];
140
- 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", "voidSettlement", "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", "pdfMergeField"];
141
+ 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", "voidSettlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "activityItemStatus", "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", "pdfMergeField"];
141
142
  export type AvailableService = (typeof availableService)[number];
142
143
  export default class Repzo {
143
144
  private svAPIEndpoint;
@@ -206,6 +207,7 @@ export default class Repzo {
206
207
  readonly MEDIA_STORAGE: "media-storage";
207
208
  readonly STORECHECK_TEMPLATE: "storecheck-template";
208
209
  readonly ACTIVITY_STORECHECK: "activity-storecheck";
210
+ readonly ACTIVITY_ITEM_STATUS: "activity-item-status";
209
211
  readonly ADJUST_INVENTORY: "adjust-inventory";
210
212
  readonly INVENTORY: "inventory";
211
213
  readonly INTEGRATION_APP: "integration-app";
@@ -292,7 +294,7 @@ export default class Repzo {
292
294
  private _update;
293
295
  private _patch;
294
296
  private _delete;
295
- 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", "voidSettlement", "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", "pdfMergeField"];
297
+ 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", "voidSettlement", "check", "day", "receivingMaterial", "adjustAccount", "transfer", "msl", "mslProduct", "mediaStorage", "storecheckTemplate", "activityStorecheck", "activityItemStatus", "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", "pdfMergeField"];
296
298
  generateUUID: ({ prefix, suffix, length, }: {
297
299
  prefix?: string;
298
300
  suffix?: string;
@@ -710,6 +712,13 @@ export default class Repzo {
710
712
  create: (body: Service.ActivityStorecheck.Create.Body) => Promise<Service.ActivityStorecheck.Create.Result>;
711
713
  update: (id: Service.ActivityStorecheck.Update.ID, body: Service.ActivityStorecheck.Update.Body) => Promise<Service.ActivityStorecheck.Update.Result>;
712
714
  };
715
+ activityItemStatus: {
716
+ _path: "activity-item-status";
717
+ find: (params?: Service.ActivityItemStatus.Find.Params) => Promise<Service.ActivityItemStatus.Find.Result>;
718
+ get: (id: Service.ActivityItemStatus.Get.ID, params?: Service.ActivityItemStatus.Get.Params) => Promise<Service.ActivityItemStatus.Get.Result>;
719
+ create: (body: Service.ActivityItemStatus.Create.Body) => Promise<Service.ActivityItemStatus.Create.Result>;
720
+ update: (id: Service.ActivityItemStatus.Update.ID, body: Service.ActivityItemStatus.Update.Body) => Promise<Service.ActivityItemStatus.Update.Result>;
721
+ };
713
722
  adjustInventory: {
714
723
  _path: "adjust-inventory";
715
724
  find: (params?: Service.AdjustInventory.Find.Params) => Promise<Service.AdjustInventory.Find.Result>;
package/lib/index.js CHANGED
@@ -58,6 +58,7 @@ export const end_points = {
58
58
  MEDIA_STORAGE: "media-storage",
59
59
  STORECHECK_TEMPLATE: "storecheck-template",
60
60
  ACTIVITY_STORECHECK: "activity-storecheck",
61
+ ACTIVITY_ITEM_STATUS: "activity-item-status",
61
62
  ADJUST_INVENTORY: "adjust-inventory",
62
63
  INVENTORY: "inventory",
63
64
  INTEGRATION_APP: "integration-app",
@@ -193,6 +194,7 @@ export const availableService = [
193
194
  "mediaStorage",
194
195
  "storecheckTemplate",
195
196
  "activityStorecheck",
197
+ "activityItemStatus",
196
198
  "adjustInventory",
197
199
  "inventory",
198
200
  "integrationApp",
@@ -1355,6 +1357,24 @@ class Repzo {
1355
1357
  return res;
1356
1358
  },
1357
1359
  };
1360
+ this.activityItemStatus = {
1361
+ _path: Repzo._end_points.ACTIVITY_ITEM_STATUS,
1362
+ find: async (params) => {
1363
+ let res = await this._fetch(this.svAPIEndpoint, this.activityItemStatus._path, params);
1364
+ return res;
1365
+ },
1366
+ get: async (id, params) => {
1367
+ return await this._fetch(this.svAPIEndpoint, this.activityItemStatus._path + `/${id}`, params);
1368
+ },
1369
+ create: async (body) => {
1370
+ let res = await this._create(this.svAPIEndpoint, this.activityItemStatus._path, body);
1371
+ return res;
1372
+ },
1373
+ update: async (id, body) => {
1374
+ let res = await this._update(this.svAPIEndpoint, this.activityItemStatus._path + `/${id}`, body);
1375
+ return res;
1376
+ },
1377
+ };
1358
1378
  this.adjustInventory = {
1359
1379
  _path: Repzo._end_points.ADJUST_INVENTORY,
1360
1380
  find: async (params) => {
@@ -2000,6 +2000,7 @@ export declare namespace Service {
2000
2000
  previous_result_activated: boolean;
2001
2001
  presets_activated: boolean;
2002
2002
  apply_preset_to_all_sources: boolean;
2003
+ intersect_in_product_group_level: boolean;
2003
2004
  createdAt?: string;
2004
2005
  updatedAt?: string;
2005
2006
  __v?: number;
@@ -2017,6 +2018,7 @@ export declare namespace Service {
2017
2018
  previous_result_activated: boolean;
2018
2019
  presets_activated: boolean;
2019
2020
  apply_preset_to_all_sources: boolean;
2021
+ intersect_in_product_group_level?: boolean;
2020
2022
  }
2021
2023
  export interface UpdateBody {
2022
2024
  _id?: string;
@@ -2032,6 +2034,7 @@ export declare namespace Service {
2032
2034
  previous_result_activated?: boolean;
2033
2035
  presets_activated?: boolean;
2034
2036
  apply_preset_to_all_sources: boolean;
2037
+ intersect_in_product_group_level?: boolean;
2035
2038
  }
2036
2039
  export namespace Find {
2037
2040
  type Params = DefaultPaginationQueryParams & {
@@ -14486,12 +14489,94 @@ export declare namespace Service {
14486
14489
  admin_notes: ActivityAdminNote[];
14487
14490
  comments: ActivityComment[];
14488
14491
  company_namespace: string[];
14492
+ job?: boolean;
14493
+ job_id?: string;
14494
+ job_category_id?: string;
14489
14495
  job_start_time?: number;
14490
14496
  job_end_time?: number;
14491
14497
  job_duration?: number;
14498
+ disabled?: boolean;
14492
14499
  createdAt: string;
14493
14500
  updatedAt: string;
14494
14501
  }
14502
+ interface CreateBody {
14503
+ items: Item[];
14504
+ geoPoint: GeoPoint;
14505
+ time: number;
14506
+ tags?: string[];
14507
+ visit_id: string;
14508
+ user: string;
14509
+ client: string;
14510
+ client_name: string;
14511
+ user_name: string;
14512
+ sync_id: string;
14513
+ route?: string;
14514
+ teams?: string[];
14515
+ company_namespace: string[];
14516
+ }
14517
+ interface UpdateBody {
14518
+ _id?: string;
14519
+ items?: Item[];
14520
+ geoPoint?: GeoPoint;
14521
+ time?: number;
14522
+ tags?: string[];
14523
+ visit_id?: string;
14524
+ user?: string;
14525
+ client?: string;
14526
+ client_name?: string;
14527
+ user_name?: string;
14528
+ sync_id?: string;
14529
+ route?: string;
14530
+ teams?: string[];
14531
+ company_namespace?: string[];
14532
+ }
14533
+ type PopulatedKeys = "teams" | "user" | "client" | "route" | "visit_id";
14534
+ type ActivityItemStatusWithPopulatedKeysSchema = Data & {
14535
+ teams_populated?: Team.TeamSchema[] | string[];
14536
+ user_populated?: Rep.RepSchema | string;
14537
+ client_populated?: Client.ClientSchema | string;
14538
+ route_populated?: Route.RouteSchema | string;
14539
+ visit_id_populated?: Visit.VisitSchema | string;
14540
+ };
14541
+ namespace Find {
14542
+ type Params = DefaultPaginationQueryParams & {
14543
+ _id?: string[] | string;
14544
+ disabled?: boolean;
14545
+ from_updatedAt?: string;
14546
+ from_time?: number;
14547
+ to_time?: number;
14548
+ client?: string;
14549
+ user?: string;
14550
+ teams?: string[];
14551
+ route?: string;
14552
+ populatedKeys?: PopulatedKeys[];
14553
+ from__id?: string;
14554
+ to__id?: string;
14555
+ sortBy?: {
14556
+ field: "_id";
14557
+ type: "asc" | "desc";
14558
+ }[];
14559
+ [key: string]: any;
14560
+ };
14561
+ interface Result extends DefaultPaginationResult {
14562
+ data: ActivityItemStatusWithPopulatedKeysSchema[];
14563
+ }
14564
+ }
14565
+ namespace Get {
14566
+ type ID = string;
14567
+ interface Params {
14568
+ }
14569
+ type Result = Data;
14570
+ }
14571
+ namespace Create {
14572
+ type Body = CreateBody;
14573
+ type Result = Data;
14574
+ }
14575
+ namespace Update {
14576
+ type ID = string;
14577
+ type Body = UpdateBody;
14578
+ type Result = Data;
14579
+ }
14495
14580
  }
14496
14581
  namespace ActivityPlanogram {
14497
14582
  interface Data {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.273",
3
+ "version": "1.0.275",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/index.ts CHANGED
@@ -68,6 +68,7 @@ export const end_points = {
68
68
  MEDIA_STORAGE: "media-storage",
69
69
  STORECHECK_TEMPLATE: "storecheck-template",
70
70
  ACTIVITY_STORECHECK: "activity-storecheck",
71
+ ACTIVITY_ITEM_STATUS: "activity-item-status",
71
72
  ADJUST_INVENTORY: "adjust-inventory",
72
73
  INVENTORY: "inventory",
73
74
  INTEGRATION_APP: "integration-app",
@@ -205,6 +206,7 @@ export const availableService = [
205
206
  "mediaStorage",
206
207
  "storecheckTemplate",
207
208
  "activityStorecheck",
209
+ "activityItemStatus",
208
210
  "adjustInventory",
209
211
  "inventory",
210
212
  "integrationApp",
@@ -3138,6 +3140,54 @@ export default class Repzo {
3138
3140
  },
3139
3141
  };
3140
3142
 
3143
+ activityItemStatus = {
3144
+ _path: Repzo._end_points.ACTIVITY_ITEM_STATUS,
3145
+ find: async (
3146
+ params?: Service.ActivityItemStatus.Find.Params,
3147
+ ): Promise<Service.ActivityItemStatus.Find.Result> => {
3148
+ let res: Service.ActivityItemStatus.Find.Result = await this._fetch(
3149
+ this.svAPIEndpoint,
3150
+ this.activityItemStatus._path,
3151
+ params,
3152
+ );
3153
+ return res;
3154
+ },
3155
+
3156
+ get: async (
3157
+ id: Service.ActivityItemStatus.Get.ID,
3158
+ params?: Service.ActivityItemStatus.Get.Params,
3159
+ ): Promise<Service.ActivityItemStatus.Get.Result> => {
3160
+ return await this._fetch(
3161
+ this.svAPIEndpoint,
3162
+ this.activityItemStatus._path + `/${id}`,
3163
+ params,
3164
+ );
3165
+ },
3166
+
3167
+ create: async (
3168
+ body: Service.ActivityItemStatus.Create.Body,
3169
+ ): Promise<Service.ActivityItemStatus.Create.Result> => {
3170
+ let res = await this._create(
3171
+ this.svAPIEndpoint,
3172
+ this.activityItemStatus._path,
3173
+ body,
3174
+ );
3175
+ return res;
3176
+ },
3177
+
3178
+ update: async (
3179
+ id: Service.ActivityItemStatus.Update.ID,
3180
+ body: Service.ActivityItemStatus.Update.Body,
3181
+ ): Promise<Service.ActivityItemStatus.Update.Result> => {
3182
+ let res: Service.ActivityItemStatus.Update.Result = await this._update(
3183
+ this.svAPIEndpoint,
3184
+ this.activityItemStatus._path + `/${id}`,
3185
+ body,
3186
+ );
3187
+ return res;
3188
+ },
3189
+ };
3190
+
3141
3191
  adjustInventory = {
3142
3192
  _path: Repzo._end_points.ADJUST_INVENTORY,
3143
3193
  find: async (
@@ -2433,6 +2433,7 @@ export namespace Service {
2433
2433
  previous_result_activated: boolean;
2434
2434
  presets_activated: boolean;
2435
2435
  apply_preset_to_all_sources: boolean;
2436
+ intersect_in_product_group_level: boolean;
2436
2437
  createdAt?: string;
2437
2438
  updatedAt?: string;
2438
2439
  __v?: number;
@@ -2450,6 +2451,7 @@ export namespace Service {
2450
2451
  previous_result_activated: boolean;
2451
2452
  presets_activated: boolean;
2452
2453
  apply_preset_to_all_sources: boolean;
2454
+ intersect_in_product_group_level?: boolean;
2453
2455
  }
2454
2456
  export interface UpdateBody {
2455
2457
  _id?: string;
@@ -2465,6 +2467,7 @@ export namespace Service {
2465
2467
  previous_result_activated?: boolean;
2466
2468
  presets_activated?: boolean;
2467
2469
  apply_preset_to_all_sources: boolean;
2470
+ intersect_in_product_group_level?: boolean;
2468
2471
  }
2469
2472
  export namespace Find {
2470
2473
  export type Params = DefaultPaginationQueryParams & {
@@ -15513,12 +15516,103 @@ export namespace Service {
15513
15516
  admin_notes: ActivityAdminNote[];
15514
15517
  comments: ActivityComment[];
15515
15518
  company_namespace: string[];
15519
+ job?: boolean;
15520
+ job_id?: string;
15521
+ job_category_id?: string;
15516
15522
  job_start_time?: number;
15517
15523
  job_end_time?: number;
15518
15524
  job_duration?: number;
15525
+ disabled?: boolean;
15519
15526
  createdAt: string;
15520
15527
  updatedAt: string;
15521
15528
  }
15529
+
15530
+ export interface CreateBody {
15531
+ items: Item[];
15532
+ geoPoint: GeoPoint;
15533
+ time: number;
15534
+ tags?: string[];
15535
+ visit_id: string;
15536
+ user: string;
15537
+ client: string;
15538
+ client_name: string;
15539
+ user_name: string;
15540
+ sync_id: string;
15541
+ route?: string;
15542
+ teams?: string[];
15543
+ company_namespace: string[];
15544
+ }
15545
+
15546
+ export interface UpdateBody {
15547
+ _id?: string;
15548
+ items?: Item[];
15549
+ geoPoint?: GeoPoint;
15550
+ time?: number;
15551
+ tags?: string[];
15552
+ visit_id?: string;
15553
+ user?: string;
15554
+ client?: string;
15555
+ client_name?: string;
15556
+ user_name?: string;
15557
+ sync_id?: string;
15558
+ route?: string;
15559
+ teams?: string[];
15560
+ company_namespace?: string[];
15561
+ }
15562
+
15563
+ export type PopulatedKeys =
15564
+ | "teams"
15565
+ | "user"
15566
+ | "client"
15567
+ | "route"
15568
+ | "visit_id";
15569
+
15570
+ export type ActivityItemStatusWithPopulatedKeysSchema = Data & {
15571
+ teams_populated?: Team.TeamSchema[] | string[];
15572
+ user_populated?: Rep.RepSchema | string;
15573
+ client_populated?: Client.ClientSchema | string;
15574
+ route_populated?: Route.RouteSchema | string;
15575
+ visit_id_populated?: Visit.VisitSchema | string;
15576
+ };
15577
+
15578
+ export namespace Find {
15579
+ export type Params = DefaultPaginationQueryParams & {
15580
+ _id?: string[] | string;
15581
+ disabled?: boolean;
15582
+ from_updatedAt?: string;
15583
+ from_time?: number;
15584
+ to_time?: number;
15585
+ client?: string;
15586
+ user?: string;
15587
+ teams?: string[];
15588
+ route?: string;
15589
+ populatedKeys?: PopulatedKeys[];
15590
+ from__id?: string;
15591
+ to__id?: string;
15592
+ sortBy?: {
15593
+ field: "_id";
15594
+ type: "asc" | "desc";
15595
+ }[];
15596
+ [key: string]: any;
15597
+ };
15598
+ export interface Result extends DefaultPaginationResult {
15599
+ data: ActivityItemStatusWithPopulatedKeysSchema[];
15600
+ }
15601
+ }
15602
+ export namespace Get {
15603
+ export type ID = string;
15604
+ export interface Params {}
15605
+ export type Result = Data;
15606
+ }
15607
+ export namespace Create {
15608
+ export type Body = CreateBody;
15609
+ export type Result = Data;
15610
+ }
15611
+ export namespace Update {
15612
+ export type ID = string;
15613
+ export type Body = UpdateBody;
15614
+ export type Result = Data;
15615
+ }
15522
15616
  }
15523
15617
 
15524
15618
  export namespace ActivityPlanogram {