repzo 1.0.91 → 1.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +164 -94
- package/lib/index.js +146 -73
- package/lib/types/index.d.ts +111 -17
- package/package.json +1 -1
- package/src/index.ts +144 -72
- package/src/types/index.ts +83 -5
package/src/types/index.ts
CHANGED
|
@@ -8248,6 +8248,18 @@ export namespace Service {
|
|
|
8248
8248
|
media?: StringId[];
|
|
8249
8249
|
teams?: StringId[];
|
|
8250
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";
|
|
8251
8263
|
company_namespace: string[];
|
|
8252
8264
|
createdAt: Date;
|
|
8253
8265
|
updatedAt: Date;
|
|
@@ -8289,6 +8301,18 @@ export namespace Service {
|
|
|
8289
8301
|
media?: StringId[] | PopulatedMediaStorage[];
|
|
8290
8302
|
teams?: StringId[] | Pick<Team.TeamSchema, "_id" | "name">[];
|
|
8291
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";
|
|
8292
8316
|
company_namespace: string[];
|
|
8293
8317
|
createdAt: Date;
|
|
8294
8318
|
updatedAt: Date;
|
|
@@ -8319,6 +8343,18 @@ export namespace Service {
|
|
|
8319
8343
|
media?: StringId[];
|
|
8320
8344
|
teams?: StringId[];
|
|
8321
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";
|
|
8322
8358
|
company_namespace?: string[];
|
|
8323
8359
|
}
|
|
8324
8360
|
export interface UpdateBody {
|
|
@@ -8326,6 +8362,18 @@ export namespace Service {
|
|
|
8326
8362
|
comment?: string;
|
|
8327
8363
|
media?: StringId[];
|
|
8328
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";
|
|
8329
8377
|
}
|
|
8330
8378
|
|
|
8331
8379
|
export namespace Find {
|
|
@@ -8361,6 +8409,15 @@ export namespace Service {
|
|
|
8361
8409
|
field: "_id" | "asset_part_index" | "createdAt" | "updatedAt";
|
|
8362
8410
|
type: "asc" | "desc";
|
|
8363
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[];
|
|
8364
8421
|
[key: string]: any; // integration_meta.
|
|
8365
8422
|
};
|
|
8366
8423
|
export interface Result extends DefaultPaginationResult {
|
|
@@ -8499,9 +8556,12 @@ export namespace Service {
|
|
|
8499
8556
|
sync_id?: string[] | string;
|
|
8500
8557
|
client?: string[] | string;
|
|
8501
8558
|
warehouse?: string[] | string;
|
|
8502
|
-
|
|
8503
|
-
|
|
8559
|
+
rep?: StringId | StringId[];
|
|
8560
|
+
admin?: StringId | StringId[];
|
|
8561
|
+
creator?: StringId | StringId[];
|
|
8562
|
+
"creator._id"?: StringId[] | StringId;
|
|
8504
8563
|
creator_type?: string | string[];
|
|
8564
|
+
"creator.type"?: string | string[];
|
|
8505
8565
|
teams?: string[] | string;
|
|
8506
8566
|
visit_id?: string[] | string;
|
|
8507
8567
|
custom_status?: string[] | string;
|
|
@@ -8593,6 +8653,7 @@ export namespace Service {
|
|
|
8593
8653
|
process_time?: number;
|
|
8594
8654
|
visit_id?: string;
|
|
8595
8655
|
integration_meta?: { [key: string]: any };
|
|
8656
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8596
8657
|
company_namespace: string[];
|
|
8597
8658
|
createdAt: Date;
|
|
8598
8659
|
updatedAt: Date;
|
|
@@ -8622,7 +8683,14 @@ export namespace Service {
|
|
|
8622
8683
|
| "failed";
|
|
8623
8684
|
sync_id: string;
|
|
8624
8685
|
asset_part_units: {
|
|
8625
|
-
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
|
+
});
|
|
8626
8694
|
qty: number;
|
|
8627
8695
|
asset_part?: StringId | AssetPart.Data;
|
|
8628
8696
|
asset_part_name?: string;
|
|
@@ -8643,6 +8711,7 @@ export namespace Service {
|
|
|
8643
8711
|
process_time?: number;
|
|
8644
8712
|
visit_id?: string;
|
|
8645
8713
|
integration_meta?: { [key: string]: any };
|
|
8714
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8646
8715
|
company_namespace: string[];
|
|
8647
8716
|
createdAt: Date;
|
|
8648
8717
|
updatedAt: Date;
|
|
@@ -8674,6 +8743,7 @@ export namespace Service {
|
|
|
8674
8743
|
description?: string;
|
|
8675
8744
|
visit_id?: string;
|
|
8676
8745
|
integration_meta?: { [key: string]: any };
|
|
8746
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8677
8747
|
company_namespace: string[];
|
|
8678
8748
|
}
|
|
8679
8749
|
export interface UpdateBody {
|
|
@@ -8718,6 +8788,7 @@ export namespace Service {
|
|
|
8718
8788
|
isResubmitted?: boolean;
|
|
8719
8789
|
note?: string;
|
|
8720
8790
|
stage?: number;
|
|
8791
|
+
failed_reasons?: { code: string; message: string; [key: string]: any }[];
|
|
8721
8792
|
}
|
|
8722
8793
|
|
|
8723
8794
|
export namespace Find {
|
|
@@ -8731,6 +8802,9 @@ export namespace Service {
|
|
|
8731
8802
|
creator?: StringId[] | StringId;
|
|
8732
8803
|
creator_type?: Data["creator"]["type"] | Data["creator"]["type"][];
|
|
8733
8804
|
"creator._id"?: StringId[] | StringId;
|
|
8805
|
+
rep?: StringId | StringId[];
|
|
8806
|
+
admin?: StringId | StringId[];
|
|
8807
|
+
"creator.type"?: string | string[];
|
|
8734
8808
|
type?: Data["type"][] | Data["type"];
|
|
8735
8809
|
from?: StringId[] | StringId;
|
|
8736
8810
|
to?: StringId[] | StringId;
|
|
@@ -8917,6 +8991,8 @@ export namespace Service {
|
|
|
8917
8991
|
"creator.type"?: string[] | string;
|
|
8918
8992
|
creator?: StringId[] | StringId;
|
|
8919
8993
|
creator_type?: string[] | string;
|
|
8994
|
+
rep?: StringId | StringId[];
|
|
8995
|
+
admin?: StringId | StringId[];
|
|
8920
8996
|
teams?: StringId[] | StringId;
|
|
8921
8997
|
visit_id?: string[] | string;
|
|
8922
8998
|
custom_status?: StringId[] | StringId;
|
|
@@ -9089,10 +9165,12 @@ export namespace Service {
|
|
|
9089
9165
|
"serial_number.formatted"?: string[] | string;
|
|
9090
9166
|
sync_id?: string[] | string;
|
|
9091
9167
|
warehouse?: StringId[] | StringId;
|
|
9092
|
-
creator?: StringId[] | StringId;
|
|
9093
9168
|
creator_type?: string[] | string;
|
|
9094
|
-
"creator._id"?: StringId[] | StringId;
|
|
9095
9169
|
"creator.type"?: string[] | string;
|
|
9170
|
+
rep?: StringId | StringId[];
|
|
9171
|
+
admin?: StringId | StringId[];
|
|
9172
|
+
creator?: StringId | StringId[];
|
|
9173
|
+
"creator._id"?: StringId[] | StringId;
|
|
9096
9174
|
teams?: StringId[] | StringId;
|
|
9097
9175
|
visit_id?: string[] | string;
|
|
9098
9176
|
custom_status?: StringId[] | StringId;
|