repzo 1.0.90 → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +1 -0
- package/lib/types/index.d.ts +261 -95
- package/package.json +1 -1
- package/src/types/index.ts +234 -90
package/changelog.md
CHANGED
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;
|
|
@@ -3523,7 +3523,8 @@ export declare namespace Service {
|
|
|
3523
3523
|
| "assetPartUnit"
|
|
3524
3524
|
| "assetPartTransfer"
|
|
3525
3525
|
| "returnAssetPartUnit"
|
|
3526
|
-
| "storeAssetPartUnit"
|
|
3526
|
+
| "storeAssetPartUnit"
|
|
3527
|
+
| "adjustInventory";
|
|
3527
3528
|
export interface CustomStatusSchema {
|
|
3528
3529
|
_id: string;
|
|
3529
3530
|
name: string;
|
|
@@ -6879,7 +6880,13 @@ export declare namespace Service {
|
|
|
6879
6880
|
type CycleStatus = "pending" | "approved" | "processing" | "rejected";
|
|
6880
6881
|
export interface Schema {
|
|
6881
6882
|
_id: string;
|
|
6882
|
-
document_type:
|
|
6883
|
+
document_type:
|
|
6884
|
+
| "proforma"
|
|
6885
|
+
| "transfer"
|
|
6886
|
+
| "approval-request"
|
|
6887
|
+
| "receiving-material"
|
|
6888
|
+
| "asset-part-transfer"
|
|
6889
|
+
| "adjust-inventory";
|
|
6883
6890
|
document_id: string;
|
|
6884
6891
|
status: CycleStatus;
|
|
6885
6892
|
node?: AdminCreator | RepCreator | ClientCreator;
|
|
@@ -7261,113 +7268,177 @@ export declare namespace Service {
|
|
|
7261
7268
|
}
|
|
7262
7269
|
}
|
|
7263
7270
|
namespace AdjustInventory {
|
|
7264
|
-
interface
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7271
|
+
export interface Schema {
|
|
7272
|
+
_id: StringId;
|
|
7273
|
+
serial_number: SerialNumber;
|
|
7274
|
+
status: "pending" | "approved" | "processing" | "rejected" | "processed";
|
|
7275
|
+
time: number;
|
|
7276
|
+
creator: AdminCreator | RepCreator;
|
|
7277
|
+
editor: AdminCreator;
|
|
7278
|
+
from: StringId;
|
|
7279
|
+
to: StringId;
|
|
7280
|
+
variants: {
|
|
7281
|
+
variant: StringId;
|
|
7282
|
+
qty: number;
|
|
7283
|
+
variant_name?: string;
|
|
7284
|
+
product_id?: StringId;
|
|
7285
|
+
product_name?: string;
|
|
7286
|
+
_id: StringId;
|
|
7287
|
+
}[];
|
|
7288
|
+
teams?: StringId[];
|
|
7289
|
+
sync_id: string;
|
|
7290
|
+
reason?: StringId;
|
|
7291
|
+
transaction_processed: boolean;
|
|
7292
|
+
custom_status?: StringId;
|
|
7293
|
+
company_namespace: string[];
|
|
7294
|
+
createdAt: string;
|
|
7295
|
+
updatedAt: string;
|
|
7296
|
+
__v: number;
|
|
7270
7297
|
}
|
|
7271
|
-
interface
|
|
7272
|
-
_id:
|
|
7298
|
+
export interface PopulatedData {
|
|
7299
|
+
_id: StringId;
|
|
7273
7300
|
serial_number: SerialNumber;
|
|
7301
|
+
status: "pending" | "approved" | "processing" | "rejected" | "processed";
|
|
7274
7302
|
time: number;
|
|
7275
7303
|
creator: AdminCreator | RepCreator;
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7304
|
+
editor: AdminCreator;
|
|
7305
|
+
from: StringId | Warehouse.WarehouseSchema;
|
|
7306
|
+
to: StringId | Warehouse.WarehouseSchema;
|
|
7307
|
+
variants: {
|
|
7308
|
+
variant:
|
|
7309
|
+
| StringId
|
|
7310
|
+
| (Pick<Variant.VariantSchema, "_id" | "name" | "local_name"> & {
|
|
7311
|
+
product: Pick<
|
|
7312
|
+
Product.ProductSchema,
|
|
7313
|
+
"_id" | "name" | "local_name"
|
|
7314
|
+
>;
|
|
7315
|
+
});
|
|
7316
|
+
qty: number;
|
|
7317
|
+
variant_name?: string;
|
|
7318
|
+
product_id?: StringId;
|
|
7319
|
+
product_name?: string;
|
|
7320
|
+
_id: StringId;
|
|
7321
|
+
}[];
|
|
7322
|
+
teams?: StringId[] | Team.TeamSchema[];
|
|
7280
7323
|
sync_id: string;
|
|
7281
|
-
reason?:
|
|
7324
|
+
reason?:
|
|
7325
|
+
| StringId
|
|
7326
|
+
| InventoryAdjustmentReason.InventoryAdjustmentReasonSchema;
|
|
7282
7327
|
transaction_processed: boolean;
|
|
7328
|
+
custom_status?: StringId | CustomStatus.CustomStatusSchema;
|
|
7283
7329
|
company_namespace: string[];
|
|
7284
7330
|
createdAt: string;
|
|
7285
7331
|
updatedAt: string;
|
|
7286
7332
|
__v: number;
|
|
7333
|
+
can_edit?: boolean;
|
|
7334
|
+
current_nodes?: string[];
|
|
7335
|
+
cycle?: Cycle.Schema;
|
|
7287
7336
|
}
|
|
7288
|
-
interface CreateBody {
|
|
7289
|
-
|
|
7337
|
+
export interface CreateBody {
|
|
7338
|
+
sync_id: string;
|
|
7290
7339
|
time: number;
|
|
7340
|
+
serial_number?: SerialNumber;
|
|
7341
|
+
status?: "pending";
|
|
7291
7342
|
creator?: AdminCreator | RepCreator;
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7343
|
+
from?: StringId;
|
|
7344
|
+
to: StringId;
|
|
7345
|
+
variants: {
|
|
7346
|
+
variant: string;
|
|
7347
|
+
qty: number;
|
|
7348
|
+
variant_name?: string;
|
|
7349
|
+
product_id?: string;
|
|
7350
|
+
product_name?: string;
|
|
7351
|
+
}[];
|
|
7352
|
+
transaction_processed?: false;
|
|
7295
7353
|
teams?: string[];
|
|
7296
|
-
|
|
7354
|
+
reason?: StringId;
|
|
7355
|
+
custom_status?: StringId;
|
|
7297
7356
|
company_namespace?: string[];
|
|
7298
7357
|
}
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7358
|
+
export interface UpdateBody {
|
|
7359
|
+
_id?: StringId;
|
|
7360
|
+
serial_number?: SerialNumber;
|
|
7361
|
+
isResubmitted?: boolean;
|
|
7362
|
+
note?: string;
|
|
7363
|
+
stage?: number;
|
|
7364
|
+
status?: "pending" | "approved" | "processing" | "rejected" | "processed";
|
|
7365
|
+
time?: number;
|
|
7366
|
+
creator?: AdminCreator | RepCreator;
|
|
7367
|
+
editor?: AdminCreator;
|
|
7368
|
+
from?: StringId;
|
|
7369
|
+
to?: StringId;
|
|
7370
|
+
variants?: {
|
|
7371
|
+
variant: StringId;
|
|
7372
|
+
qty: number;
|
|
7373
|
+
variant_name?: string;
|
|
7374
|
+
product_id?: StringId;
|
|
7375
|
+
product_name?: string;
|
|
7376
|
+
_id: StringId;
|
|
7377
|
+
}[];
|
|
7378
|
+
teams?: StringId[];
|
|
7379
|
+
sync_id?: string;
|
|
7380
|
+
reason?: StringId;
|
|
7381
|
+
transaction_processed?: boolean;
|
|
7382
|
+
custom_status?: StringId;
|
|
7383
|
+
company_namespace?: string[];
|
|
7384
|
+
createdAt?: string;
|
|
7385
|
+
updatedAt?: string;
|
|
7386
|
+
__v?: number;
|
|
7387
|
+
}
|
|
7388
|
+
type PopulatedKeys =
|
|
7389
|
+
| "warehouse"
|
|
7390
|
+
| "teams"
|
|
7391
|
+
| "custom_status"
|
|
7392
|
+
| "reason"
|
|
7393
|
+
| "variant";
|
|
7334
7394
|
export namespace Find {
|
|
7335
7395
|
type Params = DefaultPaginationQueryParams & {
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7396
|
+
nodeCycles?: StringId[] | StringId;
|
|
7397
|
+
_id?: StringId[] | StringId;
|
|
7398
|
+
status?: AdjustInventory.Schema["status"][];
|
|
7399
|
+
search?: string;
|
|
7400
|
+
serial_number?: string[] | string;
|
|
7401
|
+
"serial_number.formatted"?: string[] | string;
|
|
7402
|
+
sync_id?: string[] | string;
|
|
7403
|
+
to?: StringId[] | StringId;
|
|
7404
|
+
creator?: StringId | StringId[];
|
|
7405
|
+
"creator._id"?: StringId[] | StringId;
|
|
7406
|
+
creator_type?: string | string[];
|
|
7407
|
+
"creator.type"?: string | string[];
|
|
7408
|
+
editor?: StringId | StringId[];
|
|
7409
|
+
"editor._id"?: StringId[] | StringId;
|
|
7410
|
+
editor_type?: string | string[];
|
|
7411
|
+
"editor.type"?: string | string[];
|
|
7412
|
+
teams?: StringId[] | StringId;
|
|
7413
|
+
reason?: StringId[] | StringId;
|
|
7414
|
+
custom_status?: StringId[] | StringId;
|
|
7342
7415
|
from_createdAt?: number;
|
|
7343
7416
|
to_createdAt?: number;
|
|
7344
7417
|
from_updatedAt?: number;
|
|
7345
|
-
|
|
7346
|
-
|
|
7418
|
+
to_updatedAt?: number;
|
|
7419
|
+
populatesKeys?: PopulatedKeys[];
|
|
7347
7420
|
};
|
|
7348
7421
|
interface Result extends DefaultPaginationResult {
|
|
7349
|
-
data:
|
|
7422
|
+
data: Data[] | PopulatedData[];
|
|
7350
7423
|
}
|
|
7351
7424
|
}
|
|
7352
7425
|
export namespace Get {
|
|
7353
7426
|
type ID = string;
|
|
7354
7427
|
interface Params {
|
|
7355
7428
|
populatedKeys?: PopulatedKeys[];
|
|
7429
|
+
withCycle?: boolean;
|
|
7356
7430
|
}
|
|
7357
|
-
type Result =
|
|
7358
|
-
| GetResult
|
|
7359
|
-
| {
|
|
7360
|
-
transfer: GetResult & {
|
|
7361
|
-
can_edit: boolean;
|
|
7362
|
-
current_nodes: string[];
|
|
7363
|
-
};
|
|
7364
|
-
cycle: Cycle.Schema;
|
|
7365
|
-
};
|
|
7431
|
+
type Result = Data | PopulatedData;
|
|
7366
7432
|
}
|
|
7367
7433
|
export namespace Create {
|
|
7368
7434
|
type Body = CreateBody;
|
|
7369
7435
|
type Result = Schema;
|
|
7370
7436
|
}
|
|
7437
|
+
export namespace Update {
|
|
7438
|
+
type ID = string;
|
|
7439
|
+
type Body = UpdateBody;
|
|
7440
|
+
type Result = Data;
|
|
7441
|
+
}
|
|
7371
7442
|
export {};
|
|
7372
7443
|
}
|
|
7373
7444
|
namespace InventoryAdjustmentReason {
|
|
@@ -7416,20 +7487,20 @@ export declare namespace Service {
|
|
|
7416
7487
|
namespace Get {
|
|
7417
7488
|
type ID = string;
|
|
7418
7489
|
interface Params {}
|
|
7419
|
-
type Result =
|
|
7490
|
+
type Result = Data;
|
|
7420
7491
|
}
|
|
7421
7492
|
namespace Create {
|
|
7422
7493
|
type Body = CreateBody;
|
|
7423
|
-
type Result =
|
|
7494
|
+
type Result = Data;
|
|
7424
7495
|
}
|
|
7425
7496
|
namespace Update {
|
|
7426
7497
|
type ID = string;
|
|
7427
7498
|
type Body = UpdateBody;
|
|
7428
|
-
type Result =
|
|
7499
|
+
type Result = Data;
|
|
7429
7500
|
}
|
|
7430
7501
|
namespace Remove {
|
|
7431
7502
|
type ID = string;
|
|
7432
|
-
type Result =
|
|
7503
|
+
type Result = Data;
|
|
7433
7504
|
}
|
|
7434
7505
|
}
|
|
7435
7506
|
namespace Inventory {
|
|
@@ -8246,6 +8317,18 @@ export declare namespace Service {
|
|
|
8246
8317
|
integration_meta?: {
|
|
8247
8318
|
[key: string]: any;
|
|
8248
8319
|
};
|
|
8320
|
+
quotation_is_recommended: boolean;
|
|
8321
|
+
quotation_internal_approval_status:
|
|
8322
|
+
| "pending"
|
|
8323
|
+
| "approved"
|
|
8324
|
+
| "completed"
|
|
8325
|
+
| "rejected";
|
|
8326
|
+
quotation_detail?: string;
|
|
8327
|
+
quotation_client_approval_status:
|
|
8328
|
+
| "pending"
|
|
8329
|
+
| "approved"
|
|
8330
|
+
| "collected"
|
|
8331
|
+
| "rejected";
|
|
8249
8332
|
company_namespace: string[];
|
|
8250
8333
|
createdAt: Date;
|
|
8251
8334
|
updatedAt: Date;
|
|
@@ -8289,6 +8372,18 @@ export declare namespace Service {
|
|
|
8289
8372
|
integration_meta?: {
|
|
8290
8373
|
[key: string]: any;
|
|
8291
8374
|
};
|
|
8375
|
+
quotation_is_recommended: boolean;
|
|
8376
|
+
quotation_internal_approval_status:
|
|
8377
|
+
| "pending"
|
|
8378
|
+
| "approved"
|
|
8379
|
+
| "completed"
|
|
8380
|
+
| "rejected";
|
|
8381
|
+
quotation_detail?: string;
|
|
8382
|
+
quotation_client_approval_status:
|
|
8383
|
+
| "pending"
|
|
8384
|
+
| "approved"
|
|
8385
|
+
| "collected"
|
|
8386
|
+
| "rejected";
|
|
8292
8387
|
company_namespace: string[];
|
|
8293
8388
|
createdAt: Date;
|
|
8294
8389
|
updatedAt: Date;
|
|
@@ -8321,6 +8416,18 @@ export declare namespace Service {
|
|
|
8321
8416
|
integration_meta?: {
|
|
8322
8417
|
[key: string]: any;
|
|
8323
8418
|
};
|
|
8419
|
+
quotation_is_recommended?: boolean;
|
|
8420
|
+
quotation_internal_approval_status?:
|
|
8421
|
+
| "pending"
|
|
8422
|
+
| "approved"
|
|
8423
|
+
| "completed"
|
|
8424
|
+
| "rejected";
|
|
8425
|
+
quotation_detail?: string;
|
|
8426
|
+
quotation_client_approval_status?:
|
|
8427
|
+
| "pending"
|
|
8428
|
+
| "approved"
|
|
8429
|
+
| "collected"
|
|
8430
|
+
| "rejected";
|
|
8324
8431
|
company_namespace?: string[];
|
|
8325
8432
|
}
|
|
8326
8433
|
interface UpdateBody {
|
|
@@ -8328,6 +8435,18 @@ export declare namespace Service {
|
|
|
8328
8435
|
comment?: string;
|
|
8329
8436
|
media?: StringId[];
|
|
8330
8437
|
editor?: AdminOrRep;
|
|
8438
|
+
quotation_is_recommended?: boolean;
|
|
8439
|
+
quotation_internal_approval_status?:
|
|
8440
|
+
| "pending"
|
|
8441
|
+
| "approved"
|
|
8442
|
+
| "completed"
|
|
8443
|
+
| "rejected";
|
|
8444
|
+
quotation_detail?: string;
|
|
8445
|
+
quotation_client_approval_status?:
|
|
8446
|
+
| "pending"
|
|
8447
|
+
| "approved"
|
|
8448
|
+
| "collected"
|
|
8449
|
+
| "rejected";
|
|
8331
8450
|
}
|
|
8332
8451
|
namespace Find {
|
|
8333
8452
|
type Params = DefaultPaginationQueryParams & {
|
|
@@ -8362,6 +8481,15 @@ export declare namespace Service {
|
|
|
8362
8481
|
field: "_id" | "asset_part_index" | "createdAt" | "updatedAt";
|
|
8363
8482
|
type: "asc" | "desc";
|
|
8364
8483
|
}[];
|
|
8484
|
+
quotation_is_recommended?: boolean;
|
|
8485
|
+
quotation_internal_approval_status?: Data["quotation_client_approval_status"][];
|
|
8486
|
+
quotation_client_approval_status?: Data["quotation_client_approval_status"][];
|
|
8487
|
+
rep?: StringId | StringId[];
|
|
8488
|
+
admin?: StringId | StringId[];
|
|
8489
|
+
creator?: StringId | StringId[];
|
|
8490
|
+
"creator._id"?: StringId[] | StringId;
|
|
8491
|
+
creator_type?: string | string[];
|
|
8492
|
+
"creator.type"?: string | string[];
|
|
8365
8493
|
[key: string]: any;
|
|
8366
8494
|
};
|
|
8367
8495
|
interface Result extends DefaultPaginationResult {
|
|
@@ -8506,9 +8634,12 @@ export declare namespace Service {
|
|
|
8506
8634
|
sync_id?: string[] | string;
|
|
8507
8635
|
client?: string[] | string;
|
|
8508
8636
|
warehouse?: string[] | string;
|
|
8509
|
-
|
|
8510
|
-
|
|
8637
|
+
rep?: StringId | StringId[];
|
|
8638
|
+
admin?: StringId | StringId[];
|
|
8639
|
+
creator?: StringId | StringId[];
|
|
8640
|
+
"creator._id"?: StringId[] | StringId;
|
|
8511
8641
|
creator_type?: string | string[];
|
|
8642
|
+
"creator.type"?: string | string[];
|
|
8512
8643
|
teams?: string[] | string;
|
|
8513
8644
|
visit_id?: string[] | string;
|
|
8514
8645
|
custom_status?: string[] | string;
|
|
@@ -8616,6 +8747,11 @@ export declare namespace Service {
|
|
|
8616
8747
|
integration_meta?: {
|
|
8617
8748
|
[key: string]: any;
|
|
8618
8749
|
};
|
|
8750
|
+
failed_reasons?: {
|
|
8751
|
+
code: string;
|
|
8752
|
+
message: string;
|
|
8753
|
+
[key: string]: any;
|
|
8754
|
+
}[];
|
|
8619
8755
|
company_namespace: string[];
|
|
8620
8756
|
createdAt: Date;
|
|
8621
8757
|
updatedAt: Date;
|
|
@@ -8645,7 +8781,14 @@ export declare namespace Service {
|
|
|
8645
8781
|
| "failed";
|
|
8646
8782
|
sync_id: string;
|
|
8647
8783
|
asset_part_units: {
|
|
8648
|
-
asset_part_unit:
|
|
8784
|
+
asset_part_unit:
|
|
8785
|
+
| StringId
|
|
8786
|
+
| (AssetPartUnit.Data & {
|
|
8787
|
+
custom_status?: Pick<
|
|
8788
|
+
CustomStatus.CustomStatusSchema,
|
|
8789
|
+
"_id" | "name" | "local_name" | "code" | "color"
|
|
8790
|
+
>;
|
|
8791
|
+
});
|
|
8649
8792
|
qty: number;
|
|
8650
8793
|
asset_part?: StringId | AssetPart.Data;
|
|
8651
8794
|
asset_part_name?: string;
|
|
@@ -8668,6 +8811,11 @@ export declare namespace Service {
|
|
|
8668
8811
|
integration_meta?: {
|
|
8669
8812
|
[key: string]: any;
|
|
8670
8813
|
};
|
|
8814
|
+
failed_reasons?: {
|
|
8815
|
+
code: string;
|
|
8816
|
+
message: string;
|
|
8817
|
+
[key: string]: any;
|
|
8818
|
+
}[];
|
|
8671
8819
|
company_namespace: string[];
|
|
8672
8820
|
createdAt: Date;
|
|
8673
8821
|
updatedAt: Date;
|
|
@@ -8701,6 +8849,11 @@ export declare namespace Service {
|
|
|
8701
8849
|
integration_meta?: {
|
|
8702
8850
|
[key: string]: any;
|
|
8703
8851
|
};
|
|
8852
|
+
failed_reasons?: {
|
|
8853
|
+
code: string;
|
|
8854
|
+
message: string;
|
|
8855
|
+
[key: string]: any;
|
|
8856
|
+
}[];
|
|
8704
8857
|
company_namespace: string[];
|
|
8705
8858
|
}
|
|
8706
8859
|
interface UpdateBody {
|
|
@@ -8747,6 +8900,11 @@ export declare namespace Service {
|
|
|
8747
8900
|
isResubmitted?: boolean;
|
|
8748
8901
|
note?: string;
|
|
8749
8902
|
stage?: number;
|
|
8903
|
+
failed_reasons?: {
|
|
8904
|
+
code: string;
|
|
8905
|
+
message: string;
|
|
8906
|
+
[key: string]: any;
|
|
8907
|
+
}[];
|
|
8750
8908
|
}
|
|
8751
8909
|
namespace Find {
|
|
8752
8910
|
type Params = DefaultPaginationQueryParams & {
|
|
@@ -8759,6 +8917,9 @@ export declare namespace Service {
|
|
|
8759
8917
|
creator?: StringId[] | StringId;
|
|
8760
8918
|
creator_type?: Data["creator"]["type"] | Data["creator"]["type"][];
|
|
8761
8919
|
"creator._id"?: StringId[] | StringId;
|
|
8920
|
+
rep?: StringId | StringId[];
|
|
8921
|
+
admin?: StringId | StringId[];
|
|
8922
|
+
"creator.type"?: string | string[];
|
|
8762
8923
|
type?: Data["type"][] | Data["type"];
|
|
8763
8924
|
from?: StringId[] | StringId;
|
|
8764
8925
|
to?: StringId[] | StringId;
|
|
@@ -8966,6 +9127,8 @@ export declare namespace Service {
|
|
|
8966
9127
|
"creator.type"?: string[] | string;
|
|
8967
9128
|
creator?: StringId[] | StringId;
|
|
8968
9129
|
creator_type?: string[] | string;
|
|
9130
|
+
rep?: StringId | StringId[];
|
|
9131
|
+
admin?: StringId | StringId[];
|
|
8969
9132
|
teams?: StringId[] | StringId;
|
|
8970
9133
|
visit_id?: string[] | string;
|
|
8971
9134
|
custom_status?: StringId[] | StringId;
|
|
@@ -9159,10 +9322,12 @@ export declare namespace Service {
|
|
|
9159
9322
|
"serial_number.formatted"?: string[] | string;
|
|
9160
9323
|
sync_id?: string[] | string;
|
|
9161
9324
|
warehouse?: StringId[] | StringId;
|
|
9162
|
-
creator?: StringId[] | StringId;
|
|
9163
9325
|
creator_type?: string[] | string;
|
|
9164
|
-
"creator._id"?: StringId[] | StringId;
|
|
9165
9326
|
"creator.type"?: string[] | string;
|
|
9327
|
+
rep?: StringId | StringId[];
|
|
9328
|
+
admin?: StringId | StringId[];
|
|
9329
|
+
creator?: StringId | StringId[];
|
|
9330
|
+
"creator._id"?: StringId[] | StringId;
|
|
9166
9331
|
teams?: StringId[] | StringId;
|
|
9167
9332
|
visit_id?: string[] | string;
|
|
9168
9333
|
custom_status?: StringId[] | StringId;
|
|
@@ -9756,6 +9921,7 @@ export declare namespace Service {
|
|
|
9756
9921
|
enable_ai_vision_prompt_overwrite?: boolean;
|
|
9757
9922
|
always_merge_pages_for_job?: boolean;
|
|
9758
9923
|
trim_barcode_zero_from_left?: boolean;
|
|
9924
|
+
bypass_human_review?: boolean;
|
|
9759
9925
|
createdAt: Date;
|
|
9760
9926
|
updatedAt: Date;
|
|
9761
9927
|
}
|
|
@@ -10546,8 +10712,8 @@ export declare namespace Service {
|
|
|
10546
10712
|
}
|
|
10547
10713
|
}
|
|
10548
10714
|
}
|
|
10549
|
-
export type StringId = string;
|
|
10550
|
-
export type NameSpaces = string[];
|
|
10715
|
+
export declare type StringId = string;
|
|
10716
|
+
export declare type NameSpaces = string[];
|
|
10551
10717
|
export interface AdminOrRep {
|
|
10552
10718
|
_id: StringId;
|
|
10553
10719
|
name?: string;
|
|
@@ -10555,7 +10721,7 @@ export interface AdminOrRep {
|
|
|
10555
10721
|
admin?: StringId;
|
|
10556
10722
|
rep?: StringId;
|
|
10557
10723
|
}
|
|
10558
|
-
type PopulatedMediaStorage = Pick<
|
|
10724
|
+
declare type PopulatedMediaStorage = Pick<
|
|
10559
10725
|
Service.MediaStorage.MediaStorageSchema,
|
|
10560
10726
|
| "_id"
|
|
10561
10727
|
| "createdAt"
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -3577,7 +3577,8 @@ export namespace Service {
|
|
|
3577
3577
|
| "assetPartUnit"
|
|
3578
3578
|
| "assetPartTransfer"
|
|
3579
3579
|
| "returnAssetPartUnit"
|
|
3580
|
-
| "storeAssetPartUnit"
|
|
3580
|
+
| "storeAssetPartUnit"
|
|
3581
|
+
| "adjustInventory";
|
|
3581
3582
|
export interface CustomStatusSchema {
|
|
3582
3583
|
_id: string;
|
|
3583
3584
|
name: string;
|
|
@@ -6880,15 +6881,18 @@ export namespace Service {
|
|
|
6880
6881
|
type CycleStatus = "pending" | "approved" | "processing" | "rejected";
|
|
6881
6882
|
export interface Schema {
|
|
6882
6883
|
_id: string;
|
|
6883
|
-
document_type:
|
|
6884
|
+
document_type:
|
|
6885
|
+
| "proforma"
|
|
6886
|
+
| "transfer"
|
|
6887
|
+
| "approval-request"
|
|
6888
|
+
| "receiving-material"
|
|
6889
|
+
| "asset-part-transfer"
|
|
6890
|
+
| "adjust-inventory";
|
|
6884
6891
|
document_id: string;
|
|
6885
6892
|
status: CycleStatus;
|
|
6886
6893
|
node?: AdminCreator | RepCreator | ClientCreator;
|
|
6887
6894
|
creator?: AdminCreator | RepCreator | ClientCreator;
|
|
6888
|
-
current_nodes: {
|
|
6889
|
-
admin: string;
|
|
6890
|
-
admin_name: string;
|
|
6891
|
-
}[];
|
|
6895
|
+
current_nodes: { admin: string; admin_name: string }[];
|
|
6892
6896
|
stage?: number;
|
|
6893
6897
|
stageName?: string;
|
|
6894
6898
|
company_namespace: string[];
|
|
@@ -7260,117 +7264,178 @@ export namespace Service {
|
|
|
7260
7264
|
}
|
|
7261
7265
|
|
|
7262
7266
|
export namespace AdjustInventory {
|
|
7263
|
-
interface
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7267
|
+
export interface Schema {
|
|
7268
|
+
_id: StringId;
|
|
7269
|
+
serial_number: SerialNumber;
|
|
7270
|
+
status: "pending" | "approved" | "processing" | "rejected" | "processed";
|
|
7271
|
+
time: number;
|
|
7272
|
+
creator: AdminCreator | RepCreator;
|
|
7273
|
+
editor: AdminCreator;
|
|
7274
|
+
from: StringId;
|
|
7275
|
+
to: StringId;
|
|
7276
|
+
variants: {
|
|
7277
|
+
variant: StringId;
|
|
7278
|
+
qty: number;
|
|
7279
|
+
variant_name?: string;
|
|
7280
|
+
product_id?: StringId;
|
|
7281
|
+
product_name?: string;
|
|
7282
|
+
_id: StringId;
|
|
7283
|
+
}[];
|
|
7284
|
+
teams?: StringId[];
|
|
7285
|
+
sync_id: string;
|
|
7286
|
+
reason?: StringId;
|
|
7287
|
+
transaction_processed: boolean;
|
|
7288
|
+
custom_status?: StringId;
|
|
7289
|
+
company_namespace: string[];
|
|
7290
|
+
createdAt: string;
|
|
7291
|
+
updatedAt: string;
|
|
7292
|
+
__v: number;
|
|
7269
7293
|
}
|
|
7270
|
-
interface
|
|
7271
|
-
_id:
|
|
7294
|
+
export interface PopulatedData {
|
|
7295
|
+
_id: StringId;
|
|
7272
7296
|
serial_number: SerialNumber;
|
|
7297
|
+
status: "pending" | "approved" | "processing" | "rejected" | "processed";
|
|
7273
7298
|
time: number;
|
|
7274
7299
|
creator: AdminCreator | RepCreator;
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7300
|
+
editor: AdminCreator;
|
|
7301
|
+
from: StringId | Warehouse.WarehouseSchema;
|
|
7302
|
+
to: StringId | Warehouse.WarehouseSchema;
|
|
7303
|
+
variants: {
|
|
7304
|
+
variant:
|
|
7305
|
+
| StringId
|
|
7306
|
+
| (Pick<Variant.VariantSchema, "_id" | "name" | "local_name"> & {
|
|
7307
|
+
product: Pick<
|
|
7308
|
+
Product.ProductSchema,
|
|
7309
|
+
"_id" | "name" | "local_name"
|
|
7310
|
+
>;
|
|
7311
|
+
});
|
|
7312
|
+
qty: number;
|
|
7313
|
+
variant_name?: string;
|
|
7314
|
+
product_id?: StringId;
|
|
7315
|
+
product_name?: string;
|
|
7316
|
+
_id: StringId;
|
|
7317
|
+
}[];
|
|
7318
|
+
teams?: StringId[] | Team.TeamSchema[];
|
|
7279
7319
|
sync_id: string;
|
|
7280
|
-
reason?:
|
|
7320
|
+
reason?:
|
|
7321
|
+
| StringId
|
|
7322
|
+
| InventoryAdjustmentReason.InventoryAdjustmentReasonSchema;
|
|
7281
7323
|
transaction_processed: boolean;
|
|
7324
|
+
custom_status?: StringId | CustomStatus.CustomStatusSchema;
|
|
7282
7325
|
company_namespace: string[];
|
|
7283
7326
|
createdAt: string;
|
|
7284
7327
|
updatedAt: string;
|
|
7285
7328
|
__v: number;
|
|
7329
|
+
can_edit?: boolean;
|
|
7330
|
+
current_nodes?: string[];
|
|
7331
|
+
cycle?: Cycle.Schema;
|
|
7286
7332
|
}
|
|
7287
|
-
interface CreateBody {
|
|
7288
|
-
|
|
7333
|
+
export interface CreateBody {
|
|
7334
|
+
sync_id: string;
|
|
7289
7335
|
time: number;
|
|
7336
|
+
serial_number?: SerialNumber;
|
|
7337
|
+
status?: "pending";
|
|
7290
7338
|
creator?: AdminCreator | RepCreator;
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7339
|
+
from?: StringId;
|
|
7340
|
+
to: StringId;
|
|
7341
|
+
variants: {
|
|
7342
|
+
variant: string;
|
|
7343
|
+
qty: number;
|
|
7344
|
+
variant_name?: string;
|
|
7345
|
+
product_id?: string;
|
|
7346
|
+
product_name?: string;
|
|
7347
|
+
}[];
|
|
7348
|
+
transaction_processed?: false;
|
|
7294
7349
|
teams?: string[];
|
|
7295
|
-
|
|
7350
|
+
reason?: StringId;
|
|
7351
|
+
custom_status?: StringId;
|
|
7296
7352
|
company_namespace?: string[];
|
|
7297
7353
|
}
|
|
7354
|
+
export interface UpdateBody {
|
|
7355
|
+
_id?: StringId;
|
|
7356
|
+
serial_number?: SerialNumber;
|
|
7357
|
+
isResubmitted?: boolean;
|
|
7358
|
+
note?: string;
|
|
7359
|
+
stage?: number;
|
|
7360
|
+
status?: "pending" | "approved" | "processing" | "rejected" | "processed";
|
|
7361
|
+
time?: number;
|
|
7362
|
+
creator?: AdminCreator | RepCreator;
|
|
7363
|
+
editor?: AdminCreator;
|
|
7364
|
+
from?: StringId;
|
|
7365
|
+
to?: StringId;
|
|
7366
|
+
variants?: {
|
|
7367
|
+
variant: StringId;
|
|
7368
|
+
qty: number;
|
|
7369
|
+
variant_name?: string;
|
|
7370
|
+
product_id?: StringId;
|
|
7371
|
+
product_name?: string;
|
|
7372
|
+
_id: StringId;
|
|
7373
|
+
}[];
|
|
7374
|
+
teams?: StringId[];
|
|
7375
|
+
sync_id?: string;
|
|
7376
|
+
reason?: StringId;
|
|
7377
|
+
transaction_processed?: boolean;
|
|
7378
|
+
custom_status?: StringId;
|
|
7379
|
+
company_namespace?: string[];
|
|
7380
|
+
createdAt?: string;
|
|
7381
|
+
updatedAt?: string;
|
|
7382
|
+
__v?: number;
|
|
7383
|
+
}
|
|
7298
7384
|
|
|
7299
|
-
type
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
reason
|
|
7304
|
-
|
|
7305
|
-
| InventoryAdjustmentReason.InventoryAdjustmentReasonSchema;
|
|
7306
|
-
variants: (VariantOfAdjustInventory & {
|
|
7307
|
-
variant:
|
|
7308
|
-
| string
|
|
7309
|
-
| {
|
|
7310
|
-
_id: string;
|
|
7311
|
-
name: string;
|
|
7312
|
-
product: {
|
|
7313
|
-
_id: string;
|
|
7314
|
-
name: string;
|
|
7315
|
-
};
|
|
7316
|
-
};
|
|
7317
|
-
})[];
|
|
7318
|
-
};
|
|
7319
|
-
type GetResult = Schema & {
|
|
7320
|
-
from: string | Warehouse.WarehouseSchema;
|
|
7321
|
-
to: string | Warehouse.WarehouseSchema;
|
|
7322
|
-
variants: (VariantOfAdjustInventory & {
|
|
7323
|
-
variant: {
|
|
7324
|
-
_id: string;
|
|
7325
|
-
name: string;
|
|
7326
|
-
product: {
|
|
7327
|
-
_id: string;
|
|
7328
|
-
name: string;
|
|
7329
|
-
};
|
|
7330
|
-
};
|
|
7331
|
-
})[];
|
|
7332
|
-
};
|
|
7333
|
-
|
|
7334
|
-
type PopulatedKeys = "warehouse" | "variant" | "teams" | "reason";
|
|
7385
|
+
type PopulatedKeys =
|
|
7386
|
+
| "warehouse"
|
|
7387
|
+
| "teams"
|
|
7388
|
+
| "custom_status"
|
|
7389
|
+
| "reason"
|
|
7390
|
+
| "variant";
|
|
7335
7391
|
export namespace Find {
|
|
7336
7392
|
export type Params = DefaultPaginationQueryParams & {
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7393
|
+
nodeCycles?: StringId[] | StringId;
|
|
7394
|
+
_id?: StringId[] | StringId;
|
|
7395
|
+
status?: AdjustInventory.Schema["status"][];
|
|
7396
|
+
search?: string; // serial_number.formatted
|
|
7397
|
+
serial_number?: string[] | string;
|
|
7398
|
+
"serial_number.formatted"?: string[] | string;
|
|
7399
|
+
sync_id?: string[] | string;
|
|
7400
|
+
to?: StringId[] | StringId;
|
|
7401
|
+
creator?: StringId | StringId[];
|
|
7402
|
+
"creator._id"?: StringId[] | StringId;
|
|
7403
|
+
creator_type?: string | string[];
|
|
7404
|
+
"creator.type"?: string | string[];
|
|
7405
|
+
editor?: StringId | StringId[];
|
|
7406
|
+
"editor._id"?: StringId[] | StringId;
|
|
7407
|
+
editor_type?: string | string[];
|
|
7408
|
+
"editor.type"?: string | string[];
|
|
7409
|
+
teams?: StringId[] | StringId;
|
|
7410
|
+
reason?: StringId[] | StringId;
|
|
7411
|
+
custom_status?: StringId[] | StringId;
|
|
7343
7412
|
from_createdAt?: number;
|
|
7344
7413
|
to_createdAt?: number;
|
|
7345
7414
|
from_updatedAt?: number;
|
|
7346
|
-
|
|
7347
|
-
|
|
7415
|
+
to_updatedAt?: number;
|
|
7416
|
+
populatesKeys?: PopulatedKeys[];
|
|
7348
7417
|
};
|
|
7349
7418
|
export interface Result extends DefaultPaginationResult {
|
|
7350
|
-
data:
|
|
7419
|
+
data: Data[] | PopulatedData[];
|
|
7351
7420
|
}
|
|
7352
7421
|
}
|
|
7353
|
-
|
|
7354
7422
|
export namespace Get {
|
|
7355
7423
|
export type ID = string;
|
|
7356
7424
|
export interface Params {
|
|
7357
7425
|
populatedKeys?: PopulatedKeys[];
|
|
7426
|
+
withCycle?: boolean;
|
|
7358
7427
|
}
|
|
7359
|
-
export type Result =
|
|
7360
|
-
| GetResult
|
|
7361
|
-
| {
|
|
7362
|
-
transfer: GetResult & {
|
|
7363
|
-
can_edit: boolean;
|
|
7364
|
-
current_nodes: string[];
|
|
7365
|
-
};
|
|
7366
|
-
cycle: Cycle.Schema;
|
|
7367
|
-
};
|
|
7428
|
+
export type Result = Data | PopulatedData;
|
|
7368
7429
|
}
|
|
7369
|
-
|
|
7370
7430
|
export namespace Create {
|
|
7371
7431
|
export type Body = CreateBody;
|
|
7372
7432
|
export type Result = Schema;
|
|
7373
7433
|
}
|
|
7434
|
+
export namespace Update {
|
|
7435
|
+
export type ID = string;
|
|
7436
|
+
export type Body = UpdateBody;
|
|
7437
|
+
export type Result = Data;
|
|
7438
|
+
}
|
|
7374
7439
|
}
|
|
7375
7440
|
|
|
7376
7441
|
export namespace InventoryAdjustmentReason {
|
|
@@ -7414,20 +7479,20 @@ export namespace Service {
|
|
|
7414
7479
|
export namespace Get {
|
|
7415
7480
|
export type ID = string;
|
|
7416
7481
|
export interface Params {}
|
|
7417
|
-
export type Result =
|
|
7482
|
+
export type Result = Data;
|
|
7418
7483
|
}
|
|
7419
7484
|
export namespace Create {
|
|
7420
7485
|
export type Body = CreateBody;
|
|
7421
|
-
export type Result =
|
|
7486
|
+
export type Result = Data;
|
|
7422
7487
|
}
|
|
7423
7488
|
export namespace Update {
|
|
7424
7489
|
export type ID = string;
|
|
7425
7490
|
export type Body = UpdateBody;
|
|
7426
|
-
export type Result =
|
|
7491
|
+
export type Result = Data;
|
|
7427
7492
|
}
|
|
7428
7493
|
export namespace Remove {
|
|
7429
7494
|
export type ID = string;
|
|
7430
|
-
export type Result =
|
|
7495
|
+
export type Result = Data;
|
|
7431
7496
|
}
|
|
7432
7497
|
}
|
|
7433
7498
|
export namespace Inventory {
|
|
@@ -8183,6 +8248,18 @@ export namespace Service {
|
|
|
8183
8248
|
media?: StringId[];
|
|
8184
8249
|
teams?: StringId[];
|
|
8185
8250
|
integration_meta?: { [key: string]: any };
|
|
8251
|
+
quotation_is_recommended: boolean;
|
|
8252
|
+
quotation_internal_approval_status:
|
|
8253
|
+
| "pending"
|
|
8254
|
+
| "approved"
|
|
8255
|
+
| "completed"
|
|
8256
|
+
| "rejected";
|
|
8257
|
+
quotation_detail?: string;
|
|
8258
|
+
quotation_client_approval_status:
|
|
8259
|
+
| "pending"
|
|
8260
|
+
| "approved"
|
|
8261
|
+
| "collected"
|
|
8262
|
+
| "rejected";
|
|
8186
8263
|
company_namespace: string[];
|
|
8187
8264
|
createdAt: Date;
|
|
8188
8265
|
updatedAt: Date;
|
|
@@ -8224,6 +8301,18 @@ export namespace Service {
|
|
|
8224
8301
|
media?: StringId[] | PopulatedMediaStorage[];
|
|
8225
8302
|
teams?: StringId[] | Pick<Team.TeamSchema, "_id" | "name">[];
|
|
8226
8303
|
integration_meta?: { [key: string]: any };
|
|
8304
|
+
quotation_is_recommended: boolean;
|
|
8305
|
+
quotation_internal_approval_status:
|
|
8306
|
+
| "pending"
|
|
8307
|
+
| "approved"
|
|
8308
|
+
| "completed"
|
|
8309
|
+
| "rejected";
|
|
8310
|
+
quotation_detail?: string;
|
|
8311
|
+
quotation_client_approval_status:
|
|
8312
|
+
| "pending"
|
|
8313
|
+
| "approved"
|
|
8314
|
+
| "collected"
|
|
8315
|
+
| "rejected";
|
|
8227
8316
|
company_namespace: string[];
|
|
8228
8317
|
createdAt: Date;
|
|
8229
8318
|
updatedAt: Date;
|
|
@@ -8254,6 +8343,18 @@ export namespace Service {
|
|
|
8254
8343
|
media?: StringId[];
|
|
8255
8344
|
teams?: StringId[];
|
|
8256
8345
|
integration_meta?: { [key: string]: any };
|
|
8346
|
+
quotation_is_recommended?: boolean;
|
|
8347
|
+
quotation_internal_approval_status?:
|
|
8348
|
+
| "pending"
|
|
8349
|
+
| "approved"
|
|
8350
|
+
| "completed"
|
|
8351
|
+
| "rejected";
|
|
8352
|
+
quotation_detail?: string;
|
|
8353
|
+
quotation_client_approval_status?:
|
|
8354
|
+
| "pending"
|
|
8355
|
+
| "approved"
|
|
8356
|
+
| "collected"
|
|
8357
|
+
| "rejected";
|
|
8257
8358
|
company_namespace?: string[];
|
|
8258
8359
|
}
|
|
8259
8360
|
export interface UpdateBody {
|
|
@@ -8261,6 +8362,18 @@ export namespace Service {
|
|
|
8261
8362
|
comment?: string;
|
|
8262
8363
|
media?: StringId[];
|
|
8263
8364
|
editor?: AdminOrRep;
|
|
8365
|
+
quotation_is_recommended?: boolean;
|
|
8366
|
+
quotation_internal_approval_status?:
|
|
8367
|
+
| "pending"
|
|
8368
|
+
| "approved"
|
|
8369
|
+
| "completed"
|
|
8370
|
+
| "rejected";
|
|
8371
|
+
quotation_detail?: string;
|
|
8372
|
+
quotation_client_approval_status?:
|
|
8373
|
+
| "pending"
|
|
8374
|
+
| "approved"
|
|
8375
|
+
| "collected"
|
|
8376
|
+
| "rejected";
|
|
8264
8377
|
}
|
|
8265
8378
|
|
|
8266
8379
|
export namespace Find {
|
|
@@ -8296,6 +8409,15 @@ export namespace Service {
|
|
|
8296
8409
|
field: "_id" | "asset_part_index" | "createdAt" | "updatedAt";
|
|
8297
8410
|
type: "asc" | "desc";
|
|
8298
8411
|
}[];
|
|
8412
|
+
quotation_is_recommended?: boolean;
|
|
8413
|
+
quotation_internal_approval_status?: Data["quotation_client_approval_status"][];
|
|
8414
|
+
quotation_client_approval_status?: Data["quotation_client_approval_status"][];
|
|
8415
|
+
rep?: StringId | StringId[];
|
|
8416
|
+
admin?: StringId | StringId[];
|
|
8417
|
+
creator?: StringId | StringId[];
|
|
8418
|
+
"creator._id"?: StringId[] | StringId;
|
|
8419
|
+
creator_type?: string | string[];
|
|
8420
|
+
"creator.type"?: string | string[];
|
|
8299
8421
|
[key: string]: any; // integration_meta.
|
|
8300
8422
|
};
|
|
8301
8423
|
export interface Result extends DefaultPaginationResult {
|
|
@@ -8434,9 +8556,12 @@ export namespace Service {
|
|
|
8434
8556
|
sync_id?: string[] | string;
|
|
8435
8557
|
client?: string[] | string;
|
|
8436
8558
|
warehouse?: string[] | string;
|
|
8437
|
-
|
|
8438
|
-
|
|
8559
|
+
rep?: StringId | StringId[];
|
|
8560
|
+
admin?: StringId | StringId[];
|
|
8561
|
+
creator?: StringId | StringId[];
|
|
8562
|
+
"creator._id"?: StringId[] | StringId;
|
|
8439
8563
|
creator_type?: string | string[];
|
|
8564
|
+
"creator.type"?: string | string[];
|
|
8440
8565
|
teams?: string[] | string;
|
|
8441
8566
|
visit_id?: string[] | string;
|
|
8442
8567
|
custom_status?: string[] | string;
|
|
@@ -8528,6 +8653,7 @@ export namespace Service {
|
|
|
8528
8653
|
process_time?: number;
|
|
8529
8654
|
visit_id?: string;
|
|
8530
8655
|
integration_meta?: { [key: string]: any };
|
|
8656
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8531
8657
|
company_namespace: string[];
|
|
8532
8658
|
createdAt: Date;
|
|
8533
8659
|
updatedAt: Date;
|
|
@@ -8557,7 +8683,14 @@ export namespace Service {
|
|
|
8557
8683
|
| "failed";
|
|
8558
8684
|
sync_id: string;
|
|
8559
8685
|
asset_part_units: {
|
|
8560
|
-
asset_part_unit:
|
|
8686
|
+
asset_part_unit:
|
|
8687
|
+
| StringId
|
|
8688
|
+
| (AssetPartUnit.Data & {
|
|
8689
|
+
custom_status?: Pick<
|
|
8690
|
+
CustomStatus.CustomStatusSchema,
|
|
8691
|
+
"_id" | "name" | "local_name" | "code" | "color"
|
|
8692
|
+
>;
|
|
8693
|
+
});
|
|
8561
8694
|
qty: number;
|
|
8562
8695
|
asset_part?: StringId | AssetPart.Data;
|
|
8563
8696
|
asset_part_name?: string;
|
|
@@ -8578,6 +8711,7 @@ export namespace Service {
|
|
|
8578
8711
|
process_time?: number;
|
|
8579
8712
|
visit_id?: string;
|
|
8580
8713
|
integration_meta?: { [key: string]: any };
|
|
8714
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8581
8715
|
company_namespace: string[];
|
|
8582
8716
|
createdAt: Date;
|
|
8583
8717
|
updatedAt: Date;
|
|
@@ -8609,6 +8743,7 @@ export namespace Service {
|
|
|
8609
8743
|
description?: string;
|
|
8610
8744
|
visit_id?: string;
|
|
8611
8745
|
integration_meta?: { [key: string]: any };
|
|
8746
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8612
8747
|
company_namespace: string[];
|
|
8613
8748
|
}
|
|
8614
8749
|
export interface UpdateBody {
|
|
@@ -8653,6 +8788,7 @@ export namespace Service {
|
|
|
8653
8788
|
isResubmitted?: boolean;
|
|
8654
8789
|
note?: string;
|
|
8655
8790
|
stage?: number;
|
|
8791
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8656
8792
|
}
|
|
8657
8793
|
|
|
8658
8794
|
export namespace Find {
|
|
@@ -8666,6 +8802,9 @@ export namespace Service {
|
|
|
8666
8802
|
creator?: StringId[] | StringId;
|
|
8667
8803
|
creator_type?: Data["creator"]["type"] | Data["creator"]["type"][];
|
|
8668
8804
|
"creator._id"?: StringId[] | StringId;
|
|
8805
|
+
rep?: StringId | StringId[];
|
|
8806
|
+
admin?: StringId | StringId[];
|
|
8807
|
+
"creator.type"?: string | string[];
|
|
8669
8808
|
type?: Data["type"][] | Data["type"];
|
|
8670
8809
|
from?: StringId[] | StringId;
|
|
8671
8810
|
to?: StringId[] | StringId;
|
|
@@ -8852,6 +8991,8 @@ export namespace Service {
|
|
|
8852
8991
|
"creator.type"?: string[] | string;
|
|
8853
8992
|
creator?: StringId[] | StringId;
|
|
8854
8993
|
creator_type?: string[] | string;
|
|
8994
|
+
rep?: StringId | StringId[];
|
|
8995
|
+
admin?: StringId | StringId[];
|
|
8855
8996
|
teams?: StringId[] | StringId;
|
|
8856
8997
|
visit_id?: string[] | string;
|
|
8857
8998
|
custom_status?: StringId[] | StringId;
|
|
@@ -9024,10 +9165,12 @@ export namespace Service {
|
|
|
9024
9165
|
"serial_number.formatted"?: string[] | string;
|
|
9025
9166
|
sync_id?: string[] | string;
|
|
9026
9167
|
warehouse?: StringId[] | StringId;
|
|
9027
|
-
creator?: StringId[] | StringId;
|
|
9028
9168
|
creator_type?: string[] | string;
|
|
9029
|
-
"creator._id"?: StringId[] | StringId;
|
|
9030
9169
|
"creator.type"?: string[] | string;
|
|
9170
|
+
rep?: StringId | StringId[];
|
|
9171
|
+
admin?: StringId | StringId[];
|
|
9172
|
+
creator?: StringId | StringId[];
|
|
9173
|
+
"creator._id"?: StringId[] | StringId;
|
|
9031
9174
|
teams?: StringId[] | StringId;
|
|
9032
9175
|
visit_id?: string[] | string;
|
|
9033
9176
|
custom_status?: StringId[] | StringId;
|
|
@@ -9557,6 +9700,7 @@ export namespace Service {
|
|
|
9557
9700
|
enable_ai_vision_prompt_overwrite?: boolean;
|
|
9558
9701
|
always_merge_pages_for_job?: boolean;
|
|
9559
9702
|
trim_barcode_zero_from_left?: boolean;
|
|
9703
|
+
bypass_human_review?: boolean;
|
|
9560
9704
|
createdAt: Date;
|
|
9561
9705
|
updatedAt: Date;
|
|
9562
9706
|
}
|