repzo 1.0.289 → 1.0.291

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.
@@ -93,6 +93,57 @@ components:
93
93
  type: string
94
94
  description:
95
95
  type: string
96
+ calculate_target_for_non_working_days:
97
+ type: boolean
98
+ default: false
99
+ description: "When true, system-created absent days that fall on a scheduled day off of the rep's assigned shift still trigger target calculation."
100
+ end_of_day:
101
+ type: string
102
+ description: "Per-namespace day-cutover time as HH:mm. Propagated to company-namespaces.end_of_day."
103
+ time_zone:
104
+ type: string
105
+ description: "Per-namespace IANA time zone. Propagated to company-namespaces.time_zone."
106
+ end_of_day_mode:
107
+ type: string
108
+ enum: [fixed_time, shift_based]
109
+ default: fixed_time
110
+ description: "How the namespace determines the end-of-day cutover: fixed_time uses the company end_of_day setting; shift_based derives it from assigned day shifts."
111
+ automatic_end_day_minutes_after_shift_end:
112
+ type: integer
113
+ minimum: 0
114
+ maximum: 240
115
+ default: 0
116
+ description: "Shift-based mode only: minutes after a shift-based day's shift end before the system auto-closes it."
117
+ start_day_outside_active_zone_action:
118
+ type: string
119
+ enum: [monitor, warning, block]
120
+ default: warning
121
+ description: "Action when a rep starts their day outside their active geo zone: `monitor` (allow and record silently), `warning` (allow but warn), or `block` (prevent)."
122
+ start_visit_outside_active_zone_action:
123
+ type: string
124
+ enum: [monitor, warning, block]
125
+ default: warning
126
+ description: "Action when a rep starts a visit outside their active geo zone (same `monitor`/`warning`/`block` semantics as `start_day_outside_active_zone_action`)."
127
+ work_outside_active_zone_action:
128
+ type: string
129
+ enum: [monitor, warning, block]
130
+ default: warning
131
+ description: "Action when a rep performs work outside their active geo zone (same `monitor`/`warning`/`block` semantics as `start_day_outside_active_zone_action`)."
132
+ no_active_zone_action:
133
+ type: string
134
+ enum: [allow, block]
135
+ default: allow
136
+ description: "Behavior when a rep has no active geo zone: `allow` (work unrestricted) or `block` (prevent working)."
137
+ use_accuracy_radius_near_zone_boundary:
138
+ type: boolean
139
+ default: true
140
+ description: "When true, the device GPS accuracy radius is considered near a zone boundary — a position whose accuracy circle overlaps the zone counts as inside it."
141
+ zone_boundary_grace_minutes:
142
+ type: integer
143
+ minimum: 0
144
+ maximum: 60
145
+ default: 5
146
+ description: "Grace period in minutes around zone-boundary transitions before the configured outside-zone action is enforced (integer 0-60)."
96
147
  SettingsUpdateResult:
97
148
  type: object
98
149
  properties:
@@ -115,6 +166,51 @@ components:
115
166
  type: string
116
167
  description:
117
168
  type: string
169
+ calculate_target_for_non_working_days:
170
+ type: boolean
171
+ default: false
172
+ description: "When true, system-created absent days that fall on a scheduled day off of the rep's assigned shift still trigger target calculation."
173
+ end_of_day_mode:
174
+ type: string
175
+ enum: [fixed_time, shift_based]
176
+ default: fixed_time
177
+ description: "How the namespace determines the end-of-day cutover: fixed_time uses the company end_of_day setting; shift_based derives it from assigned day shifts."
178
+ automatic_end_day_minutes_after_shift_end:
179
+ type: integer
180
+ minimum: 0
181
+ maximum: 240
182
+ default: 0
183
+ description: "Shift-based mode only: minutes after a shift-based day's shift end before the system auto-closes it."
184
+ start_day_outside_active_zone_action:
185
+ type: string
186
+ enum: [monitor, warning, block]
187
+ default: warning
188
+ description: "Action when a rep starts their day outside their active geo zone: `monitor` (allow and record silently), `warning` (allow but warn), or `block` (prevent)."
189
+ start_visit_outside_active_zone_action:
190
+ type: string
191
+ enum: [monitor, warning, block]
192
+ default: warning
193
+ description: "Action when a rep starts a visit outside their active geo zone (same `monitor`/`warning`/`block` semantics as `start_day_outside_active_zone_action`)."
194
+ work_outside_active_zone_action:
195
+ type: string
196
+ enum: [monitor, warning, block]
197
+ default: warning
198
+ description: "Action when a rep performs work outside their active geo zone (same `monitor`/`warning`/`block` semantics as `start_day_outside_active_zone_action`)."
199
+ no_active_zone_action:
200
+ type: string
201
+ enum: [allow, block]
202
+ default: allow
203
+ description: "Behavior when a rep has no active geo zone: `allow` (work unrestricted) or `block` (prevent working)."
204
+ use_accuracy_radius_near_zone_boundary:
205
+ type: boolean
206
+ default: true
207
+ description: "When true, the device GPS accuracy radius is considered near a zone boundary — a position whose accuracy circle overlaps the zone counts as inside it."
208
+ zone_boundary_grace_minutes:
209
+ type: integer
210
+ minimum: 0
211
+ maximum: 60
212
+ default: 5
213
+ description: "Grace period in minutes around zone-boundary transitions before the configured outside-zone action is enforced (integer 0-60)."
118
214
  createdAt:
119
215
  type: string
120
216
  format: date-time
@@ -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"
@@ -2882,6 +2883,88 @@ export namespace Service {
2882
2883
  }
2883
2884
  }
2884
2885
 
2886
+ export namespace GeoZone {
2887
+ export interface Polygon {
2888
+ type: "Polygon";
2889
+ coordinates: [number, number][][];
2890
+ }
2891
+
2892
+ export interface AssignedRep {
2893
+ _id: StringId;
2894
+ name: string;
2895
+ }
2896
+
2897
+ export interface Data {
2898
+ _id: StringId;
2899
+ name: string;
2900
+ description?: string;
2901
+ polygon: Polygon;
2902
+ disabled: boolean;
2903
+ editor: AdminOrRepOrTenantOrClient;
2904
+ assigned_reps?: AssignedRep[];
2905
+ company_namespace: string[];
2906
+ createdAt: string;
2907
+ updatedAt: string;
2908
+ __v: number;
2909
+ }
2910
+
2911
+ export interface CreateBody {
2912
+ name: string;
2913
+ description?: string;
2914
+ polygon: Polygon;
2915
+ company_namespace?: string[];
2916
+ }
2917
+
2918
+ export interface UpdateBody {
2919
+ name?: string;
2920
+ description?: string;
2921
+ polygon?: Polygon;
2922
+ disabled?: boolean;
2923
+ editor?: AdminOrRepOrTenantOrClient;
2924
+ }
2925
+
2926
+ export namespace Find {
2927
+ export type Params = DefaultPaginationQueryParams & {
2928
+ _id?: StringId | StringId[];
2929
+ name?: string | string[];
2930
+ search?: string;
2931
+ disabled?: boolean;
2932
+ inject_assigned_reps?: boolean;
2933
+ from_updatedAt?: number;
2934
+ to_updatedAt?: number;
2935
+ from_createdAt?: number;
2936
+ to_createdAt?: number;
2937
+ };
2938
+ export interface Result extends DefaultPaginationResult {
2939
+ data: Data[];
2940
+ }
2941
+ }
2942
+
2943
+ export namespace Get {
2944
+ export type ID = StringId;
2945
+ export type Params = {
2946
+ inject_assigned_reps?: boolean;
2947
+ };
2948
+ export type Result = Data;
2949
+ }
2950
+
2951
+ export namespace Create {
2952
+ export type Body = CreateBody;
2953
+ export type Result = Data;
2954
+ }
2955
+
2956
+ export namespace Update {
2957
+ export type ID = StringId;
2958
+ export type Body = UpdateBody;
2959
+ export type Result = Data;
2960
+ }
2961
+
2962
+ export namespace Remove {
2963
+ export type ID = StringId;
2964
+ export type Result = Data;
2965
+ }
2966
+ }
2967
+
2885
2968
  export namespace Rep {
2886
2969
  interface RepPermissions {
2887
2970
  rep_can_print_payment_after_allowance_period?: boolean;
@@ -2974,6 +3057,11 @@ export namespace Service {
2974
3057
  rep_can_create_client_line_approval_request?: boolean;
2975
3058
  rep_can_enter_client_code_at_create_client?: boolean;
2976
3059
  rep_can_edit_client_location_at_create_client?: boolean;
3060
+ rep_can_start_visit_out_of_geofence?: boolean;
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;
2977
3065
  }
2978
3066
  interface TargetResults {
2979
3067
  totalPoints: number;
@@ -3002,6 +3090,9 @@ export namespace Service {
3002
3090
  disable_auto_time_date_enforcement?: boolean;
3003
3091
  start_day_specific_time_frame_start: `${number}:${number}`;
3004
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;
3005
3096
  }
3006
3097
  type JobOption = 0 | 1 | 2;
3007
3098
  export interface RepSchema {
@@ -3032,9 +3123,12 @@ export namespace Service {
3032
3123
  assigned_warehouse?: string;
3033
3124
  assigned_main_warehouse?: string;
3034
3125
  assigned_plan?: string;
3126
+ assigned_shift?:
3127
+ string | Pick<DayShift.Data, "_id" | "name" | "designation">;
3035
3128
  integration_meta?: { [key: string]: any };
3036
3129
  force_online_connectivity?: boolean;
3037
3130
  assigned_targets?: string[];
3131
+ assigned_geo_zones?: (string | GeoZone.Data)[];
3038
3132
  lines?: string[];
3039
3133
  targetResults?: TargetResults;
3040
3134
  previously_assigned_clients?: string[];
@@ -3089,9 +3183,11 @@ export namespace Service {
3089
3183
  assigned_warehouse?: string;
3090
3184
  assigned_main_warehouse?: string;
3091
3185
  assigned_plan?: string;
3186
+ assigned_shift?: string | null;
3092
3187
  integration_meta?: { [key: string]: any };
3093
3188
  force_online_connectivity?: boolean;
3094
3189
  assigned_targets?: string[];
3190
+ assigned_geo_zones?: string[] | null;
3095
3191
  lines?: string[];
3096
3192
  targetResults?: TargetResults;
3097
3193
  previously_assigned_clients?: string[];
@@ -3127,6 +3223,8 @@ export namespace Service {
3127
3223
  | "assigned_plan"
3128
3224
  | "assigned_retail_execution_templates"
3129
3225
  | "assigned_clm_presentations"
3226
+ | "assigned_geo_zones"
3227
+ | "assigned_shift"
3130
3228
  | "warehouse";
3131
3229
 
3132
3230
  export type RepWithPopulatedKeysSchema = RepSchema & {
@@ -3145,6 +3243,9 @@ export namespace Service {
3145
3243
  Warehouse.WarehouseSchema,
3146
3244
  "_id" | "name" | "code" | "type" | "integration_meta"
3147
3245
  >;
3246
+ assigned_shift?:
3247
+ string | Pick<DayShift.Data, "_id" | "name" | "designation">;
3248
+ assigned_geo_zones?: (string | GeoZone.Data)[];
3148
3249
  };
3149
3250
 
3150
3251
  export namespace Find {
@@ -3165,8 +3266,10 @@ export namespace Service {
3165
3266
  assigned_warehouse?: string | string[];
3166
3267
  assigned_main_warehouse?: string | string[];
3167
3268
  assigned_plan?: string | string[];
3269
+ assigned_shift?: string | string[];
3168
3270
  force_online_connectivity?: boolean;
3169
3271
  assigned_targets?: string | string[];
3272
+ assigned_geo_zones?: string | string[];
3170
3273
  lines?: string | string[];
3171
3274
  job_option?: JobOption | JobOption[];
3172
3275
  "permissions.rep_can_add_client"?: boolean;
@@ -3242,11 +3345,14 @@ export namespace Service {
3242
3345
  "permissions.rep_can_print_offline_sales_order"?: boolean;
3243
3346
  "permissions.rep_can_skip_exp_date_in_audit_stock"?: boolean;
3244
3347
  "permissions.rep_must_start_day_within_specific_time_frame"?: boolean;
3348
+ "permissions.rep_must_start_day_within_shift_window"?: boolean;
3245
3349
  "permissions.rep_can_skip_assigned_client_filter_on_workorder_assigned_to"?: boolean;
3246
3350
  "permissions.rep_can_assign_client_to_other_reps"?: boolean;
3247
3351
  "permissions.rep_must_enter_sales_order_external_serial_number"?: boolean;
3248
3352
  "permissions.rep_must_enter_invoice_external_serial_number"?: boolean;
3249
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;
3250
3356
  "permissions.rep_can_create_negative_invoices"?: boolean;
3251
3357
  "permissions.rep_can_upload_media_on_payment"?: boolean;
3252
3358
  "permissions.rep_can_access_sales_reports"?: boolean;
@@ -3255,6 +3361,8 @@ export namespace Service {
3255
3361
  "permissions.rep_can_create_client_line_approval_request"?: boolean;
3256
3362
  "permissions.rep_can_enter_client_code_at_create_client"?: boolean;
3257
3363
  "permissions.rep_can_edit_client_location_at_create_client"?: boolean;
3364
+ "permissions.rep_can_start_visit_out_of_geofence"?: boolean;
3365
+ "permissions.rep_can_create_approval_request_to_start_visit_out_of_geofence"?: boolean;
3258
3366
  "permissions.rep_can_view_stock_on_transfers"?: boolean;
3259
3367
  "permissions.rep_must_invoice_items_from_cross_inventory_and_msl"?: boolean;
3260
3368
  "settings.rep_must_end_day_after"?: `${number}:${number}`;
@@ -3276,6 +3384,9 @@ export namespace Service {
3276
3384
  "settings.disable_auto_time_date_enforcement"?: boolean;
3277
3385
  "settings.start_day_specific_time_frame_start"?: string;
3278
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;
3279
3390
  "settings.treating_invoice_as_proforma_for_etax"?: boolean;
3280
3391
  is_test?: boolean;
3281
3392
  form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
@@ -8561,6 +8672,107 @@ export namespace Service {
8561
8672
  }
8562
8673
  }
8563
8674
 
8675
+ export namespace DayShift {
8676
+ export type Weekday =
8677
+ | "sunday"
8678
+ | "monday"
8679
+ | "tuesday"
8680
+ | "wednesday"
8681
+ | "thursday"
8682
+ | "friday"
8683
+ | "saturday";
8684
+
8685
+ export interface ShiftRange {
8686
+ from: `${number}:${number}`;
8687
+ to: `${number}:${number}`;
8688
+ }
8689
+
8690
+ export interface ShiftEntry {
8691
+ day: Weekday;
8692
+ work_time: ShiftRange[];
8693
+ }
8694
+
8695
+ export type ShiftSchedule = ShiftEntry[] | null | undefined;
8696
+
8697
+ export interface Data {
8698
+ _id: StringId;
8699
+ name: string;
8700
+ designation?: string;
8701
+ disabled: boolean;
8702
+ schedule: ShiftEntry[];
8703
+ total_working_hours: number;
8704
+ total_working_days: number;
8705
+ assigned_reps?: Pick<Rep.Data, "_id" | "name">[];
8706
+ company_namespace: string[];
8707
+ createdAt: Date;
8708
+ updatedAt: Date;
8709
+ }
8710
+
8711
+ export interface CreateBody {
8712
+ name: string;
8713
+ designation?: string;
8714
+ schedule: ShiftEntry[];
8715
+ company_namespace?: string[];
8716
+ }
8717
+
8718
+ export type UpdateBody = Partial<Data>;
8719
+
8720
+ type SortingKeys = "_id";
8721
+
8722
+ export namespace Find {
8723
+ export type Params = DefaultPaginationQueryParams & {
8724
+ _id?: StringId | StringId[];
8725
+ name?: string | string[];
8726
+ designation?: string | string[];
8727
+ disabled?: boolean;
8728
+ from_updatedAt?: number;
8729
+ to_updatedAt?: number;
8730
+ from_createdAt?: number;
8731
+ to_createdAt?: number;
8732
+ from__id?: string;
8733
+ to__id?: string;
8734
+ from_total_working_hours?: number;
8735
+ to_total_working_hours?: number;
8736
+ total_working_hours?: number;
8737
+ from_total_working_days?: number;
8738
+ to_total_working_days?: number;
8739
+ total_working_days?: number;
8740
+ inject_assigned_reps?: boolean;
8741
+ sortBy?: {
8742
+ field: SortingKeys;
8743
+ type: "asc" | "desc";
8744
+ }[];
8745
+ };
8746
+ export interface Result extends DefaultPaginationResult {
8747
+ data: Data[];
8748
+ }
8749
+ }
8750
+
8751
+ export namespace Get {
8752
+ export type ID = StringId;
8753
+ export interface Params {
8754
+ inject_assigned_reps?: boolean;
8755
+ }
8756
+ export type Result = Data;
8757
+ }
8758
+
8759
+ export namespace Create {
8760
+ export type Body = CreateBody;
8761
+ export type Result = Data;
8762
+ }
8763
+
8764
+ export namespace Update {
8765
+ export type ID = StringId;
8766
+ export type Body = UpdateBody;
8767
+ export type Result = Data;
8768
+ }
8769
+
8770
+ export namespace Remove {
8771
+ export type ID = StringId;
8772
+ export type Result = Data;
8773
+ }
8774
+ }
8775
+
8564
8776
  export namespace Day {
8565
8777
  export interface DaySchema {
8566
8778
  _id: string;
@@ -8576,8 +8788,10 @@ export namespace Service {
8576
8788
  timeFrame: { startOfDay?: number; endOfDay?: number };
8577
8789
  timeZone?: string;
8578
8790
  EOD?: string;
8791
+ shift?: DayShift.Data | null;
8579
8792
  closed_by_system?: boolean;
8580
8793
  open: boolean;
8794
+ not_working_day?: boolean;
8581
8795
  paymentSnapShot_start?: any[];
8582
8796
  paymentSnapShot_end?: any[];
8583
8797
  inventorySnapShot?: any[];
@@ -8595,6 +8809,7 @@ export namespace Service {
8595
8809
  teams: string[];
8596
8810
  created_by_system?: boolean;
8597
8811
  previously_closed?: boolean;
8812
+ geoPoint?: GeoPoint;
8598
8813
  start_geoPoint?: {
8599
8814
  type: string;
8600
8815
  coordinates: number[];
@@ -8624,8 +8839,10 @@ export namespace Service {
8624
8839
  timeFrame: { startOfDay?: number; endOfDay?: number };
8625
8840
  timeZone?: string;
8626
8841
  EOD?: string;
8842
+ shift?: DayShift.Data | null;
8627
8843
  closed_by_system?: boolean;
8628
8844
  open: boolean;
8845
+ not_working_day?: boolean;
8629
8846
  paymentSnapShot_start?: any[];
8630
8847
  paymentSnapShot_end?: any[];
8631
8848
  inventorySnapShot?: any[];
@@ -8639,6 +8856,7 @@ export namespace Service {
8639
8856
  teams: string[];
8640
8857
  created_by_system?: boolean;
8641
8858
  previously_closed?: boolean;
8859
+ geoPoint?: GeoPoint;
8642
8860
  start_geoPoint?: {
8643
8861
  type: string;
8644
8862
  coordinates: number[];
@@ -8666,8 +8884,10 @@ export namespace Service {
8666
8884
  timeFrame?: { startOfDay?: number; endOfDay?: number };
8667
8885
  timeZone?: string;
8668
8886
  EOD?: string;
8887
+ shift?: DayShift.Data | null;
8669
8888
  closed_by_system?: boolean;
8670
8889
  open?: boolean;
8890
+ not_working_day?: boolean;
8671
8891
  paymentSnapShot_start?: any[];
8672
8892
  paymentSnapShot_end?: any[];
8673
8893
  inventorySnapShot?: any[];
@@ -8685,6 +8905,7 @@ export namespace Service {
8685
8905
  teams?: string[];
8686
8906
  created_by_system?: boolean;
8687
8907
  previously_closed?: boolean;
8908
+ geoPoint?: GeoPoint;
8688
8909
  start_geoPoint?: {
8689
8910
  type: string;
8690
8911
  coordinates: number[];
@@ -8706,7 +8927,9 @@ export namespace Service {
8706
8927
  export type Params = DefaultPaginationQueryParams & {
8707
8928
  _id?: string[] | string;
8708
8929
  "creator._id"?: string[] | string;
8930
+ reps?: string[] | string;
8709
8931
  open?: boolean;
8932
+ not_working_day?: boolean;
8710
8933
  day?: string;
8711
8934
  from_day?: string;
8712
8935
  to_day?: string;
@@ -13502,6 +13725,7 @@ export namespace Service {
13502
13725
  | "Saturday";
13503
13726
  signUpMethod: "email" | "phone";
13504
13727
  calculate_target_for_absent_days: boolean;
13728
+ calculate_target_for_non_working_days?: boolean;
13505
13729
  disable_module_custom_validator: boolean;
13506
13730
  activate_ubl_integration: boolean;
13507
13731
  last_activate_ubl_integration_time?: number;
@@ -13563,6 +13787,14 @@ export namespace Service {
13563
13787
  enable_whatsapp_mfa: boolean;
13564
13788
  enable_authenticator_mfa: boolean;
13565
13789
  minimum_accepted_mfa: number;
13790
+ end_of_day_mode: "fixed_time" | "shift_based";
13791
+ automatic_end_day_minutes_after_shift_end: number;
13792
+ start_day_outside_active_zone_action: "monitor" | "warning" | "block";
13793
+ start_visit_outside_active_zone_action: "monitor" | "warning" | "block";
13794
+ work_outside_active_zone_action: "monitor" | "warning" | "block";
13795
+ no_active_zone_action: "allow" | "block";
13796
+ use_accuracy_radius_near_zone_boundary: boolean;
13797
+ zone_boundary_grace_minutes: number;
13566
13798
  createdAt: Date;
13567
13799
  updatedAt: Date;
13568
13800
  }
@@ -13662,6 +13894,7 @@ export namespace Service {
13662
13894
  | "Saturday";
13663
13895
  signUpMethod?: "email" | "phone";
13664
13896
  calculate_target_for_absent_days?: boolean;
13897
+ calculate_target_for_non_working_days?: boolean;
13665
13898
  disable_module_custom_validator?: boolean;
13666
13899
  activate_ubl_integration?: boolean;
13667
13900
  last_activate_ubl_integration_time?: number;
@@ -13725,6 +13958,16 @@ export namespace Service {
13725
13958
  enable_whatsapp_mfa: boolean;
13726
13959
  enable_authenticator_mfa: boolean;
13727
13960
  minimum_accepted_mfa: number;
13961
+ end_of_day?: string;
13962
+ time_zone?: string;
13963
+ end_of_day_mode?: "fixed_time" | "shift_based";
13964
+ automatic_end_day_minutes_after_shift_end?: number;
13965
+ start_day_outside_active_zone_action?: "monitor" | "warning" | "block";
13966
+ start_visit_outside_active_zone_action?: "monitor" | "warning" | "block";
13967
+ work_outside_active_zone_action?: "monitor" | "warning" | "block";
13968
+ no_active_zone_action?: "allow" | "block";
13969
+ use_accuracy_radius_near_zone_boundary?: boolean;
13970
+ zone_boundary_grace_minutes?: number;
13728
13971
  }
13729
13972
 
13730
13973
  export namespace Update {
@@ -18084,6 +18327,7 @@ export namespace Service {
18084
18327
  | "update-rep"
18085
18328
  | "update-salesmsl"
18086
18329
  | "update-settings"
18330
+ | "update-geo-zone"
18087
18331
  | "update-tags"
18088
18332
  | "update-taxes"
18089
18333
  | "update-transfer"
@@ -22454,6 +22698,112 @@ export namespace Service {
22454
22698
  }
22455
22699
  }
22456
22700
 
22701
+ export namespace BulkExport {
22702
+ export type BulkExportType =
22703
+ | "clients"
22704
+ | "products"
22705
+ | "variants"
22706
+ | "categories"
22707
+ | "subCategories"
22708
+ | "availabilityMsl"
22709
+ | "availabilityMslWithProducts"
22710
+ | "reps"
22711
+ | "mslWithVariants"
22712
+ | "jobCategories"
22713
+ | "jobs"
22714
+ | "tags"
22715
+ | "routes"
22716
+ | "routesWithClients"
22717
+ | "plans"
22718
+ | "planWithRules"
22719
+ | "targetRulesWithClients"
22720
+ | "rulesWithRoutes"
22721
+ | "targetRulesWithReps"
22722
+ | "adjustAccount"
22723
+ | "rules"
22724
+ | "warehouses"
22725
+ | "productGroups"
22726
+ | "priceListItems"
22727
+ | "measureunit"
22728
+ | "measureunitFamily"
22729
+ | "lineTarget"
22730
+ | "clientLineClassification"
22731
+ | "retailExecutionPresets"
22732
+ | "promotions"
22733
+ | "customListItems"
22734
+ | "assets"
22735
+ | "assetUnits"
22736
+ | "speciality"
22737
+ | "clientLocation"
22738
+ | "reminders"
22739
+ | "admins"
22740
+ | "companyGroup"
22741
+ | "company"
22742
+ | "variantBatch"
22743
+ | "banksList"
22744
+ | "clientUblInfo"
22745
+ | "supplier"
22746
+ | "contractInstallment"
22747
+ | "targetRule"
22748
+ | "contracts"
22749
+ | "assetPartTypes"
22750
+ | "assetParts"
22751
+ | "clientUblInfo_JO"
22752
+ | "clientUblInfo_SA"
22753
+ | "nameSpaceFreshnessWindowCodes";
22754
+
22755
+ export interface Data {
22756
+ _id: StringId;
22757
+ creator: AdminOrRepOrTenantOrClient;
22758
+ type: BulkExportType;
22759
+ status: "processing" | "success" | "fail";
22760
+ messages: any[];
22761
+ _errors: any[];
22762
+ start_time: number;
22763
+ end_time?: number;
22764
+ bucket_name?: string;
22765
+ region?: string;
22766
+ key?: string;
22767
+ link?: string;
22768
+ media?: StringId[];
22769
+ teams: string[];
22770
+ export_type: "excel" | "parquet";
22771
+ row_count?: number;
22772
+ company_namespace: string[];
22773
+ createdAt: Date;
22774
+ updatedAt: Date;
22775
+ }
22776
+
22777
+ export interface CreateBody {
22778
+ export_type?: "excel" | "parquet";
22779
+ columns?: { [key: string]: any };
22780
+ name?: string;
22781
+ creator?: AdminOrRepOrTenantOrClient;
22782
+ company_namespace?: string[];
22783
+ }
22784
+
22785
+ export namespace Find {
22786
+ export type Params = DefaultPaginationQueryParams & {
22787
+ _id?: StringId | StringId[];
22788
+ type?: BulkExportType;
22789
+ status?: Data["status"] | Data["status"][];
22790
+ export?: boolean;
22791
+ export_type?: "excel" | "parquet";
22792
+ from_updatedAt?: number;
22793
+ to_updatedAt?: number;
22794
+ };
22795
+ export interface Result extends DefaultPaginationResult {
22796
+ data: Data[];
22797
+ }
22798
+ }
22799
+
22800
+ export namespace Create {
22801
+ export type Params = { type: BulkExportType; [key: string]: any };
22802
+ export type Body = CreateBody;
22803
+ export type Result = Data;
22804
+ }
22805
+ }
22806
+
22457
22807
  export namespace DeliveryNote {
22458
22808
  interface User {
22459
22809
  _id: string;
@@ -22978,6 +23328,7 @@ type RepzoModel =
22978
23328
  | "ublConnectionAttempts"
22979
23329
  | "quickConvertToPdf"
22980
23330
  | "warehouses"
23331
+ | "dayShift"
22981
23332
  | "transfers"
22982
23333
  | "transactions"
22983
23334
  | "taxes"