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.
@@ -318,7 +318,7 @@ export interface CalendarWeeklyGroup {
318
318
  note?: string;
319
319
  _id: string;
320
320
  }
321
- export type Model = "quickConvertToPdf" | "warehouses" | "transfers" | "transactions" | "taxes" | "productvariations" | "products" | "pricelistsitems" | "pricelists" | "payments" | "ledger_payments" | "mslsales" | "mslproducts" | "measureunits" | "measureunitfamilies" | "invoicesitems" | "invoices" | "ledger_goods" | "fullinvoices" | "checks" | "clients" | "activities" | "bigReports" | "admins";
321
+ export type Model = "quickConvertToPdf" | "warehouses" | "dayShift" | "transfers" | "transactions" | "taxes" | "productvariations" | "products" | "pricelistsitems" | "pricelists" | "payments" | "ledger_payments" | "mslsales" | "mslproducts" | "measureunits" | "measureunitfamilies" | "invoicesitems" | "invoices" | "ledger_goods" | "fullinvoices" | "checks" | "clients" | "activities" | "bigReports" | "admins";
322
322
  export type DocumentTypes = "form" | "quickConvertToPdf" | "clients" | "asset" | "assetUnit" | "workorder" | "clientLocation" | "clientContact" | "commentsThread" | "workorderRequest" | "workorderPortal" | "invoice" | "products" | "productvariations" | "representatives" | "productcategories" | "productSubCategory" | "speciality" | "line" | "banner" | "intgAvailableApps" | "availability_msl" | "reminders" | "audits" | "availability" | "photos" | "planogram" | "tasks" | "checks" | "notificationsCenter" | "admins" | "settings" | "printWorkorderPortalLink" | "bulkExport" | "generateRule" | "scheduleEmail" | "custom-list-item" | "days" | "bulkImport" | "sv.activitiesstorechecks" | "retailExecutionPreset" | "paymentMethod" | "approvalRequest" | "activityFormV2Result" | "formV2" | "payments" | "ocrInvoiceJob" | "contract" | "contractInstallment" | "form" | "paymentMethod" | "aiObjectDetectionModelVersion" | "aiObjectDetectionTask" | "assetPart" | "assetPartReceival" | "assetPartUnit" | "returnAssetPartUnit" | "storeAssetPartUnit" | "activityAiSalesOrder" | "ocrInvoiceJobGroup";
323
323
  export type PrintTypes = "workorder" | "form" | "invoice" | "proforma" | "settlement" | "formV2";
324
324
  export type InvoiceFontStyles = "InvoiceHeaderTitle" | "InvoiceTaxNumber" | "InvoiceType" | "InvoiceInfo" | "ItemsHeader" | "ItemLabel" | "ItemValue" | "ItemVariant" | "TotalItemsQty" | "TotalAmount" | "RepReciver" | "Address" | "PrintTime" | "InvoiceHeader" | "ClientBalance";
@@ -2466,6 +2466,78 @@ export declare namespace Service {
2466
2466
  type Result = TeamSchema;
2467
2467
  }
2468
2468
  }
2469
+ namespace GeoZone {
2470
+ interface Polygon {
2471
+ type: "Polygon";
2472
+ coordinates: [number, number][][];
2473
+ }
2474
+ interface AssignedRep {
2475
+ _id: StringId;
2476
+ name: string;
2477
+ }
2478
+ interface Data {
2479
+ _id: StringId;
2480
+ name: string;
2481
+ description?: string;
2482
+ polygon: Polygon;
2483
+ disabled: boolean;
2484
+ editor: AdminOrRepOrTenantOrClient;
2485
+ assigned_reps?: AssignedRep[];
2486
+ company_namespace: string[];
2487
+ createdAt: string;
2488
+ updatedAt: string;
2489
+ __v: number;
2490
+ }
2491
+ interface CreateBody {
2492
+ name: string;
2493
+ description?: string;
2494
+ polygon: Polygon;
2495
+ company_namespace?: string[];
2496
+ }
2497
+ interface UpdateBody {
2498
+ name?: string;
2499
+ description?: string;
2500
+ polygon?: Polygon;
2501
+ disabled?: boolean;
2502
+ editor?: AdminOrRepOrTenantOrClient;
2503
+ }
2504
+ namespace Find {
2505
+ type Params = DefaultPaginationQueryParams & {
2506
+ _id?: StringId | StringId[];
2507
+ name?: string | string[];
2508
+ search?: string;
2509
+ disabled?: boolean;
2510
+ inject_assigned_reps?: boolean;
2511
+ from_updatedAt?: number;
2512
+ to_updatedAt?: number;
2513
+ from_createdAt?: number;
2514
+ to_createdAt?: number;
2515
+ };
2516
+ interface Result extends DefaultPaginationResult {
2517
+ data: Data[];
2518
+ }
2519
+ }
2520
+ namespace Get {
2521
+ type ID = StringId;
2522
+ type Params = {
2523
+ inject_assigned_reps?: boolean;
2524
+ };
2525
+ type Result = Data;
2526
+ }
2527
+ namespace Create {
2528
+ type Body = CreateBody;
2529
+ type Result = Data;
2530
+ }
2531
+ namespace Update {
2532
+ type ID = StringId;
2533
+ type Body = UpdateBody;
2534
+ type Result = Data;
2535
+ }
2536
+ namespace Remove {
2537
+ type ID = StringId;
2538
+ type Result = Data;
2539
+ }
2540
+ }
2469
2541
  namespace Rep {
2470
2542
  interface RepPermissions {
2471
2543
  rep_can_print_payment_after_allowance_period?: boolean;
@@ -2558,6 +2630,11 @@ export declare namespace Service {
2558
2630
  rep_can_create_client_line_approval_request?: boolean;
2559
2631
  rep_can_enter_client_code_at_create_client?: boolean;
2560
2632
  rep_can_edit_client_location_at_create_client?: boolean;
2633
+ rep_can_start_visit_out_of_geofence?: boolean;
2634
+ rep_can_create_approval_request_to_start_visit_out_of_geofence?: boolean;
2635
+ rep_must_start_day_within_shift_window: boolean;
2636
+ rep_must_end_day_within_shift_window: boolean;
2637
+ rep_can_start_day_on_non_working_day?: boolean;
2561
2638
  }
2562
2639
  interface TargetResults {
2563
2640
  totalPoints: number;
@@ -2586,6 +2663,9 @@ export declare namespace Service {
2586
2663
  disable_auto_time_date_enforcement?: boolean;
2587
2664
  start_day_specific_time_frame_start: `${number}:${number}`;
2588
2665
  start_day_specific_time_frame_end: `${number}:${number}`;
2666
+ start_day_minutes_before_shift_start?: number;
2667
+ start_day_minutes_after_shift_start?: number;
2668
+ end_day_minutes_before_shift_end?: number;
2589
2669
  }
2590
2670
  type JobOption = 0 | 1 | 2;
2591
2671
  export interface RepSchema {
@@ -2616,11 +2696,13 @@ export declare namespace Service {
2616
2696
  assigned_warehouse?: string;
2617
2697
  assigned_main_warehouse?: string;
2618
2698
  assigned_plan?: string;
2699
+ assigned_shift?: string | Pick<DayShift.Data, "_id" | "name" | "designation">;
2619
2700
  integration_meta?: {
2620
2701
  [key: string]: any;
2621
2702
  };
2622
2703
  force_online_connectivity?: boolean;
2623
2704
  assigned_targets?: string[];
2705
+ assigned_geo_zones?: (string | GeoZone.Data)[];
2624
2706
  lines?: string[];
2625
2707
  targetResults?: TargetResults;
2626
2708
  previously_assigned_clients?: string[];
@@ -2676,11 +2758,13 @@ export declare namespace Service {
2676
2758
  assigned_warehouse?: string;
2677
2759
  assigned_main_warehouse?: string;
2678
2760
  assigned_plan?: string;
2761
+ assigned_shift?: string | null;
2679
2762
  integration_meta?: {
2680
2763
  [key: string]: any;
2681
2764
  };
2682
2765
  force_online_connectivity?: boolean;
2683
2766
  assigned_targets?: string[];
2767
+ assigned_geo_zones?: string[] | null;
2684
2768
  lines?: string[];
2685
2769
  targetResults?: TargetResults;
2686
2770
  previously_assigned_clients?: string[];
@@ -2705,13 +2789,15 @@ export declare namespace Service {
2705
2789
  handle_credit_limit?: boolean;
2706
2790
  credit_limit?: number;
2707
2791
  }
2708
- type PopulatedKeys = "line" | "lines" | "job_category" | "teams" | "assigned_forms_v2" | "job_category" | "cover_photo" | "assigned_plan" | "assigned_retail_execution_templates" | "assigned_clm_presentations" | "warehouse";
2792
+ type PopulatedKeys = "line" | "lines" | "job_category" | "teams" | "assigned_forms_v2" | "job_category" | "cover_photo" | "assigned_plan" | "assigned_retail_execution_templates" | "assigned_clm_presentations" | "assigned_geo_zones" | "assigned_shift" | "warehouse";
2709
2793
  export type RepWithPopulatedKeysSchema = RepSchema & {
2710
2794
  lines?: string[] | Line.LineSchema[];
2711
2795
  job_category?: string[] | JobCategory.JobCategorySchema[];
2712
2796
  teams?: string[] | Team.TeamSchema[];
2713
2797
  assigned_warehouse?: string | Pick<Warehouse.WarehouseSchema, "_id" | "name" | "code" | "type" | "integration_meta">;
2714
2798
  assigned_main_warehouse?: string | Pick<Warehouse.WarehouseSchema, "_id" | "name" | "code" | "type" | "integration_meta">;
2799
+ assigned_shift?: string | Pick<DayShift.Data, "_id" | "name" | "designation">;
2800
+ assigned_geo_zones?: (string | GeoZone.Data)[];
2715
2801
  };
2716
2802
  export namespace Find {
2717
2803
  type Params = DefaultPaginationQueryParams & {
@@ -2731,8 +2817,10 @@ export declare namespace Service {
2731
2817
  assigned_warehouse?: string | string[];
2732
2818
  assigned_main_warehouse?: string | string[];
2733
2819
  assigned_plan?: string | string[];
2820
+ assigned_shift?: string | string[];
2734
2821
  force_online_connectivity?: boolean;
2735
2822
  assigned_targets?: string | string[];
2823
+ assigned_geo_zones?: string | string[];
2736
2824
  lines?: string | string[];
2737
2825
  job_option?: JobOption | JobOption[];
2738
2826
  "permissions.rep_can_add_client"?: boolean;
@@ -2808,11 +2896,14 @@ export declare namespace Service {
2808
2896
  "permissions.rep_can_print_offline_sales_order"?: boolean;
2809
2897
  "permissions.rep_can_skip_exp_date_in_audit_stock"?: boolean;
2810
2898
  "permissions.rep_must_start_day_within_specific_time_frame"?: boolean;
2899
+ "permissions.rep_must_start_day_within_shift_window"?: boolean;
2811
2900
  "permissions.rep_can_skip_assigned_client_filter_on_workorder_assigned_to"?: boolean;
2812
2901
  "permissions.rep_can_assign_client_to_other_reps"?: boolean;
2813
2902
  "permissions.rep_must_enter_sales_order_external_serial_number"?: boolean;
2814
2903
  "permissions.rep_must_enter_invoice_external_serial_number"?: boolean;
2815
2904
  "permissions.rep_must_end_day_after_specific_time"?: boolean;
2905
+ "permissions.rep_must_end_day_within_shift_window"?: boolean;
2906
+ "permissions.rep_can_start_day_on_non_working_day"?: boolean;
2816
2907
  "permissions.rep_can_create_negative_invoices"?: boolean;
2817
2908
  "permissions.rep_can_upload_media_on_payment"?: boolean;
2818
2909
  "permissions.rep_can_access_sales_reports"?: boolean;
@@ -2821,6 +2912,8 @@ export declare namespace Service {
2821
2912
  "permissions.rep_can_create_client_line_approval_request"?: boolean;
2822
2913
  "permissions.rep_can_enter_client_code_at_create_client"?: boolean;
2823
2914
  "permissions.rep_can_edit_client_location_at_create_client"?: boolean;
2915
+ "permissions.rep_can_start_visit_out_of_geofence"?: boolean;
2916
+ "permissions.rep_can_create_approval_request_to_start_visit_out_of_geofence"?: boolean;
2824
2917
  "permissions.rep_can_view_stock_on_transfers"?: boolean;
2825
2918
  "permissions.rep_must_invoice_items_from_cross_inventory_and_msl"?: boolean;
2826
2919
  "settings.rep_must_end_day_after"?: `${number}:${number}`;
@@ -2841,6 +2934,9 @@ export declare namespace Service {
2841
2934
  "settings.disable_auto_time_date_enforcement"?: boolean;
2842
2935
  "settings.start_day_specific_time_frame_start"?: string;
2843
2936
  "settings.start_day_specific_time_frame_end"?: string;
2937
+ "settings.start_day_minutes_before_shift_start"?: number;
2938
+ "settings.start_day_minutes_after_shift_start"?: number;
2939
+ "settings.end_day_minutes_before_shift_end"?: number;
2844
2940
  "settings.treating_invoice_as_proforma_for_etax"?: boolean;
2845
2941
  is_test?: boolean;
2846
2942
  form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
@@ -7976,6 +8072,88 @@ export declare namespace Service {
7976
8072
  }
7977
8073
  export {};
7978
8074
  }
8075
+ namespace DayShift {
8076
+ export type Weekday = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
8077
+ export interface ShiftRange {
8078
+ from: `${number}:${number}`;
8079
+ to: `${number}:${number}`;
8080
+ }
8081
+ export interface ShiftEntry {
8082
+ day: Weekday;
8083
+ work_time: ShiftRange[];
8084
+ }
8085
+ export type ShiftSchedule = ShiftEntry[] | null | undefined;
8086
+ export interface Data {
8087
+ _id: StringId;
8088
+ name: string;
8089
+ designation?: string;
8090
+ disabled: boolean;
8091
+ schedule: ShiftEntry[];
8092
+ total_working_hours: number;
8093
+ total_working_days: number;
8094
+ assigned_reps?: Pick<Rep.Data, "_id" | "name">[];
8095
+ company_namespace: string[];
8096
+ createdAt: Date;
8097
+ updatedAt: Date;
8098
+ }
8099
+ export interface CreateBody {
8100
+ name: string;
8101
+ designation?: string;
8102
+ schedule: ShiftEntry[];
8103
+ company_namespace?: string[];
8104
+ }
8105
+ export type UpdateBody = Partial<Data>;
8106
+ type SortingKeys = "_id";
8107
+ export namespace Find {
8108
+ type Params = DefaultPaginationQueryParams & {
8109
+ _id?: StringId | StringId[];
8110
+ name?: string | string[];
8111
+ designation?: string | string[];
8112
+ disabled?: boolean;
8113
+ from_updatedAt?: number;
8114
+ to_updatedAt?: number;
8115
+ from_createdAt?: number;
8116
+ to_createdAt?: number;
8117
+ from__id?: string;
8118
+ to__id?: string;
8119
+ from_total_working_hours?: number;
8120
+ to_total_working_hours?: number;
8121
+ total_working_hours?: number;
8122
+ from_total_working_days?: number;
8123
+ to_total_working_days?: number;
8124
+ total_working_days?: number;
8125
+ inject_assigned_reps?: boolean;
8126
+ sortBy?: {
8127
+ field: SortingKeys;
8128
+ type: "asc" | "desc";
8129
+ }[];
8130
+ };
8131
+ interface Result extends DefaultPaginationResult {
8132
+ data: Data[];
8133
+ }
8134
+ }
8135
+ export namespace Get {
8136
+ type ID = StringId;
8137
+ interface Params {
8138
+ inject_assigned_reps?: boolean;
8139
+ }
8140
+ type Result = Data;
8141
+ }
8142
+ export namespace Create {
8143
+ type Body = CreateBody;
8144
+ type Result = Data;
8145
+ }
8146
+ export namespace Update {
8147
+ type ID = StringId;
8148
+ type Body = UpdateBody;
8149
+ type Result = Data;
8150
+ }
8151
+ export namespace Remove {
8152
+ type ID = StringId;
8153
+ type Result = Data;
8154
+ }
8155
+ export {};
8156
+ }
7979
8157
  namespace Day {
7980
8158
  export interface DaySchema {
7981
8159
  _id: string;
@@ -7996,8 +8174,10 @@ export declare namespace Service {
7996
8174
  };
7997
8175
  timeZone?: string;
7998
8176
  EOD?: string;
8177
+ shift?: DayShift.Data | null;
7999
8178
  closed_by_system?: boolean;
8000
8179
  open: boolean;
8180
+ not_working_day?: boolean;
8001
8181
  paymentSnapShot_start?: any[];
8002
8182
  paymentSnapShot_end?: any[];
8003
8183
  inventorySnapShot?: any[];
@@ -8015,6 +8195,7 @@ export declare namespace Service {
8015
8195
  teams: string[];
8016
8196
  created_by_system?: boolean;
8017
8197
  previously_closed?: boolean;
8198
+ geoPoint?: GeoPoint;
8018
8199
  start_geoPoint?: {
8019
8200
  type: string;
8020
8201
  coordinates: number[];
@@ -8048,8 +8229,10 @@ export declare namespace Service {
8048
8229
  };
8049
8230
  timeZone?: string;
8050
8231
  EOD?: string;
8232
+ shift?: DayShift.Data | null;
8051
8233
  closed_by_system?: boolean;
8052
8234
  open: boolean;
8235
+ not_working_day?: boolean;
8053
8236
  paymentSnapShot_start?: any[];
8054
8237
  paymentSnapShot_end?: any[];
8055
8238
  inventorySnapShot?: any[];
@@ -8065,6 +8248,7 @@ export declare namespace Service {
8065
8248
  teams: string[];
8066
8249
  created_by_system?: boolean;
8067
8250
  previously_closed?: boolean;
8251
+ geoPoint?: GeoPoint;
8068
8252
  start_geoPoint?: {
8069
8253
  type: string;
8070
8254
  coordinates: number[];
@@ -8096,8 +8280,10 @@ export declare namespace Service {
8096
8280
  };
8097
8281
  timeZone?: string;
8098
8282
  EOD?: string;
8283
+ shift?: DayShift.Data | null;
8099
8284
  closed_by_system?: boolean;
8100
8285
  open?: boolean;
8286
+ not_working_day?: boolean;
8101
8287
  paymentSnapShot_start?: any[];
8102
8288
  paymentSnapShot_end?: any[];
8103
8289
  inventorySnapShot?: any[];
@@ -8115,6 +8301,7 @@ export declare namespace Service {
8115
8301
  teams?: string[];
8116
8302
  created_by_system?: boolean;
8117
8303
  previously_closed?: boolean;
8304
+ geoPoint?: GeoPoint;
8118
8305
  start_geoPoint?: {
8119
8306
  type: string;
8120
8307
  coordinates: number[];
@@ -8136,7 +8323,9 @@ export declare namespace Service {
8136
8323
  type Params = DefaultPaginationQueryParams & {
8137
8324
  _id?: string[] | string;
8138
8325
  "creator._id"?: string[] | string;
8326
+ reps?: string[] | string;
8139
8327
  open?: boolean;
8328
+ not_working_day?: boolean;
8140
8329
  day?: string;
8141
8330
  from_day?: string;
8142
8331
  to_day?: string;
@@ -12678,6 +12867,7 @@ export declare namespace Service {
12678
12867
  days_of_work: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
12679
12868
  signUpMethod: "email" | "phone";
12680
12869
  calculate_target_for_absent_days: boolean;
12870
+ calculate_target_for_non_working_days?: boolean;
12681
12871
  disable_module_custom_validator: boolean;
12682
12872
  activate_ubl_integration: boolean;
12683
12873
  last_activate_ubl_integration_time?: number;
@@ -12746,6 +12936,14 @@ export declare namespace Service {
12746
12936
  enable_whatsapp_mfa: boolean;
12747
12937
  enable_authenticator_mfa: boolean;
12748
12938
  minimum_accepted_mfa: number;
12939
+ end_of_day_mode: "fixed_time" | "shift_based";
12940
+ automatic_end_day_minutes_after_shift_end: number;
12941
+ start_day_outside_active_zone_action: "monitor" | "warning" | "block";
12942
+ start_visit_outside_active_zone_action: "monitor" | "warning" | "block";
12943
+ work_outside_active_zone_action: "monitor" | "warning" | "block";
12944
+ no_active_zone_action: "allow" | "block";
12945
+ use_accuracy_radius_near_zone_boundary: boolean;
12946
+ zone_boundary_grace_minutes: number;
12749
12947
  createdAt: Date;
12750
12948
  updatedAt: Date;
12751
12949
  }
@@ -12869,6 +13067,7 @@ export declare namespace Service {
12869
13067
  days_of_work?: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
12870
13068
  signUpMethod?: "email" | "phone";
12871
13069
  calculate_target_for_absent_days?: boolean;
13070
+ calculate_target_for_non_working_days?: boolean;
12872
13071
  disable_module_custom_validator?: boolean;
12873
13072
  activate_ubl_integration?: boolean;
12874
13073
  last_activate_ubl_integration_time?: number;
@@ -12938,6 +13137,16 @@ export declare namespace Service {
12938
13137
  enable_whatsapp_mfa: boolean;
12939
13138
  enable_authenticator_mfa: boolean;
12940
13139
  minimum_accepted_mfa: number;
13140
+ end_of_day?: string;
13141
+ time_zone?: string;
13142
+ end_of_day_mode?: "fixed_time" | "shift_based";
13143
+ automatic_end_day_minutes_after_shift_end?: number;
13144
+ start_day_outside_active_zone_action?: "monitor" | "warning" | "block";
13145
+ start_visit_outside_active_zone_action?: "monitor" | "warning" | "block";
13146
+ work_outside_active_zone_action?: "monitor" | "warning" | "block";
13147
+ no_active_zone_action?: "allow" | "block";
13148
+ use_accuracy_radius_near_zone_boundary?: boolean;
13149
+ zone_boundary_grace_minutes?: number;
12941
13150
  }
12942
13151
  namespace Update {
12943
13152
  type ID = StringId;
@@ -16232,7 +16441,7 @@ export declare namespace Service {
16232
16441
  export {};
16233
16442
  }
16234
16443
  namespace NotificationsCenter {
16235
- export type Command = "update-categories" | "update-clients" | "bulk-update-clients" | "update-inventory" | "update-measureunitFamilies" | "update-measureunits" | "update-pricelistItems" | "update-pricelists" | "update-products" | "update-rep" | "update-salesmsl" | "update-settings" | "update-tags" | "update-taxes" | "update-transfer" | "update-warehouses" | "update-jobCategories" | "update-plans" | "update-workorders" | "update-commentsThread" | "update-approval-request" | "update-variant-batch" | "update-asset-part-type" | "update-asset-part" | "update-asset-part-unit" | "update-custom-status" | "update-module-custom-validator" | "update-feedback-options" | "update-customfields" | "update-speciality" | "update-clm-presentation" | "update-clm-sequence" | "update-clm-slide" | "update-promotions" | "ai-chat-navigate" | "ai-chat-api-call" | "ai-chat-message-update" | "ai-chat-message-amend" | "update-delivery-note" | "update-item-status-type";
16444
+ export type Command = "update-categories" | "update-clients" | "bulk-update-clients" | "update-inventory" | "update-measureunitFamilies" | "update-measureunits" | "update-pricelistItems" | "update-pricelists" | "update-products" | "update-rep" | "update-salesmsl" | "update-settings" | "update-geo-zone" | "update-tags" | "update-taxes" | "update-transfer" | "update-warehouses" | "update-jobCategories" | "update-plans" | "update-workorders" | "update-commentsThread" | "update-approval-request" | "update-variant-batch" | "update-asset-part-type" | "update-asset-part" | "update-asset-part-unit" | "update-custom-status" | "update-module-custom-validator" | "update-feedback-options" | "update-customfields" | "update-speciality" | "update-clm-presentation" | "update-clm-sequence" | "update-clm-slide" | "update-promotions" | "ai-chat-navigate" | "ai-chat-api-call" | "ai-chat-message-update" | "ai-chat-message-amend" | "update-delivery-note" | "update-item-status-type";
16236
16445
  export interface Data {
16237
16446
  _id: StringId;
16238
16447
  command: Command;
@@ -19998,6 +20207,61 @@ export declare namespace Service {
19998
20207
  }
19999
20208
  export {};
20000
20209
  }
20210
+ namespace BulkExport {
20211
+ type BulkExportType = "clients" | "products" | "variants" | "categories" | "subCategories" | "availabilityMsl" | "availabilityMslWithProducts" | "reps" | "mslWithVariants" | "jobCategories" | "jobs" | "tags" | "routes" | "routesWithClients" | "plans" | "planWithRules" | "targetRulesWithClients" | "rulesWithRoutes" | "targetRulesWithReps" | "adjustAccount" | "rules" | "warehouses" | "productGroups" | "priceListItems" | "measureunit" | "measureunitFamily" | "lineTarget" | "clientLineClassification" | "retailExecutionPresets" | "promotions" | "customListItems" | "assets" | "assetUnits" | "speciality" | "clientLocation" | "reminders" | "admins" | "companyGroup" | "company" | "variantBatch" | "banksList" | "clientUblInfo" | "supplier" | "contractInstallment" | "targetRule" | "contracts" | "assetPartTypes" | "assetParts" | "clientUblInfo_JO" | "clientUblInfo_SA" | "nameSpaceFreshnessWindowCodes";
20212
+ interface Data {
20213
+ _id: StringId;
20214
+ creator: AdminOrRepOrTenantOrClient;
20215
+ type: BulkExportType;
20216
+ status: "processing" | "success" | "fail";
20217
+ messages: any[];
20218
+ _errors: any[];
20219
+ start_time: number;
20220
+ end_time?: number;
20221
+ bucket_name?: string;
20222
+ region?: string;
20223
+ key?: string;
20224
+ link?: string;
20225
+ media?: StringId[];
20226
+ teams: string[];
20227
+ export_type: "excel" | "parquet";
20228
+ row_count?: number;
20229
+ company_namespace: string[];
20230
+ createdAt: Date;
20231
+ updatedAt: Date;
20232
+ }
20233
+ interface CreateBody {
20234
+ export_type?: "excel" | "parquet";
20235
+ columns?: {
20236
+ [key: string]: any;
20237
+ };
20238
+ name?: string;
20239
+ creator?: AdminOrRepOrTenantOrClient;
20240
+ company_namespace?: string[];
20241
+ }
20242
+ namespace Find {
20243
+ type Params = DefaultPaginationQueryParams & {
20244
+ _id?: StringId | StringId[];
20245
+ type?: BulkExportType;
20246
+ status?: Data["status"] | Data["status"][];
20247
+ export?: boolean;
20248
+ export_type?: "excel" | "parquet";
20249
+ from_updatedAt?: number;
20250
+ to_updatedAt?: number;
20251
+ };
20252
+ interface Result extends DefaultPaginationResult {
20253
+ data: Data[];
20254
+ }
20255
+ }
20256
+ namespace Create {
20257
+ type Params = {
20258
+ type: BulkExportType;
20259
+ [key: string]: any;
20260
+ };
20261
+ type Body = CreateBody;
20262
+ type Result = Data;
20263
+ }
20264
+ }
20001
20265
  namespace DeliveryNote {
20002
20266
  interface User {
20003
20267
  _id: string;
@@ -20430,7 +20694,7 @@ export interface ReportKey {
20430
20694
  [key: string]: any;
20431
20695
  }
20432
20696
  type MFA_Method = "email" | "whatsapp" | "authenticator" | "recovery_codes";
20433
- type RepzoModel = "socialPlatform" | "activityAiSalesOrder" | "reportUblInvoice" | "ublIntegrationSettings" | "ublIntegration" | "ublConnectionAttempts" | "quickConvertToPdf" | "warehouses" | "transfers" | "transactions" | "taxes" | "productvariations" | "products" | "pricelistsitems" | "pricelists" | "payments" | "ledger_payments" | "mslsales" | "mslproducts" | "measureunits" | "measureunitfamilies" | "invoice" | "ledger_goods" | "fullinvoices" | "checks" | "clients" | "activities" | "bigReports" | "admins"
20697
+ type RepzoModel = "socialPlatform" | "activityAiSalesOrder" | "reportUblInvoice" | "ublIntegrationSettings" | "ublIntegration" | "ublConnectionAttempts" | "quickConvertToPdf" | "warehouses" | "dayShift" | "transfers" | "transactions" | "taxes" | "productvariations" | "products" | "pricelistsitems" | "pricelists" | "payments" | "ledger_payments" | "mslsales" | "mslproducts" | "measureunits" | "measureunitfamilies" | "invoice" | "ledger_goods" | "fullinvoices" | "checks" | "clients" | "activities" | "bigReports" | "admins"
20434
20698
  /**
20435
20699
  * @deprecated representatives shall be used
20436
20700
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.289",
3
+ "version": "1.0.291",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",