repzo 1.0.187 → 1.0.189
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 +25 -183
- package/package.json +1 -1
- package/src/types/index.ts +33 -163
package/lib/types/index.d.ts
CHANGED
|
@@ -5754,6 +5754,7 @@ export declare namespace Service {
|
|
|
5754
5754
|
identifier?: number;
|
|
5755
5755
|
device_id?: string;
|
|
5756
5756
|
device_unique_id?: string;
|
|
5757
|
+
treat_invoice_as_proforma_for_etax?: boolean;
|
|
5757
5758
|
}
|
|
5758
5759
|
export type Data = InvoiceSchema;
|
|
5759
5760
|
export interface CreateBody {
|
|
@@ -6385,6 +6386,7 @@ export declare namespace Service {
|
|
|
6385
6386
|
field: "_id";
|
|
6386
6387
|
type: "asc" | "desc";
|
|
6387
6388
|
}[];
|
|
6389
|
+
treat_invoice_as_proforma_for_etax?: boolean;
|
|
6388
6390
|
};
|
|
6389
6391
|
interface Result extends DefaultPaginationResult {
|
|
6390
6392
|
data: InvoiceSchemaWithPopulatedKeys[];
|
|
@@ -6937,6 +6939,7 @@ export declare namespace Service {
|
|
|
6937
6939
|
}[];
|
|
6938
6940
|
nodeCycles?: string[] | string;
|
|
6939
6941
|
withCycle?: boolean;
|
|
6942
|
+
conversion_status?: "converted" | "not_converted" | "all";
|
|
6940
6943
|
};
|
|
6941
6944
|
interface Result extends DefaultPaginationResult {
|
|
6942
6945
|
data: ProformaSchemaWithPopulatedKeys[];
|
|
@@ -11770,6 +11773,19 @@ export declare namespace Service {
|
|
|
11770
11773
|
local_currency?: string;
|
|
11771
11774
|
local_currency_subunit?: string;
|
|
11772
11775
|
currency_factor?: 100 | 1000;
|
|
11776
|
+
print_payment_allowance_period_in_days?: number;
|
|
11777
|
+
}
|
|
11778
|
+
interface WorkorderSettings {
|
|
11779
|
+
workorder_teams_follow_assigned_to?: boolean;
|
|
11780
|
+
workorder_teams_follow_client?: boolean;
|
|
11781
|
+
workorder_request_teams_follow_client?: boolean;
|
|
11782
|
+
send_email_at_contract_expiry?: boolean;
|
|
11783
|
+
send_email_at_contract_near_expiry?: boolean;
|
|
11784
|
+
send_email_at_contract_installment_due?: boolean;
|
|
11785
|
+
send_email_at_contract_installment_near_due?: boolean;
|
|
11786
|
+
contract_near_expiry_days: number;
|
|
11787
|
+
contract_installment_near_due_days: number;
|
|
11788
|
+
workorder_near_due_days?: number;
|
|
11773
11789
|
}
|
|
11774
11790
|
interface Data {
|
|
11775
11791
|
_id: string;
|
|
@@ -11882,7 +11898,7 @@ export declare namespace Service {
|
|
|
11882
11898
|
business_apps: {
|
|
11883
11899
|
code: string;
|
|
11884
11900
|
services: {
|
|
11885
|
-
permission:
|
|
11901
|
+
permission: StringId;
|
|
11886
11902
|
teams_shared: "shared" | "unshared";
|
|
11887
11903
|
}[];
|
|
11888
11904
|
}[];
|
|
@@ -11890,17 +11906,7 @@ export declare namespace Service {
|
|
|
11890
11906
|
overwrite_serial_number?: boolean;
|
|
11891
11907
|
allow_create_v1: boolean;
|
|
11892
11908
|
};
|
|
11893
|
-
workorder?:
|
|
11894
|
-
workorder_teams_follow_client?: boolean;
|
|
11895
|
-
workorder_request_teams_follow_client?: boolean;
|
|
11896
|
-
send_email_at_contract_expiry?: boolean;
|
|
11897
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
11898
|
-
send_email_at_contract_installment_due?: boolean;
|
|
11899
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
11900
|
-
contract_near_expiry_days: number;
|
|
11901
|
-
contract_installment_near_due_days: number;
|
|
11902
|
-
workorder_near_due_days?: number;
|
|
11903
|
-
};
|
|
11909
|
+
workorder?: WorkorderSettings;
|
|
11904
11910
|
notifications?: {
|
|
11905
11911
|
calendar_update?: boolean;
|
|
11906
11912
|
transfer_update?: boolean;
|
|
@@ -11934,118 +11940,12 @@ export declare namespace Service {
|
|
|
11934
11940
|
rep_permissions?: {
|
|
11935
11941
|
rep_must_start_day_within_specific_time_frame: boolean;
|
|
11936
11942
|
};
|
|
11943
|
+
allow_assigning_non_creator_teams_when_creating_client?: boolean;
|
|
11937
11944
|
createdAt: Date;
|
|
11938
11945
|
updatedAt: Date;
|
|
11939
11946
|
}
|
|
11940
|
-
|
|
11941
|
-
|
|
11942
|
-
company_namespace: string[];
|
|
11943
|
-
live_location?: {
|
|
11944
|
-
active: boolean;
|
|
11945
|
-
from?: string;
|
|
11946
|
-
to?: string;
|
|
11947
|
-
};
|
|
11948
|
-
use_original_image_compression?: boolean;
|
|
11949
|
-
use_client_specific_sales_settings?: boolean;
|
|
11950
|
-
use_client_specific_sales_settings_for_payment?: boolean;
|
|
11951
|
-
use_client_specific_sales_settings_for_client_statement?: boolean;
|
|
11952
|
-
disable_ubl_integration_for_return_invoice?: boolean;
|
|
11953
|
-
sales: SalesSettings;
|
|
11954
|
-
geofencing?: {
|
|
11955
|
-
visit_start: boolean;
|
|
11956
|
-
visit_end: boolean;
|
|
11957
|
-
radius: number;
|
|
11958
|
-
visit_strict: boolean;
|
|
11959
|
-
};
|
|
11960
|
-
mail_list?: {
|
|
11961
|
-
invoice_sales?: {
|
|
11962
|
-
name: string;
|
|
11963
|
-
email: string;
|
|
11964
|
-
filters?: EmailFilter[];
|
|
11965
|
-
}[];
|
|
11966
|
-
mocking?: {
|
|
11967
|
-
name: string;
|
|
11968
|
-
email: string;
|
|
11969
|
-
}[];
|
|
11970
|
-
sales_order?: {
|
|
11971
|
-
name: string;
|
|
11972
|
-
email: string;
|
|
11973
|
-
filters?: EmailFilter[];
|
|
11974
|
-
}[];
|
|
11975
|
-
photo?: {
|
|
11976
|
-
name: string;
|
|
11977
|
-
email: string;
|
|
11978
|
-
filters?: EmailFilter[];
|
|
11979
|
-
}[];
|
|
11980
|
-
live_location?: {
|
|
11981
|
-
name: string;
|
|
11982
|
-
email: string;
|
|
11983
|
-
filters?: EmailFilter[];
|
|
11984
|
-
}[];
|
|
11985
|
-
location_off?: {
|
|
11986
|
-
name: string;
|
|
11987
|
-
email: string;
|
|
11988
|
-
filters?: EmailFilter[];
|
|
11989
|
-
}[];
|
|
11990
|
-
location_on?: {
|
|
11991
|
-
name: string;
|
|
11992
|
-
email: string;
|
|
11993
|
-
filters?: EmailFilter[];
|
|
11994
|
-
}[];
|
|
11995
|
-
contract_expiry?: {
|
|
11996
|
-
name: string;
|
|
11997
|
-
email: string;
|
|
11998
|
-
}[];
|
|
11999
|
-
contract_near_expiry?: {
|
|
12000
|
-
name: string;
|
|
12001
|
-
email: string;
|
|
12002
|
-
}[];
|
|
12003
|
-
contract_installment_due?: {
|
|
12004
|
-
name: string;
|
|
12005
|
-
email: string;
|
|
12006
|
-
}[];
|
|
12007
|
-
contract_installment_near_due?: {
|
|
12008
|
-
name: string;
|
|
12009
|
-
email: string;
|
|
12010
|
-
}[];
|
|
12011
|
-
};
|
|
12012
|
-
promotions?: {
|
|
12013
|
-
enforcement_mode?: "all_in_inventory" | "all" | "gift_in_inventory" | "gift" | "custom";
|
|
12014
|
-
apply_hidden_price?: boolean;
|
|
12015
|
-
apply_all_promotions?: boolean;
|
|
12016
|
-
applying_sort?: {
|
|
12017
|
-
[key: string]: -1 | 1;
|
|
12018
|
-
}[];
|
|
12019
|
-
force_cash_only?: boolean;
|
|
12020
|
-
allow_manual_discounts?: boolean;
|
|
12021
|
-
manual_discounts_limit_percentage?: number;
|
|
12022
|
-
manual_discounts_limit_value?: number;
|
|
12023
|
-
promotions_enabled?: boolean;
|
|
12024
|
-
round_discounted_price?: boolean;
|
|
12025
|
-
};
|
|
12026
|
-
teams_shared_collections?: string[];
|
|
12027
|
-
days_of_work?: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
|
|
12028
|
-
signUpMethod?: "email" | "phone";
|
|
12029
|
-
calculate_target_for_absent_days?: boolean;
|
|
12030
|
-
disable_module_custom_validator?: boolean;
|
|
12031
|
-
activate_ubl_integration?: boolean;
|
|
12032
|
-
last_activate_ubl_integration_time?: number;
|
|
12033
|
-
visit?: {
|
|
12034
|
-
manual_product_line_selection: boolean;
|
|
12035
|
-
};
|
|
12036
|
-
custom_status?: {
|
|
12037
|
-
use_custom_status_transfer?: boolean;
|
|
12038
|
-
use_system_status_transfer?: boolean;
|
|
12039
|
-
use_custom_status_payment?: boolean;
|
|
12040
|
-
use_system_status_payment?: boolean;
|
|
12041
|
-
use_custom_status_fullinvoice?: boolean;
|
|
12042
|
-
use_system_status_fullinvoice?: boolean;
|
|
12043
|
-
use_custom_status_proforma?: boolean;
|
|
12044
|
-
use_system_status_proforma?: boolean;
|
|
12045
|
-
use_custom_status_workorder?: boolean;
|
|
12046
|
-
use_system_status_workorder?: boolean;
|
|
12047
|
-
};
|
|
12048
|
-
business_apps?: {
|
|
11947
|
+
type PopulatedDoc = Data & {
|
|
11948
|
+
business_apps: {
|
|
12049
11949
|
code: string;
|
|
12050
11950
|
services: {
|
|
12051
11951
|
permission: StringId | {
|
|
@@ -12055,57 +11955,7 @@ export declare namespace Service {
|
|
|
12055
11955
|
teams_shared: "shared" | "unshared";
|
|
12056
11956
|
}[];
|
|
12057
11957
|
}[];
|
|
12058
|
-
|
|
12059
|
-
overwrite_serial_number?: boolean;
|
|
12060
|
-
allow_create_v1: boolean;
|
|
12061
|
-
};
|
|
12062
|
-
workorder?: {
|
|
12063
|
-
workorder_teams_follow_client?: boolean;
|
|
12064
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12065
|
-
send_email_at_contract_expiry?: boolean;
|
|
12066
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12067
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12068
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12069
|
-
contract_near_expiry_days?: number;
|
|
12070
|
-
contract_installment_near_due_days?: number;
|
|
12071
|
-
workorder_near_due_days?: number;
|
|
12072
|
-
};
|
|
12073
|
-
notifications?: {
|
|
12074
|
-
calendar_update?: boolean;
|
|
12075
|
-
transfer_update?: boolean;
|
|
12076
|
-
cycle_update?: boolean;
|
|
12077
|
-
client_update?: boolean;
|
|
12078
|
-
approval_request_update?: boolean;
|
|
12079
|
-
workorder_update?: boolean;
|
|
12080
|
-
workorder_start?: boolean;
|
|
12081
|
-
workorder_near_due?: boolean;
|
|
12082
|
-
activity_note?: boolean;
|
|
12083
|
-
activity_form?: boolean;
|
|
12084
|
-
activity_photo?: boolean;
|
|
12085
|
-
activity_audit?: boolean;
|
|
12086
|
-
activity_task?: boolean;
|
|
12087
|
-
activity_availability?: boolean;
|
|
12088
|
-
activity_planogram?: boolean;
|
|
12089
|
-
activity_shelfsahre?: boolean;
|
|
12090
|
-
activity_checkout_display?: boolean;
|
|
12091
|
-
activity_secondary_display?: boolean;
|
|
12092
|
-
};
|
|
12093
|
-
asset_part?: {
|
|
12094
|
-
prevent_negative_asset_part_inventory: boolean;
|
|
12095
|
-
};
|
|
12096
|
-
default_lang?: "en" | "ar";
|
|
12097
|
-
second_lang?: "en" | "ar";
|
|
12098
|
-
report_value_delimiter?: "|" | "," | " " | "." | "-";
|
|
12099
|
-
rep_settings?: {
|
|
12100
|
-
rep_start_day_specific_time_frame_start: string;
|
|
12101
|
-
rep_start_day_specific_time_frame_end: string;
|
|
12102
|
-
};
|
|
12103
|
-
rep_permissions?: {
|
|
12104
|
-
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12105
|
-
};
|
|
12106
|
-
createdAt: Date;
|
|
12107
|
-
updatedAt: Date;
|
|
12108
|
-
}
|
|
11958
|
+
};
|
|
12109
11959
|
namespace Find {
|
|
12110
11960
|
type Params = DefaultPaginationQueryParams & {
|
|
12111
11961
|
_id?: StringId | StringId[];
|
|
@@ -12240,17 +12090,7 @@ export declare namespace Service {
|
|
|
12240
12090
|
overwrite_serial_number?: boolean;
|
|
12241
12091
|
allow_create_v1: boolean;
|
|
12242
12092
|
};
|
|
12243
|
-
workorder?:
|
|
12244
|
-
workorder_teams_follow_client?: boolean;
|
|
12245
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12246
|
-
send_email_at_contract_expiry?: boolean;
|
|
12247
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12248
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12249
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12250
|
-
contract_near_expiry_days?: number;
|
|
12251
|
-
contract_installment_near_due_days?: number;
|
|
12252
|
-
workorder_near_due_days?: number;
|
|
12253
|
-
};
|
|
12093
|
+
workorder?: WorkorderSettings;
|
|
12254
12094
|
notifications?: {
|
|
12255
12095
|
calendar_update: boolean;
|
|
12256
12096
|
transfer_update: boolean;
|
|
@@ -12284,6 +12124,8 @@ export declare namespace Service {
|
|
|
12284
12124
|
rep_permissions?: {
|
|
12285
12125
|
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12286
12126
|
};
|
|
12127
|
+
first_business_day_in_week?: "Sun" | "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat";
|
|
12128
|
+
allow_assigning_non_creator_teams_when_creating_client?: boolean;
|
|
12287
12129
|
}
|
|
12288
12130
|
namespace Update {
|
|
12289
12131
|
type ID = StringId;
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -6321,6 +6321,7 @@ export namespace Service {
|
|
|
6321
6321
|
identifier?: number;
|
|
6322
6322
|
device_id?: string;
|
|
6323
6323
|
device_unique_id?: string;
|
|
6324
|
+
treat_invoice_as_proforma_for_etax?: boolean;
|
|
6324
6325
|
}
|
|
6325
6326
|
export type Data = InvoiceSchema;
|
|
6326
6327
|
export interface CreateBody {
|
|
@@ -6927,6 +6928,7 @@ export namespace Service {
|
|
|
6927
6928
|
field: "_id";
|
|
6928
6929
|
type: "asc" | "desc";
|
|
6929
6930
|
}[];
|
|
6931
|
+
treat_invoice_as_proforma_for_etax?: boolean;
|
|
6930
6932
|
};
|
|
6931
6933
|
export interface Result extends DefaultPaginationResult {
|
|
6932
6934
|
data: InvoiceSchemaWithPopulatedKeys[];
|
|
@@ -7449,6 +7451,7 @@ export namespace Service {
|
|
|
7449
7451
|
}[];
|
|
7450
7452
|
nodeCycles?: string[] | string;
|
|
7451
7453
|
withCycle?: boolean;
|
|
7454
|
+
conversion_status?: "converted" | "not_converted" | "all";
|
|
7452
7455
|
};
|
|
7453
7456
|
export interface Result extends DefaultPaginationResult {
|
|
7454
7457
|
data: ProformaSchemaWithPopulatedKeys[];
|
|
@@ -12496,6 +12499,20 @@ export namespace Service {
|
|
|
12496
12499
|
local_currency?: string;
|
|
12497
12500
|
local_currency_subunit?: string;
|
|
12498
12501
|
currency_factor?: 100 | 1000;
|
|
12502
|
+
print_payment_allowance_period_in_days?: number;
|
|
12503
|
+
}
|
|
12504
|
+
|
|
12505
|
+
export interface WorkorderSettings {
|
|
12506
|
+
workorder_teams_follow_assigned_to?: boolean;
|
|
12507
|
+
workorder_teams_follow_client?: boolean;
|
|
12508
|
+
workorder_request_teams_follow_client?: boolean;
|
|
12509
|
+
send_email_at_contract_expiry?: boolean;
|
|
12510
|
+
send_email_at_contract_near_expiry?: boolean;
|
|
12511
|
+
send_email_at_contract_installment_due?: boolean;
|
|
12512
|
+
send_email_at_contract_installment_near_due?: boolean;
|
|
12513
|
+
contract_near_expiry_days: number;
|
|
12514
|
+
contract_installment_near_due_days: number;
|
|
12515
|
+
workorder_near_due_days?: number;
|
|
12499
12516
|
}
|
|
12500
12517
|
|
|
12501
12518
|
export interface Data {
|
|
@@ -12586,22 +12603,12 @@ export namespace Service {
|
|
|
12586
12603
|
business_apps: {
|
|
12587
12604
|
code: string;
|
|
12588
12605
|
services: {
|
|
12589
|
-
permission:
|
|
12606
|
+
permission: StringId;
|
|
12590
12607
|
teams_shared: "shared" | "unshared";
|
|
12591
12608
|
}[];
|
|
12592
12609
|
}[];
|
|
12593
12610
|
form: { overwrite_serial_number?: boolean; allow_create_v1: boolean };
|
|
12594
|
-
workorder?:
|
|
12595
|
-
workorder_teams_follow_client?: boolean;
|
|
12596
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12597
|
-
send_email_at_contract_expiry?: boolean;
|
|
12598
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12599
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12600
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12601
|
-
contract_near_expiry_days: number;
|
|
12602
|
-
contract_installment_near_due_days: number;
|
|
12603
|
-
workorder_near_due_days?: number;
|
|
12604
|
-
};
|
|
12611
|
+
workorder?: WorkorderSettings;
|
|
12605
12612
|
notifications?: {
|
|
12606
12613
|
calendar_update?: boolean;
|
|
12607
12614
|
transfer_update?: boolean;
|
|
@@ -12633,156 +12640,20 @@ export namespace Service {
|
|
|
12633
12640
|
rep_permissions?: {
|
|
12634
12641
|
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12635
12642
|
};
|
|
12643
|
+
allow_assigning_non_creator_teams_when_creating_client?: boolean;
|
|
12636
12644
|
createdAt: Date;
|
|
12637
12645
|
updatedAt: Date;
|
|
12638
12646
|
}
|
|
12639
12647
|
|
|
12640
|
-
export
|
|
12641
|
-
|
|
12642
|
-
company_namespace: string[];
|
|
12643
|
-
live_location?: { active: boolean; from?: string; to?: string };
|
|
12644
|
-
use_original_image_compression?: boolean;
|
|
12645
|
-
use_client_specific_sales_settings?: boolean;
|
|
12646
|
-
use_client_specific_sales_settings_for_payment?: boolean;
|
|
12647
|
-
use_client_specific_sales_settings_for_client_statement?: boolean;
|
|
12648
|
-
disable_ubl_integration_for_return_invoice?: boolean;
|
|
12649
|
-
sales: SalesSettings;
|
|
12650
|
-
geofencing?: {
|
|
12651
|
-
visit_start: boolean;
|
|
12652
|
-
visit_end: boolean;
|
|
12653
|
-
radius: number;
|
|
12654
|
-
visit_strict: boolean;
|
|
12655
|
-
};
|
|
12656
|
-
mail_list?: {
|
|
12657
|
-
invoice_sales?: {
|
|
12658
|
-
name: string;
|
|
12659
|
-
email: string;
|
|
12660
|
-
filters?: EmailFilter[];
|
|
12661
|
-
}[];
|
|
12662
|
-
mocking?: { name: string; email: string }[];
|
|
12663
|
-
sales_order?: {
|
|
12664
|
-
name: string;
|
|
12665
|
-
email: string;
|
|
12666
|
-
filters?: EmailFilter[];
|
|
12667
|
-
}[];
|
|
12668
|
-
photo?: { name: string; email: string; filters?: EmailFilter[] }[];
|
|
12669
|
-
live_location?: {
|
|
12670
|
-
name: string;
|
|
12671
|
-
email: string;
|
|
12672
|
-
filters?: EmailFilter[];
|
|
12673
|
-
}[];
|
|
12674
|
-
location_off?: {
|
|
12675
|
-
name: string;
|
|
12676
|
-
email: string;
|
|
12677
|
-
filters?: EmailFilter[];
|
|
12678
|
-
}[];
|
|
12679
|
-
location_on?: {
|
|
12680
|
-
name: string;
|
|
12681
|
-
email: string;
|
|
12682
|
-
filters?: EmailFilter[];
|
|
12683
|
-
}[];
|
|
12684
|
-
contract_expiry?: { name: string; email: string }[];
|
|
12685
|
-
contract_near_expiry?: { name: string; email: string }[];
|
|
12686
|
-
contract_installment_due?: { name: string; email: string }[];
|
|
12687
|
-
contract_installment_near_due?: { name: string; email: string }[];
|
|
12688
|
-
};
|
|
12689
|
-
promotions?: {
|
|
12690
|
-
enforcement_mode?:
|
|
12691
|
-
| "all_in_inventory"
|
|
12692
|
-
| "all"
|
|
12693
|
-
| "gift_in_inventory"
|
|
12694
|
-
| "gift"
|
|
12695
|
-
| "custom";
|
|
12696
|
-
apply_hidden_price?: boolean;
|
|
12697
|
-
apply_all_promotions?: boolean;
|
|
12698
|
-
applying_sort?: { [key: string]: -1 | 1 }[];
|
|
12699
|
-
force_cash_only?: boolean;
|
|
12700
|
-
allow_manual_discounts?: boolean;
|
|
12701
|
-
manual_discounts_limit_percentage?: number;
|
|
12702
|
-
manual_discounts_limit_value?: number;
|
|
12703
|
-
promotions_enabled?: boolean;
|
|
12704
|
-
round_discounted_price?: boolean;
|
|
12705
|
-
};
|
|
12706
|
-
teams_shared_collections?: string[];
|
|
12707
|
-
days_of_work?:
|
|
12708
|
-
| "Sunday"
|
|
12709
|
-
| "Monday"
|
|
12710
|
-
| "Tuesday"
|
|
12711
|
-
| "Wednesday"
|
|
12712
|
-
| "Thursday"
|
|
12713
|
-
| "Friday"
|
|
12714
|
-
| "Saturday";
|
|
12715
|
-
signUpMethod?: "email" | "phone";
|
|
12716
|
-
calculate_target_for_absent_days?: boolean;
|
|
12717
|
-
disable_module_custom_validator?: boolean;
|
|
12718
|
-
activate_ubl_integration?: boolean;
|
|
12719
|
-
last_activate_ubl_integration_time?: number;
|
|
12720
|
-
visit?: { manual_product_line_selection: boolean };
|
|
12721
|
-
custom_status?: {
|
|
12722
|
-
use_custom_status_transfer?: boolean;
|
|
12723
|
-
use_system_status_transfer?: boolean;
|
|
12724
|
-
use_custom_status_payment?: boolean;
|
|
12725
|
-
use_system_status_payment?: boolean;
|
|
12726
|
-
use_custom_status_fullinvoice?: boolean;
|
|
12727
|
-
use_system_status_fullinvoice?: boolean;
|
|
12728
|
-
use_custom_status_proforma?: boolean;
|
|
12729
|
-
use_system_status_proforma?: boolean;
|
|
12730
|
-
use_custom_status_workorder?: boolean;
|
|
12731
|
-
use_system_status_workorder?: boolean;
|
|
12732
|
-
};
|
|
12733
|
-
business_apps?: {
|
|
12648
|
+
export type PopulatedDoc = Data & {
|
|
12649
|
+
business_apps: {
|
|
12734
12650
|
code: string;
|
|
12735
12651
|
services: {
|
|
12736
12652
|
permission: StringId | { name: string; _id: StringId };
|
|
12737
12653
|
teams_shared: "shared" | "unshared";
|
|
12738
12654
|
}[];
|
|
12739
12655
|
}[];
|
|
12740
|
-
|
|
12741
|
-
workorder?: {
|
|
12742
|
-
workorder_teams_follow_client?: boolean;
|
|
12743
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12744
|
-
send_email_at_contract_expiry?: boolean;
|
|
12745
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12746
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12747
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12748
|
-
contract_near_expiry_days?: number;
|
|
12749
|
-
contract_installment_near_due_days?: number;
|
|
12750
|
-
workorder_near_due_days?: number;
|
|
12751
|
-
};
|
|
12752
|
-
notifications?: {
|
|
12753
|
-
calendar_update?: boolean;
|
|
12754
|
-
transfer_update?: boolean;
|
|
12755
|
-
cycle_update?: boolean;
|
|
12756
|
-
client_update?: boolean;
|
|
12757
|
-
approval_request_update?: boolean;
|
|
12758
|
-
workorder_update?: boolean;
|
|
12759
|
-
workorder_start?: boolean;
|
|
12760
|
-
workorder_near_due?: boolean;
|
|
12761
|
-
activity_note?: boolean;
|
|
12762
|
-
activity_form?: boolean;
|
|
12763
|
-
activity_photo?: boolean;
|
|
12764
|
-
activity_audit?: boolean;
|
|
12765
|
-
activity_task?: boolean;
|
|
12766
|
-
activity_availability?: boolean;
|
|
12767
|
-
activity_planogram?: boolean;
|
|
12768
|
-
activity_shelfsahre?: boolean;
|
|
12769
|
-
activity_checkout_display?: boolean;
|
|
12770
|
-
activity_secondary_display?: boolean;
|
|
12771
|
-
};
|
|
12772
|
-
asset_part?: { prevent_negative_asset_part_inventory: boolean };
|
|
12773
|
-
default_lang?: "en" | "ar";
|
|
12774
|
-
second_lang?: "en" | "ar";
|
|
12775
|
-
report_value_delimiter?: "|" | "," | " " | "." | "-";
|
|
12776
|
-
rep_settings?: {
|
|
12777
|
-
rep_start_day_specific_time_frame_start: string;
|
|
12778
|
-
rep_start_day_specific_time_frame_end: string;
|
|
12779
|
-
};
|
|
12780
|
-
rep_permissions?: {
|
|
12781
|
-
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12782
|
-
};
|
|
12783
|
-
createdAt: Date;
|
|
12784
|
-
updatedAt: Date;
|
|
12785
|
-
}
|
|
12656
|
+
};
|
|
12786
12657
|
|
|
12787
12658
|
export namespace Find {
|
|
12788
12659
|
export type Params = DefaultPaginationQueryParams & {
|
|
@@ -12894,17 +12765,7 @@ export namespace Service {
|
|
|
12894
12765
|
}[];
|
|
12895
12766
|
}[];
|
|
12896
12767
|
form?: { overwrite_serial_number?: boolean; allow_create_v1: boolean };
|
|
12897
|
-
workorder?:
|
|
12898
|
-
workorder_teams_follow_client?: boolean;
|
|
12899
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12900
|
-
send_email_at_contract_expiry?: boolean;
|
|
12901
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12902
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12903
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12904
|
-
contract_near_expiry_days?: number;
|
|
12905
|
-
contract_installment_near_due_days?: number;
|
|
12906
|
-
workorder_near_due_days?: number;
|
|
12907
|
-
};
|
|
12768
|
+
workorder?: WorkorderSettings;
|
|
12908
12769
|
notifications?: {
|
|
12909
12770
|
calendar_update: boolean;
|
|
12910
12771
|
transfer_update: boolean;
|
|
@@ -12936,6 +12797,15 @@ export namespace Service {
|
|
|
12936
12797
|
rep_permissions?: {
|
|
12937
12798
|
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12938
12799
|
};
|
|
12800
|
+
first_business_day_in_week?:
|
|
12801
|
+
| "Sun"
|
|
12802
|
+
| "Mon"
|
|
12803
|
+
| "Tue"
|
|
12804
|
+
| "Wed"
|
|
12805
|
+
| "Thu"
|
|
12806
|
+
| "Fri"
|
|
12807
|
+
| "Sat";
|
|
12808
|
+
allow_assigning_non_creator_teams_when_creating_client?: boolean;
|
|
12939
12809
|
}
|
|
12940
12810
|
|
|
12941
12811
|
export namespace Update {
|