erpnext-queue-client 1.4.0 → 1.4.2
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/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +6 -2
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +4 -4
- package/dist/erpnext/doctypes/item.d.ts +19 -1
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +6 -2
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +6 -2
- package/dist/erpnext/doctypes/shipment.d.ts +6 -2
- package/dist/erpnext/model/Item.d.ts +24 -0
- package/dist/erpnext/model/Item.js +3 -0
- package/dist/erpnext/model/StockEntry.d.ts +2 -2
- package/package.json +1 -1
|
@@ -3,6 +3,10 @@ import { ERPNextDoctypeResourceRequest } from "./doctypeResourceRequest";
|
|
|
3
3
|
import { TemporalClient } from "../client";
|
|
4
4
|
export declare class ERPNextDoctypeSubmittableResourceRequest<TModel extends ZodObject<any>> extends ERPNextDoctypeResourceRequest<TModel> {
|
|
5
5
|
constructor(temporalClient: TemporalClient, resourceName: string, resourceModel: TModel);
|
|
6
|
-
cancel(resourceId
|
|
7
|
-
|
|
6
|
+
cancel({ resourceId }: {
|
|
7
|
+
resourceId: string;
|
|
8
|
+
}): Promise<import("zod").TypeOf<TModel>>;
|
|
9
|
+
submit({ resourceId }: {
|
|
10
|
+
resourceId: string;
|
|
11
|
+
}): Promise<import("zod").TypeOf<TModel>>;
|
|
8
12
|
}
|
|
@@ -15,8 +15,8 @@ class ERPNextDoctypeSubmittableResourceRequest extends doctypeResourceRequest_1.
|
|
|
15
15
|
constructor(temporalClient, resourceName, resourceModel) {
|
|
16
16
|
super(temporalClient, resourceName, resourceModel);
|
|
17
17
|
}
|
|
18
|
-
cancel(
|
|
19
|
-
return __awaiter(this,
|
|
18
|
+
cancel(_a) {
|
|
19
|
+
return __awaiter(this, arguments, void 0, function* ({ resourceId }) {
|
|
20
20
|
return this.updateById({
|
|
21
21
|
resourceId,
|
|
22
22
|
body: {
|
|
@@ -25,8 +25,8 @@ class ERPNextDoctypeSubmittableResourceRequest extends doctypeResourceRequest_1.
|
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
submit(
|
|
29
|
-
return __awaiter(this,
|
|
28
|
+
submit(_a) {
|
|
29
|
+
return __awaiter(this, arguments, void 0, function* ({ resourceId }) {
|
|
30
30
|
return this.updateById({
|
|
31
31
|
resourceId,
|
|
32
32
|
body: {
|
|
@@ -8,7 +8,7 @@ export declare class ERPNextItem {
|
|
|
8
8
|
protected temporalClient: TemporalClient;
|
|
9
9
|
protected baseRequest: ERPNextDoctypeResourceRequest<typeof Item>;
|
|
10
10
|
protected methodRequest: ERPNextMethodRequest;
|
|
11
|
-
getList: <TField extends ("description" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "disabled" | "naming_series" | "item_code" | "item_name" | "item_group" | "stock_uom" | "grant_commission" | "weight_per_unit" | "weight_uom" | "taxes" | "override_base_name" | "sync_from_warehouse" | "allow_alternative_item" | "is_stock_item" | "include_item_in_manufacturing" | "opening_stock" | "valuation_rate" | "standard_rate" | "is_fixed_asset" | "auto_create_assets" | "over_delivery_receipt_allowance" | "over_billing_allowance" | "custom_is_shipping_enabled" | "shipping_dimensions_unit" | "packaging_weight_unit_cardboard" | "packaging_weight_unit_plastic" | "shelf_life_in_days" | "end_of_life" | "default_material_request_type" | "valuation_method" | "product_weight" | "product_weight_unit" | "has_batch_no" | "create_new_batch" | "has_expiry_date" | "retain_sample" | "sample_quantity" | "has_serial_no" | "has_variants" | "variant_based_on" | "is_purchase_item" | "min_order_qty" | "safety_stock" | "lead_time_days" | "last_purchase_rate" | "is_customer_provided_item" | "delivered_by_supplier" | "sales_uom" | "is_sales_item" | "max_discount" | "enable_deferred_revenue" | "no_of_months" | "enable_deferred_expense" | "no_of_months_exp" | "inspection_required_before_purchase" | "inspection_required_before_delivery" | "is_sub_contracted_item" | "customer_code" | "published_in_website" | "total_projected_qty" | "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items") | ("warehouse_category" | "ean" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
11
|
+
getList: <TField extends ("description" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "disabled" | "naming_series" | "item_code" | "item_name" | "item_group" | "stock_uom" | "grant_commission" | "weight_per_unit" | "weight_uom" | "taxes" | "override_base_name" | "sync_from_warehouse" | "allow_alternative_item" | "is_stock_item" | "include_item_in_manufacturing" | "opening_stock" | "valuation_rate" | "standard_rate" | "is_fixed_asset" | "auto_create_assets" | "over_delivery_receipt_allowance" | "over_billing_allowance" | "custom_is_shipping_enabled" | "shipping_dimensions_unit" | "packaging_weight_unit_cardboard" | "packaging_weight_unit_plastic" | "shelf_life_in_days" | "end_of_life" | "default_material_request_type" | "valuation_method" | "product_weight" | "product_weight_unit" | "has_batch_no" | "create_new_batch" | "has_expiry_date" | "retain_sample" | "sample_quantity" | "has_serial_no" | "has_variants" | "variant_based_on" | "is_purchase_item" | "min_order_qty" | "safety_stock" | "lead_time_days" | "last_purchase_rate" | "is_customer_provided_item" | "delivered_by_supplier" | "sales_uom" | "is_sales_item" | "max_discount" | "enable_deferred_revenue" | "no_of_months" | "enable_deferred_expense" | "no_of_months_exp" | "inspection_required_before_purchase" | "inspection_required_before_delivery" | "is_sub_contracted_item" | "customer_code" | "published_in_website" | "total_projected_qty" | "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items") | ("image" | "warehouse_category" | "ean" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "packaging_weight_cardboard" | "packaging_weight_plastic" | "custom_product_version" | "custom_supplier"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
12
12
|
fields?: TField[] | undefined;
|
|
13
13
|
filters?: string[][];
|
|
14
14
|
skip?: number;
|
|
@@ -135,6 +135,7 @@ export declare class ERPNextItem {
|
|
|
135
135
|
}[];
|
|
136
136
|
supplier_items: any[];
|
|
137
137
|
customer_items: any[];
|
|
138
|
+
image?: string | null | undefined;
|
|
138
139
|
warehouse_category?: string | null | undefined;
|
|
139
140
|
ean?: string | null | undefined;
|
|
140
141
|
shipping_template?: string | null | undefined;
|
|
@@ -143,6 +144,8 @@ export declare class ERPNextItem {
|
|
|
143
144
|
shipping_height?: number | null | undefined;
|
|
144
145
|
packaging_weight_cardboard?: number | null | undefined;
|
|
145
146
|
packaging_weight_plastic?: number | null | undefined;
|
|
147
|
+
custom_product_version?: string | null | undefined;
|
|
148
|
+
custom_supplier?: string | null | undefined;
|
|
146
149
|
}, TField>[]>;
|
|
147
150
|
getById: ({ resourceId, priority, }: {
|
|
148
151
|
resourceId: string;
|
|
@@ -266,6 +269,7 @@ export declare class ERPNextItem {
|
|
|
266
269
|
}[];
|
|
267
270
|
supplier_items: any[];
|
|
268
271
|
customer_items: any[];
|
|
272
|
+
image?: string | null | undefined;
|
|
269
273
|
warehouse_category?: string | null | undefined;
|
|
270
274
|
ean?: string | null | undefined;
|
|
271
275
|
shipping_template?: string | null | undefined;
|
|
@@ -274,6 +278,8 @@ export declare class ERPNextItem {
|
|
|
274
278
|
shipping_height?: number | null | undefined;
|
|
275
279
|
packaging_weight_cardboard?: number | null | undefined;
|
|
276
280
|
packaging_weight_plastic?: number | null | undefined;
|
|
281
|
+
custom_product_version?: string | null | undefined;
|
|
282
|
+
custom_supplier?: string | null | undefined;
|
|
277
283
|
}>;
|
|
278
284
|
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
279
285
|
description: string;
|
|
@@ -394,6 +400,7 @@ export declare class ERPNextItem {
|
|
|
394
400
|
}[];
|
|
395
401
|
supplier_items: any[];
|
|
396
402
|
customer_items: any[];
|
|
403
|
+
image?: string | null | undefined;
|
|
397
404
|
warehouse_category?: string | null | undefined;
|
|
398
405
|
ean?: string | null | undefined;
|
|
399
406
|
shipping_template?: string | null | undefined;
|
|
@@ -402,6 +409,8 @@ export declare class ERPNextItem {
|
|
|
402
409
|
shipping_height?: number | null | undefined;
|
|
403
410
|
packaging_weight_cardboard?: number | null | undefined;
|
|
404
411
|
packaging_weight_plastic?: number | null | undefined;
|
|
412
|
+
custom_product_version?: string | null | undefined;
|
|
413
|
+
custom_supplier?: string | null | undefined;
|
|
405
414
|
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
|
|
406
415
|
resourceId: string;
|
|
407
416
|
inputValidationModel?: TInputModel;
|
|
@@ -526,6 +535,7 @@ export declare class ERPNextItem {
|
|
|
526
535
|
}[];
|
|
527
536
|
supplier_items: any[];
|
|
528
537
|
customer_items: any[];
|
|
538
|
+
image?: string | null | undefined;
|
|
529
539
|
warehouse_category?: string | null | undefined;
|
|
530
540
|
ean?: string | null | undefined;
|
|
531
541
|
shipping_template?: string | null | undefined;
|
|
@@ -534,6 +544,8 @@ export declare class ERPNextItem {
|
|
|
534
544
|
shipping_height?: number | null | undefined;
|
|
535
545
|
packaging_weight_cardboard?: number | null | undefined;
|
|
536
546
|
packaging_weight_plastic?: number | null | undefined;
|
|
547
|
+
custom_product_version?: string | null | undefined;
|
|
548
|
+
custom_supplier?: string | null | undefined;
|
|
537
549
|
}>;
|
|
538
550
|
deleteById: ({ resourceId, priority, }: {
|
|
539
551
|
resourceId: string;
|
|
@@ -658,6 +670,7 @@ export declare class ERPNextItem {
|
|
|
658
670
|
}[];
|
|
659
671
|
supplier_items: any[];
|
|
660
672
|
customer_items: any[];
|
|
673
|
+
image?: string | null | undefined;
|
|
661
674
|
warehouse_category?: string | null | undefined;
|
|
662
675
|
ean?: string | null | undefined;
|
|
663
676
|
shipping_template?: string | null | undefined;
|
|
@@ -666,6 +679,8 @@ export declare class ERPNextItem {
|
|
|
666
679
|
shipping_height?: number | null | undefined;
|
|
667
680
|
packaging_weight_cardboard?: number | null | undefined;
|
|
668
681
|
packaging_weight_plastic?: number | null | undefined;
|
|
682
|
+
custom_product_version?: string | null | undefined;
|
|
683
|
+
custom_supplier?: string | null | undefined;
|
|
669
684
|
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, priority, }: {
|
|
670
685
|
inputValidationModel?: TInputModel;
|
|
671
686
|
priority?: number;
|
|
@@ -789,6 +804,7 @@ export declare class ERPNextItem {
|
|
|
789
804
|
}[];
|
|
790
805
|
supplier_items: any[];
|
|
791
806
|
customer_items: any[];
|
|
807
|
+
image?: string | null | undefined;
|
|
792
808
|
warehouse_category?: string | null | undefined;
|
|
793
809
|
ean?: string | null | undefined;
|
|
794
810
|
shipping_template?: string | null | undefined;
|
|
@@ -797,6 +813,8 @@ export declare class ERPNextItem {
|
|
|
797
813
|
shipping_height?: number | null | undefined;
|
|
798
814
|
packaging_weight_cardboard?: number | null | undefined;
|
|
799
815
|
packaging_weight_plastic?: number | null | undefined;
|
|
816
|
+
custom_product_version?: string | null | undefined;
|
|
817
|
+
custom_supplier?: string | null | undefined;
|
|
800
818
|
}>;
|
|
801
819
|
constructor(temporalClient: TemporalClient);
|
|
802
820
|
getNoneStockItems(params?: Record<string, string>): Promise<string[]>;
|
|
@@ -801,7 +801,9 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
801
801
|
resourceId: string;
|
|
802
802
|
priority?: number;
|
|
803
803
|
}) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
804
|
-
cancel: (resourceId:
|
|
804
|
+
cancel: ({ resourceId }: {
|
|
805
|
+
resourceId: string;
|
|
806
|
+
}) => Promise<{
|
|
805
807
|
name: string;
|
|
806
808
|
owner: string;
|
|
807
809
|
idx: number;
|
|
@@ -995,7 +997,9 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
995
997
|
advance_tax?: string[] | null | undefined;
|
|
996
998
|
remarks?: string | null | undefined;
|
|
997
999
|
}>;
|
|
998
|
-
submit: (resourceId:
|
|
1000
|
+
submit: ({ resourceId }: {
|
|
1001
|
+
resourceId: string;
|
|
1002
|
+
}) => Promise<{
|
|
999
1003
|
name: string;
|
|
1000
1004
|
owner: string;
|
|
1001
1005
|
idx: number;
|
|
@@ -825,7 +825,9 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
825
825
|
resourceId: string;
|
|
826
826
|
priority?: number;
|
|
827
827
|
}) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
|
|
828
|
-
cancel: (resourceId:
|
|
828
|
+
cancel: ({ resourceId }: {
|
|
829
|
+
resourceId: string;
|
|
830
|
+
}) => Promise<{
|
|
829
831
|
status: string;
|
|
830
832
|
name: string;
|
|
831
833
|
owner: string;
|
|
@@ -1025,7 +1027,9 @@ export declare class ERPNextPurchaseReceipt {
|
|
|
1025
1027
|
supplier_warehouse?: any;
|
|
1026
1028
|
range?: any;
|
|
1027
1029
|
}>;
|
|
1028
|
-
submit: (resourceId:
|
|
1030
|
+
submit: ({ resourceId }: {
|
|
1031
|
+
resourceId: string;
|
|
1032
|
+
}) => Promise<{
|
|
1029
1033
|
status: string;
|
|
1030
1034
|
name: string;
|
|
1031
1035
|
owner: string;
|
|
@@ -604,7 +604,9 @@ export declare class ERPNextShipment {
|
|
|
604
604
|
tracking_status_info?: string | null | undefined;
|
|
605
605
|
tracking_url?: string | null | undefined;
|
|
606
606
|
}>;
|
|
607
|
-
cancel: (resourceId:
|
|
607
|
+
cancel: ({ resourceId }: {
|
|
608
|
+
resourceId: string;
|
|
609
|
+
}) => Promise<{
|
|
608
610
|
status: string;
|
|
609
611
|
name: string;
|
|
610
612
|
owner: string;
|
|
@@ -700,7 +702,9 @@ export declare class ERPNextShipment {
|
|
|
700
702
|
tracking_status_info?: string | null | undefined;
|
|
701
703
|
tracking_url?: string | null | undefined;
|
|
702
704
|
}>;
|
|
703
|
-
submit: (resourceId:
|
|
705
|
+
submit: ({ resourceId }: {
|
|
706
|
+
resourceId: string;
|
|
707
|
+
}) => Promise<{
|
|
704
708
|
status: string;
|
|
705
709
|
name: string;
|
|
706
710
|
owner: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const Item: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
|
+
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4
5
|
warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
6
|
owner: z.ZodString;
|
|
6
7
|
creation: z.ZodString;
|
|
@@ -210,6 +211,8 @@ export declare const Item: z.ZodObject<{
|
|
|
210
211
|
supplier_items: z.ZodArray<z.ZodAny, "many">;
|
|
211
212
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
212
213
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
214
|
+
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
215
|
+
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
213
216
|
}, "strip", z.ZodTypeAny, {
|
|
214
217
|
description: string;
|
|
215
218
|
name: string;
|
|
@@ -329,6 +332,7 @@ export declare const Item: z.ZodObject<{
|
|
|
329
332
|
}[];
|
|
330
333
|
supplier_items: any[];
|
|
331
334
|
customer_items: any[];
|
|
335
|
+
image?: string | null | undefined;
|
|
332
336
|
warehouse_category?: string | null | undefined;
|
|
333
337
|
ean?: string | null | undefined;
|
|
334
338
|
shipping_template?: string | null | undefined;
|
|
@@ -337,6 +341,8 @@ export declare const Item: z.ZodObject<{
|
|
|
337
341
|
shipping_height?: number | null | undefined;
|
|
338
342
|
packaging_weight_cardboard?: number | null | undefined;
|
|
339
343
|
packaging_weight_plastic?: number | null | undefined;
|
|
344
|
+
custom_product_version?: string | null | undefined;
|
|
345
|
+
custom_supplier?: string | null | undefined;
|
|
340
346
|
}, {
|
|
341
347
|
description: string;
|
|
342
348
|
name: string;
|
|
@@ -456,6 +462,7 @@ export declare const Item: z.ZodObject<{
|
|
|
456
462
|
}[];
|
|
457
463
|
supplier_items: any[];
|
|
458
464
|
customer_items: any[];
|
|
465
|
+
image?: string | null | undefined;
|
|
459
466
|
warehouse_category?: string | null | undefined;
|
|
460
467
|
ean?: string | null | undefined;
|
|
461
468
|
shipping_template?: string | null | undefined;
|
|
@@ -464,10 +471,13 @@ export declare const Item: z.ZodObject<{
|
|
|
464
471
|
shipping_height?: number | null | undefined;
|
|
465
472
|
packaging_weight_cardboard?: number | null | undefined;
|
|
466
473
|
packaging_weight_plastic?: number | null | undefined;
|
|
474
|
+
custom_product_version?: string | null | undefined;
|
|
475
|
+
custom_supplier?: string | null | undefined;
|
|
467
476
|
}>;
|
|
468
477
|
export type ItemType = z.infer<typeof Item>;
|
|
469
478
|
export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
470
479
|
name: z.ZodString;
|
|
480
|
+
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
471
481
|
warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
472
482
|
owner: z.ZodString;
|
|
473
483
|
creation: z.ZodString;
|
|
@@ -677,6 +687,8 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
677
687
|
supplier_items: z.ZodArray<z.ZodAny, "many">;
|
|
678
688
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
679
689
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
690
|
+
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
691
|
+
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
680
692
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_code" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
|
|
681
693
|
disabled: number;
|
|
682
694
|
item_code: string;
|
|
@@ -709,6 +721,7 @@ export declare const ItemListWithShippingTemplate: z.ZodArray<z.ZodObject<Pick<O
|
|
|
709
721
|
export type ItemListWithShippingTemplateType = z.infer<typeof ItemListWithShippingTemplate>;
|
|
710
722
|
export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<Omit<{
|
|
711
723
|
name: z.ZodString;
|
|
724
|
+
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
712
725
|
warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
713
726
|
owner: z.ZodString;
|
|
714
727
|
creation: z.ZodString;
|
|
@@ -918,6 +931,8 @@ export declare const ItemListWithShippingTemplateSku: z.ZodArray<z.ZodObject<z.o
|
|
|
918
931
|
supplier_items: z.ZodArray<z.ZodAny, "many">;
|
|
919
932
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
920
933
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
934
|
+
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
935
|
+
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
921
936
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "disabled" | "item_name" | "weight_per_unit" | "weight_uom" | "warehouse_category" | "ean" | "custom_is_shipping_enabled" | "shipping_template" | "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, {
|
|
922
937
|
sku: z.ZodString;
|
|
923
938
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -953,6 +968,7 @@ export type ItemListWithShippingTemplateSkuType = z.infer<typeof ItemListWithShi
|
|
|
953
968
|
export declare const ERPNextItemResponseNoneStockItemsDictFalse: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
|
|
954
969
|
declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
955
970
|
name: z.ZodString;
|
|
971
|
+
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
956
972
|
warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
957
973
|
owner: z.ZodString;
|
|
958
974
|
creation: z.ZodString;
|
|
@@ -1162,6 +1178,8 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1162
1178
|
supplier_items: z.ZodArray<z.ZodAny, "many">;
|
|
1163
1179
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
1164
1180
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
1181
|
+
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1182
|
+
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1165
1183
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "shipping_width" | "shipping_length" | "shipping_height" | "shipping_dimensions_unit">, "strip", z.ZodTypeAny, {
|
|
1166
1184
|
shipping_dimensions_unit: "m" | "cm" | "mm";
|
|
1167
1185
|
shipping_width?: number | null | undefined;
|
|
@@ -1176,6 +1194,7 @@ declare const ItemDimensionsInfo: z.ZodObject<Pick<Omit<{
|
|
|
1176
1194
|
export type ItemDimensionsInfoType = z.infer<typeof ItemDimensionsInfo>;
|
|
1177
1195
|
export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
1178
1196
|
name: z.ZodString;
|
|
1197
|
+
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1179
1198
|
warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1180
1199
|
owner: z.ZodString;
|
|
1181
1200
|
creation: z.ZodString;
|
|
@@ -1385,6 +1404,8 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1385
1404
|
supplier_items: z.ZodArray<z.ZodAny, "many">;
|
|
1386
1405
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
1387
1406
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
1407
|
+
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1408
|
+
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1388
1409
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code">, "strip", z.ZodTypeAny, {
|
|
1389
1410
|
item_code: string;
|
|
1390
1411
|
}, {
|
|
@@ -1393,6 +1414,7 @@ export declare const ItemListName: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1393
1414
|
export type ItemListNameType = z.infer<typeof ItemListName>;
|
|
1394
1415
|
export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
1395
1416
|
name: z.ZodString;
|
|
1417
|
+
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1396
1418
|
warehouse_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1397
1419
|
owner: z.ZodString;
|
|
1398
1420
|
creation: z.ZodString;
|
|
@@ -1602,6 +1624,8 @@ export declare const ItemList: z.ZodArray<z.ZodObject<Pick<Omit<{
|
|
|
1602
1624
|
supplier_items: z.ZodArray<z.ZodAny, "many">;
|
|
1603
1625
|
customer_items: z.ZodArray<z.ZodAny, "many">;
|
|
1604
1626
|
taxes: z.ZodArray<z.ZodAny, "many">;
|
|
1627
|
+
custom_product_version: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1628
|
+
custom_supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1605
1629
|
}, "barcodes" | "reorder_levels" | "uoms" | "attributes" | "item_defaults" | "supplier_items" | "customer_items">, "item_code" | "item_name" | "weight_per_unit" | "weight_uom">, "strip", z.ZodTypeAny, {
|
|
1606
1630
|
item_code: string;
|
|
1607
1631
|
item_name: string;
|
|
@@ -56,6 +56,7 @@ const Barcode = zod_1.z
|
|
|
56
56
|
exports.Item = zod_1.z
|
|
57
57
|
.object({
|
|
58
58
|
name: zod_1.z.string(),
|
|
59
|
+
image: zod_1.z.string().optional().nullable(),
|
|
59
60
|
warehouse_category: zod_1.z.string().optional().nullable(),
|
|
60
61
|
owner: zod_1.z.string(),
|
|
61
62
|
creation: zod_1.z.string(),
|
|
@@ -148,6 +149,8 @@ exports.Item = zod_1.z
|
|
|
148
149
|
supplier_items: zod_1.z.array(zod_1.z.any()),
|
|
149
150
|
customer_items: zod_1.z.array(zod_1.z.any()),
|
|
150
151
|
taxes: zod_1.z.array(zod_1.z.any()),
|
|
152
|
+
custom_product_version: zod_1.z.string().optional().nullable(),
|
|
153
|
+
custom_supplier: zod_1.z.string().optional().nullable(),
|
|
151
154
|
})
|
|
152
155
|
.describe("Item");
|
|
153
156
|
const ItemListModel = exports.Item.omit({
|
|
@@ -21,7 +21,7 @@ declare const StockEntryItem: z.ZodObject<{
|
|
|
21
21
|
s_warehouse?: string | undefined;
|
|
22
22
|
basic_rate?: number | undefined;
|
|
23
23
|
}>;
|
|
24
|
-
export type
|
|
24
|
+
export type StockEntryItemType = z.infer<typeof StockEntryItem>;
|
|
25
25
|
export declare const StockEntry: z.ZodObject<{
|
|
26
26
|
name: z.ZodString;
|
|
27
27
|
external_name: z.ZodOptional<z.ZodString>;
|
|
@@ -244,5 +244,5 @@ export declare const StockEntry: z.ZodObject<{
|
|
|
244
244
|
job_card?: string | undefined;
|
|
245
245
|
credit_note?: string | undefined;
|
|
246
246
|
}>;
|
|
247
|
-
export type
|
|
247
|
+
export type StockEntryType = z.infer<typeof StockEntry>;
|
|
248
248
|
export {};
|