repzo 1.0.153 → 1.0.155

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.
@@ -1,3 +1,5 @@
1
+ import type { EndPoints } from "../index";
2
+
1
3
  export interface Params {
2
4
  [key: string]: any;
3
5
  }
@@ -2315,7 +2317,7 @@ export namespace Service {
2315
2317
  }
2316
2318
 
2317
2319
  export namespace ActivityStorecheck {
2318
- interface Field {
2320
+ export interface Field {
2319
2321
  _id?: string;
2320
2322
  name: string;
2321
2323
  type: FieldType;
@@ -2335,12 +2337,12 @@ export namespace Service {
2335
2337
  export interface Division {
2336
2338
  fields: Field[];
2337
2339
  }
2338
- interface Result {
2340
+ export interface Result {
2339
2341
  source_id: string;
2340
2342
  source_name: string;
2341
2343
  divisions: Division[];
2342
2344
  }
2343
- interface Entry {
2345
+ export interface Entry {
2344
2346
  entry_id: string;
2345
2347
  source:
2346
2348
  | "product"
@@ -2442,7 +2444,7 @@ export namespace Service {
2442
2444
  job_end_time?: number;
2443
2445
  job_duration?: number;
2444
2446
  }
2445
- type PopulatedKeys =
2447
+ export type PopulatedKeys =
2446
2448
  | "teams"
2447
2449
  | "tags"
2448
2450
  | "client"
@@ -2722,12 +2724,13 @@ export namespace Service {
2722
2724
 
2723
2725
  export namespace Rep {
2724
2726
  interface RepPermissions {
2727
+ rep_can_print_payment_after_allowance_period?: boolean;
2725
2728
  rep_can_add_client: boolean;
2726
2729
  rep_can_edit_client: boolean;
2727
2730
  rep_can_add_calendar: boolean;
2728
2731
  rep_can_edit_calendar: boolean;
2729
- rep_can_skip_photo_tag: boolean;
2730
2732
  rep_can_edit_others_calendar: boolean;
2733
+ rep_can_skip_photo_tag: boolean;
2731
2734
  rep_can_edit_product_price?: boolean;
2732
2735
  rep_must_add_client_with_location?: boolean;
2733
2736
  rep_can_access_shared_history?: boolean;
@@ -2744,9 +2747,6 @@ export namespace Service {
2744
2747
  rep_can_create_partial_return_invoice?: boolean;
2745
2748
  rep_can_sell_zero_product_price?: boolean;
2746
2749
  rep_can_create_sales_order_out_of_visit?: boolean;
2747
- rep_can_create_cash_invoice?: boolean;
2748
- rep_can_sell_above_product_price?: boolean;
2749
- rep_can_sell_below_product_price?: boolean;
2750
2750
  rep_can_create_return_out_of_visit?: boolean;
2751
2751
  rep_can_create_partial_return_out_of_visit?: boolean;
2752
2752
  rep_can_skip_return_reason?: boolean;
@@ -2754,8 +2754,10 @@ export namespace Service {
2754
2754
  rep_can_create_free_payments?: boolean;
2755
2755
  rep_can_partially_pay_invoice?: boolean;
2756
2756
  auto_close_visit_when_out_of_geo_fence?: boolean;
2757
- end_visit_when_out_of_geofence?: boolean;
2758
2757
  end_visit_when_low_accuracy?: boolean;
2758
+ rep_can_create_cash_invoice?: boolean;
2759
+ rep_can_sell_above_product_price?: boolean;
2760
+ rep_can_sell_below_product_price?: boolean;
2759
2761
  rep_can_create_workorder?: boolean;
2760
2762
  rep_can_create_asset?: boolean;
2761
2763
  rep_can_skip_promotions?: boolean;
@@ -2765,32 +2767,42 @@ export namespace Service {
2765
2767
  rep_can_end_visit_without_submitting_item_status?: boolean;
2766
2768
  rep_can_submit_multiple_item_status_products?: boolean;
2767
2769
  rep_can_edit_return_product_price?: boolean;
2770
+ rep_can_overwrite_partial_return_invoice_price?: boolean;
2768
2771
  rep_can_skip_cart_calculation_until_checkout?: boolean;
2769
2772
  rep_can_start_day_without_gps_signal?: boolean;
2773
+ rep_can_start_day_with_outstanding_settlement_balance?: boolean;
2770
2774
  rep_can_create_add_client_approval_request?: boolean;
2771
- rep_can_create_edit_client_details_approval_request: boolean;
2772
- rep_can_create_edit_client_assigned_to_approval_request: boolean;
2773
- rep_can_create_edit_client_location_approval_request: boolean;
2774
- rep_can_create_delete_client_approval_request: boolean;
2775
- rep_can_create_skip_job_at_visit_end_approval_request: boolean;
2776
- rep_can_create_skip_geofence_at_visit_end_approval_request: boolean;
2777
- rep_can_create_credit_invoice_for_cash_client: boolean;
2778
- rep_can_view_client_credit_limit: boolean;
2779
- rep_can_create_edit_client_credit_limit_approval_request: boolean;
2780
- rep_can_assign_workorder: boolean;
2781
- rep_can_visit_outside_route: boolean;
2782
- rep_can_edit_retail_execution_entry: boolean;
2783
- rep_can_edit_form_entry: boolean;
2784
- rep_can_skip_visit_from_route_sequence: boolean;
2785
- rep_can_create_return_sales_order: boolean;
2775
+ rep_can_create_edit_client_details_approval_request?: boolean;
2776
+ rep_can_create_edit_client_assigned_to_approval_request?: boolean;
2777
+ rep_can_create_edit_client_location_approval_request?: boolean;
2778
+ rep_can_create_delete_client_approval_request?: boolean;
2779
+ rep_can_create_skip_job_at_visit_end_approval_request?: boolean;
2780
+ rep_can_create_skip_geofence_at_visit_end_approval_request?: boolean;
2781
+ rep_can_view_client_credit_limit?: boolean;
2782
+ rep_can_create_edit_client_credit_limit_approval_request?: boolean;
2783
+ rep_can_assign_workorder?: boolean;
2784
+ rep_can_create_credit_invoice_for_cash_client?: boolean;
2785
+ rep_can_visit_outside_route?: boolean;
2786
+ rep_can_edit_retail_execution_entry?: boolean;
2787
+ rep_can_edit_form_entry?: boolean;
2788
+ rep_can_skip_visit_from_route_sequence?: boolean;
2789
+ rep_can_create_return_sales_order?: boolean;
2786
2790
  rep_can_edit_sales_order_custom_status?: boolean;
2787
2791
  rep_can_edit_invoice_custom_status?: boolean;
2788
- rep_can_start_day_with_outstanding_settlement_balance?: boolean;
2789
2792
  rep_to_create_invoice_variant_batch_from_assigned_warehouse?: boolean;
2790
2793
  rep_to_create_sales_order_variant_batch_assigned_main_warehouse?: boolean;
2791
2794
  rep_can_create_pull_from_client_assigned_to_approval_request?: boolean;
2792
- rep_must_end_day_after_specific_time?: boolean;
2793
- rep_can_create_negative_invoice?: boolean;
2795
+ rep_can_create_payment?: boolean;
2796
+ rep_can_print_offline_invoice?: boolean;
2797
+ rep_can_print_offline_sales_order?: boolean;
2798
+ rep_can_skip_exp_date_in_audit_stock?: boolean;
2799
+ rep_must_start_day_within_specific_time_frame: boolean;
2800
+ rep_can_skip_assigned_client_filter_on_workorder_assigned_to?: boolean;
2801
+ rep_can_assign_client_to_other_reps?: boolean;
2802
+ rep_must_enter_sales_order_external_serial_number?: boolean;
2803
+ rep_must_enter_invoice_external_serial_number?: boolean;
2804
+ rep_can_create_negative_invoices?: boolean;
2805
+ rep_must_end_day_after_specific_time: boolean;
2794
2806
  }
2795
2807
  interface TargetResults {
2796
2808
  totalPoints: number;
@@ -2870,6 +2882,7 @@ export namespace Service {
2870
2882
  updatedAt: string;
2871
2883
  __v: number;
2872
2884
  }
2885
+ export type Data = RepSchema;
2873
2886
  export interface RepBody {
2874
2887
  username?: string;
2875
2888
  name?: string;
@@ -3038,8 +3051,19 @@ export namespace Service {
3038
3051
  "permissions.rep_to_create_invoice_variant_batch_from_assigned_warehouse"?: boolean;
3039
3052
  "permissions.rep_to_create_sales_order_variant_batch_assigned_main_warehouse"?: boolean;
3040
3053
  "permissions.rep_can_create_pull_from_client_assigned_to_approval_request"?: boolean;
3054
+ "permissions.rep_can_print_payment_after_allowance_period"?: boolean;
3055
+ "permissions.rep_can_overwrite_partial_return_invoice_price"?: boolean;
3056
+ "permissions.rep_can_create_payment"?: boolean;
3057
+ "permissions.rep_can_print_offline_invoice"?: boolean;
3058
+ "permissions.rep_can_print_offline_sales_order"?: boolean;
3059
+ "permissions.rep_can_skip_exp_date_in_audit_stock"?: boolean;
3060
+ "permissions.rep_must_start_day_within_specific_time_frame"?: boolean;
3061
+ "permissions.rep_can_skip_assigned_client_filter_on_workorder_assigned_to"?: boolean;
3062
+ "permissions.rep_can_assign_client_to_other_reps"?: boolean;
3063
+ "permissions.rep_must_enter_sales_order_external_serial_number"?: boolean;
3064
+ "permissions.rep_must_enter_invoice_external_serial_number"?: boolean;
3041
3065
  "permissions.rep_must_end_day_after_specific_time"?: boolean;
3042
- "permissions.rep_can_create_negative_invoice"?: boolean;
3066
+ "permissions.rep_can_create_negative_invoices"?: boolean;
3043
3067
  "settings.rep_must_end_day_after"?: `${number}:${number}`;
3044
3068
  "settings.allowable_accuracy"?: number;
3045
3069
  "settings.is_item_status_per_visit_limited"?: boolean;
@@ -3056,6 +3080,11 @@ export namespace Service {
3056
3080
  "settings.watermark_time"?: boolean;
3057
3081
  "settings.watermark_date"?: boolean;
3058
3082
  "settings.watermark_coordinates"?: boolean;
3083
+ "settings.watermark_font_size"?: number;
3084
+ "settings.disable_auto_timezone_enforcement"?: boolean;
3085
+ "settings.disable_auto_time_date_enforcement"?: boolean;
3086
+ "settings.start_day_specific_time_frame_start"?: string;
3087
+ "settings.start_day_specific_time_frame_end"?: string;
3059
3088
  is_test?: boolean;
3060
3089
  form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
3061
3090
  assigned_forms_v2?: string | string[];
@@ -5120,7 +5149,7 @@ export namespace Service {
5120
5149
  | "visit_id"
5121
5150
  | "feed_back_option";
5122
5151
 
5123
- type ActivityFeedbackV2SchemaWithPopulatedKeys =
5152
+ export type ActivityFeedbackV2SchemaWithPopulatedKeys =
5124
5153
  ActivityFeedbackV2Schema & {
5125
5154
  teams_populated?: string[] | Team.TeamSchema[];
5126
5155
  route_populated?: string | Route.RouteSchema;
@@ -8019,6 +8048,7 @@ export namespace Service {
8019
8048
  createdAt: Date;
8020
8049
  updatedAt: Date;
8021
8050
  }
8051
+ export type Data = DaySchema;
8022
8052
 
8023
8053
  export interface CreateBody {
8024
8054
  startTime: string[];
@@ -14506,7 +14536,7 @@ export namespace Service {
14506
14536
  }
14507
14537
 
14508
14538
  export namespace ActivityAudit {
14509
- interface Inventory {
14539
+ export interface Inventory {
14510
14540
  store_qun?: number;
14511
14541
  shelf_qun?: number;
14512
14542
  shelf_price?: number;
@@ -14522,7 +14552,7 @@ export namespace Service {
14522
14552
  note?: string;
14523
14553
  }
14524
14554
 
14525
- interface AuditItem {
14555
+ export interface AuditItem {
14526
14556
  product_name: string;
14527
14557
  product_id: string;
14528
14558
  product_sub_category?: string;
@@ -14614,6 +14644,8 @@ export namespace Service {
14614
14644
  product_id: string;
14615
14645
  available: boolean;
14616
14646
  }[];
14647
+ photos?: string[];
14648
+ media?: StringId[];
14617
14649
  createdAt: string;
14618
14650
  updatedAt: string;
14619
14651
  }
@@ -14788,7 +14820,7 @@ export namespace Service {
14788
14820
  }
14789
14821
 
14790
14822
  export namespace FormV2 {
14791
- interface Visibility {
14823
+ export interface Visibility {
14792
14824
  operator: "and" | "or";
14793
14825
  conditions: {
14794
14826
  division_id: string;
@@ -14972,7 +15004,7 @@ export namespace Service {
14972
15004
  }
14973
15005
 
14974
15006
  export namespace ActivityFormV2Result {
14975
- const fieldType_enums = [
15007
+ export const fieldType_enums = [
14976
15008
  "Text", // Long Text
14977
15009
  "String", // Short Text
14978
15010
  "Phone", // phone
@@ -14991,9 +15023,9 @@ export namespace Service {
14991
15023
  "BarcodeScan", // String
14992
15024
  "GeoPoint", // { coordinates: [0, 0], type: "Point" }
14993
15025
  ] as const;
14994
- type FormV2FieldType = (typeof fieldType_enums)[number];
15026
+ export type FormV2FieldType = (typeof fieldType_enums)[number];
14995
15027
 
14996
- interface FieldResult {
15028
+ export interface FieldResult {
14997
15029
  _id?: string;
14998
15030
  field_id: string;
14999
15031
  name: string;
@@ -15023,7 +15055,7 @@ export namespace Service {
15023
15055
  }[];
15024
15056
  }
15025
15057
 
15026
- interface DivisionResult {
15058
+ export interface DivisionResult {
15027
15059
  _id: string;
15028
15060
  division_id: string;
15029
15061
  name: string;
@@ -15076,14 +15108,14 @@ export namespace Service {
15076
15108
  }
15077
15109
 
15078
15110
  export namespace ActivityItemStatus {
15079
- type ItemStatus =
15111
+ export type ItemStatus =
15080
15112
  | "current_user"
15081
15113
  | "non_user"
15082
15114
  | "generic_user"
15083
15115
  | "competitor_user"
15084
15116
  | "other";
15085
15117
 
15086
- interface Item {
15118
+ export interface Item {
15087
15119
  product: string;
15088
15120
  product_name: string;
15089
15121
  status: ItemStatus;
@@ -15264,106 +15296,107 @@ export namespace Service {
15264
15296
  }
15265
15297
  }
15266
15298
 
15267
- export namespace ActivityStorecheck {
15268
- type FieldType =
15269
- | "Text"
15270
- | "String"
15271
- | "Date"
15272
- | "Image"
15273
- | "Boolean"
15274
- | "Number"
15275
- | "List"
15276
- | "Separator"
15277
- | "Heading"
15278
- | "Media";
15279
-
15280
- type Source =
15281
- | "product"
15282
- | "variant"
15283
- | "product-category"
15284
- | "product-sub-category"
15285
- | "product-brand"
15286
- | "product-group";
15287
-
15288
- interface GeoTag {
15289
- lat?: number;
15290
- lng?: number;
15291
- formatted_address?: string;
15292
- }
15293
-
15294
- interface GeoPoint {
15295
- type: "Point";
15296
- coordinates: [number, number];
15297
- }
15298
-
15299
- interface Entry {
15300
- entry_id: string;
15301
- source: Source;
15302
- results: Result[];
15303
- }
15304
- interface Result {
15305
- source_id: string;
15306
- source_name: string;
15307
- divisions: Division[];
15308
- }
15309
- interface Division {
15310
- fields: Field[];
15311
- }
15312
- interface Field {
15313
- _id?: string;
15314
- name: string;
15315
- type: FieldType;
15316
- isArray: boolean;
15317
- isRequired?: boolean;
15318
- is_calculated_field?: boolean;
15319
- formula_key?: string;
15320
- parent_field?: string;
15321
- custom_list?: string | CustomList.Data | StringId;
15322
- field_id: string | StringId;
15323
- result: any[];
15324
- result_custom_list_ids?: any[];
15325
- calculation_status?: "success" | "failed";
15326
- calculation_error?: string | any[];
15327
- company_namespace?: string[];
15328
- }
15329
- export interface Data {
15330
- _id: string;
15331
- company_namespace: string[];
15332
- client: string;
15333
- client_name: string;
15334
- sync_id: string;
15335
- time_zone: string;
15336
- template_id: string;
15337
- visit?: string;
15338
- visit_id?: string;
15339
- battery_level?: number;
15340
- user: string;
15341
- user_name: string;
15342
- time: number;
15343
- geo_tag?: GeoTag;
15344
- geoPoint: GeoPoint;
15345
- teams?: string[];
15346
- route?: string;
15347
- tags?: string[];
15348
- entries: Entry[];
15349
- platform?: string;
15350
- version_name?: string;
15351
- device_brand?: string;
15352
- device_os?: string;
15353
- device_os_version?: string;
15354
- device_model?: string;
15355
- identifier?: number;
15356
- device_id?: string;
15357
- device_unique_id?: string;
15358
- network_state?: number;
15359
- serial_number?: SerialNumber;
15360
- job_start_time?: number;
15361
- job_end_time?: number;
15362
- job_duration?: number;
15363
- createdAt: Date;
15364
- updatedAt: Date;
15365
- }
15366
- }
15299
+ // export namespace ActivityStorecheck {
15300
+ // export type FieldType =
15301
+ // | "Text"
15302
+ // | "String"
15303
+ // | "Date"
15304
+ // | "Image"
15305
+ // | "Boolean"
15306
+ // | "Number"
15307
+ // | "List"
15308
+ // | "Separator"
15309
+ // | "Heading"
15310
+ // | "Media";
15311
+
15312
+ // export type Source =
15313
+ // | "product"
15314
+ // | "variant"
15315
+ // | "product-category"
15316
+ // | "product-sub-category"
15317
+ // | "product-brand"
15318
+ // | "product-group";
15319
+
15320
+ // export interface GeoTag {
15321
+ // lat?: number;
15322
+ // lng?: number;
15323
+ // formatted_address?: string;
15324
+ // }
15325
+
15326
+ // export interface GeoPoint {
15327
+ // type: "Point";
15328
+ // coordinates: [number, number];
15329
+ // }
15330
+
15331
+ // interface Result {
15332
+ // source_id: string;
15333
+ // source_name: string;
15334
+ // divisions: Division[];
15335
+ // }
15336
+ // export interface Entry {
15337
+ // entry_id: string;
15338
+ // source: Source;
15339
+ // results: Result[];
15340
+ // }
15341
+
15342
+ // interface Division {
15343
+ // fields: Field[];
15344
+ // }
15345
+ // interface Field {
15346
+ // _id?: string;
15347
+ // name: string;
15348
+ // type: FieldType;
15349
+ // isArray: boolean;
15350
+ // isRequired?: boolean;
15351
+ // is_calculated_field?: boolean;
15352
+ // formula_key?: string;
15353
+ // parent_field?: string;
15354
+ // custom_list?: string | CustomList.Data | StringId;
15355
+ // field_id: string | StringId;
15356
+ // result: any[];
15357
+ // result_custom_list_ids?: any[];
15358
+ // calculation_status?: "success" | "failed";
15359
+ // calculation_error?: string | any[];
15360
+ // company_namespace?: string[];
15361
+ // }
15362
+ // export interface Data {
15363
+ // _id: string;
15364
+ // company_namespace: string[];
15365
+ // client: string;
15366
+ // client_name: string;
15367
+ // sync_id: string;
15368
+ // time_zone: string;
15369
+ // template_id: string;
15370
+ // visit?: string;
15371
+ // visit_id?: string;
15372
+ // battery_level?: number;
15373
+ // user: string;
15374
+ // user_name: string;
15375
+ // time: number;
15376
+ // geo_tag?: GeoTag;
15377
+ // geoPoint: GeoPoint;
15378
+ // teams?: string[];
15379
+ // route?: string;
15380
+ // tags?: string[];
15381
+ // entries: Entry[];
15382
+ // platform?: string;
15383
+ // version_name?: string;
15384
+ // device_brand?: string;
15385
+ // device_os?: string;
15386
+ // device_os_version?: string;
15387
+ // device_model?: string;
15388
+ // identifier?: number;
15389
+ // device_id?: string;
15390
+ // device_unique_id?: string;
15391
+ // network_state?: number;
15392
+ // serial_number?: SerialNumber;
15393
+ // job_start_time?: number;
15394
+ // job_end_time?: number;
15395
+ // job_duration?: number;
15396
+ // createdAt: Date;
15397
+ // updatedAt: Date;
15398
+ // }
15399
+ // }
15367
15400
 
15368
15401
  export namespace Reminder {
15369
15402
  export interface Data {
@@ -15389,6 +15422,7 @@ export namespace Service {
15389
15422
 
15390
15423
  export namespace TimelineReport {
15391
15424
  export const activity_types = [
15425
+ "day",
15392
15426
  "client",
15393
15427
  "visit",
15394
15428
  "payment",
@@ -15434,7 +15468,7 @@ export namespace Service {
15434
15468
  _id: StringId;
15435
15469
  company_namespace: string[];
15436
15470
  activity_type: ActivityType;
15437
- activity_id: StringId;
15471
+ activity_id: StringId | StringId[];
15438
15472
  time: number;
15439
15473
  business_day?: string;
15440
15474
  user: {
@@ -15453,6 +15487,7 @@ export namespace Service {
15453
15487
  geoPoint?: { coordinates: [number, number]; type: "Point" };
15454
15488
  details:
15455
15489
  | VisitDetails
15490
+ | DayDetails
15456
15491
  | PaymentDetails
15457
15492
  | RefundDetails
15458
15493
  | ActivityPhotoDetails
@@ -15494,7 +15529,7 @@ export namespace Service {
15494
15529
  updatedAt: Date;
15495
15530
  }
15496
15531
 
15497
- type VisitDetails = {
15532
+ export type VisitDetails = {
15498
15533
  activity_type: "visit";
15499
15534
  activities: (
15500
15535
  | ActivityAuditVisitDetails
@@ -15535,68 +15570,72 @@ export namespace Service {
15535
15570
  | "battery_level"
15536
15571
  | "version_name"
15537
15572
  | "device_brand"
15573
+ | "start_out_of_geofence"
15574
+ | "end_out_of_geofence"
15575
+ | "auto_closed_by_geofence"
15576
+ | "auto_closed_by_geofence_reason"
15577
+ | "client_geo_location"
15538
15578
  >;
15539
15579
 
15540
15580
  // ActivityPhoto ********************************************************************
15541
- type ActivityPhotoDetails = { activity_type: "activity-photo" } & Pick<
15542
- ActivityPhoto.Data,
15543
- "media"
15544
- >;
15545
- type ActivityPhotoVisitDetails = {
15581
+ export type ActivityPhotoDetails = {
15582
+ activity_type: "activity-photo";
15583
+ } & Pick<ActivityPhoto.Data, "media">;
15584
+ export type ActivityPhotoVisitDetails = {
15546
15585
  activity_type: "activity-photo";
15547
15586
  activity_id: StringId;
15548
15587
  } & Pick<ActivityPhoto.Data, "media" | "time">;
15549
15588
 
15550
15589
  // ActivityAudit ********************************************************************
15551
- type ActivityAuditDetails = {
15590
+ export type ActivityAuditDetails = {
15552
15591
  activity_type: "activity-audit";
15553
15592
  audits_length: number;
15554
15593
  };
15555
- type ActivityAuditVisitDetails = {
15594
+ export type ActivityAuditVisitDetails = {
15556
15595
  activity_type: "activity-audit";
15557
15596
  activity_id: StringId;
15558
15597
  audits_length: number;
15559
15598
  } & Pick<ActivityAudit.Data, "time">;
15560
15599
 
15561
15600
  // ActivityAvailability ********************************************************************
15562
- type ActivityAvailabilityDetails = {
15601
+ export type ActivityAvailabilityDetails = {
15563
15602
  activity_type: "activity-availability";
15564
15603
  products_available_length: number;
15565
15604
  msl_name: string;
15566
- } & Pick<ActivityAvailability.Data, "msl_id">;
15567
- type ActivityAvailabilityVisitDetails = {
15605
+ } & Pick<ActivityAvailability.Data, "msl_id" | "media">;
15606
+ export type ActivityAvailabilityVisitDetails = {
15568
15607
  activity_type: "activity-availability";
15569
15608
  activity_id: StringId;
15570
15609
  products_available_length: number;
15571
15610
  msl_name: string;
15572
- } & Pick<ActivityAvailability.Data, "time" | "msl_id">;
15611
+ } & Pick<ActivityAvailability.Data, "time" | "msl_id" | "media">;
15573
15612
 
15574
15613
  // ActivityNote ********************************************************************
15575
- type ActivityNoteDetails = { activity_type: "activity-note" } & Pick<
15614
+ export type ActivityNoteDetails = { activity_type: "activity-note" } & Pick<
15576
15615
  ActivityNote.Data,
15577
15616
  "content"
15578
15617
  >;
15579
- type ActivityNoteVisitDetails = {
15618
+ export type ActivityNoteVisitDetails = {
15580
15619
  activity_type: "activity-note";
15581
15620
  activity_id: StringId;
15582
15621
  } & Pick<ActivityNote.Data, "content" | "time">;
15583
15622
 
15584
15623
  // ActivityTask ********************************************************************
15585
- type ActivityTaskDetails = { activity_type: "activity-task" } & Pick<
15624
+ export type ActivityTaskDetails = { activity_type: "activity-task" } & Pick<
15586
15625
  ActivityTask.Data,
15587
15626
  "start_media" | "end_media"
15588
15627
  >;
15589
- type ActivityTaskVisitDetails = {
15628
+ export type ActivityTaskVisitDetails = {
15590
15629
  activity_type: "activity-task";
15591
15630
  activity_id: StringId;
15592
15631
  } & Pick<ActivityTask.Data, "start_media" | "end_media" | "time">;
15593
15632
 
15594
15633
  // ActivityPlanogram ********************************************************************
15595
- type ActivityPlanogramDetails = {
15634
+ export type ActivityPlanogramDetails = {
15596
15635
  activity_type: "activity-planogram";
15597
15636
  msl_name: string;
15598
15637
  } & Pick<ActivityPlanogram.Data, "media" | "planogram_reason" | "msl_id">;
15599
- type ActivityPlanogramVisitDetails = {
15638
+ export type ActivityPlanogramVisitDetails = {
15600
15639
  activity_type: "activity-planogram";
15601
15640
  activity_id: StringId;
15602
15641
  msl_name: string;
@@ -15606,100 +15645,115 @@ export namespace Service {
15606
15645
  >;
15607
15646
 
15608
15647
  // ActivityShelfshare ********************************************************************
15609
- type ActivityShelfshareDetails = {
15648
+ export type ActivityShelfshareDetails = {
15610
15649
  activity_type: "activity-shelfshare";
15611
- msl_name: string;
15612
- } & Pick<
15613
- ActivityShelfshare.Data,
15614
- "msl_length" | "total_msl_length" | "msl_id"
15615
- >;
15616
- type ActivityShelfshareVisitDetails = {
15650
+ results: (Pick<
15651
+ ActivityShelfshare.Data,
15652
+ "msl_length" | "total_msl_length" | "msl_id"
15653
+ > & { activity_id: StringId; msl_name: string })[];
15654
+ };
15655
+ export type ActivityShelfshareVisitDetails = {
15617
15656
  activity_type: "activity-shelfshare";
15618
- activity_id: StringId;
15619
- msl_name: string;
15620
- } & Pick<
15621
- ActivityShelfshare.Data,
15622
- "msl_length" | "total_msl_length" | "time" | "msl_id"
15623
- >;
15657
+ activity_id: StringId[];
15658
+ time: number;
15659
+ results: (Pick<
15660
+ ActivityShelfshare.Data,
15661
+ "msl_length" | "total_msl_length" | "msl_id"
15662
+ > & { activity_id: StringId; msl_name: string })[];
15663
+ };
15624
15664
 
15625
15665
  // ActivitySecondaryDisplay ********************************************************************
15626
- type ActivitySecondaryDisplayDetails = {
15666
+ export type ActivitySecondaryDisplayDetails = {
15627
15667
  activity_type: "activity-secondary-display";
15628
- msl_name: string;
15629
- } & Pick<ActivitySecondaryDisplay.Data, "secondary_count" | "msl_id">;
15630
- type ActivitySecondaryDisplayVisitDetails = {
15668
+ results: (Pick<
15669
+ ActivitySecondaryDisplay.Data,
15670
+ "secondary_count" | "msl_id"
15671
+ > & { activity_id: StringId; msl_name: string })[];
15672
+ };
15673
+ export type ActivitySecondaryDisplayVisitDetails = {
15631
15674
  activity_type: "activity-secondary-display";
15632
- activity_id: StringId;
15633
- msl_name: string;
15634
- } & Pick<
15635
- ActivitySecondaryDisplay.Data,
15636
- "secondary_count" | "time" | "msl_id"
15637
- >;
15675
+ activity_id: StringId[];
15676
+ time: number;
15677
+ results: (Pick<
15678
+ ActivitySecondaryDisplay.Data,
15679
+ "secondary_count" | "msl_id"
15680
+ > & { activity_id: StringId; msl_name: string })[];
15681
+ };
15638
15682
 
15639
15683
  // ActivityCheckoutDisplay ********************************************************************
15640
- type ActivityCheckoutDisplayDetails = {
15684
+ export type ActivityCheckoutDisplayDetails = {
15641
15685
  activity_type: "activity-checkout-display";
15642
- msl_name: string;
15643
- } & Pick<ActivityCheckoutDisplay.Data, "checkout_count" | "msl_id">;
15644
- type ActivityCheckoutDisplayVisitDetails = {
15686
+ results: (Pick<
15687
+ ActivityCheckoutDisplay.Data,
15688
+ "checkout_count" | "msl_id"
15689
+ > & { activity_id: StringId; msl_name: string })[];
15690
+ };
15691
+ export type ActivityCheckoutDisplayVisitDetails = {
15645
15692
  activity_type: "activity-checkout-display";
15646
- activity_id: StringId;
15647
- msl_name: string;
15648
- } & Pick<
15649
- ActivityCheckoutDisplay.Data,
15650
- "checkout_count" | "time" | "msl_id"
15651
- >;
15693
+ activity_id: StringId[];
15694
+ time: number;
15695
+ results: (Pick<
15696
+ ActivityCheckoutDisplay.Data,
15697
+ "checkout_count" | "msl_id"
15698
+ > & { activity_id: StringId; msl_name: string })[];
15699
+ };
15652
15700
 
15653
15701
  // ActivityItemStatus ********************************************************************
15654
- type ActivityItemStatusDetails = {
15702
+ export type ActivityItemStatusDetails = {
15655
15703
  activity_type: "activity-item-status";
15656
15704
  items_length?: number;
15657
15705
  };
15658
- type ActivityItemStatusVisitDetails = {
15706
+ export type ActivityItemStatusVisitDetails = {
15659
15707
  activity_type: "activity-item-status";
15660
15708
  activity_id: StringId;
15661
15709
  items_length?: number;
15662
15710
  } & Pick<ActivityItemStatus.Data, "time">;
15663
15711
 
15664
15712
  // ActivityFormResult ********************************************************************
15665
- type ActivityFormResultDetails = {
15713
+ export type ActivityFormResultDetails = {
15666
15714
  activity_type: "activity-form-result";
15667
15715
  form_name?: string;
15668
15716
  } & Pick<ActivityFormResult.Data, "form_id">;
15669
- type ActivityFormResultVisitDetails = {
15717
+ export type ActivityFormResultVisitDetails = {
15670
15718
  activity_type: "activity-form-result";
15671
15719
  activity_id: StringId;
15672
15720
  form_name?: string;
15673
15721
  } & Pick<ActivityFormResult.Data, "form_id" | "time">;
15674
15722
 
15675
15723
  // ActivityFormV2Result ********************************************************************
15676
- type ActivityFormV2ResultDetails = {
15724
+ export type ActivityFormV2ResultDetails = {
15677
15725
  activity_type: "activity-form-v2-result";
15678
15726
  form_name?: string;
15679
15727
  } & Pick<ActivityFormV2Result.Data, "form_id" | "serial_number">;
15680
- type ActivityFormV2ResultVisitDetails = {
15728
+ export type ActivityFormV2ResultVisitDetails = {
15681
15729
  activity_type: "activity-form-v2-result";
15682
15730
  activity_id: StringId;
15683
15731
  form_name?: string;
15684
15732
  } & Pick<ActivityFormV2Result.Data, "form_id" | "serial_number" | "time">;
15685
15733
 
15686
15734
  // ActivityStorecheck ********************************************************************
15687
- type ActivityStorecheckDetails = {
15735
+ export type ActivityStorecheckDetails = {
15688
15736
  activity_type: "activity-storecheck";
15689
15737
  template_name?: string;
15690
- } & Pick<ActivityStorecheck.Data, "template_id" | "serial_number">;
15691
- type ActivityStorecheckVisitDetails = {
15738
+ } & Pick<
15739
+ ActivityStorecheck.ActivityStoreCheckWithPopulatedKeysSchema,
15740
+ "template_id" | "serial_number"
15741
+ >;
15742
+ export type ActivityStorecheckVisitDetails = {
15692
15743
  activity_type: "activity-storecheck";
15693
15744
  activity_id: StringId;
15694
15745
  template_name?: string;
15695
- } & Pick<ActivityStorecheck.Data, "template_id" | "serial_number" | "time">;
15746
+ } & Pick<
15747
+ ActivityStorecheck.ActivityStoreCheckWithPopulatedKeysSchema,
15748
+ "template_id" | "serial_number" | "time"
15749
+ >;
15696
15750
 
15697
15751
  // ActivityFeedback ********************************************************************
15698
- type ActivityFeedbackDetails = {
15752
+ export type ActivityFeedbackDetails = {
15699
15753
  activity_type: "activity-feedback";
15700
15754
  feed_back_option_label?: string;
15701
15755
  } & Pick<ActivityFeedback.Data, "feed_back_option">;
15702
- type ActivityFeedbackVisitDetails = {
15756
+ export type ActivityFeedbackVisitDetails = {
15703
15757
  activity_type: "activity-feedback";
15704
15758
  activity_id: StringId;
15705
15759
  time?: number;
@@ -15707,11 +15761,10 @@ export namespace Service {
15707
15761
  } & Pick<ActivityFeedback.Data, "feed_back_option">;
15708
15762
 
15709
15763
  // ApprovalRequest ********************************************************************
15710
- type ApprovalRequestDetails = { activity_type: "approval-request" } & Pick<
15711
- ApprovalRequest.Data,
15712
- "serial_number" | "type" | "subtype"
15713
- >;
15714
- type ApprovalRequestVisitDetails = {
15764
+ export type ApprovalRequestDetails = {
15765
+ activity_type: "approval-request";
15766
+ } & Pick<ApprovalRequest.Data, "serial_number" | "type" | "subtype">;
15767
+ export type ApprovalRequestVisitDetails = {
15715
15768
  activity_type: "approval-request";
15716
15769
  activity_id: StringId;
15717
15770
  } & Pick<
@@ -15720,28 +15773,31 @@ export namespace Service {
15720
15773
  >;
15721
15774
 
15722
15775
  // Reminder ********************************************************************
15723
- type ReminderDetails = { activity_type: "reminders" } & Pick<
15776
+ export type ReminderDetails = { activity_type: "reminders" } & Pick<
15724
15777
  Reminder.Data,
15725
- "content" | "cover_photo"
15778
+ "content" | "cover_photo" | "from" | "to" | "name"
15726
15779
  >;
15727
15780
 
15728
15781
  // Asset ********************************************************************
15729
- type AssetDetails = { activity_type: "asset" } & Pick<Asset.Data, "name">;
15782
+ export type AssetDetails = {
15783
+ activity_type: "asset";
15784
+ asset_types?: string;
15785
+ } & Pick<Asset.Data, "name">;
15730
15786
 
15731
15787
  // AssetUnit ********************************************************************
15732
- type AssetUnitDetails = { activity_type: "asset-unit" } & Pick<
15733
- AssetUnit.Data,
15734
- "name"
15735
- >;
15788
+ export type AssetUnitDetails = {
15789
+ activity_type: "asset-unit";
15790
+ asset?: string;
15791
+ } & Pick<AssetUnit.Data, "name">;
15736
15792
 
15737
15793
  // AssetPart ********************************************************************
15738
- type AssetPartDetails = { activity_type: "asset-part" } & Pick<
15794
+ export type AssetPartDetails = { activity_type: "asset-part" } & Pick<
15739
15795
  AssetPart.Data,
15740
15796
  "name"
15741
15797
  >;
15742
15798
 
15743
15799
  // AssetPartReceival ********************************************************************
15744
- type AssetPartReceivalDetails = {
15800
+ export type AssetPartReceivalDetails = {
15745
15801
  activity_type: "asset-part-receival";
15746
15802
  } & Pick<
15747
15803
  AssetPartReceival.Data,
@@ -15751,7 +15807,7 @@ export namespace Service {
15751
15807
  | "asset_parts_count"
15752
15808
  | "total_asset_parts_qty"
15753
15809
  >;
15754
- type AssetPartReceivalVisitDetails = {
15810
+ export type AssetPartReceivalVisitDetails = {
15755
15811
  activity_type: "asset-part-receival";
15756
15812
  activity_id: StringId;
15757
15813
  } & Pick<
@@ -15765,7 +15821,7 @@ export namespace Service {
15765
15821
  >;
15766
15822
 
15767
15823
  // AssetPartTransfer ********************************************************************
15768
- type AssetPartTransferDetails = {
15824
+ export type AssetPartTransferDetails = {
15769
15825
  activity_type: "asset-part-transfer";
15770
15826
  } & Pick<
15771
15827
  AssetPartTransfer.Data,
@@ -15777,7 +15833,7 @@ export namespace Service {
15777
15833
  | "asset_part_units_count"
15778
15834
  | "total_asset_part_units_qty"
15779
15835
  >;
15780
- type AssetPartTransferVisitDetails = {
15836
+ export type AssetPartTransferVisitDetails = {
15781
15837
  activity_type: "asset-part-transfer";
15782
15838
  activity_id: StringId;
15783
15839
  } & Pick<
@@ -15793,7 +15849,7 @@ export namespace Service {
15793
15849
  >;
15794
15850
 
15795
15851
  // ReturnAssetPartUnit ********************************************************************
15796
- type ReturnAssetPartUnitDetails = {
15852
+ export type ReturnAssetPartUnitDetails = {
15797
15853
  activity_type: "return-asset-part-unit";
15798
15854
  } & Pick<
15799
15855
  ReturnAssetPartUnit.Data,
@@ -15803,7 +15859,7 @@ export namespace Service {
15803
15859
  | "asset_part_units_count"
15804
15860
  | "total_asset_part_units_qty"
15805
15861
  >;
15806
- type ReturnAssetPartUnitVisitDetails = {
15862
+ export type ReturnAssetPartUnitVisitDetails = {
15807
15863
  activity_type: "return-asset-part-unit";
15808
15864
  activity_id: StringId;
15809
15865
  } & Pick<
@@ -15817,7 +15873,7 @@ export namespace Service {
15817
15873
  >;
15818
15874
 
15819
15875
  // StoreAssetPartUnit ********************************************************************
15820
- type StoreAssetPartUnitDetails = {
15876
+ export type StoreAssetPartUnitDetails = {
15821
15877
  activity_type: "store-asset-part-unit";
15822
15878
  } & Pick<
15823
15879
  StoreAssetPartUnit.Data,
@@ -15827,7 +15883,7 @@ export namespace Service {
15827
15883
  | "asset_part_units_count"
15828
15884
  | "total_asset_part_units_qty"
15829
15885
  >;
15830
- type StoreAssetPartUnitVisitDetails = {
15886
+ export type StoreAssetPartUnitVisitDetails = {
15831
15887
  activity_type: "store-asset-part-unit";
15832
15888
  activity_id: StringId;
15833
15889
  } & Pick<
@@ -15841,11 +15897,11 @@ export namespace Service {
15841
15897
  >;
15842
15898
 
15843
15899
  // Payment ********************************************************************
15844
- type PaymentDetails = { activity_type: "payment" } & Pick<
15900
+ export type PaymentDetails = { activity_type: "payment" } & Pick<
15845
15901
  Payment.Data,
15846
15902
  "amount" | "serial_number" | "paytime" | "currency" | "payment_type"
15847
15903
  >;
15848
- type PaymentVisitDetails = {
15904
+ export type PaymentVisitDetails = {
15849
15905
  activity_type: "payment";
15850
15906
  activity_id: StringId;
15851
15907
  } & Pick<
@@ -15854,11 +15910,11 @@ export namespace Service {
15854
15910
  >;
15855
15911
 
15856
15912
  // Refund ********************************************************************
15857
- type RefundDetails = { activity_type: "refund" } & Pick<
15913
+ export type RefundDetails = { activity_type: "refund" } & Pick<
15858
15914
  Refund.Data,
15859
15915
  "amount" | "serial_number" | "paytime" | "currency" | "transaction_type"
15860
15916
  >;
15861
- type RefundVisitDetails = {
15917
+ export type RefundVisitDetails = {
15862
15918
  activity_type: "refund";
15863
15919
  activity_id: StringId;
15864
15920
  } & Pick<
@@ -15867,11 +15923,11 @@ export namespace Service {
15867
15923
  >;
15868
15924
 
15869
15925
  // Settlement ********************************************************************
15870
- type SettlementDetails = { activity_type: "settlement" } & Pick<
15926
+ export type SettlementDetails = { activity_type: "settlement" } & Pick<
15871
15927
  Settlement.Data,
15872
15928
  "amount" | "serial_number" | "paytime" | "origin" | "payment_type"
15873
15929
  >;
15874
- type SettlementVisitDetails = {
15930
+ export type SettlementVisitDetails = {
15875
15931
  activity_type: "settlement";
15876
15932
  activity_id: StringId;
15877
15933
  } & Pick<
@@ -15880,23 +15936,27 @@ export namespace Service {
15880
15936
  >;
15881
15937
 
15882
15938
  // ConvertProforma ********************************************************************
15883
- type ConvertProformaDetails = {
15939
+ export type ConvertProformaDetails = {
15884
15940
  activity_type: "convert-proforma";
15885
15941
  proforma_reference: FullInvoice.Data["proforma_reference"];
15886
15942
  proforma_serial_number: Proforma.Data["serial_number"];
15887
15943
  invoice_serial_number: FullInvoice.Data["serial_number"];
15944
+ total: FullInvoice.Data["total"];
15945
+ currency: FullInvoice.Data["currency"];
15888
15946
  };
15889
- type ConvertProformaVisitDetails = {
15947
+ export type ConvertProformaVisitDetails = {
15890
15948
  activity_type: "convert-proforma";
15891
15949
  activity_id: StringId;
15892
15950
  proforma_serial_number: Proforma.Data["serial_number"];
15893
15951
  invoice_serial_number: FullInvoice.Data["serial_number"];
15894
15952
  time: number;
15895
15953
  proforma_reference: FullInvoice.Data["proforma_reference"];
15954
+ total: FullInvoice.Data["total"];
15955
+ currency: FullInvoice.Data["currency"];
15896
15956
  };
15897
15957
 
15898
15958
  // Transfer ********************************************************************
15899
- type TransferDetails = {
15959
+ export type TransferDetails = {
15900
15960
  activity_type: "transfer";
15901
15961
  from_name: string;
15902
15962
  to_name: string;
@@ -15906,7 +15966,7 @@ export namespace Service {
15906
15966
  >;
15907
15967
 
15908
15968
  // ReceivingMaterial ********************************************************************
15909
- type ReceivingMaterialDetails = {
15969
+ export type ReceivingMaterialDetails = {
15910
15970
  activity_type: "receiving-material";
15911
15971
  to_name: string;
15912
15972
  } & Pick<
@@ -15915,7 +15975,7 @@ export namespace Service {
15915
15975
  >;
15916
15976
 
15917
15977
  // FullInvoice ********************************************************************
15918
- type FullInvoiceDetails = { activity_type: "fullinvoices" } & Pick<
15978
+ export type FullInvoiceDetails = { activity_type: "fullinvoices" } & Pick<
15919
15979
  FullInvoice.Data,
15920
15980
  | "total"
15921
15981
  | "serial_number"
@@ -15924,7 +15984,7 @@ export namespace Service {
15924
15984
  | "due_date"
15925
15985
  | "external_serial_number"
15926
15986
  >;
15927
- type FullInvoiceVisitDetails = {
15987
+ export type FullInvoiceVisitDetails = {
15928
15988
  activity_type: "fullinvoices";
15929
15989
  activity_id: StringId;
15930
15990
  } & Pick<
@@ -15939,7 +15999,7 @@ export namespace Service {
15939
15999
  >;
15940
16000
 
15941
16001
  // Proforma ********************************************************************
15942
- type ProformaDetails = { activity_type: "proforma" } & Pick<
16002
+ export type ProformaDetails = { activity_type: "proforma" } & Pick<
15943
16003
  Proforma.Data,
15944
16004
  | "total"
15945
16005
  | "serial_number"
@@ -15947,7 +16007,7 @@ export namespace Service {
15947
16007
  | "issue_date"
15948
16008
  | "external_serial_number"
15949
16009
  >;
15950
- type ProformaVisitDetails = {
16010
+ export type ProformaVisitDetails = {
15951
16011
  activity_type: "proforma";
15952
16012
  activity_id: StringId;
15953
16013
  } & Pick<
@@ -15961,22 +16021,22 @@ export namespace Service {
15961
16021
  >;
15962
16022
 
15963
16023
  // Workorder ********************************************************************
15964
- type WorkorderDetails = { activity_type: "workorder" } & Pick<
16024
+ export type WorkorderDetails = { activity_type: "workorder" } & Pick<
15965
16025
  Workorder.Data,
15966
16026
  "name" | "serial_number" | "due_date"
15967
16027
  >;
15968
16028
 
15969
16029
  // WorkorderRequest ********************************************************************
15970
- type WorkorderRequestDetails = {
16030
+ export type WorkorderRequestDetails = {
15971
16031
  activity_type: "workorder-request";
15972
16032
  } & Pick<WorkorderRequest.Data, "name">;
15973
16033
 
15974
16034
  // ReturnWholeInvoice ********************************************************************
15975
- type ReturnWholeInvoiceDetails = {
16035
+ export type ReturnWholeInvoiceDetails = {
15976
16036
  activity_type: "return-whole-invoice";
15977
16037
  returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
15978
16038
  } & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number">;
15979
- type ReturnWholeInvoiceVisitDetails = {
16039
+ export type ReturnWholeInvoiceVisitDetails = {
15980
16040
  activity_type: "return-whole-invoice";
15981
16041
  activity_id: StringId;
15982
16042
  returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
@@ -15986,11 +16046,11 @@ export namespace Service {
15986
16046
  >;
15987
16047
 
15988
16048
  // VoidInvoice ********************************************************************
15989
- type VoidInvoiceDetails = {
16049
+ export type VoidInvoiceDetails = {
15990
16050
  activity_type: "void-invoice";
15991
16051
  returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
15992
16052
  } & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number">;
15993
- type VoidInvoiceVisitDetails = {
16053
+ export type VoidInvoiceVisitDetails = {
15994
16054
  activity_type: "void-invoice";
15995
16055
  activity_id: StringId;
15996
16056
  returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
@@ -16000,21 +16060,62 @@ export namespace Service {
16000
16060
  >;
16001
16061
 
16002
16062
  // Cycle ********************************************************************
16003
- type CycleDetails = { activity_type: "cycle"; stage_name?: string } & Pick<
16063
+ export type CycleDetails = {
16064
+ activity_type: "cycle";
16065
+ stage_name?: string;
16066
+ } & Pick<
16004
16067
  Cycle.Data,
16005
16068
  "document_type" | "serial_number" | "document_id" | "status"
16006
16069
  >;
16007
16070
 
16008
16071
  // Client ********************************************************************
16009
- type ClientDetails = { activity_type: "client" } & Pick<
16072
+ export type ClientDetails = { activity_type: "client" } & Pick<
16010
16073
  Client.Data,
16011
- "name" | "client_code" | "local_name"
16074
+ | "name"
16075
+ | "client_code"
16076
+ | "local_name"
16077
+ | "lat"
16078
+ | "lng"
16079
+ | "location_verified"
16080
+ >;
16081
+
16082
+ // Day ********************************************************************
16083
+ export type StartDayDetails = {
16084
+ activity_type: "day";
16085
+ startTime: string;
16086
+ } & Pick<
16087
+ Day.Data,
16088
+ "day" | "open" | "created_by_system" | "start_geoPoint" | "timeZone"
16089
+ >;
16090
+ export type EndDayDetails = {
16091
+ activity_type: "day";
16092
+ startTime: string;
16093
+ endTime: string;
16094
+ } & Pick<
16095
+ Day.Data,
16096
+ | "day"
16097
+ | "open"
16098
+ | "breaksTime"
16099
+ | "created_by_system"
16100
+ | "timeInVisits"
16101
+ | "end_geoPoint"
16102
+ | "start_geoPoint"
16103
+ | "travelTimeBetweenVisists"
16104
+ | "totalTravelTime"
16105
+ | "breaksTime"
16106
+ | "timeOnDuty"
16107
+ | "timeZone"
16012
16108
  >;
16109
+ export type DayDetails = StartDayDetails | EndDayDetails;
16013
16110
 
16014
16111
  export type PopulatedDoc = Data & {
16015
16112
  client_name?: string;
16016
16113
  client_code?: string;
16017
16114
  client_local_name?: string;
16115
+ client_lat?: number;
16116
+ client_lng?: number;
16117
+ client_location_verified?: boolean;
16118
+ user_profile_photo?: string | null;
16018
16119
  client_customFields?: { [key: string]: any };
16019
16120
  chain?: string;
16020
16121
  channel?: string;
@@ -16028,7 +16129,7 @@ export namespace Service {
16028
16129
  teams?: string[];
16029
16130
  };
16030
16131
 
16031
- type SortingKeys = "_id";
16132
+ export type SortingKeys = "_id";
16032
16133
 
16033
16134
  export namespace Find {
16034
16135
  export type Params = DefaultPaginationQueryParams & {
@@ -16082,6 +16183,621 @@ export namespace Service {
16082
16183
  }
16083
16184
  }
16084
16185
  }
16186
+
16187
+ export namespace Permission {
16188
+ export interface Data {
16189
+ _id: string;
16190
+ disabled: boolean;
16191
+ path: EndPoints;
16192
+ name: string;
16193
+ scope: "repzoCare" | "repzoSystem" | "customer";
16194
+ code: number;
16195
+ admin: {
16196
+ m_find: boolean;
16197
+ m_get: boolean;
16198
+ m_create: boolean;
16199
+ m_update: boolean;
16200
+ m_remove: boolean;
16201
+ };
16202
+ rep: {
16203
+ m_find: boolean;
16204
+ m_get: boolean;
16205
+ m_create: boolean;
16206
+ m_update: boolean;
16207
+ m_remove: boolean;
16208
+ };
16209
+ client: {
16210
+ m_find: boolean;
16211
+ m_get: boolean;
16212
+ m_create: boolean;
16213
+ m_update: boolean;
16214
+ m_remove: boolean;
16215
+ };
16216
+ guest: {
16217
+ m_find: boolean;
16218
+ m_get: boolean;
16219
+ m_create: boolean;
16220
+ m_update: boolean;
16221
+ m_remove: boolean;
16222
+ };
16223
+ tenant: {
16224
+ m_find: boolean;
16225
+ m_get: boolean;
16226
+ m_create: boolean;
16227
+ m_update: boolean;
16228
+ m_remove: boolean;
16229
+ };
16230
+ group:
16231
+ | "Basic"
16232
+ | "Froms"
16233
+ | "Schedule"
16234
+ | "Pre Sales"
16235
+ | "Sales"
16236
+ | "Live Location"
16237
+ | "Omni"
16238
+ | "Bulk"
16239
+ | "Audit trail"
16240
+ | "System"
16241
+ | "Media"
16242
+ | "Store Check";
16243
+ teams_shared: "shared" | "unshared" | "optional";
16244
+ server: "sv" | "sso" | "report";
16245
+ createdAt: Date;
16246
+ updatedAt: Date;
16247
+ }
16248
+ }
16249
+
16250
+ export namespace Module {
16251
+ export type PermissionGroup =
16252
+ | "Basic"
16253
+ | "Froms"
16254
+ | "Schedule"
16255
+ | "Pre Sales"
16256
+ | "Sales"
16257
+ | "Live Location"
16258
+ | "Omni"
16259
+ | "Bulk"
16260
+ | "Audit trail"
16261
+ | "System"
16262
+ | "Media"
16263
+ | "Store Check"
16264
+ | "Client Dashboard"
16265
+ | "Virtual Admin"
16266
+ | "Customer Care"
16267
+ | "Marketplace"
16268
+ | "E-Tax";
16269
+
16270
+ export interface Data {
16271
+ _id: string;
16272
+ name: string;
16273
+ services: (string | Permission.Data)[];
16274
+ defaultState: boolean;
16275
+ permission_groups: PermissionGroup[];
16276
+ createdAt: Date;
16277
+ updatedAt: Date;
16278
+ }
16279
+ }
16280
+
16281
+ export namespace CompanyNamespace {
16282
+ export type CompanyStatus = "trial" | "subscription";
16283
+ export type CompanyIndustry = "fmcg" | "pharma" | "service" | "omni";
16284
+ export interface Data {
16285
+ _id: string;
16286
+ company_name: string;
16287
+ legal_name: string;
16288
+ name_space: string;
16289
+ active_account: boolean;
16290
+ guest_mode: boolean;
16291
+ disabled?: boolean;
16292
+ logo?: string;
16293
+ created_by: Admin;
16294
+ address?: string;
16295
+ company_owner?: string;
16296
+ phone?: string;
16297
+ country: string;
16298
+ country_code: string;
16299
+ status: CompanyStatus;
16300
+ total_seats_sold: number;
16301
+ organization_name?: string;
16302
+ smsSenderID?: string;
16303
+ company_group: string;
16304
+ time_zone: string;
16305
+ integration_priority_index: number;
16306
+ banks_list: string;
16307
+ modules: {
16308
+ module: string | Module.Data;
16309
+ active: boolean;
16310
+ }[];
16311
+ excluded_modules: string[];
16312
+ industry: CompanyIndustry;
16313
+ end_of_day: string;
16314
+ trial_ends_at: number;
16315
+ subscription_status?:
16316
+ | "trial"
16317
+ | "initiated"
16318
+ | "active"
16319
+ | "grace"
16320
+ | "limited"
16321
+ | "blocked";
16322
+ grace_until: number | null;
16323
+ limited_until: number | null;
16324
+ workspace: string;
16325
+ default_business_app: string;
16326
+ allowed_business_apps: string[];
16327
+ is_sandbox: boolean;
16328
+ parent_namespace?: string;
16329
+ grace_duration_days: number;
16330
+ limited_duration_days: number;
16331
+ billing_email: string;
16332
+ maxio_customer_id?: string;
16333
+ maxio_saving_plan_id?: string | null;
16334
+ maxio_standard_plan_id?: string | null;
16335
+ saving_plan_id?: string | null;
16336
+ standard_plan_id?: string | null;
16337
+ business_add_on_ids?: string[] | null;
16338
+ subscription_type?: "company-namespace" | "company-group";
16339
+ min_billing_reps: number;
16340
+ min_billing_admins: number;
16341
+ min_billing_users: number;
16342
+ max_billing_reps: number;
16343
+ max_billing_admins: number;
16344
+ max_billing_users: number;
16345
+ createdAt: Date;
16346
+ updatedAt: Date;
16347
+ }
16348
+ }
16349
+
16350
+ export namespace AuthenticateAdmin {
16351
+ interface Subscription_data {
16352
+ name_space: string;
16353
+ grace_until: number;
16354
+ subscription_status: CompanyNamespace.Data["subscription_status"];
16355
+ }
16356
+ export interface Data {
16357
+ access_token: string;
16358
+ refresh_token: string;
16359
+ login_status: "success";
16360
+ name: string;
16361
+ teams: string[];
16362
+ photo?: string;
16363
+ permissions: UserPermissions;
16364
+ admin: string;
16365
+ owner: boolean;
16366
+ country: string;
16367
+ status: CompanyNamespace.Data["status"];
16368
+ industry: CompanyNamespace.Data["industry"];
16369
+ time_zone: string;
16370
+ is_test: boolean;
16371
+ strong_password: boolean;
16372
+ exp: number; // timestamp
16373
+ modules: string[];
16374
+ app_code: string;
16375
+ country_code: string[];
16376
+ COMPANYGROUPS: { [key: string]: any }; // Company_group,
16377
+ subscription_data: Subscription_data[];
16378
+ suspended: boolean;
16379
+ nameSpace: string[];
16380
+ assessment_enforcement_state: "suggest" | "enforce" | "ignore";
16381
+ repzo_internal_user: boolean;
16382
+ }
16383
+ }
16384
+
16385
+ export namespace AuthenticateRep {
16386
+ export interface Data {
16387
+ access_token: string;
16388
+ refresh_token: string;
16389
+ login_status: "success";
16390
+ teams: string[];
16391
+ permissions: Rep.Data["permissions"];
16392
+ rep: string;
16393
+ identifier: number;
16394
+ exp: number; // timestamp
16395
+ modules: string[];
16396
+ realm_token: string;
16397
+ app_code: string;
16398
+ country: string;
16399
+ country_code: string[];
16400
+ is_test: boolean;
16401
+ suspended: boolean;
16402
+ nameSpace: string[];
16403
+ }
16404
+ }
16405
+
16406
+ export namespace Authenticate {
16407
+ export type Data = AuthenticateAdmin.Data | AuthenticateRep.Data;
16408
+ }
16409
+
16410
+ // export namespace AppsManagement {
16411
+ // export interface Data {
16412
+ // _id: StringId;
16413
+ // name: string;
16414
+ // minimum_build_number?: { platform: string; value: number }[];
16415
+ // expiring_build_number?: {
16416
+ // platform: string;
16417
+ // value: number;
16418
+ // expires_on: number;
16419
+ // is_severe: boolean;
16420
+ // }[];
16421
+ // days_since_latest_assessment_to_enforce: number;
16422
+ // days_since_latest_assessment_to_suggest: number;
16423
+ // test_company_namespaces?: string[];
16424
+ // createdAt: Date;
16425
+ // updatedAt: Date;
16426
+ // }
16427
+ // export interface CreateBody {
16428
+ // name: string;
16429
+ // minimum_build_number?: { platform: string; value: number }[];
16430
+ // expiring_build_number?: {
16431
+ // platform: string;
16432
+ // value: number;
16433
+ // expires_on: number;
16434
+ // is_severe: boolean;
16435
+ // }[];
16436
+ // days_since_latest_assessment_to_enforce: number;
16437
+ // days_since_latest_assessment_to_suggest: number;
16438
+ // test_company_namespaces?: string[];
16439
+ // }
16440
+ // export interface UpdateBody {
16441
+ // _id?: StringId;
16442
+ // name?: string;
16443
+ // minimum_build_number?: { platform: string; value: number }[];
16444
+ // expiring_build_number?: {
16445
+ // platform: string;
16446
+ // value: number;
16447
+ // expires_on: number;
16448
+ // is_severe: boolean;
16449
+ // }[];
16450
+ // days_since_latest_assessment_to_enforce?: number;
16451
+ // days_since_latest_assessment_to_suggest?: number;
16452
+ // test_company_namespaces?: string[];
16453
+ // createdAt?: Date;
16454
+ // updatedAt?: Date;
16455
+ // }
16456
+
16457
+ // export namespace Find {
16458
+ // export type Params = DefaultPaginationQueryParams & {
16459
+ // _id?: StringId[] | StringId;
16460
+ // search?: string;
16461
+ // name?: string[] | string;
16462
+ // test_company_namespaces?: string[] | string;
16463
+ // };
16464
+ // export interface Result extends DefaultPaginationResult {
16465
+ // data: Data[];
16466
+ // }
16467
+ // }
16468
+ // export namespace Get {
16469
+ // export type ID = string;
16470
+ // export type Params = { [key: string]: any };
16471
+ // export type Result = Data;
16472
+ // }
16473
+ // export namespace Create {
16474
+ // export type Body = CreateBody;
16475
+ // export type Result = Data;
16476
+ // }
16477
+ // export namespace Update {
16478
+ // export type ID = string;
16479
+ // export type Body = UpdateBody;
16480
+ // export type Result = Data;
16481
+ // }
16482
+ // }
16483
+
16484
+ export namespace ResetCompanyNamespace {
16485
+ export type Services =
16486
+ // | "admin"
16487
+ | "rep"
16488
+ | "client"
16489
+ | "product"
16490
+ | "teams"
16491
+ | "tag"
16492
+ | "warehouse"
16493
+ | "msl"
16494
+ | "msl_product"
16495
+ | "job_category"
16496
+ | "role"
16497
+ | "user_role"
16498
+ | "availability_msl"
16499
+ | "media"
16500
+ | "reminder"
16501
+ | "approval"
16502
+ | "custom_field"
16503
+ | "custom_status"
16504
+ | "return_reason"
16505
+ | "feedback_option"
16506
+ | "promotion"
16507
+ | "route"
16508
+ | "address"
16509
+ | "payment_term"
16510
+ | "speciality"
16511
+ | "client_channel"
16512
+ | "client_contact"
16513
+ | "client_location"
16514
+ | "client_status"
16515
+ | "tax"
16516
+ | "measureunits"
16517
+ | "measureunit_family"
16518
+ | "variant"
16519
+ | "brand"
16520
+ | "product_group"
16521
+ | "product_category"
16522
+ | "product_subcategory"
16523
+ | "product_modifier_group"
16524
+ | "product_modifier"
16525
+ | "price_list"
16526
+ | "price_list_item"
16527
+ | "asset"
16528
+ | "asset_unit"
16529
+ | "asset_type"
16530
+ | "workorder_category"
16531
+ | "workorder_request"
16532
+ | "workorder"
16533
+ | "workorder_alarm"
16534
+ | "comments_thread"
16535
+ | "thumbnail_storage"
16536
+ | "media_storage"
16537
+ | "form"
16538
+ | "banner"
16539
+ | "payment_method"
16540
+ | "shipping_zone"
16541
+ | "shipping_method"
16542
+ | "active_client"
16543
+ | "transaction"
16544
+ | "ledger_payment"
16545
+ | "ledger_goods"
16546
+ | "transfer"
16547
+ | "payment"
16548
+ | "refund"
16549
+ | "receiving_material"
16550
+ | "full_invoice"
16551
+ | "cart"
16552
+ | "cart_history"
16553
+ | "proforma"
16554
+ | "settlement"
16555
+ | "adjust_account"
16556
+ | "adjust_inventory"
16557
+ | "cycle"
16558
+ | "check"
16559
+ | "failed_linking_txn"
16560
+ | "failed_adjust_account"
16561
+ | "failed_adjust_inventory"
16562
+ | "failed_cart"
16563
+ | "failed_emails"
16564
+ | "failed_invoices"
16565
+ | "failed_payments"
16566
+ | "failed_proforma_invoices"
16567
+ | "failed_receiving_material"
16568
+ | "failed_refund"
16569
+ | "failed_settlement"
16570
+ | "failed_transfer"
16571
+ | "failed_transaction"
16572
+ | "failed_set_txn_alarm"
16573
+ | "target_group"
16574
+ | "target_rule"
16575
+ | "target_result"
16576
+ | "target_result_history"
16577
+ | "widget_dashboard"
16578
+ | "widget"
16579
+ | "line"
16580
+ | "classification_line"
16581
+ | "line_target"
16582
+ | "client_line"
16583
+ | "day"
16584
+ | "visit"
16585
+ | "activity_audit"
16586
+ | "activity_availability"
16587
+ | "activity_checkout_display"
16588
+ | "activity_feedback"
16589
+ | "activity_form_result"
16590
+ | "activity_note"
16591
+ | "activity_photo"
16592
+ | "activity_planogram"
16593
+ | "activity_secondary_display"
16594
+ | "activity_shelfshare"
16595
+ | "activity_task"
16596
+ | "item_status"
16597
+ | "item_status_type"
16598
+ | "job_result"
16599
+ | "click"
16600
+ | "events_log"
16601
+ | "activity_storecheck"
16602
+ | "custom_list"
16603
+ | "custom_list_item"
16604
+ | "storecheck_template"
16605
+ | "preset"
16606
+ | "retail_execution_previous_result"
16607
+ | "retail_execution_report_view"
16608
+ | "calendar"
16609
+ | "plan"
16610
+ | "integration_app"
16611
+ | "integration_action_log"
16612
+ | "integration_command_log"
16613
+ | "integration_trigger"
16614
+ | "scheduled_email"
16615
+ | "territory"
16616
+ | "territory_level"
16617
+ | "territory_template"
16618
+ | "notifications_center"
16619
+ | "bulk_import"
16620
+ | "email_history"
16621
+ | "big_report"
16622
+ | "history"
16623
+ | "bulk_export"
16624
+ | "generate_rule"
16625
+ | "workorder_portal"
16626
+ | "workorder_portal_link"
16627
+ | "print_workorder_portal_link"
16628
+ | "print_workorder_portal_link_options"
16629
+ | "quick_convert_to_pdf"
16630
+ | "variant_batch"
16631
+ | "form_v2"
16632
+ | "activity_form_v2"
16633
+ | "unSynced_log"
16634
+ | "aiApiHistory"
16635
+ | "bulk_convert_proforma"
16636
+ | "approval_request"
16637
+ | "workflow"
16638
+ | "workflow_version"
16639
+ | "workflow_execution"
16640
+ | "ocr_invoice_job"
16641
+ | "ocr_invoice_job_template"
16642
+ | "ocr_invoice_job_page"
16643
+ | "inventory_adjustment_reason"
16644
+ | "supplier"
16645
+ | "product_audit_trace"
16646
+ | "contract"
16647
+ | "contract_installment"
16648
+ | "old_activity_form_v2"
16649
+ | "old_activity_storecheck"
16650
+ | "bi_view"
16651
+ | "bi_bucket"
16652
+ | "old_bi_bucket"
16653
+ | "bi_view_buckets_total"
16654
+ | "bi_view_instance"
16655
+ | "bi_view_version"
16656
+ | "blank_photo_rep"
16657
+ | "failed_bi_bucket_log"
16658
+ | "failed_consume_bi_alarm"
16659
+ | "failed_set_bi_alarm"
16660
+ | "oauth2_tokens"
16661
+ | "report_ubl_invoice"
16662
+ | "client_ubl_info"
16663
+ | "invoice_alert"
16664
+ | "login_device"
16665
+ | "asset_part_type"
16666
+ | "asset_part"
16667
+ | "asset_part_unit"
16668
+ | "asset_part_transaction"
16669
+ | "asset_part_receival"
16670
+ | "asset_part_transfer"
16671
+ | "return_asset_part_unit"
16672
+ | "store_asset_part_unit"
16673
+ | "activity_ai_sales_order"
16674
+ | "ocr_invoice_job_group"
16675
+ // | "ai_api_limits"
16676
+ // | "ai_api_history"
16677
+ // | "ai_history"
16678
+ | "ubl_health_check"
16679
+ | "ubl_integration"
16680
+ | "ubl_connection_attempts"
16681
+ | "ai_object_detection_dataset"
16682
+ | "ai_object_detection_label"
16683
+ | "ai_object_detection_task"
16684
+ | "ai_object_detection_model"
16685
+ | "ai_object_detection_model_version"
16686
+ | "promotions_group";
16687
+
16688
+ type ServiceOptionMap = {
16689
+ [key in Services]: {
16690
+ checked: boolean;
16691
+ prevent_delete_without: Services[];
16692
+ };
16693
+ };
16694
+
16695
+ type Status =
16696
+ | "initiated"
16697
+ | "building_report_in_progress"
16698
+ | "building_report_completed"
16699
+ | "building_report_failed"
16700
+ | "reset_in_progress"
16701
+ | "reset_success"
16702
+ | "reset_failed";
16703
+
16704
+ interface Detail {
16705
+ timestamp: number;
16706
+ content: string;
16707
+ meta?: any;
16708
+ }
16709
+ type Action = {
16710
+ service: Services;
16711
+ model: RepzoModel;
16712
+ method: "delete" | "update";
16713
+ update_command?: any;
16714
+ query?: any;
16715
+ estimated_count: number;
16716
+ };
16717
+ export interface CreateBody {
16718
+ creator?: Admin;
16719
+ nameSpace: string;
16720
+ company_namespace: string[];
16721
+ services: ServiceOptionMap;
16722
+ is_test_reset?: boolean;
16723
+ }
16724
+ export interface Data {
16725
+ _id: StringId;
16726
+ creator: Admin;
16727
+ executor?: Admin;
16728
+ company_namespace: string[];
16729
+ services: ServiceOptionMap;
16730
+ actions: Action[];
16731
+ message: string;
16732
+ status: Status;
16733
+ clients?: string[];
16734
+ reps?: string[];
16735
+ to?: number;
16736
+ is_test_reset?: boolean;
16737
+ createdAt: Date;
16738
+ updatedAt: Date;
16739
+ expired?: boolean;
16740
+ }
16741
+
16742
+ export namespace Find {
16743
+ export type Params = DefaultPaginationQueryParams & {
16744
+ _id?: StringId[] | StringId;
16745
+ search?: string;
16746
+ from_updatedAt?: number;
16747
+ to_updatedAt?: number;
16748
+ from_createdAt?: number;
16749
+ to_createdAt?: number;
16750
+ creator?: StringId[] | StringId;
16751
+ "creator._id"?: StringId[] | StringId;
16752
+ executor?: StringId[] | StringId;
16753
+ "executor._id"?: StringId[] | StringId;
16754
+ status?: Data["status"] | Data["status"][];
16755
+ is_test_reset?: boolean;
16756
+ sortBy?: {
16757
+ field: "_id" | "status";
16758
+ type: "asc" | "desc";
16759
+ }[];
16760
+ options?: boolean;
16761
+ };
16762
+ export interface PaginatedResult extends DefaultPaginationResult {
16763
+ data: (Data & { expired?: boolean })[];
16764
+ }
16765
+ export type Result = PaginatedResult | ServiceOptionMap;
16766
+ }
16767
+ export namespace Get {
16768
+ export type ID = string;
16769
+ export type Params = { [key: string]: any };
16770
+ export type Result = Data & { expired?: boolean };
16771
+ }
16772
+ export namespace Create {
16773
+ export type Body = CreateBody;
16774
+ export type Result = Data;
16775
+ }
16776
+ export namespace Update {
16777
+ export type ID = string;
16778
+ export type Result = Data;
16779
+ }
16780
+ }
16781
+
16782
+ export namespace TestResetCompanyNamespace {
16783
+ export namespace Find {
16784
+ export type Params = ResetCompanyNamespace.Find.Params;
16785
+ export type Result = ResetCompanyNamespace.Find.Result;
16786
+ }
16787
+ export namespace Get {
16788
+ export type ID = string;
16789
+ export type Params = ResetCompanyNamespace.Get.Params;
16790
+ export type Result = ResetCompanyNamespace.Get.Result;
16791
+ }
16792
+ export namespace Create {
16793
+ export type Body = ResetCompanyNamespace.Create.Body;
16794
+ export type Result = ResetCompanyNamespace.Create.Result;
16795
+ }
16796
+ export namespace Update {
16797
+ export type ID = string;
16798
+ export type Result = ResetCompanyNamespace.Update.Result;
16799
+ }
16800
+ }
16085
16801
  }
16086
16802
 
16087
16803
  export type StringId = string;
@@ -16169,3 +16885,265 @@ interface ActivityAdminNote {
16169
16885
  admin_id: string;
16170
16886
  time: number;
16171
16887
  }
16888
+
16889
+ interface UserPermissions {
16890
+ admin_can_edit_client_sales_data: boolean;
16891
+ admin_can_bypass_financial_limits_sales_order: boolean;
16892
+ admin_can_bypass_financial_limits_create_invoice: boolean;
16893
+ }
16894
+
16895
+ type RepzoModel =
16896
+ | "socialPlatform"
16897
+ | "activityAiSalesOrder"
16898
+ | "reportUblInvoice"
16899
+ | "ublIntegrationSettings"
16900
+ | "ublIntegration"
16901
+ | "ublConnectionAttempts"
16902
+ | "quickConvertToPdf"
16903
+ | "warehouses"
16904
+ | "transfers"
16905
+ | "transactions"
16906
+ | "taxes"
16907
+ | "productvariations"
16908
+ | "products"
16909
+ | "pricelistsitems"
16910
+ | "pricelists"
16911
+ | "payments"
16912
+ | "ledger_payments"
16913
+ | "mslsales"
16914
+ | "mslproducts"
16915
+ | "measureunits"
16916
+ | "measureunitfamilies"
16917
+ | "invoice"
16918
+ | "ledger_goods"
16919
+ | "fullinvoices"
16920
+ | "checks"
16921
+ | "clients"
16922
+ | "activities"
16923
+ | "bigReports"
16924
+ | "admins"
16925
+ /**
16926
+ * @deprecated representatives shall be used
16927
+ */
16928
+ | "rep"
16929
+ | "representatives"
16930
+ | "companies"
16931
+ | "banks"
16932
+ | "bankslists"
16933
+ | "productcategories"
16934
+ | "productSubCategory"
16935
+ | "defaultbanklist"
16936
+ | "permissions"
16937
+ | "roles"
16938
+ | "shipping_method"
16939
+ | "availability_msl"
16940
+ | "tags"
16941
+ | "feedbacks"
16942
+ | "feedbackoptions"
16943
+ | "medias"
16944
+ | "visits"
16945
+ | "job-category"
16946
+ | "channel"
16947
+ | "teams"
16948
+ | "modifiersGroup"
16949
+ | "productbrands"
16950
+ | "paymentTerms"
16951
+ | "plan"
16952
+ | "modifiersGroup"
16953
+ | "productbrands"
16954
+ | "notes"
16955
+ | "tasks"
16956
+ | "photos"
16957
+ | "forms"
16958
+ | "form"
16959
+ | "audits"
16960
+ | "availability"
16961
+ | "form"
16962
+ | "widgets-filter"
16963
+ | "routes"
16964
+ | "target-result"
16965
+ | "widget"
16966
+ | "calendar"
16967
+ | "bulkImport"
16968
+ | "target-rule"
16969
+ | "productGroups"
16970
+ | "proformas"
16971
+ | "proforma"
16972
+ | "days"
16973
+ | "shelfShare"
16974
+ | "customFields"
16975
+ | "clientStatus"
16976
+ | "adjustAccount"
16977
+ | "librarian_widget"
16978
+ | "settings"
16979
+ | "classificationLine"
16980
+ | "line"
16981
+ | "speciality"
16982
+ | "lineTarget"
16983
+ | "clientLine"
16984
+ | "receivingMaterial"
16985
+ | "sv.activitiesstorechecks"
16986
+ | "storeCheckTemplate"
16987
+ | "retailExecutionPreset"
16988
+ | "promotions"
16989
+ | "custom-list"
16990
+ | "custom-list-item"
16991
+ | "itemStatus"
16992
+ | "itemStatusType"
16993
+ | "customStatus"
16994
+ | "intgAvailableCategories"
16995
+ | "intgAvailableApps"
16996
+ | "intgApps"
16997
+ | "returnReason"
16998
+ | "clientContact"
16999
+ | "clientLocation"
17000
+ | "workorderCategory"
17001
+ | "asset"
17002
+ | "assetType"
17003
+ | "assetUnit"
17004
+ | "workorder"
17005
+ | "mediaStorage"
17006
+ | "workorderRequest"
17007
+ | "thumbnailStorage"
17008
+ | "commentsThread"
17009
+ | "workorderPortal"
17010
+ | "workorderPortalLink"
17011
+ | "oauth2Apps"
17012
+ | "printWorkorderPortalLink"
17013
+ | "printWorkorderPortalLinkOptions"
17014
+ | "refunds"
17015
+ | "oauth2Tokens"
17016
+ | "businessApp"
17017
+ | "user_role"
17018
+ | "product_modifier"
17019
+ | "address"
17020
+ | "reminders"
17021
+ | "approval"
17022
+ | "refund"
17023
+ | "cart"
17024
+ | "cart_history"
17025
+ | "settlement"
17026
+ | "adjustInventory"
17027
+ | "cycle"
17028
+ | "check"
17029
+ | "failed_linking_txn"
17030
+ | "failed_svix_event"
17031
+ | "failed_adjust_account"
17032
+ | "failed_adjust_inventory"
17033
+ | "failed_cart"
17034
+ | "failed_emails"
17035
+ | "failed_invoices"
17036
+ | "failed_payments"
17037
+ | "failed_proforma_invoices"
17038
+ | "failed_receiving_material"
17039
+ | "failed_refund"
17040
+ | "failed_transfer"
17041
+ | "failed_transaction"
17042
+ | "failed_set_txn_alarm"
17043
+ | "failed_settlement"
17044
+ | "banner"
17045
+ | "shipping_zone"
17046
+ | "paymentMethod"
17047
+ | "target_group"
17048
+ | "target_result_history"
17049
+ | "widget_dashboard"
17050
+ | "secondary"
17051
+ | "planogram"
17052
+ | "checkout"
17053
+ | "retailExecutionPreviousResult"
17054
+ | "retailExecutionReportView"
17055
+ | "clicks"
17056
+ | "jobResult"
17057
+ | "workorderAlarm"
17058
+ | "intgActionLogs"
17059
+ | "intgCommandLogs"
17060
+ | "intgTrigger"
17061
+ | "scheduleEmail"
17062
+ | "territory"
17063
+ | "territoryLevel"
17064
+ | "territoryTemplate"
17065
+ | "activeClient"
17066
+ | "notificationsCenter"
17067
+ | "emailHistory"
17068
+ | "history"
17069
+ | "bulkExport"
17070
+ | "generateRule"
17071
+ | "asset-unit"
17072
+ | "client-location"
17073
+ | "workorder-request"
17074
+ | "oauth2Tokens"
17075
+ | "businessPlan"
17076
+ | "businessPlanFeature"
17077
+ | "modules"
17078
+ | "companyGroup"
17079
+ | "billingSubscription"
17080
+ | "widgetCategory"
17081
+ | "module-custom-validator"
17082
+ | "workflowTriggerOption"
17083
+ | "workflow"
17084
+ | "workflowActionOption"
17085
+ | "workflowActionAttributeOption"
17086
+ | "workflowVersion"
17087
+ | "workflowExecution"
17088
+ | "adminAbility"
17089
+ | "smsGateway"
17090
+ | "approvalRequest"
17091
+ | "formV2"
17092
+ | "activityFormV2Result"
17093
+ | "maxioAccountingCode"
17094
+ | "syncMaxioSubscriptionSummaries"
17095
+ | "businessAddOn"
17096
+ | "variantBatch"
17097
+ | "eventsLog"
17098
+ | "unSyncedLog"
17099
+ | "aiApiHistory"
17100
+ | "bulkConvertProforma"
17101
+ | "biView"
17102
+ | "biViewVersion"
17103
+ | "biViewInstance"
17104
+ | "biBucket"
17105
+ | "biViewBucketsTotal"
17106
+ | "contract"
17107
+ | "contractInstallment"
17108
+ | "clientUblInfo"
17109
+ | "supplier"
17110
+ | "ocrInvoiceJob"
17111
+ | "ocrInvoiceJobGroup"
17112
+ | "ocrInvoiceJobTemplate"
17113
+ | "ocrInvoiceJobPage"
17114
+ | "inventoryAdjustmentReason"
17115
+ | "productAuditTrace"
17116
+ | "blankPhotoRep"
17117
+ | "oldActivityFormV2Result"
17118
+ | "oldActivityStorecheck"
17119
+ | "oldBiBucket"
17120
+ | "failedBiBucketLog"
17121
+ | "failedConsumeBiAlarm"
17122
+ | "failedSetBiAlarm"
17123
+ | "oauth2Tokens"
17124
+ | "ublHealthCheck"
17125
+ | "invoiceAlert"
17126
+ | "ocrInvoiceJobPages"
17127
+ | "loginDevice"
17128
+ | "aiObjectDetectionDataset"
17129
+ | "aiObjectDetectionLabel"
17130
+ | "aiObjectDetectionModel"
17131
+ | "aiObjectDetectionModelVersion"
17132
+ | "aiObjectDetectionTask"
17133
+ | "assetPartType"
17134
+ /**
17135
+ * @deprecated assetPart shall be used
17136
+ */
17137
+ | "asset-part"
17138
+ | "assetPart"
17139
+ | "assetPartUnit"
17140
+ | "assetPartReceival"
17141
+ | "assetPartTransfer"
17142
+ | "assetPartTransaction"
17143
+ | "returnAssetPartUnit"
17144
+ | "storeAssetPartUnit"
17145
+ | "aiApiLimits"
17146
+ | "aiHistory"
17147
+ | "aiModelPrices"
17148
+ | "promotionsGroup"
17149
+ | "medias";