repzo 1.0.290 → 1.0.292

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.
@@ -410,6 +410,7 @@ export interface CalendarWeeklyGroup {
410
410
  export type Model =
411
411
  | "quickConvertToPdf"
412
412
  | "warehouses"
413
+ | "dayShift"
413
414
  | "transfers"
414
415
  | "transactions"
415
416
  | "taxes"
@@ -3058,6 +3059,9 @@ export namespace Service {
3058
3059
  rep_can_edit_client_location_at_create_client?: boolean;
3059
3060
  rep_can_start_visit_out_of_geofence?: boolean;
3060
3061
  rep_can_create_approval_request_to_start_visit_out_of_geofence?: boolean;
3062
+ rep_must_start_day_within_shift_window: boolean;
3063
+ rep_must_end_day_within_shift_window: boolean;
3064
+ rep_can_start_day_on_non_working_day?: boolean;
3061
3065
  }
3062
3066
  interface TargetResults {
3063
3067
  totalPoints: number;
@@ -3086,6 +3090,9 @@ export namespace Service {
3086
3090
  disable_auto_time_date_enforcement?: boolean;
3087
3091
  start_day_specific_time_frame_start: `${number}:${number}`;
3088
3092
  start_day_specific_time_frame_end: `${number}:${number}`;
3093
+ start_day_minutes_before_shift_start?: number;
3094
+ start_day_minutes_after_shift_start?: number;
3095
+ end_day_minutes_before_shift_end?: number;
3089
3096
  }
3090
3097
  type JobOption = 0 | 1 | 2;
3091
3098
  export interface RepSchema {
@@ -3116,6 +3123,8 @@ export namespace Service {
3116
3123
  assigned_warehouse?: string;
3117
3124
  assigned_main_warehouse?: string;
3118
3125
  assigned_plan?: string;
3126
+ assigned_shift?:
3127
+ string | Pick<DayShift.Data, "_id" | "name" | "designation">;
3119
3128
  integration_meta?: { [key: string]: any };
3120
3129
  force_online_connectivity?: boolean;
3121
3130
  assigned_targets?: string[];
@@ -3174,6 +3183,7 @@ export namespace Service {
3174
3183
  assigned_warehouse?: string;
3175
3184
  assigned_main_warehouse?: string;
3176
3185
  assigned_plan?: string;
3186
+ assigned_shift?: string | null;
3177
3187
  integration_meta?: { [key: string]: any };
3178
3188
  force_online_connectivity?: boolean;
3179
3189
  assigned_targets?: string[];
@@ -3214,6 +3224,7 @@ export namespace Service {
3214
3224
  | "assigned_retail_execution_templates"
3215
3225
  | "assigned_clm_presentations"
3216
3226
  | "assigned_geo_zones"
3227
+ | "assigned_shift"
3217
3228
  | "warehouse";
3218
3229
 
3219
3230
  export type RepWithPopulatedKeysSchema = RepSchema & {
@@ -3232,6 +3243,8 @@ export namespace Service {
3232
3243
  Warehouse.WarehouseSchema,
3233
3244
  "_id" | "name" | "code" | "type" | "integration_meta"
3234
3245
  >;
3246
+ assigned_shift?:
3247
+ string | Pick<DayShift.Data, "_id" | "name" | "designation">;
3235
3248
  assigned_geo_zones?: (string | GeoZone.Data)[];
3236
3249
  };
3237
3250
 
@@ -3253,6 +3266,7 @@ export namespace Service {
3253
3266
  assigned_warehouse?: string | string[];
3254
3267
  assigned_main_warehouse?: string | string[];
3255
3268
  assigned_plan?: string | string[];
3269
+ assigned_shift?: string | string[];
3256
3270
  force_online_connectivity?: boolean;
3257
3271
  assigned_targets?: string | string[];
3258
3272
  assigned_geo_zones?: string | string[];
@@ -3331,11 +3345,14 @@ export namespace Service {
3331
3345
  "permissions.rep_can_print_offline_sales_order"?: boolean;
3332
3346
  "permissions.rep_can_skip_exp_date_in_audit_stock"?: boolean;
3333
3347
  "permissions.rep_must_start_day_within_specific_time_frame"?: boolean;
3348
+ "permissions.rep_must_start_day_within_shift_window"?: boolean;
3334
3349
  "permissions.rep_can_skip_assigned_client_filter_on_workorder_assigned_to"?: boolean;
3335
3350
  "permissions.rep_can_assign_client_to_other_reps"?: boolean;
3336
3351
  "permissions.rep_must_enter_sales_order_external_serial_number"?: boolean;
3337
3352
  "permissions.rep_must_enter_invoice_external_serial_number"?: boolean;
3338
3353
  "permissions.rep_must_end_day_after_specific_time"?: boolean;
3354
+ "permissions.rep_must_end_day_within_shift_window"?: boolean;
3355
+ "permissions.rep_can_start_day_on_non_working_day"?: boolean;
3339
3356
  "permissions.rep_can_create_negative_invoices"?: boolean;
3340
3357
  "permissions.rep_can_upload_media_on_payment"?: boolean;
3341
3358
  "permissions.rep_can_access_sales_reports"?: boolean;
@@ -3367,6 +3384,9 @@ export namespace Service {
3367
3384
  "settings.disable_auto_time_date_enforcement"?: boolean;
3368
3385
  "settings.start_day_specific_time_frame_start"?: string;
3369
3386
  "settings.start_day_specific_time_frame_end"?: string;
3387
+ "settings.start_day_minutes_before_shift_start"?: number;
3388
+ "settings.start_day_minutes_after_shift_start"?: number;
3389
+ "settings.end_day_minutes_before_shift_end"?: number;
3370
3390
  "settings.treating_invoice_as_proforma_for_etax"?: boolean;
3371
3391
  is_test?: boolean;
3372
3392
  form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
@@ -3546,6 +3566,9 @@ export namespace Service {
3546
3566
  enable_auto_skip_activity_existence?: boolean;
3547
3567
  auto_skip_activity_slugs?: AutoSkipActivitySlugs[];
3548
3568
  auto_skip_activity_slugs_operator?: "and" | "or";
3569
+ enable_auto_skip_visit_duration?: boolean;
3570
+ skip_if_visit_duration_minutes_is_less_than?: number;
3571
+ skip_if_visit_duration_minutes_is_more_than?: number;
3549
3572
  };
3550
3573
  createdAt: string;
3551
3574
  updatedAt: string;
@@ -8652,6 +8675,107 @@ export namespace Service {
8652
8675
  }
8653
8676
  }
8654
8677
 
8678
+ export namespace DayShift {
8679
+ export type Weekday =
8680
+ | "sunday"
8681
+ | "monday"
8682
+ | "tuesday"
8683
+ | "wednesday"
8684
+ | "thursday"
8685
+ | "friday"
8686
+ | "saturday";
8687
+
8688
+ export interface ShiftRange {
8689
+ from: `${number}:${number}`;
8690
+ to: `${number}:${number}`;
8691
+ }
8692
+
8693
+ export interface ShiftEntry {
8694
+ day: Weekday;
8695
+ work_time: ShiftRange[];
8696
+ }
8697
+
8698
+ export type ShiftSchedule = ShiftEntry[] | null | undefined;
8699
+
8700
+ export interface Data {
8701
+ _id: StringId;
8702
+ name: string;
8703
+ designation?: string;
8704
+ disabled: boolean;
8705
+ schedule: ShiftEntry[];
8706
+ total_working_hours: number;
8707
+ total_working_days: number;
8708
+ assigned_reps?: Pick<Rep.Data, "_id" | "name">[];
8709
+ company_namespace: string[];
8710
+ createdAt: Date;
8711
+ updatedAt: Date;
8712
+ }
8713
+
8714
+ export interface CreateBody {
8715
+ name: string;
8716
+ designation?: string;
8717
+ schedule: ShiftEntry[];
8718
+ company_namespace?: string[];
8719
+ }
8720
+
8721
+ export type UpdateBody = Partial<Data>;
8722
+
8723
+ type SortingKeys = "_id";
8724
+
8725
+ export namespace Find {
8726
+ export type Params = DefaultPaginationQueryParams & {
8727
+ _id?: StringId | StringId[];
8728
+ name?: string | string[];
8729
+ designation?: string | string[];
8730
+ disabled?: boolean;
8731
+ from_updatedAt?: number;
8732
+ to_updatedAt?: number;
8733
+ from_createdAt?: number;
8734
+ to_createdAt?: number;
8735
+ from__id?: string;
8736
+ to__id?: string;
8737
+ from_total_working_hours?: number;
8738
+ to_total_working_hours?: number;
8739
+ total_working_hours?: number;
8740
+ from_total_working_days?: number;
8741
+ to_total_working_days?: number;
8742
+ total_working_days?: number;
8743
+ inject_assigned_reps?: boolean;
8744
+ sortBy?: {
8745
+ field: SortingKeys;
8746
+ type: "asc" | "desc";
8747
+ }[];
8748
+ };
8749
+ export interface Result extends DefaultPaginationResult {
8750
+ data: Data[];
8751
+ }
8752
+ }
8753
+
8754
+ export namespace Get {
8755
+ export type ID = StringId;
8756
+ export interface Params {
8757
+ inject_assigned_reps?: boolean;
8758
+ }
8759
+ export type Result = Data;
8760
+ }
8761
+
8762
+ export namespace Create {
8763
+ export type Body = CreateBody;
8764
+ export type Result = Data;
8765
+ }
8766
+
8767
+ export namespace Update {
8768
+ export type ID = StringId;
8769
+ export type Body = UpdateBody;
8770
+ export type Result = Data;
8771
+ }
8772
+
8773
+ export namespace Remove {
8774
+ export type ID = StringId;
8775
+ export type Result = Data;
8776
+ }
8777
+ }
8778
+
8655
8779
  export namespace Day {
8656
8780
  export interface DaySchema {
8657
8781
  _id: string;
@@ -8667,8 +8791,10 @@ export namespace Service {
8667
8791
  timeFrame: { startOfDay?: number; endOfDay?: number };
8668
8792
  timeZone?: string;
8669
8793
  EOD?: string;
8794
+ shift?: DayShift.Data | null;
8670
8795
  closed_by_system?: boolean;
8671
8796
  open: boolean;
8797
+ not_working_day?: boolean;
8672
8798
  paymentSnapShot_start?: any[];
8673
8799
  paymentSnapShot_end?: any[];
8674
8800
  inventorySnapShot?: any[];
@@ -8686,6 +8812,7 @@ export namespace Service {
8686
8812
  teams: string[];
8687
8813
  created_by_system?: boolean;
8688
8814
  previously_closed?: boolean;
8815
+ geoPoint?: GeoPoint;
8689
8816
  start_geoPoint?: {
8690
8817
  type: string;
8691
8818
  coordinates: number[];
@@ -8715,8 +8842,10 @@ export namespace Service {
8715
8842
  timeFrame: { startOfDay?: number; endOfDay?: number };
8716
8843
  timeZone?: string;
8717
8844
  EOD?: string;
8845
+ shift?: DayShift.Data | null;
8718
8846
  closed_by_system?: boolean;
8719
8847
  open: boolean;
8848
+ not_working_day?: boolean;
8720
8849
  paymentSnapShot_start?: any[];
8721
8850
  paymentSnapShot_end?: any[];
8722
8851
  inventorySnapShot?: any[];
@@ -8730,6 +8859,7 @@ export namespace Service {
8730
8859
  teams: string[];
8731
8860
  created_by_system?: boolean;
8732
8861
  previously_closed?: boolean;
8862
+ geoPoint?: GeoPoint;
8733
8863
  start_geoPoint?: {
8734
8864
  type: string;
8735
8865
  coordinates: number[];
@@ -8757,8 +8887,10 @@ export namespace Service {
8757
8887
  timeFrame?: { startOfDay?: number; endOfDay?: number };
8758
8888
  timeZone?: string;
8759
8889
  EOD?: string;
8890
+ shift?: DayShift.Data | null;
8760
8891
  closed_by_system?: boolean;
8761
8892
  open?: boolean;
8893
+ not_working_day?: boolean;
8762
8894
  paymentSnapShot_start?: any[];
8763
8895
  paymentSnapShot_end?: any[];
8764
8896
  inventorySnapShot?: any[];
@@ -8776,6 +8908,7 @@ export namespace Service {
8776
8908
  teams?: string[];
8777
8909
  created_by_system?: boolean;
8778
8910
  previously_closed?: boolean;
8911
+ geoPoint?: GeoPoint;
8779
8912
  start_geoPoint?: {
8780
8913
  type: string;
8781
8914
  coordinates: number[];
@@ -8797,7 +8930,9 @@ export namespace Service {
8797
8930
  export type Params = DefaultPaginationQueryParams & {
8798
8931
  _id?: string[] | string;
8799
8932
  "creator._id"?: string[] | string;
8933
+ reps?: string[] | string;
8800
8934
  open?: boolean;
8935
+ not_working_day?: boolean;
8801
8936
  day?: string;
8802
8937
  from_day?: string;
8803
8938
  to_day?: string;
@@ -13593,6 +13728,7 @@ export namespace Service {
13593
13728
  | "Saturday";
13594
13729
  signUpMethod: "email" | "phone";
13595
13730
  calculate_target_for_absent_days: boolean;
13731
+ calculate_target_for_non_working_days?: boolean;
13596
13732
  disable_module_custom_validator: boolean;
13597
13733
  activate_ubl_integration: boolean;
13598
13734
  last_activate_ubl_integration_time?: number;
@@ -13654,6 +13790,8 @@ export namespace Service {
13654
13790
  enable_whatsapp_mfa: boolean;
13655
13791
  enable_authenticator_mfa: boolean;
13656
13792
  minimum_accepted_mfa: number;
13793
+ end_of_day_mode: "fixed_time" | "shift_based";
13794
+ automatic_end_day_minutes_after_shift_end: number;
13657
13795
  start_day_outside_active_zone_action: "monitor" | "warning" | "block";
13658
13796
  start_visit_outside_active_zone_action: "monitor" | "warning" | "block";
13659
13797
  work_outside_active_zone_action: "monitor" | "warning" | "block";
@@ -13759,6 +13897,7 @@ export namespace Service {
13759
13897
  | "Saturday";
13760
13898
  signUpMethod?: "email" | "phone";
13761
13899
  calculate_target_for_absent_days?: boolean;
13900
+ calculate_target_for_non_working_days?: boolean;
13762
13901
  disable_module_custom_validator?: boolean;
13763
13902
  activate_ubl_integration?: boolean;
13764
13903
  last_activate_ubl_integration_time?: number;
@@ -13822,6 +13961,10 @@ export namespace Service {
13822
13961
  enable_whatsapp_mfa: boolean;
13823
13962
  enable_authenticator_mfa: boolean;
13824
13963
  minimum_accepted_mfa: number;
13964
+ end_of_day?: string;
13965
+ time_zone?: string;
13966
+ end_of_day_mode?: "fixed_time" | "shift_based";
13967
+ automatic_end_day_minutes_after_shift_end?: number;
13825
13968
  start_day_outside_active_zone_action?: "monitor" | "warning" | "block";
13826
13969
  start_visit_outside_active_zone_action?: "monitor" | "warning" | "block";
13827
13970
  work_outside_active_zone_action?: "monitor" | "warning" | "block";
@@ -23188,6 +23331,7 @@ type RepzoModel =
23188
23331
  | "ublConnectionAttempts"
23189
23332
  | "quickConvertToPdf"
23190
23333
  | "warehouses"
23334
+ | "dayShift"
23191
23335
  | "transfers"
23192
23336
  | "transactions"
23193
23337
  | "taxes"