erpnext-queue-client 1.22.2 → 1.22.3

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.
@@ -288,7 +288,10 @@ export declare class ERPNextServicecase {
288
288
  modified: string;
289
289
  modified_by: string;
290
290
  idx: number;
291
- attachments: string[];
291
+ attachments: {
292
+ type: "image" | "video";
293
+ url: string;
294
+ }[];
292
295
  internal_reasons: string[];
293
296
  item: string;
294
297
  return_quantity: number;
@@ -309,7 +309,16 @@ export declare const ReturnItemExtended: z.ZodObject<{
309
309
  modified: z.ZodString;
310
310
  modified_by: z.ZodString;
311
311
  idx: z.ZodNumber;
312
- attachments: z.ZodArray<z.ZodString, "many">;
312
+ attachments: z.ZodArray<z.ZodObject<{
313
+ url: z.ZodString;
314
+ type: z.ZodEnum<["image", "video"]>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ type: "image" | "video";
317
+ url: string;
318
+ }, {
319
+ type: "image" | "video";
320
+ url: string;
321
+ }>, "many">;
313
322
  is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
314
323
  attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
315
324
  internal_reasons: z.ZodArray<z.ZodString, "many">;
@@ -321,7 +330,10 @@ export declare const ReturnItemExtended: z.ZodObject<{
321
330
  modified: string;
322
331
  modified_by: string;
323
332
  idx: number;
324
- attachments: string[];
333
+ attachments: {
334
+ type: "image" | "video";
335
+ url: string;
336
+ }[];
325
337
  internal_reasons: string[];
326
338
  item: string;
327
339
  return_quantity: number;
@@ -342,7 +354,10 @@ export declare const ReturnItemExtended: z.ZodObject<{
342
354
  modified: string;
343
355
  modified_by: string;
344
356
  idx: number;
345
- attachments: string[];
357
+ attachments: {
358
+ type: "image" | "video";
359
+ url: string;
360
+ }[];
346
361
  internal_reasons: string[];
347
362
  item: string;
348
363
  return_quantity: number;
@@ -710,7 +725,16 @@ export declare const ServicecaseExtended: z.ZodObject<{
710
725
  modified: z.ZodString;
711
726
  modified_by: z.ZodString;
712
727
  idx: z.ZodNumber;
713
- attachments: z.ZodArray<z.ZodString, "many">;
728
+ attachments: z.ZodArray<z.ZodObject<{
729
+ url: z.ZodString;
730
+ type: z.ZodEnum<["image", "video"]>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ type: "image" | "video";
733
+ url: string;
734
+ }, {
735
+ type: "image" | "video";
736
+ url: string;
737
+ }>, "many">;
714
738
  is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
715
739
  attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
716
740
  internal_reasons: z.ZodArray<z.ZodString, "many">;
@@ -722,7 +746,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
722
746
  modified: string;
723
747
  modified_by: string;
724
748
  idx: number;
725
- attachments: string[];
749
+ attachments: {
750
+ type: "image" | "video";
751
+ url: string;
752
+ }[];
726
753
  internal_reasons: string[];
727
754
  item: string;
728
755
  return_quantity: number;
@@ -743,7 +770,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
743
770
  modified: string;
744
771
  modified_by: string;
745
772
  idx: number;
746
- attachments: string[];
773
+ attachments: {
774
+ type: "image" | "video";
775
+ url: string;
776
+ }[];
747
777
  internal_reasons: string[];
748
778
  item: string;
749
779
  return_quantity: number;
@@ -781,7 +811,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
781
811
  modified: string;
782
812
  modified_by: string;
783
813
  idx: number;
784
- attachments: string[];
814
+ attachments: {
815
+ type: "image" | "video";
816
+ url: string;
817
+ }[];
785
818
  internal_reasons: string[];
786
819
  item: string;
787
820
  return_quantity: number;
@@ -820,7 +853,10 @@ export declare const ServicecaseExtended: z.ZodObject<{
820
853
  modified: string;
821
854
  modified_by: string;
822
855
  idx: number;
823
- attachments: string[];
856
+ attachments: {
857
+ type: "image" | "video";
858
+ url: string;
859
+ }[];
824
860
  internal_reasons: string[];
825
861
  item: string;
826
862
  return_quantity: number;
@@ -879,7 +915,16 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
879
915
  modified: z.ZodString;
880
916
  modified_by: z.ZodString;
881
917
  idx: z.ZodNumber;
882
- attachments: z.ZodArray<z.ZodString, "many">;
918
+ attachments: z.ZodArray<z.ZodObject<{
919
+ url: z.ZodString;
920
+ type: z.ZodEnum<["image", "video"]>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ type: "image" | "video";
923
+ url: string;
924
+ }, {
925
+ type: "image" | "video";
926
+ url: string;
927
+ }>, "many">;
883
928
  is_complaint: z.ZodEffects<z.ZodNumber, boolean, number>;
884
929
  attachments_collection_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
885
930
  internal_reasons: z.ZodArray<z.ZodString, "many">;
@@ -891,7 +936,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
891
936
  modified: string;
892
937
  modified_by: string;
893
938
  idx: number;
894
- attachments: string[];
939
+ attachments: {
940
+ type: "image" | "video";
941
+ url: string;
942
+ }[];
895
943
  internal_reasons: string[];
896
944
  item: string;
897
945
  return_quantity: number;
@@ -912,7 +960,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
912
960
  modified: string;
913
961
  modified_by: string;
914
962
  idx: number;
915
- attachments: string[];
963
+ attachments: {
964
+ type: "image" | "video";
965
+ url: string;
966
+ }[];
916
967
  internal_reasons: string[];
917
968
  item: string;
918
969
  return_quantity: number;
@@ -950,7 +1001,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
950
1001
  modified: string;
951
1002
  modified_by: string;
952
1003
  idx: number;
953
- attachments: string[];
1004
+ attachments: {
1005
+ type: "image" | "video";
1006
+ url: string;
1007
+ }[];
954
1008
  internal_reasons: string[];
955
1009
  item: string;
956
1010
  return_quantity: number;
@@ -989,7 +1043,10 @@ export declare const ServicecaseMethodResponse: z.ZodArray<z.ZodObject<{
989
1043
  modified: string;
990
1044
  modified_by: string;
991
1045
  idx: number;
992
- attachments: string[];
1046
+ attachments: {
1047
+ type: "image" | "video";
1048
+ url: string;
1049
+ }[];
993
1050
  internal_reasons: string[];
994
1051
  item: string;
995
1052
  return_quantity: number;
@@ -110,7 +110,7 @@ exports.ReturnItemExtended = exports.ReturnItemBase.extend({
110
110
  modified: zod_1.z.string(),
111
111
  modified_by: zod_1.z.string(),
112
112
  idx: zod_1.z.number(),
113
- attachments: zod_1.z.array(zod_1.z.string()),
113
+ attachments: zod_1.z.array(zod_1.z.object({ url: zod_1.z.string(), type: zod_1.z.enum(["image", "video"]) })),
114
114
  is_complaint: zod_1.z.number().transform(Boolean),
115
115
  attachments_collection_name: zod_1.z.string().optional().nullable(),
116
116
  internal_reasons: zod_1.z.array(zod_1.z.string()),
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.22.2",
28
+ "version": "1.22.3",
29
29
  "devDependencies": {
30
30
  "@types/crypto-js": "^4.2.2",
31
31
  "@types/lodash": "^4.17.13",