erpnext-queue-client 1.0.5 → 1.1.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.d.ts +6 -16
- package/dist/client.js +51 -51
- package/dist/erpnext/decryptFromErpNext.server.d.ts +1 -1
- package/dist/erpnext/decryptFromErpNext.server.test.js +3 -3
- package/dist/erpnext/doctypeResourceRequest.d.ts +38 -0
- package/dist/erpnext/doctypeResourceRequest.js +59 -0
- package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +8 -0
- package/dist/erpnext/doctypeSubmittableResourceRequest.js +39 -0
- package/dist/erpnext/doctypes/address.d.ts +263 -0
- package/dist/erpnext/doctypes/address.js +46 -0
- package/dist/erpnext/doctypes/contact.d.ts +383 -0
- package/dist/erpnext/doctypes/contact.js +46 -0
- package/dist/erpnext/doctypes/deliveryNote.d.ts +985 -0
- package/dist/erpnext/doctypes/deliveryNote.js +38 -0
- package/dist/erpnext/doctypes/item.d.ts +572 -0
- package/dist/erpnext/doctypes/item.js +95 -0
- package/dist/erpnext/doctypes/purchaseReceipt.d.ts +743 -0
- package/dist/erpnext/doctypes/purchaseReceipt.js +50 -0
- package/dist/erpnext/doctypes/shipment.d.ts +752 -0
- package/dist/erpnext/doctypes/shipment.js +51 -0
- package/dist/erpnext/erpnextRequestWrapper.js +15 -13
- package/dist/erpnext/fileRequests.d.ts +10 -0
- package/dist/erpnext/fileRequests.js +42 -0
- package/dist/erpnext/methodRequest.d.ts +15 -0
- package/dist/erpnext/methodRequest.js +32 -0
- package/dist/erpnext/model/Address.d.ts +200 -198
- package/dist/erpnext/model/Address.js +3 -2
- package/dist/erpnext/model/Contact.d.ts +343 -344
- package/dist/erpnext/model/Contact.js +2 -2
- package/dist/erpnext/model/Country.d.ts +83 -31
- package/dist/erpnext/model/Country.js +2 -6
- package/dist/erpnext/model/Customer.d.ts +64 -65
- package/dist/erpnext/model/Customer.js +2 -2
- package/dist/erpnext/model/DeliveryNote.d.ts +1048 -1048
- package/dist/erpnext/model/DispatchRun.d.ts +399 -399
- package/dist/erpnext/model/DispatcherPreset.d.ts +94 -94
- package/dist/erpnext/model/ERPNextQueue.d.ts +8 -7
- package/dist/erpnext/model/ERPNextRequest.d.ts +55 -21
- package/dist/erpnext/model/ERPNextResponse.d.ts +4 -4
- package/dist/erpnext/model/File.d.ts +88 -88
- package/dist/erpnext/model/Fulfiller.d.ts +97 -97
- package/dist/erpnext/model/FulfillerSettings.d.ts +66 -66
- package/dist/erpnext/model/FulfillmentStation.d.ts +2 -2
- package/dist/erpnext/model/Item.d.ts +821 -821
- package/dist/erpnext/model/Item.js +2 -2
- package/dist/erpnext/model/PaymentEntry.d.ts +197 -0
- package/dist/erpnext/model/PaymentEntry.js +63 -0
- package/dist/erpnext/model/ProjectedQuantityReport.d.ts +178 -178
- package/dist/erpnext/model/PurchaseOrder.d.ts +534 -534
- package/dist/erpnext/model/Receipt.d.ts +456 -456
- package/dist/erpnext/model/Receipt.js +2 -2
- package/dist/erpnext/model/ReceiptDraft.d.ts +394 -394
- package/dist/erpnext/model/Shipment.d.ts +708 -708
- package/dist/erpnext/model/ShippingProvider.d.ts +198 -198
- package/dist/erpnext/model/StockEntry.d.ts +248 -0
- package/dist/erpnext/model/StockEntry.js +76 -0
- package/dist/erpnext/model/StockReconciliation.d.ts +187 -0
- package/dist/erpnext/model/StockReconciliation.js +44 -0
- package/dist/erpnext/model/Supplier.d.ts +105 -0
- package/dist/erpnext/model/Supplier.js +39 -0
- package/dist/erpnext/model/Waitlist.d.ts +32 -0
- package/dist/erpnext/model/Waitlist.js +19 -0
- package/dist/erpnext/model/WarehouseCategory.d.ts +6 -6
- package/dist/erpnext/resourceRequest.d.ts +45 -0
- package/dist/erpnext/resourceRequest.js +135 -0
- package/dist/index.d.ts +52 -1
- package/dist/index.js +56 -12
- package/dist/utils/fernet.server.d.ts +11 -11
- package/dist/utils/fernet.server.js +0 -1
- package/dist/utils/request.js +2 -2
- package/dist/utils/zodUtils.d.ts +2 -1
- package/dist/utils/zodUtils.js +14 -1
- package/package.json +4 -1
- package/dist/erpnext/erpnextRequests.d.ts +0 -1786
- package/dist/erpnext/erpnextRequests.js +0 -339
|
@@ -13,31 +13,31 @@ declare const DispatcherPresetFulfillerPriority: z.ZodObject<{
|
|
|
13
13
|
fulfiller: z.ZodString;
|
|
14
14
|
doctype: z.ZodString;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
name
|
|
17
|
-
owner
|
|
18
|
-
creation
|
|
19
|
-
modified
|
|
20
|
-
modified_by
|
|
21
|
-
parent
|
|
22
|
-
parentfield
|
|
23
|
-
parenttype
|
|
24
|
-
idx
|
|
25
|
-
docstatus
|
|
26
|
-
doctype
|
|
27
|
-
fulfiller
|
|
16
|
+
name: string;
|
|
17
|
+
owner: string;
|
|
18
|
+
creation: Date;
|
|
19
|
+
modified: Date;
|
|
20
|
+
modified_by: string;
|
|
21
|
+
parent: string;
|
|
22
|
+
parentfield: string;
|
|
23
|
+
parenttype: string;
|
|
24
|
+
idx: number;
|
|
25
|
+
docstatus: number;
|
|
26
|
+
doctype: string;
|
|
27
|
+
fulfiller: string;
|
|
28
28
|
}, {
|
|
29
|
-
name
|
|
30
|
-
owner
|
|
29
|
+
name: string;
|
|
30
|
+
owner: string;
|
|
31
|
+
modified_by: string;
|
|
32
|
+
parent: string;
|
|
33
|
+
parentfield: string;
|
|
34
|
+
parenttype: string;
|
|
35
|
+
idx: number;
|
|
36
|
+
docstatus: number;
|
|
37
|
+
doctype: string;
|
|
38
|
+
fulfiller: string;
|
|
31
39
|
creation?: unknown;
|
|
32
40
|
modified?: unknown;
|
|
33
|
-
modified_by?: string;
|
|
34
|
-
parent?: string;
|
|
35
|
-
parentfield?: string;
|
|
36
|
-
parenttype?: string;
|
|
37
|
-
idx?: number;
|
|
38
|
-
docstatus?: number;
|
|
39
|
-
doctype?: string;
|
|
40
|
-
fulfiller?: string;
|
|
41
41
|
}>;
|
|
42
42
|
export type DispatcherPresetFulfillerPriorityType = z.infer<typeof DispatcherPresetFulfillerPriority>;
|
|
43
43
|
export declare const ERPNextDispatcherPreset: z.ZodObject<{
|
|
@@ -67,93 +67,93 @@ export declare const ERPNextDispatcherPreset: z.ZodObject<{
|
|
|
67
67
|
fulfiller: z.ZodString;
|
|
68
68
|
doctype: z.ZodString;
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
name
|
|
71
|
-
owner
|
|
72
|
-
creation
|
|
73
|
-
modified
|
|
74
|
-
modified_by
|
|
75
|
-
parent
|
|
76
|
-
parentfield
|
|
77
|
-
parenttype
|
|
78
|
-
idx
|
|
79
|
-
docstatus
|
|
80
|
-
doctype
|
|
81
|
-
fulfiller
|
|
70
|
+
name: string;
|
|
71
|
+
owner: string;
|
|
72
|
+
creation: Date;
|
|
73
|
+
modified: Date;
|
|
74
|
+
modified_by: string;
|
|
75
|
+
parent: string;
|
|
76
|
+
parentfield: string;
|
|
77
|
+
parenttype: string;
|
|
78
|
+
idx: number;
|
|
79
|
+
docstatus: number;
|
|
80
|
+
doctype: string;
|
|
81
|
+
fulfiller: string;
|
|
82
82
|
}, {
|
|
83
|
-
name
|
|
84
|
-
owner
|
|
83
|
+
name: string;
|
|
84
|
+
owner: string;
|
|
85
|
+
modified_by: string;
|
|
86
|
+
parent: string;
|
|
87
|
+
parentfield: string;
|
|
88
|
+
parenttype: string;
|
|
89
|
+
idx: number;
|
|
90
|
+
docstatus: number;
|
|
91
|
+
doctype: string;
|
|
92
|
+
fulfiller: string;
|
|
85
93
|
creation?: unknown;
|
|
86
94
|
modified?: unknown;
|
|
87
|
-
modified_by?: string;
|
|
88
|
-
parent?: string;
|
|
89
|
-
parentfield?: string;
|
|
90
|
-
parenttype?: string;
|
|
91
|
-
idx?: number;
|
|
92
|
-
docstatus?: number;
|
|
93
|
-
doctype?: string;
|
|
94
|
-
fulfiller?: string;
|
|
95
95
|
}>, "many">;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
name
|
|
98
|
-
owner
|
|
99
|
-
creation
|
|
100
|
-
modified
|
|
101
|
-
modified_by
|
|
102
|
-
idx
|
|
103
|
-
docstatus
|
|
104
|
-
doctype
|
|
105
|
-
title
|
|
106
|
-
fulfiller
|
|
107
|
-
is_active
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
fulfiller?: string;
|
|
97
|
+
name: string;
|
|
98
|
+
owner: string;
|
|
99
|
+
creation: Date;
|
|
100
|
+
modified: Date;
|
|
101
|
+
modified_by: string;
|
|
102
|
+
idx: number;
|
|
103
|
+
docstatus: number;
|
|
104
|
+
doctype: string;
|
|
105
|
+
title: string;
|
|
106
|
+
fulfiller: string;
|
|
107
|
+
is_active: boolean;
|
|
108
|
+
fulfiller_priority: {
|
|
109
|
+
name: string;
|
|
110
|
+
owner: string;
|
|
111
|
+
creation: Date;
|
|
112
|
+
modified: Date;
|
|
113
|
+
modified_by: string;
|
|
114
|
+
parent: string;
|
|
115
|
+
parentfield: string;
|
|
116
|
+
parenttype: string;
|
|
117
|
+
idx: number;
|
|
118
|
+
docstatus: number;
|
|
119
|
+
doctype: string;
|
|
120
|
+
fulfiller: string;
|
|
122
121
|
}[];
|
|
122
|
+
is_simulation_mode?: number | null | undefined;
|
|
123
123
|
}, {
|
|
124
|
-
name
|
|
125
|
-
owner
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
124
|
+
name: string;
|
|
125
|
+
owner: string;
|
|
126
|
+
modified_by: string;
|
|
127
|
+
idx: number;
|
|
128
|
+
docstatus: number;
|
|
129
|
+
doctype: string;
|
|
130
|
+
title: string;
|
|
131
|
+
fulfiller: string;
|
|
132
|
+
is_active: number;
|
|
133
|
+
fulfiller_priority: {
|
|
134
|
+
name: string;
|
|
135
|
+
owner: string;
|
|
136
|
+
modified_by: string;
|
|
137
|
+
parent: string;
|
|
138
|
+
parentfield: string;
|
|
139
|
+
parenttype: string;
|
|
140
|
+
idx: number;
|
|
141
|
+
docstatus: number;
|
|
142
|
+
doctype: string;
|
|
143
|
+
fulfiller: string;
|
|
139
144
|
creation?: unknown;
|
|
140
145
|
modified?: unknown;
|
|
141
|
-
modified_by?: string;
|
|
142
|
-
parent?: string;
|
|
143
|
-
parentfield?: string;
|
|
144
|
-
parenttype?: string;
|
|
145
|
-
idx?: number;
|
|
146
|
-
docstatus?: number;
|
|
147
|
-
doctype?: string;
|
|
148
|
-
fulfiller?: string;
|
|
149
146
|
}[];
|
|
147
|
+
creation?: unknown;
|
|
148
|
+
modified?: unknown;
|
|
149
|
+
is_simulation_mode?: number | null | undefined;
|
|
150
150
|
}>;
|
|
151
151
|
export type DispatcherPresetType = z.infer<typeof ERPNextDispatcherPreset>;
|
|
152
152
|
export declare const ERPNextDispatcherPresetList: z.ZodArray<z.ZodObject<{
|
|
153
153
|
name: z.ZodString;
|
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
name
|
|
155
|
+
name: string;
|
|
156
156
|
}, {
|
|
157
|
-
name
|
|
157
|
+
name: string;
|
|
158
158
|
}>, "many">;
|
|
159
159
|
export {};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { Client } from "@temporalio/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
export interface
|
|
3
|
+
export interface TemporalClientContructorOptions {
|
|
4
4
|
/**
|
|
5
5
|
* @description You can provide either an existing temporal client or temporalCredentials to initialize a new one.
|
|
6
6
|
*/
|
|
7
7
|
client?: Client;
|
|
8
|
+
temporalHost?: string;
|
|
9
|
+
temporalCert?: string;
|
|
10
|
+
temporalKey?: string;
|
|
11
|
+
temporalNamespace?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ERPNextQueueClientContructorOptions {
|
|
8
14
|
/**
|
|
9
15
|
* @description You can provide either temporalCredentials or an existing temporal client.
|
|
10
16
|
*/
|
|
11
|
-
temporalCredentials
|
|
12
|
-
temporalHost?: string;
|
|
13
|
-
temporalCert?: string;
|
|
14
|
-
temporalKey?: string;
|
|
15
|
-
temporalNamespace?: string;
|
|
16
|
-
};
|
|
17
|
+
temporalCredentials: TemporalClientContructorOptions;
|
|
17
18
|
/**
|
|
18
19
|
* @description Downloading and uploading files requires a direct connection to ERPNext
|
|
19
20
|
* Please provide the credentials to enable features related to file transfers to or from ERPNext
|
|
@@ -1,29 +1,63 @@
|
|
|
1
1
|
import { TypeOf, ZodTypeAny } from "zod";
|
|
2
|
-
|
|
2
|
+
interface ERPNextResourceGenericRequestOptions<T extends ZodTypeAny, K extends ZodTypeAny> {
|
|
3
|
+
resourceName: string;
|
|
4
|
+
resourceId: string;
|
|
5
|
+
requestMethod: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
6
|
+
params?: string;
|
|
7
|
+
responseValidationModel?: T | undefined;
|
|
8
|
+
headers?: Record<string, string>;
|
|
3
9
|
url?: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
}
|
|
11
|
+
interface ERPNextResourceGetRequestOptions<T extends ZodTypeAny, K extends ZodTypeAny> {
|
|
12
|
+
resourceName: string;
|
|
13
|
+
resourceId: string;
|
|
14
|
+
requestMethod: "GET";
|
|
15
|
+
params?: string;
|
|
16
|
+
responseValidationModel?: T | undefined;
|
|
17
|
+
headers?: Record<string, string>;
|
|
18
|
+
}
|
|
19
|
+
interface ERPNextResourceGetListRequestOptions<T extends ZodTypeAny, K extends ZodTypeAny> {
|
|
20
|
+
resourceName: string;
|
|
21
|
+
requestMethod: "GET";
|
|
22
|
+
responseValidationModel?: T | undefined;
|
|
23
|
+
params?: string;
|
|
24
|
+
headers?: Record<string, string>;
|
|
25
|
+
}
|
|
26
|
+
interface ERPNextResourcePostRequestOptions<T extends ZodTypeAny, K extends ZodTypeAny> {
|
|
27
|
+
resourceName: string;
|
|
28
|
+
requestMethod: "POST";
|
|
29
|
+
responseValidationModel?: T | undefined;
|
|
30
|
+
inputValidationModel?: K | undefined;
|
|
31
|
+
params?: string;
|
|
32
|
+
body: K extends undefined ? Partial<TypeOf<T>> : TypeOf<K>;
|
|
33
|
+
headers?: Record<string, string>;
|
|
34
|
+
}
|
|
35
|
+
export interface ERPNextResourcePutRequestOptions<T extends ZodTypeAny, K extends ZodTypeAny> {
|
|
36
|
+
resourceName: string;
|
|
37
|
+
resourceId?: string;
|
|
38
|
+
requestMethod: "PUT" | "PATCH";
|
|
39
|
+
responseValidationModel?: T | undefined;
|
|
40
|
+
inputValidationModel?: K;
|
|
41
|
+
params?: string;
|
|
42
|
+
body: TypeOf<K>;
|
|
43
|
+
headers?: Record<string, string>;
|
|
44
|
+
}
|
|
45
|
+
export interface ERPNextResourceDeleteRequestOptions<T extends ZodTypeAny, K extends ZodTypeAny> {
|
|
46
|
+
resourceName: string;
|
|
11
47
|
resourceId?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
methodName?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Custom URI to be called, baseUrl will be prepended
|
|
18
|
-
*/
|
|
19
|
-
uri?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Custom params to be appended to the URI, starting with a question mark
|
|
22
|
-
*/
|
|
48
|
+
requestMethod: "DELETE";
|
|
49
|
+
responseValidationModel?: T | undefined;
|
|
23
50
|
params?: string;
|
|
51
|
+
headers?: Record<string, string>;
|
|
52
|
+
}
|
|
53
|
+
export interface ERPNextMethodRequestOptions<T extends ZodTypeAny, K extends ZodTypeAny> {
|
|
54
|
+
methodName: string;
|
|
24
55
|
requestMethod: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
25
|
-
responseValidationModel
|
|
26
|
-
inputValidationModel?: K
|
|
56
|
+
responseValidationModel?: T | undefined;
|
|
57
|
+
inputValidationModel?: K;
|
|
27
58
|
body?: TypeOf<K>;
|
|
59
|
+
params?: string;
|
|
28
60
|
headers?: Record<string, string>;
|
|
29
61
|
}
|
|
62
|
+
export type ERPNextRequestOptions<T extends ZodTypeAny, K extends ZodTypeAny> = ERPNextResourceGetRequestOptions<T, K> | ERPNextResourceGetListRequestOptions<T, K> | ERPNextResourcePostRequestOptions<T, K> | ERPNextResourcePutRequestOptions<T, K> | ERPNextResourceDeleteRequestOptions<T, K> | ERPNextMethodRequestOptions<T, K> | ERPNextResourceGenericRequestOptions<T, K>;
|
|
63
|
+
export {};
|
|
@@ -2,16 +2,16 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const ERPNextResourceResponse: z.ZodObject<{
|
|
3
3
|
data: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, z.ZodArray<z.ZodTuple<[z.ZodString], null>, "many">]>;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
data
|
|
5
|
+
data: Record<string, unknown> | Record<string, unknown>[] | [string][];
|
|
6
6
|
}, {
|
|
7
|
-
data
|
|
7
|
+
data: Record<string, unknown> | Record<string, unknown>[] | [string][];
|
|
8
8
|
}>;
|
|
9
9
|
export type ERPNextResourceResponseType = z.infer<typeof ERPNextResourceResponse>;
|
|
10
10
|
export declare const ERPNextMethodResponse: z.ZodObject<{
|
|
11
11
|
message: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
message
|
|
13
|
+
message: Record<string, unknown> | Record<string, unknown>[];
|
|
14
14
|
}, {
|
|
15
|
-
message
|
|
15
|
+
message: Record<string, unknown> | Record<string, unknown>[];
|
|
16
16
|
}>;
|
|
17
17
|
export type ERPNextMethodResponseType = z.infer<typeof ERPNextMethodResponse>;
|
|
@@ -23,51 +23,51 @@ export declare const ERPNextFile: z.ZodObject<{
|
|
|
23
23
|
uploaded_to_google_drive: z.ZodNumber;
|
|
24
24
|
doctype: z.ZodString;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
name
|
|
27
|
-
owner
|
|
28
|
-
creation
|
|
29
|
-
modified
|
|
30
|
-
modified_by
|
|
31
|
-
idx
|
|
32
|
-
docstatus
|
|
33
|
-
doctype
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
name: string;
|
|
27
|
+
owner: string;
|
|
28
|
+
creation: string;
|
|
29
|
+
modified: string;
|
|
30
|
+
modified_by: string;
|
|
31
|
+
idx: number;
|
|
32
|
+
docstatus: number;
|
|
33
|
+
doctype: string;
|
|
34
|
+
is_private: number;
|
|
35
|
+
is_home_folder: number;
|
|
36
|
+
is_attachments_folder: number;
|
|
37
|
+
is_folder: number;
|
|
38
|
+
uploaded_to_dropbox: number;
|
|
39
|
+
uploaded_to_google_drive: number;
|
|
40
|
+
file_name?: string | null | undefined;
|
|
41
|
+
file_size?: number | null | undefined;
|
|
42
|
+
file_url?: string | null | undefined;
|
|
43
|
+
folder?: string | null | undefined;
|
|
44
|
+
attached_to_doctype?: string | null | undefined;
|
|
45
|
+
attached_to_name?: string | null | undefined;
|
|
46
|
+
content_hash?: string | null | undefined;
|
|
47
|
+
s3_file_key?: string | null | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
name
|
|
50
|
-
owner
|
|
51
|
-
creation
|
|
52
|
-
modified
|
|
53
|
-
modified_by
|
|
54
|
-
idx
|
|
55
|
-
docstatus
|
|
56
|
-
doctype
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
49
|
+
name: string;
|
|
50
|
+
owner: string;
|
|
51
|
+
creation: string;
|
|
52
|
+
modified: string;
|
|
53
|
+
modified_by: string;
|
|
54
|
+
idx: number;
|
|
55
|
+
docstatus: number;
|
|
56
|
+
doctype: string;
|
|
57
|
+
is_private: number;
|
|
58
|
+
is_home_folder: number;
|
|
59
|
+
is_attachments_folder: number;
|
|
60
|
+
is_folder: number;
|
|
61
|
+
uploaded_to_dropbox: number;
|
|
62
|
+
uploaded_to_google_drive: number;
|
|
63
|
+
file_name?: string | null | undefined;
|
|
64
|
+
file_size?: number | null | undefined;
|
|
65
|
+
file_url?: string | null | undefined;
|
|
66
|
+
folder?: string | null | undefined;
|
|
67
|
+
attached_to_doctype?: string | null | undefined;
|
|
68
|
+
attached_to_name?: string | null | undefined;
|
|
69
|
+
content_hash?: string | null | undefined;
|
|
70
|
+
s3_file_key?: string | null | undefined;
|
|
71
71
|
}>;
|
|
72
72
|
export type ERPNextFileType = z.infer<typeof ERPNextFile>;
|
|
73
73
|
export declare const ERPNextValidatedFile: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
@@ -97,50 +97,50 @@ export declare const ERPNextValidatedFile: z.ZodObject<z.objectUtil.extendShape<
|
|
|
97
97
|
file_name: z.ZodString;
|
|
98
98
|
file_url: z.ZodString;
|
|
99
99
|
}>, "strip", z.ZodTypeAny, {
|
|
100
|
-
name
|
|
101
|
-
owner
|
|
102
|
-
creation
|
|
103
|
-
modified
|
|
104
|
-
modified_by
|
|
105
|
-
idx
|
|
106
|
-
docstatus
|
|
107
|
-
doctype
|
|
108
|
-
file_name
|
|
109
|
-
is_private
|
|
110
|
-
is_home_folder
|
|
111
|
-
is_attachments_folder
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
100
|
+
name: string;
|
|
101
|
+
owner: string;
|
|
102
|
+
creation: string;
|
|
103
|
+
modified: string;
|
|
104
|
+
modified_by: string;
|
|
105
|
+
idx: number;
|
|
106
|
+
docstatus: number;
|
|
107
|
+
doctype: string;
|
|
108
|
+
file_name: string;
|
|
109
|
+
is_private: number;
|
|
110
|
+
is_home_folder: number;
|
|
111
|
+
is_attachments_folder: number;
|
|
112
|
+
file_url: string;
|
|
113
|
+
is_folder: number;
|
|
114
|
+
uploaded_to_dropbox: number;
|
|
115
|
+
uploaded_to_google_drive: number;
|
|
116
|
+
file_size?: number | null | undefined;
|
|
117
|
+
folder?: string | null | undefined;
|
|
118
|
+
attached_to_doctype?: string | null | undefined;
|
|
119
|
+
attached_to_name?: string | null | undefined;
|
|
120
|
+
content_hash?: string | null | undefined;
|
|
121
|
+
s3_file_key?: string | null | undefined;
|
|
122
122
|
}, {
|
|
123
|
-
name
|
|
124
|
-
owner
|
|
125
|
-
creation
|
|
126
|
-
modified
|
|
127
|
-
modified_by
|
|
128
|
-
idx
|
|
129
|
-
docstatus
|
|
130
|
-
doctype
|
|
131
|
-
file_name
|
|
132
|
-
is_private
|
|
133
|
-
is_home_folder
|
|
134
|
-
is_attachments_folder
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
123
|
+
name: string;
|
|
124
|
+
owner: string;
|
|
125
|
+
creation: string;
|
|
126
|
+
modified: string;
|
|
127
|
+
modified_by: string;
|
|
128
|
+
idx: number;
|
|
129
|
+
docstatus: number;
|
|
130
|
+
doctype: string;
|
|
131
|
+
file_name: string;
|
|
132
|
+
is_private: number;
|
|
133
|
+
is_home_folder: number;
|
|
134
|
+
is_attachments_folder: number;
|
|
135
|
+
file_url: string;
|
|
136
|
+
is_folder: number;
|
|
137
|
+
uploaded_to_dropbox: number;
|
|
138
|
+
uploaded_to_google_drive: number;
|
|
139
|
+
file_size?: number | null | undefined;
|
|
140
|
+
folder?: string | null | undefined;
|
|
141
|
+
attached_to_doctype?: string | null | undefined;
|
|
142
|
+
attached_to_name?: string | null | undefined;
|
|
143
|
+
content_hash?: string | null | undefined;
|
|
144
|
+
s3_file_key?: string | null | undefined;
|
|
145
145
|
}>;
|
|
146
146
|
export type ERPNextValidatedFileType = z.infer<typeof ERPNextValidatedFile>;
|