repzo 1.0.280 → 1.0.282
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/index.d.ts +3 -3
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +20 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/types/index.ts +105 -353
- package/src/types/report-type.ts +1 -3
package/lib/index.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ export declare const end_points: {
|
|
|
133
133
|
readonly SCHEDULED_EMAILS: "scheduled-emails";
|
|
134
134
|
readonly DATA_FILE_WAREHOUSE: "data-file-warehouse";
|
|
135
135
|
readonly DATA_SESSION: "data-session";
|
|
136
|
-
readonly ADMIN: "
|
|
136
|
+
readonly ADMIN: "admins";
|
|
137
137
|
readonly JOB_CATEGORY: "job-category";
|
|
138
138
|
readonly JOB_CATEGORY_AUTOSKIP_ANALYZE: "job-category-autoskip-analyze";
|
|
139
139
|
readonly VISIT_REASON: "visit-reason";
|
|
@@ -290,7 +290,7 @@ export default class Repzo {
|
|
|
290
290
|
readonly SCHEDULED_EMAILS: "scheduled-emails";
|
|
291
291
|
readonly DATA_FILE_WAREHOUSE: "data-file-warehouse";
|
|
292
292
|
readonly DATA_SESSION: "data-session";
|
|
293
|
-
readonly ADMIN: "
|
|
293
|
+
readonly ADMIN: "admins";
|
|
294
294
|
readonly JOB_CATEGORY: "job-category";
|
|
295
295
|
readonly JOB_CATEGORY_AUTOSKIP_ANALYZE: "job-category-autoskip-analyze";
|
|
296
296
|
readonly VISIT_REASON: "visit-reason";
|
|
@@ -1326,7 +1326,7 @@ export default class Repzo {
|
|
|
1326
1326
|
remove: (id: Service.DataSession.Update.ID) => Promise<Service.DataSession.Remove.Result>;
|
|
1327
1327
|
};
|
|
1328
1328
|
admin: {
|
|
1329
|
-
_path: "
|
|
1329
|
+
_path: "admins";
|
|
1330
1330
|
find: (params?: Service.Admin.Find.Params) => Promise<Service.Admin.Find.Result>;
|
|
1331
1331
|
get: (id: Service.Admin.Get.ID, params?: Service.Admin.Get.Params) => Promise<Service.Admin.Get.Result>;
|
|
1332
1332
|
create: (body: Service.Admin.Create.Body) => Promise<Service.Admin.Create.Result>;
|
package/lib/index.js
CHANGED
|
@@ -135,7 +135,7 @@ export const end_points = {
|
|
|
135
135
|
SCHEDULED_EMAILS: "scheduled-emails",
|
|
136
136
|
DATA_FILE_WAREHOUSE: "data-file-warehouse",
|
|
137
137
|
DATA_SESSION: "data-session",
|
|
138
|
-
ADMIN: "
|
|
138
|
+
ADMIN: "admins",
|
|
139
139
|
JOB_CATEGORY: "job-category",
|
|
140
140
|
JOB_CATEGORY_AUTOSKIP_ANALYZE: "job-category-autoskip-analyze",
|
|
141
141
|
VISIT_REASON: "visit-reason",
|
package/lib/types/index.d.ts
CHANGED
|
@@ -440,6 +440,7 @@ export declare namespace Service {
|
|
|
440
440
|
status?: StringId;
|
|
441
441
|
job_category?: StringId[];
|
|
442
442
|
availability_msl?: StringId[];
|
|
443
|
+
assigned_msl?: StringId[];
|
|
443
444
|
territory?: StringId;
|
|
444
445
|
sv_priceList?: StringId;
|
|
445
446
|
assigned_media?: StringId[];
|
|
@@ -523,6 +524,7 @@ export declare namespace Service {
|
|
|
523
524
|
status?: StringId;
|
|
524
525
|
job_category?: StringId[];
|
|
525
526
|
availability_msl?: StringId[];
|
|
527
|
+
assigned_msl?: StringId[];
|
|
526
528
|
territory?: StringId;
|
|
527
529
|
sv_priceList?: StringId;
|
|
528
530
|
assigned_media?: StringId[];
|
|
@@ -587,6 +589,7 @@ export declare namespace Service {
|
|
|
587
589
|
sales?: Sales & {
|
|
588
590
|
logo_media?: StringId | MediaPopulated;
|
|
589
591
|
};
|
|
592
|
+
assigned_msl?: StringId[] | Pick<Msl.Data, "_id" | "name">[];
|
|
590
593
|
};
|
|
591
594
|
export namespace Find {
|
|
592
595
|
type Params = DefaultPaginationQueryParams & {
|
|
@@ -603,7 +606,8 @@ export declare namespace Service {
|
|
|
603
606
|
tags?: string[] | string;
|
|
604
607
|
_id?: string[] | string;
|
|
605
608
|
assigned_to?: string[] | string;
|
|
606
|
-
availability_msl?:
|
|
609
|
+
availability_msl?: StringId[] | StringId;
|
|
610
|
+
assigned_msl?: StringId[] | StringId;
|
|
607
611
|
status?: string[] | string;
|
|
608
612
|
CLIENT_TAGS?: string[] | string;
|
|
609
613
|
AREA_TAGS?: string[] | string;
|
|
@@ -2262,6 +2266,7 @@ export declare namespace Service {
|
|
|
2262
2266
|
createdAt: string;
|
|
2263
2267
|
updatedAt: string;
|
|
2264
2268
|
}
|
|
2269
|
+
type Data = MslSchema;
|
|
2265
2270
|
interface CreateBody {
|
|
2266
2271
|
name: string;
|
|
2267
2272
|
disabled: boolean;
|
|
@@ -12307,6 +12312,20 @@ export declare namespace Service {
|
|
|
12307
12312
|
print_payment_allowance_period_in_days?: number;
|
|
12308
12313
|
freshness_window_in_minutes: number;
|
|
12309
12314
|
bypass_freshness_window_code: string;
|
|
12315
|
+
invoice_delivery_mode: "transactional" | "non_transactional" | "optional";
|
|
12316
|
+
default_invoice_delivery_mode: "transactional" | "non_transactional";
|
|
12317
|
+
invoice_source_msl: {
|
|
12318
|
+
level: "client" | "rep";
|
|
12319
|
+
active: boolean;
|
|
12320
|
+
}[];
|
|
12321
|
+
proforma_source_msl: {
|
|
12322
|
+
level: "all_products" | "client" | "rep";
|
|
12323
|
+
active: boolean;
|
|
12324
|
+
}[];
|
|
12325
|
+
transfer_source_msl: {
|
|
12326
|
+
level: "all_products" | "rep";
|
|
12327
|
+
active: boolean;
|
|
12328
|
+
}[];
|
|
12310
12329
|
}
|
|
12311
12330
|
interface WorkorderSettings {
|
|
12312
12331
|
workorder_teams_follow_assigned_to?: boolean;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -145,7 +145,7 @@ export const end_points = {
|
|
|
145
145
|
SCHEDULED_EMAILS: "scheduled-emails",
|
|
146
146
|
DATA_FILE_WAREHOUSE: "data-file-warehouse",
|
|
147
147
|
DATA_SESSION: "data-session",
|
|
148
|
-
ADMIN: "
|
|
148
|
+
ADMIN: "admins",
|
|
149
149
|
JOB_CATEGORY: "job-category",
|
|
150
150
|
JOB_CATEGORY_AUTOSKIP_ANALYZE: "job-category-autoskip-analyze",
|
|
151
151
|
VISIT_REASON: "visit-reason",
|
package/src/types/index.ts
CHANGED
|
@@ -11,9 +11,7 @@ export interface Params {
|
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
}
|
|
13
13
|
export type ReportType =
|
|
14
|
-
|
|
15
|
-
| "retail-execution-gallery"
|
|
16
|
-
| "from-v2-gallery";
|
|
14
|
+
"sales-analytics" | "retail-execution-gallery" | "from-v2-gallery";
|
|
17
15
|
export interface Data {
|
|
18
16
|
[key: string]: any;
|
|
19
17
|
}
|
|
@@ -355,22 +353,11 @@ export interface Route {
|
|
|
355
353
|
}
|
|
356
354
|
export type Priority = 0 | 1 | 2 | 3;
|
|
357
355
|
export type WorkorderStatus =
|
|
358
|
-
| "
|
|
359
|
-
| "done"
|
|
360
|
-
| "cancelled"
|
|
361
|
-
| "inprogress"
|
|
362
|
-
| "onhold";
|
|
356
|
+
"open" | "done" | "cancelled" | "inprogress" | "onhold";
|
|
363
357
|
|
|
364
358
|
export type Priority_human = "none" | "low" | "medium" | "high";
|
|
365
359
|
export type Day =
|
|
366
|
-
| "
|
|
367
|
-
| "Mon"
|
|
368
|
-
| "Tue"
|
|
369
|
-
| "Wed"
|
|
370
|
-
| "Thu"
|
|
371
|
-
| "Fri"
|
|
372
|
-
| "Sat"
|
|
373
|
-
| string;
|
|
360
|
+
"Sun" | "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat" | string;
|
|
374
361
|
|
|
375
362
|
export type FieldType =
|
|
376
363
|
| "Text"
|
|
@@ -508,12 +495,7 @@ export type DocumentTypes =
|
|
|
508
495
|
| "ocrInvoiceJobGroup";
|
|
509
496
|
|
|
510
497
|
export type PrintTypes =
|
|
511
|
-
| "
|
|
512
|
-
| "form"
|
|
513
|
-
| "invoice"
|
|
514
|
-
| "proforma"
|
|
515
|
-
| "settlement"
|
|
516
|
-
| "formV2";
|
|
498
|
+
"workorder" | "form" | "invoice" | "proforma" | "settlement" | "formV2";
|
|
517
499
|
|
|
518
500
|
export type InvoiceFontStyles =
|
|
519
501
|
| "InvoiceHeaderTitle"
|
|
@@ -674,6 +656,7 @@ export namespace Service {
|
|
|
674
656
|
status?: StringId;
|
|
675
657
|
job_category?: StringId[];
|
|
676
658
|
availability_msl?: StringId[];
|
|
659
|
+
assigned_msl?: StringId[];
|
|
677
660
|
territory?: StringId;
|
|
678
661
|
sv_priceList?: StringId;
|
|
679
662
|
assigned_media?: StringId[];
|
|
@@ -754,6 +737,7 @@ export namespace Service {
|
|
|
754
737
|
status?: StringId;
|
|
755
738
|
job_category?: StringId[];
|
|
756
739
|
availability_msl?: StringId[];
|
|
740
|
+
assigned_msl?: StringId[];
|
|
757
741
|
territory?: StringId;
|
|
758
742
|
sv_priceList?: StringId;
|
|
759
743
|
assigned_media?: StringId[];
|
|
@@ -817,11 +801,9 @@ export namespace Service {
|
|
|
817
801
|
|
|
818
802
|
type ClientSchemaWithPopulatedKeys = ClientSchema & {
|
|
819
803
|
assigned_products?:
|
|
820
|
-
|
|
|
821
|
-
| Pick<Product.ProductSchema, "_id" | "name">[];
|
|
804
|
+
StringId[] | Pick<Product.ProductSchema, "_id" | "name">[];
|
|
822
805
|
assigned_product_groups?:
|
|
823
|
-
|
|
|
824
|
-
| Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
|
|
806
|
+
StringId | Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
|
|
825
807
|
teams?: StringId[] | Pick<Team.TeamSchema, "_id" | "name">[];
|
|
826
808
|
contacts?: StringId[] | ClientContact.ClientContactSchema[];
|
|
827
809
|
speciality?: StringId[] | Speciality.SpecialitySchema[];
|
|
@@ -830,8 +812,7 @@ export namespace Service {
|
|
|
830
812
|
price_tag?: StringId | Tag.TagSchema;
|
|
831
813
|
job_category?: StringId[] | JobCategory.JobCategorySchema[];
|
|
832
814
|
sv_priceList?:
|
|
833
|
-
|
|
|
834
|
-
| Pick<PriceList.PriceListSchema, "_id" | "name">[];
|
|
815
|
+
StringId | Pick<PriceList.PriceListSchema, "_id" | "name">[];
|
|
835
816
|
chain?:
|
|
836
817
|
| StringId
|
|
837
818
|
| Pick<
|
|
@@ -840,14 +821,11 @@ export namespace Service {
|
|
|
840
821
|
>;
|
|
841
822
|
channel?: StringId | Channel.ChannelSchema;
|
|
842
823
|
assigned_forms_v2_templates?:
|
|
843
|
-
|
|
|
844
|
-
| Pick<FormPopulated, "_id" | "name">[];
|
|
824
|
+
StringId[] | Pick<FormPopulated, "_id" | "name">[];
|
|
845
825
|
assigned_clm_presentations?:
|
|
846
|
-
|
|
|
847
|
-
| Pick<CLMPresentation.Data, "_id" | "name">[];
|
|
826
|
+
StringId[] | Pick<CLMPresentation.Data, "_id" | "name">[];
|
|
848
827
|
retail_execution_templates?:
|
|
849
|
-
|
|
|
850
|
-
| Pick<RetailExecutionTemplatePopulated, "_id" | "name">[];
|
|
828
|
+
StringId[] | Pick<RetailExecutionTemplatePopulated, "_id" | "name">[];
|
|
851
829
|
media?: StringId[] | PopulatedMediaStorage[];
|
|
852
830
|
cover_photo?: StringId | PopulatedMediaStorage;
|
|
853
831
|
paymentTerm?:
|
|
@@ -855,6 +833,7 @@ export namespace Service {
|
|
|
855
833
|
| Pick<PaymentTerm.PaymentTermSchema, "_id" | "name" | "due_days">;
|
|
856
834
|
sales?: Sales & { logo_media?: StringId | MediaPopulated };
|
|
857
835
|
// availability_msl?: StringId[] | AvailabilityMsl.AvailabilityMslSchema[];
|
|
836
|
+
assigned_msl?: StringId[] | Pick<Msl.Data, "_id" | "name">[];
|
|
858
837
|
};
|
|
859
838
|
|
|
860
839
|
export namespace Find {
|
|
@@ -872,7 +851,8 @@ export namespace Service {
|
|
|
872
851
|
tags?: string[] | string;
|
|
873
852
|
_id?: string[] | string;
|
|
874
853
|
assigned_to?: string[] | string;
|
|
875
|
-
availability_msl?:
|
|
854
|
+
availability_msl?: StringId[] | StringId;
|
|
855
|
+
assigned_msl?: StringId[] | StringId;
|
|
876
856
|
status?: string[] | string;
|
|
877
857
|
CLIENT_TAGS?: string[] | string;
|
|
878
858
|
AREA_TAGS?: string[] | string;
|
|
@@ -1063,8 +1043,7 @@ export namespace Service {
|
|
|
1063
1043
|
brand?: string | Brand.BrandSchema;
|
|
1064
1044
|
measureunit_family?: string | MeasureUnitFamily.MeasureUnitFamilySchema;
|
|
1065
1045
|
product_groups?:
|
|
1066
|
-
|
|
|
1067
|
-
| Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
|
|
1046
|
+
string[] | Pick<ProductGroup.ProductGroupSchema, "_id" | "name">[];
|
|
1068
1047
|
variants?: Variant.VariantSchema[];
|
|
1069
1048
|
defaultVariant?: Variant.VariantSchema;
|
|
1070
1049
|
assigned_media?: string | Media.MediaSchema;
|
|
@@ -1213,8 +1192,7 @@ export namespace Service {
|
|
|
1213
1192
|
|
|
1214
1193
|
type VariantWithPopulatedKeys = VariantSchema & {
|
|
1215
1194
|
modifiers_groups?:
|
|
1216
|
-
|
|
|
1217
|
-
| ProductModifiersGroup.ProductModifiersGroupSchema[];
|
|
1195
|
+
string[] | ProductModifiersGroup.ProductModifiersGroupSchema[];
|
|
1218
1196
|
product?: string | Product.ProductSchema;
|
|
1219
1197
|
};
|
|
1220
1198
|
export namespace Find {
|
|
@@ -1847,14 +1825,7 @@ export namespace Service {
|
|
|
1847
1825
|
|
|
1848
1826
|
export namespace Media {
|
|
1849
1827
|
type MediaType =
|
|
1850
|
-
| "
|
|
1851
|
-
| "pptx"
|
|
1852
|
-
| "pdf"
|
|
1853
|
-
| "jpeg"
|
|
1854
|
-
| "jpg"
|
|
1855
|
-
| "png"
|
|
1856
|
-
| "doc"
|
|
1857
|
-
| "docx";
|
|
1828
|
+
"ppt" | "pptx" | "pdf" | "jpeg" | "jpg" | "png" | "doc" | "docx";
|
|
1858
1829
|
export interface MediaSchema {
|
|
1859
1830
|
_id: string;
|
|
1860
1831
|
name: string;
|
|
@@ -2638,13 +2609,7 @@ export namespace Service {
|
|
|
2638
2609
|
job_duration?: number;
|
|
2639
2610
|
}
|
|
2640
2611
|
export type PopulatedKeys =
|
|
2641
|
-
| "
|
|
2642
|
-
| "tags"
|
|
2643
|
-
| "client"
|
|
2644
|
-
| "user"
|
|
2645
|
-
| "route"
|
|
2646
|
-
| "visit"
|
|
2647
|
-
| "template_id";
|
|
2612
|
+
"teams" | "tags" | "client" | "user" | "route" | "visit" | "template_id";
|
|
2648
2613
|
|
|
2649
2614
|
export type ActivityStoreCheckWithPopulatedKeysSchema =
|
|
2650
2615
|
ActivityStorecheckSchema & {
|
|
@@ -2655,8 +2620,7 @@ export namespace Service {
|
|
|
2655
2620
|
route_populated: Route.RouteSchema | string;
|
|
2656
2621
|
visit_populated: Visit.VisitSchema | string;
|
|
2657
2622
|
template_id_populated:
|
|
2658
|
-
|
|
2659
|
-
| string;
|
|
2623
|
+
StorecheckTemplate.StorecheckTemplateSchema | string;
|
|
2660
2624
|
};
|
|
2661
2625
|
|
|
2662
2626
|
export namespace Find {
|
|
@@ -2713,6 +2677,7 @@ export namespace Service {
|
|
|
2713
2677
|
createdAt: string;
|
|
2714
2678
|
updatedAt: string;
|
|
2715
2679
|
}
|
|
2680
|
+
export type Data = MslSchema;
|
|
2716
2681
|
export interface CreateBody {
|
|
2717
2682
|
name: string;
|
|
2718
2683
|
disabled: boolean;
|
|
@@ -3077,10 +3042,7 @@ export namespace Service {
|
|
|
3077
3042
|
form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
|
|
3078
3043
|
assigned_forms_v2?: string[];
|
|
3079
3044
|
retail_execution_template_option?:
|
|
3080
|
-
| "
|
|
3081
|
-
| "client_assigned"
|
|
3082
|
-
| "assigned"
|
|
3083
|
-
| "none";
|
|
3045
|
+
"all" | "client_assigned" | "assigned" | "none";
|
|
3084
3046
|
assigned_retail_execution_templates?: string[];
|
|
3085
3047
|
clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
3086
3048
|
assigned_clm_presentations?: string[];
|
|
@@ -3137,10 +3099,7 @@ export namespace Service {
|
|
|
3137
3099
|
form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
|
|
3138
3100
|
assigned_forms_v2?: string[];
|
|
3139
3101
|
retail_execution_template_option?:
|
|
3140
|
-
| "
|
|
3141
|
-
| "client_assigned"
|
|
3142
|
-
| "assigned"
|
|
3143
|
-
| "none";
|
|
3102
|
+
"all" | "client_assigned" | "assigned" | "none";
|
|
3144
3103
|
assigned_retail_execution_templates?: string[];
|
|
3145
3104
|
clm_presentation_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
3146
3105
|
assigned_clm_presentations?: string[];
|
|
@@ -3298,9 +3257,7 @@ export namespace Service {
|
|
|
3298
3257
|
"settings.item_status_per_visit_limit"?: number;
|
|
3299
3258
|
"settings.location_permission"?: "always_allow" | "while_using";
|
|
3300
3259
|
"settings.activities_report_scope"?:
|
|
3301
|
-
| "
|
|
3302
|
-
| "team"
|
|
3303
|
-
| "company_namespace";
|
|
3260
|
+
"self" | "team" | "company_namespace";
|
|
3304
3261
|
"settings.maximum_cash_outstanding_settlement_balance_to_start_day"?: number;
|
|
3305
3262
|
"settings.maximum_check_outstanding_settlement_balance_to_start_day"?: number;
|
|
3306
3263
|
"settings.maximum_total_outstanding_settlement_balance_to_start_day"?: number;
|
|
@@ -3318,16 +3275,10 @@ export namespace Service {
|
|
|
3318
3275
|
form_v2_option?: "all" | "none" | "assigned" | "client_assigned";
|
|
3319
3276
|
assigned_forms_v2?: StringId | StringId[];
|
|
3320
3277
|
retail_execution_template_option?:
|
|
3321
|
-
| "
|
|
3322
|
-
| "client_assigned"
|
|
3323
|
-
| "assigned"
|
|
3324
|
-
| "none";
|
|
3278
|
+
"all" | "client_assigned" | "assigned" | "none";
|
|
3325
3279
|
assigned_retail_execution_templates?: StringId | StringId[];
|
|
3326
3280
|
clm_presentation_option?:
|
|
3327
|
-
| "
|
|
3328
|
-
| "client_assigned"
|
|
3329
|
-
| "assigned"
|
|
3330
|
-
| "none";
|
|
3281
|
+
"all" | "client_assigned" | "assigned" | "none";
|
|
3331
3282
|
assigned_clm_presentations?: StringId | StringId[];
|
|
3332
3283
|
media?: string | string[];
|
|
3333
3284
|
cover_photo?: string;
|
|
@@ -3487,12 +3438,7 @@ export namespace Service {
|
|
|
3487
3438
|
enable_auto_skip_interval_conditions?: boolean;
|
|
3488
3439
|
occurrences_per_interval?: number;
|
|
3489
3440
|
interval?:
|
|
3490
|
-
| "
|
|
3491
|
-
| "week"
|
|
3492
|
-
| "month"
|
|
3493
|
-
| "year"
|
|
3494
|
-
| "life_time"
|
|
3495
|
-
| "last_30_days";
|
|
3441
|
+
"day" | "week" | "month" | "year" | "life_time" | "last_30_days";
|
|
3496
3442
|
per_client?: boolean;
|
|
3497
3443
|
per_rep?: boolean;
|
|
3498
3444
|
enable_auto_skip_excluded_clients?: boolean;
|
|
@@ -4413,15 +4359,7 @@ export namespace Service {
|
|
|
4413
4359
|
key: string;
|
|
4414
4360
|
value: any[];
|
|
4415
4361
|
operator:
|
|
4416
|
-
| "
|
|
4417
|
-
| "lt"
|
|
4418
|
-
| "gte"
|
|
4419
|
-
| "gt"
|
|
4420
|
-
| "eq"
|
|
4421
|
-
| "ne"
|
|
4422
|
-
| "in"
|
|
4423
|
-
| "nin"
|
|
4424
|
-
| "search";
|
|
4362
|
+
"lte" | "lt" | "gte" | "gt" | "eq" | "ne" | "in" | "nin" | "search";
|
|
4425
4363
|
id?: string;
|
|
4426
4364
|
}
|
|
4427
4365
|
interface Element {
|
|
@@ -4824,10 +4762,7 @@ export namespace Service {
|
|
|
4824
4762
|
appliedCount: number;
|
|
4825
4763
|
sorting: "cheapest" | "expensive";
|
|
4826
4764
|
enforcement_mode:
|
|
4827
|
-
| "
|
|
4828
|
-
| "all"
|
|
4829
|
-
| "gift_in_inventory"
|
|
4830
|
-
| "gift";
|
|
4765
|
+
"all_in_inventory" | "all" | "gift_in_inventory" | "gift";
|
|
4831
4766
|
calculate_hidden_price: boolean;
|
|
4832
4767
|
usage_limit?: number;
|
|
4833
4768
|
usage_limit_per_rep?: number;
|
|
@@ -5210,9 +5145,7 @@ export namespace Service {
|
|
|
5210
5145
|
asset_unit?: string;
|
|
5211
5146
|
auto_closed_by_geofence?: boolean;
|
|
5212
5147
|
auto_closed_by_geofence_reason:
|
|
5213
|
-
| "
|
|
5214
|
-
| "low_accuracy"
|
|
5215
|
-
| "location_turned_off";
|
|
5148
|
+
"out_of_geofence" | "low_accuracy" | "location_turned_off";
|
|
5216
5149
|
company_namespace: string[];
|
|
5217
5150
|
option_id?: string;
|
|
5218
5151
|
invoice_total?: number;
|
|
@@ -5362,9 +5295,7 @@ export namespace Service {
|
|
|
5362
5295
|
asset_unit?: string;
|
|
5363
5296
|
auto_closed_by_geofence?: boolean;
|
|
5364
5297
|
auto_closed_by_geofence_reason?:
|
|
5365
|
-
| "
|
|
5366
|
-
| "low_accuracy"
|
|
5367
|
-
| "location_turned_off";
|
|
5298
|
+
"out_of_geofence" | "low_accuracy" | "location_turned_off";
|
|
5368
5299
|
company_namespace?: string[];
|
|
5369
5300
|
option_id?: string;
|
|
5370
5301
|
invoice_total?: number;
|
|
@@ -5617,10 +5548,7 @@ export namespace Service {
|
|
|
5617
5548
|
feed_back_option?: string;
|
|
5618
5549
|
}
|
|
5619
5550
|
export type PopulatedKeys =
|
|
5620
|
-
| "
|
|
5621
|
-
| "route"
|
|
5622
|
-
| "visit_id"
|
|
5623
|
-
| "feed_back_option";
|
|
5551
|
+
"teams" | "route" | "visit_id" | "feed_back_option";
|
|
5624
5552
|
|
|
5625
5553
|
export type ActivityFeedbackV2SchemaWithPopulatedKeys =
|
|
5626
5554
|
ActivityFeedbackV2Schema & {
|
|
@@ -5628,8 +5556,7 @@ export namespace Service {
|
|
|
5628
5556
|
route_populated?: string | Route.RouteSchema;
|
|
5629
5557
|
visit_id_populated?: string | Visit.VisitSchema;
|
|
5630
5558
|
feed_back_option_populated?:
|
|
5631
|
-
|
|
|
5632
|
-
| FeedbackOption.FeedbackOptionSchema;
|
|
5559
|
+
string | FeedbackOption.FeedbackOptionSchema;
|
|
5633
5560
|
};
|
|
5634
5561
|
|
|
5635
5562
|
export namespace Find {
|
|
@@ -6461,8 +6388,7 @@ export namespace Service {
|
|
|
6461
6388
|
name?: string | string[];
|
|
6462
6389
|
default_priority?: Default_Priority | Default_Priority[];
|
|
6463
6390
|
default_priority_human?:
|
|
6464
|
-
| Default_Priority_human
|
|
6465
|
-
| Default_Priority_human[];
|
|
6391
|
+
Default_Priority_human | Default_Priority_human[];
|
|
6466
6392
|
default_workorder_categories?: StringId | StringId[];
|
|
6467
6393
|
formV2?: StringId | StringId[];
|
|
6468
6394
|
product_groups?: StringId | StringId[];
|
|
@@ -7750,11 +7676,9 @@ export namespace Service {
|
|
|
7750
7676
|
variant: {
|
|
7751
7677
|
product_name: string;
|
|
7752
7678
|
variant_id:
|
|
7753
|
-
|
|
|
7754
|
-
| Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
|
|
7679
|
+
string | Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
|
|
7755
7680
|
product_id:
|
|
7756
|
-
|
|
|
7757
|
-
| Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
|
|
7681
|
+
string | Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
|
|
7758
7682
|
variant_name: string;
|
|
7759
7683
|
listed_price: number;
|
|
7760
7684
|
variant_local_name?: string;
|
|
@@ -7817,11 +7741,9 @@ export namespace Service {
|
|
|
7817
7741
|
variant: {
|
|
7818
7742
|
product_name: string;
|
|
7819
7743
|
variant_id:
|
|
7820
|
-
|
|
|
7821
|
-
| Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
|
|
7744
|
+
string | Pick<Variant.VariantSchema, "sku" | "_id" | "barcode">;
|
|
7822
7745
|
product_id:
|
|
7823
|
-
|
|
|
7824
|
-
| Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
|
|
7746
|
+
string | Pick<Product.ProductSchema, "sku" | "_id" | "barcode">;
|
|
7825
7747
|
variant_name: string;
|
|
7826
7748
|
listed_price: number;
|
|
7827
7749
|
variant_local_name?: string;
|
|
@@ -9324,11 +9246,7 @@ export namespace Service {
|
|
|
9324
9246
|
type TransferType = "load" | "unload";
|
|
9325
9247
|
type PopulatedKeys = "custom_status" | "teams";
|
|
9326
9248
|
type TransferStatus =
|
|
9327
|
-
| "
|
|
9328
|
-
| "approved"
|
|
9329
|
-
| "processing"
|
|
9330
|
-
| "rejected"
|
|
9331
|
-
| "processed";
|
|
9249
|
+
"pending" | "approved" | "processing" | "rejected" | "processed";
|
|
9332
9250
|
export namespace Find {
|
|
9333
9251
|
export type Params = DefaultPaginationQueryParams & {
|
|
9334
9252
|
_id?: string[] | string;
|
|
@@ -9590,8 +9508,7 @@ export namespace Service {
|
|
|
9590
9508
|
teams?: StringId[] | Team.TeamSchema[];
|
|
9591
9509
|
sync_id: string;
|
|
9592
9510
|
reason?:
|
|
9593
|
-
|
|
|
9594
|
-
| InventoryAdjustmentReason.InventoryAdjustmentReasonSchema;
|
|
9511
|
+
StringId | InventoryAdjustmentReason.InventoryAdjustmentReasonSchema;
|
|
9595
9512
|
transaction_processed: boolean;
|
|
9596
9513
|
custom_status?: StringId | CustomStatus.CustomStatusSchema;
|
|
9597
9514
|
company_namespace: string[];
|
|
@@ -9655,11 +9572,7 @@ export namespace Service {
|
|
|
9655
9572
|
}
|
|
9656
9573
|
|
|
9657
9574
|
type PopulatedKeys =
|
|
9658
|
-
| "
|
|
9659
|
-
| "teams"
|
|
9660
|
-
| "custom_status"
|
|
9661
|
-
| "reason"
|
|
9662
|
-
| "variant";
|
|
9575
|
+
"warehouse" | "teams" | "custom_status" | "reason" | "variant";
|
|
9663
9576
|
export namespace Find {
|
|
9664
9577
|
export type Params = DefaultPaginationQueryParams & {
|
|
9665
9578
|
nodeCycles?: StringId[] | StringId;
|
|
@@ -9912,12 +9825,7 @@ export namespace Service {
|
|
|
9912
9825
|
|
|
9913
9826
|
export namespace CommandLog {
|
|
9914
9827
|
export type Status =
|
|
9915
|
-
| "
|
|
9916
|
-
| "fail"
|
|
9917
|
-
| "processing"
|
|
9918
|
-
| "queued"
|
|
9919
|
-
| "received"
|
|
9920
|
-
| "skipped";
|
|
9828
|
+
"success" | "fail" | "processing" | "queued" | "received" | "skipped";
|
|
9921
9829
|
export type Detail = {
|
|
9922
9830
|
timestamp: number;
|
|
9923
9831
|
content: string;
|
|
@@ -10148,15 +10056,7 @@ export namespace Service {
|
|
|
10148
10056
|
|
|
10149
10057
|
export namespace PatchAction {
|
|
10150
10058
|
type ReadOperator =
|
|
10151
|
-
| "
|
|
10152
|
-
| "lt"
|
|
10153
|
-
| "gte"
|
|
10154
|
-
| "gt"
|
|
10155
|
-
| "eq"
|
|
10156
|
-
| "ne"
|
|
10157
|
-
| "in"
|
|
10158
|
-
| "nin"
|
|
10159
|
-
| "search";
|
|
10059
|
+
"lte" | "lt" | "gte" | "gt" | "eq" | "ne" | "in" | "nin" | "search";
|
|
10160
10060
|
type WriteOperator = "set" | "addToSet" | "pull";
|
|
10161
10061
|
type Slug =
|
|
10162
10062
|
| "client"
|
|
@@ -10455,11 +10355,7 @@ export namespace Service {
|
|
|
10455
10355
|
}
|
|
10456
10356
|
|
|
10457
10357
|
type PopulatedKeys =
|
|
10458
|
-
| "
|
|
10459
|
-
| "assets"
|
|
10460
|
-
| "asset_units"
|
|
10461
|
-
| "media"
|
|
10462
|
-
| "cover_photo";
|
|
10358
|
+
"asset_part_types" | "assets" | "asset_units" | "media" | "cover_photo";
|
|
10463
10359
|
|
|
10464
10360
|
export namespace Find {
|
|
10465
10361
|
export type Params = DefaultPaginationQueryParams & {
|
|
@@ -10477,12 +10373,7 @@ export namespace Service {
|
|
|
10477
10373
|
populatedKeys?: PopulatedKeys[];
|
|
10478
10374
|
sortBy?: {
|
|
10479
10375
|
field:
|
|
10480
|
-
| "
|
|
10481
|
-
| "name"
|
|
10482
|
-
| "barcode"
|
|
10483
|
-
| "model"
|
|
10484
|
-
| "createdAt"
|
|
10485
|
-
| "updatedAt";
|
|
10376
|
+
"_id" | "name" | "barcode" | "model" | "createdAt" | "updatedAt";
|
|
10486
10377
|
type: "asc" | "desc";
|
|
10487
10378
|
}[];
|
|
10488
10379
|
from__id?: StringId | StringId[];
|
|
@@ -10522,11 +10413,7 @@ export namespace Service {
|
|
|
10522
10413
|
creator: AdminOrRep;
|
|
10523
10414
|
editor?: AdminOrRep;
|
|
10524
10415
|
directional_status:
|
|
10525
|
-
| "
|
|
10526
|
-
| "handed"
|
|
10527
|
-
| "picked"
|
|
10528
|
-
| "returned"
|
|
10529
|
-
| "stored";
|
|
10416
|
+
"received" | "handed" | "picked" | "returned" | "stored";
|
|
10530
10417
|
asset_part_receival: StringId;
|
|
10531
10418
|
asset_part_return?: StringId;
|
|
10532
10419
|
asset_part_index: number;
|
|
@@ -10548,16 +10435,10 @@ export namespace Service {
|
|
|
10548
10435
|
integration_meta?: { [key: string]: any };
|
|
10549
10436
|
quotation_is_recommended: boolean;
|
|
10550
10437
|
quotation_internal_approval_status:
|
|
10551
|
-
| "
|
|
10552
|
-
| "approved"
|
|
10553
|
-
| "completed"
|
|
10554
|
-
| "rejected";
|
|
10438
|
+
"pending" | "approved" | "completed" | "rejected";
|
|
10555
10439
|
quotation_detail?: string;
|
|
10556
10440
|
quotation_client_approval_status:
|
|
10557
|
-
| "
|
|
10558
|
-
| "approved"
|
|
10559
|
-
| "collected"
|
|
10560
|
-
| "rejected";
|
|
10441
|
+
"pending" | "approved" | "collected" | "rejected";
|
|
10561
10442
|
company_namespace: string[];
|
|
10562
10443
|
createdAt: Date;
|
|
10563
10444
|
updatedAt: Date;
|
|
@@ -10567,18 +10448,13 @@ export namespace Service {
|
|
|
10567
10448
|
creator: AdminOrRep;
|
|
10568
10449
|
editor?: AdminOrRep;
|
|
10569
10450
|
directional_status:
|
|
10570
|
-
| "
|
|
10571
|
-
| "handed"
|
|
10572
|
-
| "picked"
|
|
10573
|
-
| "returned"
|
|
10574
|
-
| "stored";
|
|
10451
|
+
"received" | "handed" | "picked" | "returned" | "stored";
|
|
10575
10452
|
asset_part_receival: StringId | AssetPartReceival.Data;
|
|
10576
10453
|
asset_part_return?: StringId | ReturnAssetPartUnit.Data;
|
|
10577
10454
|
asset_part_index: number;
|
|
10578
10455
|
splitted_from?: StringId | Data;
|
|
10579
10456
|
client:
|
|
10580
|
-
|
|
|
10581
|
-
| Pick<Client.ClientSchema, "_id" | "name" | "client_code">;
|
|
10457
|
+
StringId | Pick<Client.ClientSchema, "_id" | "name" | "client_code">;
|
|
10582
10458
|
client_name: string;
|
|
10583
10459
|
warehouse:
|
|
10584
10460
|
| StringId
|
|
@@ -10619,16 +10495,10 @@ export namespace Service {
|
|
|
10619
10495
|
integration_meta?: { [key: string]: any };
|
|
10620
10496
|
quotation_is_recommended: boolean;
|
|
10621
10497
|
quotation_internal_approval_status:
|
|
10622
|
-
| "
|
|
10623
|
-
| "approved"
|
|
10624
|
-
| "completed"
|
|
10625
|
-
| "rejected";
|
|
10498
|
+
"pending" | "approved" | "completed" | "rejected";
|
|
10626
10499
|
quotation_detail?: string;
|
|
10627
10500
|
quotation_client_approval_status:
|
|
10628
|
-
| "
|
|
10629
|
-
| "approved"
|
|
10630
|
-
| "collected"
|
|
10631
|
-
| "rejected";
|
|
10501
|
+
"pending" | "approved" | "collected" | "rejected";
|
|
10632
10502
|
company_namespace: string[];
|
|
10633
10503
|
createdAt: Date;
|
|
10634
10504
|
updatedAt: Date;
|
|
@@ -10636,11 +10506,7 @@ export namespace Service {
|
|
|
10636
10506
|
export interface CreateBody {
|
|
10637
10507
|
creator?: AdminOrRep;
|
|
10638
10508
|
directional_status:
|
|
10639
|
-
| "
|
|
10640
|
-
| "handed"
|
|
10641
|
-
| "picked"
|
|
10642
|
-
| "returned"
|
|
10643
|
-
| "stored";
|
|
10509
|
+
"received" | "handed" | "picked" | "returned" | "stored";
|
|
10644
10510
|
asset_part_receival: StringId;
|
|
10645
10511
|
asset_part_index: number;
|
|
10646
10512
|
splitted_from?: StringId;
|
|
@@ -10661,16 +10527,10 @@ export namespace Service {
|
|
|
10661
10527
|
integration_meta?: { [key: string]: any };
|
|
10662
10528
|
quotation_is_recommended?: boolean;
|
|
10663
10529
|
quotation_internal_approval_status?:
|
|
10664
|
-
| "
|
|
10665
|
-
| "approved"
|
|
10666
|
-
| "completed"
|
|
10667
|
-
| "rejected";
|
|
10530
|
+
"pending" | "approved" | "completed" | "rejected";
|
|
10668
10531
|
quotation_detail?: string;
|
|
10669
10532
|
quotation_client_approval_status?:
|
|
10670
|
-
| "
|
|
10671
|
-
| "approved"
|
|
10672
|
-
| "collected"
|
|
10673
|
-
| "rejected";
|
|
10533
|
+
"pending" | "approved" | "collected" | "rejected";
|
|
10674
10534
|
company_namespace?: string[];
|
|
10675
10535
|
}
|
|
10676
10536
|
export interface UpdateBody {
|
|
@@ -10680,16 +10540,10 @@ export namespace Service {
|
|
|
10680
10540
|
editor?: AdminOrRep;
|
|
10681
10541
|
quotation_is_recommended?: boolean;
|
|
10682
10542
|
quotation_internal_approval_status?:
|
|
10683
|
-
| "
|
|
10684
|
-
| "approved"
|
|
10685
|
-
| "completed"
|
|
10686
|
-
| "rejected";
|
|
10543
|
+
"pending" | "approved" | "completed" | "rejected";
|
|
10687
10544
|
quotation_detail?: string;
|
|
10688
10545
|
quotation_client_approval_status?:
|
|
10689
|
-
| "
|
|
10690
|
-
| "approved"
|
|
10691
|
-
| "collected"
|
|
10692
|
-
| "rejected";
|
|
10546
|
+
"pending" | "approved" | "collected" | "rejected";
|
|
10693
10547
|
}
|
|
10694
10548
|
|
|
10695
10549
|
type PopulatedKeys =
|
|
@@ -10716,8 +10570,7 @@ export namespace Service {
|
|
|
10716
10570
|
qty?: number;
|
|
10717
10571
|
custom_status?: StringId[] | StringId;
|
|
10718
10572
|
directional_status?:
|
|
10719
|
-
| Data["directional_status"]
|
|
10720
|
-
| Data["directional_status"][];
|
|
10573
|
+
Data["directional_status"] | Data["directional_status"][];
|
|
10721
10574
|
teams?: StringId[] | StringId;
|
|
10722
10575
|
from_updatedAt?: number;
|
|
10723
10576
|
to_updatedAt?: number;
|
|
@@ -10801,8 +10654,7 @@ export namespace Service {
|
|
|
10801
10654
|
sync_id: string;
|
|
10802
10655
|
transaction_processed: boolean;
|
|
10803
10656
|
client:
|
|
10804
|
-
|
|
|
10805
|
-
| Pick<Client.ClientSchema, "_id" | "name" | "client_code">;
|
|
10657
|
+
StringId | Pick<Client.ClientSchema, "_id" | "name" | "client_code">;
|
|
10806
10658
|
client_name: string;
|
|
10807
10659
|
warehouse:
|
|
10808
10660
|
| StringId
|
|
@@ -11271,8 +11123,7 @@ export namespace Service {
|
|
|
11271
11123
|
| "failed";
|
|
11272
11124
|
transaction_processed: boolean;
|
|
11273
11125
|
client:
|
|
11274
|
-
|
|
|
11275
|
-
| Pick<Client.ClientSchema, "_id" | "name" | "client_code">;
|
|
11126
|
+
StringId | Pick<Client.ClientSchema, "_id" | "name" | "client_code">;
|
|
11276
11127
|
client_name: string;
|
|
11277
11128
|
warehouse:
|
|
11278
11129
|
| StringId
|
|
@@ -12187,10 +12038,7 @@ export namespace Service {
|
|
|
12187
12038
|
cart_option?: CartOptions;
|
|
12188
12039
|
ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o" | "fixed-length-text";
|
|
12189
12040
|
ai_vision_model:
|
|
12190
|
-
| "gpt-4o-
|
|
12191
|
-
| "gpt-4o"
|
|
12192
|
-
| "local_vision"
|
|
12193
|
-
| "fixed-length-text";
|
|
12041
|
+
"gpt-4o-mini" | "gpt-4o" | "local_vision" | "fixed-length-text";
|
|
12194
12042
|
visible_columns: {
|
|
12195
12043
|
key:
|
|
12196
12044
|
| "product_name"
|
|
@@ -12243,10 +12091,7 @@ export namespace Service {
|
|
|
12243
12091
|
cart_option?: CartOptions;
|
|
12244
12092
|
ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o" | "fixed-length-text";
|
|
12245
12093
|
ai_vision_model:
|
|
12246
|
-
| "gpt-4o-
|
|
12247
|
-
| "gpt-4o"
|
|
12248
|
-
| "local_vision"
|
|
12249
|
-
| "fixed-length-text";
|
|
12094
|
+
"gpt-4o-mini" | "gpt-4o" | "local_vision" | "fixed-length-text";
|
|
12250
12095
|
visible_columns: {
|
|
12251
12096
|
key:
|
|
12252
12097
|
| "product_name"
|
|
@@ -12290,10 +12135,7 @@ export namespace Service {
|
|
|
12290
12135
|
cart_option?: CartOptions;
|
|
12291
12136
|
ai_json_parsing_model: "gpt-4o-mini" | "gpt-4o" | "fixed-length-text";
|
|
12292
12137
|
ai_vision_model:
|
|
12293
|
-
| "gpt-4o-
|
|
12294
|
-
| "gpt-4o"
|
|
12295
|
-
| "local_vision"
|
|
12296
|
-
| "fixed-length-text";
|
|
12138
|
+
"gpt-4o-mini" | "gpt-4o" | "local_vision" | "fixed-length-text";
|
|
12297
12139
|
visible_columns: {
|
|
12298
12140
|
key:
|
|
12299
12141
|
| "product_name"
|
|
@@ -12505,18 +12347,14 @@ export namespace Service {
|
|
|
12505
12347
|
export type AiApiJsStep = {
|
|
12506
12348
|
code: "ai-api-js";
|
|
12507
12349
|
tasks: (
|
|
12508
|
-
|
|
|
12509
|
-
| PhotoJsonExtractionTask
|
|
12510
|
-
| TextJsonParsingTask
|
|
12350
|
+
PhotoTextExtractionTask | PhotoJsonExtractionTask | TextJsonParsingTask
|
|
12511
12351
|
)[];
|
|
12512
12352
|
};
|
|
12513
12353
|
|
|
12514
12354
|
export type PythonUtilitiesStep = {
|
|
12515
12355
|
code: "python-utilities";
|
|
12516
12356
|
tasks: (
|
|
12517
|
-
|
|
|
12518
|
-
| PdfImageConversionTask
|
|
12519
|
-
| PdfImageTextOcrTask
|
|
12357
|
+
PdfTextExtractionTask | PdfImageConversionTask | PdfImageTextOcrTask
|
|
12520
12358
|
)[];
|
|
12521
12359
|
};
|
|
12522
12360
|
|
|
@@ -12656,11 +12494,7 @@ export namespace Service {
|
|
|
12656
12494
|
| "external_serial_number"
|
|
12657
12495
|
| "client";
|
|
12658
12496
|
code:
|
|
12659
|
-
| "
|
|
12660
|
-
| "not_equal"
|
|
12661
|
-
| "exists"
|
|
12662
|
-
| "invalid_date"
|
|
12663
|
-
| "custom_warning";
|
|
12497
|
+
"missing" | "not_equal" | "exists" | "invalid_date" | "custom_warning";
|
|
12664
12498
|
}
|
|
12665
12499
|
|
|
12666
12500
|
export interface CartAnnotationItem {
|
|
@@ -13196,9 +13030,7 @@ export namespace Service {
|
|
|
13196
13030
|
number_of_digits_after_dot_separator?: 0 | 1 | 2 | 3;
|
|
13197
13031
|
hide_line_item_tax?: boolean;
|
|
13198
13032
|
line_total_key?:
|
|
13199
|
-
| "
|
|
13200
|
-
| "total_before_tax"
|
|
13201
|
-
| "lineTotalAfterDeduction";
|
|
13033
|
+
"line_total" | "total_before_tax" | "lineTotalAfterDeduction";
|
|
13202
13034
|
return_invoice_title?: string;
|
|
13203
13035
|
return_invoice_local_title?: string;
|
|
13204
13036
|
invoice_title?: string;
|
|
@@ -13238,6 +13070,14 @@ export namespace Service {
|
|
|
13238
13070
|
print_payment_allowance_period_in_days?: number;
|
|
13239
13071
|
freshness_window_in_minutes: number;
|
|
13240
13072
|
bypass_freshness_window_code: string;
|
|
13073
|
+
invoice_delivery_mode: "transactional" | "non_transactional" | "optional";
|
|
13074
|
+
default_invoice_delivery_mode: "transactional" | "non_transactional";
|
|
13075
|
+
invoice_source_msl: { level: "client" | "rep"; active: boolean }[];
|
|
13076
|
+
proforma_source_msl: {
|
|
13077
|
+
level: "all_products" | "client" | "rep";
|
|
13078
|
+
active: boolean;
|
|
13079
|
+
}[];
|
|
13080
|
+
transfer_source_msl: { level: "all_products" | "rep"; active: boolean }[];
|
|
13241
13081
|
}
|
|
13242
13082
|
|
|
13243
13083
|
export interface WorkorderSettings {
|
|
@@ -13296,11 +13136,7 @@ export namespace Service {
|
|
|
13296
13136
|
};
|
|
13297
13137
|
promotions: {
|
|
13298
13138
|
enforcement_mode:
|
|
13299
|
-
| "
|
|
13300
|
-
| "all"
|
|
13301
|
-
| "gift_in_inventory"
|
|
13302
|
-
| "gift"
|
|
13303
|
-
| "custom";
|
|
13139
|
+
"all_in_inventory" | "all" | "gift_in_inventory" | "gift" | "custom";
|
|
13304
13140
|
apply_hidden_price: boolean;
|
|
13305
13141
|
apply_all_promotions: boolean;
|
|
13306
13142
|
applying_sort: { [key: string]: -1 | 1 }[];
|
|
@@ -13460,11 +13296,7 @@ export namespace Service {
|
|
|
13460
13296
|
};
|
|
13461
13297
|
promotions?: {
|
|
13462
13298
|
enforcement_mode:
|
|
13463
|
-
| "
|
|
13464
|
-
| "all"
|
|
13465
|
-
| "gift_in_inventory"
|
|
13466
|
-
| "gift"
|
|
13467
|
-
| "custom";
|
|
13299
|
+
"all_in_inventory" | "all" | "gift_in_inventory" | "gift" | "custom";
|
|
13468
13300
|
apply_hidden_price: boolean;
|
|
13469
13301
|
apply_all_promotions: boolean;
|
|
13470
13302
|
applying_sort: { [key: string]: -1 | 1 }[];
|
|
@@ -13546,13 +13378,7 @@ export namespace Service {
|
|
|
13546
13378
|
rep_must_start_day_within_specific_time_frame: boolean;
|
|
13547
13379
|
};
|
|
13548
13380
|
first_business_day_in_week?:
|
|
13549
|
-
| "
|
|
13550
|
-
| "Mon"
|
|
13551
|
-
| "Tue"
|
|
13552
|
-
| "Wed"
|
|
13553
|
-
| "Thu"
|
|
13554
|
-
| "Fri"
|
|
13555
|
-
| "Sat";
|
|
13381
|
+
"Sun" | "Mon" | "Tue" | "Wed" | "Thu" | "Fri" | "Sat";
|
|
13556
13382
|
allow_assigning_non_creator_teams_when_creating_client?: boolean;
|
|
13557
13383
|
enable_email_mfa: boolean;
|
|
13558
13384
|
enable_whatsapp_mfa: boolean;
|
|
@@ -13608,10 +13434,7 @@ export namespace Service {
|
|
|
13608
13434
|
| "client_location"
|
|
13609
13435
|
| "client_credit_limit";
|
|
13610
13436
|
implementation_type:
|
|
13611
|
-
| "
|
|
13612
|
-
| "update_doc"
|
|
13613
|
-
| "delete_doc"
|
|
13614
|
-
| "no_implementation";
|
|
13437
|
+
"create_doc" | "update_doc" | "delete_doc" | "no_implementation";
|
|
13615
13438
|
creator: AdminOrRepOrTenant;
|
|
13616
13439
|
editor?: AdminOrRepOrTenant;
|
|
13617
13440
|
status: "pending" | "approved" | "processing" | "rejected";
|
|
@@ -13693,10 +13516,7 @@ export namespace Service {
|
|
|
13693
13516
|
| "client_location"
|
|
13694
13517
|
| "client_credit_limit";
|
|
13695
13518
|
implementation_type:
|
|
13696
|
-
| "
|
|
13697
|
-
| "update_doc"
|
|
13698
|
-
| "delete_doc"
|
|
13699
|
-
| "no_implementation";
|
|
13519
|
+
"create_doc" | "update_doc" | "delete_doc" | "no_implementation";
|
|
13700
13520
|
creator?: AdminOrRepOrTenant;
|
|
13701
13521
|
status?: "pending";
|
|
13702
13522
|
implementation_status?: "pending";
|
|
@@ -13769,10 +13589,7 @@ export namespace Service {
|
|
|
13769
13589
|
| "client_location"
|
|
13770
13590
|
| "client_credit_limit";
|
|
13771
13591
|
implementation_type?:
|
|
13772
|
-
| "
|
|
13773
|
-
| "update_doc"
|
|
13774
|
-
| "delete_doc"
|
|
13775
|
-
| "no_implementation";
|
|
13592
|
+
"create_doc" | "update_doc" | "delete_doc" | "no_implementation";
|
|
13776
13593
|
creator?: AdminOrRepOrTenant;
|
|
13777
13594
|
editor?: AdminOrRepOrTenant;
|
|
13778
13595
|
teams?: StringId[];
|
|
@@ -13849,11 +13666,9 @@ export namespace Service {
|
|
|
13849
13666
|
document_type?: Data["document_type"][] | Data["document_type"];
|
|
13850
13667
|
document_id?: StringId | StringId[];
|
|
13851
13668
|
implementation_type?:
|
|
13852
|
-
| Data["implementation_type"]
|
|
13853
|
-
| Data["implementation_type"];
|
|
13669
|
+
Data["implementation_type"][] | Data["implementation_type"];
|
|
13854
13670
|
implementation_status?:
|
|
13855
|
-
| Data["implementation_status"]
|
|
13856
|
-
| Data["implementation_status"];
|
|
13671
|
+
Data["implementation_status"][] | Data["implementation_status"];
|
|
13857
13672
|
teams?: StringId[] | StringId;
|
|
13858
13673
|
status?: Data["status"][] | Data["status"];
|
|
13859
13674
|
from_time?: number;
|
|
@@ -13983,8 +13798,7 @@ export namespace Service {
|
|
|
13983
13798
|
"name" | "client_code" | "contacts" | "_id"
|
|
13984
13799
|
> & {
|
|
13985
13800
|
contacts:
|
|
13986
|
-
|
|
|
13987
|
-
| Pick<ClientContact.ClientContactSchema, "name">[];
|
|
13801
|
+
StringId[] | Pick<ClientContact.ClientContactSchema, "name">[];
|
|
13988
13802
|
});
|
|
13989
13803
|
description?: string;
|
|
13990
13804
|
address?: string;
|
|
@@ -14001,11 +13815,7 @@ export namespace Service {
|
|
|
14001
13815
|
}
|
|
14002
13816
|
|
|
14003
13817
|
type PopulatedKeys =
|
|
14004
|
-
| "
|
|
14005
|
-
| "contacts"
|
|
14006
|
-
| "media"
|
|
14007
|
-
| "cover_photo"
|
|
14008
|
-
| "customFields";
|
|
13818
|
+
"client" | "contacts" | "media" | "cover_photo" | "customFields";
|
|
14009
13819
|
|
|
14010
13820
|
export namespace Find {
|
|
14011
13821
|
export type Params = DefaultPaginationQueryParams & {
|
|
@@ -14720,14 +14530,11 @@ export namespace Service {
|
|
|
14720
14530
|
disabled: boolean;
|
|
14721
14531
|
locations?: {
|
|
14722
14532
|
_id:
|
|
14723
|
-
|
|
|
14724
|
-
| Pick<ClientLocation.Data, "name" | "_id" | "cover_photo">;
|
|
14533
|
+
StringId | Pick<ClientLocation.Data, "name" | "_id" | "cover_photo">;
|
|
14725
14534
|
assets?:
|
|
14726
|
-
|
|
|
14727
|
-
| Pick<Asset.Data, "name" | "_id" | "cover_photo">[];
|
|
14535
|
+
StringId[] | Pick<Asset.Data, "name" | "_id" | "cover_photo">[];
|
|
14728
14536
|
asset_units?:
|
|
14729
|
-
|
|
|
14730
|
-
| Pick<AssetUnit.Data, "name" | "_id" | "cover_photo">[];
|
|
14537
|
+
StringId[] | Pick<AssetUnit.Data, "name" | "_id" | "cover_photo">[];
|
|
14731
14538
|
}[];
|
|
14732
14539
|
media?: StringId[];
|
|
14733
14540
|
media_populated?: PopulatedMediaStorage[];
|
|
@@ -15569,11 +15376,7 @@ export namespace Service {
|
|
|
15569
15376
|
}
|
|
15570
15377
|
|
|
15571
15378
|
export type PopulatedKeys =
|
|
15572
|
-
| "
|
|
15573
|
-
| "user"
|
|
15574
|
-
| "client"
|
|
15575
|
-
| "route"
|
|
15576
|
-
| "visit_id";
|
|
15379
|
+
"teams" | "user" | "client" | "route" | "visit_id";
|
|
15577
15380
|
|
|
15578
15381
|
export type ActivityItemStatusWithPopulatedKeysSchema = Data & {
|
|
15579
15382
|
teams_populated?: Team.TeamSchema[] | string[];
|
|
@@ -16003,12 +15806,7 @@ export namespace Service {
|
|
|
16003
15806
|
end_of_day: string;
|
|
16004
15807
|
trial_ends_at: number;
|
|
16005
15808
|
subscription_status?:
|
|
16006
|
-
| "
|
|
16007
|
-
| "initiated"
|
|
16008
|
-
| "active"
|
|
16009
|
-
| "grace"
|
|
16010
|
-
| "limited"
|
|
16011
|
-
| "blocked";
|
|
15809
|
+
"trial" | "initiated" | "active" | "grace" | "limited" | "blocked";
|
|
16012
15810
|
grace_until: number | null;
|
|
16013
15811
|
limited_until: number | null;
|
|
16014
15812
|
workspace: string;
|
|
@@ -16040,10 +15838,7 @@ export namespace Service {
|
|
|
16040
15838
|
|
|
16041
15839
|
export namespace AuthenticateAdmin {
|
|
16042
15840
|
export type MfaMethod =
|
|
16043
|
-
| "
|
|
16044
|
-
| "whatsapp"
|
|
16045
|
-
| "authenticator"
|
|
16046
|
-
| "recovery_codes";
|
|
15841
|
+
"email" | "whatsapp" | "authenticator" | "recovery_codes";
|
|
16047
15842
|
interface Subscription_data {
|
|
16048
15843
|
name_space: string;
|
|
16049
15844
|
grace_until: number;
|
|
@@ -17694,8 +17489,7 @@ export namespace Service {
|
|
|
17694
17489
|
workorder_categories?: StringId[];
|
|
17695
17490
|
status?: Workorder.Data["status"] | Workorder.Data["status"][];
|
|
17696
17491
|
priority_human?:
|
|
17697
|
-
| Workorder.Data["priority_human"]
|
|
17698
|
-
| Workorder.Data["priority_human"][];
|
|
17492
|
+
Workorder.Data["priority_human"] | Workorder.Data["priority_human"][];
|
|
17699
17493
|
assets?: StringId[];
|
|
17700
17494
|
asset_units?: StringId[];
|
|
17701
17495
|
contract?: StringId[];
|
|
@@ -17718,8 +17512,7 @@ export namespace Service {
|
|
|
17718
17512
|
workorder_categories?: StringId[];
|
|
17719
17513
|
status?: Workorder.Data["status"] | Workorder.Data["status"][];
|
|
17720
17514
|
priority_human?:
|
|
17721
|
-
| Workorder.Data["priority_human"]
|
|
17722
|
-
| Workorder.Data["priority_human"][];
|
|
17515
|
+
Workorder.Data["priority_human"] | Workorder.Data["priority_human"][];
|
|
17723
17516
|
assets?: StringId[];
|
|
17724
17517
|
asset_units?: StringId[];
|
|
17725
17518
|
contract?: StringId[];
|
|
@@ -18295,12 +18088,7 @@ export namespace Service {
|
|
|
18295
18088
|
export type DataType = "string" | "number" | "array" | "boolean";
|
|
18296
18089
|
|
|
18297
18090
|
export type InputType =
|
|
18298
|
-
| "
|
|
18299
|
-
| "list"
|
|
18300
|
-
| "checkbox"
|
|
18301
|
-
| "date"
|
|
18302
|
-
| "number"
|
|
18303
|
-
| "group_by";
|
|
18091
|
+
"string" | "list" | "checkbox" | "date" | "number" | "group_by";
|
|
18304
18092
|
|
|
18305
18093
|
export type Operator =
|
|
18306
18094
|
| "eq"
|
|
@@ -18322,10 +18110,7 @@ export namespace Service {
|
|
|
18322
18110
|
| "last_twelve_months";
|
|
18323
18111
|
|
|
18324
18112
|
export type DateFormat =
|
|
18325
|
-
| "
|
|
18326
|
-
| "YYYY-MM-DD"
|
|
18327
|
-
| "YYYY-MM-DD HH:mm:ssZ"
|
|
18328
|
-
| "ISO";
|
|
18113
|
+
"s" | "YYYY-MM-DD" | "YYYY-MM-DD HH:mm:ssZ" | "ISO";
|
|
18329
18114
|
|
|
18330
18115
|
export interface Data {
|
|
18331
18116
|
_id: string;
|
|
@@ -19262,12 +19047,7 @@ export namespace Service {
|
|
|
19262
19047
|
| "presentation_end"
|
|
19263
19048
|
| "presentation_cancel";
|
|
19264
19049
|
interaction_detail:
|
|
19265
|
-
| "
|
|
19266
|
-
| "out"
|
|
19267
|
-
| "positive"
|
|
19268
|
-
| "negative"
|
|
19269
|
-
| "notProvided"
|
|
19270
|
-
| null; // required for zoom and feedback_given, null for other
|
|
19050
|
+
"in" | "out" | "positive" | "negative" | "notProvided" | null; // required for zoom and feedback_given, null for other
|
|
19271
19051
|
slide?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19272
19052
|
sequence?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19273
19053
|
sequence_name?: string; // optional
|
|
@@ -19288,12 +19068,7 @@ export namespace Service {
|
|
|
19288
19068
|
| "presentation_end"
|
|
19289
19069
|
| "presentation_cancel";
|
|
19290
19070
|
interaction_detail:
|
|
19291
|
-
| "
|
|
19292
|
-
| "out"
|
|
19293
|
-
| "positive"
|
|
19294
|
-
| "negative"
|
|
19295
|
-
| "notProvided"
|
|
19296
|
-
| null; // required for zoom and feedback_given, null for other
|
|
19071
|
+
"in" | "out" | "positive" | "negative" | "notProvided" | null; // required for zoom and feedback_given, null for other
|
|
19297
19072
|
slide?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19298
19073
|
sequence?: StringId; // optional for presentation_play, presentation_end, presentation_cancel, required for other
|
|
19299
19074
|
presentation: StringId;
|
|
@@ -19318,12 +19093,7 @@ export namespace Service {
|
|
|
19318
19093
|
};
|
|
19319
19094
|
|
|
19320
19095
|
type PopulatedKeys =
|
|
19321
|
-
| "
|
|
19322
|
-
| "visit"
|
|
19323
|
-
| "route"
|
|
19324
|
-
| "teams"
|
|
19325
|
-
| "tags"
|
|
19326
|
-
| "presentation";
|
|
19096
|
+
"client" | "visit" | "route" | "teams" | "tags" | "presentation";
|
|
19327
19097
|
|
|
19328
19098
|
export namespace Find {
|
|
19329
19099
|
export type Params = DefaultPaginationQueryParams & {
|
|
@@ -20265,11 +20035,7 @@ export namespace Service {
|
|
|
20265
20035
|
footer_details: string;
|
|
20266
20036
|
align_footer_details: "right" | "left" | "center";
|
|
20267
20037
|
compressed_media_size:
|
|
20268
|
-
| "
|
|
20269
|
-
| "small"
|
|
20270
|
-
| "medium"
|
|
20271
|
-
| "large"
|
|
20272
|
-
| "extra";
|
|
20038
|
+
"original" | "small" | "medium" | "large" | "extra";
|
|
20273
20039
|
view_custom_list_element: boolean;
|
|
20274
20040
|
};
|
|
20275
20041
|
}
|
|
@@ -20323,10 +20089,7 @@ export namespace Service {
|
|
|
20323
20089
|
};
|
|
20324
20090
|
|
|
20325
20091
|
type PopulatedKeys =
|
|
20326
|
-
| "
|
|
20327
|
-
| "media"
|
|
20328
|
-
| "banner_media"
|
|
20329
|
-
| "footer_media";
|
|
20092
|
+
"custom_list" | "media" | "banner_media" | "footer_media";
|
|
20330
20093
|
type SortingKeys = "_id" | "position" | "updatedAt";
|
|
20331
20094
|
|
|
20332
20095
|
export namespace Find {
|
|
@@ -20897,11 +20660,7 @@ export namespace Service {
|
|
|
20897
20660
|
template?: StringId;
|
|
20898
20661
|
report_view?: StringId;
|
|
20899
20662
|
compressed_media_size?:
|
|
20900
|
-
| "
|
|
20901
|
-
| "small"
|
|
20902
|
-
| "medium"
|
|
20903
|
-
| "large"
|
|
20904
|
-
| "extra";
|
|
20663
|
+
"original" | "small" | "medium" | "large" | "extra";
|
|
20905
20664
|
file_naming?: NamingKey[];
|
|
20906
20665
|
group_naming?: NamingKey[];
|
|
20907
20666
|
bi_view?: StringId;
|
|
@@ -20949,8 +20708,7 @@ export namespace Service {
|
|
|
20949
20708
|
state?: Data["state"] | Data["state"][];
|
|
20950
20709
|
template?: StringId | StringId[];
|
|
20951
20710
|
time_period_tense?:
|
|
20952
|
-
| Data["time_period_tense"]
|
|
20953
|
-
| Data["time_period_tense"][];
|
|
20711
|
+
Data["time_period_tense"] | Data["time_period_tense"][];
|
|
20954
20712
|
full_cycle?: boolean;
|
|
20955
20713
|
row_count?: number | number[];
|
|
20956
20714
|
};
|
|
@@ -21222,8 +20980,7 @@ export namespace Service {
|
|
|
21222
20980
|
from?: string;
|
|
21223
20981
|
to?: string;
|
|
21224
20982
|
reports?:
|
|
21225
|
-
| DataFileWarehouse.Data["report"]
|
|
21226
|
-
| DataFileWarehouse.Data["report"][];
|
|
20983
|
+
DataFileWarehouse.Data["report"] | DataFileWarehouse.Data["report"][];
|
|
21227
20984
|
teams?: StringId | StringId[];
|
|
21228
20985
|
data_file_warehouse_ids?: StringId | StringId[];
|
|
21229
20986
|
status?: Data["status"] | Data["status"][];
|
|
@@ -21502,11 +21259,7 @@ export namespace Service {
|
|
|
21502
21259
|
| "rep-payment";
|
|
21503
21260
|
|
|
21504
21261
|
export type Period =
|
|
21505
|
-
| "
|
|
21506
|
-
| "weekly"
|
|
21507
|
-
| "monthly"
|
|
21508
|
-
| "quarterly"
|
|
21509
|
-
| "yearly";
|
|
21262
|
+
"daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
21510
21263
|
|
|
21511
21264
|
export interface Point {
|
|
21512
21265
|
ratio: number;
|
|
@@ -22260,8 +22013,7 @@ export namespace Service {
|
|
|
22260
22013
|
from_time?: number;
|
|
22261
22014
|
to_time?: number;
|
|
22262
22015
|
second_phase_status:
|
|
22263
|
-
| Data["second_phase_status"]
|
|
22264
|
-
| Data["second_phase_status"][];
|
|
22016
|
+
Data["second_phase_status"] | Data["second_phase_status"][];
|
|
22265
22017
|
status?: Data["status"] | Data["status"][];
|
|
22266
22018
|
type?: Data["type"] | Data["type"][];
|
|
22267
22019
|
};
|
package/src/types/report-type.ts
CHANGED
|
@@ -281,9 +281,7 @@ type SalesAnalyticsGroupByIDs = {
|
|
|
281
281
|
issue_date: "issue_date";
|
|
282
282
|
due_date: "due_date";
|
|
283
283
|
serial_number:
|
|
284
|
-
| "
|
|
285
|
-
| "external_serial_number"
|
|
286
|
-
| "return_serial_number";
|
|
284
|
+
"serial_number" | "external_serial_number" | "return_serial_number";
|
|
287
285
|
product:
|
|
288
286
|
| "product_name"
|
|
289
287
|
| "product_local_name"
|