erpnext-queue-client 1.38.0 → 2.0.0-beta.0
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/client.js +2 -2
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +16 -2
- package/dist/erpnext/doctypeResourceRequest.d.ts +12 -11
- package/dist/erpnext/doctypeResourceRequest.js +3 -2
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +121 -4
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +14 -1
- package/dist/erpnext/doctypes/address.d.ts +154 -219
- package/dist/erpnext/doctypes/address.js +0 -2
- package/dist/erpnext/doctypes/contact.d.ts +151 -308
- package/dist/erpnext/doctypes/contact.js +1 -1
- package/dist/erpnext/doctypes/deliveryNote.d.ts +644 -455
- package/dist/erpnext/doctypes/deliveryNote.js +4 -10
- package/dist/erpnext/doctypes/item.d.ts +215 -308
- package/dist/erpnext/doctypes/productBundle.d.ts +43 -53
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +669 -697
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +265 -314
- package/dist/erpnext/doctypes/salesInvoice.d.ts +3332 -0
- package/dist/erpnext/doctypes/salesInvoice.js +72 -0
- package/dist/erpnext/doctypes/servicecase.d.ts +197 -140
- package/dist/erpnext/doctypes/servicecase.js +4 -6
- package/dist/erpnext/doctypes/shipment.d.ts +168 -258
- package/dist/erpnext/doctypes/tags.d.ts +10 -0
- package/dist/erpnext/doctypes/tags.js +102 -0
- package/dist/erpnext/model/Account.d.ts +0 -33
- package/dist/erpnext/model/Account.js +0 -11
- package/dist/erpnext/model/Address.d.ts +112 -233
- package/dist/erpnext/model/Address.js +11 -49
- package/dist/erpnext/model/Attachment.d.ts +0 -3
- package/dist/erpnext/model/Attachment.js +0 -1
- package/dist/erpnext/model/Boolean.d.ts +4 -0
- package/dist/erpnext/model/Boolean.js +9 -0
- package/dist/erpnext/model/Compliance.d.ts +0 -112
- package/dist/erpnext/model/Compliance.js +0 -19
- package/dist/erpnext/model/Contact.d.ts +166 -416
- package/dist/erpnext/model/Contact.js +16 -69
- package/dist/erpnext/model/Country.d.ts +0 -64
- package/dist/erpnext/model/Country.js +0 -10
- package/dist/erpnext/model/Customer.d.ts +39 -64
- package/dist/erpnext/model/Customer.js +11 -25
- package/dist/erpnext/model/DeliveryNote.d.ts +124 -1170
- package/dist/erpnext/model/DeliveryNote.js +5 -52
- package/dist/erpnext/model/DispatchRun.d.ts +7 -113
- package/dist/erpnext/model/DispatchRun.js +2 -31
- package/dist/erpnext/model/DispatcherPreset.d.ts +0 -119
- package/dist/erpnext/model/DispatcherPreset.js +1 -27
- package/dist/erpnext/model/DocInfo.d.ts +41 -339
- package/dist/erpnext/model/DocInfo.js +5 -6
- package/dist/erpnext/model/DocTypeHelpers.d.ts +141 -2
- package/dist/erpnext/model/DocTypeHelpers.js +132 -1
- package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +124 -0
- package/dist/erpnext/model/ERPNextDocTypeMeta.js +37 -0
- package/dist/erpnext/model/ERPNextRequest.d.ts +5 -5
- package/dist/erpnext/model/File.d.ts +0 -48
- package/dist/erpnext/model/File.js +0 -8
- package/dist/erpnext/model/Fulfiller.d.ts +0 -121
- package/dist/erpnext/model/Fulfiller.js +1 -56
- package/dist/erpnext/model/FulfillerSettings.d.ts +0 -39
- package/dist/erpnext/model/FulfillerSettings.js +0 -6
- package/dist/erpnext/model/InternalReasons.d.ts +0 -3
- package/dist/erpnext/model/InternalReasons.js +0 -1
- package/dist/erpnext/model/Item.d.ts +478 -1847
- package/dist/erpnext/model/Item.js +18 -142
- package/dist/erpnext/model/Logs.d.ts +0 -9
- package/dist/erpnext/model/Logs.js +0 -3
- package/dist/erpnext/model/PartList.d.ts +0 -15
- package/dist/erpnext/model/PartList.js +0 -5
- package/dist/erpnext/model/PaymentEntry.d.ts +141 -128
- package/dist/erpnext/model/PaymentEntry.js +46 -47
- package/dist/erpnext/model/Permissions.d.ts +3 -3
- package/dist/erpnext/model/Permissions.js +1 -1
- package/dist/erpnext/model/ProductBundle.d.ts +6 -107
- package/dist/erpnext/model/ProductBundle.js +0 -17
- package/dist/erpnext/model/PurchaseInvoice.d.ts +290 -362
- package/dist/erpnext/model/PurchaseInvoice.js +5 -23
- package/dist/erpnext/model/PurchaseOrder.d.ts +34 -180
- package/dist/erpnext/model/PurchaseOrder.js +0 -34
- package/dist/erpnext/model/Receipt.d.ts +30 -121
- package/dist/erpnext/model/Receipt.js +2 -25
- package/dist/erpnext/model/ReceiptDraft.d.ts +28 -67
- package/dist/erpnext/model/ReceiptDraft.js +2 -11
- package/dist/erpnext/model/Report.d.ts +0 -40
- package/dist/erpnext/model/Report.js +0 -8
- package/dist/erpnext/model/SalesInvoice.d.ts +2441 -0
- package/dist/erpnext/model/SalesInvoice.js +326 -0
- package/dist/erpnext/model/SalesOrder.d.ts +1043 -0
- package/dist/erpnext/model/SalesOrder.js +271 -0
- package/dist/erpnext/model/SalesTaxesAndCharges.d.ts +47 -0
- package/dist/erpnext/model/SalesTaxesAndCharges.js +30 -0
- package/dist/erpnext/model/Servicecase.d.ts +295 -740
- package/dist/erpnext/model/Servicecase.js +31 -116
- package/dist/erpnext/model/ServicecaseReason.d.ts +0 -8
- package/dist/erpnext/model/ServicecaseReason.js +0 -2
- package/dist/erpnext/model/ServicecaseSolution.d.ts +0 -3
- package/dist/erpnext/model/ServicecaseSolution.js +0 -1
- package/dist/erpnext/model/ServiceportalProductConfiguration.d.ts +0 -575
- package/dist/erpnext/model/ServiceportalProductConfiguration.js +5 -50
- package/dist/erpnext/model/Shipment.d.ts +18 -729
- package/dist/erpnext/model/Shipment.js +1 -82
- package/dist/erpnext/model/ShippingLabel.d.ts +0 -32
- package/dist/erpnext/model/ShippingLabel.js +0 -8
- package/dist/erpnext/model/ShippingProvider.d.ts +6 -87
- package/dist/erpnext/model/ShippingProvider.js +3 -6
- package/dist/erpnext/model/Stock.d.ts +6 -46
- package/dist/erpnext/model/Stock.js +0 -8
- package/dist/erpnext/model/StockEntry.d.ts +12 -45
- package/dist/erpnext/model/StockEntry.js +0 -11
- package/dist/erpnext/model/StockReconciliation.d.ts +5 -32
- package/dist/erpnext/model/StockReconciliation.js +0 -10
- package/dist/erpnext/model/Supplier.d.ts +0 -79
- package/dist/erpnext/model/Supplier.js +0 -8
- package/dist/erpnext/model/Version.d.ts +0 -9
- package/dist/erpnext/model/Version.js +0 -3
- package/dist/erpnext/model/Waitlist.d.ts +0 -3
- package/dist/erpnext/model/Waitlist.js +0 -1
- package/dist/erpnext/model/WarehouseCategory.d.ts +0 -11
- package/dist/erpnext/model/WarehouseCategory.js +1 -7
- package/dist/erpnext/reports.js +3 -7
- package/dist/erpnext/resourceRequest.d.ts +13 -11
- package/dist/erpnext/resourceRequest.js +23 -18
- package/dist/index.d.ts +16 -10
- package/dist/index.js +24 -12
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +227 -0
- package/dist/utils/utils.d.ts +3 -0
- package/dist/utils/zodContextOptionals.d.ts +14 -0
- package/dist/utils/zodContextOptionals.js +42 -0
- package/dist/utils/zodUtils.js +2 -1
- package/package.json +2 -2
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +0 -433
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +0 -102
- package/dist/erpnext/model/ShippingFees.d.ts +0 -36
- package/dist/erpnext/model/ShippingFees.js +0 -18
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemporalClient } from "../../client";
|
|
2
|
+
import { ERPNextMethodRequest } from "../methodRequest";
|
|
3
|
+
export declare class ERPNextTags extends ERPNextMethodRequest {
|
|
4
|
+
constructor(temporalClient: TemporalClient);
|
|
5
|
+
addTag(tag: string, targetDocType: string, targetDocName: string): Promise<string>;
|
|
6
|
+
addTags(tags: string[], targetDocType: string, targetDocNames: string[]): Promise<{}>;
|
|
7
|
+
removeTag(tag: string, targetDocType: string, targetDocName: string): Promise<{}>;
|
|
8
|
+
removeAllTags(targetDocType: string, targetDocName: string): Promise<void>;
|
|
9
|
+
getAvailableTagsList(): Promise<string[]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ERPNextTags = void 0;
|
|
16
|
+
const zod_1 = __importDefault(require("zod"));
|
|
17
|
+
const methodRequest_1 = require("../methodRequest");
|
|
18
|
+
class ERPNextTags extends methodRequest_1.ERPNextMethodRequest {
|
|
19
|
+
constructor(temporalClient) {
|
|
20
|
+
super(temporalClient);
|
|
21
|
+
}
|
|
22
|
+
addTag(tag, targetDocType, targetDocName) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const result = yield this.request({
|
|
25
|
+
methodName: "frappe.desk.doctype.tag.tag.add_tag",
|
|
26
|
+
requestMethod: "POST",
|
|
27
|
+
body: {
|
|
28
|
+
dt: targetDocType,
|
|
29
|
+
dn: targetDocName,
|
|
30
|
+
tag,
|
|
31
|
+
},
|
|
32
|
+
responseValidationModel: zod_1.default.string().describe("Add Tag Response"),
|
|
33
|
+
});
|
|
34
|
+
return result;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
addTags(tags, targetDocType, targetDocNames) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
const result = yield this.request({
|
|
40
|
+
methodName: "frappe.desk.doctype.tag.tag.add_tags",
|
|
41
|
+
requestMethod: "POST",
|
|
42
|
+
body: {
|
|
43
|
+
dt: targetDocType,
|
|
44
|
+
docs: targetDocNames,
|
|
45
|
+
tags,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
return result;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
removeTag(tag, targetDocType, targetDocName) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const result = yield this.request({
|
|
54
|
+
methodName: "frappe.desk.doctype.tag.tag.remove_tag",
|
|
55
|
+
requestMethod: "POST",
|
|
56
|
+
params: {
|
|
57
|
+
dt: targetDocType,
|
|
58
|
+
dn: targetDocName,
|
|
59
|
+
tag,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
return result;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
removeAllTags(targetDocType, targetDocName) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
yield this.request({
|
|
68
|
+
methodName: "remove-all-tags",
|
|
69
|
+
requestMethod: "POST",
|
|
70
|
+
body: {
|
|
71
|
+
docname: targetDocName,
|
|
72
|
+
doctype: targetDocType,
|
|
73
|
+
},
|
|
74
|
+
inputValidationModel: zod_1.default
|
|
75
|
+
.object({
|
|
76
|
+
doctype: zod_1.default.string(),
|
|
77
|
+
docname: zod_1.default.string(),
|
|
78
|
+
})
|
|
79
|
+
.describe("Remove All Tags Input"),
|
|
80
|
+
responseValidationModel: zod_1.default
|
|
81
|
+
.object({
|
|
82
|
+
success: zod_1.default.boolean(),
|
|
83
|
+
message: zod_1.default.string(),
|
|
84
|
+
removed_count: zod_1.default.number(),
|
|
85
|
+
})
|
|
86
|
+
.describe("Remove All Tags Response"),
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
// List of all available Tags
|
|
91
|
+
getAvailableTagsList() {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const result = yield this.request({
|
|
94
|
+
methodName: "frappe.desk.doctype.tag.tag.get_tags_list_for_awesomebar",
|
|
95
|
+
requestMethod: "POST",
|
|
96
|
+
responseValidationModel: zod_1.default.array(zod_1.default.string()).describe("Tags"),
|
|
97
|
+
});
|
|
98
|
+
return result;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.ERPNextTags = ERPNextTags;
|
|
@@ -1,44 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const Account: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
owner: z.ZodString;
|
|
5
|
-
creation: z.ZodString;
|
|
6
|
-
modified: z.ZodString;
|
|
7
|
-
modified_by: z.ZodString;
|
|
8
|
-
docstatus: z.ZodNumber;
|
|
9
|
-
idx: z.ZodNumber;
|
|
10
3
|
company: z.ZodString;
|
|
11
4
|
account: z.ZodString;
|
|
12
|
-
parent: z.ZodString;
|
|
13
|
-
parentfield: z.ZodString;
|
|
14
|
-
parenttype: z.ZodString;
|
|
15
|
-
doctype: z.ZodString;
|
|
16
5
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: string;
|
|
18
|
-
doctype: string;
|
|
19
|
-
owner: string;
|
|
20
|
-
creation: string;
|
|
21
|
-
modified: string;
|
|
22
|
-
modified_by: string;
|
|
23
|
-
parent: string;
|
|
24
|
-
parentfield: string;
|
|
25
|
-
parenttype: string;
|
|
26
|
-
idx: number;
|
|
27
|
-
docstatus: number;
|
|
28
6
|
company: string;
|
|
29
7
|
account: string;
|
|
30
8
|
}, {
|
|
31
|
-
name: string;
|
|
32
|
-
doctype: string;
|
|
33
|
-
owner: string;
|
|
34
|
-
creation: string;
|
|
35
|
-
modified: string;
|
|
36
|
-
modified_by: string;
|
|
37
|
-
parent: string;
|
|
38
|
-
parentfield: string;
|
|
39
|
-
parenttype: string;
|
|
40
|
-
idx: number;
|
|
41
|
-
docstatus: number;
|
|
42
9
|
company: string;
|
|
43
10
|
account: string;
|
|
44
11
|
}>;
|
|
@@ -4,18 +4,7 @@ exports.Account = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.Account = zod_1.z
|
|
6
6
|
.object({
|
|
7
|
-
name: zod_1.z.string(),
|
|
8
|
-
owner: zod_1.z.string(),
|
|
9
|
-
creation: zod_1.z.string(),
|
|
10
|
-
modified: zod_1.z.string(),
|
|
11
|
-
modified_by: zod_1.z.string(),
|
|
12
|
-
docstatus: zod_1.z.number(),
|
|
13
|
-
idx: zod_1.z.number(),
|
|
14
7
|
company: zod_1.z.string(),
|
|
15
8
|
account: zod_1.z.string(),
|
|
16
|
-
parent: zod_1.z.string(),
|
|
17
|
-
parentfield: zod_1.z.string(),
|
|
18
|
-
parenttype: zod_1.z.string(),
|
|
19
|
-
doctype: zod_1.z.string(),
|
|
20
9
|
})
|
|
21
10
|
.describe("Account");
|
|
@@ -9,69 +9,99 @@ export declare const DynamicLinkPostBody: z.ZodObject<{
|
|
|
9
9
|
link_doctype: string;
|
|
10
10
|
link_name: string;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
12
|
+
export declare const Address: z.ZodObject<{
|
|
13
|
+
import_reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
14
|
+
address_title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
address_type: z.ZodString;
|
|
14
16
|
address_line1: z.ZodString;
|
|
15
17
|
address_line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16
|
-
|
|
18
|
+
pincode: z.ZodEffects<z.ZodString, string, unknown>;
|
|
19
|
+
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
fax: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
|
+
tax_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
23
|
city: z.ZodString;
|
|
18
|
-
pincode: z.ZodString;
|
|
19
24
|
country: z.ZodString;
|
|
25
|
+
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
26
|
email_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
is_primary_address: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
28
|
+
__optionalForInput: true;
|
|
29
|
+
};
|
|
30
|
+
is_shipping_address: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
31
|
+
__optionalForInput: true;
|
|
32
|
+
};
|
|
33
|
+
is_your_company_address: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
34
|
+
__optionalForInput: true;
|
|
35
|
+
};
|
|
36
|
+
disabled: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
37
|
+
__optionalForInput: true;
|
|
38
|
+
};
|
|
39
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
40
|
link_doctype: z.ZodString;
|
|
24
41
|
link_name: z.ZodString;
|
|
42
|
+
link_title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
43
|
}, "strip", z.ZodTypeAny, {
|
|
26
44
|
link_doctype: string;
|
|
27
45
|
link_name: string;
|
|
46
|
+
link_title?: string | null | undefined;
|
|
28
47
|
}, {
|
|
29
48
|
link_doctype: string;
|
|
30
49
|
link_name: string;
|
|
31
|
-
|
|
50
|
+
link_title?: string | null | undefined;
|
|
51
|
+
}>, "many">>;
|
|
32
52
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
address_title: string;
|
|
34
|
-
address_line1: string;
|
|
35
53
|
address_type: string;
|
|
36
|
-
|
|
54
|
+
address_line1: string;
|
|
37
55
|
pincode: string;
|
|
56
|
+
city: string;
|
|
38
57
|
country: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
58
|
+
is_primary_address: 0 | 1;
|
|
59
|
+
is_shipping_address: 0 | 1;
|
|
60
|
+
is_your_company_address: 0 | 1;
|
|
61
|
+
disabled: 0 | 1;
|
|
62
|
+
import_reference?: string | null | undefined;
|
|
63
|
+
address_title?: string | null | undefined;
|
|
44
64
|
address_line2?: string | null | undefined;
|
|
65
|
+
state?: string | null | undefined;
|
|
66
|
+
phone?: string | null | undefined;
|
|
67
|
+
fax?: string | null | undefined;
|
|
68
|
+
tax_category?: string | null | undefined;
|
|
69
|
+
county?: string | null | undefined;
|
|
45
70
|
email_id?: string | null | undefined;
|
|
71
|
+
links?: {
|
|
72
|
+
link_doctype: string;
|
|
73
|
+
link_name: string;
|
|
74
|
+
link_title?: string | null | undefined;
|
|
75
|
+
}[] | undefined;
|
|
46
76
|
}, {
|
|
47
|
-
address_title: string;
|
|
48
|
-
address_line1: string;
|
|
49
77
|
address_type: string;
|
|
78
|
+
address_line1: string;
|
|
50
79
|
city: string;
|
|
51
|
-
pincode: string;
|
|
52
80
|
country: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
link_doctype: string;
|
|
56
|
-
link_name: string;
|
|
57
|
-
}[];
|
|
81
|
+
import_reference?: string | null | undefined;
|
|
82
|
+
address_title?: string | null | undefined;
|
|
58
83
|
address_line2?: string | null | undefined;
|
|
84
|
+
pincode?: unknown;
|
|
85
|
+
state?: string | null | undefined;
|
|
86
|
+
phone?: string | null | undefined;
|
|
87
|
+
fax?: string | null | undefined;
|
|
88
|
+
tax_category?: string | null | undefined;
|
|
89
|
+
county?: string | null | undefined;
|
|
59
90
|
email_id?: string | null | undefined;
|
|
91
|
+
is_primary_address?: unknown;
|
|
92
|
+
is_shipping_address?: unknown;
|
|
93
|
+
is_your_company_address?: unknown;
|
|
94
|
+
disabled?: unknown;
|
|
95
|
+
links?: {
|
|
96
|
+
link_doctype: string;
|
|
97
|
+
link_name: string;
|
|
98
|
+
link_title?: string | null | undefined;
|
|
99
|
+
}[] | undefined;
|
|
60
100
|
}>;
|
|
61
|
-
export type
|
|
62
|
-
|
|
63
|
-
name: z.ZodString;
|
|
64
|
-
owner: z.ZodString;
|
|
65
|
-
creation: z.ZodString;
|
|
66
|
-
modified: z.ZodString;
|
|
67
|
-
modified_by: z.ZodString;
|
|
101
|
+
export type AddressType = z.infer<typeof Address>;
|
|
102
|
+
declare const AddressInput: import("../../utils/zodContextOptionals").ResourceInputType<z.ZodObject<{
|
|
68
103
|
import_reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
|
-
|
|
70
|
-
parentfield: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
|
-
parenttype: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
72
|
-
idx: z.ZodNumber;
|
|
73
|
-
docstatus: z.ZodNumber;
|
|
74
|
-
address_title: z.ZodString;
|
|
104
|
+
address_title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
105
|
address_type: z.ZodString;
|
|
76
106
|
address_line1: z.ZodString;
|
|
77
107
|
address_line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -84,230 +114,79 @@ export declare const Address: z.ZodObject<{
|
|
|
84
114
|
country: z.ZodString;
|
|
85
115
|
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
86
116
|
email_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
87
|
-
is_primary_address: z.ZodEffects<z.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
parenttype: z.ZodString;
|
|
101
|
-
idx: z.ZodNumber;
|
|
102
|
-
docstatus: z.ZodNumber;
|
|
117
|
+
is_primary_address: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
118
|
+
__optionalForInput: true;
|
|
119
|
+
};
|
|
120
|
+
is_shipping_address: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
121
|
+
__optionalForInput: true;
|
|
122
|
+
};
|
|
123
|
+
is_your_company_address: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
124
|
+
__optionalForInput: true;
|
|
125
|
+
};
|
|
126
|
+
disabled: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
127
|
+
__optionalForInput: true;
|
|
128
|
+
};
|
|
129
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
103
130
|
link_doctype: z.ZodString;
|
|
104
131
|
link_name: z.ZodString;
|
|
105
|
-
link_title: z.ZodString
|
|
106
|
-
doctype: z.ZodString;
|
|
132
|
+
link_title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
107
133
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
name: string;
|
|
109
|
-
doctype: string;
|
|
110
134
|
link_doctype: string;
|
|
111
135
|
link_name: string;
|
|
112
|
-
|
|
113
|
-
creation: string;
|
|
114
|
-
modified: string;
|
|
115
|
-
modified_by: string;
|
|
116
|
-
parent: string;
|
|
117
|
-
parentfield: string;
|
|
118
|
-
parenttype: string;
|
|
119
|
-
idx: number;
|
|
120
|
-
docstatus: number;
|
|
121
|
-
link_title: string;
|
|
136
|
+
link_title?: string | null | undefined;
|
|
122
137
|
}, {
|
|
123
|
-
name: string;
|
|
124
|
-
doctype: string;
|
|
125
138
|
link_doctype: string;
|
|
126
139
|
link_name: string;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
modified_by: string;
|
|
131
|
-
parent: string;
|
|
132
|
-
parentfield: string;
|
|
133
|
-
parenttype: string;
|
|
134
|
-
idx: number;
|
|
135
|
-
docstatus: number;
|
|
136
|
-
link_title: string;
|
|
137
|
-
}>, "many">;
|
|
138
|
-
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
name: string;
|
|
140
|
-
doctype: string;
|
|
141
|
-
address_title: string;
|
|
142
|
-
address_line1: string;
|
|
140
|
+
link_title?: string | null | undefined;
|
|
141
|
+
}>, "many">>;
|
|
142
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
143
143
|
address_type: string;
|
|
144
|
-
|
|
144
|
+
address_line1: string;
|
|
145
145
|
pincode: string;
|
|
146
|
+
city: string;
|
|
146
147
|
country: string;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
link_doctype: string;
|
|
152
|
-
link_name: string;
|
|
153
|
-
owner: string;
|
|
154
|
-
creation: string;
|
|
155
|
-
modified: string;
|
|
156
|
-
modified_by: string;
|
|
157
|
-
parent: string;
|
|
158
|
-
parentfield: string;
|
|
159
|
-
parenttype: string;
|
|
160
|
-
idx: number;
|
|
161
|
-
docstatus: number;
|
|
162
|
-
link_title: string;
|
|
163
|
-
}[];
|
|
164
|
-
owner: string;
|
|
165
|
-
creation: string;
|
|
166
|
-
modified: string;
|
|
167
|
-
modified_by: string;
|
|
168
|
-
idx: number;
|
|
169
|
-
docstatus: number;
|
|
170
|
-
is_primary_address: boolean;
|
|
171
|
-
is_your_company_address: boolean;
|
|
172
|
-
disabled: boolean;
|
|
173
|
-
address_line2?: string | null | undefined;
|
|
174
|
-
email_id?: string | null | undefined;
|
|
175
|
-
parent?: string | null | undefined;
|
|
176
|
-
parentfield?: string | null | undefined;
|
|
177
|
-
parenttype?: string | null | undefined;
|
|
148
|
+
is_primary_address: 0 | 1;
|
|
149
|
+
is_shipping_address: 0 | 1;
|
|
150
|
+
is_your_company_address: 0 | 1;
|
|
151
|
+
disabled: 0 | 1;
|
|
178
152
|
import_reference?: string | null | undefined;
|
|
153
|
+
address_title?: string | null | undefined;
|
|
154
|
+
address_line2?: string | null | undefined;
|
|
179
155
|
state?: string | null | undefined;
|
|
180
156
|
phone?: string | null | undefined;
|
|
181
157
|
fax?: string | null | undefined;
|
|
182
158
|
tax_category?: string | null | undefined;
|
|
183
159
|
county?: string | null | undefined;
|
|
160
|
+
email_id?: string | null | undefined;
|
|
161
|
+
links?: {
|
|
162
|
+
link_doctype: string;
|
|
163
|
+
link_name: string;
|
|
164
|
+
link_title?: string | null | undefined;
|
|
165
|
+
}[] | undefined;
|
|
184
166
|
}, {
|
|
185
|
-
name: string;
|
|
186
|
-
doctype: string;
|
|
187
|
-
address_title: string;
|
|
188
|
-
address_line1: string;
|
|
189
167
|
address_type: string;
|
|
168
|
+
address_line1: string;
|
|
190
169
|
city: string;
|
|
191
170
|
country: string;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
name: string;
|
|
195
|
-
doctype: string;
|
|
196
|
-
link_doctype: string;
|
|
197
|
-
link_name: string;
|
|
198
|
-
owner: string;
|
|
199
|
-
creation: string;
|
|
200
|
-
modified: string;
|
|
201
|
-
modified_by: string;
|
|
202
|
-
parent: string;
|
|
203
|
-
parentfield: string;
|
|
204
|
-
parenttype: string;
|
|
205
|
-
idx: number;
|
|
206
|
-
docstatus: number;
|
|
207
|
-
link_title: string;
|
|
208
|
-
}[];
|
|
209
|
-
owner: string;
|
|
210
|
-
creation: string;
|
|
211
|
-
modified: string;
|
|
212
|
-
modified_by: string;
|
|
213
|
-
idx: number;
|
|
214
|
-
docstatus: number;
|
|
215
|
-
is_primary_address: number;
|
|
216
|
-
is_your_company_address: number;
|
|
217
|
-
disabled: number;
|
|
171
|
+
import_reference?: string | null | undefined;
|
|
172
|
+
address_title?: string | null | undefined;
|
|
218
173
|
address_line2?: string | null | undefined;
|
|
219
174
|
pincode?: unknown;
|
|
220
|
-
email_id?: string | null | undefined;
|
|
221
|
-
parent?: string | null | undefined;
|
|
222
|
-
parentfield?: string | null | undefined;
|
|
223
|
-
parenttype?: string | null | undefined;
|
|
224
|
-
import_reference?: string | null | undefined;
|
|
225
175
|
state?: string | null | undefined;
|
|
226
176
|
phone?: string | null | undefined;
|
|
227
177
|
fax?: string | null | undefined;
|
|
228
178
|
tax_category?: string | null | undefined;
|
|
229
179
|
county?: string | null | undefined;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
modified_by: z.ZodString;
|
|
237
|
-
import_reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
238
|
-
parent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
239
|
-
parentfield: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
240
|
-
parenttype: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
241
|
-
idx: z.ZodNumber;
|
|
242
|
-
docstatus: z.ZodNumber;
|
|
243
|
-
address_title: z.ZodString;
|
|
244
|
-
address_type: z.ZodString;
|
|
245
|
-
address_line1: z.ZodString;
|
|
246
|
-
address_line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
247
|
-
pincode: z.ZodEffects<z.ZodString, string, unknown>;
|
|
248
|
-
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
249
|
-
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
250
|
-
fax: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
251
|
-
tax_category: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
252
|
-
city: z.ZodString;
|
|
253
|
-
country: z.ZodString;
|
|
254
|
-
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
255
|
-
email_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
256
|
-
is_primary_address: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
257
|
-
is_shipping_address: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
258
|
-
is_your_company_address: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
259
|
-
disabled: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
260
|
-
doctype: z.ZodString;
|
|
261
|
-
links: z.ZodArray<z.ZodObject<{
|
|
262
|
-
name: z.ZodString;
|
|
263
|
-
owner: z.ZodString;
|
|
264
|
-
creation: z.ZodString;
|
|
265
|
-
modified: z.ZodString;
|
|
266
|
-
modified_by: z.ZodString;
|
|
267
|
-
parent: z.ZodString;
|
|
268
|
-
parentfield: z.ZodString;
|
|
269
|
-
parenttype: z.ZodString;
|
|
270
|
-
idx: z.ZodNumber;
|
|
271
|
-
docstatus: z.ZodNumber;
|
|
272
|
-
link_doctype: z.ZodString;
|
|
273
|
-
link_name: z.ZodString;
|
|
274
|
-
link_title: z.ZodString;
|
|
275
|
-
doctype: z.ZodString;
|
|
276
|
-
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
name: string;
|
|
278
|
-
doctype: string;
|
|
279
|
-
link_doctype: string;
|
|
280
|
-
link_name: string;
|
|
281
|
-
owner: string;
|
|
282
|
-
creation: string;
|
|
283
|
-
modified: string;
|
|
284
|
-
modified_by: string;
|
|
285
|
-
parent: string;
|
|
286
|
-
parentfield: string;
|
|
287
|
-
parenttype: string;
|
|
288
|
-
idx: number;
|
|
289
|
-
docstatus: number;
|
|
290
|
-
link_title: string;
|
|
291
|
-
}, {
|
|
292
|
-
name: string;
|
|
293
|
-
doctype: string;
|
|
180
|
+
email_id?: string | null | undefined;
|
|
181
|
+
is_primary_address?: unknown;
|
|
182
|
+
is_shipping_address?: unknown;
|
|
183
|
+
is_your_company_address?: unknown;
|
|
184
|
+
disabled?: unknown;
|
|
185
|
+
links?: {
|
|
294
186
|
link_doctype: string;
|
|
295
187
|
link_name: string;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
parentfield: string;
|
|
302
|
-
parenttype: string;
|
|
303
|
-
idx: number;
|
|
304
|
-
docstatus: number;
|
|
305
|
-
link_title: string;
|
|
306
|
-
}>, "many">;
|
|
307
|
-
}, "name">, "strip", z.ZodTypeAny, {
|
|
308
|
-
name: string;
|
|
309
|
-
}, {
|
|
310
|
-
name: string;
|
|
311
|
-
}>, "many">;
|
|
312
|
-
export type AddressType = z.infer<typeof Address>;
|
|
313
|
-
export type AddressListNameType = z.infer<typeof AddressListName>;
|
|
188
|
+
link_title?: string | null | undefined;
|
|
189
|
+
}[] | undefined;
|
|
190
|
+
}>>;
|
|
191
|
+
export type AddressInputType = z.infer<typeof AddressInput>;
|
|
192
|
+
export {};
|
|
@@ -1,59 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Address = exports.DynamicLinkPostBody = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const Boolean_1 = require("./Boolean");
|
|
6
|
+
const zodContextOptionals_1 = require("../../utils/zodContextOptionals");
|
|
5
7
|
exports.DynamicLinkPostBody = zod_1.z
|
|
6
8
|
.object({
|
|
7
9
|
link_doctype: zod_1.z.string(),
|
|
8
10
|
link_name: zod_1.z.string(),
|
|
9
11
|
})
|
|
10
12
|
.describe("Address DynamicLinkPostBody");
|
|
11
|
-
exports.AddressPostBody = zod_1.z
|
|
12
|
-
.object({
|
|
13
|
-
address_title: zod_1.z.string(),
|
|
14
|
-
address_line1: zod_1.z.string(),
|
|
15
|
-
address_line2: zod_1.z.string().optional().nullable(),
|
|
16
|
-
address_type: zod_1.z.string(),
|
|
17
|
-
city: zod_1.z.string(),
|
|
18
|
-
pincode: zod_1.z.string(),
|
|
19
|
-
country: zod_1.z.string(),
|
|
20
|
-
email_id: zod_1.z.string().optional().nullable(),
|
|
21
|
-
is_shipping_address: zod_1.z.number(),
|
|
22
|
-
links: zod_1.z.array(exports.DynamicLinkPostBody),
|
|
23
|
-
})
|
|
24
|
-
.describe("Address AddressPostBody");
|
|
25
13
|
const Link = zod_1.z
|
|
26
14
|
.object({
|
|
27
|
-
name: zod_1.z.string(),
|
|
28
|
-
owner: zod_1.z.string(),
|
|
29
|
-
creation: zod_1.z.string(),
|
|
30
|
-
modified: zod_1.z.string(),
|
|
31
|
-
modified_by: zod_1.z.string(),
|
|
32
|
-
parent: zod_1.z.string(),
|
|
33
|
-
parentfield: zod_1.z.string(),
|
|
34
|
-
parenttype: zod_1.z.string(),
|
|
35
|
-
idx: zod_1.z.number(),
|
|
36
|
-
docstatus: zod_1.z.number(),
|
|
37
15
|
link_doctype: zod_1.z.string(),
|
|
38
16
|
link_name: zod_1.z.string(),
|
|
39
|
-
link_title: zod_1.z.string(),
|
|
40
|
-
doctype: zod_1.z.string(),
|
|
17
|
+
link_title: zod_1.z.string().optional().nullable(),
|
|
41
18
|
})
|
|
42
19
|
.describe("Address Link");
|
|
43
20
|
exports.Address = zod_1.z
|
|
44
21
|
.object({
|
|
45
|
-
name: zod_1.z.string(),
|
|
46
|
-
owner: zod_1.z.string(),
|
|
47
|
-
creation: zod_1.z.string(),
|
|
48
|
-
modified: zod_1.z.string(),
|
|
49
|
-
modified_by: zod_1.z.string(),
|
|
50
22
|
import_reference: zod_1.z.string().optional().nullable(),
|
|
51
|
-
|
|
52
|
-
parentfield: zod_1.z.string().optional().nullable(),
|
|
53
|
-
parenttype: zod_1.z.string().optional().nullable(),
|
|
54
|
-
idx: zod_1.z.number(),
|
|
55
|
-
docstatus: zod_1.z.number(),
|
|
56
|
-
address_title: zod_1.z.string(),
|
|
23
|
+
address_title: zod_1.z.string().optional().nullable(),
|
|
57
24
|
address_type: zod_1.z.string(),
|
|
58
25
|
address_line1: zod_1.z.string(),
|
|
59
26
|
address_line2: zod_1.z.string().optional().nullable(),
|
|
@@ -68,16 +35,11 @@ exports.Address = zod_1.z
|
|
|
68
35
|
country: zod_1.z.string(),
|
|
69
36
|
county: zod_1.z.string().optional().nullable(),
|
|
70
37
|
email_id: zod_1.z.string().optional().nullable(),
|
|
71
|
-
is_primary_address:
|
|
72
|
-
is_shipping_address:
|
|
73
|
-
is_your_company_address:
|
|
74
|
-
disabled:
|
|
75
|
-
|
|
76
|
-
links: zod_1.z.array(Link),
|
|
38
|
+
is_primary_address: Boolean_1.ERPNextBoolean,
|
|
39
|
+
is_shipping_address: Boolean_1.ERPNextBoolean,
|
|
40
|
+
is_your_company_address: Boolean_1.ERPNextBoolean,
|
|
41
|
+
disabled: Boolean_1.ERPNextBoolean,
|
|
42
|
+
links: zod_1.z.array(Link).optional(),
|
|
77
43
|
})
|
|
78
44
|
.describe("Address");
|
|
79
|
-
|
|
80
|
-
.array(exports.Address.pick({
|
|
81
|
-
name: true,
|
|
82
|
-
}))
|
|
83
|
-
.describe("AddressListName");
|
|
45
|
+
const AddressInput = (0, zodContextOptionals_1.ResourceInput)(exports.Address).describe("AddressInput");
|