repzo 1.0.90 → 1.0.91
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 +162 -90
- package/package.json +1 -1
- package/src/types/index.ts +151 -85
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 {
|
|
@@ -9756,6 +9827,7 @@ export declare namespace Service {
|
|
|
9756
9827
|
enable_ai_vision_prompt_overwrite?: boolean;
|
|
9757
9828
|
always_merge_pages_for_job?: boolean;
|
|
9758
9829
|
trim_barcode_zero_from_left?: boolean;
|
|
9830
|
+
bypass_human_review?: boolean;
|
|
9759
9831
|
createdAt: Date;
|
|
9760
9832
|
updatedAt: Date;
|
|
9761
9833
|
}
|
|
@@ -10546,8 +10618,8 @@ export declare namespace Service {
|
|
|
10546
10618
|
}
|
|
10547
10619
|
}
|
|
10548
10620
|
}
|
|
10549
|
-
export type StringId = string;
|
|
10550
|
-
export type NameSpaces = string[];
|
|
10621
|
+
export declare type StringId = string;
|
|
10622
|
+
export declare type NameSpaces = string[];
|
|
10551
10623
|
export interface AdminOrRep {
|
|
10552
10624
|
_id: StringId;
|
|
10553
10625
|
name?: string;
|
|
@@ -10555,7 +10627,7 @@ export interface AdminOrRep {
|
|
|
10555
10627
|
admin?: StringId;
|
|
10556
10628
|
rep?: StringId;
|
|
10557
10629
|
}
|
|
10558
|
-
type PopulatedMediaStorage = Pick<
|
|
10630
|
+
declare type PopulatedMediaStorage = Pick<
|
|
10559
10631
|
Service.MediaStorage.MediaStorageSchema,
|
|
10560
10632
|
| "_id"
|
|
10561
10633
|
| "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 {
|
|
@@ -9557,6 +9622,7 @@ export namespace Service {
|
|
|
9557
9622
|
enable_ai_vision_prompt_overwrite?: boolean;
|
|
9558
9623
|
always_merge_pages_for_job?: boolean;
|
|
9559
9624
|
trim_barcode_zero_from_left?: boolean;
|
|
9625
|
+
bypass_human_review?: boolean;
|
|
9560
9626
|
createdAt: Date;
|
|
9561
9627
|
updatedAt: Date;
|
|
9562
9628
|
}
|