repzo 1.0.153 → 1.0.155
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 +1 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +38 -0
- package/lib/types/index.d.ts +512 -222
- package/lib/types/index.js +2 -1
- package/package.json +1 -1
- package/src/types/index.ts +1225 -247
package/lib/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EndPoints } from "../index";
|
|
1
2
|
export interface Params {
|
|
2
3
|
[key: string]: any;
|
|
3
4
|
}
|
|
@@ -1973,7 +1974,7 @@ export declare namespace Service {
|
|
|
1973
1974
|
calculation_error?: string | any[];
|
|
1974
1975
|
company_namespace?: string[];
|
|
1975
1976
|
}
|
|
1976
|
-
|
|
1977
|
+
interface Division {
|
|
1977
1978
|
fields: Field[];
|
|
1978
1979
|
}
|
|
1979
1980
|
interface Result {
|
|
@@ -1986,7 +1987,7 @@ export declare namespace Service {
|
|
|
1986
1987
|
source: "product" | "variant" | "product-category" | "product-sub-category" | "product-brand" | "product-group";
|
|
1987
1988
|
results: Result[];
|
|
1988
1989
|
}
|
|
1989
|
-
|
|
1990
|
+
interface ActivityStorecheckSchema {
|
|
1990
1991
|
_id: string;
|
|
1991
1992
|
company_namespace: string[];
|
|
1992
1993
|
client: string;
|
|
@@ -2023,7 +2024,7 @@ export declare namespace Service {
|
|
|
2023
2024
|
createdAt: string;
|
|
2024
2025
|
updatedAt: string;
|
|
2025
2026
|
}
|
|
2026
|
-
|
|
2027
|
+
interface CreateBody {
|
|
2027
2028
|
company_namespace: string[];
|
|
2028
2029
|
client: string;
|
|
2029
2030
|
client_name: string;
|
|
@@ -2041,7 +2042,7 @@ export declare namespace Service {
|
|
|
2041
2042
|
tags?: string[];
|
|
2042
2043
|
entries: Entry[];
|
|
2043
2044
|
}
|
|
2044
|
-
|
|
2045
|
+
interface UpdateBody {
|
|
2045
2046
|
_id?: string;
|
|
2046
2047
|
company_namespace?: string[];
|
|
2047
2048
|
client?: string;
|
|
@@ -2077,7 +2078,7 @@ export declare namespace Service {
|
|
|
2077
2078
|
job_duration?: number;
|
|
2078
2079
|
}
|
|
2079
2080
|
type PopulatedKeys = "teams" | "tags" | "client" | "user" | "route" | "visit" | "template_id";
|
|
2080
|
-
|
|
2081
|
+
type ActivityStoreCheckWithPopulatedKeysSchema = ActivityStorecheckSchema & {
|
|
2081
2082
|
teams_populated: Team.TeamSchema[] | string[];
|
|
2082
2083
|
tags_populated: Tag.TagSchema[] | string[];
|
|
2083
2084
|
client_populated: Client.ClientSchema | string;
|
|
@@ -2086,7 +2087,7 @@ export declare namespace Service {
|
|
|
2086
2087
|
visit_populated: Visit.VisitSchema | string;
|
|
2087
2088
|
template_id_populated: StorecheckTemplate.StorecheckTemplateSchema | string;
|
|
2088
2089
|
};
|
|
2089
|
-
|
|
2090
|
+
namespace Find {
|
|
2090
2091
|
type Params = DefaultPaginationQueryParams & {
|
|
2091
2092
|
_id?: string[] | string;
|
|
2092
2093
|
search?: string;
|
|
@@ -2115,22 +2116,21 @@ export declare namespace Service {
|
|
|
2115
2116
|
data: ActivityStoreCheckWithPopulatedKeysSchema[];
|
|
2116
2117
|
}
|
|
2117
2118
|
}
|
|
2118
|
-
|
|
2119
|
+
namespace Get {
|
|
2119
2120
|
type ID = string;
|
|
2120
2121
|
interface Params {
|
|
2121
2122
|
}
|
|
2122
2123
|
type Result = ActivityStorecheckSchema;
|
|
2123
2124
|
}
|
|
2124
|
-
|
|
2125
|
+
namespace Create {
|
|
2125
2126
|
type Body = CreateBody;
|
|
2126
2127
|
type Result = ActivityStorecheckSchema;
|
|
2127
2128
|
}
|
|
2128
|
-
|
|
2129
|
+
namespace Update {
|
|
2129
2130
|
type ID = string;
|
|
2130
2131
|
type Body = UpdateBody;
|
|
2131
2132
|
type Result = ActivityStorecheckSchema;
|
|
2132
2133
|
}
|
|
2133
|
-
export {};
|
|
2134
2134
|
}
|
|
2135
2135
|
namespace Msl {
|
|
2136
2136
|
interface MslSchema {
|
|
@@ -2340,12 +2340,13 @@ export declare namespace Service {
|
|
|
2340
2340
|
}
|
|
2341
2341
|
namespace Rep {
|
|
2342
2342
|
interface RepPermissions {
|
|
2343
|
+
rep_can_print_payment_after_allowance_period?: boolean;
|
|
2343
2344
|
rep_can_add_client: boolean;
|
|
2344
2345
|
rep_can_edit_client: boolean;
|
|
2345
2346
|
rep_can_add_calendar: boolean;
|
|
2346
2347
|
rep_can_edit_calendar: boolean;
|
|
2347
|
-
rep_can_skip_photo_tag: boolean;
|
|
2348
2348
|
rep_can_edit_others_calendar: boolean;
|
|
2349
|
+
rep_can_skip_photo_tag: boolean;
|
|
2349
2350
|
rep_can_edit_product_price?: boolean;
|
|
2350
2351
|
rep_must_add_client_with_location?: boolean;
|
|
2351
2352
|
rep_can_access_shared_history?: boolean;
|
|
@@ -2362,9 +2363,6 @@ export declare namespace Service {
|
|
|
2362
2363
|
rep_can_create_partial_return_invoice?: boolean;
|
|
2363
2364
|
rep_can_sell_zero_product_price?: boolean;
|
|
2364
2365
|
rep_can_create_sales_order_out_of_visit?: boolean;
|
|
2365
|
-
rep_can_create_cash_invoice?: boolean;
|
|
2366
|
-
rep_can_sell_above_product_price?: boolean;
|
|
2367
|
-
rep_can_sell_below_product_price?: boolean;
|
|
2368
2366
|
rep_can_create_return_out_of_visit?: boolean;
|
|
2369
2367
|
rep_can_create_partial_return_out_of_visit?: boolean;
|
|
2370
2368
|
rep_can_skip_return_reason?: boolean;
|
|
@@ -2372,8 +2370,10 @@ export declare namespace Service {
|
|
|
2372
2370
|
rep_can_create_free_payments?: boolean;
|
|
2373
2371
|
rep_can_partially_pay_invoice?: boolean;
|
|
2374
2372
|
auto_close_visit_when_out_of_geo_fence?: boolean;
|
|
2375
|
-
end_visit_when_out_of_geofence?: boolean;
|
|
2376
2373
|
end_visit_when_low_accuracy?: boolean;
|
|
2374
|
+
rep_can_create_cash_invoice?: boolean;
|
|
2375
|
+
rep_can_sell_above_product_price?: boolean;
|
|
2376
|
+
rep_can_sell_below_product_price?: boolean;
|
|
2377
2377
|
rep_can_create_workorder?: boolean;
|
|
2378
2378
|
rep_can_create_asset?: boolean;
|
|
2379
2379
|
rep_can_skip_promotions?: boolean;
|
|
@@ -2383,32 +2383,42 @@ export declare namespace Service {
|
|
|
2383
2383
|
rep_can_end_visit_without_submitting_item_status?: boolean;
|
|
2384
2384
|
rep_can_submit_multiple_item_status_products?: boolean;
|
|
2385
2385
|
rep_can_edit_return_product_price?: boolean;
|
|
2386
|
+
rep_can_overwrite_partial_return_invoice_price?: boolean;
|
|
2386
2387
|
rep_can_skip_cart_calculation_until_checkout?: boolean;
|
|
2387
2388
|
rep_can_start_day_without_gps_signal?: boolean;
|
|
2389
|
+
rep_can_start_day_with_outstanding_settlement_balance?: boolean;
|
|
2388
2390
|
rep_can_create_add_client_approval_request?: boolean;
|
|
2389
|
-
rep_can_create_edit_client_details_approval_request
|
|
2390
|
-
rep_can_create_edit_client_assigned_to_approval_request
|
|
2391
|
-
rep_can_create_edit_client_location_approval_request
|
|
2392
|
-
rep_can_create_delete_client_approval_request
|
|
2393
|
-
rep_can_create_skip_job_at_visit_end_approval_request
|
|
2394
|
-
rep_can_create_skip_geofence_at_visit_end_approval_request
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
rep_can_visit_outside_route
|
|
2400
|
-
rep_can_edit_retail_execution_entry
|
|
2401
|
-
rep_can_edit_form_entry
|
|
2402
|
-
rep_can_skip_visit_from_route_sequence
|
|
2403
|
-
rep_can_create_return_sales_order
|
|
2391
|
+
rep_can_create_edit_client_details_approval_request?: boolean;
|
|
2392
|
+
rep_can_create_edit_client_assigned_to_approval_request?: boolean;
|
|
2393
|
+
rep_can_create_edit_client_location_approval_request?: boolean;
|
|
2394
|
+
rep_can_create_delete_client_approval_request?: boolean;
|
|
2395
|
+
rep_can_create_skip_job_at_visit_end_approval_request?: boolean;
|
|
2396
|
+
rep_can_create_skip_geofence_at_visit_end_approval_request?: boolean;
|
|
2397
|
+
rep_can_view_client_credit_limit?: boolean;
|
|
2398
|
+
rep_can_create_edit_client_credit_limit_approval_request?: boolean;
|
|
2399
|
+
rep_can_assign_workorder?: boolean;
|
|
2400
|
+
rep_can_create_credit_invoice_for_cash_client?: boolean;
|
|
2401
|
+
rep_can_visit_outside_route?: boolean;
|
|
2402
|
+
rep_can_edit_retail_execution_entry?: boolean;
|
|
2403
|
+
rep_can_edit_form_entry?: boolean;
|
|
2404
|
+
rep_can_skip_visit_from_route_sequence?: boolean;
|
|
2405
|
+
rep_can_create_return_sales_order?: boolean;
|
|
2404
2406
|
rep_can_edit_sales_order_custom_status?: boolean;
|
|
2405
2407
|
rep_can_edit_invoice_custom_status?: boolean;
|
|
2406
|
-
rep_can_start_day_with_outstanding_settlement_balance?: boolean;
|
|
2407
2408
|
rep_to_create_invoice_variant_batch_from_assigned_warehouse?: boolean;
|
|
2408
2409
|
rep_to_create_sales_order_variant_batch_assigned_main_warehouse?: boolean;
|
|
2409
2410
|
rep_can_create_pull_from_client_assigned_to_approval_request?: boolean;
|
|
2410
|
-
|
|
2411
|
-
|
|
2411
|
+
rep_can_create_payment?: boolean;
|
|
2412
|
+
rep_can_print_offline_invoice?: boolean;
|
|
2413
|
+
rep_can_print_offline_sales_order?: boolean;
|
|
2414
|
+
rep_can_skip_exp_date_in_audit_stock?: boolean;
|
|
2415
|
+
rep_must_start_day_within_specific_time_frame: boolean;
|
|
2416
|
+
rep_can_skip_assigned_client_filter_on_workorder_assigned_to?: boolean;
|
|
2417
|
+
rep_can_assign_client_to_other_reps?: boolean;
|
|
2418
|
+
rep_must_enter_sales_order_external_serial_number?: boolean;
|
|
2419
|
+
rep_must_enter_invoice_external_serial_number?: boolean;
|
|
2420
|
+
rep_can_create_negative_invoices?: boolean;
|
|
2421
|
+
rep_must_end_day_after_specific_time: boolean;
|
|
2412
2422
|
}
|
|
2413
2423
|
interface TargetResults {
|
|
2414
2424
|
totalPoints: number;
|
|
@@ -2488,6 +2498,7 @@ export declare namespace Service {
|
|
|
2488
2498
|
updatedAt: string;
|
|
2489
2499
|
__v: number;
|
|
2490
2500
|
}
|
|
2501
|
+
export type Data = RepSchema;
|
|
2491
2502
|
export interface RepBody {
|
|
2492
2503
|
username?: string;
|
|
2493
2504
|
name?: string;
|
|
@@ -2633,8 +2644,19 @@ export declare namespace Service {
|
|
|
2633
2644
|
"permissions.rep_to_create_invoice_variant_batch_from_assigned_warehouse"?: boolean;
|
|
2634
2645
|
"permissions.rep_to_create_sales_order_variant_batch_assigned_main_warehouse"?: boolean;
|
|
2635
2646
|
"permissions.rep_can_create_pull_from_client_assigned_to_approval_request"?: boolean;
|
|
2647
|
+
"permissions.rep_can_print_payment_after_allowance_period"?: boolean;
|
|
2648
|
+
"permissions.rep_can_overwrite_partial_return_invoice_price"?: boolean;
|
|
2649
|
+
"permissions.rep_can_create_payment"?: boolean;
|
|
2650
|
+
"permissions.rep_can_print_offline_invoice"?: boolean;
|
|
2651
|
+
"permissions.rep_can_print_offline_sales_order"?: boolean;
|
|
2652
|
+
"permissions.rep_can_skip_exp_date_in_audit_stock"?: boolean;
|
|
2653
|
+
"permissions.rep_must_start_day_within_specific_time_frame"?: boolean;
|
|
2654
|
+
"permissions.rep_can_skip_assigned_client_filter_on_workorder_assigned_to"?: boolean;
|
|
2655
|
+
"permissions.rep_can_assign_client_to_other_reps"?: boolean;
|
|
2656
|
+
"permissions.rep_must_enter_sales_order_external_serial_number"?: boolean;
|
|
2657
|
+
"permissions.rep_must_enter_invoice_external_serial_number"?: boolean;
|
|
2636
2658
|
"permissions.rep_must_end_day_after_specific_time"?: boolean;
|
|
2637
|
-
"permissions.
|
|
2659
|
+
"permissions.rep_can_create_negative_invoices"?: boolean;
|
|
2638
2660
|
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
2639
2661
|
"settings.allowable_accuracy"?: number;
|
|
2640
2662
|
"settings.is_item_status_per_visit_limited"?: boolean;
|
|
@@ -2648,6 +2670,11 @@ export declare namespace Service {
|
|
|
2648
2670
|
"settings.watermark_time"?: boolean;
|
|
2649
2671
|
"settings.watermark_date"?: boolean;
|
|
2650
2672
|
"settings.watermark_coordinates"?: boolean;
|
|
2673
|
+
"settings.watermark_font_size"?: number;
|
|
2674
|
+
"settings.disable_auto_timezone_enforcement"?: boolean;
|
|
2675
|
+
"settings.disable_auto_time_date_enforcement"?: boolean;
|
|
2676
|
+
"settings.start_day_specific_time_frame_start"?: string;
|
|
2677
|
+
"settings.start_day_specific_time_frame_end"?: string;
|
|
2651
2678
|
is_test?: boolean;
|
|
2652
2679
|
form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
|
|
2653
2680
|
assigned_forms_v2?: string | string[];
|
|
@@ -4554,7 +4581,7 @@ export declare namespace Service {
|
|
|
4554
4581
|
}
|
|
4555
4582
|
}
|
|
4556
4583
|
namespace ActivityFeedbackV2 {
|
|
4557
|
-
|
|
4584
|
+
interface ActivityFeedbackV2Schema {
|
|
4558
4585
|
_id: string;
|
|
4559
4586
|
route?: string;
|
|
4560
4587
|
visit_id: string;
|
|
@@ -4565,28 +4592,28 @@ export declare namespace Service {
|
|
|
4565
4592
|
createdAt: Date;
|
|
4566
4593
|
updatedAt: Date;
|
|
4567
4594
|
}
|
|
4568
|
-
|
|
4595
|
+
interface CreateBody {
|
|
4569
4596
|
route?: string;
|
|
4570
4597
|
visit_id: string;
|
|
4571
4598
|
visit_UUID: string;
|
|
4572
4599
|
feed_back_option: string;
|
|
4573
4600
|
teams?: string[];
|
|
4574
4601
|
}
|
|
4575
|
-
|
|
4602
|
+
interface UpdateBody {
|
|
4576
4603
|
route?: string;
|
|
4577
4604
|
visit_id?: string;
|
|
4578
4605
|
visit_UUID?: string;
|
|
4579
4606
|
teams?: string[];
|
|
4580
4607
|
feed_back_option?: string;
|
|
4581
4608
|
}
|
|
4582
|
-
|
|
4609
|
+
type PopulatedKeys = "teams" | "route" | "visit_id" | "feed_back_option";
|
|
4583
4610
|
type ActivityFeedbackV2SchemaWithPopulatedKeys = ActivityFeedbackV2Schema & {
|
|
4584
4611
|
teams_populated?: string[] | Team.TeamSchema[];
|
|
4585
4612
|
route_populated?: string | Route.RouteSchema;
|
|
4586
4613
|
visit_id_populated?: string | Visit.VisitSchema;
|
|
4587
4614
|
feed_back_option_populated?: string | FeedbackOption.FeedbackOptionSchema;
|
|
4588
4615
|
};
|
|
4589
|
-
|
|
4616
|
+
namespace Find {
|
|
4590
4617
|
type Params = DefaultPaginationQueryParams & {
|
|
4591
4618
|
route?: string;
|
|
4592
4619
|
teams?: string[];
|
|
@@ -4608,22 +4635,21 @@ export declare namespace Service {
|
|
|
4608
4635
|
page_total: number;
|
|
4609
4636
|
}
|
|
4610
4637
|
}
|
|
4611
|
-
|
|
4638
|
+
namespace Create {
|
|
4612
4639
|
type Body = CreateBody;
|
|
4613
4640
|
type Result = ActivityFeedbackV2Schema;
|
|
4614
4641
|
}
|
|
4615
|
-
|
|
4642
|
+
namespace Get {
|
|
4616
4643
|
type ID = string;
|
|
4617
4644
|
interface Params {
|
|
4618
4645
|
}
|
|
4619
4646
|
type Result = ActivityFeedbackV2SchemaWithPopulatedKeys;
|
|
4620
4647
|
}
|
|
4621
|
-
|
|
4648
|
+
namespace Update {
|
|
4622
4649
|
type ID = string;
|
|
4623
4650
|
type Body = UpdateBody;
|
|
4624
4651
|
type Result = ActivityFeedbackV2Schema;
|
|
4625
4652
|
}
|
|
4626
|
-
export {};
|
|
4627
4653
|
}
|
|
4628
4654
|
namespace FeedbackOption {
|
|
4629
4655
|
interface FeedbackOptionSchema {
|
|
@@ -7512,6 +7538,7 @@ export declare namespace Service {
|
|
|
7512
7538
|
createdAt: Date;
|
|
7513
7539
|
updatedAt: Date;
|
|
7514
7540
|
}
|
|
7541
|
+
export type Data = DaySchema;
|
|
7515
7542
|
export interface CreateBody {
|
|
7516
7543
|
startTime: string[];
|
|
7517
7544
|
endTime: string[];
|
|
@@ -13797,7 +13824,7 @@ export declare namespace Service {
|
|
|
13797
13824
|
inventories: Inventory[];
|
|
13798
13825
|
note?: string;
|
|
13799
13826
|
}
|
|
13800
|
-
|
|
13827
|
+
interface Data {
|
|
13801
13828
|
_id: string;
|
|
13802
13829
|
geo_tag: GeoTag;
|
|
13803
13830
|
time: number;
|
|
@@ -13834,7 +13861,6 @@ export declare namespace Service {
|
|
|
13834
13861
|
createdAt: string;
|
|
13835
13862
|
updatedAt: string;
|
|
13836
13863
|
}
|
|
13837
|
-
export {};
|
|
13838
13864
|
}
|
|
13839
13865
|
namespace ActivityAvailability {
|
|
13840
13866
|
interface Data {
|
|
@@ -13875,6 +13901,8 @@ export declare namespace Service {
|
|
|
13875
13901
|
product_id: string;
|
|
13876
13902
|
available: boolean;
|
|
13877
13903
|
}[];
|
|
13904
|
+
photos?: string[];
|
|
13905
|
+
media?: StringId[];
|
|
13878
13906
|
createdAt: string;
|
|
13879
13907
|
updatedAt: string;
|
|
13880
13908
|
}
|
|
@@ -14006,7 +14034,7 @@ export declare namespace Service {
|
|
|
14006
14034
|
}
|
|
14007
14035
|
}
|
|
14008
14036
|
namespace FormV2 {
|
|
14009
|
-
interface Visibility {
|
|
14037
|
+
export interface Visibility {
|
|
14010
14038
|
operator: "and" | "or";
|
|
14011
14039
|
conditions: {
|
|
14012
14040
|
division_id: string;
|
|
@@ -14193,7 +14221,7 @@ export declare namespace Service {
|
|
|
14193
14221
|
is_completed?: boolean;
|
|
14194
14222
|
fields: FieldResult[];
|
|
14195
14223
|
}
|
|
14196
|
-
|
|
14224
|
+
interface Data {
|
|
14197
14225
|
_id: string;
|
|
14198
14226
|
creator: AdminOrRepOrTenantOrClient;
|
|
14199
14227
|
editor?: AdminOrRepOrTenantOrClient;
|
|
@@ -14233,7 +14261,6 @@ export declare namespace Service {
|
|
|
14233
14261
|
createdAt: Date;
|
|
14234
14262
|
updatedAt: Date;
|
|
14235
14263
|
}
|
|
14236
|
-
export {};
|
|
14237
14264
|
}
|
|
14238
14265
|
namespace ActivityItemStatus {
|
|
14239
14266
|
type ItemStatus = "current_user" | "non_user" | "generic_user" | "competitor_user" | "other";
|
|
@@ -14251,7 +14278,7 @@ export declare namespace Service {
|
|
|
14251
14278
|
previous_user_name?: string;
|
|
14252
14279
|
previous_time?: number;
|
|
14253
14280
|
}
|
|
14254
|
-
|
|
14281
|
+
interface Data {
|
|
14255
14282
|
_id: string;
|
|
14256
14283
|
items: Item[];
|
|
14257
14284
|
geoPoint: GeoPoint;
|
|
@@ -14288,7 +14315,6 @@ export declare namespace Service {
|
|
|
14288
14315
|
createdAt: string;
|
|
14289
14316
|
updatedAt: string;
|
|
14290
14317
|
}
|
|
14291
|
-
export {};
|
|
14292
14318
|
}
|
|
14293
14319
|
namespace ActivityPlanogram {
|
|
14294
14320
|
interface Data {
|
|
@@ -14414,87 +14440,6 @@ export declare namespace Service {
|
|
|
14414
14440
|
updatedAt: string;
|
|
14415
14441
|
}
|
|
14416
14442
|
}
|
|
14417
|
-
namespace ActivityStorecheck {
|
|
14418
|
-
type FieldType = "Text" | "String" | "Date" | "Image" | "Boolean" | "Number" | "List" | "Separator" | "Heading" | "Media";
|
|
14419
|
-
type Source = "product" | "variant" | "product-category" | "product-sub-category" | "product-brand" | "product-group";
|
|
14420
|
-
interface GeoTag {
|
|
14421
|
-
lat?: number;
|
|
14422
|
-
lng?: number;
|
|
14423
|
-
formatted_address?: string;
|
|
14424
|
-
}
|
|
14425
|
-
interface GeoPoint {
|
|
14426
|
-
type: "Point";
|
|
14427
|
-
coordinates: [number, number];
|
|
14428
|
-
}
|
|
14429
|
-
interface Entry {
|
|
14430
|
-
entry_id: string;
|
|
14431
|
-
source: Source;
|
|
14432
|
-
results: Result[];
|
|
14433
|
-
}
|
|
14434
|
-
interface Result {
|
|
14435
|
-
source_id: string;
|
|
14436
|
-
source_name: string;
|
|
14437
|
-
divisions: Division[];
|
|
14438
|
-
}
|
|
14439
|
-
interface Division {
|
|
14440
|
-
fields: Field[];
|
|
14441
|
-
}
|
|
14442
|
-
interface Field {
|
|
14443
|
-
_id?: string;
|
|
14444
|
-
name: string;
|
|
14445
|
-
type: FieldType;
|
|
14446
|
-
isArray: boolean;
|
|
14447
|
-
isRequired?: boolean;
|
|
14448
|
-
is_calculated_field?: boolean;
|
|
14449
|
-
formula_key?: string;
|
|
14450
|
-
parent_field?: string;
|
|
14451
|
-
custom_list?: string | CustomList.Data | StringId;
|
|
14452
|
-
field_id: string | StringId;
|
|
14453
|
-
result: any[];
|
|
14454
|
-
result_custom_list_ids?: any[];
|
|
14455
|
-
calculation_status?: "success" | "failed";
|
|
14456
|
-
calculation_error?: string | any[];
|
|
14457
|
-
company_namespace?: string[];
|
|
14458
|
-
}
|
|
14459
|
-
export interface Data {
|
|
14460
|
-
_id: string;
|
|
14461
|
-
company_namespace: string[];
|
|
14462
|
-
client: string;
|
|
14463
|
-
client_name: string;
|
|
14464
|
-
sync_id: string;
|
|
14465
|
-
time_zone: string;
|
|
14466
|
-
template_id: string;
|
|
14467
|
-
visit?: string;
|
|
14468
|
-
visit_id?: string;
|
|
14469
|
-
battery_level?: number;
|
|
14470
|
-
user: string;
|
|
14471
|
-
user_name: string;
|
|
14472
|
-
time: number;
|
|
14473
|
-
geo_tag?: GeoTag;
|
|
14474
|
-
geoPoint: GeoPoint;
|
|
14475
|
-
teams?: string[];
|
|
14476
|
-
route?: string;
|
|
14477
|
-
tags?: string[];
|
|
14478
|
-
entries: Entry[];
|
|
14479
|
-
platform?: string;
|
|
14480
|
-
version_name?: string;
|
|
14481
|
-
device_brand?: string;
|
|
14482
|
-
device_os?: string;
|
|
14483
|
-
device_os_version?: string;
|
|
14484
|
-
device_model?: string;
|
|
14485
|
-
identifier?: number;
|
|
14486
|
-
device_id?: string;
|
|
14487
|
-
device_unique_id?: string;
|
|
14488
|
-
network_state?: number;
|
|
14489
|
-
serial_number?: SerialNumber;
|
|
14490
|
-
job_start_time?: number;
|
|
14491
|
-
job_end_time?: number;
|
|
14492
|
-
job_duration?: number;
|
|
14493
|
-
createdAt: Date;
|
|
14494
|
-
updatedAt: Date;
|
|
14495
|
-
}
|
|
14496
|
-
export {};
|
|
14497
|
-
}
|
|
14498
14443
|
namespace Reminder {
|
|
14499
14444
|
interface Data {
|
|
14500
14445
|
_id: string;
|
|
@@ -14517,13 +14462,13 @@ export declare namespace Service {
|
|
|
14517
14462
|
}
|
|
14518
14463
|
}
|
|
14519
14464
|
namespace TimelineReport {
|
|
14520
|
-
export const activity_types: readonly ["client", "visit", "payment", "activity-photo", "activity-audit", "activity-availability", "activity-checkout-display", "activity-feedback", "activity-form-result", "activity-form-v2-result", "activity-item-status", "activity-note", "activity-planogram", "activity-secondary-display", "activity-shelfshare", "activity-storecheck", "activity-task", "approval-request", "asset-part-receival", "asset-part-transfer", "asset", "asset-part", "asset-unit", "reminders", "return-asset-part-unit", "store-asset-part-unit", "refund", "settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
|
|
14465
|
+
export const activity_types: readonly ["day", "client", "visit", "payment", "activity-photo", "activity-audit", "activity-availability", "activity-checkout-display", "activity-feedback", "activity-form-result", "activity-form-v2-result", "activity-item-status", "activity-note", "activity-planogram", "activity-secondary-display", "activity-shelfshare", "activity-storecheck", "activity-task", "approval-request", "asset-part-receival", "asset-part-transfer", "asset", "asset-part", "asset-unit", "reminders", "return-asset-part-unit", "store-asset-part-unit", "refund", "settlement", "convert-proforma", "transfer", "proforma", "receiving-material", "void-invoice", "fullinvoices", "workorder", "workorder-request", "return-whole-invoice", "cycle"];
|
|
14521
14466
|
type ActivityType = (typeof activity_types)[number];
|
|
14522
14467
|
export interface Data {
|
|
14523
14468
|
_id: StringId;
|
|
14524
14469
|
company_namespace: string[];
|
|
14525
14470
|
activity_type: ActivityType;
|
|
14526
|
-
activity_id: StringId;
|
|
14471
|
+
activity_id: StringId | StringId[];
|
|
14527
14472
|
time: number;
|
|
14528
14473
|
business_day?: string;
|
|
14529
14474
|
user: {
|
|
@@ -14543,277 +14488,318 @@ export declare namespace Service {
|
|
|
14543
14488
|
coordinates: [number, number];
|
|
14544
14489
|
type: "Point";
|
|
14545
14490
|
};
|
|
14546
|
-
details: VisitDetails | PaymentDetails | RefundDetails | ActivityPhotoDetails | ActivityAuditDetails | ActivityNoteDetails | ActivityTaskDetails | ActivityAvailabilityDetails | ActivityCheckoutDisplayDetails | ActivityFeedbackDetails | ActivityFormResultDetails | ActivityFormV2ResultDetails | ActivityItemStatusDetails | ActivityPlanogramDetails | ActivitySecondaryDisplayDetails | ActivityShelfshareDetails | ActivityStorecheckDetails | ApprovalRequestDetails | AssetPartReceivalDetails | AssetPartTransferDetails | AssetDetails | AssetPartDetails | AssetUnitDetails | ReminderDetails | ReturnAssetPartUnitDetails | StoreAssetPartUnitDetails | SettlementDetails | ConvertProformaDetails | TransferDetails | ReceivingMaterialDetails | FullInvoiceDetails | ProformaDetails | WorkorderDetails | WorkorderRequestDetails | ReturnWholeInvoiceDetails | VoidInvoiceDetails | CycleDetails | ClientDetails;
|
|
14491
|
+
details: VisitDetails | DayDetails | PaymentDetails | RefundDetails | ActivityPhotoDetails | ActivityAuditDetails | ActivityNoteDetails | ActivityTaskDetails | ActivityAvailabilityDetails | ActivityCheckoutDisplayDetails | ActivityFeedbackDetails | ActivityFormResultDetails | ActivityFormV2ResultDetails | ActivityItemStatusDetails | ActivityPlanogramDetails | ActivitySecondaryDisplayDetails | ActivityShelfshareDetails | ActivityStorecheckDetails | ApprovalRequestDetails | AssetPartReceivalDetails | AssetPartTransferDetails | AssetDetails | AssetPartDetails | AssetUnitDetails | ReminderDetails | ReturnAssetPartUnitDetails | StoreAssetPartUnitDetails | SettlementDetails | ConvertProformaDetails | TransferDetails | ReceivingMaterialDetails | FullInvoiceDetails | ProformaDetails | WorkorderDetails | WorkorderRequestDetails | ReturnWholeInvoiceDetails | VoidInvoiceDetails | CycleDetails | ClientDetails;
|
|
14547
14492
|
createdAt: Date;
|
|
14548
14493
|
updatedAt: Date;
|
|
14549
14494
|
}
|
|
14550
|
-
type VisitDetails = {
|
|
14495
|
+
export type VisitDetails = {
|
|
14551
14496
|
activity_type: "visit";
|
|
14552
14497
|
activities: (ActivityAuditVisitDetails | ActivityPhotoVisitDetails | ActivityAvailabilityVisitDetails | ActivityNoteVisitDetails | ActivityTaskVisitDetails | ActivityPlanogramVisitDetails | ActivityShelfshareVisitDetails | ActivitySecondaryDisplayVisitDetails | ActivityCheckoutDisplayVisitDetails | ActivityItemStatusVisitDetails | ActivityFormResultVisitDetails | ActivityFormV2ResultVisitDetails | ActivityStorecheckVisitDetails | ActivityFeedbackVisitDetails | ApprovalRequestVisitDetails | AssetPartReceivalVisitDetails | AssetPartTransferVisitDetails | ReturnAssetPartUnitVisitDetails | StoreAssetPartUnitVisitDetails | PaymentVisitDetails | RefundVisitDetails | ConvertProformaVisitDetails | SettlementVisitDetails | FullInvoiceVisitDetails | ProformaVisitDetails | ReturnWholeInvoiceVisitDetails | VoidInvoiceVisitDetails)[];
|
|
14553
|
-
} & Pick<Visit.Data, "closed_by_system" | "geoPoint" | "start_time" | "end_time" | "total_time" | "battery_level" | "version_name" | "device_brand">;
|
|
14554
|
-
type ActivityPhotoDetails = {
|
|
14498
|
+
} & Pick<Visit.Data, "closed_by_system" | "geoPoint" | "start_time" | "end_time" | "total_time" | "battery_level" | "version_name" | "device_brand" | "start_out_of_geofence" | "end_out_of_geofence" | "auto_closed_by_geofence" | "auto_closed_by_geofence_reason" | "client_geo_location">;
|
|
14499
|
+
export type ActivityPhotoDetails = {
|
|
14555
14500
|
activity_type: "activity-photo";
|
|
14556
14501
|
} & Pick<ActivityPhoto.Data, "media">;
|
|
14557
|
-
type ActivityPhotoVisitDetails = {
|
|
14502
|
+
export type ActivityPhotoVisitDetails = {
|
|
14558
14503
|
activity_type: "activity-photo";
|
|
14559
14504
|
activity_id: StringId;
|
|
14560
14505
|
} & Pick<ActivityPhoto.Data, "media" | "time">;
|
|
14561
|
-
type ActivityAuditDetails = {
|
|
14506
|
+
export type ActivityAuditDetails = {
|
|
14562
14507
|
activity_type: "activity-audit";
|
|
14563
14508
|
audits_length: number;
|
|
14564
14509
|
};
|
|
14565
|
-
type ActivityAuditVisitDetails = {
|
|
14510
|
+
export type ActivityAuditVisitDetails = {
|
|
14566
14511
|
activity_type: "activity-audit";
|
|
14567
14512
|
activity_id: StringId;
|
|
14568
14513
|
audits_length: number;
|
|
14569
14514
|
} & Pick<ActivityAudit.Data, "time">;
|
|
14570
|
-
type ActivityAvailabilityDetails = {
|
|
14515
|
+
export type ActivityAvailabilityDetails = {
|
|
14571
14516
|
activity_type: "activity-availability";
|
|
14572
14517
|
products_available_length: number;
|
|
14573
14518
|
msl_name: string;
|
|
14574
|
-
} & Pick<ActivityAvailability.Data, "msl_id">;
|
|
14575
|
-
type ActivityAvailabilityVisitDetails = {
|
|
14519
|
+
} & Pick<ActivityAvailability.Data, "msl_id" | "media">;
|
|
14520
|
+
export type ActivityAvailabilityVisitDetails = {
|
|
14576
14521
|
activity_type: "activity-availability";
|
|
14577
14522
|
activity_id: StringId;
|
|
14578
14523
|
products_available_length: number;
|
|
14579
14524
|
msl_name: string;
|
|
14580
|
-
} & Pick<ActivityAvailability.Data, "time" | "msl_id">;
|
|
14581
|
-
type ActivityNoteDetails = {
|
|
14525
|
+
} & Pick<ActivityAvailability.Data, "time" | "msl_id" | "media">;
|
|
14526
|
+
export type ActivityNoteDetails = {
|
|
14582
14527
|
activity_type: "activity-note";
|
|
14583
14528
|
} & Pick<ActivityNote.Data, "content">;
|
|
14584
|
-
type ActivityNoteVisitDetails = {
|
|
14529
|
+
export type ActivityNoteVisitDetails = {
|
|
14585
14530
|
activity_type: "activity-note";
|
|
14586
14531
|
activity_id: StringId;
|
|
14587
14532
|
} & Pick<ActivityNote.Data, "content" | "time">;
|
|
14588
|
-
type ActivityTaskDetails = {
|
|
14533
|
+
export type ActivityTaskDetails = {
|
|
14589
14534
|
activity_type: "activity-task";
|
|
14590
14535
|
} & Pick<ActivityTask.Data, "start_media" | "end_media">;
|
|
14591
|
-
type ActivityTaskVisitDetails = {
|
|
14536
|
+
export type ActivityTaskVisitDetails = {
|
|
14592
14537
|
activity_type: "activity-task";
|
|
14593
14538
|
activity_id: StringId;
|
|
14594
14539
|
} & Pick<ActivityTask.Data, "start_media" | "end_media" | "time">;
|
|
14595
|
-
type ActivityPlanogramDetails = {
|
|
14540
|
+
export type ActivityPlanogramDetails = {
|
|
14596
14541
|
activity_type: "activity-planogram";
|
|
14597
14542
|
msl_name: string;
|
|
14598
14543
|
} & Pick<ActivityPlanogram.Data, "media" | "planogram_reason" | "msl_id">;
|
|
14599
|
-
type ActivityPlanogramVisitDetails = {
|
|
14544
|
+
export type ActivityPlanogramVisitDetails = {
|
|
14600
14545
|
activity_type: "activity-planogram";
|
|
14601
14546
|
activity_id: StringId;
|
|
14602
14547
|
msl_name: string;
|
|
14603
14548
|
} & Pick<ActivityPlanogram.Data, "media" | "planogram_reason" | "time" | "msl_id">;
|
|
14604
|
-
type ActivityShelfshareDetails = {
|
|
14549
|
+
export type ActivityShelfshareDetails = {
|
|
14605
14550
|
activity_type: "activity-shelfshare";
|
|
14606
|
-
|
|
14607
|
-
|
|
14608
|
-
|
|
14551
|
+
results: (Pick<ActivityShelfshare.Data, "msl_length" | "total_msl_length" | "msl_id"> & {
|
|
14552
|
+
activity_id: StringId;
|
|
14553
|
+
msl_name: string;
|
|
14554
|
+
})[];
|
|
14555
|
+
};
|
|
14556
|
+
export type ActivityShelfshareVisitDetails = {
|
|
14609
14557
|
activity_type: "activity-shelfshare";
|
|
14610
|
-
activity_id: StringId;
|
|
14611
|
-
|
|
14612
|
-
|
|
14613
|
-
|
|
14558
|
+
activity_id: StringId[];
|
|
14559
|
+
time: number;
|
|
14560
|
+
results: (Pick<ActivityShelfshare.Data, "msl_length" | "total_msl_length" | "msl_id"> & {
|
|
14561
|
+
activity_id: StringId;
|
|
14562
|
+
msl_name: string;
|
|
14563
|
+
})[];
|
|
14564
|
+
};
|
|
14565
|
+
export type ActivitySecondaryDisplayDetails = {
|
|
14614
14566
|
activity_type: "activity-secondary-display";
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
14567
|
+
results: (Pick<ActivitySecondaryDisplay.Data, "secondary_count" | "msl_id"> & {
|
|
14568
|
+
activity_id: StringId;
|
|
14569
|
+
msl_name: string;
|
|
14570
|
+
})[];
|
|
14571
|
+
};
|
|
14572
|
+
export type ActivitySecondaryDisplayVisitDetails = {
|
|
14618
14573
|
activity_type: "activity-secondary-display";
|
|
14619
|
-
activity_id: StringId;
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14574
|
+
activity_id: StringId[];
|
|
14575
|
+
time: number;
|
|
14576
|
+
results: (Pick<ActivitySecondaryDisplay.Data, "secondary_count" | "msl_id"> & {
|
|
14577
|
+
activity_id: StringId;
|
|
14578
|
+
msl_name: string;
|
|
14579
|
+
})[];
|
|
14580
|
+
};
|
|
14581
|
+
export type ActivityCheckoutDisplayDetails = {
|
|
14623
14582
|
activity_type: "activity-checkout-display";
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
|
|
14583
|
+
results: (Pick<ActivityCheckoutDisplay.Data, "checkout_count" | "msl_id"> & {
|
|
14584
|
+
activity_id: StringId;
|
|
14585
|
+
msl_name: string;
|
|
14586
|
+
})[];
|
|
14587
|
+
};
|
|
14588
|
+
export type ActivityCheckoutDisplayVisitDetails = {
|
|
14627
14589
|
activity_type: "activity-checkout-display";
|
|
14628
|
-
activity_id: StringId;
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14590
|
+
activity_id: StringId[];
|
|
14591
|
+
time: number;
|
|
14592
|
+
results: (Pick<ActivityCheckoutDisplay.Data, "checkout_count" | "msl_id"> & {
|
|
14593
|
+
activity_id: StringId;
|
|
14594
|
+
msl_name: string;
|
|
14595
|
+
})[];
|
|
14596
|
+
};
|
|
14597
|
+
export type ActivityItemStatusDetails = {
|
|
14632
14598
|
activity_type: "activity-item-status";
|
|
14633
14599
|
items_length?: number;
|
|
14634
14600
|
};
|
|
14635
|
-
type ActivityItemStatusVisitDetails = {
|
|
14601
|
+
export type ActivityItemStatusVisitDetails = {
|
|
14636
14602
|
activity_type: "activity-item-status";
|
|
14637
14603
|
activity_id: StringId;
|
|
14638
14604
|
items_length?: number;
|
|
14639
14605
|
} & Pick<ActivityItemStatus.Data, "time">;
|
|
14640
|
-
type ActivityFormResultDetails = {
|
|
14606
|
+
export type ActivityFormResultDetails = {
|
|
14641
14607
|
activity_type: "activity-form-result";
|
|
14642
14608
|
form_name?: string;
|
|
14643
14609
|
} & Pick<ActivityFormResult.Data, "form_id">;
|
|
14644
|
-
type ActivityFormResultVisitDetails = {
|
|
14610
|
+
export type ActivityFormResultVisitDetails = {
|
|
14645
14611
|
activity_type: "activity-form-result";
|
|
14646
14612
|
activity_id: StringId;
|
|
14647
14613
|
form_name?: string;
|
|
14648
14614
|
} & Pick<ActivityFormResult.Data, "form_id" | "time">;
|
|
14649
|
-
type ActivityFormV2ResultDetails = {
|
|
14615
|
+
export type ActivityFormV2ResultDetails = {
|
|
14650
14616
|
activity_type: "activity-form-v2-result";
|
|
14651
14617
|
form_name?: string;
|
|
14652
14618
|
} & Pick<ActivityFormV2Result.Data, "form_id" | "serial_number">;
|
|
14653
|
-
type ActivityFormV2ResultVisitDetails = {
|
|
14619
|
+
export type ActivityFormV2ResultVisitDetails = {
|
|
14654
14620
|
activity_type: "activity-form-v2-result";
|
|
14655
14621
|
activity_id: StringId;
|
|
14656
14622
|
form_name?: string;
|
|
14657
14623
|
} & Pick<ActivityFormV2Result.Data, "form_id" | "serial_number" | "time">;
|
|
14658
|
-
type ActivityStorecheckDetails = {
|
|
14624
|
+
export type ActivityStorecheckDetails = {
|
|
14659
14625
|
activity_type: "activity-storecheck";
|
|
14660
14626
|
template_name?: string;
|
|
14661
|
-
} & Pick<ActivityStorecheck.
|
|
14662
|
-
type ActivityStorecheckVisitDetails = {
|
|
14627
|
+
} & Pick<ActivityStorecheck.ActivityStoreCheckWithPopulatedKeysSchema, "template_id" | "serial_number">;
|
|
14628
|
+
export type ActivityStorecheckVisitDetails = {
|
|
14663
14629
|
activity_type: "activity-storecheck";
|
|
14664
14630
|
activity_id: StringId;
|
|
14665
14631
|
template_name?: string;
|
|
14666
|
-
} & Pick<ActivityStorecheck.
|
|
14667
|
-
type ActivityFeedbackDetails = {
|
|
14632
|
+
} & Pick<ActivityStorecheck.ActivityStoreCheckWithPopulatedKeysSchema, "template_id" | "serial_number" | "time">;
|
|
14633
|
+
export type ActivityFeedbackDetails = {
|
|
14668
14634
|
activity_type: "activity-feedback";
|
|
14669
14635
|
feed_back_option_label?: string;
|
|
14670
14636
|
} & Pick<ActivityFeedback.Data, "feed_back_option">;
|
|
14671
|
-
type ActivityFeedbackVisitDetails = {
|
|
14637
|
+
export type ActivityFeedbackVisitDetails = {
|
|
14672
14638
|
activity_type: "activity-feedback";
|
|
14673
14639
|
activity_id: StringId;
|
|
14674
14640
|
time?: number;
|
|
14675
14641
|
feed_back_option_label?: string;
|
|
14676
14642
|
} & Pick<ActivityFeedback.Data, "feed_back_option">;
|
|
14677
|
-
type ApprovalRequestDetails = {
|
|
14643
|
+
export type ApprovalRequestDetails = {
|
|
14678
14644
|
activity_type: "approval-request";
|
|
14679
14645
|
} & Pick<ApprovalRequest.Data, "serial_number" | "type" | "subtype">;
|
|
14680
|
-
type ApprovalRequestVisitDetails = {
|
|
14646
|
+
export type ApprovalRequestVisitDetails = {
|
|
14681
14647
|
activity_type: "approval-request";
|
|
14682
14648
|
activity_id: StringId;
|
|
14683
14649
|
} & Pick<ApprovalRequest.Data, "serial_number" | "type" | "subtype" | "time">;
|
|
14684
|
-
type ReminderDetails = {
|
|
14650
|
+
export type ReminderDetails = {
|
|
14685
14651
|
activity_type: "reminders";
|
|
14686
|
-
} & Pick<Reminder.Data, "content" | "cover_photo">;
|
|
14687
|
-
type AssetDetails = {
|
|
14652
|
+
} & Pick<Reminder.Data, "content" | "cover_photo" | "from" | "to" | "name">;
|
|
14653
|
+
export type AssetDetails = {
|
|
14688
14654
|
activity_type: "asset";
|
|
14655
|
+
asset_types?: string;
|
|
14689
14656
|
} & Pick<Asset.Data, "name">;
|
|
14690
|
-
type AssetUnitDetails = {
|
|
14657
|
+
export type AssetUnitDetails = {
|
|
14691
14658
|
activity_type: "asset-unit";
|
|
14659
|
+
asset?: string;
|
|
14692
14660
|
} & Pick<AssetUnit.Data, "name">;
|
|
14693
|
-
type AssetPartDetails = {
|
|
14661
|
+
export type AssetPartDetails = {
|
|
14694
14662
|
activity_type: "asset-part";
|
|
14695
14663
|
} & Pick<AssetPart.Data, "name">;
|
|
14696
|
-
type AssetPartReceivalDetails = {
|
|
14664
|
+
export type AssetPartReceivalDetails = {
|
|
14697
14665
|
activity_type: "asset-part-receival";
|
|
14698
14666
|
} & Pick<AssetPartReceival.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_parts_count" | "total_asset_parts_qty">;
|
|
14699
|
-
type AssetPartReceivalVisitDetails = {
|
|
14667
|
+
export type AssetPartReceivalVisitDetails = {
|
|
14700
14668
|
activity_type: "asset-part-receival";
|
|
14701
14669
|
activity_id: StringId;
|
|
14702
14670
|
} & Pick<AssetPartReceival.Data, "serial_number" | "warehouse" | "warehouse_name" | "time" | "asset_parts_count" | "total_asset_parts_qty">;
|
|
14703
|
-
type AssetPartTransferDetails = {
|
|
14671
|
+
export type AssetPartTransferDetails = {
|
|
14704
14672
|
activity_type: "asset-part-transfer";
|
|
14705
14673
|
} & Pick<AssetPartTransfer.Data, "serial_number" | "from" | "from_name" | "to" | "to_name" | "asset_part_units_count" | "total_asset_part_units_qty">;
|
|
14706
|
-
type AssetPartTransferVisitDetails = {
|
|
14674
|
+
export type AssetPartTransferVisitDetails = {
|
|
14707
14675
|
activity_type: "asset-part-transfer";
|
|
14708
14676
|
activity_id: StringId;
|
|
14709
14677
|
} & Pick<AssetPartTransfer.Data, "serial_number" | "from" | "from_name" | "to" | "to_name" | "asset_part_units_count" | "total_asset_part_units_qty" | "time">;
|
|
14710
|
-
type ReturnAssetPartUnitDetails = {
|
|
14678
|
+
export type ReturnAssetPartUnitDetails = {
|
|
14711
14679
|
activity_type: "return-asset-part-unit";
|
|
14712
14680
|
} & Pick<ReturnAssetPartUnit.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_part_units_count" | "total_asset_part_units_qty">;
|
|
14713
|
-
type ReturnAssetPartUnitVisitDetails = {
|
|
14681
|
+
export type ReturnAssetPartUnitVisitDetails = {
|
|
14714
14682
|
activity_type: "return-asset-part-unit";
|
|
14715
14683
|
activity_id: StringId;
|
|
14716
14684
|
} & Pick<ReturnAssetPartUnit.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_part_units_count" | "total_asset_part_units_qty" | "time">;
|
|
14717
|
-
type StoreAssetPartUnitDetails = {
|
|
14685
|
+
export type StoreAssetPartUnitDetails = {
|
|
14718
14686
|
activity_type: "store-asset-part-unit";
|
|
14719
14687
|
} & Pick<StoreAssetPartUnit.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_part_units_count" | "total_asset_part_units_qty">;
|
|
14720
|
-
type StoreAssetPartUnitVisitDetails = {
|
|
14688
|
+
export type StoreAssetPartUnitVisitDetails = {
|
|
14721
14689
|
activity_type: "store-asset-part-unit";
|
|
14722
14690
|
activity_id: StringId;
|
|
14723
14691
|
} & Pick<StoreAssetPartUnit.Data, "serial_number" | "warehouse" | "warehouse_name" | "asset_part_units_count" | "total_asset_part_units_qty" | "time">;
|
|
14724
|
-
type PaymentDetails = {
|
|
14692
|
+
export type PaymentDetails = {
|
|
14725
14693
|
activity_type: "payment";
|
|
14726
14694
|
} & Pick<Payment.Data, "amount" | "serial_number" | "paytime" | "currency" | "payment_type">;
|
|
14727
|
-
type PaymentVisitDetails = {
|
|
14695
|
+
export type PaymentVisitDetails = {
|
|
14728
14696
|
activity_type: "payment";
|
|
14729
14697
|
activity_id: StringId;
|
|
14730
14698
|
} & Pick<Payment.Data, "amount" | "serial_number" | "currency" | "payment_type" | "time">;
|
|
14731
|
-
type RefundDetails = {
|
|
14699
|
+
export type RefundDetails = {
|
|
14732
14700
|
activity_type: "refund";
|
|
14733
14701
|
} & Pick<Refund.Data, "amount" | "serial_number" | "paytime" | "currency" | "transaction_type">;
|
|
14734
|
-
type RefundVisitDetails = {
|
|
14702
|
+
export type RefundVisitDetails = {
|
|
14735
14703
|
activity_type: "refund";
|
|
14736
14704
|
activity_id: StringId;
|
|
14737
14705
|
} & Pick<Refund.Data, "amount" | "serial_number" | "currency" | "transaction_type" | "time">;
|
|
14738
|
-
type SettlementDetails = {
|
|
14706
|
+
export type SettlementDetails = {
|
|
14739
14707
|
activity_type: "settlement";
|
|
14740
14708
|
} & Pick<Settlement.Data, "amount" | "serial_number" | "paytime" | "origin" | "payment_type">;
|
|
14741
|
-
type SettlementVisitDetails = {
|
|
14709
|
+
export type SettlementVisitDetails = {
|
|
14742
14710
|
activity_type: "settlement";
|
|
14743
14711
|
activity_id: StringId;
|
|
14744
14712
|
} & Pick<Settlement.Data, "amount" | "serial_number" | "origin" | "payment_type" | "time">;
|
|
14745
|
-
type ConvertProformaDetails = {
|
|
14713
|
+
export type ConvertProformaDetails = {
|
|
14746
14714
|
activity_type: "convert-proforma";
|
|
14747
14715
|
proforma_reference: FullInvoice.Data["proforma_reference"];
|
|
14748
14716
|
proforma_serial_number: Proforma.Data["serial_number"];
|
|
14749
14717
|
invoice_serial_number: FullInvoice.Data["serial_number"];
|
|
14718
|
+
total: FullInvoice.Data["total"];
|
|
14719
|
+
currency: FullInvoice.Data["currency"];
|
|
14750
14720
|
};
|
|
14751
|
-
type ConvertProformaVisitDetails = {
|
|
14721
|
+
export type ConvertProformaVisitDetails = {
|
|
14752
14722
|
activity_type: "convert-proforma";
|
|
14753
14723
|
activity_id: StringId;
|
|
14754
14724
|
proforma_serial_number: Proforma.Data["serial_number"];
|
|
14755
14725
|
invoice_serial_number: FullInvoice.Data["serial_number"];
|
|
14756
14726
|
time: number;
|
|
14757
14727
|
proforma_reference: FullInvoice.Data["proforma_reference"];
|
|
14728
|
+
total: FullInvoice.Data["total"];
|
|
14729
|
+
currency: FullInvoice.Data["currency"];
|
|
14758
14730
|
};
|
|
14759
|
-
type TransferDetails = {
|
|
14731
|
+
export type TransferDetails = {
|
|
14760
14732
|
activity_type: "transfer";
|
|
14761
14733
|
from_name: string;
|
|
14762
14734
|
to_name: string;
|
|
14763
14735
|
} & Pick<Transfer.Data, "type" | "serial_number" | "from" | "to" | "items_count" | "comment">;
|
|
14764
|
-
type ReceivingMaterialDetails = {
|
|
14736
|
+
export type ReceivingMaterialDetails = {
|
|
14765
14737
|
activity_type: "receiving-material";
|
|
14766
14738
|
to_name: string;
|
|
14767
14739
|
} & Pick<ReceivingMaterial.Data, "serial_number" | "to" | "items_count" | "comment">;
|
|
14768
|
-
type FullInvoiceDetails = {
|
|
14740
|
+
export type FullInvoiceDetails = {
|
|
14769
14741
|
activity_type: "fullinvoices";
|
|
14770
14742
|
} & Pick<FullInvoice.Data, "total" | "serial_number" | "currency" | "issue_date" | "due_date" | "external_serial_number">;
|
|
14771
|
-
type FullInvoiceVisitDetails = {
|
|
14743
|
+
export type FullInvoiceVisitDetails = {
|
|
14772
14744
|
activity_type: "fullinvoices";
|
|
14773
14745
|
activity_id: StringId;
|
|
14774
14746
|
} & Pick<FullInvoice.Data, "total" | "serial_number" | "currency" | "time" | "issue_date" | "due_date" | "external_serial_number">;
|
|
14775
|
-
type ProformaDetails = {
|
|
14747
|
+
export type ProformaDetails = {
|
|
14776
14748
|
activity_type: "proforma";
|
|
14777
14749
|
} & Pick<Proforma.Data, "total" | "serial_number" | "currency" | "issue_date" | "external_serial_number">;
|
|
14778
|
-
type ProformaVisitDetails = {
|
|
14750
|
+
export type ProformaVisitDetails = {
|
|
14779
14751
|
activity_type: "proforma";
|
|
14780
14752
|
activity_id: StringId;
|
|
14781
14753
|
} & Pick<Proforma.Data, "total" | "serial_number" | "currency" | "time" | "issue_date" | "external_serial_number">;
|
|
14782
|
-
type WorkorderDetails = {
|
|
14754
|
+
export type WorkorderDetails = {
|
|
14783
14755
|
activity_type: "workorder";
|
|
14784
14756
|
} & Pick<Workorder.Data, "name" | "serial_number" | "due_date">;
|
|
14785
|
-
type WorkorderRequestDetails = {
|
|
14757
|
+
export type WorkorderRequestDetails = {
|
|
14786
14758
|
activity_type: "workorder-request";
|
|
14787
14759
|
} & Pick<WorkorderRequest.Data, "name">;
|
|
14788
|
-
type ReturnWholeInvoiceDetails = {
|
|
14760
|
+
export type ReturnWholeInvoiceDetails = {
|
|
14789
14761
|
activity_type: "return-whole-invoice";
|
|
14790
14762
|
returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
|
|
14791
14763
|
} & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number">;
|
|
14792
|
-
type ReturnWholeInvoiceVisitDetails = {
|
|
14764
|
+
export type ReturnWholeInvoiceVisitDetails = {
|
|
14793
14765
|
activity_type: "return-whole-invoice";
|
|
14794
14766
|
activity_id: StringId;
|
|
14795
14767
|
returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
|
|
14796
14768
|
} & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number" | "time">;
|
|
14797
|
-
type VoidInvoiceDetails = {
|
|
14769
|
+
export type VoidInvoiceDetails = {
|
|
14798
14770
|
activity_type: "void-invoice";
|
|
14799
14771
|
returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
|
|
14800
14772
|
} & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number">;
|
|
14801
|
-
type VoidInvoiceVisitDetails = {
|
|
14773
|
+
export type VoidInvoiceVisitDetails = {
|
|
14802
14774
|
activity_type: "void-invoice";
|
|
14803
14775
|
activity_id: StringId;
|
|
14804
14776
|
returned_from_serial_number: FullInvoice.Data["returned_from_serial_number"];
|
|
14805
14777
|
} & Pick<FullInvoice.Data, "returned_from" | "returned_to_serial_number" | "time">;
|
|
14806
|
-
type CycleDetails = {
|
|
14778
|
+
export type CycleDetails = {
|
|
14807
14779
|
activity_type: "cycle";
|
|
14808
14780
|
stage_name?: string;
|
|
14809
14781
|
} & Pick<Cycle.Data, "document_type" | "serial_number" | "document_id" | "status">;
|
|
14810
|
-
type ClientDetails = {
|
|
14782
|
+
export type ClientDetails = {
|
|
14811
14783
|
activity_type: "client";
|
|
14812
|
-
} & Pick<Client.Data, "name" | "client_code" | "local_name">;
|
|
14784
|
+
} & Pick<Client.Data, "name" | "client_code" | "local_name" | "lat" | "lng" | "location_verified">;
|
|
14785
|
+
export type StartDayDetails = {
|
|
14786
|
+
activity_type: "day";
|
|
14787
|
+
startTime: string;
|
|
14788
|
+
} & Pick<Day.Data, "day" | "open" | "created_by_system" | "start_geoPoint" | "timeZone">;
|
|
14789
|
+
export type EndDayDetails = {
|
|
14790
|
+
activity_type: "day";
|
|
14791
|
+
startTime: string;
|
|
14792
|
+
endTime: string;
|
|
14793
|
+
} & Pick<Day.Data, "day" | "open" | "breaksTime" | "created_by_system" | "timeInVisits" | "end_geoPoint" | "start_geoPoint" | "travelTimeBetweenVisists" | "totalTravelTime" | "breaksTime" | "timeOnDuty" | "timeZone">;
|
|
14794
|
+
export type DayDetails = StartDayDetails | EndDayDetails;
|
|
14813
14795
|
export type PopulatedDoc = Data & {
|
|
14814
14796
|
client_name?: string;
|
|
14815
14797
|
client_code?: string;
|
|
14816
14798
|
client_local_name?: string;
|
|
14799
|
+
client_lat?: number;
|
|
14800
|
+
client_lng?: number;
|
|
14801
|
+
client_location_verified?: boolean;
|
|
14802
|
+
user_profile_photo?: string | null;
|
|
14817
14803
|
client_customFields?: {
|
|
14818
14804
|
[key: string]: any;
|
|
14819
14805
|
};
|
|
@@ -14830,7 +14816,7 @@ export declare namespace Service {
|
|
|
14830
14816
|
};
|
|
14831
14817
|
teams?: string[];
|
|
14832
14818
|
};
|
|
14833
|
-
type SortingKeys = "_id";
|
|
14819
|
+
export type SortingKeys = "_id";
|
|
14834
14820
|
export namespace Find {
|
|
14835
14821
|
type Params = DefaultPaginationQueryParams & {
|
|
14836
14822
|
visit_mode?: boolean;
|
|
@@ -14885,6 +14871,296 @@ export declare namespace Service {
|
|
|
14885
14871
|
}
|
|
14886
14872
|
export {};
|
|
14887
14873
|
}
|
|
14874
|
+
namespace Permission {
|
|
14875
|
+
interface Data {
|
|
14876
|
+
_id: string;
|
|
14877
|
+
disabled: boolean;
|
|
14878
|
+
path: EndPoints;
|
|
14879
|
+
name: string;
|
|
14880
|
+
scope: "repzoCare" | "repzoSystem" | "customer";
|
|
14881
|
+
code: number;
|
|
14882
|
+
admin: {
|
|
14883
|
+
m_find: boolean;
|
|
14884
|
+
m_get: boolean;
|
|
14885
|
+
m_create: boolean;
|
|
14886
|
+
m_update: boolean;
|
|
14887
|
+
m_remove: boolean;
|
|
14888
|
+
};
|
|
14889
|
+
rep: {
|
|
14890
|
+
m_find: boolean;
|
|
14891
|
+
m_get: boolean;
|
|
14892
|
+
m_create: boolean;
|
|
14893
|
+
m_update: boolean;
|
|
14894
|
+
m_remove: boolean;
|
|
14895
|
+
};
|
|
14896
|
+
client: {
|
|
14897
|
+
m_find: boolean;
|
|
14898
|
+
m_get: boolean;
|
|
14899
|
+
m_create: boolean;
|
|
14900
|
+
m_update: boolean;
|
|
14901
|
+
m_remove: boolean;
|
|
14902
|
+
};
|
|
14903
|
+
guest: {
|
|
14904
|
+
m_find: boolean;
|
|
14905
|
+
m_get: boolean;
|
|
14906
|
+
m_create: boolean;
|
|
14907
|
+
m_update: boolean;
|
|
14908
|
+
m_remove: boolean;
|
|
14909
|
+
};
|
|
14910
|
+
tenant: {
|
|
14911
|
+
m_find: boolean;
|
|
14912
|
+
m_get: boolean;
|
|
14913
|
+
m_create: boolean;
|
|
14914
|
+
m_update: boolean;
|
|
14915
|
+
m_remove: boolean;
|
|
14916
|
+
};
|
|
14917
|
+
group: "Basic" | "Froms" | "Schedule" | "Pre Sales" | "Sales" | "Live Location" | "Omni" | "Bulk" | "Audit trail" | "System" | "Media" | "Store Check";
|
|
14918
|
+
teams_shared: "shared" | "unshared" | "optional";
|
|
14919
|
+
server: "sv" | "sso" | "report";
|
|
14920
|
+
createdAt: Date;
|
|
14921
|
+
updatedAt: Date;
|
|
14922
|
+
}
|
|
14923
|
+
}
|
|
14924
|
+
namespace Module {
|
|
14925
|
+
type PermissionGroup = "Basic" | "Froms" | "Schedule" | "Pre Sales" | "Sales" | "Live Location" | "Omni" | "Bulk" | "Audit trail" | "System" | "Media" | "Store Check" | "Client Dashboard" | "Virtual Admin" | "Customer Care" | "Marketplace" | "E-Tax";
|
|
14926
|
+
interface Data {
|
|
14927
|
+
_id: string;
|
|
14928
|
+
name: string;
|
|
14929
|
+
services: (string | Permission.Data)[];
|
|
14930
|
+
defaultState: boolean;
|
|
14931
|
+
permission_groups: PermissionGroup[];
|
|
14932
|
+
createdAt: Date;
|
|
14933
|
+
updatedAt: Date;
|
|
14934
|
+
}
|
|
14935
|
+
}
|
|
14936
|
+
namespace CompanyNamespace {
|
|
14937
|
+
type CompanyStatus = "trial" | "subscription";
|
|
14938
|
+
type CompanyIndustry = "fmcg" | "pharma" | "service" | "omni";
|
|
14939
|
+
interface Data {
|
|
14940
|
+
_id: string;
|
|
14941
|
+
company_name: string;
|
|
14942
|
+
legal_name: string;
|
|
14943
|
+
name_space: string;
|
|
14944
|
+
active_account: boolean;
|
|
14945
|
+
guest_mode: boolean;
|
|
14946
|
+
disabled?: boolean;
|
|
14947
|
+
logo?: string;
|
|
14948
|
+
created_by: Admin;
|
|
14949
|
+
address?: string;
|
|
14950
|
+
company_owner?: string;
|
|
14951
|
+
phone?: string;
|
|
14952
|
+
country: string;
|
|
14953
|
+
country_code: string;
|
|
14954
|
+
status: CompanyStatus;
|
|
14955
|
+
total_seats_sold: number;
|
|
14956
|
+
organization_name?: string;
|
|
14957
|
+
smsSenderID?: string;
|
|
14958
|
+
company_group: string;
|
|
14959
|
+
time_zone: string;
|
|
14960
|
+
integration_priority_index: number;
|
|
14961
|
+
banks_list: string;
|
|
14962
|
+
modules: {
|
|
14963
|
+
module: string | Module.Data;
|
|
14964
|
+
active: boolean;
|
|
14965
|
+
}[];
|
|
14966
|
+
excluded_modules: string[];
|
|
14967
|
+
industry: CompanyIndustry;
|
|
14968
|
+
end_of_day: string;
|
|
14969
|
+
trial_ends_at: number;
|
|
14970
|
+
subscription_status?: "trial" | "initiated" | "active" | "grace" | "limited" | "blocked";
|
|
14971
|
+
grace_until: number | null;
|
|
14972
|
+
limited_until: number | null;
|
|
14973
|
+
workspace: string;
|
|
14974
|
+
default_business_app: string;
|
|
14975
|
+
allowed_business_apps: string[];
|
|
14976
|
+
is_sandbox: boolean;
|
|
14977
|
+
parent_namespace?: string;
|
|
14978
|
+
grace_duration_days: number;
|
|
14979
|
+
limited_duration_days: number;
|
|
14980
|
+
billing_email: string;
|
|
14981
|
+
maxio_customer_id?: string;
|
|
14982
|
+
maxio_saving_plan_id?: string | null;
|
|
14983
|
+
maxio_standard_plan_id?: string | null;
|
|
14984
|
+
saving_plan_id?: string | null;
|
|
14985
|
+
standard_plan_id?: string | null;
|
|
14986
|
+
business_add_on_ids?: string[] | null;
|
|
14987
|
+
subscription_type?: "company-namespace" | "company-group";
|
|
14988
|
+
min_billing_reps: number;
|
|
14989
|
+
min_billing_admins: number;
|
|
14990
|
+
min_billing_users: number;
|
|
14991
|
+
max_billing_reps: number;
|
|
14992
|
+
max_billing_admins: number;
|
|
14993
|
+
max_billing_users: number;
|
|
14994
|
+
createdAt: Date;
|
|
14995
|
+
updatedAt: Date;
|
|
14996
|
+
}
|
|
14997
|
+
}
|
|
14998
|
+
namespace AuthenticateAdmin {
|
|
14999
|
+
interface Subscription_data {
|
|
15000
|
+
name_space: string;
|
|
15001
|
+
grace_until: number;
|
|
15002
|
+
subscription_status: CompanyNamespace.Data["subscription_status"];
|
|
15003
|
+
}
|
|
15004
|
+
export interface Data {
|
|
15005
|
+
access_token: string;
|
|
15006
|
+
refresh_token: string;
|
|
15007
|
+
login_status: "success";
|
|
15008
|
+
name: string;
|
|
15009
|
+
teams: string[];
|
|
15010
|
+
photo?: string;
|
|
15011
|
+
permissions: UserPermissions;
|
|
15012
|
+
admin: string;
|
|
15013
|
+
owner: boolean;
|
|
15014
|
+
country: string;
|
|
15015
|
+
status: CompanyNamespace.Data["status"];
|
|
15016
|
+
industry: CompanyNamespace.Data["industry"];
|
|
15017
|
+
time_zone: string;
|
|
15018
|
+
is_test: boolean;
|
|
15019
|
+
strong_password: boolean;
|
|
15020
|
+
exp: number;
|
|
15021
|
+
modules: string[];
|
|
15022
|
+
app_code: string;
|
|
15023
|
+
country_code: string[];
|
|
15024
|
+
COMPANYGROUPS: {
|
|
15025
|
+
[key: string]: any;
|
|
15026
|
+
};
|
|
15027
|
+
subscription_data: Subscription_data[];
|
|
15028
|
+
suspended: boolean;
|
|
15029
|
+
nameSpace: string[];
|
|
15030
|
+
assessment_enforcement_state: "suggest" | "enforce" | "ignore";
|
|
15031
|
+
repzo_internal_user: boolean;
|
|
15032
|
+
}
|
|
15033
|
+
export {};
|
|
15034
|
+
}
|
|
15035
|
+
namespace AuthenticateRep {
|
|
15036
|
+
interface Data {
|
|
15037
|
+
access_token: string;
|
|
15038
|
+
refresh_token: string;
|
|
15039
|
+
login_status: "success";
|
|
15040
|
+
teams: string[];
|
|
15041
|
+
permissions: Rep.Data["permissions"];
|
|
15042
|
+
rep: string;
|
|
15043
|
+
identifier: number;
|
|
15044
|
+
exp: number;
|
|
15045
|
+
modules: string[];
|
|
15046
|
+
realm_token: string;
|
|
15047
|
+
app_code: string;
|
|
15048
|
+
country: string;
|
|
15049
|
+
country_code: string[];
|
|
15050
|
+
is_test: boolean;
|
|
15051
|
+
suspended: boolean;
|
|
15052
|
+
nameSpace: string[];
|
|
15053
|
+
}
|
|
15054
|
+
}
|
|
15055
|
+
namespace Authenticate {
|
|
15056
|
+
type Data = AuthenticateAdmin.Data | AuthenticateRep.Data;
|
|
15057
|
+
}
|
|
15058
|
+
namespace ResetCompanyNamespace {
|
|
15059
|
+
export type Services = "rep" | "client" | "product" | "teams" | "tag" | "warehouse" | "msl" | "msl_product" | "job_category" | "role" | "user_role" | "availability_msl" | "media" | "reminder" | "approval" | "custom_field" | "custom_status" | "return_reason" | "feedback_option" | "promotion" | "route" | "address" | "payment_term" | "speciality" | "client_channel" | "client_contact" | "client_location" | "client_status" | "tax" | "measureunits" | "measureunit_family" | "variant" | "brand" | "product_group" | "product_category" | "product_subcategory" | "product_modifier_group" | "product_modifier" | "price_list" | "price_list_item" | "asset" | "asset_unit" | "asset_type" | "workorder_category" | "workorder_request" | "workorder" | "workorder_alarm" | "comments_thread" | "thumbnail_storage" | "media_storage" | "form" | "banner" | "payment_method" | "shipping_zone" | "shipping_method" | "active_client" | "transaction" | "ledger_payment" | "ledger_goods" | "transfer" | "payment" | "refund" | "receiving_material" | "full_invoice" | "cart" | "cart_history" | "proforma" | "settlement" | "adjust_account" | "adjust_inventory" | "cycle" | "check" | "failed_linking_txn" | "failed_adjust_account" | "failed_adjust_inventory" | "failed_cart" | "failed_emails" | "failed_invoices" | "failed_payments" | "failed_proforma_invoices" | "failed_receiving_material" | "failed_refund" | "failed_settlement" | "failed_transfer" | "failed_transaction" | "failed_set_txn_alarm" | "target_group" | "target_rule" | "target_result" | "target_result_history" | "widget_dashboard" | "widget" | "line" | "classification_line" | "line_target" | "client_line" | "day" | "visit" | "activity_audit" | "activity_availability" | "activity_checkout_display" | "activity_feedback" | "activity_form_result" | "activity_note" | "activity_photo" | "activity_planogram" | "activity_secondary_display" | "activity_shelfshare" | "activity_task" | "item_status" | "item_status_type" | "job_result" | "click" | "events_log" | "activity_storecheck" | "custom_list" | "custom_list_item" | "storecheck_template" | "preset" | "retail_execution_previous_result" | "retail_execution_report_view" | "calendar" | "plan" | "integration_app" | "integration_action_log" | "integration_command_log" | "integration_trigger" | "scheduled_email" | "territory" | "territory_level" | "territory_template" | "notifications_center" | "bulk_import" | "email_history" | "big_report" | "history" | "bulk_export" | "generate_rule" | "workorder_portal" | "workorder_portal_link" | "print_workorder_portal_link" | "print_workorder_portal_link_options" | "quick_convert_to_pdf" | "variant_batch" | "form_v2" | "activity_form_v2" | "unSynced_log" | "aiApiHistory" | "bulk_convert_proforma" | "approval_request" | "workflow" | "workflow_version" | "workflow_execution" | "ocr_invoice_job" | "ocr_invoice_job_template" | "ocr_invoice_job_page" | "inventory_adjustment_reason" | "supplier" | "product_audit_trace" | "contract" | "contract_installment" | "old_activity_form_v2" | "old_activity_storecheck" | "bi_view" | "bi_bucket" | "old_bi_bucket" | "bi_view_buckets_total" | "bi_view_instance" | "bi_view_version" | "blank_photo_rep" | "failed_bi_bucket_log" | "failed_consume_bi_alarm" | "failed_set_bi_alarm" | "oauth2_tokens" | "report_ubl_invoice" | "client_ubl_info" | "invoice_alert" | "login_device" | "asset_part_type" | "asset_part" | "asset_part_unit" | "asset_part_transaction" | "asset_part_receival" | "asset_part_transfer" | "return_asset_part_unit" | "store_asset_part_unit" | "activity_ai_sales_order" | "ocr_invoice_job_group" | "ubl_health_check" | "ubl_integration" | "ubl_connection_attempts" | "ai_object_detection_dataset" | "ai_object_detection_label" | "ai_object_detection_task" | "ai_object_detection_model" | "ai_object_detection_model_version" | "promotions_group";
|
|
15060
|
+
type ServiceOptionMap = {
|
|
15061
|
+
[key in Services]: {
|
|
15062
|
+
checked: boolean;
|
|
15063
|
+
prevent_delete_without: Services[];
|
|
15064
|
+
};
|
|
15065
|
+
};
|
|
15066
|
+
type Status = "initiated" | "building_report_in_progress" | "building_report_completed" | "building_report_failed" | "reset_in_progress" | "reset_success" | "reset_failed";
|
|
15067
|
+
type Action = {
|
|
15068
|
+
service: Services;
|
|
15069
|
+
model: RepzoModel;
|
|
15070
|
+
method: "delete" | "update";
|
|
15071
|
+
update_command?: any;
|
|
15072
|
+
query?: any;
|
|
15073
|
+
estimated_count: number;
|
|
15074
|
+
};
|
|
15075
|
+
export interface CreateBody {
|
|
15076
|
+
creator?: Admin;
|
|
15077
|
+
nameSpace: string;
|
|
15078
|
+
company_namespace: string[];
|
|
15079
|
+
services: ServiceOptionMap;
|
|
15080
|
+
is_test_reset?: boolean;
|
|
15081
|
+
}
|
|
15082
|
+
export interface Data {
|
|
15083
|
+
_id: StringId;
|
|
15084
|
+
creator: Admin;
|
|
15085
|
+
executor?: Admin;
|
|
15086
|
+
company_namespace: string[];
|
|
15087
|
+
services: ServiceOptionMap;
|
|
15088
|
+
actions: Action[];
|
|
15089
|
+
message: string;
|
|
15090
|
+
status: Status;
|
|
15091
|
+
clients?: string[];
|
|
15092
|
+
reps?: string[];
|
|
15093
|
+
to?: number;
|
|
15094
|
+
is_test_reset?: boolean;
|
|
15095
|
+
createdAt: Date;
|
|
15096
|
+
updatedAt: Date;
|
|
15097
|
+
expired?: boolean;
|
|
15098
|
+
}
|
|
15099
|
+
export namespace Find {
|
|
15100
|
+
type Params = DefaultPaginationQueryParams & {
|
|
15101
|
+
_id?: StringId[] | StringId;
|
|
15102
|
+
search?: string;
|
|
15103
|
+
from_updatedAt?: number;
|
|
15104
|
+
to_updatedAt?: number;
|
|
15105
|
+
from_createdAt?: number;
|
|
15106
|
+
to_createdAt?: number;
|
|
15107
|
+
creator?: StringId[] | StringId;
|
|
15108
|
+
"creator._id"?: StringId[] | StringId;
|
|
15109
|
+
executor?: StringId[] | StringId;
|
|
15110
|
+
"executor._id"?: StringId[] | StringId;
|
|
15111
|
+
status?: Data["status"] | Data["status"][];
|
|
15112
|
+
is_test_reset?: boolean;
|
|
15113
|
+
sortBy?: {
|
|
15114
|
+
field: "_id" | "status";
|
|
15115
|
+
type: "asc" | "desc";
|
|
15116
|
+
}[];
|
|
15117
|
+
options?: boolean;
|
|
15118
|
+
};
|
|
15119
|
+
interface PaginatedResult extends DefaultPaginationResult {
|
|
15120
|
+
data: (Data & {
|
|
15121
|
+
expired?: boolean;
|
|
15122
|
+
})[];
|
|
15123
|
+
}
|
|
15124
|
+
type Result = PaginatedResult | ServiceOptionMap;
|
|
15125
|
+
}
|
|
15126
|
+
export namespace Get {
|
|
15127
|
+
type ID = string;
|
|
15128
|
+
type Params = {
|
|
15129
|
+
[key: string]: any;
|
|
15130
|
+
};
|
|
15131
|
+
type Result = Data & {
|
|
15132
|
+
expired?: boolean;
|
|
15133
|
+
};
|
|
15134
|
+
}
|
|
15135
|
+
export namespace Create {
|
|
15136
|
+
type Body = CreateBody;
|
|
15137
|
+
type Result = Data;
|
|
15138
|
+
}
|
|
15139
|
+
export namespace Update {
|
|
15140
|
+
type ID = string;
|
|
15141
|
+
type Result = Data;
|
|
15142
|
+
}
|
|
15143
|
+
export {};
|
|
15144
|
+
}
|
|
15145
|
+
namespace TestResetCompanyNamespace {
|
|
15146
|
+
namespace Find {
|
|
15147
|
+
type Params = ResetCompanyNamespace.Find.Params;
|
|
15148
|
+
type Result = ResetCompanyNamespace.Find.Result;
|
|
15149
|
+
}
|
|
15150
|
+
namespace Get {
|
|
15151
|
+
type ID = string;
|
|
15152
|
+
type Params = ResetCompanyNamespace.Get.Params;
|
|
15153
|
+
type Result = ResetCompanyNamespace.Get.Result;
|
|
15154
|
+
}
|
|
15155
|
+
namespace Create {
|
|
15156
|
+
type Body = ResetCompanyNamespace.Create.Body;
|
|
15157
|
+
type Result = ResetCompanyNamespace.Create.Result;
|
|
15158
|
+
}
|
|
15159
|
+
namespace Update {
|
|
15160
|
+
type ID = string;
|
|
15161
|
+
type Result = ResetCompanyNamespace.Update.Result;
|
|
15162
|
+
}
|
|
15163
|
+
}
|
|
14888
15164
|
}
|
|
14889
15165
|
export type StringId = string;
|
|
14890
15166
|
export type NameSpaces = string[];
|
|
@@ -14951,4 +15227,18 @@ interface ActivityAdminNote {
|
|
|
14951
15227
|
admin_id: string;
|
|
14952
15228
|
time: number;
|
|
14953
15229
|
}
|
|
15230
|
+
interface UserPermissions {
|
|
15231
|
+
admin_can_edit_client_sales_data: boolean;
|
|
15232
|
+
admin_can_bypass_financial_limits_sales_order: boolean;
|
|
15233
|
+
admin_can_bypass_financial_limits_create_invoice: boolean;
|
|
15234
|
+
}
|
|
15235
|
+
type RepzoModel = "socialPlatform" | "activityAiSalesOrder" | "reportUblInvoice" | "ublIntegrationSettings" | "ublIntegration" | "ublConnectionAttempts" | "quickConvertToPdf" | "warehouses" | "transfers" | "transactions" | "taxes" | "productvariations" | "products" | "pricelistsitems" | "pricelists" | "payments" | "ledger_payments" | "mslsales" | "mslproducts" | "measureunits" | "measureunitfamilies" | "invoice" | "ledger_goods" | "fullinvoices" | "checks" | "clients" | "activities" | "bigReports" | "admins"
|
|
15236
|
+
/**
|
|
15237
|
+
* @deprecated representatives shall be used
|
|
15238
|
+
*/
|
|
15239
|
+
| "rep" | "representatives" | "companies" | "banks" | "bankslists" | "productcategories" | "productSubCategory" | "defaultbanklist" | "permissions" | "roles" | "shipping_method" | "availability_msl" | "tags" | "feedbacks" | "feedbackoptions" | "medias" | "visits" | "job-category" | "channel" | "teams" | "modifiersGroup" | "productbrands" | "paymentTerms" | "plan" | "modifiersGroup" | "productbrands" | "notes" | "tasks" | "photos" | "forms" | "form" | "audits" | "availability" | "form" | "widgets-filter" | "routes" | "target-result" | "widget" | "calendar" | "bulkImport" | "target-rule" | "productGroups" | "proformas" | "proforma" | "days" | "shelfShare" | "customFields" | "clientStatus" | "adjustAccount" | "librarian_widget" | "settings" | "classificationLine" | "line" | "speciality" | "lineTarget" | "clientLine" | "receivingMaterial" | "sv.activitiesstorechecks" | "storeCheckTemplate" | "retailExecutionPreset" | "promotions" | "custom-list" | "custom-list-item" | "itemStatus" | "itemStatusType" | "customStatus" | "intgAvailableCategories" | "intgAvailableApps" | "intgApps" | "returnReason" | "clientContact" | "clientLocation" | "workorderCategory" | "asset" | "assetType" | "assetUnit" | "workorder" | "mediaStorage" | "workorderRequest" | "thumbnailStorage" | "commentsThread" | "workorderPortal" | "workorderPortalLink" | "oauth2Apps" | "printWorkorderPortalLink" | "printWorkorderPortalLinkOptions" | "refunds" | "oauth2Tokens" | "businessApp" | "user_role" | "product_modifier" | "address" | "reminders" | "approval" | "refund" | "cart" | "cart_history" | "settlement" | "adjustInventory" | "cycle" | "check" | "failed_linking_txn" | "failed_svix_event" | "failed_adjust_account" | "failed_adjust_inventory" | "failed_cart" | "failed_emails" | "failed_invoices" | "failed_payments" | "failed_proforma_invoices" | "failed_receiving_material" | "failed_refund" | "failed_transfer" | "failed_transaction" | "failed_set_txn_alarm" | "failed_settlement" | "banner" | "shipping_zone" | "paymentMethod" | "target_group" | "target_result_history" | "widget_dashboard" | "secondary" | "planogram" | "checkout" | "retailExecutionPreviousResult" | "retailExecutionReportView" | "clicks" | "jobResult" | "workorderAlarm" | "intgActionLogs" | "intgCommandLogs" | "intgTrigger" | "scheduleEmail" | "territory" | "territoryLevel" | "territoryTemplate" | "activeClient" | "notificationsCenter" | "emailHistory" | "history" | "bulkExport" | "generateRule" | "asset-unit" | "client-location" | "workorder-request" | "oauth2Tokens" | "businessPlan" | "businessPlanFeature" | "modules" | "companyGroup" | "billingSubscription" | "widgetCategory" | "module-custom-validator" | "workflowTriggerOption" | "workflow" | "workflowActionOption" | "workflowActionAttributeOption" | "workflowVersion" | "workflowExecution" | "adminAbility" | "smsGateway" | "approvalRequest" | "formV2" | "activityFormV2Result" | "maxioAccountingCode" | "syncMaxioSubscriptionSummaries" | "businessAddOn" | "variantBatch" | "eventsLog" | "unSyncedLog" | "aiApiHistory" | "bulkConvertProforma" | "biView" | "biViewVersion" | "biViewInstance" | "biBucket" | "biViewBucketsTotal" | "contract" | "contractInstallment" | "clientUblInfo" | "supplier" | "ocrInvoiceJob" | "ocrInvoiceJobGroup" | "ocrInvoiceJobTemplate" | "ocrInvoiceJobPage" | "inventoryAdjustmentReason" | "productAuditTrace" | "blankPhotoRep" | "oldActivityFormV2Result" | "oldActivityStorecheck" | "oldBiBucket" | "failedBiBucketLog" | "failedConsumeBiAlarm" | "failedSetBiAlarm" | "oauth2Tokens" | "ublHealthCheck" | "invoiceAlert" | "ocrInvoiceJobPages" | "loginDevice" | "aiObjectDetectionDataset" | "aiObjectDetectionLabel" | "aiObjectDetectionModel" | "aiObjectDetectionModelVersion" | "aiObjectDetectionTask" | "assetPartType"
|
|
15240
|
+
/**
|
|
15241
|
+
* @deprecated assetPart shall be used
|
|
15242
|
+
*/
|
|
15243
|
+
| "asset-part" | "assetPart" | "assetPartUnit" | "assetPartReceival" | "assetPartTransfer" | "assetPartTransaction" | "returnAssetPartUnit" | "storeAssetPartUnit" | "aiApiLimits" | "aiHistory" | "aiModelPrices" | "promotionsGroup" | "medias";
|
|
14954
15244
|
export {};
|