repzo 1.0.290 → 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.
- package/lib/index.d.ts +12 -2
- package/lib/index.js +24 -0
- package/lib/types/index.d.ts +120 -3
- package/package.json +1 -1
- package/src/index.ts +61 -0
- package/src/oas/day-shift.yaml +415 -0
- package/src/oas/day.yaml +11 -0
- package/src/oas/rep.yaml +112 -0
- package/src/oas/settings.yaml +36 -0
- package/src/types/index.ts +141 -0
package/src/types/index.ts
CHANGED
|
@@ -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";
|
|
@@ -8652,6 +8672,107 @@ export namespace Service {
|
|
|
8652
8672
|
}
|
|
8653
8673
|
}
|
|
8654
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
|
+
|
|
8655
8776
|
export namespace Day {
|
|
8656
8777
|
export interface DaySchema {
|
|
8657
8778
|
_id: string;
|
|
@@ -8667,8 +8788,10 @@ export namespace Service {
|
|
|
8667
8788
|
timeFrame: { startOfDay?: number; endOfDay?: number };
|
|
8668
8789
|
timeZone?: string;
|
|
8669
8790
|
EOD?: string;
|
|
8791
|
+
shift?: DayShift.Data | null;
|
|
8670
8792
|
closed_by_system?: boolean;
|
|
8671
8793
|
open: boolean;
|
|
8794
|
+
not_working_day?: boolean;
|
|
8672
8795
|
paymentSnapShot_start?: any[];
|
|
8673
8796
|
paymentSnapShot_end?: any[];
|
|
8674
8797
|
inventorySnapShot?: any[];
|
|
@@ -8686,6 +8809,7 @@ export namespace Service {
|
|
|
8686
8809
|
teams: string[];
|
|
8687
8810
|
created_by_system?: boolean;
|
|
8688
8811
|
previously_closed?: boolean;
|
|
8812
|
+
geoPoint?: GeoPoint;
|
|
8689
8813
|
start_geoPoint?: {
|
|
8690
8814
|
type: string;
|
|
8691
8815
|
coordinates: number[];
|
|
@@ -8715,8 +8839,10 @@ export namespace Service {
|
|
|
8715
8839
|
timeFrame: { startOfDay?: number; endOfDay?: number };
|
|
8716
8840
|
timeZone?: string;
|
|
8717
8841
|
EOD?: string;
|
|
8842
|
+
shift?: DayShift.Data | null;
|
|
8718
8843
|
closed_by_system?: boolean;
|
|
8719
8844
|
open: boolean;
|
|
8845
|
+
not_working_day?: boolean;
|
|
8720
8846
|
paymentSnapShot_start?: any[];
|
|
8721
8847
|
paymentSnapShot_end?: any[];
|
|
8722
8848
|
inventorySnapShot?: any[];
|
|
@@ -8730,6 +8856,7 @@ export namespace Service {
|
|
|
8730
8856
|
teams: string[];
|
|
8731
8857
|
created_by_system?: boolean;
|
|
8732
8858
|
previously_closed?: boolean;
|
|
8859
|
+
geoPoint?: GeoPoint;
|
|
8733
8860
|
start_geoPoint?: {
|
|
8734
8861
|
type: string;
|
|
8735
8862
|
coordinates: number[];
|
|
@@ -8757,8 +8884,10 @@ export namespace Service {
|
|
|
8757
8884
|
timeFrame?: { startOfDay?: number; endOfDay?: number };
|
|
8758
8885
|
timeZone?: string;
|
|
8759
8886
|
EOD?: string;
|
|
8887
|
+
shift?: DayShift.Data | null;
|
|
8760
8888
|
closed_by_system?: boolean;
|
|
8761
8889
|
open?: boolean;
|
|
8890
|
+
not_working_day?: boolean;
|
|
8762
8891
|
paymentSnapShot_start?: any[];
|
|
8763
8892
|
paymentSnapShot_end?: any[];
|
|
8764
8893
|
inventorySnapShot?: any[];
|
|
@@ -8776,6 +8905,7 @@ export namespace Service {
|
|
|
8776
8905
|
teams?: string[];
|
|
8777
8906
|
created_by_system?: boolean;
|
|
8778
8907
|
previously_closed?: boolean;
|
|
8908
|
+
geoPoint?: GeoPoint;
|
|
8779
8909
|
start_geoPoint?: {
|
|
8780
8910
|
type: string;
|
|
8781
8911
|
coordinates: number[];
|
|
@@ -8797,7 +8927,9 @@ export namespace Service {
|
|
|
8797
8927
|
export type Params = DefaultPaginationQueryParams & {
|
|
8798
8928
|
_id?: string[] | string;
|
|
8799
8929
|
"creator._id"?: string[] | string;
|
|
8930
|
+
reps?: string[] | string;
|
|
8800
8931
|
open?: boolean;
|
|
8932
|
+
not_working_day?: boolean;
|
|
8801
8933
|
day?: string;
|
|
8802
8934
|
from_day?: string;
|
|
8803
8935
|
to_day?: string;
|
|
@@ -13593,6 +13725,7 @@ export namespace Service {
|
|
|
13593
13725
|
| "Saturday";
|
|
13594
13726
|
signUpMethod: "email" | "phone";
|
|
13595
13727
|
calculate_target_for_absent_days: boolean;
|
|
13728
|
+
calculate_target_for_non_working_days?: boolean;
|
|
13596
13729
|
disable_module_custom_validator: boolean;
|
|
13597
13730
|
activate_ubl_integration: boolean;
|
|
13598
13731
|
last_activate_ubl_integration_time?: number;
|
|
@@ -13654,6 +13787,8 @@ export namespace Service {
|
|
|
13654
13787
|
enable_whatsapp_mfa: boolean;
|
|
13655
13788
|
enable_authenticator_mfa: boolean;
|
|
13656
13789
|
minimum_accepted_mfa: number;
|
|
13790
|
+
end_of_day_mode: "fixed_time" | "shift_based";
|
|
13791
|
+
automatic_end_day_minutes_after_shift_end: number;
|
|
13657
13792
|
start_day_outside_active_zone_action: "monitor" | "warning" | "block";
|
|
13658
13793
|
start_visit_outside_active_zone_action: "monitor" | "warning" | "block";
|
|
13659
13794
|
work_outside_active_zone_action: "monitor" | "warning" | "block";
|
|
@@ -13759,6 +13894,7 @@ export namespace Service {
|
|
|
13759
13894
|
| "Saturday";
|
|
13760
13895
|
signUpMethod?: "email" | "phone";
|
|
13761
13896
|
calculate_target_for_absent_days?: boolean;
|
|
13897
|
+
calculate_target_for_non_working_days?: boolean;
|
|
13762
13898
|
disable_module_custom_validator?: boolean;
|
|
13763
13899
|
activate_ubl_integration?: boolean;
|
|
13764
13900
|
last_activate_ubl_integration_time?: number;
|
|
@@ -13822,6 +13958,10 @@ export namespace Service {
|
|
|
13822
13958
|
enable_whatsapp_mfa: boolean;
|
|
13823
13959
|
enable_authenticator_mfa: boolean;
|
|
13824
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;
|
|
13825
13965
|
start_day_outside_active_zone_action?: "monitor" | "warning" | "block";
|
|
13826
13966
|
start_visit_outside_active_zone_action?: "monitor" | "warning" | "block";
|
|
13827
13967
|
work_outside_active_zone_action?: "monitor" | "warning" | "block";
|
|
@@ -23188,6 +23328,7 @@ type RepzoModel =
|
|
|
23188
23328
|
| "ublConnectionAttempts"
|
|
23189
23329
|
| "quickConvertToPdf"
|
|
23190
23330
|
| "warehouses"
|
|
23331
|
+
| "dayShift"
|
|
23191
23332
|
| "transfers"
|
|
23192
23333
|
| "transactions"
|
|
23193
23334
|
| "taxes"
|