erpnext-queue-client 1.24.0 → 1.24.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.
@@ -326,6 +326,7 @@ export declare class ERPNextServicecase {
326
326
  modified: string;
327
327
  modified_by: string;
328
328
  attachments: {
329
+ type: "image" | "video";
329
330
  url: string;
330
331
  name: string;
331
332
  owner: string;
@@ -13,7 +13,9 @@ export declare const AttachmentCollection: z.ZodObject<{
13
13
  modified_by: z.ZodString;
14
14
  idx: z.ZodNumber;
15
15
  url: z.ZodString;
16
+ type: z.ZodEnum<["image", "video"]>;
16
17
  }, "strip", z.ZodTypeAny, {
18
+ type: "image" | "video";
17
19
  url: string;
18
20
  name: string;
19
21
  owner: string;
@@ -22,6 +24,7 @@ export declare const AttachmentCollection: z.ZodObject<{
22
24
  modified_by: string;
23
25
  idx: number;
24
26
  }, {
27
+ type: "image" | "video";
25
28
  url: string;
26
29
  name: string;
27
30
  owner: string;
@@ -37,6 +40,7 @@ export declare const AttachmentCollection: z.ZodObject<{
37
40
  modified: string;
38
41
  modified_by: string;
39
42
  attachments: {
43
+ type: "image" | "video";
40
44
  url: string;
41
45
  name: string;
42
46
  owner: string;
@@ -52,6 +56,7 @@ export declare const AttachmentCollection: z.ZodObject<{
52
56
  modified: string;
53
57
  modified_by: string;
54
58
  attachments: {
59
+ type: "image" | "video";
55
60
  url: string;
56
61
  name: string;
57
62
  owner: string;
@@ -61,19 +66,34 @@ export declare const AttachmentCollection: z.ZodObject<{
61
66
  idx: number;
62
67
  }[];
63
68
  }>;
64
- export declare const UpdateAttachmentCollectionInput: z.ZodArray<z.ZodObject<Omit<{
65
- name: z.ZodString;
66
- owner: z.ZodString;
67
- creation: z.ZodString;
68
- modified: z.ZodString;
69
- modified_by: z.ZodString;
70
- idx: z.ZodNumber;
71
- url: z.ZodString;
72
- }, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx">, "strip", z.ZodTypeAny, {
73
- url: string;
69
+ export declare const UpdateAttachmentCollectionInput: z.ZodObject<{
70
+ attachments: z.ZodArray<z.ZodObject<Omit<{
71
+ name: z.ZodString;
72
+ owner: z.ZodString;
73
+ creation: z.ZodString;
74
+ modified: z.ZodString;
75
+ modified_by: z.ZodString;
76
+ idx: z.ZodNumber;
77
+ url: z.ZodString;
78
+ type: z.ZodEnum<["image", "video"]>;
79
+ }, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx">, "strip", z.ZodTypeAny, {
80
+ type: "image" | "video";
81
+ url: string;
82
+ }, {
83
+ type: "image" | "video";
84
+ url: string;
85
+ }>, "many">;
86
+ }, "strip", z.ZodTypeAny, {
87
+ attachments: {
88
+ type: "image" | "video";
89
+ url: string;
90
+ }[];
74
91
  }, {
75
- url: string;
76
- }>, "many">;
92
+ attachments: {
93
+ type: "image" | "video";
94
+ url: string;
95
+ }[];
96
+ }>;
77
97
  export declare const InternalReasonCollection: z.ZodObject<{
78
98
  name: z.ZodString;
79
99
  owner: z.ZodString;
@@ -136,19 +156,29 @@ export declare const InternalReasonCollection: z.ZodObject<{
136
156
  internal_reason: string;
137
157
  }[];
138
158
  }>;
139
- export declare const UpdateInternalReasonCollectionInput: z.ZodArray<z.ZodObject<Omit<{
140
- name: z.ZodString;
141
- owner: z.ZodString;
142
- creation: z.ZodString;
143
- modified: z.ZodString;
144
- modified_by: z.ZodString;
145
- idx: z.ZodNumber;
146
- internal_reason: z.ZodString;
147
- }, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx">, "strip", z.ZodTypeAny, {
148
- internal_reason: string;
159
+ export declare const UpdateInternalReasonCollectionInput: z.ZodObject<{
160
+ internal_reasons: z.ZodArray<z.ZodObject<Omit<{
161
+ name: z.ZodString;
162
+ owner: z.ZodString;
163
+ creation: z.ZodString;
164
+ modified: z.ZodString;
165
+ modified_by: z.ZodString;
166
+ idx: z.ZodNumber;
167
+ internal_reason: z.ZodString;
168
+ }, "name" | "owner" | "creation" | "modified" | "modified_by" | "idx">, "strip", z.ZodTypeAny, {
169
+ internal_reason: string;
170
+ }, {
171
+ internal_reason: string;
172
+ }>, "many">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ internal_reasons: {
175
+ internal_reason: string;
176
+ }[];
149
177
  }, {
150
- internal_reason: string;
151
- }>, "many">;
178
+ internal_reasons: {
179
+ internal_reason: string;
180
+ }[];
181
+ }>;
152
182
  export declare const ReturnItemBase: z.ZodObject<{
153
183
  item: z.ZodString;
154
184
  line_item_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -25,6 +25,7 @@ const AttachmentChildTableEntry = zod_1.z.object({
25
25
  modified_by: zod_1.z.string(),
26
26
  idx: zod_1.z.number(),
27
27
  url: zod_1.z.string(),
28
+ type: zod_1.z.enum(["image", "video"]),
28
29
  });
29
30
  exports.AttachmentCollection = zod_1.z
30
31
  .object({
@@ -37,14 +38,16 @@ exports.AttachmentCollection = zod_1.z
37
38
  })
38
39
  .describe("AttachmentCollection");
39
40
  exports.UpdateAttachmentCollectionInput = zod_1.z
40
- .array(AttachmentChildTableEntry.omit({
41
- name: true,
42
- owner: true,
43
- creation: true,
44
- modified: true,
45
- modified_by: true,
46
- idx: true,
47
- }))
41
+ .object({
42
+ attachments: zod_1.z.array(AttachmentChildTableEntry.omit({
43
+ name: true,
44
+ owner: true,
45
+ creation: true,
46
+ modified: true,
47
+ modified_by: true,
48
+ idx: true,
49
+ })),
50
+ })
48
51
  .describe("UpdateAttachmentCollectionInput");
49
52
  const InternalReasonChildTableEntry = zod_1.z.object({
50
53
  name: zod_1.z.string(),
@@ -66,14 +69,16 @@ exports.InternalReasonCollection = zod_1.z
66
69
  })
67
70
  .describe("InternalReasonCollection");
68
71
  exports.UpdateInternalReasonCollectionInput = zod_1.z
69
- .array(InternalReasonChildTableEntry.omit({
70
- name: true,
71
- owner: true,
72
- creation: true,
73
- modified: true,
74
- modified_by: true,
75
- idx: true,
76
- }))
72
+ .object({
73
+ internal_reasons: zod_1.z.array(InternalReasonChildTableEntry.omit({
74
+ name: true,
75
+ owner: true,
76
+ creation: true,
77
+ modified: true,
78
+ modified_by: true,
79
+ idx: true,
80
+ })),
81
+ })
77
82
  .describe("UpdateInternalReasonCollectionInput");
78
83
  // Base type to prevent having to use omit combined with extend, not to be used directly
79
84
  exports.ReturnItemBase = zod_1.z
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "winston": "^3.15.0",
26
26
  "zod": "^3.24.1"
27
27
  },
28
- "version": "1.24.0",
28
+ "version": "1.24.2",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",