repzo 1.0.108 → 1.0.110
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 +22 -0
- package/lib/index.js +49 -0
- package/lib/types/index.d.ts +1101 -101
- package/package.json +1 -1
- package/src/index.ts +64 -0
- package/src/types/index.ts +979 -96
package/lib/types/index.d.ts
CHANGED
|
@@ -201,21 +201,21 @@ export interface Build {
|
|
|
201
201
|
list: List[];
|
|
202
202
|
start_date?: number | undefined;
|
|
203
203
|
}
|
|
204
|
-
export
|
|
204
|
+
export type Calendar = CalendarWeekly | CalendarWeeklyGroup;
|
|
205
205
|
export interface Route {
|
|
206
206
|
disabled: boolean;
|
|
207
207
|
list: List[];
|
|
208
208
|
_id: string;
|
|
209
209
|
}
|
|
210
|
-
export
|
|
211
|
-
export
|
|
210
|
+
export type Priority = 0 | 1 | 2 | 3;
|
|
211
|
+
export type WorkorderStatus =
|
|
212
212
|
| "open"
|
|
213
213
|
| "done"
|
|
214
214
|
| "cancelled"
|
|
215
215
|
| "inprogress"
|
|
216
216
|
| "onhold";
|
|
217
|
-
export
|
|
218
|
-
export
|
|
217
|
+
export type Priority_human = "none" | "low" | "medium" | "high";
|
|
218
|
+
export type Day =
|
|
219
219
|
| "Sun"
|
|
220
220
|
| "Mon"
|
|
221
221
|
| "Tue"
|
|
@@ -224,7 +224,7 @@ export declare type Day =
|
|
|
224
224
|
| "Fri"
|
|
225
225
|
| "Sat"
|
|
226
226
|
| string;
|
|
227
|
-
export
|
|
227
|
+
export type FieldType =
|
|
228
228
|
| "Text"
|
|
229
229
|
| "String"
|
|
230
230
|
| "Date"
|
|
@@ -270,7 +270,7 @@ export interface CalendarWeeklyGroup {
|
|
|
270
270
|
note?: string;
|
|
271
271
|
_id: string;
|
|
272
272
|
}
|
|
273
|
-
export
|
|
273
|
+
export type Model =
|
|
274
274
|
| "quickConvertToPdf"
|
|
275
275
|
| "warehouses"
|
|
276
276
|
| "transfers"
|
|
@@ -295,7 +295,7 @@ export declare type Model =
|
|
|
295
295
|
| "activities"
|
|
296
296
|
| "bigReports"
|
|
297
297
|
| "admins";
|
|
298
|
-
export
|
|
298
|
+
export type DocumentTypes =
|
|
299
299
|
| "form"
|
|
300
300
|
| "quickConvertToPdf"
|
|
301
301
|
| "clients"
|
|
@@ -339,7 +339,7 @@ export declare type DocumentTypes =
|
|
|
339
339
|
| "retailExecutionPreset"
|
|
340
340
|
| "paymentMethod"
|
|
341
341
|
| "approvalRequest";
|
|
342
|
-
export
|
|
342
|
+
export type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
|
|
343
343
|
export interface MediaDoc {
|
|
344
344
|
_id?: string;
|
|
345
345
|
media_id: string;
|
|
@@ -629,6 +629,12 @@ export declare namespace Service {
|
|
|
629
629
|
speciality?: string[] | string;
|
|
630
630
|
assigned_product_groups?: string[] | string;
|
|
631
631
|
populatedKeys?: PopulatedKeys[];
|
|
632
|
+
from__id?: string;
|
|
633
|
+
to__id?: string;
|
|
634
|
+
sortBy?: {
|
|
635
|
+
field: "_id";
|
|
636
|
+
type: "asc" | "desc";
|
|
637
|
+
}[];
|
|
632
638
|
[key: string]: any;
|
|
633
639
|
};
|
|
634
640
|
interface Result extends DefaultPaginationResult {
|
|
@@ -807,6 +813,12 @@ export declare namespace Service {
|
|
|
807
813
|
withMedia?: boolean;
|
|
808
814
|
withDefaultVariant?: boolean;
|
|
809
815
|
withVariants?: boolean;
|
|
816
|
+
from__id?: string;
|
|
817
|
+
to__id?: string;
|
|
818
|
+
sortBy?: {
|
|
819
|
+
field: "_id";
|
|
820
|
+
type: "asc" | "desc";
|
|
821
|
+
}[];
|
|
810
822
|
[key: string]: any;
|
|
811
823
|
};
|
|
812
824
|
interface Result extends DefaultPaginationResult {
|
|
@@ -915,6 +927,8 @@ export declare namespace Service {
|
|
|
915
927
|
createdAt?: number;
|
|
916
928
|
updatedAt?: number;
|
|
917
929
|
from_updatedAt?: number;
|
|
930
|
+
from__id?: string;
|
|
931
|
+
to__id?: string;
|
|
918
932
|
default?: boolean;
|
|
919
933
|
category?: string[] | string;
|
|
920
934
|
subCategory?: string[] | string;
|
|
@@ -1005,6 +1019,12 @@ export declare namespace Service {
|
|
|
1005
1019
|
withProduct?: boolean;
|
|
1006
1020
|
hasSubCategory?: boolean;
|
|
1007
1021
|
isLeaf?: boolean;
|
|
1022
|
+
from__id?: string;
|
|
1023
|
+
to__id?: string;
|
|
1024
|
+
sortBy?: {
|
|
1025
|
+
field: "_id";
|
|
1026
|
+
type: "asc" | "desc";
|
|
1027
|
+
}[];
|
|
1008
1028
|
[key: string]: any;
|
|
1009
1029
|
};
|
|
1010
1030
|
interface Result extends DefaultPaginationResult {
|
|
@@ -1072,6 +1092,12 @@ export declare namespace Service {
|
|
|
1072
1092
|
from_updatedAt?: number;
|
|
1073
1093
|
createdAt?: number;
|
|
1074
1094
|
updatedAt?: number;
|
|
1095
|
+
from__id?: string;
|
|
1096
|
+
to__id?: string;
|
|
1097
|
+
sortBy?: {
|
|
1098
|
+
field: "_id";
|
|
1099
|
+
type: "asc" | "desc";
|
|
1100
|
+
}[];
|
|
1075
1101
|
[key: string]: any;
|
|
1076
1102
|
};
|
|
1077
1103
|
interface Result extends DefaultPaginationResult {
|
|
@@ -1147,6 +1173,12 @@ export declare namespace Service {
|
|
|
1147
1173
|
createdAt?: number;
|
|
1148
1174
|
updatedAt?: number;
|
|
1149
1175
|
withProduct?: boolean;
|
|
1176
|
+
from__id?: string;
|
|
1177
|
+
to__id?: string;
|
|
1178
|
+
sortBy?: {
|
|
1179
|
+
field: "_id";
|
|
1180
|
+
type: "asc" | "desc";
|
|
1181
|
+
}[];
|
|
1150
1182
|
[key: string]: any;
|
|
1151
1183
|
};
|
|
1152
1184
|
interface Result extends DefaultPaginationResult {
|
|
@@ -1208,6 +1240,12 @@ export declare namespace Service {
|
|
|
1208
1240
|
local_name?: string[] | string;
|
|
1209
1241
|
disabled?: boolean;
|
|
1210
1242
|
from_updatedAt?: number;
|
|
1243
|
+
from__id?: string;
|
|
1244
|
+
to__id?: string;
|
|
1245
|
+
sortBy?: {
|
|
1246
|
+
field: "_id";
|
|
1247
|
+
type: "asc" | "desc";
|
|
1248
|
+
}[];
|
|
1211
1249
|
createdAt?: number;
|
|
1212
1250
|
updatedAt?: number;
|
|
1213
1251
|
};
|
|
@@ -1275,6 +1313,12 @@ export declare namespace Service {
|
|
|
1275
1313
|
type?: TaxType | TaxType[];
|
|
1276
1314
|
disabled?: boolean;
|
|
1277
1315
|
from_updatedAt?: number;
|
|
1316
|
+
from__id?: string;
|
|
1317
|
+
to__id?: string;
|
|
1318
|
+
sortBy?: {
|
|
1319
|
+
field: "_id";
|
|
1320
|
+
type: "asc" | "desc";
|
|
1321
|
+
}[];
|
|
1278
1322
|
[key: string]: any;
|
|
1279
1323
|
};
|
|
1280
1324
|
interface Result extends DefaultPaginationResult {
|
|
@@ -1347,6 +1391,12 @@ export declare namespace Service {
|
|
|
1347
1391
|
from_updatedAt?: number;
|
|
1348
1392
|
family_name?: string[] | string;
|
|
1349
1393
|
withFamily?: boolean;
|
|
1394
|
+
from__id?: string;
|
|
1395
|
+
to__id?: string;
|
|
1396
|
+
sortBy?: {
|
|
1397
|
+
field: "_id";
|
|
1398
|
+
type: "asc" | "desc";
|
|
1399
|
+
}[];
|
|
1350
1400
|
[key: string]: any;
|
|
1351
1401
|
};
|
|
1352
1402
|
interface Result extends DefaultPaginationResult {
|
|
@@ -1419,6 +1469,12 @@ export declare namespace Service {
|
|
|
1419
1469
|
from_updatedAt?: number;
|
|
1420
1470
|
measureunits?: string[] | string;
|
|
1421
1471
|
populatedKeys?: PopulatedKeys[];
|
|
1472
|
+
from__id?: string;
|
|
1473
|
+
to__id?: string;
|
|
1474
|
+
sortBy?: {
|
|
1475
|
+
field: "_id";
|
|
1476
|
+
type: "asc" | "desc";
|
|
1477
|
+
}[];
|
|
1422
1478
|
[key: string]: any;
|
|
1423
1479
|
};
|
|
1424
1480
|
interface Result extends DefaultPaginationResult {
|
|
@@ -1558,6 +1614,12 @@ export declare namespace Service {
|
|
|
1558
1614
|
"createdby._id"?: string[] | string;
|
|
1559
1615
|
disabled?: boolean;
|
|
1560
1616
|
from_updatedAt?: number;
|
|
1617
|
+
from__id?: string;
|
|
1618
|
+
to__id?: string;
|
|
1619
|
+
sortBy?: {
|
|
1620
|
+
field: "_id";
|
|
1621
|
+
type: "asc" | "desc";
|
|
1622
|
+
}[];
|
|
1561
1623
|
[key: string]: any;
|
|
1562
1624
|
};
|
|
1563
1625
|
interface Result extends DefaultPaginationResult {
|
|
@@ -1872,6 +1934,12 @@ export declare namespace Service {
|
|
|
1872
1934
|
_id?: string[] | string;
|
|
1873
1935
|
key?: string;
|
|
1874
1936
|
from_updatedAt?: number;
|
|
1937
|
+
from__id?: string;
|
|
1938
|
+
to__id?: string;
|
|
1939
|
+
sortBy?: {
|
|
1940
|
+
field: "_id";
|
|
1941
|
+
type: "asc" | "desc";
|
|
1942
|
+
}[];
|
|
1875
1943
|
};
|
|
1876
1944
|
interface Result extends DefaultPaginationResult {
|
|
1877
1945
|
data: MediaStorageSchema[];
|
|
@@ -2052,6 +2120,12 @@ export declare namespace Service {
|
|
|
2052
2120
|
local_name?: string;
|
|
2053
2121
|
disabled?: boolean;
|
|
2054
2122
|
from_updatedAt?: number;
|
|
2123
|
+
from__id?: string;
|
|
2124
|
+
to__id?: string;
|
|
2125
|
+
sortBy?: {
|
|
2126
|
+
field: "_id";
|
|
2127
|
+
type: "asc" | "desc";
|
|
2128
|
+
}[];
|
|
2055
2129
|
};
|
|
2056
2130
|
interface Result extends DefaultPaginationResult {
|
|
2057
2131
|
data: StorecheckTemplateSchema[];
|
|
@@ -2238,6 +2312,12 @@ export declare namespace Service {
|
|
|
2238
2312
|
teams?: string[];
|
|
2239
2313
|
route?: string;
|
|
2240
2314
|
populatedKeys?: PopulatedKeys[];
|
|
2315
|
+
from__id?: string;
|
|
2316
|
+
to__id?: string;
|
|
2317
|
+
sortBy?: {
|
|
2318
|
+
field: "_id";
|
|
2319
|
+
type: "asc" | "desc";
|
|
2320
|
+
}[];
|
|
2241
2321
|
[key: string]: any;
|
|
2242
2322
|
};
|
|
2243
2323
|
interface Result extends DefaultPaginationResult {
|
|
@@ -2287,6 +2367,12 @@ export declare namespace Service {
|
|
|
2287
2367
|
name?: string;
|
|
2288
2368
|
search?: string;
|
|
2289
2369
|
from_updatedAt?: number;
|
|
2370
|
+
from__id?: string;
|
|
2371
|
+
to__id?: string;
|
|
2372
|
+
sortBy?: {
|
|
2373
|
+
field: "_id";
|
|
2374
|
+
type: "asc" | "desc";
|
|
2375
|
+
}[];
|
|
2290
2376
|
};
|
|
2291
2377
|
interface Result extends DefaultPaginationResult {
|
|
2292
2378
|
data: MslSchema[];
|
|
@@ -2365,6 +2451,12 @@ export declare namespace Service {
|
|
|
2365
2451
|
from_updatedAt?: number;
|
|
2366
2452
|
to_updatedAt?: number;
|
|
2367
2453
|
populatedKeys?: PopulatedKeys[];
|
|
2454
|
+
from__id?: string;
|
|
2455
|
+
to__id?: string;
|
|
2456
|
+
sortBy?: {
|
|
2457
|
+
field: "_id";
|
|
2458
|
+
type: "asc" | "desc";
|
|
2459
|
+
}[];
|
|
2368
2460
|
};
|
|
2369
2461
|
interface Result extends DefaultPaginationResult {
|
|
2370
2462
|
data: MslProductWithPopulatedKeysSchema[];
|
|
@@ -2413,6 +2505,12 @@ export declare namespace Service {
|
|
|
2413
2505
|
disabled?: boolean;
|
|
2414
2506
|
from_updatedAt?: number;
|
|
2415
2507
|
to_updatedAt?: number;
|
|
2508
|
+
from__id?: string;
|
|
2509
|
+
to__id?: string;
|
|
2510
|
+
sortBy?: {
|
|
2511
|
+
field: "_id";
|
|
2512
|
+
type: "asc" | "desc";
|
|
2513
|
+
}[];
|
|
2416
2514
|
};
|
|
2417
2515
|
interface Result extends DefaultPaginationResult {
|
|
2418
2516
|
data: TeamSchema[];
|
|
@@ -2771,6 +2869,12 @@ export declare namespace Service {
|
|
|
2771
2869
|
last_login_time?: number;
|
|
2772
2870
|
[key: string]: any;
|
|
2773
2871
|
populatedKeys?: PopulatedKeys[];
|
|
2872
|
+
from__id?: string;
|
|
2873
|
+
to__id?: string;
|
|
2874
|
+
sortBy?: {
|
|
2875
|
+
field: "_id";
|
|
2876
|
+
type: "asc" | "desc";
|
|
2877
|
+
}[];
|
|
2774
2878
|
withProductLines?: boolean;
|
|
2775
2879
|
withStatus?: boolean;
|
|
2776
2880
|
};
|
|
@@ -2896,6 +3000,12 @@ export declare namespace Service {
|
|
|
2896
3000
|
type?: TagType[] | TagType;
|
|
2897
3001
|
disabled?: boolean;
|
|
2898
3002
|
from_updatedAt?: number;
|
|
3003
|
+
from__id?: string;
|
|
3004
|
+
to__id?: string;
|
|
3005
|
+
sortBy?: {
|
|
3006
|
+
field: "_id";
|
|
3007
|
+
type: "asc" | "desc";
|
|
3008
|
+
}[];
|
|
2899
3009
|
populatedKeys?: PopulatedKeys[];
|
|
2900
3010
|
[key: string]: any;
|
|
2901
3011
|
};
|
|
@@ -2973,6 +3083,12 @@ export declare namespace Service {
|
|
|
2973
3083
|
name?: string[] | string;
|
|
2974
3084
|
disabled?: boolean;
|
|
2975
3085
|
from_updatedAt?: number;
|
|
3086
|
+
from__id?: string;
|
|
3087
|
+
to__id?: string;
|
|
3088
|
+
sortBy?: {
|
|
3089
|
+
field: "_id";
|
|
3090
|
+
type: "asc" | "desc";
|
|
3091
|
+
}[];
|
|
2976
3092
|
populatedKeys?: PopulatedKeys[];
|
|
2977
3093
|
};
|
|
2978
3094
|
interface Result extends DefaultPaginationResult {
|
|
@@ -3050,8 +3166,14 @@ export declare namespace Service {
|
|
|
3050
3166
|
type?: WarehouseType[] | WarehouseType;
|
|
3051
3167
|
disabled?: boolean;
|
|
3052
3168
|
from_updatedAt?: number;
|
|
3169
|
+
from__id?: string;
|
|
3170
|
+
to__id?: string;
|
|
3053
3171
|
[key: string]: any;
|
|
3054
3172
|
populatedKeys?: PopulatedKeys[];
|
|
3173
|
+
sortBy?: {
|
|
3174
|
+
field: "_id";
|
|
3175
|
+
type: "asc" | "desc";
|
|
3176
|
+
}[];
|
|
3055
3177
|
};
|
|
3056
3178
|
interface Result extends DefaultPaginationResult {
|
|
3057
3179
|
data: WarehouseWithPopulatedKeysSchema[];
|
|
@@ -3113,6 +3235,12 @@ export declare namespace Service {
|
|
|
3113
3235
|
local_name?: string[] | string;
|
|
3114
3236
|
disabled?: boolean;
|
|
3115
3237
|
from_updatedAt?: number;
|
|
3238
|
+
from__id?: string;
|
|
3239
|
+
to__id?: string;
|
|
3240
|
+
sortBy?: {
|
|
3241
|
+
field: "_id";
|
|
3242
|
+
type: "asc" | "desc";
|
|
3243
|
+
}[];
|
|
3116
3244
|
};
|
|
3117
3245
|
interface Result extends DefaultPaginationResult {
|
|
3118
3246
|
data: ProductModifiersGroupSchema[];
|
|
@@ -3176,6 +3304,12 @@ export declare namespace Service {
|
|
|
3176
3304
|
local_name?: string[] | string;
|
|
3177
3305
|
disabled?: boolean;
|
|
3178
3306
|
from_updatedAt?: number;
|
|
3307
|
+
from__id?: string;
|
|
3308
|
+
to__id?: string;
|
|
3309
|
+
sortBy?: {
|
|
3310
|
+
field: "_id";
|
|
3311
|
+
type: "asc" | "desc";
|
|
3312
|
+
}[];
|
|
3179
3313
|
[key: string]: any;
|
|
3180
3314
|
};
|
|
3181
3315
|
interface Result extends DefaultPaginationResult {
|
|
@@ -3313,6 +3447,12 @@ export declare namespace Service {
|
|
|
3313
3447
|
name?: string[] | string;
|
|
3314
3448
|
from_updatedAt?: number;
|
|
3315
3449
|
to_updatedAt?: number;
|
|
3450
|
+
from__id?: string;
|
|
3451
|
+
to__id?: string;
|
|
3452
|
+
sortBy?: {
|
|
3453
|
+
field: "_id";
|
|
3454
|
+
type: "asc" | "desc";
|
|
3455
|
+
}[];
|
|
3316
3456
|
};
|
|
3317
3457
|
interface Result extends DefaultPaginationResult {
|
|
3318
3458
|
data: ClientContactSchema[];
|
|
@@ -3432,6 +3572,12 @@ export declare namespace Service {
|
|
|
3432
3572
|
_id?: string[] | string;
|
|
3433
3573
|
search?: string;
|
|
3434
3574
|
from_updatedAt?: number;
|
|
3575
|
+
from__id?: string;
|
|
3576
|
+
to__id?: string;
|
|
3577
|
+
sortBy?: {
|
|
3578
|
+
field: "_id";
|
|
3579
|
+
type: "asc" | "desc";
|
|
3580
|
+
}[];
|
|
3435
3581
|
[key: string]: any;
|
|
3436
3582
|
};
|
|
3437
3583
|
interface Result extends DefaultPaginationResult {
|
|
@@ -3563,6 +3709,12 @@ export declare namespace Service {
|
|
|
3563
3709
|
color?: string[] | string;
|
|
3564
3710
|
disabled?: boolean;
|
|
3565
3711
|
from_updatedAt?: number;
|
|
3712
|
+
from__id?: string;
|
|
3713
|
+
to__id?: string;
|
|
3714
|
+
sortBy?: {
|
|
3715
|
+
field: "_id";
|
|
3716
|
+
type: "asc" | "desc";
|
|
3717
|
+
}[];
|
|
3566
3718
|
[key: string]: any;
|
|
3567
3719
|
};
|
|
3568
3720
|
interface Result extends DefaultPaginationResult {
|
|
@@ -3733,6 +3885,12 @@ export declare namespace Service {
|
|
|
3733
3885
|
type?: string;
|
|
3734
3886
|
code?: string;
|
|
3735
3887
|
from_updatedAt?: number;
|
|
3888
|
+
from__id?: string;
|
|
3889
|
+
to__id?: string;
|
|
3890
|
+
sortBy?: {
|
|
3891
|
+
field: "_id";
|
|
3892
|
+
type: "asc" | "desc";
|
|
3893
|
+
}[];
|
|
3736
3894
|
[key: string]: any;
|
|
3737
3895
|
};
|
|
3738
3896
|
interface Result extends DefaultPaginationResult {
|
|
@@ -3820,6 +3978,12 @@ export declare namespace Service {
|
|
|
3820
3978
|
from_updatedAt?: number;
|
|
3821
3979
|
[key: string]: any;
|
|
3822
3980
|
populatedKeys?: PopulatedKeys[];
|
|
3981
|
+
from__id?: string;
|
|
3982
|
+
to__id?: string;
|
|
3983
|
+
sortBy?: {
|
|
3984
|
+
field: "_id";
|
|
3985
|
+
type: "asc" | "desc";
|
|
3986
|
+
}[];
|
|
3823
3987
|
};
|
|
3824
3988
|
interface Result extends DefaultPaginationResult {
|
|
3825
3989
|
data: CustomListItemSchemaWithPopulatedKeys[];
|
|
@@ -3876,6 +4040,12 @@ export declare namespace Service {
|
|
|
3876
4040
|
local_name?: string[] | string;
|
|
3877
4041
|
disabled?: boolean;
|
|
3878
4042
|
from_updatedAt?: number;
|
|
4043
|
+
from__id?: string;
|
|
4044
|
+
to__id?: string;
|
|
4045
|
+
sortBy?: {
|
|
4046
|
+
field: "_id";
|
|
4047
|
+
type: "asc" | "desc";
|
|
4048
|
+
}[];
|
|
3879
4049
|
[key: string]: any;
|
|
3880
4050
|
};
|
|
3881
4051
|
interface Result extends DefaultPaginationResult {
|
|
@@ -4633,32 +4803,103 @@ export declare namespace Service {
|
|
|
4633
4803
|
}
|
|
4634
4804
|
namespace Workorder {
|
|
4635
4805
|
export interface WorkorderSchema {
|
|
4636
|
-
_id:
|
|
4637
|
-
|
|
4638
|
-
editor?: AdminCreator | RepCreator | ClientCreator;
|
|
4639
|
-
name?: string;
|
|
4806
|
+
_id: StringId;
|
|
4807
|
+
name: string;
|
|
4640
4808
|
local_name?: string;
|
|
4641
|
-
description?: string;
|
|
4642
4809
|
disabled: boolean;
|
|
4810
|
+
client: StringId;
|
|
4811
|
+
client_name: string;
|
|
4812
|
+
sync_id: string;
|
|
4813
|
+
status: WorkorderStatus;
|
|
4814
|
+
creator: AdminCreator | RepCreator | ClientCreator;
|
|
4815
|
+
editor?: AdminCreator | RepCreator | ClientCreator;
|
|
4816
|
+
workorder_categories: StringId[];
|
|
4817
|
+
description?: string;
|
|
4643
4818
|
integration_meta?: {
|
|
4644
4819
|
[key: string]: any;
|
|
4645
4820
|
};
|
|
4646
|
-
status: WorkorderStatus;
|
|
4647
4821
|
assets?: StringId[];
|
|
4648
4822
|
asset_units?: StringId[];
|
|
4649
4823
|
asset_part_units?: StringId[];
|
|
4650
|
-
workorder_categories: StringId[];
|
|
4651
4824
|
due_date?: number;
|
|
4652
4825
|
start_date?: number;
|
|
4653
4826
|
client_location: StringId;
|
|
4654
4827
|
priority?: Priority;
|
|
4655
4828
|
priority_human?: Priority_human;
|
|
4829
|
+
workorder_request?: string;
|
|
4830
|
+
serial_number?: SerialNumber;
|
|
4831
|
+
assigned_to?: StringId[];
|
|
4832
|
+
forms?: StringId[];
|
|
4833
|
+
time: number;
|
|
4834
|
+
is_overdue: boolean;
|
|
4835
|
+
opened_at: number;
|
|
4836
|
+
done_at: number;
|
|
4837
|
+
cancelled_at: number;
|
|
4838
|
+
inprogress_at: number;
|
|
4839
|
+
done_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4840
|
+
cancelled_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4841
|
+
opened_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4842
|
+
inprogress_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4843
|
+
build: Build[];
|
|
4844
|
+
calendars: Calendar[];
|
|
4845
|
+
builtAt: number;
|
|
4846
|
+
due_date_day?: string;
|
|
4847
|
+
last_done_at?: number;
|
|
4848
|
+
last_done_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4849
|
+
resolve_time?: number;
|
|
4850
|
+
startsAt: string;
|
|
4851
|
+
endsAt?: string;
|
|
4852
|
+
is_dunning_allowed?: boolean;
|
|
4853
|
+
score_required_for_dunning?: boolean;
|
|
4854
|
+
min_score_required_for_dunning?: number;
|
|
4855
|
+
score?: number;
|
|
4856
|
+
is_completed?: boolean;
|
|
4857
|
+
forms_v2?: {
|
|
4858
|
+
form_id: StringId;
|
|
4859
|
+
form_activity_id?: StringId;
|
|
4860
|
+
completion_required_for_dunning?: boolean;
|
|
4861
|
+
score_required_for_dunning?: boolean;
|
|
4862
|
+
min_score_required_for_dunning?: number;
|
|
4863
|
+
score?: number;
|
|
4864
|
+
is_completed?: boolean;
|
|
4865
|
+
}[];
|
|
4866
|
+
teams?: StringId[];
|
|
4867
|
+
media?: StringId[];
|
|
4868
|
+
cover_photo?: StringId;
|
|
4869
|
+
custom_status?: StringId;
|
|
4870
|
+
contract?: StringId;
|
|
4871
|
+
parent_repeating_workorder?: StringId;
|
|
4872
|
+
parent_repeating_day?: string;
|
|
4873
|
+
filter_asset_units_by_location?: boolean;
|
|
4874
|
+
company_namespace: string[];
|
|
4875
|
+
createdAt: Date;
|
|
4876
|
+
updatedAt: Date;
|
|
4877
|
+
}
|
|
4878
|
+
export interface PopulatedData {
|
|
4879
|
+
_id: StringId;
|
|
4880
|
+
name: string;
|
|
4881
|
+
local_name?: string;
|
|
4882
|
+
disabled: boolean;
|
|
4656
4883
|
client: StringId;
|
|
4657
4884
|
client_name: string;
|
|
4885
|
+
sync_id: string;
|
|
4886
|
+
status: WorkorderStatus;
|
|
4887
|
+
creator: AdminCreator | RepCreator | ClientCreator;
|
|
4888
|
+
editor?: AdminCreator | RepCreator | ClientCreator;
|
|
4889
|
+
workorder_categories: StringId[];
|
|
4890
|
+
description?: string;
|
|
4891
|
+
integration_meta?: {
|
|
4892
|
+
[key: string]: any;
|
|
4893
|
+
};
|
|
4894
|
+
assets?: StringId[];
|
|
4895
|
+
asset_units?: StringId[];
|
|
4896
|
+
asset_part_units?: StringId[];
|
|
4897
|
+
due_date?: number;
|
|
4898
|
+
start_date?: number;
|
|
4899
|
+
client_location: StringId;
|
|
4900
|
+
priority?: Priority;
|
|
4901
|
+
priority_human?: Priority_human;
|
|
4658
4902
|
workorder_request?: string;
|
|
4659
|
-
createdAt?: Date;
|
|
4660
|
-
updatedAt?: Date;
|
|
4661
|
-
company_namespace: string[];
|
|
4662
4903
|
serial_number?: SerialNumber;
|
|
4663
4904
|
assigned_to?: StringId[];
|
|
4664
4905
|
forms?: StringId[];
|
|
@@ -4675,13 +4916,43 @@ export declare namespace Service {
|
|
|
4675
4916
|
build: Build[];
|
|
4676
4917
|
calendars: Calendar[];
|
|
4677
4918
|
builtAt: number;
|
|
4678
|
-
due_date_day
|
|
4679
|
-
last_done_at
|
|
4680
|
-
last_done_by
|
|
4681
|
-
resolve_time
|
|
4682
|
-
sync_id: string;
|
|
4919
|
+
due_date_day?: string;
|
|
4920
|
+
last_done_at?: number;
|
|
4921
|
+
last_done_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4922
|
+
resolve_time?: number;
|
|
4683
4923
|
startsAt: string;
|
|
4684
|
-
endsAt
|
|
4924
|
+
endsAt?: string;
|
|
4925
|
+
is_dunning_allowed?: boolean;
|
|
4926
|
+
score_required_for_dunning?: boolean;
|
|
4927
|
+
min_score_required_for_dunning?: number;
|
|
4928
|
+
score?: number;
|
|
4929
|
+
is_completed?: boolean;
|
|
4930
|
+
forms_v2?: {
|
|
4931
|
+
form_id:
|
|
4932
|
+
| StringId
|
|
4933
|
+
| {
|
|
4934
|
+
_id: StringId;
|
|
4935
|
+
name: string;
|
|
4936
|
+
local_name?: string;
|
|
4937
|
+
};
|
|
4938
|
+
form_activity_id?: StringId;
|
|
4939
|
+
completion_required_for_dunning?: boolean;
|
|
4940
|
+
score_required_for_dunning?: boolean;
|
|
4941
|
+
min_score_required_for_dunning?: number;
|
|
4942
|
+
score?: number;
|
|
4943
|
+
is_completed?: boolean;
|
|
4944
|
+
}[];
|
|
4945
|
+
teams?: StringId[];
|
|
4946
|
+
media?: StringId[];
|
|
4947
|
+
cover_photo?: StringId;
|
|
4948
|
+
custom_status?: StringId;
|
|
4949
|
+
contract?: StringId;
|
|
4950
|
+
parent_repeating_workorder?: StringId;
|
|
4951
|
+
parent_repeating_day?: string;
|
|
4952
|
+
filter_asset_units_by_location?: boolean;
|
|
4953
|
+
company_namespace: string[];
|
|
4954
|
+
createdAt: Date;
|
|
4955
|
+
updatedAt: Date;
|
|
4685
4956
|
teams_populated?: Pick<Team.TeamSchema, "name">;
|
|
4686
4957
|
client_populated?: Pick<Client.ClientSchema, "client_code" | "name">;
|
|
4687
4958
|
asset_units_populated?: AssetUnitsPopulated[];
|
|
@@ -4710,31 +4981,16 @@ export declare namespace Service {
|
|
|
4710
4981
|
forms_populated?: FormPopulated[];
|
|
4711
4982
|
media_populated?: MediaPopulated;
|
|
4712
4983
|
cover_photo_populated?: MediaPopulated;
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
form_activity_id?: StringId;
|
|
4721
|
-
completion_required_for_dunning?: boolean;
|
|
4722
|
-
score_required_for_dunning?: boolean;
|
|
4723
|
-
min_score_required_for_dunning?: number;
|
|
4724
|
-
score?: number;
|
|
4725
|
-
is_completed?: boolean;
|
|
4726
|
-
}[];
|
|
4727
|
-
teams?: StringId[];
|
|
4728
|
-
media?: StringId[];
|
|
4729
|
-
cover_photo?: StringId;
|
|
4730
|
-
custom_status?: StringId;
|
|
4731
|
-
contract?: StringId;
|
|
4732
|
-
parent_repeating_workorder?: StringId;
|
|
4733
|
-
parent_repeating_day?: string;
|
|
4734
|
-
filter_asset_units_by_location?: boolean;
|
|
4984
|
+
contract_populated?: {
|
|
4985
|
+
_id: StringId;
|
|
4986
|
+
serial_number: SerialNumber;
|
|
4987
|
+
title?: string;
|
|
4988
|
+
external_serial_number?: string;
|
|
4989
|
+
status?: "open" | "closed" | "canceled";
|
|
4990
|
+
};
|
|
4735
4991
|
}
|
|
4736
4992
|
export interface CreateBody {
|
|
4737
|
-
company_namespace
|
|
4993
|
+
company_namespace?: string[];
|
|
4738
4994
|
creator?: AdminCreator | RepCreator | ClientCreator;
|
|
4739
4995
|
name: string;
|
|
4740
4996
|
local_name?: string;
|
|
@@ -4743,7 +4999,7 @@ export declare namespace Service {
|
|
|
4743
4999
|
integration_meta?: {
|
|
4744
5000
|
[key: string]: any;
|
|
4745
5001
|
};
|
|
4746
|
-
status
|
|
5002
|
+
status?: WorkorderStatus;
|
|
4747
5003
|
assets?: StringId[];
|
|
4748
5004
|
asset_units?: StringId[];
|
|
4749
5005
|
asset_part_units?: StringId[];
|
|
@@ -4762,22 +5018,37 @@ export declare namespace Service {
|
|
|
4762
5018
|
calendars: Calendar[];
|
|
4763
5019
|
parent_repeating_workorder?: StringId;
|
|
4764
5020
|
due_date_day?: string;
|
|
4765
|
-
last_done_at
|
|
4766
|
-
last_done_by
|
|
4767
|
-
resolve_time
|
|
5021
|
+
last_done_at?: number;
|
|
5022
|
+
last_done_by?: AdminCreator | RepCreator | ClientCreator;
|
|
5023
|
+
resolve_time?: number;
|
|
4768
5024
|
sync_id: string;
|
|
4769
|
-
opened_at
|
|
4770
|
-
time
|
|
4771
|
-
opened_by
|
|
5025
|
+
opened_at?: number;
|
|
5026
|
+
time?: number;
|
|
5027
|
+
opened_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4772
5028
|
teams?: StringId[];
|
|
4773
5029
|
media?: StringId[];
|
|
4774
5030
|
cover_photo?: StringId;
|
|
4775
5031
|
custom_status?: StringId;
|
|
4776
5032
|
contract?: StringId;
|
|
5033
|
+
is_dunning_allowed?: boolean;
|
|
5034
|
+
score_required_for_dunning?: boolean;
|
|
5035
|
+
min_score_required_for_dunning?: number;
|
|
5036
|
+
score?: number;
|
|
5037
|
+
is_completed?: boolean;
|
|
5038
|
+
forms_v2?: {
|
|
5039
|
+
form_id: StringId;
|
|
5040
|
+
form_activity_id?: StringId;
|
|
5041
|
+
completion_required_for_dunning?: boolean;
|
|
5042
|
+
score_required_for_dunning?: boolean;
|
|
5043
|
+
min_score_required_for_dunning?: number;
|
|
5044
|
+
score?: number;
|
|
5045
|
+
is_completed?: boolean;
|
|
5046
|
+
}[];
|
|
5047
|
+
filter_asset_units_by_location?: boolean;
|
|
4777
5048
|
}
|
|
4778
5049
|
export interface UpdateBody {
|
|
4779
|
-
company_namespace
|
|
4780
|
-
_id?:
|
|
5050
|
+
company_namespace?: string[];
|
|
5051
|
+
_id?: StringId;
|
|
4781
5052
|
creator?: AdminCreator | RepCreator | ClientCreator;
|
|
4782
5053
|
editor?: AdminCreator | RepCreator | ClientCreator;
|
|
4783
5054
|
name?: string;
|
|
@@ -4787,40 +5058,40 @@ export declare namespace Service {
|
|
|
4787
5058
|
integration_meta?: {
|
|
4788
5059
|
[key: string]: any;
|
|
4789
5060
|
};
|
|
4790
|
-
status
|
|
4791
|
-
assets?:
|
|
4792
|
-
asset_units?:
|
|
5061
|
+
status?: WorkorderStatus;
|
|
5062
|
+
assets?: StringId[];
|
|
5063
|
+
asset_units?: StringId[];
|
|
4793
5064
|
asset_part_units?: StringId[];
|
|
4794
|
-
workorder_categories
|
|
5065
|
+
workorder_categories?: string[];
|
|
4795
5066
|
due_date?: number;
|
|
4796
5067
|
start_date?: number;
|
|
4797
|
-
client_location:
|
|
5068
|
+
client_location: StringId;
|
|
4798
5069
|
priority?: Priority;
|
|
4799
5070
|
priority_human?: Priority_human;
|
|
4800
|
-
client
|
|
5071
|
+
client?: StringId;
|
|
4801
5072
|
client_name?: string;
|
|
4802
|
-
workorder_request?:
|
|
5073
|
+
workorder_request?: StringId;
|
|
4803
5074
|
createdAt?: Date;
|
|
4804
5075
|
updatedAt?: Date;
|
|
4805
5076
|
serial_number?: SerialNumber;
|
|
4806
|
-
assigned_to?:
|
|
4807
|
-
forms?:
|
|
4808
|
-
time
|
|
4809
|
-
is_overdue
|
|
4810
|
-
opened_at
|
|
4811
|
-
done_at
|
|
4812
|
-
cancelled_at
|
|
4813
|
-
inprogress_at
|
|
5077
|
+
assigned_to?: StringId[];
|
|
5078
|
+
forms?: StringId[];
|
|
5079
|
+
time?: number;
|
|
5080
|
+
is_overdue?: boolean;
|
|
5081
|
+
opened_at?: number;
|
|
5082
|
+
done_at?: number;
|
|
5083
|
+
cancelled_at?: number;
|
|
5084
|
+
inprogress_at?: number;
|
|
4814
5085
|
done_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4815
5086
|
cancelled_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4816
5087
|
opened_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4817
5088
|
inprogress_by?: AdminCreator | RepCreator | ClientCreator;
|
|
4818
|
-
calendars
|
|
5089
|
+
calendars?: Calendar[];
|
|
4819
5090
|
parent_repeating_workorder?: string;
|
|
4820
5091
|
due_date_day?: string;
|
|
4821
|
-
last_done_at
|
|
4822
|
-
last_done_by
|
|
4823
|
-
resolve_time
|
|
5092
|
+
last_done_at?: number;
|
|
5093
|
+
last_done_by?: AdminCreator | RepCreator | ClientCreator;
|
|
5094
|
+
resolve_time?: number;
|
|
4824
5095
|
sync_id?: string;
|
|
4825
5096
|
teams?: StringId[];
|
|
4826
5097
|
media?: StringId[];
|
|
@@ -4847,24 +5118,26 @@ export declare namespace Service {
|
|
|
4847
5118
|
| "forms"
|
|
4848
5119
|
| "media"
|
|
4849
5120
|
| "cover_photo"
|
|
4850
|
-
| "teams"
|
|
5121
|
+
| "teams"
|
|
5122
|
+
| "forms_v2"
|
|
5123
|
+
| "contract";
|
|
4851
5124
|
export namespace Find {
|
|
4852
5125
|
type Params = DefaultPaginationQueryParams & {
|
|
4853
|
-
name?: string;
|
|
4854
|
-
_id?:
|
|
4855
|
-
assigned_to?:
|
|
4856
|
-
priority?: Priority;
|
|
4857
|
-
priority_human?: Priority_human;
|
|
4858
|
-
status?: WorkorderStatus;
|
|
4859
|
-
workorder_categories?:
|
|
4860
|
-
client_location?:
|
|
4861
|
-
client?:
|
|
4862
|
-
assets?:
|
|
4863
|
-
asset_units?:
|
|
4864
|
-
asset_part_units?: StringId[];
|
|
5126
|
+
name?: string | string[];
|
|
5127
|
+
_id?: StringId | StringId[];
|
|
5128
|
+
assigned_to?: StringId | StringId[];
|
|
5129
|
+
priority?: Priority | Priority[];
|
|
5130
|
+
priority_human?: Priority_human | Priority_human[];
|
|
5131
|
+
status?: WorkorderStatus | WorkorderStatus[];
|
|
5132
|
+
workorder_categories?: StringId | StringId[];
|
|
5133
|
+
client_location?: StringId | StringId[];
|
|
5134
|
+
client?: StringId | StringId[];
|
|
5135
|
+
assets?: StringId | StringId[];
|
|
5136
|
+
asset_units?: StringId | StringId[];
|
|
5137
|
+
asset_part_units?: StringId | StringId[];
|
|
4865
5138
|
due_date?: number;
|
|
4866
5139
|
start_date?: number;
|
|
4867
|
-
forms?:
|
|
5140
|
+
forms?: StringId | StringId[];
|
|
4868
5141
|
from_createdAt?: number;
|
|
4869
5142
|
to_createdAt?: number;
|
|
4870
5143
|
from_updatedAt?: number;
|
|
@@ -4873,10 +5146,26 @@ export declare namespace Service {
|
|
|
4873
5146
|
to_start_date?: number;
|
|
4874
5147
|
from_due_date?: number;
|
|
4875
5148
|
to_due_date?: number;
|
|
4876
|
-
teams?:
|
|
5149
|
+
teams?: StringId | StringId[];
|
|
5150
|
+
is_dunning_allowed?: boolean | boolean[];
|
|
5151
|
+
is_completed?: boolean | boolean[];
|
|
5152
|
+
from_score?: number;
|
|
5153
|
+
to_score?: number;
|
|
5154
|
+
score?: number;
|
|
5155
|
+
contract?: StringId | StringId[];
|
|
5156
|
+
"forms_v2.form_id"?: StringId | StringId[];
|
|
5157
|
+
started?: boolean;
|
|
5158
|
+
assignedToMe?: boolean;
|
|
5159
|
+
search?: string;
|
|
5160
|
+
populatedKeys?: PopulatedKeys | PopulatedKeys[];
|
|
5161
|
+
sortBy?: {
|
|
5162
|
+
field: SortingKeys;
|
|
5163
|
+
type: "asc" | "desc";
|
|
5164
|
+
}[];
|
|
5165
|
+
[key: string]: any;
|
|
4877
5166
|
};
|
|
4878
5167
|
interface Result extends DefaultPaginationResult {
|
|
4879
|
-
data: WorkorderSchema[];
|
|
5168
|
+
data: WorkorderSchema[] | PopulatedData[];
|
|
4880
5169
|
absolute_total: number;
|
|
4881
5170
|
page_total: number;
|
|
4882
5171
|
}
|
|
@@ -4887,7 +5176,20 @@ export declare namespace Service {
|
|
|
4887
5176
|
populatedKeys?: PopulatedKeys[];
|
|
4888
5177
|
sortPage?: SortingKeys;
|
|
4889
5178
|
}
|
|
4890
|
-
type Result = WorkorderSchema;
|
|
5179
|
+
type Result = WorkorderSchema | PopulatedData;
|
|
5180
|
+
}
|
|
5181
|
+
export namespace Create {
|
|
5182
|
+
type Body = CreateBody;
|
|
5183
|
+
type Result = Data;
|
|
5184
|
+
}
|
|
5185
|
+
export namespace Update {
|
|
5186
|
+
type ID = string;
|
|
5187
|
+
type Body = UpdateBody;
|
|
5188
|
+
type Result = Data;
|
|
5189
|
+
}
|
|
5190
|
+
export namespace Remove {
|
|
5191
|
+
type ID = string;
|
|
5192
|
+
type Result = Data;
|
|
4891
5193
|
}
|
|
4892
5194
|
export {};
|
|
4893
5195
|
}
|
|
@@ -5709,9 +6011,9 @@ export declare namespace Service {
|
|
|
5709
6011
|
ref?: string;
|
|
5710
6012
|
}[];
|
|
5711
6013
|
partially_returned_from?: StringId;
|
|
5712
|
-
partially_returned_to?: StringId;
|
|
6014
|
+
partially_returned_to?: StringId[];
|
|
5713
6015
|
partially_returned_from_serial_number?: SerialNumber;
|
|
5714
|
-
partially_returned_to_serial_number?: SerialNumber;
|
|
6016
|
+
partially_returned_to_serial_number?: SerialNumber[];
|
|
5715
6017
|
discount_amount_float?: number;
|
|
5716
6018
|
net_total?: number;
|
|
5717
6019
|
tax_amount_after_deduction_float?: number;
|
|
@@ -5818,6 +6120,12 @@ export declare namespace Service {
|
|
|
5818
6120
|
"serial_number.formatted"?: string[] | string;
|
|
5819
6121
|
"return_serial_number.formatted"?: string[] | string;
|
|
5820
6122
|
returned_from?: string[] | string;
|
|
6123
|
+
from__id?: string;
|
|
6124
|
+
to__id?: string;
|
|
6125
|
+
sortBy?: {
|
|
6126
|
+
field: "_id";
|
|
6127
|
+
type: "asc" | "desc";
|
|
6128
|
+
}[];
|
|
5821
6129
|
};
|
|
5822
6130
|
interface Result extends DefaultPaginationResult {
|
|
5823
6131
|
data: InvoiceSchemaWithPopulatedKeys[];
|
|
@@ -6343,7 +6651,7 @@ export declare namespace Service {
|
|
|
6343
6651
|
};
|
|
6344
6652
|
type PopulatedKeys = "custom_status" | "return_reason" | "teams" | "route";
|
|
6345
6653
|
type ProformaStatus = "pending" | "approved" | "processing" | "rejected";
|
|
6346
|
-
type
|
|
6654
|
+
type VariantSortingKeys =
|
|
6347
6655
|
| "product_sku"
|
|
6348
6656
|
| "product_barcode"
|
|
6349
6657
|
| "variant_name"
|
|
@@ -6371,10 +6679,16 @@ export declare namespace Service {
|
|
|
6371
6679
|
custom_status?: string[] | string;
|
|
6372
6680
|
status?: ProformaStatus | ProformaStatus[];
|
|
6373
6681
|
[key: string]: any;
|
|
6374
|
-
sortPage?:
|
|
6682
|
+
sortPage?: VariantSortingKeys;
|
|
6375
6683
|
export?: "excel";
|
|
6376
6684
|
withClientDetails?: boolean;
|
|
6377
6685
|
populatedKeys?: PopulatedKeys[];
|
|
6686
|
+
from__id?: string;
|
|
6687
|
+
to__id?: string;
|
|
6688
|
+
sortBy?: {
|
|
6689
|
+
field: "_id";
|
|
6690
|
+
type: "asc" | "desc";
|
|
6691
|
+
}[];
|
|
6378
6692
|
nodeCycles?: string[] | string;
|
|
6379
6693
|
withCycle?: boolean;
|
|
6380
6694
|
};
|
|
@@ -6385,7 +6699,7 @@ export declare namespace Service {
|
|
|
6385
6699
|
export namespace Get {
|
|
6386
6700
|
type ID = string;
|
|
6387
6701
|
interface Params {
|
|
6388
|
-
sortPage?:
|
|
6702
|
+
sortPage?: VariantSortingKeys;
|
|
6389
6703
|
withClientDetails?: boolean;
|
|
6390
6704
|
withCycle?: boolean;
|
|
6391
6705
|
}
|
|
@@ -6531,6 +6845,12 @@ export declare namespace Service {
|
|
|
6531
6845
|
"serial_number.formatted"?: string[] | string;
|
|
6532
6846
|
[key: string]: any;
|
|
6533
6847
|
populatedKeys?: PopulatedKeys[];
|
|
6848
|
+
from__id?: string;
|
|
6849
|
+
to__id?: string;
|
|
6850
|
+
sortBy?: {
|
|
6851
|
+
field: "_id";
|
|
6852
|
+
type: "asc" | "desc";
|
|
6853
|
+
}[];
|
|
6534
6854
|
};
|
|
6535
6855
|
interface Result extends DefaultPaginationResult {
|
|
6536
6856
|
data: PaymentSchemaWithPopulatedKeys[];
|
|
@@ -6675,6 +6995,12 @@ export declare namespace Service {
|
|
|
6675
6995
|
withPrintDetails?: boolean;
|
|
6676
6996
|
[key: string]: any;
|
|
6677
6997
|
populatedKeys?: PopulatedKeys[];
|
|
6998
|
+
from__id?: string;
|
|
6999
|
+
to__id?: string;
|
|
7000
|
+
sortBy?: {
|
|
7001
|
+
field: "_id";
|
|
7002
|
+
type: "asc" | "desc";
|
|
7003
|
+
}[];
|
|
6678
7004
|
};
|
|
6679
7005
|
interface Result extends DefaultPaginationResult {
|
|
6680
7006
|
data: RefundSchemaWithPopulatedKeys[];
|
|
@@ -6782,6 +7108,12 @@ export declare namespace Service {
|
|
|
6782
7108
|
from_createdAt?: number;
|
|
6783
7109
|
to_createdAt?: number;
|
|
6784
7110
|
from_updatedAt?: number;
|
|
7111
|
+
from__id?: string;
|
|
7112
|
+
to__id?: string;
|
|
7113
|
+
sortBy?: {
|
|
7114
|
+
field: "_id";
|
|
7115
|
+
type: "asc" | "desc";
|
|
7116
|
+
}[];
|
|
6785
7117
|
[key: string]: any;
|
|
6786
7118
|
populatedKeys?: PopulatedKeys[];
|
|
6787
7119
|
};
|
|
@@ -6895,6 +7227,12 @@ export declare namespace Service {
|
|
|
6895
7227
|
from_updatedAt?: number;
|
|
6896
7228
|
[key: string]: any;
|
|
6897
7229
|
populatedKeys?: PopulatedKeys[];
|
|
7230
|
+
from__id?: string;
|
|
7231
|
+
to__id?: string;
|
|
7232
|
+
sortBy?: {
|
|
7233
|
+
field: "_id";
|
|
7234
|
+
type: "asc" | "desc";
|
|
7235
|
+
}[];
|
|
6898
7236
|
};
|
|
6899
7237
|
interface Result extends DefaultPaginationResult {
|
|
6900
7238
|
data: CheckSchemaWithPopulatedKeys[];
|
|
@@ -7082,6 +7420,12 @@ export declare namespace Service {
|
|
|
7082
7420
|
from_updatedAt?: number;
|
|
7083
7421
|
[key: string]: any;
|
|
7084
7422
|
populatedKeys?: PopulatedKeys[];
|
|
7423
|
+
from__id?: string;
|
|
7424
|
+
to__id?: string;
|
|
7425
|
+
sortBy?: {
|
|
7426
|
+
field: "_id";
|
|
7427
|
+
type: "asc" | "desc";
|
|
7428
|
+
}[];
|
|
7085
7429
|
};
|
|
7086
7430
|
interface Result extends DefaultPaginationResult {
|
|
7087
7431
|
data: DaySchemaWithPopulatedKeys[];
|
|
@@ -7219,6 +7563,12 @@ export declare namespace Service {
|
|
|
7219
7563
|
from_createdAt?: number;
|
|
7220
7564
|
to_createdAt?: number;
|
|
7221
7565
|
from_updatedAt?: number;
|
|
7566
|
+
from__id?: string;
|
|
7567
|
+
to__id?: string;
|
|
7568
|
+
sortBy?: {
|
|
7569
|
+
field: "_id";
|
|
7570
|
+
type: "asc" | "desc";
|
|
7571
|
+
}[];
|
|
7222
7572
|
[key: string]: any;
|
|
7223
7573
|
};
|
|
7224
7574
|
interface Result extends DefaultPaginationResult {
|
|
@@ -7284,6 +7634,12 @@ export declare namespace Service {
|
|
|
7284
7634
|
local_name?: string;
|
|
7285
7635
|
type?: string;
|
|
7286
7636
|
from_updatedAt?: number;
|
|
7637
|
+
from__id?: string;
|
|
7638
|
+
to__id?: string;
|
|
7639
|
+
sortBy?: {
|
|
7640
|
+
field: "_id";
|
|
7641
|
+
type: "asc" | "desc";
|
|
7642
|
+
}[];
|
|
7287
7643
|
[key: string]: any;
|
|
7288
7644
|
};
|
|
7289
7645
|
interface Result extends DefaultPaginationResult {
|
|
@@ -7525,7 +7881,13 @@ export declare namespace Service {
|
|
|
7525
7881
|
custom_status?: string[] | string;
|
|
7526
7882
|
creator?: string[] | string;
|
|
7527
7883
|
nodeCycles?: string[] | string;
|
|
7884
|
+
from__id?: string;
|
|
7885
|
+
to__id?: string;
|
|
7528
7886
|
populatedKeys?: PopulatedKeys[];
|
|
7887
|
+
sortBy?: {
|
|
7888
|
+
field: "_id";
|
|
7889
|
+
type: "asc" | "desc";
|
|
7890
|
+
}[];
|
|
7529
7891
|
[key: string]: any;
|
|
7530
7892
|
};
|
|
7531
7893
|
interface Result extends DefaultPaginationResult {
|
|
@@ -7680,6 +8042,12 @@ export declare namespace Service {
|
|
|
7680
8042
|
from_createdAt?: number;
|
|
7681
8043
|
to_createdAt?: number;
|
|
7682
8044
|
from_updatedAt?: number;
|
|
8045
|
+
from__id?: string;
|
|
8046
|
+
to__id?: string;
|
|
8047
|
+
sortBy?: {
|
|
8048
|
+
field: "_id";
|
|
8049
|
+
type: "asc" | "desc";
|
|
8050
|
+
}[];
|
|
7683
8051
|
[key: string]: any;
|
|
7684
8052
|
};
|
|
7685
8053
|
interface Result extends DefaultPaginationResult {
|
|
@@ -7848,6 +8216,12 @@ export declare namespace Service {
|
|
|
7848
8216
|
from_updatedAt?: number;
|
|
7849
8217
|
to_updatedAt?: number;
|
|
7850
8218
|
populatedKeys?: PopulatedKeys[];
|
|
8219
|
+
from__id?: string;
|
|
8220
|
+
to__id?: string;
|
|
8221
|
+
sortBy?: {
|
|
8222
|
+
field: "_id";
|
|
8223
|
+
type: "asc" | "desc";
|
|
8224
|
+
}[];
|
|
7851
8225
|
};
|
|
7852
8226
|
interface Result extends DefaultPaginationResult {
|
|
7853
8227
|
data: Data[] | PopulatedData[];
|
|
@@ -7909,6 +8283,12 @@ export declare namespace Service {
|
|
|
7909
8283
|
_id?: string[] | string;
|
|
7910
8284
|
name?: string;
|
|
7911
8285
|
from_updatedAt?: number;
|
|
8286
|
+
from__id?: string;
|
|
8287
|
+
to__id?: string;
|
|
8288
|
+
sortBy?: {
|
|
8289
|
+
field: "_id";
|
|
8290
|
+
type: "asc" | "desc";
|
|
8291
|
+
}[];
|
|
7912
8292
|
[key: string]: any;
|
|
7913
8293
|
};
|
|
7914
8294
|
interface Result extends DefaultPaginationResult {
|
|
@@ -11360,9 +11740,629 @@ export declare namespace Service {
|
|
|
11360
11740
|
type Result = Data;
|
|
11361
11741
|
}
|
|
11362
11742
|
}
|
|
11743
|
+
namespace Settings {
|
|
11744
|
+
type Separator = "," | " " | "." | "'";
|
|
11745
|
+
interface EmailFilter {
|
|
11746
|
+
id?: string;
|
|
11747
|
+
key: string;
|
|
11748
|
+
operator: "eq" | "ne" | "in" | "nin" | "gt" | "gte" | "lt" | "lte";
|
|
11749
|
+
value: any[];
|
|
11750
|
+
}
|
|
11751
|
+
interface SalesSettings {
|
|
11752
|
+
currency: string;
|
|
11753
|
+
name_on_invoice?: string;
|
|
11754
|
+
invoice_footer?: string;
|
|
11755
|
+
logo?: string;
|
|
11756
|
+
logo_media?: StringId | PopulatedMediaStorage;
|
|
11757
|
+
tax_number?: string;
|
|
11758
|
+
default_payment_type?: "cash" | "credit";
|
|
11759
|
+
saudi_law?: boolean;
|
|
11760
|
+
handle_integrated_client_balance?: boolean;
|
|
11761
|
+
dot_separator?: Separator;
|
|
11762
|
+
thousands_separator?: Separator;
|
|
11763
|
+
number_of_digits_after_dot_separator?: 0 | 1 | 2 | 3;
|
|
11764
|
+
hide_line_item_tax?: boolean;
|
|
11765
|
+
line_total_key?:
|
|
11766
|
+
| "line_total"
|
|
11767
|
+
| "total_before_tax"
|
|
11768
|
+
| "lineTotalAfterDeduction";
|
|
11769
|
+
return_invoice_title?: string;
|
|
11770
|
+
return_invoice_local_title?: string;
|
|
11771
|
+
invoice_title?: string;
|
|
11772
|
+
invoice_local_title?: string;
|
|
11773
|
+
proforma_title?: string;
|
|
11774
|
+
proforma_local_title?: string;
|
|
11775
|
+
show_total_in_words?: boolean;
|
|
11776
|
+
address_1?: string;
|
|
11777
|
+
address_2?: string;
|
|
11778
|
+
prevent_negative_convert_to_invoice_stock?: boolean;
|
|
11779
|
+
empty_proforma_cart_at_visit_start_by_same_creator?: boolean;
|
|
11780
|
+
empty_proforma_cart_at_visit_start_by_any_creator?: boolean;
|
|
11781
|
+
empty_fullinvoice_cart_at_visit_start_by_same_creator?: boolean;
|
|
11782
|
+
empty_fullinvoice_cart_at_visit_start_by_any_creator?: boolean;
|
|
11783
|
+
enforce_serial_number_by_server?: boolean;
|
|
11784
|
+
invoice_advanced_serial_number_format?: {
|
|
11785
|
+
format: {
|
|
11786
|
+
year_format?: "YYYY" | "YY";
|
|
11787
|
+
month_format?: "M" | "MM" | "MMM" | "MMMM";
|
|
11788
|
+
day_format?: "D" | "DD";
|
|
11789
|
+
counter_length_fixed?: boolean;
|
|
11790
|
+
counter_length?: number;
|
|
11791
|
+
id_format: string;
|
|
11792
|
+
};
|
|
11793
|
+
counter: number;
|
|
11794
|
+
};
|
|
11795
|
+
activate_advanced_serial_number?: boolean;
|
|
11796
|
+
enable_variant_batches_at_invoice?: boolean;
|
|
11797
|
+
enable_variant_batches_at_proforma?: boolean;
|
|
11798
|
+
enable_variant_batches_at_return_invoice?: boolean;
|
|
11799
|
+
prevent_negative_transfer_stock?: boolean;
|
|
11800
|
+
currency_subunit?: string;
|
|
11801
|
+
local_currency?: string;
|
|
11802
|
+
local_currency_subunit?: string;
|
|
11803
|
+
currency_factor?: 100 | 1000;
|
|
11804
|
+
}
|
|
11805
|
+
interface Data {
|
|
11806
|
+
_id: string;
|
|
11807
|
+
company_namespace: string[];
|
|
11808
|
+
live_location: {
|
|
11809
|
+
active: boolean;
|
|
11810
|
+
from?: string;
|
|
11811
|
+
to?: string;
|
|
11812
|
+
};
|
|
11813
|
+
use_original_image_compression?: boolean;
|
|
11814
|
+
use_client_specific_sales_settings?: boolean;
|
|
11815
|
+
use_client_specific_sales_settings_for_payment?: boolean;
|
|
11816
|
+
use_client_specific_sales_settings_for_client_statement?: boolean;
|
|
11817
|
+
disable_ubl_integration_for_return_invoice?: boolean;
|
|
11818
|
+
sales: SalesSettings;
|
|
11819
|
+
geofencing: {
|
|
11820
|
+
visit_start: boolean;
|
|
11821
|
+
visit_end: boolean;
|
|
11822
|
+
radius: number;
|
|
11823
|
+
visit_strict: boolean;
|
|
11824
|
+
};
|
|
11825
|
+
mail_list: {
|
|
11826
|
+
invoice_sales: {
|
|
11827
|
+
name: string;
|
|
11828
|
+
email: string;
|
|
11829
|
+
filters?: EmailFilter[];
|
|
11830
|
+
}[];
|
|
11831
|
+
mocking: {
|
|
11832
|
+
name: string;
|
|
11833
|
+
email: string;
|
|
11834
|
+
}[];
|
|
11835
|
+
sales_order: {
|
|
11836
|
+
name: string;
|
|
11837
|
+
email: string;
|
|
11838
|
+
filters?: EmailFilter[];
|
|
11839
|
+
}[];
|
|
11840
|
+
photo: {
|
|
11841
|
+
name: string;
|
|
11842
|
+
email: string;
|
|
11843
|
+
filters?: EmailFilter[];
|
|
11844
|
+
}[];
|
|
11845
|
+
live_location: {
|
|
11846
|
+
name: string;
|
|
11847
|
+
email: string;
|
|
11848
|
+
filters?: EmailFilter[];
|
|
11849
|
+
}[];
|
|
11850
|
+
location_off: {
|
|
11851
|
+
name: string;
|
|
11852
|
+
email: string;
|
|
11853
|
+
filters?: EmailFilter[];
|
|
11854
|
+
}[];
|
|
11855
|
+
location_on: {
|
|
11856
|
+
name: string;
|
|
11857
|
+
email: string;
|
|
11858
|
+
filters?: EmailFilter[];
|
|
11859
|
+
}[];
|
|
11860
|
+
contract_expiry: {
|
|
11861
|
+
name: string;
|
|
11862
|
+
email: string;
|
|
11863
|
+
}[];
|
|
11864
|
+
contract_near_expiry: {
|
|
11865
|
+
name: string;
|
|
11866
|
+
email: string;
|
|
11867
|
+
}[];
|
|
11868
|
+
contract_installment_due: {
|
|
11869
|
+
name: string;
|
|
11870
|
+
email: string;
|
|
11871
|
+
}[];
|
|
11872
|
+
contract_installment_near_due: {
|
|
11873
|
+
name: string;
|
|
11874
|
+
email: string;
|
|
11875
|
+
}[];
|
|
11876
|
+
};
|
|
11877
|
+
promotions: {
|
|
11878
|
+
enforcement_mode:
|
|
11879
|
+
| "all_in_inventory"
|
|
11880
|
+
| "all"
|
|
11881
|
+
| "gift_in_inventory"
|
|
11882
|
+
| "gift"
|
|
11883
|
+
| "custom";
|
|
11884
|
+
apply_hidden_price: boolean;
|
|
11885
|
+
apply_all_promotions: boolean;
|
|
11886
|
+
applying_sort: {
|
|
11887
|
+
[key: string]: -1 | 1;
|
|
11888
|
+
}[];
|
|
11889
|
+
force_cash_only: boolean;
|
|
11890
|
+
allow_manual_discounts?: boolean;
|
|
11891
|
+
manual_discounts_limit_percentage: number;
|
|
11892
|
+
manual_discounts_limit_value?: number;
|
|
11893
|
+
promotions_enabled: boolean;
|
|
11894
|
+
round_discounted_price: boolean;
|
|
11895
|
+
};
|
|
11896
|
+
teams_shared_collections: string[];
|
|
11897
|
+
days_of_work:
|
|
11898
|
+
| "Sunday"
|
|
11899
|
+
| "Monday"
|
|
11900
|
+
| "Tuesday"
|
|
11901
|
+
| "Wednesday"
|
|
11902
|
+
| "Thursday"
|
|
11903
|
+
| "Friday"
|
|
11904
|
+
| "Saturday";
|
|
11905
|
+
signUpMethod: "email" | "phone";
|
|
11906
|
+
calculate_target_for_absent_days: boolean;
|
|
11907
|
+
disable_module_custom_validator: boolean;
|
|
11908
|
+
activate_ubl_integration: boolean;
|
|
11909
|
+
last_activate_ubl_integration_time?: number;
|
|
11910
|
+
visit: {
|
|
11911
|
+
manual_product_line_selection: boolean;
|
|
11912
|
+
};
|
|
11913
|
+
custom_status: {
|
|
11914
|
+
use_custom_status_transfer?: boolean;
|
|
11915
|
+
use_system_status_transfer?: boolean;
|
|
11916
|
+
use_custom_status_payment?: boolean;
|
|
11917
|
+
use_system_status_payment?: boolean;
|
|
11918
|
+
use_custom_status_fullinvoice?: boolean;
|
|
11919
|
+
use_system_status_fullinvoice?: boolean;
|
|
11920
|
+
use_custom_status_proforma?: boolean;
|
|
11921
|
+
use_system_status_proforma?: boolean;
|
|
11922
|
+
use_custom_status_workorder?: boolean;
|
|
11923
|
+
use_system_status_workorder?: boolean;
|
|
11924
|
+
};
|
|
11925
|
+
business_apps: {
|
|
11926
|
+
code: string;
|
|
11927
|
+
services: {
|
|
11928
|
+
permission: string;
|
|
11929
|
+
teams_shared: "shared" | "unshared";
|
|
11930
|
+
}[];
|
|
11931
|
+
}[];
|
|
11932
|
+
form: {
|
|
11933
|
+
overwrite_serial_number?: boolean;
|
|
11934
|
+
allow_create_v1: boolean;
|
|
11935
|
+
};
|
|
11936
|
+
workorder?: {
|
|
11937
|
+
workorder_teams_follow_client?: boolean;
|
|
11938
|
+
workorder_request_teams_follow_client?: boolean;
|
|
11939
|
+
send_email_at_contract_expiry?: boolean;
|
|
11940
|
+
send_email_at_contract_near_expiry?: boolean;
|
|
11941
|
+
send_email_at_contract_installment_due?: boolean;
|
|
11942
|
+
send_email_at_contract_installment_near_due?: boolean;
|
|
11943
|
+
contract_near_expiry_days: number;
|
|
11944
|
+
contract_installment_near_due_days: number;
|
|
11945
|
+
workorder_near_due_days?: number;
|
|
11946
|
+
};
|
|
11947
|
+
notifications?: {
|
|
11948
|
+
calendar_update?: boolean;
|
|
11949
|
+
transfer_update?: boolean;
|
|
11950
|
+
cycle_update?: boolean;
|
|
11951
|
+
client_update?: boolean;
|
|
11952
|
+
approval_request_update?: boolean;
|
|
11953
|
+
workorder_update?: boolean;
|
|
11954
|
+
workorder_start?: boolean;
|
|
11955
|
+
workorder_near_due?: boolean;
|
|
11956
|
+
activity_note?: boolean;
|
|
11957
|
+
activity_form?: boolean;
|
|
11958
|
+
activity_photo?: boolean;
|
|
11959
|
+
activity_audit?: boolean;
|
|
11960
|
+
activity_task?: boolean;
|
|
11961
|
+
activity_availability?: boolean;
|
|
11962
|
+
activity_planogram?: boolean;
|
|
11963
|
+
activity_shelfsahre?: boolean;
|
|
11964
|
+
activity_checkout_display?: boolean;
|
|
11965
|
+
activity_secondary_display?: boolean;
|
|
11966
|
+
};
|
|
11967
|
+
asset_part?: {
|
|
11968
|
+
prevent_negative_asset_part_inventory: boolean;
|
|
11969
|
+
};
|
|
11970
|
+
default_lang?: "en" | "ar";
|
|
11971
|
+
second_lang?: "en" | "ar";
|
|
11972
|
+
report_value_delimiter?: "|" | "," | " " | "." | "-";
|
|
11973
|
+
rep_settings?: {
|
|
11974
|
+
rep_start_day_specific_time_frame_start: string;
|
|
11975
|
+
rep_start_day_specific_time_frame_end: string;
|
|
11976
|
+
};
|
|
11977
|
+
rep_permissions?: {
|
|
11978
|
+
rep_must_start_day_within_specific_time_frame: boolean;
|
|
11979
|
+
};
|
|
11980
|
+
createdAt: Date;
|
|
11981
|
+
updatedAt: Date;
|
|
11982
|
+
}
|
|
11983
|
+
interface PopulatedDoc {
|
|
11984
|
+
_id: string;
|
|
11985
|
+
company_namespace: string[];
|
|
11986
|
+
live_location?: {
|
|
11987
|
+
active: boolean;
|
|
11988
|
+
from?: string;
|
|
11989
|
+
to?: string;
|
|
11990
|
+
};
|
|
11991
|
+
use_original_image_compression?: boolean;
|
|
11992
|
+
use_client_specific_sales_settings?: boolean;
|
|
11993
|
+
use_client_specific_sales_settings_for_payment?: boolean;
|
|
11994
|
+
use_client_specific_sales_settings_for_client_statement?: boolean;
|
|
11995
|
+
disable_ubl_integration_for_return_invoice?: boolean;
|
|
11996
|
+
sales: SalesSettings;
|
|
11997
|
+
geofencing?: {
|
|
11998
|
+
visit_start: boolean;
|
|
11999
|
+
visit_end: boolean;
|
|
12000
|
+
radius: number;
|
|
12001
|
+
visit_strict: boolean;
|
|
12002
|
+
};
|
|
12003
|
+
mail_list?: {
|
|
12004
|
+
invoice_sales?: {
|
|
12005
|
+
name: string;
|
|
12006
|
+
email: string;
|
|
12007
|
+
filters?: EmailFilter[];
|
|
12008
|
+
}[];
|
|
12009
|
+
mocking?: {
|
|
12010
|
+
name: string;
|
|
12011
|
+
email: string;
|
|
12012
|
+
}[];
|
|
12013
|
+
sales_order?: {
|
|
12014
|
+
name: string;
|
|
12015
|
+
email: string;
|
|
12016
|
+
filters?: EmailFilter[];
|
|
12017
|
+
}[];
|
|
12018
|
+
photo?: {
|
|
12019
|
+
name: string;
|
|
12020
|
+
email: string;
|
|
12021
|
+
filters?: EmailFilter[];
|
|
12022
|
+
}[];
|
|
12023
|
+
live_location?: {
|
|
12024
|
+
name: string;
|
|
12025
|
+
email: string;
|
|
12026
|
+
filters?: EmailFilter[];
|
|
12027
|
+
}[];
|
|
12028
|
+
location_off?: {
|
|
12029
|
+
name: string;
|
|
12030
|
+
email: string;
|
|
12031
|
+
filters?: EmailFilter[];
|
|
12032
|
+
}[];
|
|
12033
|
+
location_on?: {
|
|
12034
|
+
name: string;
|
|
12035
|
+
email: string;
|
|
12036
|
+
filters?: EmailFilter[];
|
|
12037
|
+
}[];
|
|
12038
|
+
contract_expiry?: {
|
|
12039
|
+
name: string;
|
|
12040
|
+
email: string;
|
|
12041
|
+
}[];
|
|
12042
|
+
contract_near_expiry?: {
|
|
12043
|
+
name: string;
|
|
12044
|
+
email: string;
|
|
12045
|
+
}[];
|
|
12046
|
+
contract_installment_due?: {
|
|
12047
|
+
name: string;
|
|
12048
|
+
email: string;
|
|
12049
|
+
}[];
|
|
12050
|
+
contract_installment_near_due?: {
|
|
12051
|
+
name: string;
|
|
12052
|
+
email: string;
|
|
12053
|
+
}[];
|
|
12054
|
+
};
|
|
12055
|
+
promotions?: {
|
|
12056
|
+
enforcement_mode?:
|
|
12057
|
+
| "all_in_inventory"
|
|
12058
|
+
| "all"
|
|
12059
|
+
| "gift_in_inventory"
|
|
12060
|
+
| "gift"
|
|
12061
|
+
| "custom";
|
|
12062
|
+
apply_hidden_price?: boolean;
|
|
12063
|
+
apply_all_promotions?: boolean;
|
|
12064
|
+
applying_sort?: {
|
|
12065
|
+
[key: string]: -1 | 1;
|
|
12066
|
+
}[];
|
|
12067
|
+
force_cash_only?: boolean;
|
|
12068
|
+
allow_manual_discounts?: boolean;
|
|
12069
|
+
manual_discounts_limit_percentage?: number;
|
|
12070
|
+
manual_discounts_limit_value?: number;
|
|
12071
|
+
promotions_enabled?: boolean;
|
|
12072
|
+
round_discounted_price?: boolean;
|
|
12073
|
+
};
|
|
12074
|
+
teams_shared_collections?: string[];
|
|
12075
|
+
days_of_work?:
|
|
12076
|
+
| "Sunday"
|
|
12077
|
+
| "Monday"
|
|
12078
|
+
| "Tuesday"
|
|
12079
|
+
| "Wednesday"
|
|
12080
|
+
| "Thursday"
|
|
12081
|
+
| "Friday"
|
|
12082
|
+
| "Saturday";
|
|
12083
|
+
signUpMethod?: "email" | "phone";
|
|
12084
|
+
calculate_target_for_absent_days?: boolean;
|
|
12085
|
+
disable_module_custom_validator?: boolean;
|
|
12086
|
+
activate_ubl_integration?: boolean;
|
|
12087
|
+
last_activate_ubl_integration_time?: number;
|
|
12088
|
+
visit?: {
|
|
12089
|
+
manual_product_line_selection: boolean;
|
|
12090
|
+
};
|
|
12091
|
+
custom_status?: {
|
|
12092
|
+
use_custom_status_transfer?: boolean;
|
|
12093
|
+
use_system_status_transfer?: boolean;
|
|
12094
|
+
use_custom_status_payment?: boolean;
|
|
12095
|
+
use_system_status_payment?: boolean;
|
|
12096
|
+
use_custom_status_fullinvoice?: boolean;
|
|
12097
|
+
use_system_status_fullinvoice?: boolean;
|
|
12098
|
+
use_custom_status_proforma?: boolean;
|
|
12099
|
+
use_system_status_proforma?: boolean;
|
|
12100
|
+
use_custom_status_workorder?: boolean;
|
|
12101
|
+
use_system_status_workorder?: boolean;
|
|
12102
|
+
};
|
|
12103
|
+
business_apps?: {
|
|
12104
|
+
code: string;
|
|
12105
|
+
services: {
|
|
12106
|
+
permission:
|
|
12107
|
+
| StringId
|
|
12108
|
+
| {
|
|
12109
|
+
name: string;
|
|
12110
|
+
_id: StringId;
|
|
12111
|
+
};
|
|
12112
|
+
teams_shared: "shared" | "unshared";
|
|
12113
|
+
}[];
|
|
12114
|
+
}[];
|
|
12115
|
+
form?: {
|
|
12116
|
+
overwrite_serial_number?: boolean;
|
|
12117
|
+
allow_create_v1: boolean;
|
|
12118
|
+
};
|
|
12119
|
+
workorder?: {
|
|
12120
|
+
workorder_teams_follow_client?: boolean;
|
|
12121
|
+
workorder_request_teams_follow_client?: boolean;
|
|
12122
|
+
send_email_at_contract_expiry?: boolean;
|
|
12123
|
+
send_email_at_contract_near_expiry?: boolean;
|
|
12124
|
+
send_email_at_contract_installment_due?: boolean;
|
|
12125
|
+
send_email_at_contract_installment_near_due?: boolean;
|
|
12126
|
+
contract_near_expiry_days?: number;
|
|
12127
|
+
contract_installment_near_due_days?: number;
|
|
12128
|
+
workorder_near_due_days?: number;
|
|
12129
|
+
};
|
|
12130
|
+
notifications?: {
|
|
12131
|
+
calendar_update?: boolean;
|
|
12132
|
+
transfer_update?: boolean;
|
|
12133
|
+
cycle_update?: boolean;
|
|
12134
|
+
client_update?: boolean;
|
|
12135
|
+
approval_request_update?: boolean;
|
|
12136
|
+
workorder_update?: boolean;
|
|
12137
|
+
workorder_start?: boolean;
|
|
12138
|
+
workorder_near_due?: boolean;
|
|
12139
|
+
activity_note?: boolean;
|
|
12140
|
+
activity_form?: boolean;
|
|
12141
|
+
activity_photo?: boolean;
|
|
12142
|
+
activity_audit?: boolean;
|
|
12143
|
+
activity_task?: boolean;
|
|
12144
|
+
activity_availability?: boolean;
|
|
12145
|
+
activity_planogram?: boolean;
|
|
12146
|
+
activity_shelfsahre?: boolean;
|
|
12147
|
+
activity_checkout_display?: boolean;
|
|
12148
|
+
activity_secondary_display?: boolean;
|
|
12149
|
+
};
|
|
12150
|
+
asset_part?: {
|
|
12151
|
+
prevent_negative_asset_part_inventory: boolean;
|
|
12152
|
+
};
|
|
12153
|
+
default_lang?: "en" | "ar";
|
|
12154
|
+
second_lang?: "en" | "ar";
|
|
12155
|
+
report_value_delimiter?: "|" | "," | " " | "." | "-";
|
|
12156
|
+
rep_settings?: {
|
|
12157
|
+
rep_start_day_specific_time_frame_start: string;
|
|
12158
|
+
rep_start_day_specific_time_frame_end: string;
|
|
12159
|
+
};
|
|
12160
|
+
rep_permissions?: {
|
|
12161
|
+
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12162
|
+
};
|
|
12163
|
+
createdAt: Date;
|
|
12164
|
+
updatedAt: Date;
|
|
12165
|
+
}
|
|
12166
|
+
namespace Find {
|
|
12167
|
+
type Params = DefaultPaginationQueryParams & {
|
|
12168
|
+
_id?: StringId | StringId[];
|
|
12169
|
+
job?: StringId | StringId[];
|
|
12170
|
+
template?: StringId | StringId[];
|
|
12171
|
+
page_number?: number;
|
|
12172
|
+
proforma?: StringId | StringId[];
|
|
12173
|
+
status?: string | string[];
|
|
12174
|
+
};
|
|
12175
|
+
interface Result extends DefaultPaginationResult {
|
|
12176
|
+
data: Data[];
|
|
12177
|
+
}
|
|
12178
|
+
}
|
|
12179
|
+
namespace Get {
|
|
12180
|
+
type ID = string;
|
|
12181
|
+
type Result = Data;
|
|
12182
|
+
}
|
|
12183
|
+
interface UpdateBody {
|
|
12184
|
+
live_location?: {
|
|
12185
|
+
active: boolean;
|
|
12186
|
+
from?: string;
|
|
12187
|
+
to?: string;
|
|
12188
|
+
};
|
|
12189
|
+
use_original_image_compression?: boolean;
|
|
12190
|
+
use_client_specific_sales_settings?: boolean;
|
|
12191
|
+
use_client_specific_sales_settings_for_payment?: boolean;
|
|
12192
|
+
use_client_specific_sales_settings_for_client_statement?: boolean;
|
|
12193
|
+
disable_ubl_integration_for_return_invoice?: boolean;
|
|
12194
|
+
sales?: SalesSettings;
|
|
12195
|
+
geofencing?: {
|
|
12196
|
+
visit_start: boolean;
|
|
12197
|
+
visit_end: boolean;
|
|
12198
|
+
radius: number;
|
|
12199
|
+
visit_strict: boolean;
|
|
12200
|
+
};
|
|
12201
|
+
mail_list?: {
|
|
12202
|
+
invoice_sales: {
|
|
12203
|
+
name: string;
|
|
12204
|
+
email: string;
|
|
12205
|
+
filters?: EmailFilter[];
|
|
12206
|
+
}[];
|
|
12207
|
+
mocking: {
|
|
12208
|
+
name: string;
|
|
12209
|
+
email: string;
|
|
12210
|
+
}[];
|
|
12211
|
+
sales_order: {
|
|
12212
|
+
name: string;
|
|
12213
|
+
email: string;
|
|
12214
|
+
filters?: EmailFilter[];
|
|
12215
|
+
}[];
|
|
12216
|
+
photo: {
|
|
12217
|
+
name: string;
|
|
12218
|
+
email: string;
|
|
12219
|
+
filters?: EmailFilter[];
|
|
12220
|
+
}[];
|
|
12221
|
+
live_location: {
|
|
12222
|
+
name: string;
|
|
12223
|
+
email: string;
|
|
12224
|
+
filters?: EmailFilter[];
|
|
12225
|
+
}[];
|
|
12226
|
+
location_off: {
|
|
12227
|
+
name: string;
|
|
12228
|
+
email: string;
|
|
12229
|
+
filters?: EmailFilter[];
|
|
12230
|
+
}[];
|
|
12231
|
+
location_on: {
|
|
12232
|
+
name: string;
|
|
12233
|
+
email: string;
|
|
12234
|
+
filters?: EmailFilter[];
|
|
12235
|
+
}[];
|
|
12236
|
+
contract_expiry: {
|
|
12237
|
+
name: string;
|
|
12238
|
+
email: string;
|
|
12239
|
+
}[];
|
|
12240
|
+
contract_near_expiry: {
|
|
12241
|
+
name: string;
|
|
12242
|
+
email: string;
|
|
12243
|
+
}[];
|
|
12244
|
+
contract_installment_due: {
|
|
12245
|
+
name: string;
|
|
12246
|
+
email: string;
|
|
12247
|
+
}[];
|
|
12248
|
+
contract_installment_near_due: {
|
|
12249
|
+
name: string;
|
|
12250
|
+
email: string;
|
|
12251
|
+
}[];
|
|
12252
|
+
};
|
|
12253
|
+
promotions?: {
|
|
12254
|
+
enforcement_mode:
|
|
12255
|
+
| "all_in_inventory"
|
|
12256
|
+
| "all"
|
|
12257
|
+
| "gift_in_inventory"
|
|
12258
|
+
| "gift"
|
|
12259
|
+
| "custom";
|
|
12260
|
+
apply_hidden_price: boolean;
|
|
12261
|
+
apply_all_promotions: boolean;
|
|
12262
|
+
applying_sort: {
|
|
12263
|
+
[key: string]: -1 | 1;
|
|
12264
|
+
}[];
|
|
12265
|
+
force_cash_only: boolean;
|
|
12266
|
+
allow_manual_discounts: boolean;
|
|
12267
|
+
manual_discounts_limit_percentage: number;
|
|
12268
|
+
manual_discounts_limit_value: number;
|
|
12269
|
+
promotions_enabled: boolean;
|
|
12270
|
+
round_discounted_price: boolean;
|
|
12271
|
+
};
|
|
12272
|
+
teams_shared_collections?: string[];
|
|
12273
|
+
days_of_work?:
|
|
12274
|
+
| "Sunday"
|
|
12275
|
+
| "Monday"
|
|
12276
|
+
| "Tuesday"
|
|
12277
|
+
| "Wednesday"
|
|
12278
|
+
| "Thursday"
|
|
12279
|
+
| "Friday"
|
|
12280
|
+
| "Saturday";
|
|
12281
|
+
signUpMethod?: "email" | "phone";
|
|
12282
|
+
calculate_target_for_absent_days?: boolean;
|
|
12283
|
+
disable_module_custom_validator?: boolean;
|
|
12284
|
+
activate_ubl_integration?: boolean;
|
|
12285
|
+
last_activate_ubl_integration_time?: number;
|
|
12286
|
+
visit?: {
|
|
12287
|
+
manual_product_line_selection: boolean;
|
|
12288
|
+
};
|
|
12289
|
+
custom_status?: {
|
|
12290
|
+
use_custom_status_transfer?: boolean;
|
|
12291
|
+
use_system_status_transfer?: boolean;
|
|
12292
|
+
use_custom_status_payment?: boolean;
|
|
12293
|
+
use_system_status_payment?: boolean;
|
|
12294
|
+
use_custom_status_fullinvoice?: boolean;
|
|
12295
|
+
use_system_status_fullinvoice?: boolean;
|
|
12296
|
+
use_custom_status_proforma?: boolean;
|
|
12297
|
+
use_system_status_proforma?: boolean;
|
|
12298
|
+
use_custom_status_workorder?: boolean;
|
|
12299
|
+
use_system_status_workorder?: boolean;
|
|
12300
|
+
};
|
|
12301
|
+
business_apps?: {
|
|
12302
|
+
code: string;
|
|
12303
|
+
services: {
|
|
12304
|
+
permission: string;
|
|
12305
|
+
teams_shared: "shared" | "unshared";
|
|
12306
|
+
}[];
|
|
12307
|
+
}[];
|
|
12308
|
+
form?: {
|
|
12309
|
+
overwrite_serial_number?: boolean;
|
|
12310
|
+
allow_create_v1: boolean;
|
|
12311
|
+
};
|
|
12312
|
+
workorder?: {
|
|
12313
|
+
workorder_teams_follow_client?: boolean;
|
|
12314
|
+
workorder_request_teams_follow_client?: boolean;
|
|
12315
|
+
send_email_at_contract_expiry?: boolean;
|
|
12316
|
+
send_email_at_contract_near_expiry?: boolean;
|
|
12317
|
+
send_email_at_contract_installment_due?: boolean;
|
|
12318
|
+
send_email_at_contract_installment_near_due?: boolean;
|
|
12319
|
+
contract_near_expiry_days?: number;
|
|
12320
|
+
contract_installment_near_due_days?: number;
|
|
12321
|
+
workorder_near_due_days?: number;
|
|
12322
|
+
};
|
|
12323
|
+
notifications?: {
|
|
12324
|
+
calendar_update: boolean;
|
|
12325
|
+
transfer_update: boolean;
|
|
12326
|
+
cycle_update: boolean;
|
|
12327
|
+
client_update: boolean;
|
|
12328
|
+
approval_request_update: boolean;
|
|
12329
|
+
workorder_update: boolean;
|
|
12330
|
+
workorder_start: boolean;
|
|
12331
|
+
workorder_near_due: boolean;
|
|
12332
|
+
activity_note: boolean;
|
|
12333
|
+
activity_form: boolean;
|
|
12334
|
+
activity_photo: boolean;
|
|
12335
|
+
activity_audit: boolean;
|
|
12336
|
+
activity_task: boolean;
|
|
12337
|
+
activity_availability: boolean;
|
|
12338
|
+
activity_planogram: boolean;
|
|
12339
|
+
activity_shelfsahre: boolean;
|
|
12340
|
+
activity_checkout_display: boolean;
|
|
12341
|
+
activity_secondary_display: boolean;
|
|
12342
|
+
};
|
|
12343
|
+
asset_part?: {
|
|
12344
|
+
prevent_negative_asset_part_inventory: boolean;
|
|
12345
|
+
};
|
|
12346
|
+
default_lang?: "en" | "ar";
|
|
12347
|
+
second_lang?: "en" | "ar";
|
|
12348
|
+
report_value_delimiter?: "|" | "," | " " | "." | "-";
|
|
12349
|
+
rep_settings?: {
|
|
12350
|
+
rep_start_day_specific_time_frame_start: string;
|
|
12351
|
+
rep_start_day_specific_time_frame_end: string;
|
|
12352
|
+
};
|
|
12353
|
+
rep_permissions?: {
|
|
12354
|
+
rep_must_start_day_within_specific_time_frame: boolean;
|
|
12355
|
+
};
|
|
12356
|
+
}
|
|
12357
|
+
namespace Update {
|
|
12358
|
+
type ID = StringId;
|
|
12359
|
+
type Body = UpdateBody;
|
|
12360
|
+
type Result = Data;
|
|
12361
|
+
}
|
|
12362
|
+
}
|
|
11363
12363
|
}
|
|
11364
|
-
export
|
|
11365
|
-
export
|
|
12364
|
+
export type StringId = string;
|
|
12365
|
+
export type NameSpaces = string[];
|
|
11366
12366
|
export interface AdminOrRep {
|
|
11367
12367
|
_id: StringId;
|
|
11368
12368
|
name?: string;
|
|
@@ -11377,7 +12377,7 @@ interface ValidityCheck {
|
|
|
11377
12377
|
code: string;
|
|
11378
12378
|
}[];
|
|
11379
12379
|
}
|
|
11380
|
-
|
|
12380
|
+
type PopulatedMediaStorage = Pick<
|
|
11381
12381
|
Service.MediaStorage.MediaStorageSchema,
|
|
11382
12382
|
| "_id"
|
|
11383
12383
|
| "createdAt"
|