repzo 1.0.148 → 1.0.150
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 +11 -5
- package/package.json +1 -1
- package/src/types/index.ts +30 -5
package/lib/types/index.d.ts
CHANGED
|
@@ -2411,6 +2411,8 @@ export declare namespace Service {
|
|
|
2411
2411
|
rep_to_create_invoice_variant_batch_from_assigned_warehouse?: boolean;
|
|
2412
2412
|
rep_to_create_sales_order_variant_batch_assigned_main_warehouse?: boolean;
|
|
2413
2413
|
rep_can_create_pull_from_client_assigned_to_approval_request?: boolean;
|
|
2414
|
+
rep_must_end_day_after_specific_time?: boolean;
|
|
2415
|
+
rep_can_create_negative_invoice?: boolean;
|
|
2414
2416
|
}
|
|
2415
2417
|
interface TargetResults {
|
|
2416
2418
|
totalPoints: number;
|
|
@@ -2432,6 +2434,7 @@ export declare namespace Service {
|
|
|
2432
2434
|
watermark_time?: boolean;
|
|
2433
2435
|
watermark_date?: boolean;
|
|
2434
2436
|
watermark_coordinates?: boolean;
|
|
2437
|
+
rep_must_end_day_after: `${number}:${number}`;
|
|
2435
2438
|
}
|
|
2436
2439
|
type JobOption = 0 | 1 | 2;
|
|
2437
2440
|
export interface RepSchema {
|
|
@@ -2634,6 +2637,9 @@ export declare namespace Service {
|
|
|
2634
2637
|
"permissions.rep_to_create_invoice_variant_batch_from_assigned_warehouse"?: boolean;
|
|
2635
2638
|
"permissions.rep_to_create_sales_order_variant_batch_assigned_main_warehouse"?: boolean;
|
|
2636
2639
|
"permissions.rep_can_create_pull_from_client_assigned_to_approval_request"?: boolean;
|
|
2640
|
+
"permissions.rep_must_end_day_after_specific_time"?: boolean;
|
|
2641
|
+
"permissions.rep_can_create_negative_invoice"?: boolean;
|
|
2642
|
+
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
2637
2643
|
"settings.allowable_accuracy"?: number;
|
|
2638
2644
|
"settings.is_item_status_per_visit_limited"?: boolean;
|
|
2639
2645
|
"settings.item_status_per_visit_limit"?: number;
|
|
@@ -6108,8 +6114,8 @@ export declare namespace Service {
|
|
|
6108
6114
|
proforma_reference?: string;
|
|
6109
6115
|
converted_at?: number;
|
|
6110
6116
|
exclude_return_items?: boolean;
|
|
6111
|
-
returned_from?: string
|
|
6112
|
-
returned_to?: string;
|
|
6117
|
+
returned_from?: string | Pick<FullInvoice.InvoiceSchema, "_id" | "serial_number" | "advanced_serial_number">;
|
|
6118
|
+
returned_to?: string | FullInvoice.InvoiceSchema;
|
|
6113
6119
|
returned_from_serial_number?: SerialNumber;
|
|
6114
6120
|
returned_to_serial_number?: SerialNumber;
|
|
6115
6121
|
is_void?: boolean;
|
|
@@ -6230,7 +6236,7 @@ export declare namespace Service {
|
|
|
6230
6236
|
name?: string;
|
|
6231
6237
|
ref?: string;
|
|
6232
6238
|
}[];
|
|
6233
|
-
partially_returned_from?: StringId
|
|
6239
|
+
partially_returned_from?: StringId | Pick<FullInvoice.InvoiceSchema, "_id" | "serial_number" | "advanced_serial_number">;
|
|
6234
6240
|
partially_returned_to?: StringId[];
|
|
6235
6241
|
partially_returned_from_serial_number?: SerialNumber;
|
|
6236
6242
|
partially_returned_to_serial_number?: SerialNumber[];
|
|
@@ -6278,7 +6284,7 @@ export declare namespace Service {
|
|
|
6278
6284
|
lines_discount_float?: number;
|
|
6279
6285
|
total_word?: string;
|
|
6280
6286
|
total_local_word?: string;
|
|
6281
|
-
workorder?: StringId
|
|
6287
|
+
workorder?: StringId | Pick<Workorder.WorkorderSchema, "_id" | "serial_number" | "name" | "local_name">;
|
|
6282
6288
|
asset?: StringId;
|
|
6283
6289
|
asset_unit?: StringId;
|
|
6284
6290
|
signature?: PopulatedMediaStorage;
|
|
@@ -6304,7 +6310,7 @@ export declare namespace Service {
|
|
|
6304
6310
|
business_day?: string;
|
|
6305
6311
|
};
|
|
6306
6312
|
type InvoiceStatus = "paid" | "unpaid" | "partially_paid";
|
|
6307
|
-
type PopulatedKeys = "client" | "tax_number" | "custom_status" | "return_reason" | "teams" | "warehouse" | "route";
|
|
6313
|
+
type PopulatedKeys = "client" | "tax_number" | "custom_status" | "return_reason" | "teams" | "warehouse" | "route" | "workorder" | "returned_from" | "partially_returned_from" | "returned_to";
|
|
6308
6314
|
type SortingKeys = "line_total" | "product_name" | "variant_name" | "product_sku" | "product_barcode" | "variant_sku" | "variant_barcode";
|
|
6309
6315
|
export namespace Find {
|
|
6310
6316
|
type Params = DefaultPaginationQueryParams & {
|
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -2786,6 +2786,8 @@ export namespace Service {
|
|
|
2786
2786
|
rep_to_create_invoice_variant_batch_from_assigned_warehouse?: boolean;
|
|
2787
2787
|
rep_to_create_sales_order_variant_batch_assigned_main_warehouse?: boolean;
|
|
2788
2788
|
rep_can_create_pull_from_client_assigned_to_approval_request?: boolean;
|
|
2789
|
+
rep_must_end_day_after_specific_time?: boolean;
|
|
2790
|
+
rep_can_create_negative_invoice?: boolean;
|
|
2789
2791
|
}
|
|
2790
2792
|
interface TargetResults {
|
|
2791
2793
|
totalPoints: number;
|
|
@@ -2807,6 +2809,7 @@ export namespace Service {
|
|
|
2807
2809
|
watermark_time?: boolean;
|
|
2808
2810
|
watermark_date?: boolean;
|
|
2809
2811
|
watermark_coordinates?: boolean;
|
|
2812
|
+
rep_must_end_day_after: `${number}:${number}`;
|
|
2810
2813
|
}
|
|
2811
2814
|
type JobOption = 0 | 1 | 2;
|
|
2812
2815
|
export interface RepSchema {
|
|
@@ -3032,6 +3035,9 @@ export namespace Service {
|
|
|
3032
3035
|
"permissions.rep_to_create_invoice_variant_batch_from_assigned_warehouse"?: boolean;
|
|
3033
3036
|
"permissions.rep_to_create_sales_order_variant_batch_assigned_main_warehouse"?: boolean;
|
|
3034
3037
|
"permissions.rep_can_create_pull_from_client_assigned_to_approval_request"?: boolean;
|
|
3038
|
+
"permissions.rep_must_end_day_after_specific_time"?: boolean;
|
|
3039
|
+
"permissions.rep_can_create_negative_invoice"?: boolean;
|
|
3040
|
+
"settings.rep_must_end_day_after"?: `${number}:${number}`;
|
|
3035
3041
|
"settings.allowable_accuracy"?: number;
|
|
3036
3042
|
"settings.is_item_status_per_visit_limited"?: boolean;
|
|
3037
3043
|
"settings.item_status_per_visit_limit"?: number;
|
|
@@ -6618,8 +6624,13 @@ export namespace Service {
|
|
|
6618
6624
|
proforma_reference?: string;
|
|
6619
6625
|
converted_at?: number;
|
|
6620
6626
|
exclude_return_items?: boolean;
|
|
6621
|
-
returned_from?:
|
|
6622
|
-
|
|
6627
|
+
returned_from?:
|
|
6628
|
+
| string
|
|
6629
|
+
| Pick<
|
|
6630
|
+
FullInvoice.InvoiceSchema,
|
|
6631
|
+
"_id" | "serial_number" | "advanced_serial_number"
|
|
6632
|
+
>;
|
|
6633
|
+
returned_to?: string | FullInvoice.InvoiceSchema;
|
|
6623
6634
|
returned_from_serial_number?: SerialNumber;
|
|
6624
6635
|
returned_to_serial_number?: SerialNumber;
|
|
6625
6636
|
is_void?: boolean;
|
|
@@ -6732,7 +6743,12 @@ export namespace Service {
|
|
|
6732
6743
|
production_reporting_status?: boolean;
|
|
6733
6744
|
skip_promos?: boolean;
|
|
6734
6745
|
skipped_promotions?: { _id: StringId; name?: string; ref?: string }[];
|
|
6735
|
-
partially_returned_from?:
|
|
6746
|
+
partially_returned_from?:
|
|
6747
|
+
| StringId
|
|
6748
|
+
| Pick<
|
|
6749
|
+
FullInvoice.InvoiceSchema,
|
|
6750
|
+
"_id" | "serial_number" | "advanced_serial_number"
|
|
6751
|
+
>;
|
|
6736
6752
|
partially_returned_to?: StringId[];
|
|
6737
6753
|
partially_returned_from_serial_number?: SerialNumber;
|
|
6738
6754
|
partially_returned_to_serial_number?: SerialNumber[];
|
|
@@ -6780,7 +6796,12 @@ export namespace Service {
|
|
|
6780
6796
|
lines_discount_float?: number;
|
|
6781
6797
|
total_word?: string;
|
|
6782
6798
|
total_local_word?: string;
|
|
6783
|
-
workorder?:
|
|
6799
|
+
workorder?:
|
|
6800
|
+
| StringId
|
|
6801
|
+
| Pick<
|
|
6802
|
+
Workorder.WorkorderSchema,
|
|
6803
|
+
"_id" | "serial_number" | "name" | "local_name"
|
|
6804
|
+
>;
|
|
6784
6805
|
asset?: StringId;
|
|
6785
6806
|
asset_unit?: StringId;
|
|
6786
6807
|
signature?: PopulatedMediaStorage;
|
|
@@ -6811,7 +6832,11 @@ export namespace Service {
|
|
|
6811
6832
|
| "return_reason"
|
|
6812
6833
|
| "teams"
|
|
6813
6834
|
| "warehouse"
|
|
6814
|
-
| "route"
|
|
6835
|
+
| "route"
|
|
6836
|
+
| "workorder"
|
|
6837
|
+
| "returned_from"
|
|
6838
|
+
| "partially_returned_from"
|
|
6839
|
+
| "returned_to";
|
|
6815
6840
|
type SortingKeys =
|
|
6816
6841
|
| "line_total"
|
|
6817
6842
|
| "product_name"
|