repzo 1.0.188 → 1.0.190
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 +30 -184
- package/package.json +1 -1
- package/src/types/index.ts +37 -165
package/lib/types/index.d.ts
CHANGED
|
@@ -11773,6 +11773,19 @@ export declare namespace Service {
|
|
|
11773
11773
|
local_currency?: string;
|
|
11774
11774
|
local_currency_subunit?: string;
|
|
11775
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;
|
|
11776
11789
|
}
|
|
11777
11790
|
interface Data {
|
|
11778
11791
|
_id: string;
|
|
@@ -11885,7 +11898,7 @@ export declare namespace Service {
|
|
|
11885
11898
|
business_apps: {
|
|
11886
11899
|
code: string;
|
|
11887
11900
|
services: {
|
|
11888
|
-
permission:
|
|
11901
|
+
permission: StringId;
|
|
11889
11902
|
teams_shared: "shared" | "unshared";
|
|
11890
11903
|
}[];
|
|
11891
11904
|
}[];
|
|
@@ -11893,17 +11906,7 @@ export declare namespace Service {
|
|
|
11893
11906
|
overwrite_serial_number?: boolean;
|
|
11894
11907
|
allow_create_v1: boolean;
|
|
11895
11908
|
};
|
|
11896
|
-
workorder?:
|
|
11897
|
-
workorder_teams_follow_client?: boolean;
|
|
11898
|
-
workorder_request_teams_follow_client?: boolean;
|
|
11899
|
-
send_email_at_contract_expiry?: boolean;
|
|
11900
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
11901
|
-
send_email_at_contract_installment_due?: boolean;
|
|
11902
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
11903
|
-
contract_near_expiry_days: number;
|
|
11904
|
-
contract_installment_near_due_days: number;
|
|
11905
|
-
workorder_near_due_days?: number;
|
|
11906
|
-
};
|
|
11909
|
+
workorder?: WorkorderSettings;
|
|
11907
11910
|
notifications?: {
|
|
11908
11911
|
calendar_update?: boolean;
|
|
11909
11912
|
transfer_update?: boolean;
|
|
@@ -11937,118 +11940,12 @@ export declare namespace Service {
|
|
|
11937
11940
|
rep_permissions?: {
|
|
11938
11941
|
rep_must_start_day_within_specific_time_frame: boolean;
|
|
11939
11942
|
};
|
|
11943
|
+
allow_assigning_non_creator_teams_when_creating_client?: boolean;
|
|
11940
11944
|
createdAt: Date;
|
|
11941
11945
|
updatedAt: Date;
|
|
11942
11946
|
}
|
|
11943
|
-
|
|
11944
|
-
|
|
11945
|
-
company_namespace: string[];
|
|
11946
|
-
live_location?: {
|
|
11947
|
-
active: boolean;
|
|
11948
|
-
from?: string;
|
|
11949
|
-
to?: string;
|
|
11950
|
-
};
|
|
11951
|
-
use_original_image_compression?: boolean;
|
|
11952
|
-
use_client_specific_sales_settings?: boolean;
|
|
11953
|
-
use_client_specific_sales_settings_for_payment?: boolean;
|
|
11954
|
-
use_client_specific_sales_settings_for_client_statement?: boolean;
|
|
11955
|
-
disable_ubl_integration_for_return_invoice?: boolean;
|
|
11956
|
-
sales: SalesSettings;
|
|
11957
|
-
geofencing?: {
|
|
11958
|
-
visit_start: boolean;
|
|
11959
|
-
visit_end: boolean;
|
|
11960
|
-
radius: number;
|
|
11961
|
-
visit_strict: boolean;
|
|
11962
|
-
};
|
|
11963
|
-
mail_list?: {
|
|
11964
|
-
invoice_sales?: {
|
|
11965
|
-
name: string;
|
|
11966
|
-
email: string;
|
|
11967
|
-
filters?: EmailFilter[];
|
|
11968
|
-
}[];
|
|
11969
|
-
mocking?: {
|
|
11970
|
-
name: string;
|
|
11971
|
-
email: string;
|
|
11972
|
-
}[];
|
|
11973
|
-
sales_order?: {
|
|
11974
|
-
name: string;
|
|
11975
|
-
email: string;
|
|
11976
|
-
filters?: EmailFilter[];
|
|
11977
|
-
}[];
|
|
11978
|
-
photo?: {
|
|
11979
|
-
name: string;
|
|
11980
|
-
email: string;
|
|
11981
|
-
filters?: EmailFilter[];
|
|
11982
|
-
}[];
|
|
11983
|
-
live_location?: {
|
|
11984
|
-
name: string;
|
|
11985
|
-
email: string;
|
|
11986
|
-
filters?: EmailFilter[];
|
|
11987
|
-
}[];
|
|
11988
|
-
location_off?: {
|
|
11989
|
-
name: string;
|
|
11990
|
-
email: string;
|
|
11991
|
-
filters?: EmailFilter[];
|
|
11992
|
-
}[];
|
|
11993
|
-
location_on?: {
|
|
11994
|
-
name: string;
|
|
11995
|
-
email: string;
|
|
11996
|
-
filters?: EmailFilter[];
|
|
11997
|
-
}[];
|
|
11998
|
-
contract_expiry?: {
|
|
11999
|
-
name: string;
|
|
12000
|
-
email: string;
|
|
12001
|
-
}[];
|
|
12002
|
-
contract_near_expiry?: {
|
|
12003
|
-
name: string;
|
|
12004
|
-
email: string;
|
|
12005
|
-
}[];
|
|
12006
|
-
contract_installment_due?: {
|
|
12007
|
-
name: string;
|
|
12008
|
-
email: string;
|
|
12009
|
-
}[];
|
|
12010
|
-
contract_installment_near_due?: {
|
|
12011
|
-
name: string;
|
|
12012
|
-
email: string;
|
|
12013
|
-
}[];
|
|
12014
|
-
};
|
|
12015
|
-
promotions?: {
|
|
12016
|
-
enforcement_mode?: "all_in_inventory" | "all" | "gift_in_inventory" | "gift" | "custom";
|
|
12017
|
-
apply_hidden_price?: boolean;
|
|
12018
|
-
apply_all_promotions?: boolean;
|
|
12019
|
-
applying_sort?: {
|
|
12020
|
-
[key: string]: -1 | 1;
|
|
12021
|
-
}[];
|
|
12022
|
-
force_cash_only?: boolean;
|
|
12023
|
-
allow_manual_discounts?: boolean;
|
|
12024
|
-
manual_discounts_limit_percentage?: number;
|
|
12025
|
-
manual_discounts_limit_value?: number;
|
|
12026
|
-
promotions_enabled?: boolean;
|
|
12027
|
-
round_discounted_price?: boolean;
|
|
12028
|
-
};
|
|
12029
|
-
teams_shared_collections?: string[];
|
|
12030
|
-
days_of_work?: "Sunday" | "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday";
|
|
12031
|
-
signUpMethod?: "email" | "phone";
|
|
12032
|
-
calculate_target_for_absent_days?: boolean;
|
|
12033
|
-
disable_module_custom_validator?: boolean;
|
|
12034
|
-
activate_ubl_integration?: boolean;
|
|
12035
|
-
last_activate_ubl_integration_time?: number;
|
|
12036
|
-
visit?: {
|
|
12037
|
-
manual_product_line_selection: boolean;
|
|
12038
|
-
};
|
|
12039
|
-
custom_status?: {
|
|
12040
|
-
use_custom_status_transfer?: boolean;
|
|
12041
|
-
use_system_status_transfer?: boolean;
|
|
12042
|
-
use_custom_status_payment?: boolean;
|
|
12043
|
-
use_system_status_payment?: boolean;
|
|
12044
|
-
use_custom_status_fullinvoice?: boolean;
|
|
12045
|
-
use_system_status_fullinvoice?: boolean;
|
|
12046
|
-
use_custom_status_proforma?: boolean;
|
|
12047
|
-
use_system_status_proforma?: boolean;
|
|
12048
|
-
use_custom_status_workorder?: boolean;
|
|
12049
|
-
use_system_status_workorder?: boolean;
|
|
12050
|
-
};
|
|
12051
|
-
business_apps?: {
|
|
11947
|
+
type PopulatedDoc = Data & {
|
|
11948
|
+
business_apps: {
|
|
12052
11949
|
code: string;
|
|
12053
11950
|
services: {
|
|
12054
11951
|
permission: StringId | {
|
|
@@ -12058,57 +11955,7 @@ export declare namespace Service {
|
|
|
12058
11955
|
teams_shared: "shared" | "unshared";
|
|
12059
11956
|
}[];
|
|
12060
11957
|
}[];
|
|
12061
|
-
|
|
12062
|
-
overwrite_serial_number?: boolean;
|
|
12063
|
-
allow_create_v1: boolean;
|
|
12064
|
-
};
|
|
12065
|
-
workorder?: {
|
|
12066
|
-
workorder_teams_follow_client?: boolean;
|
|
12067
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12068
|
-
send_email_at_contract_expiry?: boolean;
|
|
12069
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12070
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12071
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12072
|
-
contract_near_expiry_days?: number;
|
|
12073
|
-
contract_installment_near_due_days?: number;
|
|
12074
|
-
workorder_near_due_days?: number;
|
|
12075
|
-
};
|
|
12076
|
-
notifications?: {
|
|
12077
|
-
calendar_update?: boolean;
|
|
12078
|
-
transfer_update?: boolean;
|
|
12079
|
-
cycle_update?: boolean;
|
|
12080
|
-
client_update?: boolean;
|
|
12081
|
-
approval_request_update?: boolean;
|
|
12082
|
-
workorder_update?: boolean;
|
|
12083
|
-
workorder_start?: boolean;
|
|
12084
|
-
workorder_near_due?: boolean;
|
|
12085
|
-
activity_note?: boolean;
|
|
12086
|
-
activity_form?: boolean;
|
|
12087
|
-
activity_photo?: boolean;
|
|
12088
|
-
activity_audit?: boolean;
|
|
12089
|
-
activity_task?: boolean;
|
|
12090
|
-
activity_availability?: boolean;
|
|
12091
|
-
activity_planogram?: boolean;
|
|
12092
|
-
activity_shelfsahre?: boolean;
|
|
12093
|
-
activity_checkout_display?: boolean;
|
|
12094
|
-
activity_secondary_display?: boolean;
|
|
12095
|
-
};
|
|
12096
|
-
asset_part?: {
|
|
12097
|
-
prevent_negative_asset_part_inventory: boolean;
|
|
12098
|
-
};
|
|
12099
|
-
default_lang?: "en" | "ar";
|
|
12100
|
-
second_lang?: "en" | "ar";
|
|
12101
|
-
report_value_delimiter?: "|" | "," | " " | "." | "-";
|
|
12102
|
-
rep_settings?: {
|
|
12103
|
-
rep_start_day_specific_time_frame_start: string;
|
|
12104
|
-
rep_start_day_specific_time_frame_end: string;
|
|
12105
|
-
};
|
|
12106
|
-
rep_permissions?: {
|
|
12107
|
-
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12108
|
-
};
|
|
12109
|
-
createdAt: Date;
|
|
12110
|
-
updatedAt: Date;
|
|
12111
|
-
}
|
|
11958
|
+
};
|
|
12112
11959
|
namespace Find {
|
|
12113
11960
|
type Params = DefaultPaginationQueryParams & {
|
|
12114
11961
|
_id?: StringId | StringId[];
|
|
@@ -12243,17 +12090,7 @@ export declare namespace Service {
|
|
|
12243
12090
|
overwrite_serial_number?: boolean;
|
|
12244
12091
|
allow_create_v1: boolean;
|
|
12245
12092
|
};
|
|
12246
|
-
workorder?:
|
|
12247
|
-
workorder_teams_follow_client?: boolean;
|
|
12248
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12249
|
-
send_email_at_contract_expiry?: boolean;
|
|
12250
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12251
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12252
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12253
|
-
contract_near_expiry_days?: number;
|
|
12254
|
-
contract_installment_near_due_days?: number;
|
|
12255
|
-
workorder_near_due_days?: number;
|
|
12256
|
-
};
|
|
12093
|
+
workorder?: WorkorderSettings;
|
|
12257
12094
|
notifications?: {
|
|
12258
12095
|
calendar_update: boolean;
|
|
12259
12096
|
transfer_update: boolean;
|
|
@@ -12287,6 +12124,8 @@ export declare namespace Service {
|
|
|
12287
12124
|
rep_permissions?: {
|
|
12288
12125
|
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12289
12126
|
};
|
|
12127
|
+
first_business_day_in_week?: "Sun" | "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat";
|
|
12128
|
+
allow_assigning_non_creator_teams_when_creating_client?: boolean;
|
|
12290
12129
|
}
|
|
12291
12130
|
namespace Update {
|
|
12292
12131
|
type ID = StringId;
|
|
@@ -16159,6 +15998,7 @@ export declare namespace Service {
|
|
|
16159
15998
|
disabled: boolean;
|
|
16160
15999
|
key: string;
|
|
16161
16000
|
name: string;
|
|
16001
|
+
postion: number;
|
|
16162
16002
|
selectable: boolean;
|
|
16163
16003
|
show: "default" | "hide" | "show";
|
|
16164
16004
|
totals_key?: string;
|
|
@@ -16172,6 +16012,7 @@ export declare namespace Service {
|
|
|
16172
16012
|
key: string;
|
|
16173
16013
|
name: string;
|
|
16174
16014
|
report_types: ReportType[];
|
|
16015
|
+
position?: number;
|
|
16175
16016
|
selectable?: boolean;
|
|
16176
16017
|
show?: "default" | "hide" | "show";
|
|
16177
16018
|
totals_key?: string;
|
|
@@ -16183,6 +16024,7 @@ export declare namespace Service {
|
|
|
16183
16024
|
key: string;
|
|
16184
16025
|
name: string;
|
|
16185
16026
|
report_types: ReportType[];
|
|
16027
|
+
position?: number;
|
|
16186
16028
|
selectable?: boolean;
|
|
16187
16029
|
show?: "default" | "hide" | "show";
|
|
16188
16030
|
totals_key?: string;
|
|
@@ -16228,6 +16070,7 @@ export declare namespace Service {
|
|
|
16228
16070
|
disabled: boolean;
|
|
16229
16071
|
key: string;
|
|
16230
16072
|
name: string;
|
|
16073
|
+
selectable?: boolean;
|
|
16231
16074
|
report_types: ReportType[];
|
|
16232
16075
|
createdAt?: Date;
|
|
16233
16076
|
updatedAt?: Date;
|
|
@@ -16235,11 +16078,13 @@ export declare namespace Service {
|
|
|
16235
16078
|
interface CreateBody {
|
|
16236
16079
|
key: string;
|
|
16237
16080
|
name: string;
|
|
16081
|
+
selectable?: boolean;
|
|
16238
16082
|
report_types: ReportType[];
|
|
16239
16083
|
}
|
|
16240
16084
|
interface UpdateBody {
|
|
16241
16085
|
key?: string;
|
|
16242
16086
|
name?: string;
|
|
16087
|
+
selectable?: boolean;
|
|
16243
16088
|
report_types?: ReportType[];
|
|
16244
16089
|
}
|
|
16245
16090
|
namespace Find {
|
|
@@ -16248,6 +16093,7 @@ export declare namespace Service {
|
|
|
16248
16093
|
name?: string | string[];
|
|
16249
16094
|
disabled?: boolean;
|
|
16250
16095
|
key?: string | string[];
|
|
16096
|
+
selectable?: boolean;
|
|
16251
16097
|
report_types?: ReportType | ReportType[];
|
|
16252
16098
|
from_createdAt?: Date;
|
|
16253
16099
|
to_updatedAt?: Date;
|
|
@@ -16299,7 +16145,7 @@ export declare namespace Service {
|
|
|
16299
16145
|
value: string;
|
|
16300
16146
|
}
|
|
16301
16147
|
type DataType = "string" | "number" | "array" | "boolean";
|
|
16302
|
-
type InputType = "string" | "list" | "checkbox" | "date" | "number" | "
|
|
16148
|
+
type InputType = "string" | "list" | "checkbox" | "date" | "number" | "group_by";
|
|
16303
16149
|
type Operator = "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "in" | "nin" | "between" | "today" | "yesterday" | "last_seven_days" | "last_thirty_days" | "last_month" | "last_three_months" | "last_six_months" | "last_twelve_months";
|
|
16304
16150
|
type DateFormat = "s" | "YYYY-MM-DD" | "YYYY-MM-DD HH:mm:ssZ" | "ISO";
|
|
16305
16151
|
interface Data {
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -12499,6 +12499,20 @@ export namespace Service {
|
|
|
12499
12499
|
local_currency?: string;
|
|
12500
12500
|
local_currency_subunit?: string;
|
|
12501
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;
|
|
12502
12516
|
}
|
|
12503
12517
|
|
|
12504
12518
|
export interface Data {
|
|
@@ -12589,22 +12603,12 @@ export namespace Service {
|
|
|
12589
12603
|
business_apps: {
|
|
12590
12604
|
code: string;
|
|
12591
12605
|
services: {
|
|
12592
|
-
permission:
|
|
12606
|
+
permission: StringId;
|
|
12593
12607
|
teams_shared: "shared" | "unshared";
|
|
12594
12608
|
}[];
|
|
12595
12609
|
}[];
|
|
12596
12610
|
form: { overwrite_serial_number?: boolean; allow_create_v1: boolean };
|
|
12597
|
-
workorder?:
|
|
12598
|
-
workorder_teams_follow_client?: boolean;
|
|
12599
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12600
|
-
send_email_at_contract_expiry?: boolean;
|
|
12601
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12602
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12603
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12604
|
-
contract_near_expiry_days: number;
|
|
12605
|
-
contract_installment_near_due_days: number;
|
|
12606
|
-
workorder_near_due_days?: number;
|
|
12607
|
-
};
|
|
12611
|
+
workorder?: WorkorderSettings;
|
|
12608
12612
|
notifications?: {
|
|
12609
12613
|
calendar_update?: boolean;
|
|
12610
12614
|
transfer_update?: boolean;
|
|
@@ -12636,156 +12640,20 @@ export namespace Service {
|
|
|
12636
12640
|
rep_permissions?: {
|
|
12637
12641
|
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12638
12642
|
};
|
|
12643
|
+
allow_assigning_non_creator_teams_when_creating_client?: boolean;
|
|
12639
12644
|
createdAt: Date;
|
|
12640
12645
|
updatedAt: Date;
|
|
12641
12646
|
}
|
|
12642
12647
|
|
|
12643
|
-
export
|
|
12644
|
-
|
|
12645
|
-
company_namespace: string[];
|
|
12646
|
-
live_location?: { active: boolean; from?: string; to?: string };
|
|
12647
|
-
use_original_image_compression?: boolean;
|
|
12648
|
-
use_client_specific_sales_settings?: boolean;
|
|
12649
|
-
use_client_specific_sales_settings_for_payment?: boolean;
|
|
12650
|
-
use_client_specific_sales_settings_for_client_statement?: boolean;
|
|
12651
|
-
disable_ubl_integration_for_return_invoice?: boolean;
|
|
12652
|
-
sales: SalesSettings;
|
|
12653
|
-
geofencing?: {
|
|
12654
|
-
visit_start: boolean;
|
|
12655
|
-
visit_end: boolean;
|
|
12656
|
-
radius: number;
|
|
12657
|
-
visit_strict: boolean;
|
|
12658
|
-
};
|
|
12659
|
-
mail_list?: {
|
|
12660
|
-
invoice_sales?: {
|
|
12661
|
-
name: string;
|
|
12662
|
-
email: string;
|
|
12663
|
-
filters?: EmailFilter[];
|
|
12664
|
-
}[];
|
|
12665
|
-
mocking?: { name: string; email: string }[];
|
|
12666
|
-
sales_order?: {
|
|
12667
|
-
name: string;
|
|
12668
|
-
email: string;
|
|
12669
|
-
filters?: EmailFilter[];
|
|
12670
|
-
}[];
|
|
12671
|
-
photo?: { name: string; email: string; filters?: EmailFilter[] }[];
|
|
12672
|
-
live_location?: {
|
|
12673
|
-
name: string;
|
|
12674
|
-
email: string;
|
|
12675
|
-
filters?: EmailFilter[];
|
|
12676
|
-
}[];
|
|
12677
|
-
location_off?: {
|
|
12678
|
-
name: string;
|
|
12679
|
-
email: string;
|
|
12680
|
-
filters?: EmailFilter[];
|
|
12681
|
-
}[];
|
|
12682
|
-
location_on?: {
|
|
12683
|
-
name: string;
|
|
12684
|
-
email: string;
|
|
12685
|
-
filters?: EmailFilter[];
|
|
12686
|
-
}[];
|
|
12687
|
-
contract_expiry?: { name: string; email: string }[];
|
|
12688
|
-
contract_near_expiry?: { name: string; email: string }[];
|
|
12689
|
-
contract_installment_due?: { name: string; email: string }[];
|
|
12690
|
-
contract_installment_near_due?: { name: string; email: string }[];
|
|
12691
|
-
};
|
|
12692
|
-
promotions?: {
|
|
12693
|
-
enforcement_mode?:
|
|
12694
|
-
| "all_in_inventory"
|
|
12695
|
-
| "all"
|
|
12696
|
-
| "gift_in_inventory"
|
|
12697
|
-
| "gift"
|
|
12698
|
-
| "custom";
|
|
12699
|
-
apply_hidden_price?: boolean;
|
|
12700
|
-
apply_all_promotions?: boolean;
|
|
12701
|
-
applying_sort?: { [key: string]: -1 | 1 }[];
|
|
12702
|
-
force_cash_only?: boolean;
|
|
12703
|
-
allow_manual_discounts?: boolean;
|
|
12704
|
-
manual_discounts_limit_percentage?: number;
|
|
12705
|
-
manual_discounts_limit_value?: number;
|
|
12706
|
-
promotions_enabled?: boolean;
|
|
12707
|
-
round_discounted_price?: boolean;
|
|
12708
|
-
};
|
|
12709
|
-
teams_shared_collections?: string[];
|
|
12710
|
-
days_of_work?:
|
|
12711
|
-
| "Sunday"
|
|
12712
|
-
| "Monday"
|
|
12713
|
-
| "Tuesday"
|
|
12714
|
-
| "Wednesday"
|
|
12715
|
-
| "Thursday"
|
|
12716
|
-
| "Friday"
|
|
12717
|
-
| "Saturday";
|
|
12718
|
-
signUpMethod?: "email" | "phone";
|
|
12719
|
-
calculate_target_for_absent_days?: boolean;
|
|
12720
|
-
disable_module_custom_validator?: boolean;
|
|
12721
|
-
activate_ubl_integration?: boolean;
|
|
12722
|
-
last_activate_ubl_integration_time?: number;
|
|
12723
|
-
visit?: { manual_product_line_selection: boolean };
|
|
12724
|
-
custom_status?: {
|
|
12725
|
-
use_custom_status_transfer?: boolean;
|
|
12726
|
-
use_system_status_transfer?: boolean;
|
|
12727
|
-
use_custom_status_payment?: boolean;
|
|
12728
|
-
use_system_status_payment?: boolean;
|
|
12729
|
-
use_custom_status_fullinvoice?: boolean;
|
|
12730
|
-
use_system_status_fullinvoice?: boolean;
|
|
12731
|
-
use_custom_status_proforma?: boolean;
|
|
12732
|
-
use_system_status_proforma?: boolean;
|
|
12733
|
-
use_custom_status_workorder?: boolean;
|
|
12734
|
-
use_system_status_workorder?: boolean;
|
|
12735
|
-
};
|
|
12736
|
-
business_apps?: {
|
|
12648
|
+
export type PopulatedDoc = Data & {
|
|
12649
|
+
business_apps: {
|
|
12737
12650
|
code: string;
|
|
12738
12651
|
services: {
|
|
12739
12652
|
permission: StringId | { name: string; _id: StringId };
|
|
12740
12653
|
teams_shared: "shared" | "unshared";
|
|
12741
12654
|
}[];
|
|
12742
12655
|
}[];
|
|
12743
|
-
|
|
12744
|
-
workorder?: {
|
|
12745
|
-
workorder_teams_follow_client?: boolean;
|
|
12746
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12747
|
-
send_email_at_contract_expiry?: boolean;
|
|
12748
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12749
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12750
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12751
|
-
contract_near_expiry_days?: number;
|
|
12752
|
-
contract_installment_near_due_days?: number;
|
|
12753
|
-
workorder_near_due_days?: number;
|
|
12754
|
-
};
|
|
12755
|
-
notifications?: {
|
|
12756
|
-
calendar_update?: boolean;
|
|
12757
|
-
transfer_update?: boolean;
|
|
12758
|
-
cycle_update?: boolean;
|
|
12759
|
-
client_update?: boolean;
|
|
12760
|
-
approval_request_update?: boolean;
|
|
12761
|
-
workorder_update?: boolean;
|
|
12762
|
-
workorder_start?: boolean;
|
|
12763
|
-
workorder_near_due?: boolean;
|
|
12764
|
-
activity_note?: boolean;
|
|
12765
|
-
activity_form?: boolean;
|
|
12766
|
-
activity_photo?: boolean;
|
|
12767
|
-
activity_audit?: boolean;
|
|
12768
|
-
activity_task?: boolean;
|
|
12769
|
-
activity_availability?: boolean;
|
|
12770
|
-
activity_planogram?: boolean;
|
|
12771
|
-
activity_shelfsahre?: boolean;
|
|
12772
|
-
activity_checkout_display?: boolean;
|
|
12773
|
-
activity_secondary_display?: boolean;
|
|
12774
|
-
};
|
|
12775
|
-
asset_part?: { prevent_negative_asset_part_inventory: boolean };
|
|
12776
|
-
default_lang?: "en" | "ar";
|
|
12777
|
-
second_lang?: "en" | "ar";
|
|
12778
|
-
report_value_delimiter?: "|" | "," | " " | "." | "-";
|
|
12779
|
-
rep_settings?: {
|
|
12780
|
-
rep_start_day_specific_time_frame_start: string;
|
|
12781
|
-
rep_start_day_specific_time_frame_end: string;
|
|
12782
|
-
};
|
|
12783
|
-
rep_permissions?: {
|
|
12784
|
-
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12785
|
-
};
|
|
12786
|
-
createdAt: Date;
|
|
12787
|
-
updatedAt: Date;
|
|
12788
|
-
}
|
|
12656
|
+
};
|
|
12789
12657
|
|
|
12790
12658
|
export namespace Find {
|
|
12791
12659
|
export type Params = DefaultPaginationQueryParams & {
|
|
@@ -12897,17 +12765,7 @@ export namespace Service {
|
|
|
12897
12765
|
}[];
|
|
12898
12766
|
}[];
|
|
12899
12767
|
form?: { overwrite_serial_number?: boolean; allow_create_v1: boolean };
|
|
12900
|
-
workorder?:
|
|
12901
|
-
workorder_teams_follow_client?: boolean;
|
|
12902
|
-
workorder_request_teams_follow_client?: boolean;
|
|
12903
|
-
send_email_at_contract_expiry?: boolean;
|
|
12904
|
-
send_email_at_contract_near_expiry?: boolean;
|
|
12905
|
-
send_email_at_contract_installment_due?: boolean;
|
|
12906
|
-
send_email_at_contract_installment_near_due?: boolean;
|
|
12907
|
-
contract_near_expiry_days?: number;
|
|
12908
|
-
contract_installment_near_due_days?: number;
|
|
12909
|
-
workorder_near_due_days?: number;
|
|
12910
|
-
};
|
|
12768
|
+
workorder?: WorkorderSettings;
|
|
12911
12769
|
notifications?: {
|
|
12912
12770
|
calendar_update: boolean;
|
|
12913
12771
|
transfer_update: boolean;
|
|
@@ -12939,6 +12797,15 @@ export namespace Service {
|
|
|
12939
12797
|
rep_permissions?: {
|
|
12940
12798
|
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12941
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;
|
|
12942
12809
|
}
|
|
12943
12810
|
|
|
12944
12811
|
export namespace Update {
|
|
@@ -18242,6 +18109,7 @@ export namespace Service {
|
|
|
18242
18109
|
disabled: boolean;
|
|
18243
18110
|
key: string;
|
|
18244
18111
|
name: string;
|
|
18112
|
+
postion: number;
|
|
18245
18113
|
selectable: boolean;
|
|
18246
18114
|
show: "default" | "hide" | "show";
|
|
18247
18115
|
totals_key?: string;
|
|
@@ -18256,6 +18124,7 @@ export namespace Service {
|
|
|
18256
18124
|
key: string;
|
|
18257
18125
|
name: string;
|
|
18258
18126
|
report_types: ReportType[];
|
|
18127
|
+
position?: number;
|
|
18259
18128
|
selectable?: boolean;
|
|
18260
18129
|
show?: "default" | "hide" | "show";
|
|
18261
18130
|
totals_key?: string;
|
|
@@ -18268,6 +18137,7 @@ export namespace Service {
|
|
|
18268
18137
|
key: string;
|
|
18269
18138
|
name: string;
|
|
18270
18139
|
report_types: ReportType[];
|
|
18140
|
+
position?: number;
|
|
18271
18141
|
selectable?: boolean;
|
|
18272
18142
|
show?: "default" | "hide" | "show";
|
|
18273
18143
|
totals_key?: string;
|
|
@@ -18320,6 +18190,7 @@ export namespace Service {
|
|
|
18320
18190
|
disabled: boolean;
|
|
18321
18191
|
key: string;
|
|
18322
18192
|
name: string;
|
|
18193
|
+
selectable?: boolean;
|
|
18323
18194
|
report_types: ReportType[];
|
|
18324
18195
|
createdAt?: Date;
|
|
18325
18196
|
updatedAt?: Date;
|
|
@@ -18328,12 +18199,14 @@ export namespace Service {
|
|
|
18328
18199
|
export interface CreateBody {
|
|
18329
18200
|
key: string;
|
|
18330
18201
|
name: string;
|
|
18202
|
+
selectable?: boolean;
|
|
18331
18203
|
report_types: ReportType[];
|
|
18332
18204
|
}
|
|
18333
18205
|
|
|
18334
18206
|
export interface UpdateBody {
|
|
18335
18207
|
key?: string;
|
|
18336
18208
|
name?: string;
|
|
18209
|
+
selectable?: boolean;
|
|
18337
18210
|
report_types?: ReportType[];
|
|
18338
18211
|
}
|
|
18339
18212
|
|
|
@@ -18343,6 +18216,7 @@ export namespace Service {
|
|
|
18343
18216
|
name?: string | string[];
|
|
18344
18217
|
disabled?: boolean;
|
|
18345
18218
|
key?: string | string[];
|
|
18219
|
+
selectable?: boolean;
|
|
18346
18220
|
report_types?: ReportType | ReportType[];
|
|
18347
18221
|
from_createdAt?: Date;
|
|
18348
18222
|
to_updatedAt?: Date;
|
|
@@ -18431,8 +18305,6 @@ export namespace Service {
|
|
|
18431
18305
|
| "checkbox"
|
|
18432
18306
|
| "date"
|
|
18433
18307
|
| "number"
|
|
18434
|
-
| "date_range"
|
|
18435
|
-
| "number_range"
|
|
18436
18308
|
| "group_by";
|
|
18437
18309
|
|
|
18438
18310
|
export type Operator =
|