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.
Files changed (75) hide show
  1. package/dist/client.d.ts +6 -16
  2. package/dist/client.js +51 -51
  3. package/dist/erpnext/decryptFromErpNext.server.d.ts +1 -1
  4. package/dist/erpnext/decryptFromErpNext.server.test.js +3 -3
  5. package/dist/erpnext/doctypeResourceRequest.d.ts +38 -0
  6. package/dist/erpnext/doctypeResourceRequest.js +59 -0
  7. package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +8 -0
  8. package/dist/erpnext/doctypeSubmittableResourceRequest.js +39 -0
  9. package/dist/erpnext/doctypes/address.d.ts +263 -0
  10. package/dist/erpnext/doctypes/address.js +46 -0
  11. package/dist/erpnext/doctypes/contact.d.ts +383 -0
  12. package/dist/erpnext/doctypes/contact.js +46 -0
  13. package/dist/erpnext/doctypes/deliveryNote.d.ts +985 -0
  14. package/dist/erpnext/doctypes/deliveryNote.js +38 -0
  15. package/dist/erpnext/doctypes/item.d.ts +572 -0
  16. package/dist/erpnext/doctypes/item.js +95 -0
  17. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +743 -0
  18. package/dist/erpnext/doctypes/purchaseReceipt.js +50 -0
  19. package/dist/erpnext/doctypes/shipment.d.ts +752 -0
  20. package/dist/erpnext/doctypes/shipment.js +51 -0
  21. package/dist/erpnext/erpnextRequestWrapper.js +15 -13
  22. package/dist/erpnext/fileRequests.d.ts +10 -0
  23. package/dist/erpnext/fileRequests.js +42 -0
  24. package/dist/erpnext/methodRequest.d.ts +15 -0
  25. package/dist/erpnext/methodRequest.js +32 -0
  26. package/dist/erpnext/model/Address.d.ts +200 -198
  27. package/dist/erpnext/model/Address.js +3 -2
  28. package/dist/erpnext/model/Contact.d.ts +343 -344
  29. package/dist/erpnext/model/Contact.js +2 -2
  30. package/dist/erpnext/model/Country.d.ts +83 -31
  31. package/dist/erpnext/model/Country.js +2 -6
  32. package/dist/erpnext/model/Customer.d.ts +64 -65
  33. package/dist/erpnext/model/Customer.js +2 -2
  34. package/dist/erpnext/model/DeliveryNote.d.ts +1048 -1048
  35. package/dist/erpnext/model/DispatchRun.d.ts +399 -399
  36. package/dist/erpnext/model/DispatcherPreset.d.ts +94 -94
  37. package/dist/erpnext/model/ERPNextQueue.d.ts +8 -7
  38. package/dist/erpnext/model/ERPNextRequest.d.ts +55 -21
  39. package/dist/erpnext/model/ERPNextResponse.d.ts +4 -4
  40. package/dist/erpnext/model/File.d.ts +88 -88
  41. package/dist/erpnext/model/Fulfiller.d.ts +97 -97
  42. package/dist/erpnext/model/FulfillerSettings.d.ts +66 -66
  43. package/dist/erpnext/model/FulfillmentStation.d.ts +2 -2
  44. package/dist/erpnext/model/Item.d.ts +821 -821
  45. package/dist/erpnext/model/Item.js +2 -2
  46. package/dist/erpnext/model/PaymentEntry.d.ts +197 -0
  47. package/dist/erpnext/model/PaymentEntry.js +63 -0
  48. package/dist/erpnext/model/ProjectedQuantityReport.d.ts +178 -178
  49. package/dist/erpnext/model/PurchaseOrder.d.ts +534 -534
  50. package/dist/erpnext/model/Receipt.d.ts +456 -456
  51. package/dist/erpnext/model/Receipt.js +2 -2
  52. package/dist/erpnext/model/ReceiptDraft.d.ts +394 -394
  53. package/dist/erpnext/model/Shipment.d.ts +708 -708
  54. package/dist/erpnext/model/ShippingProvider.d.ts +198 -198
  55. package/dist/erpnext/model/StockEntry.d.ts +248 -0
  56. package/dist/erpnext/model/StockEntry.js +76 -0
  57. package/dist/erpnext/model/StockReconciliation.d.ts +187 -0
  58. package/dist/erpnext/model/StockReconciliation.js +44 -0
  59. package/dist/erpnext/model/Supplier.d.ts +105 -0
  60. package/dist/erpnext/model/Supplier.js +39 -0
  61. package/dist/erpnext/model/Waitlist.d.ts +32 -0
  62. package/dist/erpnext/model/Waitlist.js +19 -0
  63. package/dist/erpnext/model/WarehouseCategory.d.ts +6 -6
  64. package/dist/erpnext/resourceRequest.d.ts +45 -0
  65. package/dist/erpnext/resourceRequest.js +135 -0
  66. package/dist/index.d.ts +52 -1
  67. package/dist/index.js +56 -12
  68. package/dist/utils/fernet.server.d.ts +11 -11
  69. package/dist/utils/fernet.server.js +0 -1
  70. package/dist/utils/request.js +2 -2
  71. package/dist/utils/zodUtils.d.ts +2 -1
  72. package/dist/utils/zodUtils.js +14 -1
  73. package/package.json +4 -1
  74. package/dist/erpnext/erpnextRequests.d.ts +0 -1786
  75. 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?: 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;
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?: string;
30
- owner?: string;
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?: 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;
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?: string;
84
- owner?: string;
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?: 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
- is_simulation_mode?: number;
109
- fulfiller_priority?: {
110
- name?: string;
111
- owner?: string;
112
- creation?: Date;
113
- modified?: Date;
114
- modified_by?: string;
115
- parent?: string;
116
- parentfield?: string;
117
- parenttype?: string;
118
- idx?: number;
119
- docstatus?: number;
120
- doctype?: string;
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?: string;
125
- owner?: string;
126
- creation?: unknown;
127
- modified?: unknown;
128
- modified_by?: string;
129
- idx?: number;
130
- docstatus?: number;
131
- doctype?: string;
132
- title?: string;
133
- fulfiller?: string;
134
- is_active?: number;
135
- is_simulation_mode?: number;
136
- fulfiller_priority?: {
137
- name?: string;
138
- owner?: string;
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?: string;
155
+ name: string;
156
156
  }, {
157
- name?: string;
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 ERPNextQueueClientContructorOptions {
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
- export interface ERPNextRequestOptions<T extends ZodTypeAny, K extends ZodTypeAny> {
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
- * In case of a resource route: the type of resource to be called
6
- */
7
- resourceName?: string;
8
- /**
9
- * In case of a resource route: the id of the resource to be called or undefined for list calls
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
- * The method name to be called
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: T | false;
26
- inputValidationModel?: K | false;
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?: Record<string, unknown> | Record<string, unknown>[] | [string, ...unknown[]][];
5
+ data: Record<string, unknown> | Record<string, unknown>[] | [string][];
6
6
  }, {
7
- data?: Record<string, unknown> | Record<string, unknown>[] | [string, ...unknown[]][];
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?: Record<string, unknown> | Record<string, unknown>[];
13
+ message: Record<string, unknown> | Record<string, unknown>[];
14
14
  }, {
15
- message?: Record<string, unknown> | Record<string, unknown>[];
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?: string;
27
- owner?: string;
28
- creation?: string;
29
- modified?: string;
30
- modified_by?: string;
31
- idx?: number;
32
- docstatus?: number;
33
- doctype?: string;
34
- file_name?: string;
35
- is_private?: number;
36
- is_home_folder?: number;
37
- is_attachments_folder?: number;
38
- file_size?: number;
39
- file_url?: string;
40
- folder?: string;
41
- is_folder?: number;
42
- attached_to_doctype?: string;
43
- attached_to_name?: string;
44
- content_hash?: string;
45
- s3_file_key?: string;
46
- uploaded_to_dropbox?: number;
47
- uploaded_to_google_drive?: number;
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?: string;
50
- owner?: string;
51
- creation?: string;
52
- modified?: string;
53
- modified_by?: string;
54
- idx?: number;
55
- docstatus?: number;
56
- doctype?: string;
57
- file_name?: string;
58
- is_private?: number;
59
- is_home_folder?: number;
60
- is_attachments_folder?: number;
61
- file_size?: number;
62
- file_url?: string;
63
- folder?: string;
64
- is_folder?: number;
65
- attached_to_doctype?: string;
66
- attached_to_name?: string;
67
- content_hash?: string;
68
- s3_file_key?: string;
69
- uploaded_to_dropbox?: number;
70
- uploaded_to_google_drive?: number;
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?: 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_size?: number;
113
- file_url?: string;
114
- folder?: string;
115
- is_folder?: number;
116
- attached_to_doctype?: string;
117
- attached_to_name?: string;
118
- content_hash?: string;
119
- s3_file_key?: string;
120
- uploaded_to_dropbox?: number;
121
- uploaded_to_google_drive?: number;
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?: 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_size?: number;
136
- file_url?: string;
137
- folder?: string;
138
- is_folder?: number;
139
- attached_to_doctype?: string;
140
- attached_to_name?: string;
141
- content_hash?: string;
142
- s3_file_key?: string;
143
- uploaded_to_dropbox?: number;
144
- uploaded_to_google_drive?: number;
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>;