exnet-routing 1.2.34 → 1.2.35

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.
@@ -3,11 +3,13 @@ import { UserRoutesType } from "./../routes/user";
3
3
  import { DriverRoutesType } from "./../routes/driver";
4
4
  import { AdminRoutesType } from "./../routes/admin";
5
5
  import { OpsRoutesType } from "./../routes/ops";
6
+ import { UploadRoutesType } from "./../routes/upload";
6
7
  export declare const index: {
7
8
  user: UserRoutesType;
8
9
  public: PublicRoutesType;
9
10
  admin: AdminRoutesType;
10
11
  ops: OpsRoutesType;
11
12
  driver: DriverRoutesType;
13
+ upload: UploadRoutesType;
12
14
  };
13
15
  export type ApiService = typeof index;
@@ -7,10 +7,12 @@ const _type_1 = require("./api/_type");
7
7
  const driver_1 = require("./../routes/driver");
8
8
  const admin_1 = require("./../routes/admin");
9
9
  const ops_1 = require("./../routes/ops");
10
+ const upload_1 = require("./../routes/upload");
10
11
  exports.index = (0, _type_1.IApiType)({
11
12
  user: user_1.userRoutes,
12
13
  public: public_1.publicRoutes,
13
14
  admin: admin_1.adminRoutes,
14
15
  ops: ops_1.opsRoutes,
15
16
  driver: driver_1.driverRoutes,
17
+ upload: upload_1.uploadRoutes,
16
18
  });
@@ -1335,25 +1335,31 @@ export declare const CreateSupportTicketUserSchema: z.ZodObject<{
1335
1335
  readonly URGENT: "urgent";
1336
1336
  }>>;
1337
1337
  shippingId: z.ZodOptional<z.ZodNumber>;
1338
+ fileUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1338
1339
  }, "strip", z.ZodTypeAny, {
1339
1340
  message: string;
1340
1341
  category: "tracking" | "other" | "general" | "delivery_issue" | "complaint" | "billing";
1341
1342
  subject: string;
1342
1343
  shippingId?: number | undefined;
1343
1344
  priority?: "low" | "medium" | "high" | "urgent" | undefined;
1345
+ fileUuids?: string[] | undefined;
1344
1346
  }, {
1345
1347
  message: string;
1346
1348
  category: "tracking" | "other" | "general" | "delivery_issue" | "complaint" | "billing";
1347
1349
  subject: string;
1348
1350
  shippingId?: number | undefined;
1349
1351
  priority?: "low" | "medium" | "high" | "urgent" | undefined;
1352
+ fileUuids?: string[] | undefined;
1350
1353
  }>;
1351
1354
  export declare const CreateSupportMessageSchema: z.ZodObject<{
1352
1355
  message: z.ZodString;
1356
+ fileUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1353
1357
  }, "strip", z.ZodTypeAny, {
1354
1358
  message: string;
1359
+ fileUuids?: string[] | undefined;
1355
1360
  }, {
1356
1361
  message: string;
1362
+ fileUuids?: string[] | undefined;
1357
1363
  }>;
1358
1364
  export declare const UpdateSupportTicketOpsSchema: z.ZodObject<{
1359
1365
  status: z.ZodOptional<z.ZodNativeEnum<{
@@ -106,9 +106,11 @@ exports.CreateSupportTicketUserSchema = zod_1.z.object({
106
106
  category: zod_1.z.nativeEnum(exports.ChatCategoryEnum),
107
107
  priority: zod_1.z.nativeEnum(exports.ChatPriorityEnum).optional(),
108
108
  shippingId: zod_1.z.number().optional(),
109
+ fileUuids: zod_1.z.array(zod_1.z.string().uuid()).optional(),
109
110
  });
110
111
  exports.CreateSupportMessageSchema = zod_1.z.object({
111
112
  message: zod_1.z.string().min(1),
113
+ fileUuids: zod_1.z.array(zod_1.z.string().uuid()).optional(),
112
114
  });
113
115
  exports.UpdateSupportTicketOpsSchema = zod_1.z.object({
114
116
  status: zod_1.z.nativeEnum(exports.ChatStatusEnum).optional(),
@@ -2097,7 +2097,7 @@ export declare const PackageShippingSchema: z.ZodObject<{
2097
2097
  typeDiagnobagId: z.ZodOptional<z.ZodNumber>;
2098
2098
  emballageId: z.ZodOptional<z.ZodNumber>;
2099
2099
  nbrDiagnobag: z.ZodOptional<z.ZodNumber>;
2100
- documents: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2100
+ documentUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2101
2101
  }, "strip", z.ZodTypeAny, {
2102
2102
  length: number;
2103
2103
  additionalInsurance: boolean;
@@ -2106,7 +2106,6 @@ export declare const PackageShippingSchema: z.ZodObject<{
2106
2106
  weight: number;
2107
2107
  description: string;
2108
2108
  additionalInsuranceAmount?: number | undefined;
2109
- documents?: any[] | undefined;
2110
2109
  hasEmballage?: boolean | undefined;
2111
2110
  nbrDiagnobag?: number | undefined;
2112
2111
  hasSonde?: boolean | undefined;
@@ -2114,6 +2113,7 @@ export declare const PackageShippingSchema: z.ZodObject<{
2114
2113
  emballageId?: number | undefined;
2115
2114
  typeSondeId?: number | undefined;
2116
2115
  typeDiagnobagId?: number | undefined;
2116
+ documentUuids?: string[] | undefined;
2117
2117
  }, {
2118
2118
  length: number;
2119
2119
  additionalInsurance: boolean;
@@ -2122,7 +2122,6 @@ export declare const PackageShippingSchema: z.ZodObject<{
2122
2122
  weight: number;
2123
2123
  description: string;
2124
2124
  additionalInsuranceAmount?: number | undefined;
2125
- documents?: any[] | undefined;
2126
2125
  hasEmballage?: boolean | undefined;
2127
2126
  nbrDiagnobag?: number | undefined;
2128
2127
  hasSonde?: boolean | undefined;
@@ -2130,12 +2129,13 @@ export declare const PackageShippingSchema: z.ZodObject<{
2130
2129
  emballageId?: number | undefined;
2131
2130
  typeSondeId?: number | undefined;
2132
2131
  typeDiagnobagId?: number | undefined;
2132
+ documentUuids?: string[] | undefined;
2133
2133
  }>;
2134
2134
  export declare const CourseShippingSchema: z.ZodObject<{
2135
2135
  packageDescription: z.ZodString;
2136
2136
  additionalInsurance: z.ZodBoolean;
2137
2137
  additionalInsuranceAmount: z.ZodOptional<z.ZodNumber>;
2138
- documents: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2138
+ documentUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2139
2139
  valeurDouane: z.ZodOptional<z.ZodString>;
2140
2140
  porteur: z.ZodString;
2141
2141
  nombreRoue: z.ZodString;
@@ -2145,16 +2145,16 @@ export declare const CourseShippingSchema: z.ZodObject<{
2145
2145
  porteur: string;
2146
2146
  nombreRoue: string;
2147
2147
  additionalInsuranceAmount?: number | undefined;
2148
- documents?: any[] | undefined;
2149
2148
  valeurDouane?: string | undefined;
2149
+ documentUuids?: string[] | undefined;
2150
2150
  }, {
2151
2151
  packageDescription: string;
2152
2152
  additionalInsurance: boolean;
2153
2153
  porteur: string;
2154
2154
  nombreRoue: string;
2155
2155
  additionalInsuranceAmount?: number | undefined;
2156
- documents?: any[] | undefined;
2157
2156
  valeurDouane?: string | undefined;
2157
+ documentUuids?: string[] | undefined;
2158
2158
  }>;
2159
2159
  export declare const BackAndForthSchema: z.ZodObject<{
2160
2160
  expeditor: z.ZodObject<{
@@ -2791,7 +2791,7 @@ export declare const ShippingStoreSchema: z.ZodObject<{
2791
2791
  typeDiagnobagId: z.ZodOptional<z.ZodNumber>;
2792
2792
  emballageId: z.ZodOptional<z.ZodNumber>;
2793
2793
  nbrDiagnobag: z.ZodOptional<z.ZodNumber>;
2794
- documents: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2794
+ documentUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2795
2795
  }, "strip", z.ZodTypeAny, {
2796
2796
  length: number;
2797
2797
  additionalInsurance: boolean;
@@ -2800,7 +2800,6 @@ export declare const ShippingStoreSchema: z.ZodObject<{
2800
2800
  weight: number;
2801
2801
  description: string;
2802
2802
  additionalInsuranceAmount?: number | undefined;
2803
- documents?: any[] | undefined;
2804
2803
  hasEmballage?: boolean | undefined;
2805
2804
  nbrDiagnobag?: number | undefined;
2806
2805
  hasSonde?: boolean | undefined;
@@ -2808,6 +2807,7 @@ export declare const ShippingStoreSchema: z.ZodObject<{
2808
2807
  emballageId?: number | undefined;
2809
2808
  typeSondeId?: number | undefined;
2810
2809
  typeDiagnobagId?: number | undefined;
2810
+ documentUuids?: string[] | undefined;
2811
2811
  }, {
2812
2812
  length: number;
2813
2813
  additionalInsurance: boolean;
@@ -2816,7 +2816,6 @@ export declare const ShippingStoreSchema: z.ZodObject<{
2816
2816
  weight: number;
2817
2817
  description: string;
2818
2818
  additionalInsuranceAmount?: number | undefined;
2819
- documents?: any[] | undefined;
2820
2819
  hasEmballage?: boolean | undefined;
2821
2820
  nbrDiagnobag?: number | undefined;
2822
2821
  hasSonde?: boolean | undefined;
@@ -2824,12 +2823,13 @@ export declare const ShippingStoreSchema: z.ZodObject<{
2824
2823
  emballageId?: number | undefined;
2825
2824
  typeSondeId?: number | undefined;
2826
2825
  typeDiagnobagId?: number | undefined;
2826
+ documentUuids?: string[] | undefined;
2827
2827
  }>, "many">>;
2828
2828
  dataCourse: z.ZodOptional<z.ZodObject<{
2829
2829
  packageDescription: z.ZodString;
2830
2830
  additionalInsurance: z.ZodBoolean;
2831
2831
  additionalInsuranceAmount: z.ZodOptional<z.ZodNumber>;
2832
- documents: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2832
+ documentUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2833
2833
  valeurDouane: z.ZodOptional<z.ZodString>;
2834
2834
  porteur: z.ZodString;
2835
2835
  nombreRoue: z.ZodString;
@@ -2839,16 +2839,16 @@ export declare const ShippingStoreSchema: z.ZodObject<{
2839
2839
  porteur: string;
2840
2840
  nombreRoue: string;
2841
2841
  additionalInsuranceAmount?: number | undefined;
2842
- documents?: any[] | undefined;
2843
2842
  valeurDouane?: string | undefined;
2843
+ documentUuids?: string[] | undefined;
2844
2844
  }, {
2845
2845
  packageDescription: string;
2846
2846
  additionalInsurance: boolean;
2847
2847
  porteur: string;
2848
2848
  nombreRoue: string;
2849
2849
  additionalInsuranceAmount?: number | undefined;
2850
- documents?: any[] | undefined;
2851
2850
  valeurDouane?: string | undefined;
2851
+ documentUuids?: string[] | undefined;
2852
2852
  }>>;
2853
2853
  }, "strip", z.ZodTypeAny, {
2854
2854
  shippingInfo: {
@@ -2939,7 +2939,6 @@ export declare const ShippingStoreSchema: z.ZodObject<{
2939
2939
  weight: number;
2940
2940
  description: string;
2941
2941
  additionalInsuranceAmount?: number | undefined;
2942
- documents?: any[] | undefined;
2943
2942
  hasEmballage?: boolean | undefined;
2944
2943
  nbrDiagnobag?: number | undefined;
2945
2944
  hasSonde?: boolean | undefined;
@@ -2947,6 +2946,7 @@ export declare const ShippingStoreSchema: z.ZodObject<{
2947
2946
  emballageId?: number | undefined;
2948
2947
  typeSondeId?: number | undefined;
2949
2948
  typeDiagnobagId?: number | undefined;
2949
+ documentUuids?: string[] | undefined;
2950
2950
  }[] | undefined;
2951
2951
  dataCourse?: {
2952
2952
  packageDescription: string;
@@ -2954,8 +2954,8 @@ export declare const ShippingStoreSchema: z.ZodObject<{
2954
2954
  porteur: string;
2955
2955
  nombreRoue: string;
2956
2956
  additionalInsuranceAmount?: number | undefined;
2957
- documents?: any[] | undefined;
2958
2957
  valeurDouane?: string | undefined;
2958
+ documentUuids?: string[] | undefined;
2959
2959
  } | undefined;
2960
2960
  }, {
2961
2961
  shippingInfo: {
@@ -3046,7 +3046,6 @@ export declare const ShippingStoreSchema: z.ZodObject<{
3046
3046
  weight: number;
3047
3047
  description: string;
3048
3048
  additionalInsuranceAmount?: number | undefined;
3049
- documents?: any[] | undefined;
3050
3049
  hasEmballage?: boolean | undefined;
3051
3050
  nbrDiagnobag?: number | undefined;
3052
3051
  hasSonde?: boolean | undefined;
@@ -3054,6 +3053,7 @@ export declare const ShippingStoreSchema: z.ZodObject<{
3054
3053
  emballageId?: number | undefined;
3055
3054
  typeSondeId?: number | undefined;
3056
3055
  typeDiagnobagId?: number | undefined;
3056
+ documentUuids?: string[] | undefined;
3057
3057
  }[] | undefined;
3058
3058
  dataCourse?: {
3059
3059
  packageDescription: string;
@@ -3061,8 +3061,8 @@ export declare const ShippingStoreSchema: z.ZodObject<{
3061
3061
  porteur: string;
3062
3062
  nombreRoue: string;
3063
3063
  additionalInsuranceAmount?: number | undefined;
3064
- documents?: any[] | undefined;
3065
3064
  valeurDouane?: string | undefined;
3065
+ documentUuids?: string[] | undefined;
3066
3066
  } | undefined;
3067
3067
  }>;
3068
3068
  export type IContactShipping = z.infer<typeof ContactShippingSchema>;
@@ -224,13 +224,13 @@ exports.PackageShippingSchema = zod_1.z.object({
224
224
  typeDiagnobagId: zod_1.z.number().min(1).optional(),
225
225
  emballageId: zod_1.z.number().min(1).optional(),
226
226
  nbrDiagnobag: zod_1.z.number().min(1).optional(),
227
- documents: zod_1.z.array(zod_1.z.any()).optional(),
227
+ documentUuids: zod_1.z.array(zod_1.z.string().uuid()).optional(),
228
228
  });
229
229
  exports.CourseShippingSchema = zod_1.z.object({
230
230
  packageDescription: zod_1.z.string().trim(),
231
231
  additionalInsurance: zod_1.z.boolean(),
232
232
  additionalInsuranceAmount: zod_1.z.number().min(0.1).optional(),
233
- documents: zod_1.z.array(zod_1.z.any()).optional(),
233
+ documentUuids: zod_1.z.array(zod_1.z.string().uuid()).optional(),
234
234
  valeurDouane: zod_1.z.string().trim().optional(),
235
235
  porteur: zod_1.z.string().trim(),
236
236
  nombreRoue: zod_1.z.string().trim(),
@@ -0,0 +1,162 @@
1
+ import { z } from "zod";
2
+ import { DateTime } from "luxon";
3
+ export declare const UploadContextEnum: {
4
+ readonly CHAT: "chat";
5
+ readonly IMAGE: "image";
6
+ readonly DOCUMENT: "document";
7
+ readonly EXCEL: "excel";
8
+ readonly PDF: "pdf";
9
+ readonly PDF_FACTURE: "pdf_facture";
10
+ readonly QRCODE: "qrcode";
11
+ };
12
+ export declare const UploadStatusEnum: {
13
+ readonly PENDING: "pending";
14
+ readonly UPLOADED: "uploaded";
15
+ readonly DELETED: "deleted";
16
+ };
17
+ export type UploadContext = (typeof UploadContextEnum)[keyof typeof UploadContextEnum];
18
+ export type UploadStatus = (typeof UploadStatusEnum)[keyof typeof UploadStatusEnum];
19
+ export declare const UploadSchema: z.ZodObject<{
20
+ id: z.ZodNumber;
21
+ uuid: z.ZodString;
22
+ userId: z.ZodNumber;
23
+ originalName: z.ZodString;
24
+ fileName: z.ZodNullable<z.ZodString>;
25
+ filePath: z.ZodNullable<z.ZodString>;
26
+ mimeType: z.ZodString;
27
+ fileSize: z.ZodNumber;
28
+ context: z.ZodNativeEnum<{
29
+ readonly CHAT: "chat";
30
+ readonly IMAGE: "image";
31
+ readonly DOCUMENT: "document";
32
+ readonly EXCEL: "excel";
33
+ readonly PDF: "pdf";
34
+ readonly PDF_FACTURE: "pdf_facture";
35
+ readonly QRCODE: "qrcode";
36
+ }>;
37
+ status: z.ZodNativeEnum<{
38
+ readonly PENDING: "pending";
39
+ readonly UPLOADED: "uploaded";
40
+ readonly DELETED: "deleted";
41
+ }>;
42
+ expiresAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, DateTime<true> | DateTime<false>, string | Date>;
43
+ createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, DateTime<true> | DateTime<false>, string | Date>;
44
+ updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, DateTime<true> | DateTime<false>, string | Date>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ id: number;
47
+ createdAt: DateTime<true> | DateTime<false>;
48
+ status: "pending" | "uploaded" | "deleted";
49
+ updatedAt: DateTime<true> | DateTime<false>;
50
+ userId: number;
51
+ expiresAt: DateTime<true> | DateTime<false>;
52
+ uuid: string;
53
+ originalName: string;
54
+ fileName: string | null;
55
+ filePath: string | null;
56
+ mimeType: string;
57
+ fileSize: number;
58
+ context: "image" | "document" | "chat" | "excel" | "pdf" | "pdf_facture" | "qrcode";
59
+ }, {
60
+ id: number;
61
+ createdAt: string | Date;
62
+ status: "pending" | "uploaded" | "deleted";
63
+ updatedAt: string | Date;
64
+ userId: number;
65
+ expiresAt: string | Date;
66
+ uuid: string;
67
+ originalName: string;
68
+ fileName: string | null;
69
+ filePath: string | null;
70
+ mimeType: string;
71
+ fileSize: number;
72
+ context: "image" | "document" | "chat" | "excel" | "pdf" | "pdf_facture" | "qrcode";
73
+ }>;
74
+ export type IUpload = z.infer<typeof UploadSchema>;
75
+ export declare const PresignUploadBodySchema: z.ZodObject<{
76
+ context: z.ZodNativeEnum<{
77
+ readonly CHAT: "chat";
78
+ readonly IMAGE: "image";
79
+ readonly DOCUMENT: "document";
80
+ readonly EXCEL: "excel";
81
+ readonly PDF: "pdf";
82
+ readonly PDF_FACTURE: "pdf_facture";
83
+ readonly QRCODE: "qrcode";
84
+ }>;
85
+ fileName: z.ZodString;
86
+ mimeType: z.ZodString;
87
+ fileSize: z.ZodNumber;
88
+ }, "strip", z.ZodTypeAny, {
89
+ fileName: string;
90
+ mimeType: string;
91
+ fileSize: number;
92
+ context: "image" | "document" | "chat" | "excel" | "pdf" | "pdf_facture" | "qrcode";
93
+ }, {
94
+ fileName: string;
95
+ mimeType: string;
96
+ fileSize: number;
97
+ context: "image" | "document" | "chat" | "excel" | "pdf" | "pdf_facture" | "qrcode";
98
+ }>;
99
+ export type IPresignUploadBody = z.infer<typeof PresignUploadBodySchema>;
100
+ export declare const PresignUploadResponseSchema: z.ZodObject<{
101
+ uuid: z.ZodString;
102
+ uploadUrl: z.ZodString;
103
+ expiresAt: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ expiresAt: string;
106
+ uuid: string;
107
+ uploadUrl: string;
108
+ }, {
109
+ expiresAt: string;
110
+ uuid: string;
111
+ uploadUrl: string;
112
+ }>;
113
+ export declare const UploadResponseSchema: z.ZodObject<{
114
+ uuid: z.ZodString;
115
+ fileName: z.ZodNullable<z.ZodString>;
116
+ filePath: z.ZodNullable<z.ZodString>;
117
+ mimeType: z.ZodString;
118
+ fileSize: z.ZodNumber;
119
+ status: z.ZodNativeEnum<{
120
+ readonly PENDING: "pending";
121
+ readonly UPLOADED: "uploaded";
122
+ readonly DELETED: "deleted";
123
+ }>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ status: "pending" | "uploaded" | "deleted";
126
+ uuid: string;
127
+ fileName: string | null;
128
+ filePath: string | null;
129
+ mimeType: string;
130
+ fileSize: number;
131
+ }, {
132
+ status: "pending" | "uploaded" | "deleted";
133
+ uuid: string;
134
+ fileName: string | null;
135
+ filePath: string | null;
136
+ mimeType: string;
137
+ fileSize: number;
138
+ }>;
139
+ export declare const DownloadUrlResponseSchema: z.ZodObject<{
140
+ downloadUrl: z.ZodString;
141
+ expiresAt: z.ZodString;
142
+ }, "strip", z.ZodTypeAny, {
143
+ expiresAt: string;
144
+ downloadUrl: string;
145
+ }, {
146
+ expiresAt: string;
147
+ downloadUrl: string;
148
+ }>;
149
+ export declare const DeleteUploadResponseSchema: z.ZodObject<{
150
+ uuid: z.ZodString;
151
+ status: z.ZodNativeEnum<{
152
+ readonly PENDING: "pending";
153
+ readonly UPLOADED: "uploaded";
154
+ readonly DELETED: "deleted";
155
+ }>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ status: "pending" | "uploaded" | "deleted";
158
+ uuid: string;
159
+ }, {
160
+ status: "pending" | "uploaded" | "deleted";
161
+ uuid: string;
162
+ }>;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteUploadResponseSchema = exports.DownloadUrlResponseSchema = exports.UploadResponseSchema = exports.PresignUploadResponseSchema = exports.PresignUploadBodySchema = exports.UploadSchema = exports.UploadStatusEnum = exports.UploadContextEnum = void 0;
4
+ const zod_1 = require("zod");
5
+ const luxon_1 = require("luxon");
6
+ exports.UploadContextEnum = {
7
+ CHAT: "chat",
8
+ IMAGE: "image",
9
+ DOCUMENT: "document",
10
+ EXCEL: "excel",
11
+ PDF: "pdf",
12
+ PDF_FACTURE: "pdf_facture",
13
+ QRCODE: "qrcode",
14
+ };
15
+ exports.UploadStatusEnum = {
16
+ PENDING: "pending",
17
+ UPLOADED: "uploaded",
18
+ DELETED: "deleted",
19
+ };
20
+ exports.UploadSchema = zod_1.z.object({
21
+ id: zod_1.z.number(),
22
+ uuid: zod_1.z.string(),
23
+ userId: zod_1.z.number(),
24
+ originalName: zod_1.z.string(),
25
+ fileName: zod_1.z.string().nullable(),
26
+ filePath: zod_1.z.string().nullable(),
27
+ mimeType: zod_1.z.string(),
28
+ fileSize: zod_1.z.number(),
29
+ context: zod_1.z.nativeEnum(exports.UploadContextEnum),
30
+ status: zod_1.z.nativeEnum(exports.UploadStatusEnum),
31
+ expiresAt: zod_1.z
32
+ .string()
33
+ .or(zod_1.z.date())
34
+ .transform((val) => (typeof val === "string" ? luxon_1.DateTime.fromISO(val) : luxon_1.DateTime.fromJSDate(val))),
35
+ createdAt: zod_1.z
36
+ .string()
37
+ .or(zod_1.z.date())
38
+ .transform((val) => (typeof val === "string" ? luxon_1.DateTime.fromISO(val) : luxon_1.DateTime.fromJSDate(val))),
39
+ updatedAt: zod_1.z
40
+ .string()
41
+ .or(zod_1.z.date())
42
+ .transform((val) => (typeof val === "string" ? luxon_1.DateTime.fromISO(val) : luxon_1.DateTime.fromJSDate(val))),
43
+ });
44
+ exports.PresignUploadBodySchema = zod_1.z.object({
45
+ context: zod_1.z.nativeEnum(exports.UploadContextEnum),
46
+ fileName: zod_1.z.string().min(1).max(255),
47
+ mimeType: zod_1.z.string().min(1).max(100),
48
+ fileSize: zod_1.z
49
+ .number()
50
+ .positive()
51
+ .max(20 * 1024 * 1024),
52
+ });
53
+ exports.PresignUploadResponseSchema = zod_1.z.object({
54
+ uuid: zod_1.z.string(),
55
+ uploadUrl: zod_1.z.string(),
56
+ expiresAt: zod_1.z.string(),
57
+ });
58
+ exports.UploadResponseSchema = zod_1.z.object({
59
+ uuid: zod_1.z.string(),
60
+ fileName: zod_1.z.string().nullable(),
61
+ filePath: zod_1.z.string().nullable(),
62
+ mimeType: zod_1.z.string(),
63
+ fileSize: zod_1.z.number(),
64
+ status: zod_1.z.nativeEnum(exports.UploadStatusEnum),
65
+ });
66
+ exports.DownloadUrlResponseSchema = zod_1.z.object({
67
+ downloadUrl: zod_1.z.string(),
68
+ expiresAt: zod_1.z.string(),
69
+ });
70
+ exports.DeleteUploadResponseSchema = zod_1.z.object({
71
+ uuid: zod_1.z.string(),
72
+ status: zod_1.z.nativeEnum(exports.UploadStatusEnum),
73
+ });
@@ -56,3 +56,4 @@ export * from "./_user_login_historie";
56
56
  export * from "./_untils";
57
57
  export * from "./_dashboard";
58
58
  export * from "./_public_tracking";
59
+ export * from "./_upload";
@@ -72,3 +72,4 @@ __exportStar(require("./_user_login_historie"), exports);
72
72
  __exportStar(require("./_untils"), exports);
73
73
  __exportStar(require("./_dashboard"), exports);
74
74
  __exportStar(require("./_public_tracking"), exports);
75
+ __exportStar(require("./_upload"), exports);
@@ -102578,7 +102578,7 @@ declare const shippingCreateRoutes: {
102578
102578
  typeDiagnobagId: z.ZodOptional<z.ZodNumber>;
102579
102579
  emballageId: z.ZodOptional<z.ZodNumber>;
102580
102580
  nbrDiagnobag: z.ZodOptional<z.ZodNumber>;
102581
- documents: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
102581
+ documentUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
102582
102582
  }, "strip", z.ZodTypeAny, {
102583
102583
  length: number;
102584
102584
  additionalInsurance: boolean;
@@ -102587,7 +102587,6 @@ declare const shippingCreateRoutes: {
102587
102587
  weight: number;
102588
102588
  description: string;
102589
102589
  additionalInsuranceAmount?: number | undefined;
102590
- documents?: any[] | undefined;
102591
102590
  hasEmballage?: boolean | undefined;
102592
102591
  nbrDiagnobag?: number | undefined;
102593
102592
  hasSonde?: boolean | undefined;
@@ -102595,6 +102594,7 @@ declare const shippingCreateRoutes: {
102595
102594
  emballageId?: number | undefined;
102596
102595
  typeSondeId?: number | undefined;
102597
102596
  typeDiagnobagId?: number | undefined;
102597
+ documentUuids?: string[] | undefined;
102598
102598
  }, {
102599
102599
  length: number;
102600
102600
  additionalInsurance: boolean;
@@ -102603,7 +102603,6 @@ declare const shippingCreateRoutes: {
102603
102603
  weight: number;
102604
102604
  description: string;
102605
102605
  additionalInsuranceAmount?: number | undefined;
102606
- documents?: any[] | undefined;
102607
102606
  hasEmballage?: boolean | undefined;
102608
102607
  nbrDiagnobag?: number | undefined;
102609
102608
  hasSonde?: boolean | undefined;
@@ -102611,12 +102610,13 @@ declare const shippingCreateRoutes: {
102611
102610
  emballageId?: number | undefined;
102612
102611
  typeSondeId?: number | undefined;
102613
102612
  typeDiagnobagId?: number | undefined;
102613
+ documentUuids?: string[] | undefined;
102614
102614
  }>, "many">>;
102615
102615
  dataCourse: z.ZodOptional<z.ZodObject<{
102616
102616
  packageDescription: z.ZodString;
102617
102617
  additionalInsurance: z.ZodBoolean;
102618
102618
  additionalInsuranceAmount: z.ZodOptional<z.ZodNumber>;
102619
- documents: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
102619
+ documentUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
102620
102620
  valeurDouane: z.ZodOptional<z.ZodString>;
102621
102621
  porteur: z.ZodString;
102622
102622
  nombreRoue: z.ZodString;
@@ -102626,16 +102626,16 @@ declare const shippingCreateRoutes: {
102626
102626
  porteur: string;
102627
102627
  nombreRoue: string;
102628
102628
  additionalInsuranceAmount?: number | undefined;
102629
- documents?: any[] | undefined;
102630
102629
  valeurDouane?: string | undefined;
102630
+ documentUuids?: string[] | undefined;
102631
102631
  }, {
102632
102632
  packageDescription: string;
102633
102633
  additionalInsurance: boolean;
102634
102634
  porteur: string;
102635
102635
  nombreRoue: string;
102636
102636
  additionalInsuranceAmount?: number | undefined;
102637
- documents?: any[] | undefined;
102638
102637
  valeurDouane?: string | undefined;
102638
+ documentUuids?: string[] | undefined;
102639
102639
  }>>;
102640
102640
  }, "strip", z.ZodTypeAny, {
102641
102641
  shippingInfo: {
@@ -102726,7 +102726,6 @@ declare const shippingCreateRoutes: {
102726
102726
  weight: number;
102727
102727
  description: string;
102728
102728
  additionalInsuranceAmount?: number | undefined;
102729
- documents?: any[] | undefined;
102730
102729
  hasEmballage?: boolean | undefined;
102731
102730
  nbrDiagnobag?: number | undefined;
102732
102731
  hasSonde?: boolean | undefined;
@@ -102734,6 +102733,7 @@ declare const shippingCreateRoutes: {
102734
102733
  emballageId?: number | undefined;
102735
102734
  typeSondeId?: number | undefined;
102736
102735
  typeDiagnobagId?: number | undefined;
102736
+ documentUuids?: string[] | undefined;
102737
102737
  }[] | undefined;
102738
102738
  dataCourse?: {
102739
102739
  packageDescription: string;
@@ -102741,8 +102741,8 @@ declare const shippingCreateRoutes: {
102741
102741
  porteur: string;
102742
102742
  nombreRoue: string;
102743
102743
  additionalInsuranceAmount?: number | undefined;
102744
- documents?: any[] | undefined;
102745
102744
  valeurDouane?: string | undefined;
102745
+ documentUuids?: string[] | undefined;
102746
102746
  } | undefined;
102747
102747
  }, {
102748
102748
  shippingInfo: {
@@ -102833,7 +102833,6 @@ declare const shippingCreateRoutes: {
102833
102833
  weight: number;
102834
102834
  description: string;
102835
102835
  additionalInsuranceAmount?: number | undefined;
102836
- documents?: any[] | undefined;
102837
102836
  hasEmballage?: boolean | undefined;
102838
102837
  nbrDiagnobag?: number | undefined;
102839
102838
  hasSonde?: boolean | undefined;
@@ -102841,6 +102840,7 @@ declare const shippingCreateRoutes: {
102841
102840
  emballageId?: number | undefined;
102842
102841
  typeSondeId?: number | undefined;
102843
102842
  typeDiagnobagId?: number | undefined;
102843
+ documentUuids?: string[] | undefined;
102844
102844
  }[] | undefined;
102845
102845
  dataCourse?: {
102846
102846
  packageDescription: string;
@@ -102848,8 +102848,8 @@ declare const shippingCreateRoutes: {
102848
102848
  porteur: string;
102849
102849
  nombreRoue: string;
102850
102850
  additionalInsuranceAmount?: number | undefined;
102851
- documents?: any[] | undefined;
102852
102851
  valeurDouane?: string | undefined;
102852
+ documentUuids?: string[] | undefined;
102853
102853
  } | undefined;
102854
102854
  }>;
102855
102855
  response: z.ZodUnion<[z.ZodObject<{
@@ -145532,10 +145532,13 @@ declare const supportTicketRoutes: {
145532
145532
  }>;
145533
145533
  body: z.ZodObject<{
145534
145534
  message: z.ZodString;
145535
+ fileUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
145535
145536
  }, "strip", z.ZodTypeAny, {
145536
145537
  message: string;
145538
+ fileUuids?: string[] | undefined;
145537
145539
  }, {
145538
145540
  message: string;
145541
+ fileUuids?: string[] | undefined;
145539
145542
  }>;
145540
145543
  response: z.ZodUnion<[z.ZodObject<{
145541
145544
  data: z.ZodObject<{