repzo 1.0.288 → 1.0.290
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/changelog.md +6 -0
- package/lib/index.d.ts +19 -2
- package/lib/index.js +37 -0
- package/lib/types/index.d.ts +222 -2
- package/package.json +1 -1
- package/src/index.ts +84 -0
- package/src/oas/bulk-export.yaml +272 -0
- package/src/oas/geo-zone.yaml +349 -0
- package/src/oas/rep.yaml +45 -0
- package/src/oas/settings.yaml +60 -0
- package/src/types/index.ts +283 -0
package/src/types/index.ts
CHANGED
|
@@ -2882,6 +2882,88 @@ export namespace Service {
|
|
|
2882
2882
|
}
|
|
2883
2883
|
}
|
|
2884
2884
|
|
|
2885
|
+
export namespace GeoZone {
|
|
2886
|
+
export interface Polygon {
|
|
2887
|
+
type: "Polygon";
|
|
2888
|
+
coordinates: [number, number][][];
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
export interface AssignedRep {
|
|
2892
|
+
_id: StringId;
|
|
2893
|
+
name: string;
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
export interface Data {
|
|
2897
|
+
_id: StringId;
|
|
2898
|
+
name: string;
|
|
2899
|
+
description?: string;
|
|
2900
|
+
polygon: Polygon;
|
|
2901
|
+
disabled: boolean;
|
|
2902
|
+
editor: AdminOrRepOrTenantOrClient;
|
|
2903
|
+
assigned_reps?: AssignedRep[];
|
|
2904
|
+
company_namespace: string[];
|
|
2905
|
+
createdAt: string;
|
|
2906
|
+
updatedAt: string;
|
|
2907
|
+
__v: number;
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
export interface CreateBody {
|
|
2911
|
+
name: string;
|
|
2912
|
+
description?: string;
|
|
2913
|
+
polygon: Polygon;
|
|
2914
|
+
company_namespace?: string[];
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
export interface UpdateBody {
|
|
2918
|
+
name?: string;
|
|
2919
|
+
description?: string;
|
|
2920
|
+
polygon?: Polygon;
|
|
2921
|
+
disabled?: boolean;
|
|
2922
|
+
editor?: AdminOrRepOrTenantOrClient;
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2925
|
+
export namespace Find {
|
|
2926
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
2927
|
+
_id?: StringId | StringId[];
|
|
2928
|
+
name?: string | string[];
|
|
2929
|
+
search?: string;
|
|
2930
|
+
disabled?: boolean;
|
|
2931
|
+
inject_assigned_reps?: boolean;
|
|
2932
|
+
from_updatedAt?: number;
|
|
2933
|
+
to_updatedAt?: number;
|
|
2934
|
+
from_createdAt?: number;
|
|
2935
|
+
to_createdAt?: number;
|
|
2936
|
+
};
|
|
2937
|
+
export interface Result extends DefaultPaginationResult {
|
|
2938
|
+
data: Data[];
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
export namespace Get {
|
|
2943
|
+
export type ID = StringId;
|
|
2944
|
+
export type Params = {
|
|
2945
|
+
inject_assigned_reps?: boolean;
|
|
2946
|
+
};
|
|
2947
|
+
export type Result = Data;
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
export namespace Create {
|
|
2951
|
+
export type Body = CreateBody;
|
|
2952
|
+
export type Result = Data;
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
export namespace Update {
|
|
2956
|
+
export type ID = StringId;
|
|
2957
|
+
export type Body = UpdateBody;
|
|
2958
|
+
export type Result = Data;
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
export namespace Remove {
|
|
2962
|
+
export type ID = StringId;
|
|
2963
|
+
export type Result = Data;
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2885
2967
|
export namespace Rep {
|
|
2886
2968
|
interface RepPermissions {
|
|
2887
2969
|
rep_can_print_payment_after_allowance_period?: boolean;
|
|
@@ -2974,6 +3056,8 @@ export namespace Service {
|
|
|
2974
3056
|
rep_can_create_client_line_approval_request?: boolean;
|
|
2975
3057
|
rep_can_enter_client_code_at_create_client?: boolean;
|
|
2976
3058
|
rep_can_edit_client_location_at_create_client?: boolean;
|
|
3059
|
+
rep_can_start_visit_out_of_geofence?: boolean;
|
|
3060
|
+
rep_can_create_approval_request_to_start_visit_out_of_geofence?: boolean;
|
|
2977
3061
|
}
|
|
2978
3062
|
interface TargetResults {
|
|
2979
3063
|
totalPoints: number;
|
|
@@ -3035,6 +3119,7 @@ export namespace Service {
|
|
|
3035
3119
|
integration_meta?: { [key: string]: any };
|
|
3036
3120
|
force_online_connectivity?: boolean;
|
|
3037
3121
|
assigned_targets?: string[];
|
|
3122
|
+
assigned_geo_zones?: (string | GeoZone.Data)[];
|
|
3038
3123
|
lines?: string[];
|
|
3039
3124
|
targetResults?: TargetResults;
|
|
3040
3125
|
previously_assigned_clients?: string[];
|
|
@@ -3092,6 +3177,7 @@ export namespace Service {
|
|
|
3092
3177
|
integration_meta?: { [key: string]: any };
|
|
3093
3178
|
force_online_connectivity?: boolean;
|
|
3094
3179
|
assigned_targets?: string[];
|
|
3180
|
+
assigned_geo_zones?: string[] | null;
|
|
3095
3181
|
lines?: string[];
|
|
3096
3182
|
targetResults?: TargetResults;
|
|
3097
3183
|
previously_assigned_clients?: string[];
|
|
@@ -3127,6 +3213,7 @@ export namespace Service {
|
|
|
3127
3213
|
| "assigned_plan"
|
|
3128
3214
|
| "assigned_retail_execution_templates"
|
|
3129
3215
|
| "assigned_clm_presentations"
|
|
3216
|
+
| "assigned_geo_zones"
|
|
3130
3217
|
| "warehouse";
|
|
3131
3218
|
|
|
3132
3219
|
export type RepWithPopulatedKeysSchema = RepSchema & {
|
|
@@ -3145,6 +3232,7 @@ export namespace Service {
|
|
|
3145
3232
|
Warehouse.WarehouseSchema,
|
|
3146
3233
|
"_id" | "name" | "code" | "type" | "integration_meta"
|
|
3147
3234
|
>;
|
|
3235
|
+
assigned_geo_zones?: (string | GeoZone.Data)[];
|
|
3148
3236
|
};
|
|
3149
3237
|
|
|
3150
3238
|
export namespace Find {
|
|
@@ -3167,6 +3255,7 @@ export namespace Service {
|
|
|
3167
3255
|
assigned_plan?: string | string[];
|
|
3168
3256
|
force_online_connectivity?: boolean;
|
|
3169
3257
|
assigned_targets?: string | string[];
|
|
3258
|
+
assigned_geo_zones?: string | string[];
|
|
3170
3259
|
lines?: string | string[];
|
|
3171
3260
|
job_option?: JobOption | JobOption[];
|
|
3172
3261
|
"permissions.rep_can_add_client"?: boolean;
|
|
@@ -3255,6 +3344,8 @@ export namespace Service {
|
|
|
3255
3344
|
"permissions.rep_can_create_client_line_approval_request"?: boolean;
|
|
3256
3345
|
"permissions.rep_can_enter_client_code_at_create_client"?: boolean;
|
|
3257
3346
|
"permissions.rep_can_edit_client_location_at_create_client"?: boolean;
|
|
3347
|
+
"permissions.rep_can_start_visit_out_of_geofence"?: boolean;
|
|
3348
|
+
"permissions.rep_can_create_approval_request_to_start_visit_out_of_geofence"?: boolean;
|
|
3258
3349
|
"permissions.rep_can_view_stock_on_transfers"?: boolean;
|
|
3259
3350
|
"permissions.rep_must_invoice_items_from_cross_inventory_and_msl"?: boolean;
|
|
3260
3351
|
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
@@ -6683,6 +6774,12 @@ export namespace Service {
|
|
|
6683
6774
|
total_float_rounded?: number;
|
|
6684
6775
|
total_float_rounded_sum?: number;
|
|
6685
6776
|
total_before_tax?: number;
|
|
6777
|
+
/**
|
|
6778
|
+
* `total_before_tax + totalDeductionBeforeTax`: net of tax and before the
|
|
6779
|
+
* cart (header) deduction. Net of tax for inclusive-tax lines too, unlike
|
|
6780
|
+
* `taxable_subtotal`.
|
|
6781
|
+
*/
|
|
6782
|
+
total_before_deduction_and_tax?: number;
|
|
6686
6783
|
taxable_amount_float?: number;
|
|
6687
6784
|
taxable_amount_float_rounded_sum?: number;
|
|
6688
6785
|
taxable_amount_float_rounded?: number;
|
|
@@ -6695,6 +6792,7 @@ export namespace Service {
|
|
|
6695
6792
|
pre_total_float_rounded?: number;
|
|
6696
6793
|
pre_total_float_rounded_sum?: number;
|
|
6697
6794
|
pre_total_before_tax?: number;
|
|
6795
|
+
pre_total_before_deduction_and_tax?: number;
|
|
6698
6796
|
pre_taxable_amount_float?: number;
|
|
6699
6797
|
pre_taxable_amount_float_rounded?: number;
|
|
6700
6798
|
pre_taxable_amount_float_rounded_sum?: number;
|
|
@@ -6707,6 +6805,7 @@ export namespace Service {
|
|
|
6707
6805
|
return_total_float_rounded?: number;
|
|
6708
6806
|
return_total_float_rounded_sum?: number;
|
|
6709
6807
|
return_total_before_tax?: number;
|
|
6808
|
+
return_total_before_deduction_and_tax?: number;
|
|
6710
6809
|
return_taxable_amount_float?: number;
|
|
6711
6810
|
return_taxable_amount_float_rounded?: number;
|
|
6712
6811
|
return_taxable_amount_float_rounded_sum?: number;
|
|
@@ -6875,6 +6974,12 @@ export namespace Service {
|
|
|
6875
6974
|
total_float_rounded?: number;
|
|
6876
6975
|
total_float_rounded_sum?: number;
|
|
6877
6976
|
total_before_tax?: number;
|
|
6977
|
+
/**
|
|
6978
|
+
* `total_before_tax + totalDeductionBeforeTax`: net of tax and before the
|
|
6979
|
+
* cart (header) deduction. Net of tax for inclusive-tax lines too, unlike
|
|
6980
|
+
* `taxable_subtotal`.
|
|
6981
|
+
*/
|
|
6982
|
+
total_before_deduction_and_tax?: number;
|
|
6878
6983
|
taxable_amount_float?: number;
|
|
6879
6984
|
taxable_amount_float_rounded_sum?: number;
|
|
6880
6985
|
taxable_amount_float_rounded?: number;
|
|
@@ -6887,6 +6992,7 @@ export namespace Service {
|
|
|
6887
6992
|
pre_total_float_rounded?: number;
|
|
6888
6993
|
pre_total_float_rounded_sum?: number;
|
|
6889
6994
|
pre_total_before_tax?: number;
|
|
6995
|
+
pre_total_before_deduction_and_tax?: number;
|
|
6890
6996
|
pre_taxable_amount_float?: number;
|
|
6891
6997
|
pre_taxable_amount_float_rounded?: number;
|
|
6892
6998
|
pre_taxable_amount_float_rounded_sum?: number;
|
|
@@ -6899,6 +7005,7 @@ export namespace Service {
|
|
|
6899
7005
|
return_total_float_rounded?: number;
|
|
6900
7006
|
return_total_float_rounded_sum?: number;
|
|
6901
7007
|
return_total_before_tax?: number;
|
|
7008
|
+
return_total_before_deduction_and_tax?: number;
|
|
6902
7009
|
return_taxable_amount_float?: number;
|
|
6903
7010
|
return_taxable_amount_float_rounded?: number;
|
|
6904
7011
|
return_taxable_amount_float_rounded_sum?: number;
|
|
@@ -7240,6 +7347,12 @@ export namespace Service {
|
|
|
7240
7347
|
total_float_rounded?: number;
|
|
7241
7348
|
total_float_rounded_sum?: number;
|
|
7242
7349
|
total_before_tax?: number;
|
|
7350
|
+
/**
|
|
7351
|
+
* `total_before_tax + totalDeductionBeforeTax`: net of tax and before the
|
|
7352
|
+
* cart (header) deduction. Net of tax for inclusive-tax lines too, unlike
|
|
7353
|
+
* `taxable_subtotal`.
|
|
7354
|
+
*/
|
|
7355
|
+
total_before_deduction_and_tax?: number;
|
|
7243
7356
|
taxable_amount_float?: number;
|
|
7244
7357
|
taxable_amount_float_rounded_sum?: number;
|
|
7245
7358
|
taxable_amount_float_rounded?: number;
|
|
@@ -7252,6 +7365,7 @@ export namespace Service {
|
|
|
7252
7365
|
pre_total_float_rounded?: number;
|
|
7253
7366
|
pre_total_float_rounded_sum?: number;
|
|
7254
7367
|
pre_total_before_tax?: number;
|
|
7368
|
+
pre_total_before_deduction_and_tax?: number;
|
|
7255
7369
|
pre_taxable_amount_float?: number;
|
|
7256
7370
|
pre_taxable_amount_float_rounded?: number;
|
|
7257
7371
|
pre_taxable_amount_float_rounded_sum?: number;
|
|
@@ -7264,6 +7378,7 @@ export namespace Service {
|
|
|
7264
7378
|
return_total_float_rounded?: number;
|
|
7265
7379
|
return_total_float_rounded_sum?: number;
|
|
7266
7380
|
return_total_before_tax?: number;
|
|
7381
|
+
return_total_before_deduction_and_tax?: number;
|
|
7267
7382
|
return_taxable_amount_float?: number;
|
|
7268
7383
|
return_taxable_amount_float_rounded?: number;
|
|
7269
7384
|
return_taxable_amount_float_rounded_sum?: number;
|
|
@@ -7428,6 +7543,17 @@ export namespace Service {
|
|
|
7428
7543
|
taxable_subtotal: number;
|
|
7429
7544
|
tax_amount: number;
|
|
7430
7545
|
total: number;
|
|
7546
|
+
total_before_tax?: number;
|
|
7547
|
+
/**
|
|
7548
|
+
* `total_before_tax + totalDeductionBeforeTax`: net of tax and before the
|
|
7549
|
+
* cart (header) deduction. Net of tax for inclusive-tax lines too, unlike
|
|
7550
|
+
* `taxable_subtotal`.
|
|
7551
|
+
*/
|
|
7552
|
+
total_before_deduction_and_tax?: number;
|
|
7553
|
+
pre_total_before_tax?: number;
|
|
7554
|
+
pre_total_before_deduction_and_tax?: number;
|
|
7555
|
+
return_total_before_tax?: number;
|
|
7556
|
+
return_total_before_deduction_and_tax?: number;
|
|
7431
7557
|
pre_subtotal?: number;
|
|
7432
7558
|
pre_discount_amount?: number;
|
|
7433
7559
|
pre_taxable_subtotal?: number;
|
|
@@ -7533,6 +7659,17 @@ export namespace Service {
|
|
|
7533
7659
|
taxable_subtotal: number;
|
|
7534
7660
|
tax_amount: number;
|
|
7535
7661
|
total: number;
|
|
7662
|
+
total_before_tax?: number;
|
|
7663
|
+
/**
|
|
7664
|
+
* `total_before_tax + totalDeductionBeforeTax`: net of tax and before the
|
|
7665
|
+
* cart (header) deduction. Net of tax for inclusive-tax lines too, unlike
|
|
7666
|
+
* `taxable_subtotal`.
|
|
7667
|
+
*/
|
|
7668
|
+
total_before_deduction_and_tax?: number;
|
|
7669
|
+
pre_total_before_tax?: number;
|
|
7670
|
+
pre_total_before_deduction_and_tax?: number;
|
|
7671
|
+
return_total_before_tax?: number;
|
|
7672
|
+
return_total_before_deduction_and_tax?: number;
|
|
7536
7673
|
pre_subtotal?: number;
|
|
7537
7674
|
pre_discount_amount?: number;
|
|
7538
7675
|
pre_taxable_subtotal?: number;
|
|
@@ -7639,6 +7776,17 @@ export namespace Service {
|
|
|
7639
7776
|
taxable_subtotal?: number;
|
|
7640
7777
|
tax_amount?: number;
|
|
7641
7778
|
total?: number;
|
|
7779
|
+
total_before_tax?: number;
|
|
7780
|
+
/**
|
|
7781
|
+
* `total_before_tax + totalDeductionBeforeTax`: net of tax and before the
|
|
7782
|
+
* cart (header) deduction. Net of tax for inclusive-tax lines too, unlike
|
|
7783
|
+
* `taxable_subtotal`.
|
|
7784
|
+
*/
|
|
7785
|
+
total_before_deduction_and_tax?: number;
|
|
7786
|
+
pre_total_before_tax?: number;
|
|
7787
|
+
pre_total_before_deduction_and_tax?: number;
|
|
7788
|
+
return_total_before_tax?: number;
|
|
7789
|
+
return_total_before_deduction_and_tax?: number;
|
|
7642
7790
|
pre_subtotal?: number;
|
|
7643
7791
|
pre_discount_amount?: number;
|
|
7644
7792
|
pre_taxable_subtotal?: number;
|
|
@@ -11948,6 +12096,12 @@ export namespace Service {
|
|
|
11948
12096
|
total_float_rounded?: number;
|
|
11949
12097
|
total_float_rounded_sum?: number;
|
|
11950
12098
|
total_before_tax?: number;
|
|
12099
|
+
/**
|
|
12100
|
+
* `total_before_tax + totalDeductionBeforeTax`: net of tax and before the
|
|
12101
|
+
* cart (header) deduction. Net of tax for inclusive-tax lines too, unlike
|
|
12102
|
+
* `taxable_subtotal`.
|
|
12103
|
+
*/
|
|
12104
|
+
total_before_deduction_and_tax?: number;
|
|
11951
12105
|
taxable_amount_float?: number;
|
|
11952
12106
|
taxable_amount_float_rounded_sum?: number;
|
|
11953
12107
|
taxable_amount_float_rounded?: number;
|
|
@@ -11965,6 +12119,7 @@ export namespace Service {
|
|
|
11965
12119
|
pre_total_float_rounded?: number;
|
|
11966
12120
|
pre_total_float_rounded_sum?: number;
|
|
11967
12121
|
pre_total_before_tax?: number;
|
|
12122
|
+
pre_total_before_deduction_and_tax?: number;
|
|
11968
12123
|
pre_taxable_amount_float?: number;
|
|
11969
12124
|
pre_taxable_amount_float_rounded?: number;
|
|
11970
12125
|
pre_taxable_amount_float_rounded_sum?: number;
|
|
@@ -11982,6 +12137,7 @@ export namespace Service {
|
|
|
11982
12137
|
return_total_float_rounded?: number;
|
|
11983
12138
|
return_total_float_rounded_sum?: number;
|
|
11984
12139
|
return_total_before_tax?: number;
|
|
12140
|
+
return_total_before_deduction_and_tax?: number;
|
|
11985
12141
|
return_taxable_amount_float?: number;
|
|
11986
12142
|
return_taxable_amount_float_rounded?: number;
|
|
11987
12143
|
return_taxable_amount_float_rounded_sum?: number;
|
|
@@ -12129,6 +12285,12 @@ export namespace Service {
|
|
|
12129
12285
|
total_float_rounded?: number;
|
|
12130
12286
|
total_float_rounded_sum?: number;
|
|
12131
12287
|
total_before_tax?: number;
|
|
12288
|
+
/**
|
|
12289
|
+
* `total_before_tax + totalDeductionBeforeTax`: net of tax and before the
|
|
12290
|
+
* cart (header) deduction. Net of tax for inclusive-tax lines too, unlike
|
|
12291
|
+
* `taxable_subtotal`.
|
|
12292
|
+
*/
|
|
12293
|
+
total_before_deduction_and_tax?: number;
|
|
12132
12294
|
taxable_amount_float?: number;
|
|
12133
12295
|
taxable_amount_float_rounded_sum?: number;
|
|
12134
12296
|
taxable_amount_float_rounded?: number;
|
|
@@ -12146,6 +12308,7 @@ export namespace Service {
|
|
|
12146
12308
|
pre_total_float_rounded?: number;
|
|
12147
12309
|
pre_total_float_rounded_sum?: number;
|
|
12148
12310
|
pre_total_before_tax?: number;
|
|
12311
|
+
pre_total_before_deduction_and_tax?: number;
|
|
12149
12312
|
pre_taxable_amount_float?: number;
|
|
12150
12313
|
pre_taxable_amount_float_rounded?: number;
|
|
12151
12314
|
pre_taxable_amount_float_rounded_sum?: number;
|
|
@@ -12163,6 +12326,7 @@ export namespace Service {
|
|
|
12163
12326
|
return_total_float_rounded?: number;
|
|
12164
12327
|
return_total_float_rounded_sum?: number;
|
|
12165
12328
|
return_total_before_tax?: number;
|
|
12329
|
+
return_total_before_deduction_and_tax?: number;
|
|
12166
12330
|
return_taxable_amount_float?: number;
|
|
12167
12331
|
return_taxable_amount_float_rounded?: number;
|
|
12168
12332
|
return_taxable_amount_float_rounded_sum?: number;
|
|
@@ -13490,6 +13654,12 @@ export namespace Service {
|
|
|
13490
13654
|
enable_whatsapp_mfa: boolean;
|
|
13491
13655
|
enable_authenticator_mfa: boolean;
|
|
13492
13656
|
minimum_accepted_mfa: number;
|
|
13657
|
+
start_day_outside_active_zone_action: "monitor" | "warning" | "block";
|
|
13658
|
+
start_visit_outside_active_zone_action: "monitor" | "warning" | "block";
|
|
13659
|
+
work_outside_active_zone_action: "monitor" | "warning" | "block";
|
|
13660
|
+
no_active_zone_action: "allow" | "block";
|
|
13661
|
+
use_accuracy_radius_near_zone_boundary: boolean;
|
|
13662
|
+
zone_boundary_grace_minutes: number;
|
|
13493
13663
|
createdAt: Date;
|
|
13494
13664
|
updatedAt: Date;
|
|
13495
13665
|
}
|
|
@@ -13652,6 +13822,12 @@ export namespace Service {
|
|
|
13652
13822
|
enable_whatsapp_mfa: boolean;
|
|
13653
13823
|
enable_authenticator_mfa: boolean;
|
|
13654
13824
|
minimum_accepted_mfa: number;
|
|
13825
|
+
start_day_outside_active_zone_action?: "monitor" | "warning" | "block";
|
|
13826
|
+
start_visit_outside_active_zone_action?: "monitor" | "warning" | "block";
|
|
13827
|
+
work_outside_active_zone_action?: "monitor" | "warning" | "block";
|
|
13828
|
+
no_active_zone_action?: "allow" | "block";
|
|
13829
|
+
use_accuracy_radius_near_zone_boundary?: boolean;
|
|
13830
|
+
zone_boundary_grace_minutes?: number;
|
|
13655
13831
|
}
|
|
13656
13832
|
|
|
13657
13833
|
export namespace Update {
|
|
@@ -18011,6 +18187,7 @@ export namespace Service {
|
|
|
18011
18187
|
| "update-rep"
|
|
18012
18188
|
| "update-salesmsl"
|
|
18013
18189
|
| "update-settings"
|
|
18190
|
+
| "update-geo-zone"
|
|
18014
18191
|
| "update-tags"
|
|
18015
18192
|
| "update-taxes"
|
|
18016
18193
|
| "update-transfer"
|
|
@@ -22381,6 +22558,112 @@ export namespace Service {
|
|
|
22381
22558
|
}
|
|
22382
22559
|
}
|
|
22383
22560
|
|
|
22561
|
+
export namespace BulkExport {
|
|
22562
|
+
export type BulkExportType =
|
|
22563
|
+
| "clients"
|
|
22564
|
+
| "products"
|
|
22565
|
+
| "variants"
|
|
22566
|
+
| "categories"
|
|
22567
|
+
| "subCategories"
|
|
22568
|
+
| "availabilityMsl"
|
|
22569
|
+
| "availabilityMslWithProducts"
|
|
22570
|
+
| "reps"
|
|
22571
|
+
| "mslWithVariants"
|
|
22572
|
+
| "jobCategories"
|
|
22573
|
+
| "jobs"
|
|
22574
|
+
| "tags"
|
|
22575
|
+
| "routes"
|
|
22576
|
+
| "routesWithClients"
|
|
22577
|
+
| "plans"
|
|
22578
|
+
| "planWithRules"
|
|
22579
|
+
| "targetRulesWithClients"
|
|
22580
|
+
| "rulesWithRoutes"
|
|
22581
|
+
| "targetRulesWithReps"
|
|
22582
|
+
| "adjustAccount"
|
|
22583
|
+
| "rules"
|
|
22584
|
+
| "warehouses"
|
|
22585
|
+
| "productGroups"
|
|
22586
|
+
| "priceListItems"
|
|
22587
|
+
| "measureunit"
|
|
22588
|
+
| "measureunitFamily"
|
|
22589
|
+
| "lineTarget"
|
|
22590
|
+
| "clientLineClassification"
|
|
22591
|
+
| "retailExecutionPresets"
|
|
22592
|
+
| "promotions"
|
|
22593
|
+
| "customListItems"
|
|
22594
|
+
| "assets"
|
|
22595
|
+
| "assetUnits"
|
|
22596
|
+
| "speciality"
|
|
22597
|
+
| "clientLocation"
|
|
22598
|
+
| "reminders"
|
|
22599
|
+
| "admins"
|
|
22600
|
+
| "companyGroup"
|
|
22601
|
+
| "company"
|
|
22602
|
+
| "variantBatch"
|
|
22603
|
+
| "banksList"
|
|
22604
|
+
| "clientUblInfo"
|
|
22605
|
+
| "supplier"
|
|
22606
|
+
| "contractInstallment"
|
|
22607
|
+
| "targetRule"
|
|
22608
|
+
| "contracts"
|
|
22609
|
+
| "assetPartTypes"
|
|
22610
|
+
| "assetParts"
|
|
22611
|
+
| "clientUblInfo_JO"
|
|
22612
|
+
| "clientUblInfo_SA"
|
|
22613
|
+
| "nameSpaceFreshnessWindowCodes";
|
|
22614
|
+
|
|
22615
|
+
export interface Data {
|
|
22616
|
+
_id: StringId;
|
|
22617
|
+
creator: AdminOrRepOrTenantOrClient;
|
|
22618
|
+
type: BulkExportType;
|
|
22619
|
+
status: "processing" | "success" | "fail";
|
|
22620
|
+
messages: any[];
|
|
22621
|
+
_errors: any[];
|
|
22622
|
+
start_time: number;
|
|
22623
|
+
end_time?: number;
|
|
22624
|
+
bucket_name?: string;
|
|
22625
|
+
region?: string;
|
|
22626
|
+
key?: string;
|
|
22627
|
+
link?: string;
|
|
22628
|
+
media?: StringId[];
|
|
22629
|
+
teams: string[];
|
|
22630
|
+
export_type: "excel" | "parquet";
|
|
22631
|
+
row_count?: number;
|
|
22632
|
+
company_namespace: string[];
|
|
22633
|
+
createdAt: Date;
|
|
22634
|
+
updatedAt: Date;
|
|
22635
|
+
}
|
|
22636
|
+
|
|
22637
|
+
export interface CreateBody {
|
|
22638
|
+
export_type?: "excel" | "parquet";
|
|
22639
|
+
columns?: { [key: string]: any };
|
|
22640
|
+
name?: string;
|
|
22641
|
+
creator?: AdminOrRepOrTenantOrClient;
|
|
22642
|
+
company_namespace?: string[];
|
|
22643
|
+
}
|
|
22644
|
+
|
|
22645
|
+
export namespace Find {
|
|
22646
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
22647
|
+
_id?: StringId | StringId[];
|
|
22648
|
+
type?: BulkExportType;
|
|
22649
|
+
status?: Data["status"] | Data["status"][];
|
|
22650
|
+
export?: boolean;
|
|
22651
|
+
export_type?: "excel" | "parquet";
|
|
22652
|
+
from_updatedAt?: number;
|
|
22653
|
+
to_updatedAt?: number;
|
|
22654
|
+
};
|
|
22655
|
+
export interface Result extends DefaultPaginationResult {
|
|
22656
|
+
data: Data[];
|
|
22657
|
+
}
|
|
22658
|
+
}
|
|
22659
|
+
|
|
22660
|
+
export namespace Create {
|
|
22661
|
+
export type Params = { type: BulkExportType; [key: string]: any };
|
|
22662
|
+
export type Body = CreateBody;
|
|
22663
|
+
export type Result = Data;
|
|
22664
|
+
}
|
|
22665
|
+
}
|
|
22666
|
+
|
|
22384
22667
|
export namespace DeliveryNote {
|
|
22385
22668
|
interface User {
|
|
22386
22669
|
_id: string;
|