erpnext-queue-client 1.5.0 → 1.5.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.
|
@@ -7,7 +7,7 @@ export declare class ERPNextAddress {
|
|
|
7
7
|
protected temporalClient: TemporalClient;
|
|
8
8
|
protected baseRequest: ERPNextDoctypeResourceRequest<typeof Address>;
|
|
9
9
|
protected methodRequest: ERPNextMethodRequest;
|
|
10
|
-
getList: <TField extends ("name" | "address_title" | "address_line1" | "address_type" | "city" | "country" | "is_shipping_address" | "links" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "is_primary_address" | "is_your_company_address" | "disabled") | ("address_line2" | "
|
|
10
|
+
getList: <TField extends ("name" | "address_title" | "address_line1" | "address_type" | "city" | "pincode" | "country" | "is_shipping_address" | "links" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "doctype" | "is_primary_address" | "is_your_company_address" | "disabled") | ("address_line2" | "email_id" | "parent" | "parentfield" | "parenttype" | "import_reference" | "state" | "phone" | "fax" | "tax_category" | "county"), TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
11
11
|
fields?: TField[] | undefined;
|
|
12
12
|
filters?: string[][];
|
|
13
13
|
skip?: number;
|
|
@@ -21,6 +21,7 @@ export declare class ERPNextAddress {
|
|
|
21
21
|
address_line1: string;
|
|
22
22
|
address_type: string;
|
|
23
23
|
city: string;
|
|
24
|
+
pincode: string;
|
|
24
25
|
country: string;
|
|
25
26
|
is_shipping_address: boolean;
|
|
26
27
|
links: {
|
|
@@ -50,7 +51,6 @@ export declare class ERPNextAddress {
|
|
|
50
51
|
is_your_company_address: boolean;
|
|
51
52
|
disabled: boolean;
|
|
52
53
|
address_line2?: string | null | undefined;
|
|
53
|
-
pincode?: string | null | undefined;
|
|
54
54
|
email_id?: string | null | undefined;
|
|
55
55
|
parent?: string | null | undefined;
|
|
56
56
|
parentfield?: string | null | undefined;
|
|
@@ -71,6 +71,7 @@ export declare class ERPNextAddress {
|
|
|
71
71
|
address_line1: string;
|
|
72
72
|
address_type: string;
|
|
73
73
|
city: string;
|
|
74
|
+
pincode: string;
|
|
74
75
|
country: string;
|
|
75
76
|
is_shipping_address: boolean;
|
|
76
77
|
links: {
|
|
@@ -100,7 +101,6 @@ export declare class ERPNextAddress {
|
|
|
100
101
|
is_your_company_address: boolean;
|
|
101
102
|
disabled: boolean;
|
|
102
103
|
address_line2?: string | null | undefined;
|
|
103
|
-
pincode?: string | null | undefined;
|
|
104
104
|
email_id?: string | null | undefined;
|
|
105
105
|
parent?: string | null | undefined;
|
|
106
106
|
parentfield?: string | null | undefined;
|
|
@@ -118,6 +118,7 @@ export declare class ERPNextAddress {
|
|
|
118
118
|
address_line1: string;
|
|
119
119
|
address_type: string;
|
|
120
120
|
city: string;
|
|
121
|
+
pincode: string;
|
|
121
122
|
country: string;
|
|
122
123
|
is_shipping_address: boolean;
|
|
123
124
|
links: {
|
|
@@ -147,7 +148,6 @@ export declare class ERPNextAddress {
|
|
|
147
148
|
is_your_company_address: boolean;
|
|
148
149
|
disabled: boolean;
|
|
149
150
|
address_line2?: string | null | undefined;
|
|
150
|
-
pincode?: string | null | undefined;
|
|
151
151
|
email_id?: string | null | undefined;
|
|
152
152
|
parent?: string | null | undefined;
|
|
153
153
|
parentfield?: string | null | undefined;
|
|
@@ -169,6 +169,7 @@ export declare class ERPNextAddress {
|
|
|
169
169
|
address_line1: string;
|
|
170
170
|
address_type: string;
|
|
171
171
|
city: string;
|
|
172
|
+
pincode: string;
|
|
172
173
|
country: string;
|
|
173
174
|
is_shipping_address: boolean;
|
|
174
175
|
links: {
|
|
@@ -198,7 +199,6 @@ export declare class ERPNextAddress {
|
|
|
198
199
|
is_your_company_address: boolean;
|
|
199
200
|
disabled: boolean;
|
|
200
201
|
address_line2?: string | null | undefined;
|
|
201
|
-
pincode?: string | null | undefined;
|
|
202
202
|
email_id?: string | null | undefined;
|
|
203
203
|
parent?: string | null | undefined;
|
|
204
204
|
parentfield?: string | null | undefined;
|
|
@@ -221,6 +221,7 @@ export declare class ERPNextAddress {
|
|
|
221
221
|
address_line1: string;
|
|
222
222
|
address_type: string;
|
|
223
223
|
city: string;
|
|
224
|
+
pincode: string;
|
|
224
225
|
country: string;
|
|
225
226
|
is_shipping_address: boolean;
|
|
226
227
|
links: {
|
|
@@ -250,7 +251,6 @@ export declare class ERPNextAddress {
|
|
|
250
251
|
is_your_company_address: boolean;
|
|
251
252
|
disabled: boolean;
|
|
252
253
|
address_line2?: string | null | undefined;
|
|
253
|
-
pincode?: string | null | undefined;
|
|
254
254
|
email_id?: string | null | undefined;
|
|
255
255
|
parent?: string | null | undefined;
|
|
256
256
|
parentfield?: string | null | undefined;
|
|
@@ -268,6 +268,7 @@ export declare class ERPNextAddress {
|
|
|
268
268
|
address_line1: string;
|
|
269
269
|
address_type: string;
|
|
270
270
|
city: string;
|
|
271
|
+
pincode: string;
|
|
271
272
|
country: string;
|
|
272
273
|
is_shipping_address: boolean;
|
|
273
274
|
links: {
|
|
@@ -297,7 +298,6 @@ export declare class ERPNextAddress {
|
|
|
297
298
|
is_your_company_address: boolean;
|
|
298
299
|
disabled: boolean;
|
|
299
300
|
address_line2?: string | null | undefined;
|
|
300
|
-
pincode?: string | null | undefined;
|
|
301
301
|
email_id?: string | null | undefined;
|
|
302
302
|
parent?: string | null | undefined;
|
|
303
303
|
parentfield?: string | null | undefined;
|
|
@@ -315,6 +315,7 @@ export declare class ERPNextAddress {
|
|
|
315
315
|
address_line1: string;
|
|
316
316
|
address_type: string;
|
|
317
317
|
city: string;
|
|
318
|
+
pincode: string;
|
|
318
319
|
country: string;
|
|
319
320
|
is_shipping_address: boolean;
|
|
320
321
|
owner: string;
|
|
@@ -327,7 +328,6 @@ export declare class ERPNextAddress {
|
|
|
327
328
|
is_your_company_address: boolean;
|
|
328
329
|
disabled: boolean;
|
|
329
330
|
address_line2?: string | null | undefined;
|
|
330
|
-
pincode?: string | null | undefined;
|
|
331
331
|
email_id?: string | null | undefined;
|
|
332
332
|
parent?: string | null | undefined;
|
|
333
333
|
parentfield?: string | null | undefined;
|
|
@@ -75,7 +75,7 @@ export declare const Address: z.ZodObject<{
|
|
|
75
75
|
address_type: z.ZodString;
|
|
76
76
|
address_line1: z.ZodString;
|
|
77
77
|
address_line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
78
|
-
pincode: z.
|
|
78
|
+
pincode: z.ZodEffects<z.ZodString, string, unknown>;
|
|
79
79
|
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
80
80
|
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
81
81
|
fax: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -141,6 +141,7 @@ export declare const Address: z.ZodObject<{
|
|
|
141
141
|
address_line1: string;
|
|
142
142
|
address_type: string;
|
|
143
143
|
city: string;
|
|
144
|
+
pincode: string;
|
|
144
145
|
country: string;
|
|
145
146
|
is_shipping_address: boolean;
|
|
146
147
|
links: {
|
|
@@ -170,7 +171,6 @@ export declare const Address: z.ZodObject<{
|
|
|
170
171
|
is_your_company_address: boolean;
|
|
171
172
|
disabled: boolean;
|
|
172
173
|
address_line2?: string | null | undefined;
|
|
173
|
-
pincode?: string | null | undefined;
|
|
174
174
|
email_id?: string | null | undefined;
|
|
175
175
|
parent?: string | null | undefined;
|
|
176
176
|
parentfield?: string | null | undefined;
|
|
@@ -244,7 +244,7 @@ export declare const AddressListName: z.ZodArray<z.ZodObject<Pick<{
|
|
|
244
244
|
address_type: z.ZodString;
|
|
245
245
|
address_line1: z.ZodString;
|
|
246
246
|
address_line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
247
|
-
pincode: z.
|
|
247
|
+
pincode: z.ZodEffects<z.ZodString, string, unknown>;
|
|
248
248
|
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
249
249
|
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
250
250
|
fax: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -57,12 +57,9 @@ exports.Address = zod_1.z
|
|
|
57
57
|
address_type: zod_1.z.string(),
|
|
58
58
|
address_line1: zod_1.z.string(),
|
|
59
59
|
address_line2: zod_1.z.string().optional().nullable(),
|
|
60
|
-
pincode: zod_1.z
|
|
61
|
-
.preprocess((input) => {
|
|
60
|
+
pincode: zod_1.z.preprocess((input) => {
|
|
62
61
|
return typeof input === "string" ? input.trim() : input;
|
|
63
|
-
}, zod_1.z.string())
|
|
64
|
-
.optional()
|
|
65
|
-
.nullable(),
|
|
62
|
+
}, zod_1.z.string()),
|
|
66
63
|
state: zod_1.z.string().optional().nullable(),
|
|
67
64
|
phone: zod_1.z.string().optional().nullable(),
|
|
68
65
|
fax: zod_1.z.string().optional().nullable(),
|
package/package.json
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"nanoid": "^3.3.7",
|
|
23
23
|
"randombytes": "^2.1.0",
|
|
24
24
|
"winston": "^3.15.0",
|
|
25
|
-
"zod": "
|
|
25
|
+
"zod": "3.24.1"
|
|
26
26
|
},
|
|
27
|
-
"version": "1.5.
|
|
27
|
+
"version": "1.5.2",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/crypto-js": "^4.2.2",
|
|
30
30
|
"@types/lodash": "^4.17.13",
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
"typescript": "^5.6.3",
|
|
33
33
|
"vitest": "^2.1.8"
|
|
34
34
|
}
|
|
35
|
-
}
|
|
35
|
+
}
|