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
|
@@ -9,514 +9,264 @@ export declare const DynamicLinkPostBody: z.ZodObject<{
|
|
|
9
9
|
link_doctype: string;
|
|
10
10
|
link_name: string;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const ContactPostBody: z.ZodObject<{
|
|
13
|
-
first_name: z.ZodString;
|
|
14
|
-
last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
15
|
-
email_ids: z.ZodArray<z.ZodObject<{
|
|
16
|
-
email_id: z.ZodString;
|
|
17
|
-
is_primary: z.ZodNumber;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
email_id: string;
|
|
20
|
-
is_primary: number;
|
|
21
|
-
}, {
|
|
22
|
-
email_id: string;
|
|
23
|
-
is_primary: number;
|
|
24
|
-
}>, "many">;
|
|
25
|
-
links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
-
link_doctype: z.ZodString;
|
|
27
|
-
link_name: z.ZodString;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
link_doctype: string;
|
|
30
|
-
link_name: string;
|
|
31
|
-
}, {
|
|
32
|
-
link_doctype: string;
|
|
33
|
-
link_name: string;
|
|
34
|
-
}>, "many">>>;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
first_name: string;
|
|
37
|
-
email_ids: {
|
|
38
|
-
email_id: string;
|
|
39
|
-
is_primary: number;
|
|
40
|
-
}[];
|
|
41
|
-
links?: {
|
|
42
|
-
link_doctype: string;
|
|
43
|
-
link_name: string;
|
|
44
|
-
}[] | null | undefined;
|
|
45
|
-
last_name?: string | null | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
first_name: string;
|
|
48
|
-
email_ids: {
|
|
49
|
-
email_id: string;
|
|
50
|
-
is_primary: number;
|
|
51
|
-
}[];
|
|
52
|
-
links?: {
|
|
53
|
-
link_doctype: string;
|
|
54
|
-
link_name: string;
|
|
55
|
-
}[] | null | undefined;
|
|
56
|
-
last_name?: string | null | undefined;
|
|
57
|
-
}>;
|
|
58
|
-
export type ContactPostBodyType = z.infer<typeof ContactPostBody>;
|
|
59
12
|
export declare const Contact: z.ZodObject<{
|
|
60
|
-
|
|
61
|
-
owner: z.ZodString;
|
|
62
|
-
creation: z.ZodString;
|
|
63
|
-
modified: z.ZodString;
|
|
64
|
-
modified_by: z.ZodString;
|
|
65
|
-
idx: z.ZodNumber;
|
|
66
|
-
docstatus: z.ZodNumber;
|
|
67
|
-
first_name: z.ZodString;
|
|
13
|
+
first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
68
14
|
middle_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
15
|
company: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
16
|
last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
|
-
email_id: z.ZodString
|
|
72
|
-
|
|
17
|
+
email_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
sync_with_google_contacts: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
20
|
+
__optionalForInput: true;
|
|
21
|
+
};
|
|
73
22
|
status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
23
|
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
24
|
mobile_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
76
25
|
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
77
|
-
pulled_from_google_contacts: z.ZodEffects<z.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
parenttype: z.ZodString;
|
|
91
|
-
idx: z.ZodNumber;
|
|
92
|
-
docstatus: z.ZodNumber;
|
|
26
|
+
pulled_from_google_contacts: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
27
|
+
__optionalForInput: true;
|
|
28
|
+
};
|
|
29
|
+
is_primary_contact: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
30
|
+
__optionalForInput: true;
|
|
31
|
+
};
|
|
32
|
+
is_billing_contact: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
33
|
+
__optionalForInput: true;
|
|
34
|
+
};
|
|
35
|
+
unsubscribed: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
36
|
+
__optionalForInput: true;
|
|
37
|
+
};
|
|
38
|
+
email_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
93
39
|
email_id: z.ZodString;
|
|
94
|
-
is_primary: z.ZodEffects<z.
|
|
95
|
-
|
|
40
|
+
is_primary: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
41
|
+
__optionalForInput: true;
|
|
42
|
+
};
|
|
96
43
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
name: string;
|
|
98
|
-
doctype: string;
|
|
99
44
|
email_id: string;
|
|
100
|
-
|
|
101
|
-
creation: string;
|
|
102
|
-
modified: string;
|
|
103
|
-
modified_by: string;
|
|
104
|
-
parent: string;
|
|
105
|
-
parentfield: string;
|
|
106
|
-
parenttype: string;
|
|
107
|
-
idx: number;
|
|
108
|
-
docstatus: number;
|
|
109
|
-
is_primary: boolean;
|
|
45
|
+
is_primary: 0 | 1;
|
|
110
46
|
}, {
|
|
111
|
-
name: string;
|
|
112
|
-
doctype: string;
|
|
113
47
|
email_id: string;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
modified: string;
|
|
117
|
-
modified_by: string;
|
|
118
|
-
parent: string;
|
|
119
|
-
parentfield: string;
|
|
120
|
-
parenttype: string;
|
|
121
|
-
idx: number;
|
|
122
|
-
docstatus: number;
|
|
123
|
-
is_primary: number;
|
|
124
|
-
}>, "many">;
|
|
48
|
+
is_primary?: unknown;
|
|
49
|
+
}>, "many">>>;
|
|
125
50
|
phone_nos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
126
|
-
name: z.ZodString;
|
|
127
|
-
owner: z.ZodString;
|
|
128
|
-
creation: z.ZodString;
|
|
129
|
-
modified: z.ZodString;
|
|
130
|
-
modified_by: z.ZodString;
|
|
131
|
-
parent: z.ZodString;
|
|
132
|
-
parentfield: z.ZodString;
|
|
133
|
-
parenttype: z.ZodString;
|
|
134
|
-
idx: z.ZodNumber;
|
|
135
|
-
docstatus: z.ZodNumber;
|
|
136
51
|
phone: z.ZodString;
|
|
137
|
-
is_primary_phone: z.ZodEffects<z.
|
|
138
|
-
|
|
139
|
-
|
|
52
|
+
is_primary_phone: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
53
|
+
__optionalForInput: true;
|
|
54
|
+
};
|
|
55
|
+
is_primary_mobile_no: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
56
|
+
__optionalForInput: true;
|
|
57
|
+
};
|
|
140
58
|
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
name: string;
|
|
142
|
-
doctype: string;
|
|
143
|
-
owner: string;
|
|
144
|
-
creation: string;
|
|
145
|
-
modified: string;
|
|
146
|
-
modified_by: string;
|
|
147
|
-
parent: string;
|
|
148
|
-
parentfield: string;
|
|
149
|
-
parenttype: string;
|
|
150
|
-
idx: number;
|
|
151
|
-
docstatus: number;
|
|
152
59
|
phone: string;
|
|
153
|
-
is_primary_phone:
|
|
154
|
-
is_primary_mobile_no:
|
|
60
|
+
is_primary_phone: 0 | 1;
|
|
61
|
+
is_primary_mobile_no: 0 | 1;
|
|
155
62
|
}, {
|
|
156
|
-
name: string;
|
|
157
|
-
doctype: string;
|
|
158
|
-
owner: string;
|
|
159
|
-
creation: string;
|
|
160
|
-
modified: string;
|
|
161
|
-
modified_by: string;
|
|
162
|
-
parent: string;
|
|
163
|
-
parentfield: string;
|
|
164
|
-
parenttype: string;
|
|
165
|
-
idx: number;
|
|
166
|
-
docstatus: number;
|
|
167
63
|
phone: string;
|
|
168
|
-
is_primary_phone
|
|
169
|
-
is_primary_mobile_no
|
|
64
|
+
is_primary_phone?: unknown;
|
|
65
|
+
is_primary_mobile_no?: unknown;
|
|
170
66
|
}>, "many">>>;
|
|
171
67
|
links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
172
|
-
name: z.ZodString;
|
|
173
|
-
owner: z.ZodString;
|
|
174
|
-
creation: z.ZodString;
|
|
175
|
-
modified: z.ZodString;
|
|
176
|
-
modified_by: z.ZodString;
|
|
177
|
-
parent: z.ZodString;
|
|
178
|
-
parentfield: z.ZodString;
|
|
179
|
-
parenttype: z.ZodString;
|
|
180
|
-
idx: z.ZodNumber;
|
|
181
|
-
docstatus: z.ZodNumber;
|
|
182
68
|
link_doctype: z.ZodString;
|
|
183
69
|
link_name: z.ZodString;
|
|
184
70
|
link_title: z.ZodString;
|
|
185
|
-
doctype: z.ZodString;
|
|
186
71
|
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
name: string;
|
|
188
|
-
doctype: string;
|
|
189
72
|
link_doctype: string;
|
|
190
73
|
link_name: string;
|
|
191
|
-
owner: string;
|
|
192
|
-
creation: string;
|
|
193
|
-
modified: string;
|
|
194
|
-
modified_by: string;
|
|
195
|
-
parent: string;
|
|
196
|
-
parentfield: string;
|
|
197
|
-
parenttype: string;
|
|
198
|
-
idx: number;
|
|
199
|
-
docstatus: number;
|
|
200
74
|
link_title: string;
|
|
201
75
|
}, {
|
|
202
|
-
name: string;
|
|
203
|
-
doctype: string;
|
|
204
76
|
link_doctype: string;
|
|
205
77
|
link_name: string;
|
|
206
|
-
owner: string;
|
|
207
|
-
creation: string;
|
|
208
|
-
modified: string;
|
|
209
|
-
modified_by: string;
|
|
210
|
-
parent: string;
|
|
211
|
-
parentfield: string;
|
|
212
|
-
parenttype: string;
|
|
213
|
-
idx: number;
|
|
214
|
-
docstatus: number;
|
|
215
78
|
link_title: string;
|
|
216
79
|
}>, "many">>>;
|
|
217
80
|
}, "strip", z.ZodTypeAny, {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
modified: string;
|
|
224
|
-
modified_by: string;
|
|
225
|
-
idx: number;
|
|
226
|
-
docstatus: number;
|
|
227
|
-
first_name: string;
|
|
228
|
-
email_ids: {
|
|
229
|
-
name: string;
|
|
230
|
-
doctype: string;
|
|
231
|
-
email_id: string;
|
|
232
|
-
owner: string;
|
|
233
|
-
creation: string;
|
|
234
|
-
modified: string;
|
|
235
|
-
modified_by: string;
|
|
236
|
-
parent: string;
|
|
237
|
-
parentfield: string;
|
|
238
|
-
parenttype: string;
|
|
239
|
-
idx: number;
|
|
240
|
-
docstatus: number;
|
|
241
|
-
is_primary: boolean;
|
|
242
|
-
}[];
|
|
243
|
-
sync_with_google_contacts: number;
|
|
244
|
-
pulled_from_google_contacts: boolean;
|
|
245
|
-
is_primary_contact: boolean;
|
|
246
|
-
is_billing_contact: boolean;
|
|
247
|
-
unsubscribed: boolean;
|
|
81
|
+
sync_with_google_contacts: 0 | 1;
|
|
82
|
+
pulled_from_google_contacts: 0 | 1;
|
|
83
|
+
is_primary_contact: 0 | 1;
|
|
84
|
+
is_billing_contact: 0 | 1;
|
|
85
|
+
unsubscribed: 0 | 1;
|
|
248
86
|
status?: string | null | undefined;
|
|
87
|
+
address?: string | null | undefined;
|
|
88
|
+
phone?: string | null | undefined;
|
|
89
|
+
email_id?: string | null | undefined;
|
|
249
90
|
links?: {
|
|
250
|
-
name: string;
|
|
251
|
-
doctype: string;
|
|
252
91
|
link_doctype: string;
|
|
253
92
|
link_name: string;
|
|
254
|
-
owner: string;
|
|
255
|
-
creation: string;
|
|
256
|
-
modified: string;
|
|
257
|
-
modified_by: string;
|
|
258
|
-
parent: string;
|
|
259
|
-
parentfield: string;
|
|
260
|
-
parenttype: string;
|
|
261
|
-
idx: number;
|
|
262
|
-
docstatus: number;
|
|
263
93
|
link_title: string;
|
|
264
94
|
}[] | null | undefined;
|
|
265
|
-
phone?: string | null | undefined;
|
|
266
95
|
image?: string | null | undefined;
|
|
267
96
|
company?: string | null | undefined;
|
|
268
|
-
|
|
97
|
+
first_name?: string | null | undefined;
|
|
269
98
|
middle_name?: string | null | undefined;
|
|
99
|
+
last_name?: string | null | undefined;
|
|
270
100
|
mobile_no?: string | null | undefined;
|
|
101
|
+
email_ids?: {
|
|
102
|
+
email_id: string;
|
|
103
|
+
is_primary: 0 | 1;
|
|
104
|
+
}[] | null | undefined;
|
|
271
105
|
phone_nos?: {
|
|
272
|
-
name: string;
|
|
273
|
-
doctype: string;
|
|
274
|
-
owner: string;
|
|
275
|
-
creation: string;
|
|
276
|
-
modified: string;
|
|
277
|
-
modified_by: string;
|
|
278
|
-
parent: string;
|
|
279
|
-
parentfield: string;
|
|
280
|
-
parenttype: string;
|
|
281
|
-
idx: number;
|
|
282
|
-
docstatus: number;
|
|
283
106
|
phone: string;
|
|
284
|
-
is_primary_phone:
|
|
285
|
-
is_primary_mobile_no:
|
|
107
|
+
is_primary_phone: 0 | 1;
|
|
108
|
+
is_primary_mobile_no: 0 | 1;
|
|
286
109
|
}[] | null | undefined;
|
|
287
110
|
}, {
|
|
288
|
-
name: string;
|
|
289
|
-
doctype: string;
|
|
290
|
-
email_id: string;
|
|
291
|
-
owner: string;
|
|
292
|
-
creation: string;
|
|
293
|
-
modified: string;
|
|
294
|
-
modified_by: string;
|
|
295
|
-
idx: number;
|
|
296
|
-
docstatus: number;
|
|
297
|
-
first_name: string;
|
|
298
|
-
email_ids: {
|
|
299
|
-
name: string;
|
|
300
|
-
doctype: string;
|
|
301
|
-
email_id: string;
|
|
302
|
-
owner: string;
|
|
303
|
-
creation: string;
|
|
304
|
-
modified: string;
|
|
305
|
-
modified_by: string;
|
|
306
|
-
parent: string;
|
|
307
|
-
parentfield: string;
|
|
308
|
-
parenttype: string;
|
|
309
|
-
idx: number;
|
|
310
|
-
docstatus: number;
|
|
311
|
-
is_primary: number;
|
|
312
|
-
}[];
|
|
313
|
-
sync_with_google_contacts: number;
|
|
314
|
-
pulled_from_google_contacts: number;
|
|
315
|
-
is_primary_contact: number;
|
|
316
|
-
is_billing_contact: number;
|
|
317
|
-
unsubscribed: number;
|
|
318
111
|
status?: string | null | undefined;
|
|
112
|
+
address?: string | null | undefined;
|
|
113
|
+
phone?: string | null | undefined;
|
|
114
|
+
email_id?: string | null | undefined;
|
|
319
115
|
links?: {
|
|
320
|
-
name: string;
|
|
321
|
-
doctype: string;
|
|
322
116
|
link_doctype: string;
|
|
323
117
|
link_name: string;
|
|
324
|
-
owner: string;
|
|
325
|
-
creation: string;
|
|
326
|
-
modified: string;
|
|
327
|
-
modified_by: string;
|
|
328
|
-
parent: string;
|
|
329
|
-
parentfield: string;
|
|
330
|
-
parenttype: string;
|
|
331
|
-
idx: number;
|
|
332
|
-
docstatus: number;
|
|
333
118
|
link_title: string;
|
|
334
119
|
}[] | null | undefined;
|
|
335
|
-
phone?: string | null | undefined;
|
|
336
120
|
image?: string | null | undefined;
|
|
337
121
|
company?: string | null | undefined;
|
|
338
|
-
|
|
122
|
+
first_name?: string | null | undefined;
|
|
339
123
|
middle_name?: string | null | undefined;
|
|
124
|
+
last_name?: string | null | undefined;
|
|
125
|
+
sync_with_google_contacts?: unknown;
|
|
340
126
|
mobile_no?: string | null | undefined;
|
|
127
|
+
pulled_from_google_contacts?: unknown;
|
|
128
|
+
is_primary_contact?: unknown;
|
|
129
|
+
is_billing_contact?: unknown;
|
|
130
|
+
unsubscribed?: unknown;
|
|
131
|
+
email_ids?: {
|
|
132
|
+
email_id: string;
|
|
133
|
+
is_primary?: unknown;
|
|
134
|
+
}[] | null | undefined;
|
|
341
135
|
phone_nos?: {
|
|
342
|
-
name: string;
|
|
343
|
-
doctype: string;
|
|
344
|
-
owner: string;
|
|
345
|
-
creation: string;
|
|
346
|
-
modified: string;
|
|
347
|
-
modified_by: string;
|
|
348
|
-
parent: string;
|
|
349
|
-
parentfield: string;
|
|
350
|
-
parenttype: string;
|
|
351
|
-
idx: number;
|
|
352
|
-
docstatus: number;
|
|
353
136
|
phone: string;
|
|
354
|
-
is_primary_phone
|
|
355
|
-
is_primary_mobile_no
|
|
137
|
+
is_primary_phone?: unknown;
|
|
138
|
+
is_primary_mobile_no?: unknown;
|
|
356
139
|
}[] | null | undefined;
|
|
357
140
|
}>;
|
|
358
|
-
export
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
creation: z.ZodString;
|
|
362
|
-
modified: z.ZodString;
|
|
363
|
-
modified_by: z.ZodString;
|
|
364
|
-
idx: z.ZodNumber;
|
|
365
|
-
docstatus: z.ZodNumber;
|
|
366
|
-
first_name: z.ZodString;
|
|
141
|
+
export type ContactType = z.infer<typeof Contact>;
|
|
142
|
+
declare const ContactInput: import("../../utils/zodContextOptionals").ResourceInputType<z.ZodObject<{
|
|
143
|
+
first_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
367
144
|
middle_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
368
145
|
company: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
369
146
|
last_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
370
|
-
email_id: z.ZodString
|
|
371
|
-
|
|
147
|
+
email_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
148
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
149
|
+
sync_with_google_contacts: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
150
|
+
__optionalForInput: true;
|
|
151
|
+
};
|
|
372
152
|
status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
373
153
|
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
374
154
|
mobile_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
375
155
|
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
376
|
-
pulled_from_google_contacts: z.ZodEffects<z.
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
parenttype: z.ZodString;
|
|
390
|
-
idx: z.ZodNumber;
|
|
391
|
-
docstatus: z.ZodNumber;
|
|
156
|
+
pulled_from_google_contacts: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
157
|
+
__optionalForInput: true;
|
|
158
|
+
};
|
|
159
|
+
is_primary_contact: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
160
|
+
__optionalForInput: true;
|
|
161
|
+
};
|
|
162
|
+
is_billing_contact: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
163
|
+
__optionalForInput: true;
|
|
164
|
+
};
|
|
165
|
+
unsubscribed: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
166
|
+
__optionalForInput: true;
|
|
167
|
+
};
|
|
168
|
+
email_ids: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
392
169
|
email_id: z.ZodString;
|
|
393
|
-
is_primary: z.ZodEffects<z.
|
|
394
|
-
|
|
170
|
+
is_primary: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
171
|
+
__optionalForInput: true;
|
|
172
|
+
};
|
|
395
173
|
}, "strip", z.ZodTypeAny, {
|
|
396
|
-
name: string;
|
|
397
|
-
doctype: string;
|
|
398
174
|
email_id: string;
|
|
399
|
-
|
|
400
|
-
creation: string;
|
|
401
|
-
modified: string;
|
|
402
|
-
modified_by: string;
|
|
403
|
-
parent: string;
|
|
404
|
-
parentfield: string;
|
|
405
|
-
parenttype: string;
|
|
406
|
-
idx: number;
|
|
407
|
-
docstatus: number;
|
|
408
|
-
is_primary: boolean;
|
|
175
|
+
is_primary: 0 | 1;
|
|
409
176
|
}, {
|
|
410
|
-
name: string;
|
|
411
|
-
doctype: string;
|
|
412
177
|
email_id: string;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
modified: string;
|
|
416
|
-
modified_by: string;
|
|
417
|
-
parent: string;
|
|
418
|
-
parentfield: string;
|
|
419
|
-
parenttype: string;
|
|
420
|
-
idx: number;
|
|
421
|
-
docstatus: number;
|
|
422
|
-
is_primary: number;
|
|
423
|
-
}>, "many">;
|
|
178
|
+
is_primary?: unknown;
|
|
179
|
+
}>, "many">>>;
|
|
424
180
|
phone_nos: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
425
|
-
name: z.ZodString;
|
|
426
|
-
owner: z.ZodString;
|
|
427
|
-
creation: z.ZodString;
|
|
428
|
-
modified: z.ZodString;
|
|
429
|
-
modified_by: z.ZodString;
|
|
430
|
-
parent: z.ZodString;
|
|
431
|
-
parentfield: z.ZodString;
|
|
432
|
-
parenttype: z.ZodString;
|
|
433
|
-
idx: z.ZodNumber;
|
|
434
|
-
docstatus: z.ZodNumber;
|
|
435
181
|
phone: z.ZodString;
|
|
436
|
-
is_primary_phone: z.ZodEffects<z.
|
|
437
|
-
|
|
438
|
-
|
|
182
|
+
is_primary_phone: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
183
|
+
__optionalForInput: true;
|
|
184
|
+
};
|
|
185
|
+
is_primary_mobile_no: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
186
|
+
__optionalForInput: true;
|
|
187
|
+
};
|
|
439
188
|
}, "strip", z.ZodTypeAny, {
|
|
440
|
-
name: string;
|
|
441
|
-
doctype: string;
|
|
442
|
-
owner: string;
|
|
443
|
-
creation: string;
|
|
444
|
-
modified: string;
|
|
445
|
-
modified_by: string;
|
|
446
|
-
parent: string;
|
|
447
|
-
parentfield: string;
|
|
448
|
-
parenttype: string;
|
|
449
|
-
idx: number;
|
|
450
|
-
docstatus: number;
|
|
451
189
|
phone: string;
|
|
452
|
-
is_primary_phone:
|
|
453
|
-
is_primary_mobile_no:
|
|
190
|
+
is_primary_phone: 0 | 1;
|
|
191
|
+
is_primary_mobile_no: 0 | 1;
|
|
454
192
|
}, {
|
|
455
|
-
name: string;
|
|
456
|
-
doctype: string;
|
|
457
|
-
owner: string;
|
|
458
|
-
creation: string;
|
|
459
|
-
modified: string;
|
|
460
|
-
modified_by: string;
|
|
461
|
-
parent: string;
|
|
462
|
-
parentfield: string;
|
|
463
|
-
parenttype: string;
|
|
464
|
-
idx: number;
|
|
465
|
-
docstatus: number;
|
|
466
193
|
phone: string;
|
|
467
|
-
is_primary_phone
|
|
468
|
-
is_primary_mobile_no
|
|
194
|
+
is_primary_phone?: unknown;
|
|
195
|
+
is_primary_mobile_no?: unknown;
|
|
469
196
|
}>, "many">>>;
|
|
470
197
|
links: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
471
|
-
name: z.ZodString;
|
|
472
|
-
owner: z.ZodString;
|
|
473
|
-
creation: z.ZodString;
|
|
474
|
-
modified: z.ZodString;
|
|
475
|
-
modified_by: z.ZodString;
|
|
476
|
-
parent: z.ZodString;
|
|
477
|
-
parentfield: z.ZodString;
|
|
478
|
-
parenttype: z.ZodString;
|
|
479
|
-
idx: z.ZodNumber;
|
|
480
|
-
docstatus: z.ZodNumber;
|
|
481
198
|
link_doctype: z.ZodString;
|
|
482
199
|
link_name: z.ZodString;
|
|
483
200
|
link_title: z.ZodString;
|
|
484
|
-
doctype: z.ZodString;
|
|
485
201
|
}, "strip", z.ZodTypeAny, {
|
|
486
|
-
name: string;
|
|
487
|
-
doctype: string;
|
|
488
202
|
link_doctype: string;
|
|
489
203
|
link_name: string;
|
|
490
|
-
owner: string;
|
|
491
|
-
creation: string;
|
|
492
|
-
modified: string;
|
|
493
|
-
modified_by: string;
|
|
494
|
-
parent: string;
|
|
495
|
-
parentfield: string;
|
|
496
|
-
parenttype: string;
|
|
497
|
-
idx: number;
|
|
498
|
-
docstatus: number;
|
|
499
204
|
link_title: string;
|
|
500
205
|
}, {
|
|
501
|
-
name: string;
|
|
502
|
-
doctype: string;
|
|
503
206
|
link_doctype: string;
|
|
504
207
|
link_name: string;
|
|
505
|
-
owner: string;
|
|
506
|
-
creation: string;
|
|
507
|
-
modified: string;
|
|
508
|
-
modified_by: string;
|
|
509
|
-
parent: string;
|
|
510
|
-
parentfield: string;
|
|
511
|
-
parenttype: string;
|
|
512
|
-
idx: number;
|
|
513
|
-
docstatus: number;
|
|
514
208
|
link_title: string;
|
|
515
209
|
}>, "many">>>;
|
|
516
|
-
},
|
|
517
|
-
|
|
210
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
211
|
+
sync_with_google_contacts: 0 | 1;
|
|
212
|
+
pulled_from_google_contacts: 0 | 1;
|
|
213
|
+
is_primary_contact: 0 | 1;
|
|
214
|
+
is_billing_contact: 0 | 1;
|
|
215
|
+
unsubscribed: 0 | 1;
|
|
216
|
+
status?: string | null | undefined;
|
|
217
|
+
address?: string | null | undefined;
|
|
218
|
+
phone?: string | null | undefined;
|
|
219
|
+
email_id?: string | null | undefined;
|
|
220
|
+
links?: {
|
|
221
|
+
link_doctype: string;
|
|
222
|
+
link_name: string;
|
|
223
|
+
link_title: string;
|
|
224
|
+
}[] | null | undefined;
|
|
225
|
+
image?: string | null | undefined;
|
|
226
|
+
company?: string | null | undefined;
|
|
227
|
+
first_name?: string | null | undefined;
|
|
228
|
+
middle_name?: string | null | undefined;
|
|
229
|
+
last_name?: string | null | undefined;
|
|
230
|
+
mobile_no?: string | null | undefined;
|
|
231
|
+
email_ids?: {
|
|
232
|
+
email_id: string;
|
|
233
|
+
is_primary: 0 | 1;
|
|
234
|
+
}[] | null | undefined;
|
|
235
|
+
phone_nos?: {
|
|
236
|
+
phone: string;
|
|
237
|
+
is_primary_phone: 0 | 1;
|
|
238
|
+
is_primary_mobile_no: 0 | 1;
|
|
239
|
+
}[] | null | undefined;
|
|
518
240
|
}, {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
241
|
+
status?: string | null | undefined;
|
|
242
|
+
address?: string | null | undefined;
|
|
243
|
+
phone?: string | null | undefined;
|
|
244
|
+
email_id?: string | null | undefined;
|
|
245
|
+
links?: {
|
|
246
|
+
link_doctype: string;
|
|
247
|
+
link_name: string;
|
|
248
|
+
link_title: string;
|
|
249
|
+
}[] | null | undefined;
|
|
250
|
+
image?: string | null | undefined;
|
|
251
|
+
company?: string | null | undefined;
|
|
252
|
+
first_name?: string | null | undefined;
|
|
253
|
+
middle_name?: string | null | undefined;
|
|
254
|
+
last_name?: string | null | undefined;
|
|
255
|
+
sync_with_google_contacts?: unknown;
|
|
256
|
+
mobile_no?: string | null | undefined;
|
|
257
|
+
pulled_from_google_contacts?: unknown;
|
|
258
|
+
is_primary_contact?: unknown;
|
|
259
|
+
is_billing_contact?: unknown;
|
|
260
|
+
unsubscribed?: unknown;
|
|
261
|
+
email_ids?: {
|
|
262
|
+
email_id: string;
|
|
263
|
+
is_primary?: unknown;
|
|
264
|
+
}[] | null | undefined;
|
|
265
|
+
phone_nos?: {
|
|
266
|
+
phone: string;
|
|
267
|
+
is_primary_phone?: unknown;
|
|
268
|
+
is_primary_mobile_no?: unknown;
|
|
269
|
+
}[] | null | undefined;
|
|
270
|
+
}>>;
|
|
271
|
+
export type ContactInputType = z.infer<typeof ContactInput>;
|
|
272
|
+
export {};
|