repzo 1.0.93 → 1.0.94
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 +149 -13
- package/package.json +1 -1
- package/src/types/index.ts +116 -2
package/lib/types/index.d.ts
CHANGED
|
@@ -200,21 +200,21 @@ export interface Build {
|
|
|
200
200
|
list: List[];
|
|
201
201
|
start_date?: number | undefined;
|
|
202
202
|
}
|
|
203
|
-
export type Calendar = CalendarWeekly | CalendarWeeklyGroup;
|
|
203
|
+
export declare type Calendar = CalendarWeekly | CalendarWeeklyGroup;
|
|
204
204
|
export interface Route {
|
|
205
205
|
disabled: boolean;
|
|
206
206
|
list: List[];
|
|
207
207
|
_id: string;
|
|
208
208
|
}
|
|
209
|
-
export type Priority = 0 | 1 | 2 | 3;
|
|
210
|
-
export type WorkorderStatus =
|
|
209
|
+
export declare type Priority = 0 | 1 | 2 | 3;
|
|
210
|
+
export declare type WorkorderStatus =
|
|
211
211
|
| "open"
|
|
212
212
|
| "done"
|
|
213
213
|
| "cancelled"
|
|
214
214
|
| "inprogress"
|
|
215
215
|
| "onhold";
|
|
216
|
-
export type Priority_human = "none" | "low" | "medium" | "high";
|
|
217
|
-
export type Day =
|
|
216
|
+
export declare type Priority_human = "none" | "low" | "medium" | "high";
|
|
217
|
+
export declare type Day =
|
|
218
218
|
| "Sun"
|
|
219
219
|
| "Mon"
|
|
220
220
|
| "Tue"
|
|
@@ -223,7 +223,7 @@ export type Day =
|
|
|
223
223
|
| "Fri"
|
|
224
224
|
| "Sat"
|
|
225
225
|
| string;
|
|
226
|
-
export type FieldType =
|
|
226
|
+
export declare type FieldType =
|
|
227
227
|
| "Text"
|
|
228
228
|
| "String"
|
|
229
229
|
| "Date"
|
|
@@ -269,7 +269,7 @@ export interface CalendarWeeklyGroup {
|
|
|
269
269
|
note?: string;
|
|
270
270
|
_id: string;
|
|
271
271
|
}
|
|
272
|
-
export type Model =
|
|
272
|
+
export declare type Model =
|
|
273
273
|
| "quickConvertToPdf"
|
|
274
274
|
| "warehouses"
|
|
275
275
|
| "transfers"
|
|
@@ -294,7 +294,7 @@ export type Model =
|
|
|
294
294
|
| "activities"
|
|
295
295
|
| "bigReports"
|
|
296
296
|
| "admins";
|
|
297
|
-
export type DocumentTypes =
|
|
297
|
+
export declare type DocumentTypes =
|
|
298
298
|
| "form"
|
|
299
299
|
| "quickConvertToPdf"
|
|
300
300
|
| "clients"
|
|
@@ -338,7 +338,7 @@ export type DocumentTypes =
|
|
|
338
338
|
| "retailExecutionPreset"
|
|
339
339
|
| "paymentMethod"
|
|
340
340
|
| "approvalRequest";
|
|
341
|
-
export type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
|
|
341
|
+
export declare type PrintTypes = "workorder" | "form" | "invoice" | "proforma";
|
|
342
342
|
export interface MediaDoc {
|
|
343
343
|
_id?: string;
|
|
344
344
|
media_id: string;
|
|
@@ -6886,7 +6886,9 @@ export declare namespace Service {
|
|
|
6886
6886
|
| "approval-request"
|
|
6887
6887
|
| "receiving-material"
|
|
6888
6888
|
| "asset-part-transfer"
|
|
6889
|
-
| "adjust-inventory"
|
|
6889
|
+
| "adjust-inventory"
|
|
6890
|
+
| "return-asset-part-unit"
|
|
6891
|
+
| "store-asset-part-unit";
|
|
6890
6892
|
document_id: string;
|
|
6891
6893
|
status: CycleStatus;
|
|
6892
6894
|
node?: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -8994,6 +8996,13 @@ export declare namespace Service {
|
|
|
8994
8996
|
creator: AdminOrRep;
|
|
8995
8997
|
editor?: AdminOrRep;
|
|
8996
8998
|
sync_id: string;
|
|
8999
|
+
status:
|
|
9000
|
+
| "pending"
|
|
9001
|
+
| "approved"
|
|
9002
|
+
| "processing"
|
|
9003
|
+
| "rejected"
|
|
9004
|
+
| "processed"
|
|
9005
|
+
| "failed";
|
|
8997
9006
|
transaction_processed: boolean;
|
|
8998
9007
|
client: StringId;
|
|
8999
9008
|
client_name: string;
|
|
@@ -9022,6 +9031,11 @@ export declare namespace Service {
|
|
|
9022
9031
|
integration_meta?: {
|
|
9023
9032
|
[key: string]: any;
|
|
9024
9033
|
};
|
|
9034
|
+
failed_reasons?: {
|
|
9035
|
+
code: string;
|
|
9036
|
+
message: string;
|
|
9037
|
+
[key: string]: any;
|
|
9038
|
+
}[];
|
|
9025
9039
|
company_namespace: string[];
|
|
9026
9040
|
createdAt: Date;
|
|
9027
9041
|
updatedAt: Date;
|
|
@@ -9031,6 +9045,13 @@ export declare namespace Service {
|
|
|
9031
9045
|
creator: AdminOrRep;
|
|
9032
9046
|
editor?: AdminOrRep;
|
|
9033
9047
|
sync_id: string;
|
|
9048
|
+
status:
|
|
9049
|
+
| "pending"
|
|
9050
|
+
| "approved"
|
|
9051
|
+
| "processing"
|
|
9052
|
+
| "rejected"
|
|
9053
|
+
| "processed"
|
|
9054
|
+
| "failed";
|
|
9034
9055
|
transaction_processed: boolean;
|
|
9035
9056
|
client:
|
|
9036
9057
|
| StringId
|
|
@@ -9068,6 +9089,11 @@ export declare namespace Service {
|
|
|
9068
9089
|
integration_meta?: {
|
|
9069
9090
|
[key: string]: any;
|
|
9070
9091
|
};
|
|
9092
|
+
failed_reasons?: {
|
|
9093
|
+
code: string;
|
|
9094
|
+
message: string;
|
|
9095
|
+
[key: string]: any;
|
|
9096
|
+
}[];
|
|
9071
9097
|
company_namespace: string[];
|
|
9072
9098
|
createdAt: Date;
|
|
9073
9099
|
updatedAt: Date;
|
|
@@ -9076,6 +9102,7 @@ export declare namespace Service {
|
|
|
9076
9102
|
creator?: AdminOrRep;
|
|
9077
9103
|
editor?: AdminOrRep;
|
|
9078
9104
|
sync_id: string;
|
|
9105
|
+
status?: "pending";
|
|
9079
9106
|
transaction_processed: boolean;
|
|
9080
9107
|
serial_number?: SerialNumber;
|
|
9081
9108
|
client: StringId;
|
|
@@ -9106,13 +9133,56 @@ export declare namespace Service {
|
|
|
9106
9133
|
company_namespace: string[];
|
|
9107
9134
|
}
|
|
9108
9135
|
interface UpdateBody {
|
|
9136
|
+
_id?: StringId;
|
|
9137
|
+
creator?: AdminOrRep;
|
|
9109
9138
|
editor?: AdminOrRep;
|
|
9139
|
+
sync_id?: string;
|
|
9140
|
+
status?:
|
|
9141
|
+
| "pending"
|
|
9142
|
+
| "approved"
|
|
9143
|
+
| "processing"
|
|
9144
|
+
| "rejected"
|
|
9145
|
+
| "processed"
|
|
9146
|
+
| "failed";
|
|
9147
|
+
transaction_processed?: boolean;
|
|
9148
|
+
client?: StringId;
|
|
9149
|
+
client_name?: string;
|
|
9150
|
+
warehouse?: StringId;
|
|
9151
|
+
warehouse_name?: string;
|
|
9152
|
+
teams?: StringId[];
|
|
9153
|
+
time?: number;
|
|
9154
|
+
business_day?: string;
|
|
9155
|
+
visit_id?: string;
|
|
9156
|
+
serial_number?: SerialNumber;
|
|
9110
9157
|
description?: string;
|
|
9111
9158
|
custom_status?: StringId;
|
|
9159
|
+
signature?: StringId;
|
|
9112
9160
|
media?: StringId[];
|
|
9161
|
+
asset_part_units?: {
|
|
9162
|
+
_id?: StringId;
|
|
9163
|
+
asset_part_unit: StringId;
|
|
9164
|
+
qty: number;
|
|
9165
|
+
asset_part?: StringId;
|
|
9166
|
+
asset_part_name?: string;
|
|
9167
|
+
comment?: string;
|
|
9168
|
+
splitted_from?: StringId;
|
|
9169
|
+
}[];
|
|
9170
|
+
asset_part_units_count?: number;
|
|
9171
|
+
total_asset_part_units_qty?: number;
|
|
9113
9172
|
integration_meta?: {
|
|
9114
9173
|
[key: string]: any;
|
|
9115
9174
|
};
|
|
9175
|
+
failed_reasons?: {
|
|
9176
|
+
code: string;
|
|
9177
|
+
message: string;
|
|
9178
|
+
[key: string]: any;
|
|
9179
|
+
}[];
|
|
9180
|
+
isResubmitted?: boolean;
|
|
9181
|
+
note?: string;
|
|
9182
|
+
stage?: number;
|
|
9183
|
+
company_namespace?: string[];
|
|
9184
|
+
createdAt?: Date;
|
|
9185
|
+
updatedAt?: Date;
|
|
9116
9186
|
}
|
|
9117
9187
|
namespace Find {
|
|
9118
9188
|
type Params = DefaultPaginationQueryParams & {
|
|
@@ -9202,6 +9272,13 @@ export declare namespace Service {
|
|
|
9202
9272
|
creator: AdminOrRep;
|
|
9203
9273
|
editor?: AdminOrRep;
|
|
9204
9274
|
sync_id: string;
|
|
9275
|
+
status:
|
|
9276
|
+
| "pending"
|
|
9277
|
+
| "approved"
|
|
9278
|
+
| "processing"
|
|
9279
|
+
| "rejected"
|
|
9280
|
+
| "processed"
|
|
9281
|
+
| "failed";
|
|
9205
9282
|
transaction_processed: boolean;
|
|
9206
9283
|
warehouse: StringId;
|
|
9207
9284
|
warehouse_name: string;
|
|
@@ -9228,6 +9305,11 @@ export declare namespace Service {
|
|
|
9228
9305
|
integration_meta?: {
|
|
9229
9306
|
[key: string]: any;
|
|
9230
9307
|
};
|
|
9308
|
+
failed_reasons?: {
|
|
9309
|
+
code: string;
|
|
9310
|
+
message: string;
|
|
9311
|
+
[key: string]: any;
|
|
9312
|
+
}[];
|
|
9231
9313
|
company_namespace: string[];
|
|
9232
9314
|
createdAt: Date;
|
|
9233
9315
|
updatedAt: Date;
|
|
@@ -9237,6 +9319,13 @@ export declare namespace Service {
|
|
|
9237
9319
|
creator: AdminOrRep;
|
|
9238
9320
|
editor?: AdminOrRep;
|
|
9239
9321
|
sync_id: string;
|
|
9322
|
+
status:
|
|
9323
|
+
| "pending"
|
|
9324
|
+
| "approved"
|
|
9325
|
+
| "processing"
|
|
9326
|
+
| "rejected"
|
|
9327
|
+
| "processed"
|
|
9328
|
+
| "failed";
|
|
9240
9329
|
transaction_processed: boolean;
|
|
9241
9330
|
warehouse:
|
|
9242
9331
|
| StringId
|
|
@@ -9270,6 +9359,11 @@ export declare namespace Service {
|
|
|
9270
9359
|
integration_meta?: {
|
|
9271
9360
|
[key: string]: any;
|
|
9272
9361
|
};
|
|
9362
|
+
failed_reasons?: {
|
|
9363
|
+
code: string;
|
|
9364
|
+
message: string;
|
|
9365
|
+
[key: string]: any;
|
|
9366
|
+
}[];
|
|
9273
9367
|
company_namespace: string[];
|
|
9274
9368
|
createdAt: Date;
|
|
9275
9369
|
updatedAt: Date;
|
|
@@ -9278,6 +9372,7 @@ export declare namespace Service {
|
|
|
9278
9372
|
creator?: AdminOrRep;
|
|
9279
9373
|
editor?: AdminOrRep;
|
|
9280
9374
|
sync_id: string;
|
|
9375
|
+
status?: "pending";
|
|
9281
9376
|
transaction_processed: boolean;
|
|
9282
9377
|
serial_number?: SerialNumber;
|
|
9283
9378
|
warehouse: StringId;
|
|
@@ -9306,13 +9401,54 @@ export declare namespace Service {
|
|
|
9306
9401
|
company_namespace: string[];
|
|
9307
9402
|
}
|
|
9308
9403
|
interface UpdateBody {
|
|
9404
|
+
_id?: StringId;
|
|
9405
|
+
creator?: AdminOrRep;
|
|
9309
9406
|
editor?: AdminOrRep;
|
|
9407
|
+
sync_id?: string;
|
|
9408
|
+
status?:
|
|
9409
|
+
| "pending"
|
|
9410
|
+
| "approved"
|
|
9411
|
+
| "processing"
|
|
9412
|
+
| "rejected"
|
|
9413
|
+
| "processed"
|
|
9414
|
+
| "failed";
|
|
9415
|
+
transaction_processed?: boolean;
|
|
9416
|
+
warehouse?: StringId;
|
|
9417
|
+
warehouse_name?: string;
|
|
9418
|
+
teams?: StringId[];
|
|
9419
|
+
time?: number;
|
|
9420
|
+
business_day?: string;
|
|
9421
|
+
visit_id?: string;
|
|
9422
|
+
serial_number?: SerialNumber;
|
|
9310
9423
|
description?: string;
|
|
9311
9424
|
custom_status?: StringId;
|
|
9425
|
+
signature?: StringId;
|
|
9312
9426
|
media?: StringId[];
|
|
9427
|
+
asset_part_units?: {
|
|
9428
|
+
_id?: StringId;
|
|
9429
|
+
asset_part_unit: StringId;
|
|
9430
|
+
qty: number;
|
|
9431
|
+
asset_part?: StringId;
|
|
9432
|
+
asset_part_name?: string;
|
|
9433
|
+
comment?: string;
|
|
9434
|
+
splitted_from?: StringId;
|
|
9435
|
+
}[];
|
|
9436
|
+
asset_part_units_count?: number;
|
|
9437
|
+
total_asset_part_units_qty?: number;
|
|
9313
9438
|
integration_meta?: {
|
|
9314
9439
|
[key: string]: any;
|
|
9315
9440
|
};
|
|
9441
|
+
failed_reasons?: {
|
|
9442
|
+
code: string;
|
|
9443
|
+
message: string;
|
|
9444
|
+
[key: string]: any;
|
|
9445
|
+
}[];
|
|
9446
|
+
isResubmitted?: boolean;
|
|
9447
|
+
note?: string;
|
|
9448
|
+
stage?: number;
|
|
9449
|
+
company_namespace?: string[];
|
|
9450
|
+
createdAt?: Date;
|
|
9451
|
+
updatedAt?: Date;
|
|
9316
9452
|
}
|
|
9317
9453
|
namespace Find {
|
|
9318
9454
|
type Params = DefaultPaginationQueryParams & {
|
|
@@ -10712,8 +10848,8 @@ export declare namespace Service {
|
|
|
10712
10848
|
}
|
|
10713
10849
|
}
|
|
10714
10850
|
}
|
|
10715
|
-
export type StringId = string;
|
|
10716
|
-
export type NameSpaces = string[];
|
|
10851
|
+
export declare type StringId = string;
|
|
10852
|
+
export declare type NameSpaces = string[];
|
|
10717
10853
|
export interface AdminOrRep {
|
|
10718
10854
|
_id: StringId;
|
|
10719
10855
|
name?: string;
|
|
@@ -10721,7 +10857,7 @@ export interface AdminOrRep {
|
|
|
10721
10857
|
admin?: StringId;
|
|
10722
10858
|
rep?: StringId;
|
|
10723
10859
|
}
|
|
10724
|
-
type PopulatedMediaStorage = Pick<
|
|
10860
|
+
declare type PopulatedMediaStorage = Pick<
|
|
10725
10861
|
Service.MediaStorage.MediaStorageSchema,
|
|
10726
10862
|
| "_id"
|
|
10727
10863
|
| "createdAt"
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -6887,7 +6887,9 @@ export namespace Service {
|
|
|
6887
6887
|
| "approval-request"
|
|
6888
6888
|
| "receiving-material"
|
|
6889
6889
|
| "asset-part-transfer"
|
|
6890
|
-
| "adjust-inventory"
|
|
6890
|
+
| "adjust-inventory"
|
|
6891
|
+
| "return-asset-part-unit"
|
|
6892
|
+
| "store-asset-part-unit";
|
|
6891
6893
|
document_id: string;
|
|
6892
6894
|
status: CycleStatus;
|
|
6893
6895
|
node?: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -8825,6 +8827,8 @@ export namespace Service {
|
|
|
8825
8827
|
| "warehouse"
|
|
8826
8828
|
| "teams"
|
|
8827
8829
|
| "custom_status"
|
|
8830
|
+
| "from"
|
|
8831
|
+
| "to"
|
|
8828
8832
|
)[];
|
|
8829
8833
|
sortBy?: {
|
|
8830
8834
|
field: "_id" | "time" | "createdAt" | "updatedAt";
|
|
@@ -8865,6 +8869,13 @@ export namespace Service {
|
|
|
8865
8869
|
creator: AdminOrRep;
|
|
8866
8870
|
editor?: AdminOrRep;
|
|
8867
8871
|
sync_id: string;
|
|
8872
|
+
status:
|
|
8873
|
+
| "pending"
|
|
8874
|
+
| "approved"
|
|
8875
|
+
| "processing"
|
|
8876
|
+
| "rejected"
|
|
8877
|
+
| "processed"
|
|
8878
|
+
| "failed";
|
|
8868
8879
|
transaction_processed: boolean;
|
|
8869
8880
|
client: StringId;
|
|
8870
8881
|
client_name: string;
|
|
@@ -8891,6 +8902,7 @@ export namespace Service {
|
|
|
8891
8902
|
asset_part_units_count?: number;
|
|
8892
8903
|
total_asset_part_units_qty?: number;
|
|
8893
8904
|
integration_meta?: { [key: string]: any };
|
|
8905
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8894
8906
|
company_namespace: string[];
|
|
8895
8907
|
createdAt: Date;
|
|
8896
8908
|
updatedAt: Date;
|
|
@@ -8900,6 +8912,13 @@ export namespace Service {
|
|
|
8900
8912
|
creator: AdminOrRep;
|
|
8901
8913
|
editor?: AdminOrRep;
|
|
8902
8914
|
sync_id: string;
|
|
8915
|
+
status:
|
|
8916
|
+
| "pending"
|
|
8917
|
+
| "approved"
|
|
8918
|
+
| "processing"
|
|
8919
|
+
| "rejected"
|
|
8920
|
+
| "processed"
|
|
8921
|
+
| "failed";
|
|
8903
8922
|
transaction_processed: boolean;
|
|
8904
8923
|
client:
|
|
8905
8924
|
| StringId
|
|
@@ -8935,6 +8954,7 @@ export namespace Service {
|
|
|
8935
8954
|
asset_part_units_count?: number;
|
|
8936
8955
|
total_asset_part_units_qty?: number;
|
|
8937
8956
|
integration_meta?: { [key: string]: any };
|
|
8957
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8938
8958
|
company_namespace: string[];
|
|
8939
8959
|
createdAt: Date;
|
|
8940
8960
|
updatedAt: Date;
|
|
@@ -8943,6 +8963,7 @@ export namespace Service {
|
|
|
8943
8963
|
creator?: AdminOrRep;
|
|
8944
8964
|
editor?: AdminOrRep;
|
|
8945
8965
|
sync_id: string;
|
|
8966
|
+
status?: "pending";
|
|
8946
8967
|
transaction_processed: boolean;
|
|
8947
8968
|
serial_number?: SerialNumber;
|
|
8948
8969
|
client: StringId;
|
|
@@ -8971,11 +8992,50 @@ export namespace Service {
|
|
|
8971
8992
|
company_namespace: string[];
|
|
8972
8993
|
}
|
|
8973
8994
|
export interface UpdateBody {
|
|
8995
|
+
_id?: StringId;
|
|
8996
|
+
creator?: AdminOrRep;
|
|
8974
8997
|
editor?: AdminOrRep;
|
|
8998
|
+
sync_id?: string;
|
|
8999
|
+
status?:
|
|
9000
|
+
| "pending"
|
|
9001
|
+
| "approved"
|
|
9002
|
+
| "processing"
|
|
9003
|
+
| "rejected"
|
|
9004
|
+
| "processed"
|
|
9005
|
+
| "failed";
|
|
9006
|
+
transaction_processed?: boolean;
|
|
9007
|
+
client?: StringId;
|
|
9008
|
+
client_name?: string;
|
|
9009
|
+
warehouse?: StringId;
|
|
9010
|
+
warehouse_name?: string;
|
|
9011
|
+
teams?: StringId[];
|
|
9012
|
+
time?: number;
|
|
9013
|
+
business_day?: string;
|
|
9014
|
+
visit_id?: string;
|
|
9015
|
+
serial_number?: SerialNumber;
|
|
8975
9016
|
description?: string;
|
|
8976
9017
|
custom_status?: StringId;
|
|
9018
|
+
signature?: StringId;
|
|
8977
9019
|
media?: StringId[];
|
|
9020
|
+
asset_part_units?: {
|
|
9021
|
+
_id?: StringId;
|
|
9022
|
+
asset_part_unit: StringId;
|
|
9023
|
+
qty: number;
|
|
9024
|
+
asset_part?: StringId;
|
|
9025
|
+
asset_part_name?: string;
|
|
9026
|
+
comment?: string;
|
|
9027
|
+
splitted_from?: StringId;
|
|
9028
|
+
}[];
|
|
9029
|
+
asset_part_units_count?: number;
|
|
9030
|
+
total_asset_part_units_qty?: number;
|
|
8978
9031
|
integration_meta?: { [key: string]: any };
|
|
9032
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
9033
|
+
isResubmitted?: boolean;
|
|
9034
|
+
note?: string;
|
|
9035
|
+
stage?: number;
|
|
9036
|
+
company_namespace?: string[];
|
|
9037
|
+
createdAt?: Date;
|
|
9038
|
+
updatedAt?: Date;
|
|
8979
9039
|
}
|
|
8980
9040
|
|
|
8981
9041
|
export namespace Find {
|
|
@@ -9052,6 +9112,13 @@ export namespace Service {
|
|
|
9052
9112
|
creator: AdminOrRep;
|
|
9053
9113
|
editor?: AdminOrRep;
|
|
9054
9114
|
sync_id: string;
|
|
9115
|
+
status:
|
|
9116
|
+
| "pending"
|
|
9117
|
+
| "approved"
|
|
9118
|
+
| "processing"
|
|
9119
|
+
| "rejected"
|
|
9120
|
+
| "processed"
|
|
9121
|
+
| "failed";
|
|
9055
9122
|
transaction_processed: boolean;
|
|
9056
9123
|
warehouse: StringId;
|
|
9057
9124
|
warehouse_name: string;
|
|
@@ -9076,6 +9143,7 @@ export namespace Service {
|
|
|
9076
9143
|
asset_part_units_count?: number;
|
|
9077
9144
|
total_asset_part_units_qty?: number;
|
|
9078
9145
|
integration_meta?: { [key: string]: any };
|
|
9146
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
9079
9147
|
company_namespace: string[];
|
|
9080
9148
|
createdAt: Date;
|
|
9081
9149
|
updatedAt: Date;
|
|
@@ -9085,6 +9153,13 @@ export namespace Service {
|
|
|
9085
9153
|
creator: AdminOrRep;
|
|
9086
9154
|
editor?: AdminOrRep;
|
|
9087
9155
|
sync_id: string;
|
|
9156
|
+
status:
|
|
9157
|
+
| "pending"
|
|
9158
|
+
| "approved"
|
|
9159
|
+
| "processing"
|
|
9160
|
+
| "rejected"
|
|
9161
|
+
| "processed"
|
|
9162
|
+
| "failed";
|
|
9088
9163
|
transaction_processed: boolean;
|
|
9089
9164
|
warehouse:
|
|
9090
9165
|
| StringId
|
|
@@ -9116,6 +9191,7 @@ export namespace Service {
|
|
|
9116
9191
|
asset_part_units_count?: number;
|
|
9117
9192
|
total_asset_part_units_qty?: number;
|
|
9118
9193
|
integration_meta?: { [key: string]: any };
|
|
9194
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
9119
9195
|
company_namespace: string[];
|
|
9120
9196
|
createdAt: Date;
|
|
9121
9197
|
updatedAt: Date;
|
|
@@ -9124,6 +9200,7 @@ export namespace Service {
|
|
|
9124
9200
|
creator?: AdminOrRep;
|
|
9125
9201
|
editor?: AdminOrRep;
|
|
9126
9202
|
sync_id: string;
|
|
9203
|
+
status?: "pending";
|
|
9127
9204
|
transaction_processed: boolean;
|
|
9128
9205
|
serial_number?: SerialNumber;
|
|
9129
9206
|
warehouse: StringId;
|
|
@@ -9150,11 +9227,48 @@ export namespace Service {
|
|
|
9150
9227
|
company_namespace: string[];
|
|
9151
9228
|
}
|
|
9152
9229
|
export interface UpdateBody {
|
|
9230
|
+
_id?: StringId;
|
|
9231
|
+
creator?: AdminOrRep;
|
|
9153
9232
|
editor?: AdminOrRep;
|
|
9233
|
+
sync_id?: string;
|
|
9234
|
+
status?:
|
|
9235
|
+
| "pending"
|
|
9236
|
+
| "approved"
|
|
9237
|
+
| "processing"
|
|
9238
|
+
| "rejected"
|
|
9239
|
+
| "processed"
|
|
9240
|
+
| "failed";
|
|
9241
|
+
transaction_processed?: boolean;
|
|
9242
|
+
warehouse?: StringId;
|
|
9243
|
+
warehouse_name?: string;
|
|
9244
|
+
teams?: StringId[];
|
|
9245
|
+
time?: number;
|
|
9246
|
+
business_day?: string;
|
|
9247
|
+
visit_id?: string;
|
|
9248
|
+
serial_number?: SerialNumber;
|
|
9154
9249
|
description?: string;
|
|
9155
9250
|
custom_status?: StringId;
|
|
9251
|
+
signature?: StringId;
|
|
9156
9252
|
media?: StringId[];
|
|
9253
|
+
asset_part_units?: {
|
|
9254
|
+
_id?: StringId;
|
|
9255
|
+
asset_part_unit: StringId;
|
|
9256
|
+
qty: number;
|
|
9257
|
+
asset_part?: StringId;
|
|
9258
|
+
asset_part_name?: string;
|
|
9259
|
+
comment?: string;
|
|
9260
|
+
splitted_from?: StringId;
|
|
9261
|
+
}[];
|
|
9262
|
+
asset_part_units_count?: number;
|
|
9263
|
+
total_asset_part_units_qty?: number;
|
|
9157
9264
|
integration_meta?: { [key: string]: any };
|
|
9265
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
9266
|
+
isResubmitted?: boolean;
|
|
9267
|
+
note?: string;
|
|
9268
|
+
stage?: number;
|
|
9269
|
+
company_namespace?: string[];
|
|
9270
|
+
createdAt?: Date;
|
|
9271
|
+
updatedAt?: Date;
|
|
9158
9272
|
}
|
|
9159
9273
|
|
|
9160
9274
|
export namespace Find {
|
|
@@ -10147,7 +10261,7 @@ export namespace Service {
|
|
|
10147
10261
|
total_amount?: number;
|
|
10148
10262
|
tax_amount?: number;
|
|
10149
10263
|
discount_amount?: number;
|
|
10150
|
-
}
|
|
10264
|
+
},
|
|
10151
10265
|
];
|
|
10152
10266
|
total_amount?: number;
|
|
10153
10267
|
total_tax?: number;
|