repzo 1.0.248 → 1.0.250
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/types/index.d.ts +24 -6
- package/package.json +1 -1
- package/src/types/index.ts +27 -6
package/lib/types/index.d.ts
CHANGED
|
@@ -2448,6 +2448,7 @@ export declare namespace Service {
|
|
|
2448
2448
|
rep_must_add_delivery_date_on_invoice?: boolean;
|
|
2449
2449
|
rep_can_view_stock_on_transfers?: boolean;
|
|
2450
2450
|
rep_must_invoice_items_from_cross_inventory_and_msl?: boolean;
|
|
2451
|
+
rep_can_create_client_line_approval_request?: boolean;
|
|
2451
2452
|
}
|
|
2452
2453
|
interface TargetResults {
|
|
2453
2454
|
totalPoints: number;
|
|
@@ -2706,6 +2707,7 @@ export declare namespace Service {
|
|
|
2706
2707
|
"permissions.rep_can_access_sales_reports"?: boolean;
|
|
2707
2708
|
"permissions.rep_must_add_delivery_date_on_sales_order"?: boolean;
|
|
2708
2709
|
"permissions.rep_must_add_delivery_date_on_invoice"?: boolean;
|
|
2710
|
+
"permissions.rep_can_create_client_line_approval_request"?: boolean;
|
|
2709
2711
|
"permissions.rep_can_view_stock_on_transfers"?: boolean;
|
|
2710
2712
|
"permissions.rep_must_invoice_items_from_cross_inventory_and_msl"?: boolean;
|
|
2711
2713
|
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
@@ -5873,6 +5875,8 @@ export declare namespace Service {
|
|
|
5873
5875
|
device_id?: string;
|
|
5874
5876
|
device_unique_id?: string;
|
|
5875
5877
|
treat_invoice_as_proforma_for_etax?: boolean;
|
|
5878
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
5879
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
5876
5880
|
}
|
|
5877
5881
|
export type Data = InvoiceSchema;
|
|
5878
5882
|
export interface CreateBody {
|
|
@@ -6081,6 +6085,8 @@ export declare namespace Service {
|
|
|
6081
6085
|
device_unique_id?: string;
|
|
6082
6086
|
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
6083
6087
|
business_day?: string;
|
|
6088
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
6089
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
6084
6090
|
}
|
|
6085
6091
|
export interface UpdateBody {
|
|
6086
6092
|
integration_meta?: {
|
|
@@ -6474,6 +6480,8 @@ export declare namespace Service {
|
|
|
6474
6480
|
device_unique_id?: string;
|
|
6475
6481
|
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
6476
6482
|
business_day?: string;
|
|
6483
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
6484
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
6477
6485
|
};
|
|
6478
6486
|
type InvoiceStatus = "paid" | "unpaid" | "partially_paid";
|
|
6479
6487
|
type PopulatedKeys = "client" | "tax_number" | "custom_status" | "return_reason" | "teams" | "warehouse" | "route" | "workorder" | "returned_from" | "partially_returned_from" | "returned_to";
|
|
@@ -6643,6 +6651,8 @@ export declare namespace Service {
|
|
|
6643
6651
|
total_with_charges?: number;
|
|
6644
6652
|
media?: StringId[];
|
|
6645
6653
|
signature?: StringId;
|
|
6654
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
6655
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
6646
6656
|
createdAt: string;
|
|
6647
6657
|
updatedAt: string;
|
|
6648
6658
|
__v: number;
|
|
@@ -6752,6 +6762,8 @@ export declare namespace Service {
|
|
|
6752
6762
|
total_with_charges?: number;
|
|
6753
6763
|
media?: StringId[];
|
|
6754
6764
|
signature?: StringId;
|
|
6765
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
6766
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
6755
6767
|
}
|
|
6756
6768
|
export interface UpdateBody {
|
|
6757
6769
|
_id?: string;
|
|
@@ -6864,6 +6876,8 @@ export declare namespace Service {
|
|
|
6864
6876
|
total_with_charges?: number;
|
|
6865
6877
|
media?: StringId[];
|
|
6866
6878
|
signature?: StringId;
|
|
6879
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
6880
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
6867
6881
|
createdAt?: string;
|
|
6868
6882
|
updatedAt?: string;
|
|
6869
6883
|
__v?: number;
|
|
@@ -10734,6 +10748,8 @@ export declare namespace Service {
|
|
|
10734
10748
|
client_name: string;
|
|
10735
10749
|
comment?: string;
|
|
10736
10750
|
return_comment?: string;
|
|
10751
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
10752
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
10737
10753
|
creator: {
|
|
10738
10754
|
_id: string;
|
|
10739
10755
|
type: "rep" | "client" | "admin";
|
|
@@ -10982,6 +10998,8 @@ export declare namespace Service {
|
|
|
10982
10998
|
client?: string;
|
|
10983
10999
|
name?: string;
|
|
10984
11000
|
};
|
|
11001
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
11002
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
10985
11003
|
converted_proforma_serial_number?: SerialNumber;
|
|
10986
11004
|
converted_proforma_return_serial_number?: SerialNumber;
|
|
10987
11005
|
proforma_reference?: string;
|
|
@@ -12457,11 +12475,11 @@ export declare namespace Service {
|
|
|
12457
12475
|
_id: StringId;
|
|
12458
12476
|
app_code: string;
|
|
12459
12477
|
document_id?: StringId;
|
|
12460
|
-
document_type: "client" | "visit";
|
|
12478
|
+
document_type: "client" | "visit" | "client-line";
|
|
12461
12479
|
sync_id: string;
|
|
12462
12480
|
method?: "create" | "update" | "delete" | "patch";
|
|
12463
12481
|
visit_id?: string;
|
|
12464
|
-
type: "skip_job_at_visit_end" | "end_visit_out_of_geofence" | "skip_visit_from_route" | "create_client" | "update_client" | "delete_client";
|
|
12482
|
+
type: "skip_job_at_visit_end" | "end_visit_out_of_geofence" | "skip_visit_from_route" | "create_client" | "update_client" | "delete_client" | "update_client_line";
|
|
12465
12483
|
subtype?: "client_details" | "client_assigned_to" | "client_location" | "client_credit_limit";
|
|
12466
12484
|
implementation_type: "create_doc" | "update_doc" | "delete_doc" | "no_implementation";
|
|
12467
12485
|
creator: AdminOrRepOrTenant;
|
|
@@ -12527,11 +12545,11 @@ export declare namespace Service {
|
|
|
12527
12545
|
};
|
|
12528
12546
|
export interface CreateBody {
|
|
12529
12547
|
document_id?: StringId;
|
|
12530
|
-
document_type: "client" | "visit";
|
|
12548
|
+
document_type: "client" | "visit" | "client-line";
|
|
12531
12549
|
sync_id: string;
|
|
12532
12550
|
method?: "create" | "update" | "delete" | "patch";
|
|
12533
12551
|
visit_id?: string;
|
|
12534
|
-
type: "skip_job_at_visit_end" | "end_visit_out_of_geofence" | "skip_visit_from_route" | "create_client" | "update_client" | "delete_client";
|
|
12552
|
+
type: "skip_job_at_visit_end" | "end_visit_out_of_geofence" | "skip_visit_from_route" | "create_client" | "update_client" | "delete_client" | "update_client_line";
|
|
12535
12553
|
subtype?: "client_details" | "client_assigned_to" | "client_location" | "client_credit_limit";
|
|
12536
12554
|
implementation_type: "create_doc" | "update_doc" | "delete_doc" | "no_implementation";
|
|
12537
12555
|
creator?: AdminOrRepOrTenant;
|
|
@@ -12587,11 +12605,11 @@ export declare namespace Service {
|
|
|
12587
12605
|
_id?: StringId;
|
|
12588
12606
|
app_code?: string;
|
|
12589
12607
|
document_id?: StringId;
|
|
12590
|
-
document_type?: "client" | "visit";
|
|
12608
|
+
document_type?: "client" | "visit" | "client-line";
|
|
12591
12609
|
sync_id?: string;
|
|
12592
12610
|
method?: "create" | "update" | "delete" | "patch";
|
|
12593
12611
|
visit_id?: string;
|
|
12594
|
-
type?: "skip_job_at_visit_end" | "end_visit_out_of_geofence" | "skip_visit_from_route" | "create_client" | "update_client" | "delete_client";
|
|
12612
|
+
type?: "skip_job_at_visit_end" | "end_visit_out_of_geofence" | "skip_visit_from_route" | "create_client" | "update_client" | "delete_client" | "update_client_line";
|
|
12595
12613
|
subtype?: "client_details" | "client_assigned_to" | "client_location" | "client_credit_limit";
|
|
12596
12614
|
implementation_type?: "create_doc" | "update_doc" | "delete_doc" | "no_implementation";
|
|
12597
12615
|
creator?: AdminOrRepOrTenant;
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -2858,6 +2858,7 @@ export namespace Service {
|
|
|
2858
2858
|
rep_must_add_delivery_date_on_invoice?: boolean;
|
|
2859
2859
|
rep_can_view_stock_on_transfers?: boolean;
|
|
2860
2860
|
rep_must_invoice_items_from_cross_inventory_and_msl?: boolean;
|
|
2861
|
+
rep_can_create_client_line_approval_request?: boolean;
|
|
2861
2862
|
}
|
|
2862
2863
|
interface TargetResults {
|
|
2863
2864
|
totalPoints: number;
|
|
@@ -3140,6 +3141,7 @@ export namespace Service {
|
|
|
3140
3141
|
"permissions.rep_can_access_sales_reports"?: boolean;
|
|
3141
3142
|
"permissions.rep_must_add_delivery_date_on_sales_order"?: boolean;
|
|
3142
3143
|
"permissions.rep_must_add_delivery_date_on_invoice"?: boolean;
|
|
3144
|
+
"permissions.rep_can_create_client_line_approval_request"?: boolean;
|
|
3143
3145
|
"permissions.rep_can_view_stock_on_transfers"?: boolean;
|
|
3144
3146
|
"permissions.rep_must_invoice_items_from_cross_inventory_and_msl"?: boolean;
|
|
3145
3147
|
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
@@ -6489,6 +6491,8 @@ export namespace Service {
|
|
|
6489
6491
|
device_id?: string;
|
|
6490
6492
|
device_unique_id?: string;
|
|
6491
6493
|
treat_invoice_as_proforma_for_etax?: boolean;
|
|
6494
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
6495
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
6492
6496
|
}
|
|
6493
6497
|
export type Data = InvoiceSchema;
|
|
6494
6498
|
export interface CreateBody {
|
|
@@ -6680,6 +6684,8 @@ export namespace Service {
|
|
|
6680
6684
|
device_unique_id?: string;
|
|
6681
6685
|
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
6682
6686
|
business_day?: string;
|
|
6687
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
6688
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
6683
6689
|
}
|
|
6684
6690
|
export interface UpdateBody {
|
|
6685
6691
|
integration_meta?: { [key: string]: any };
|
|
@@ -7046,6 +7052,8 @@ export namespace Service {
|
|
|
7046
7052
|
device_unique_id?: string;
|
|
7047
7053
|
implemented_by?: AdminCreator | RepCreator | ClientCreator;
|
|
7048
7054
|
business_day?: string;
|
|
7055
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
7056
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
7049
7057
|
};
|
|
7050
7058
|
|
|
7051
7059
|
type InvoiceStatus = "paid" | "unpaid" | "partially_paid";
|
|
@@ -7229,6 +7237,8 @@ export namespace Service {
|
|
|
7229
7237
|
total_with_charges?: number;
|
|
7230
7238
|
media?: StringId[];
|
|
7231
7239
|
signature?: StringId;
|
|
7240
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
7241
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
7232
7242
|
createdAt: string;
|
|
7233
7243
|
updatedAt: string;
|
|
7234
7244
|
__v: number;
|
|
@@ -7330,6 +7340,8 @@ export namespace Service {
|
|
|
7330
7340
|
total_with_charges?: number;
|
|
7331
7341
|
media?: StringId[];
|
|
7332
7342
|
signature?: StringId;
|
|
7343
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
7344
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
7333
7345
|
}
|
|
7334
7346
|
export interface UpdateBody {
|
|
7335
7347
|
_id?: string;
|
|
@@ -7434,6 +7446,8 @@ export namespace Service {
|
|
|
7434
7446
|
total_with_charges?: number;
|
|
7435
7447
|
media?: StringId[];
|
|
7436
7448
|
signature?: StringId;
|
|
7449
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
7450
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
7437
7451
|
createdAt?: string;
|
|
7438
7452
|
updatedAt?: string;
|
|
7439
7453
|
__v?: number;
|
|
@@ -11396,6 +11410,8 @@ export namespace Service {
|
|
|
11396
11410
|
client_name: string;
|
|
11397
11411
|
comment?: string;
|
|
11398
11412
|
return_comment?: string;
|
|
11413
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
11414
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
11399
11415
|
creator: {
|
|
11400
11416
|
_id: string;
|
|
11401
11417
|
type: "rep" | "client" | "admin";
|
|
@@ -11613,6 +11629,8 @@ export namespace Service {
|
|
|
11613
11629
|
client?: string;
|
|
11614
11630
|
name?: string;
|
|
11615
11631
|
};
|
|
11632
|
+
bypass_freshness_window_code_entered?: boolean;
|
|
11633
|
+
promotion_freshness_window_exceeded?: boolean;
|
|
11616
11634
|
converted_proforma_serial_number?: SerialNumber;
|
|
11617
11635
|
converted_proforma_return_serial_number?: SerialNumber;
|
|
11618
11636
|
proforma_reference?: string;
|
|
@@ -13231,7 +13249,7 @@ export namespace Service {
|
|
|
13231
13249
|
_id: StringId;
|
|
13232
13250
|
app_code: string;
|
|
13233
13251
|
document_id?: StringId;
|
|
13234
|
-
document_type: "client" | "visit";
|
|
13252
|
+
document_type: "client" | "visit" | "client-line";
|
|
13235
13253
|
sync_id: string;
|
|
13236
13254
|
method?: "create" | "update" | "delete" | "patch";
|
|
13237
13255
|
visit_id?: string;
|
|
@@ -13241,7 +13259,8 @@ export namespace Service {
|
|
|
13241
13259
|
| "skip_visit_from_route"
|
|
13242
13260
|
| "create_client"
|
|
13243
13261
|
| "update_client"
|
|
13244
|
-
| "delete_client"
|
|
13262
|
+
| "delete_client"
|
|
13263
|
+
| "update_client_line";
|
|
13245
13264
|
subtype?:
|
|
13246
13265
|
| "client_details"
|
|
13247
13266
|
| "client_assigned_to"
|
|
@@ -13314,7 +13333,7 @@ export namespace Service {
|
|
|
13314
13333
|
};
|
|
13315
13334
|
export interface CreateBody {
|
|
13316
13335
|
document_id?: StringId;
|
|
13317
|
-
document_type: "client" | "visit";
|
|
13336
|
+
document_type: "client" | "visit" | "client-line";
|
|
13318
13337
|
sync_id: string;
|
|
13319
13338
|
method?: "create" | "update" | "delete" | "patch";
|
|
13320
13339
|
visit_id?: string;
|
|
@@ -13324,7 +13343,8 @@ export namespace Service {
|
|
|
13324
13343
|
| "skip_visit_from_route"
|
|
13325
13344
|
| "create_client"
|
|
13326
13345
|
| "update_client"
|
|
13327
|
-
| "delete_client"
|
|
13346
|
+
| "delete_client"
|
|
13347
|
+
| "update_client_line";
|
|
13328
13348
|
subtype?:
|
|
13329
13349
|
| "client_details"
|
|
13330
13350
|
| "client_assigned_to"
|
|
@@ -13389,7 +13409,7 @@ export namespace Service {
|
|
|
13389
13409
|
_id?: StringId;
|
|
13390
13410
|
app_code?: string;
|
|
13391
13411
|
document_id?: StringId;
|
|
13392
|
-
document_type?: "client" | "visit";
|
|
13412
|
+
document_type?: "client" | "visit" | "client-line";
|
|
13393
13413
|
sync_id?: string;
|
|
13394
13414
|
method?: "create" | "update" | "delete" | "patch";
|
|
13395
13415
|
visit_id?: string;
|
|
@@ -13399,7 +13419,8 @@ export namespace Service {
|
|
|
13399
13419
|
| "skip_visit_from_route"
|
|
13400
13420
|
| "create_client"
|
|
13401
13421
|
| "update_client"
|
|
13402
|
-
| "delete_client"
|
|
13422
|
+
| "delete_client"
|
|
13423
|
+
| "update_client_line";
|
|
13403
13424
|
subtype?:
|
|
13404
13425
|
| "client_details"
|
|
13405
13426
|
| "client_assigned_to"
|