repzo 1.0.149 → 1.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/types/index.d.ts +53 -32
- package/package.json +1 -1
- package/src/types/index.ts +52 -32
package/lib/types/index.d.ts
CHANGED
|
@@ -363,7 +363,7 @@ export declare namespace Service {
|
|
|
363
363
|
verifiedUntil?: number;
|
|
364
364
|
financials?: Financials;
|
|
365
365
|
customFields?: {
|
|
366
|
-
[key: string]:
|
|
366
|
+
[key: string]: string | number | boolean | StringId;
|
|
367
367
|
};
|
|
368
368
|
paymentTerm?: StringId;
|
|
369
369
|
speciality?: StringId[];
|
|
@@ -444,7 +444,7 @@ export declare namespace Service {
|
|
|
444
444
|
verifiedUntil?: number;
|
|
445
445
|
financials?: Financials;
|
|
446
446
|
customFields?: {
|
|
447
|
-
[key: string]:
|
|
447
|
+
[key: string]: string | number | boolean | StringId;
|
|
448
448
|
};
|
|
449
449
|
paymentTerm?: StringId;
|
|
450
450
|
speciality?: StringId[];
|
|
@@ -541,7 +541,7 @@ export declare namespace Service {
|
|
|
541
541
|
field: "_id";
|
|
542
542
|
type: "asc" | "desc";
|
|
543
543
|
}[];
|
|
544
|
-
customFields?: Record<string,
|
|
544
|
+
customFields?: Record<string, string | number | boolean | StringId>;
|
|
545
545
|
integration_meta?: Record<string, any>;
|
|
546
546
|
[key: string]: any;
|
|
547
547
|
};
|
|
@@ -572,7 +572,7 @@ export declare namespace Service {
|
|
|
572
572
|
/**
|
|
573
573
|
* @type {any} with dynamic keys supporting integration_meta. and customFields.
|
|
574
574
|
*/
|
|
575
|
-
customFields?: Record<string,
|
|
575
|
+
customFields?: Record<string, string | number | boolean | StringId>;
|
|
576
576
|
integration_meta?: Record<string, any>;
|
|
577
577
|
[key: `integration_meta.${string}`]: any;
|
|
578
578
|
[key: `customFields.${string}`]: any;
|
|
@@ -2483,7 +2483,7 @@ export declare namespace Service {
|
|
|
2483
2483
|
retail_execution_template_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2484
2484
|
assigned_retail_execution_templates?: string[];
|
|
2485
2485
|
customFields?: {
|
|
2486
|
-
[key: string]: boolean | string | number;
|
|
2486
|
+
[key: string]: boolean | string | number | StringId;
|
|
2487
2487
|
};
|
|
2488
2488
|
media?: string[];
|
|
2489
2489
|
cover_photo?: string;
|
|
@@ -2537,7 +2537,7 @@ export declare namespace Service {
|
|
|
2537
2537
|
retail_execution_template_option?: "all" | "client_assigned" | "assigned" | "none";
|
|
2538
2538
|
assigned_retail_execution_templates?: string[];
|
|
2539
2539
|
customFields?: {
|
|
2540
|
-
[key: string]: boolean | string | number;
|
|
2540
|
+
[key: string]: boolean | string | number | StringId;
|
|
2541
2541
|
};
|
|
2542
2542
|
media?: string[];
|
|
2543
2543
|
cover_photo?: string;
|
|
@@ -5049,7 +5049,7 @@ export declare namespace Service {
|
|
|
5049
5049
|
contract?: StringId;
|
|
5050
5050
|
status: Status;
|
|
5051
5051
|
customFields?: {
|
|
5052
|
-
[key: string]:
|
|
5052
|
+
[key: string]: string | number | boolean | StringId;
|
|
5053
5053
|
};
|
|
5054
5054
|
media?: StringId[];
|
|
5055
5055
|
workorder_portal?: StringId;
|
|
@@ -5078,7 +5078,7 @@ export declare namespace Service {
|
|
|
5078
5078
|
contract?: StringId;
|
|
5079
5079
|
status: Status;
|
|
5080
5080
|
customFields?: {
|
|
5081
|
-
[key: string]:
|
|
5081
|
+
[key: string]: string | number | boolean | StringId;
|
|
5082
5082
|
};
|
|
5083
5083
|
media?: StringId[];
|
|
5084
5084
|
workorder_portal?: StringId;
|
|
@@ -5113,7 +5113,7 @@ export declare namespace Service {
|
|
|
5113
5113
|
contract?: StringId;
|
|
5114
5114
|
status?: Status;
|
|
5115
5115
|
customFields?: {
|
|
5116
|
-
[key: string]:
|
|
5116
|
+
[key: string]: string | number | boolean | StringId;
|
|
5117
5117
|
};
|
|
5118
5118
|
media?: StringId[];
|
|
5119
5119
|
workorder_portal?: StringId;
|
|
@@ -5139,7 +5139,7 @@ export declare namespace Service {
|
|
|
5139
5139
|
contract?: StringId;
|
|
5140
5140
|
status?: Status;
|
|
5141
5141
|
customFields?: {
|
|
5142
|
-
[key: string]:
|
|
5142
|
+
[key: string]: string | number | boolean | StringId;
|
|
5143
5143
|
};
|
|
5144
5144
|
media?: StringId[];
|
|
5145
5145
|
workorder_portal?: StringId;
|
|
@@ -5268,7 +5268,7 @@ export declare namespace Service {
|
|
|
5268
5268
|
default_priority?: Default_Priority;
|
|
5269
5269
|
default_workorder_categories?: StringId[];
|
|
5270
5270
|
customFields?: {
|
|
5271
|
-
[key: string]:
|
|
5271
|
+
[key: string]: string | number | boolean | StringId;
|
|
5272
5272
|
};
|
|
5273
5273
|
teams?: StringId[];
|
|
5274
5274
|
allow_media_upload?: "optional" | "required" | "hidden";
|
|
@@ -6114,8 +6114,8 @@ export declare namespace Service {
|
|
|
6114
6114
|
proforma_reference?: string;
|
|
6115
6115
|
converted_at?: number;
|
|
6116
6116
|
exclude_return_items?: boolean;
|
|
6117
|
-
returned_from?: string
|
|
6118
|
-
returned_to?: string;
|
|
6117
|
+
returned_from?: string | Pick<FullInvoice.InvoiceSchema, "_id" | "serial_number" | "advanced_serial_number">;
|
|
6118
|
+
returned_to?: string | FullInvoice.InvoiceSchema;
|
|
6119
6119
|
returned_from_serial_number?: SerialNumber;
|
|
6120
6120
|
returned_to_serial_number?: SerialNumber;
|
|
6121
6121
|
is_void?: boolean;
|
|
@@ -6236,7 +6236,7 @@ export declare namespace Service {
|
|
|
6236
6236
|
name?: string;
|
|
6237
6237
|
ref?: string;
|
|
6238
6238
|
}[];
|
|
6239
|
-
partially_returned_from?: StringId
|
|
6239
|
+
partially_returned_from?: StringId | Pick<FullInvoice.InvoiceSchema, "_id" | "serial_number" | "advanced_serial_number">;
|
|
6240
6240
|
partially_returned_to?: StringId[];
|
|
6241
6241
|
partially_returned_from_serial_number?: SerialNumber;
|
|
6242
6242
|
partially_returned_to_serial_number?: SerialNumber[];
|
|
@@ -6284,7 +6284,7 @@ export declare namespace Service {
|
|
|
6284
6284
|
lines_discount_float?: number;
|
|
6285
6285
|
total_word?: string;
|
|
6286
6286
|
total_local_word?: string;
|
|
6287
|
-
workorder?: StringId
|
|
6287
|
+
workorder?: StringId | Pick<Workorder.WorkorderSchema, "_id" | "serial_number" | "name" | "local_name">;
|
|
6288
6288
|
asset?: StringId;
|
|
6289
6289
|
asset_unit?: StringId;
|
|
6290
6290
|
signature?: PopulatedMediaStorage;
|
|
@@ -6310,7 +6310,7 @@ export declare namespace Service {
|
|
|
6310
6310
|
business_day?: string;
|
|
6311
6311
|
};
|
|
6312
6312
|
type InvoiceStatus = "paid" | "unpaid" | "partially_paid";
|
|
6313
|
-
type PopulatedKeys = "client" | "tax_number" | "custom_status" | "return_reason" | "teams" | "warehouse" | "route";
|
|
6313
|
+
type PopulatedKeys = "client" | "tax_number" | "custom_status" | "return_reason" | "teams" | "warehouse" | "route" | "workorder" | "returned_from" | "partially_returned_from" | "returned_to";
|
|
6314
6314
|
type SortingKeys = "line_total" | "product_name" | "variant_name" | "product_sku" | "product_barcode" | "variant_sku" | "variant_barcode";
|
|
6315
6315
|
export namespace Find {
|
|
6316
6316
|
type Params = DefaultPaginationQueryParams & {
|
|
@@ -6968,6 +6968,7 @@ export declare namespace Service {
|
|
|
6968
6968
|
};
|
|
6969
6969
|
createdAt: string;
|
|
6970
6970
|
updatedAt: string;
|
|
6971
|
+
ending_balance?: number;
|
|
6971
6972
|
__v: number;
|
|
6972
6973
|
}
|
|
6973
6974
|
export interface CreateBody {
|
|
@@ -9215,7 +9216,7 @@ export declare namespace Service {
|
|
|
9215
9216
|
assets?: StringId[];
|
|
9216
9217
|
asset_units?: StringId[];
|
|
9217
9218
|
customFields?: {
|
|
9218
|
-
[key: string]: string | number | boolean;
|
|
9219
|
+
[key: string]: string | number | boolean | StringId;
|
|
9219
9220
|
};
|
|
9220
9221
|
disabled: boolean;
|
|
9221
9222
|
integration_meta?: {
|
|
@@ -9242,7 +9243,7 @@ export declare namespace Service {
|
|
|
9242
9243
|
assets?: StringId[];
|
|
9243
9244
|
asset_units?: StringId[];
|
|
9244
9245
|
customFields?: {
|
|
9245
|
-
[key: string]: string | number | boolean;
|
|
9246
|
+
[key: string]: string | number | boolean | StringId;
|
|
9246
9247
|
};
|
|
9247
9248
|
disabled: boolean;
|
|
9248
9249
|
integration_meta?: {
|
|
@@ -9267,7 +9268,7 @@ export declare namespace Service {
|
|
|
9267
9268
|
assets?: StringId[];
|
|
9268
9269
|
asset_units?: StringId[];
|
|
9269
9270
|
customFields?: {
|
|
9270
|
-
[key: string]: string | number | boolean;
|
|
9271
|
+
[key: string]: string | number | boolean | StringId;
|
|
9271
9272
|
};
|
|
9272
9273
|
media?: StringId[];
|
|
9273
9274
|
cover_photo?: StringId;
|
|
@@ -9292,7 +9293,7 @@ export declare namespace Service {
|
|
|
9292
9293
|
assets?: StringId[];
|
|
9293
9294
|
asset_units?: StringId[];
|
|
9294
9295
|
customFields?: {
|
|
9295
|
-
[key: string]: string | number | boolean;
|
|
9296
|
+
[key: string]: string | number | boolean | StringId;
|
|
9296
9297
|
};
|
|
9297
9298
|
disabled?: boolean;
|
|
9298
9299
|
integration_meta?: {
|
|
@@ -12544,7 +12545,9 @@ export declare namespace Service {
|
|
|
12544
12545
|
address?: string;
|
|
12545
12546
|
contacts?: StringId[];
|
|
12546
12547
|
disabled: boolean;
|
|
12547
|
-
customFields?: {
|
|
12548
|
+
customFields?: {
|
|
12549
|
+
[key: string]: string | number | boolean | StringId;
|
|
12550
|
+
};
|
|
12548
12551
|
media?: StringId[];
|
|
12549
12552
|
cover_photo?: StringId;
|
|
12550
12553
|
integration_meta?: {
|
|
@@ -12564,7 +12567,9 @@ export declare namespace Service {
|
|
|
12564
12567
|
address?: string;
|
|
12565
12568
|
contacts?: StringId[];
|
|
12566
12569
|
disabled: boolean;
|
|
12567
|
-
customFields?: {
|
|
12570
|
+
customFields?: {
|
|
12571
|
+
[key: string]: string | number | boolean | StringId;
|
|
12572
|
+
};
|
|
12568
12573
|
media?: StringId[];
|
|
12569
12574
|
cover_photo?: StringId;
|
|
12570
12575
|
integration_meta?: {
|
|
@@ -12580,7 +12585,9 @@ export declare namespace Service {
|
|
|
12580
12585
|
description?: string;
|
|
12581
12586
|
address?: string;
|
|
12582
12587
|
contacts?: StringId[];
|
|
12583
|
-
customFields?: {
|
|
12588
|
+
customFields?: {
|
|
12589
|
+
[key: string]: string | number | boolean | StringId;
|
|
12590
|
+
};
|
|
12584
12591
|
media?: StringId[];
|
|
12585
12592
|
cover_photo?: StringId;
|
|
12586
12593
|
integration_meta?: {
|
|
@@ -12601,7 +12608,9 @@ export declare namespace Service {
|
|
|
12601
12608
|
address?: string;
|
|
12602
12609
|
contacts?: StringId[] | ClientContact.ClientContactSchema[];
|
|
12603
12610
|
disabled: boolean;
|
|
12604
|
-
customFields?: {
|
|
12611
|
+
customFields?: {
|
|
12612
|
+
[key: string]: string | number | boolean | StringId;
|
|
12613
|
+
};
|
|
12605
12614
|
media?: StringId[] | PopulatedMediaStorage[];
|
|
12606
12615
|
cover_photo?: StringId | PopulatedMediaStorage;
|
|
12607
12616
|
integration_meta?: {
|
|
@@ -12877,7 +12886,7 @@ export declare namespace Service {
|
|
|
12877
12886
|
asset_types: StringId[];
|
|
12878
12887
|
location: StringId;
|
|
12879
12888
|
customFields?: {
|
|
12880
|
-
[key: string]: string | number | boolean;
|
|
12889
|
+
[key: string]: string | number | boolean | StringId;
|
|
12881
12890
|
};
|
|
12882
12891
|
disabled: boolean;
|
|
12883
12892
|
integration_meta?: {
|
|
@@ -12900,7 +12909,9 @@ export declare namespace Service {
|
|
|
12900
12909
|
year?: string;
|
|
12901
12910
|
asset_types: StringId[];
|
|
12902
12911
|
location: StringId;
|
|
12903
|
-
customFields?: {
|
|
12912
|
+
customFields?: {
|
|
12913
|
+
[key: string]: string | number | boolean | StringId;
|
|
12914
|
+
};
|
|
12904
12915
|
disabled?: boolean;
|
|
12905
12916
|
media?: StringId[];
|
|
12906
12917
|
cover_photo?: StringId;
|
|
@@ -12919,7 +12930,9 @@ export declare namespace Service {
|
|
|
12919
12930
|
year?: string;
|
|
12920
12931
|
asset_types?: StringId[];
|
|
12921
12932
|
location?: StringId;
|
|
12922
|
-
customFields?: {
|
|
12933
|
+
customFields?: {
|
|
12934
|
+
[key: string]: string | number | boolean | StringId;
|
|
12935
|
+
};
|
|
12923
12936
|
disabled?: boolean;
|
|
12924
12937
|
media?: StringId[];
|
|
12925
12938
|
cover_photo?: StringId;
|
|
@@ -12945,7 +12958,7 @@ export declare namespace Service {
|
|
|
12945
12958
|
media?: StringId[] | PopulatedMediaStorage[];
|
|
12946
12959
|
cover_photo?: StringId | PopulatedMediaStorage;
|
|
12947
12960
|
customFields?: {
|
|
12948
|
-
[key: string]: string | number | boolean;
|
|
12961
|
+
[key: string]: string | number | boolean | StringId;
|
|
12949
12962
|
};
|
|
12950
12963
|
disabled: boolean;
|
|
12951
12964
|
integration_meta?: {
|
|
@@ -13013,7 +13026,9 @@ export declare namespace Service {
|
|
|
13013
13026
|
local_name?: string;
|
|
13014
13027
|
description?: string;
|
|
13015
13028
|
serial_nu?: string;
|
|
13016
|
-
customFields?: {
|
|
13029
|
+
customFields?: {
|
|
13030
|
+
[key: string]: string | number | boolean | StringId;
|
|
13031
|
+
};
|
|
13017
13032
|
disabled: boolean;
|
|
13018
13033
|
integration_meta?: {
|
|
13019
13034
|
[key: string]: any;
|
|
@@ -13032,7 +13047,9 @@ export declare namespace Service {
|
|
|
13032
13047
|
local_name?: string;
|
|
13033
13048
|
description?: string;
|
|
13034
13049
|
serial_nu?: string;
|
|
13035
|
-
customFields?: {
|
|
13050
|
+
customFields?: {
|
|
13051
|
+
[key: string]: string | number | boolean | StringId;
|
|
13052
|
+
};
|
|
13036
13053
|
integration_meta?: {
|
|
13037
13054
|
[key: string]: any;
|
|
13038
13055
|
};
|
|
@@ -13047,7 +13064,9 @@ export declare namespace Service {
|
|
|
13047
13064
|
local_name?: string;
|
|
13048
13065
|
description?: string;
|
|
13049
13066
|
serial_nu?: string;
|
|
13050
|
-
customFields?: {
|
|
13067
|
+
customFields?: {
|
|
13068
|
+
[key: string]: string | number | boolean | StringId;
|
|
13069
|
+
};
|
|
13051
13070
|
integration_meta?: {
|
|
13052
13071
|
[key: string]: any;
|
|
13053
13072
|
};
|
|
@@ -13074,7 +13093,9 @@ export declare namespace Service {
|
|
|
13074
13093
|
local_name?: string;
|
|
13075
13094
|
description?: string;
|
|
13076
13095
|
serial_nu?: string;
|
|
13077
|
-
customFields?: {
|
|
13096
|
+
customFields?: {
|
|
13097
|
+
[key: string]: string | number | boolean | StringId;
|
|
13098
|
+
};
|
|
13078
13099
|
disabled: boolean;
|
|
13079
13100
|
integration_meta?: {
|
|
13080
13101
|
[key: string]: any;
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -518,7 +518,7 @@ export namespace Service {
|
|
|
518
518
|
assigned_product_groups?: StringId[];
|
|
519
519
|
verifiedUntil?: number;
|
|
520
520
|
financials?: Financials;
|
|
521
|
-
customFields?: { [key: string]:
|
|
521
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
522
522
|
paymentTerm?: StringId;
|
|
523
523
|
speciality?: StringId[];
|
|
524
524
|
company_namespace: string[];
|
|
@@ -596,7 +596,7 @@ export namespace Service {
|
|
|
596
596
|
assigned_product_groups?: StringId[];
|
|
597
597
|
verifiedUntil?: number;
|
|
598
598
|
financials?: Financials;
|
|
599
|
-
customFields?: { [key: string]:
|
|
599
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
600
600
|
paymentTerm?: StringId;
|
|
601
601
|
speciality?: StringId[];
|
|
602
602
|
company_namespace: string[];
|
|
@@ -729,7 +729,7 @@ export namespace Service {
|
|
|
729
729
|
field: "_id";
|
|
730
730
|
type: "asc" | "desc";
|
|
731
731
|
}[];
|
|
732
|
-
customFields?: Record<string,
|
|
732
|
+
customFields?: Record<string, string | number | boolean | StringId>;
|
|
733
733
|
integration_meta?: Record<string, any>;
|
|
734
734
|
// Index signatures for dynamic keys
|
|
735
735
|
// [key: `integration_meta.${string}`]: any;
|
|
@@ -767,7 +767,7 @@ export namespace Service {
|
|
|
767
767
|
* @type {any} with dynamic keys supporting integration_meta. and customFields.
|
|
768
768
|
*/
|
|
769
769
|
// [key: string]: any; // integration_meta & customFields.
|
|
770
|
-
customFields?: Record<string,
|
|
770
|
+
customFields?: Record<string, string | number | boolean | StringId>;
|
|
771
771
|
integration_meta?: Record<string, any>;
|
|
772
772
|
[key: `integration_meta.${string}`]: any;
|
|
773
773
|
[key: `customFields.${string}`]: any;
|
|
@@ -2859,7 +2859,7 @@ export namespace Service {
|
|
|
2859
2859
|
| "assigned"
|
|
2860
2860
|
| "none";
|
|
2861
2861
|
assigned_retail_execution_templates?: string[];
|
|
2862
|
-
customFields?: { [key: string]: boolean | string | number };
|
|
2862
|
+
customFields?: { [key: string]: boolean | string | number | StringId };
|
|
2863
2863
|
media?: string[];
|
|
2864
2864
|
cover_photo?: string;
|
|
2865
2865
|
last_login_time?: number;
|
|
@@ -2913,7 +2913,7 @@ export namespace Service {
|
|
|
2913
2913
|
| "assigned"
|
|
2914
2914
|
| "none";
|
|
2915
2915
|
assigned_retail_execution_templates?: string[];
|
|
2916
|
-
customFields?: { [key: string]: boolean | string | number };
|
|
2916
|
+
customFields?: { [key: string]: boolean | string | number | StringId };
|
|
2917
2917
|
media?: string[];
|
|
2918
2918
|
cover_photo?: string;
|
|
2919
2919
|
last_login_time?: number;
|
|
@@ -5606,7 +5606,7 @@ export namespace Service {
|
|
|
5606
5606
|
workorder?: StringId;
|
|
5607
5607
|
contract?: StringId;
|
|
5608
5608
|
status: Status;
|
|
5609
|
-
customFields?: { [key: string]:
|
|
5609
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
5610
5610
|
media?: StringId[];
|
|
5611
5611
|
workorder_portal?: StringId;
|
|
5612
5612
|
workorder_portal_link?: StringId;
|
|
@@ -5633,7 +5633,7 @@ export namespace Service {
|
|
|
5633
5633
|
workorder?: StringId;
|
|
5634
5634
|
contract?: StringId;
|
|
5635
5635
|
status: Status;
|
|
5636
|
-
customFields?: { [key: string]:
|
|
5636
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
5637
5637
|
media?: StringId[];
|
|
5638
5638
|
workorder_portal?: StringId;
|
|
5639
5639
|
workorder_portal_link?: StringId;
|
|
@@ -5669,7 +5669,7 @@ export namespace Service {
|
|
|
5669
5669
|
workorder?: StringId;
|
|
5670
5670
|
contract?: StringId;
|
|
5671
5671
|
status?: Status;
|
|
5672
|
-
customFields?: { [key: string]:
|
|
5672
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
5673
5673
|
media?: StringId[];
|
|
5674
5674
|
workorder_portal?: StringId;
|
|
5675
5675
|
workorder_portal_link?: StringId;
|
|
@@ -5693,7 +5693,7 @@ export namespace Service {
|
|
|
5693
5693
|
workorder?: StringId;
|
|
5694
5694
|
contract?: StringId;
|
|
5695
5695
|
status?: Status;
|
|
5696
|
-
customFields?: { [key: string]:
|
|
5696
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
5697
5697
|
media?: StringId[];
|
|
5698
5698
|
workorder_portal?: StringId;
|
|
5699
5699
|
workorder_portal_link?: StringId;
|
|
@@ -5825,7 +5825,7 @@ export namespace Service {
|
|
|
5825
5825
|
default_priority_human?: Default_Priority_human;
|
|
5826
5826
|
default_priority?: Default_Priority;
|
|
5827
5827
|
default_workorder_categories?: StringId[];
|
|
5828
|
-
customFields?: { [key: string]:
|
|
5828
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
5829
5829
|
teams?: StringId[];
|
|
5830
5830
|
allow_media_upload?: "optional" | "required" | "hidden";
|
|
5831
5831
|
allow_signature?: "optional" | "required" | "hidden";
|
|
@@ -6624,8 +6624,13 @@ export namespace Service {
|
|
|
6624
6624
|
proforma_reference?: string;
|
|
6625
6625
|
converted_at?: number;
|
|
6626
6626
|
exclude_return_items?: boolean;
|
|
6627
|
-
returned_from?:
|
|
6628
|
-
|
|
6627
|
+
returned_from?:
|
|
6628
|
+
| string
|
|
6629
|
+
| Pick<
|
|
6630
|
+
FullInvoice.InvoiceSchema,
|
|
6631
|
+
"_id" | "serial_number" | "advanced_serial_number"
|
|
6632
|
+
>;
|
|
6633
|
+
returned_to?: string | FullInvoice.InvoiceSchema;
|
|
6629
6634
|
returned_from_serial_number?: SerialNumber;
|
|
6630
6635
|
returned_to_serial_number?: SerialNumber;
|
|
6631
6636
|
is_void?: boolean;
|
|
@@ -6738,7 +6743,12 @@ export namespace Service {
|
|
|
6738
6743
|
production_reporting_status?: boolean;
|
|
6739
6744
|
skip_promos?: boolean;
|
|
6740
6745
|
skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
|
|
6741
|
-
partially_returned_from?:
|
|
6746
|
+
partially_returned_from?:
|
|
6747
|
+
| StringId
|
|
6748
|
+
| Pick<
|
|
6749
|
+
FullInvoice.InvoiceSchema,
|
|
6750
|
+
"_id" | "serial_number" | "advanced_serial_number"
|
|
6751
|
+
>;
|
|
6742
6752
|
partially_returned_to?: StringId[];
|
|
6743
6753
|
partially_returned_from_serial_number?: SerialNumber;
|
|
6744
6754
|
partially_returned_to_serial_number?: SerialNumber[];
|
|
@@ -6786,7 +6796,12 @@ export namespace Service {
|
|
|
6786
6796
|
lines_discount_float?: number;
|
|
6787
6797
|
total_word?: string;
|
|
6788
6798
|
total_local_word?: string;
|
|
6789
|
-
workorder?:
|
|
6799
|
+
workorder?:
|
|
6800
|
+
| StringId
|
|
6801
|
+
| Pick<
|
|
6802
|
+
Workorder.WorkorderSchema,
|
|
6803
|
+
"_id" | "serial_number" | "name" | "local_name"
|
|
6804
|
+
>;
|
|
6790
6805
|
asset?: StringId;
|
|
6791
6806
|
asset_unit?: StringId;
|
|
6792
6807
|
signature?: PopulatedMediaStorage;
|
|
@@ -6817,7 +6832,11 @@ export namespace Service {
|
|
|
6817
6832
|
| "return_reason"
|
|
6818
6833
|
| "teams"
|
|
6819
6834
|
| "warehouse"
|
|
6820
|
-
| "route"
|
|
6835
|
+
| "route"
|
|
6836
|
+
| "workorder"
|
|
6837
|
+
| "returned_from"
|
|
6838
|
+
| "partially_returned_from"
|
|
6839
|
+
| "returned_to";
|
|
6821
6840
|
type SortingKeys =
|
|
6822
6841
|
| "line_total"
|
|
6823
6842
|
| "product_name"
|
|
@@ -7455,6 +7474,7 @@ export namespace Service {
|
|
|
7455
7474
|
};
|
|
7456
7475
|
createdAt: string;
|
|
7457
7476
|
updatedAt: string;
|
|
7477
|
+
ending_balance?: number;
|
|
7458
7478
|
__v: number;
|
|
7459
7479
|
}
|
|
7460
7480
|
export interface CreateBody {
|
|
@@ -9721,7 +9741,7 @@ export namespace Service {
|
|
|
9721
9741
|
asset_part_types: StringId[];
|
|
9722
9742
|
assets?: StringId[];
|
|
9723
9743
|
asset_units?: StringId[];
|
|
9724
|
-
customFields?: { [key: string]: string | number | boolean };
|
|
9744
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
9725
9745
|
disabled: boolean;
|
|
9726
9746
|
integration_meta?: { [key: string]: any };
|
|
9727
9747
|
media?: StringId[];
|
|
@@ -9746,7 +9766,7 @@ export namespace Service {
|
|
|
9746
9766
|
| Pick<AssetPartType.Data, "_id" | "color" | "name" | "local_name">[];
|
|
9747
9767
|
assets?: StringId[]; // | Asset[];
|
|
9748
9768
|
asset_units?: StringId[]; // | AssetUnit[];
|
|
9749
|
-
customFields?: { [key: string]: string | number | boolean };
|
|
9769
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
9750
9770
|
disabled: boolean;
|
|
9751
9771
|
integration_meta?: { [key: string]: any };
|
|
9752
9772
|
media?: StringId[] | PopulatedMediaStorage[];
|
|
@@ -9767,7 +9787,7 @@ export namespace Service {
|
|
|
9767
9787
|
year?: string;
|
|
9768
9788
|
assets?: StringId[];
|
|
9769
9789
|
asset_units?: StringId[];
|
|
9770
|
-
customFields?: { [key: string]: string | number | boolean };
|
|
9790
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
9771
9791
|
media?: StringId[];
|
|
9772
9792
|
cover_photo?: StringId;
|
|
9773
9793
|
disabled?: boolean;
|
|
@@ -9788,7 +9808,7 @@ export namespace Service {
|
|
|
9788
9808
|
asset_part_types?: StringId[];
|
|
9789
9809
|
assets?: StringId[];
|
|
9790
9810
|
asset_units?: StringId[];
|
|
9791
|
-
customFields?: { [key: string]: string | number | boolean };
|
|
9811
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
9792
9812
|
disabled?: boolean;
|
|
9793
9813
|
integration_meta?: { [key: string]: any };
|
|
9794
9814
|
media?: StringId[];
|
|
@@ -13211,7 +13231,7 @@ export namespace Service {
|
|
|
13211
13231
|
address?: string;
|
|
13212
13232
|
contacts?: StringId[];
|
|
13213
13233
|
disabled: boolean;
|
|
13214
|
-
customFields?: {};
|
|
13234
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13215
13235
|
media?: StringId[];
|
|
13216
13236
|
cover_photo?: StringId;
|
|
13217
13237
|
integration_meta?: { [key: string]: any };
|
|
@@ -13230,7 +13250,7 @@ export namespace Service {
|
|
|
13230
13250
|
address?: string;
|
|
13231
13251
|
contacts?: StringId[];
|
|
13232
13252
|
disabled: boolean;
|
|
13233
|
-
customFields?: {};
|
|
13253
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13234
13254
|
media?: StringId[];
|
|
13235
13255
|
cover_photo?: StringId;
|
|
13236
13256
|
integration_meta?: { [key: string]: any };
|
|
@@ -13244,7 +13264,7 @@ export namespace Service {
|
|
|
13244
13264
|
description?: string;
|
|
13245
13265
|
address?: string;
|
|
13246
13266
|
contacts?: StringId[];
|
|
13247
|
-
customFields?: {};
|
|
13267
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13248
13268
|
media?: StringId[];
|
|
13249
13269
|
cover_photo?: StringId;
|
|
13250
13270
|
integration_meta?: { [key: string]: any };
|
|
@@ -13271,7 +13291,7 @@ export namespace Service {
|
|
|
13271
13291
|
address?: string;
|
|
13272
13292
|
contacts?: StringId[] | ClientContact.ClientContactSchema[];
|
|
13273
13293
|
disabled: boolean;
|
|
13274
|
-
customFields?: {};
|
|
13294
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13275
13295
|
media?: StringId[] | PopulatedMediaStorage[];
|
|
13276
13296
|
cover_photo?: StringId | PopulatedMediaStorage;
|
|
13277
13297
|
integration_meta?: { [key: string]: any };
|
|
@@ -13561,7 +13581,7 @@ export namespace Service {
|
|
|
13561
13581
|
year?: string;
|
|
13562
13582
|
asset_types: StringId[];
|
|
13563
13583
|
location: StringId;
|
|
13564
|
-
customFields?: { [key: string]: string | number | boolean };
|
|
13584
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13565
13585
|
disabled: boolean;
|
|
13566
13586
|
integration_meta?: { [key: string]: any };
|
|
13567
13587
|
media?: StringId[];
|
|
@@ -13582,7 +13602,7 @@ export namespace Service {
|
|
|
13582
13602
|
year?: string;
|
|
13583
13603
|
asset_types: StringId[];
|
|
13584
13604
|
location: StringId;
|
|
13585
|
-
customFields?: {};
|
|
13605
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13586
13606
|
disabled?: boolean;
|
|
13587
13607
|
media?: StringId[];
|
|
13588
13608
|
cover_photo?: StringId;
|
|
@@ -13599,7 +13619,7 @@ export namespace Service {
|
|
|
13599
13619
|
year?: string;
|
|
13600
13620
|
asset_types?: StringId[];
|
|
13601
13621
|
location?: StringId;
|
|
13602
|
-
customFields?: {};
|
|
13622
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13603
13623
|
disabled?: boolean;
|
|
13604
13624
|
media?: StringId[];
|
|
13605
13625
|
cover_photo?: StringId;
|
|
@@ -13629,7 +13649,7 @@ export namespace Service {
|
|
|
13629
13649
|
});
|
|
13630
13650
|
media?: StringId[] | PopulatedMediaStorage[];
|
|
13631
13651
|
cover_photo?: StringId | PopulatedMediaStorage;
|
|
13632
|
-
customFields?: { [key: string]: string | number | boolean };
|
|
13652
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13633
13653
|
disabled: boolean;
|
|
13634
13654
|
integration_meta?: { [key: string]: any };
|
|
13635
13655
|
company_namespace: string[];
|
|
@@ -13702,7 +13722,7 @@ export namespace Service {
|
|
|
13702
13722
|
local_name?: string;
|
|
13703
13723
|
description?: string;
|
|
13704
13724
|
serial_nu?: string;
|
|
13705
|
-
customFields?: {};
|
|
13725
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13706
13726
|
disabled: boolean;
|
|
13707
13727
|
integration_meta?: { [key: string]: any };
|
|
13708
13728
|
media?: StringId[];
|
|
@@ -13720,7 +13740,7 @@ export namespace Service {
|
|
|
13720
13740
|
local_name?: string;
|
|
13721
13741
|
description?: string;
|
|
13722
13742
|
serial_nu?: string;
|
|
13723
|
-
customFields?: {};
|
|
13743
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13724
13744
|
integration_meta?: { [key: string]: any };
|
|
13725
13745
|
media?: StringId[];
|
|
13726
13746
|
cover_photo?: StringId;
|
|
@@ -13733,7 +13753,7 @@ export namespace Service {
|
|
|
13733
13753
|
local_name?: string;
|
|
13734
13754
|
description?: string;
|
|
13735
13755
|
serial_nu?: string;
|
|
13736
|
-
customFields?: {};
|
|
13756
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13737
13757
|
integration_meta?: { [key: string]: any };
|
|
13738
13758
|
media?: StringId[] | string[];
|
|
13739
13759
|
cover_photo?: StringId;
|
|
@@ -13771,7 +13791,7 @@ export namespace Service {
|
|
|
13771
13791
|
local_name?: string;
|
|
13772
13792
|
description?: string;
|
|
13773
13793
|
serial_nu?: string;
|
|
13774
|
-
customFields?: {};
|
|
13794
|
+
customFields?: { [key: string]: string | number | boolean | StringId };
|
|
13775
13795
|
disabled: boolean;
|
|
13776
13796
|
integration_meta?: { [key: string]: any };
|
|
13777
13797
|
media?: StringId[] | PopulatedMediaStorage[];
|