exnet-routing 1.2.34 → 1.2.36

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.
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.uploadRoutes = void 0;
4
+ const zod_1 = require("zod");
5
+ const _type_1 = require("../core/api/_type");
6
+ const models_1 = require("./../models");
7
+ const baseurl = "/upload";
8
+ exports.uploadRoutes = (0, _type_1.IApiType)({
9
+ presign: {
10
+ method: "POST",
11
+ url: `${baseurl}/presign`,
12
+ body: models_1.PresignUploadBodySchema,
13
+ response: (0, _type_1.response)(models_1.PresignUploadResponseSchema),
14
+ },
15
+ upload: {
16
+ method: "PUT",
17
+ url: `${baseurl}/:uuid`,
18
+ params: zod_1.z.object({
19
+ uuid: zod_1.z.string(),
20
+ }),
21
+ response: (0, _type_1.response)(models_1.UploadResponseSchema),
22
+ },
23
+ getDownloadUrl: {
24
+ method: "GET",
25
+ url: `${baseurl}/:uuid/url`,
26
+ params: zod_1.z.object({
27
+ uuid: zod_1.z.string(),
28
+ }),
29
+ searchParams: zod_1.z.object({
30
+ expiresIn: zod_1.z.number().optional(),
31
+ }),
32
+ response: (0, _type_1.response)(models_1.DownloadUrlResponseSchema),
33
+ },
34
+ download: {
35
+ method: "GET",
36
+ url: `${baseurl}/file/:uuid`,
37
+ params: zod_1.z.object({
38
+ uuid: zod_1.z.string(),
39
+ }),
40
+ response: (0, _type_1.response)(zod_1.z.object({})),
41
+ },
42
+ delete: {
43
+ method: "DELETE",
44
+ url: `${baseurl}/:uuid`,
45
+ params: zod_1.z.object({
46
+ uuid: zod_1.z.string(),
47
+ }),
48
+ response: (0, _type_1.response)(models_1.DeleteUploadResponseSchema),
49
+ },
50
+ });
@@ -36284,7 +36284,7 @@ declare const shippingRoutes: {
36284
36284
  typeDiagnobagId: z.ZodOptional<z.ZodNumber>;
36285
36285
  emballageId: z.ZodOptional<z.ZodNumber>;
36286
36286
  nbrDiagnobag: z.ZodOptional<z.ZodNumber>;
36287
- documents: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
36287
+ documentUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
36288
36288
  }, "strip", z.ZodTypeAny, {
36289
36289
  length: number;
36290
36290
  additionalInsurance: boolean;
@@ -36293,7 +36293,6 @@ declare const shippingRoutes: {
36293
36293
  weight: number;
36294
36294
  description: string;
36295
36295
  additionalInsuranceAmount?: number | undefined;
36296
- documents?: any[] | undefined;
36297
36296
  hasEmballage?: boolean | undefined;
36298
36297
  nbrDiagnobag?: number | undefined;
36299
36298
  hasSonde?: boolean | undefined;
@@ -36301,6 +36300,7 @@ declare const shippingRoutes: {
36301
36300
  emballageId?: number | undefined;
36302
36301
  typeSondeId?: number | undefined;
36303
36302
  typeDiagnobagId?: number | undefined;
36303
+ documentUuids?: string[] | undefined;
36304
36304
  }, {
36305
36305
  length: number;
36306
36306
  additionalInsurance: boolean;
@@ -36309,7 +36309,6 @@ declare const shippingRoutes: {
36309
36309
  weight: number;
36310
36310
  description: string;
36311
36311
  additionalInsuranceAmount?: number | undefined;
36312
- documents?: any[] | undefined;
36313
36312
  hasEmballage?: boolean | undefined;
36314
36313
  nbrDiagnobag?: number | undefined;
36315
36314
  hasSonde?: boolean | undefined;
@@ -36317,12 +36316,13 @@ declare const shippingRoutes: {
36317
36316
  emballageId?: number | undefined;
36318
36317
  typeSondeId?: number | undefined;
36319
36318
  typeDiagnobagId?: number | undefined;
36319
+ documentUuids?: string[] | undefined;
36320
36320
  }>, "many">>;
36321
36321
  dataCourse: z.ZodOptional<z.ZodObject<{
36322
36322
  packageDescription: z.ZodString;
36323
36323
  additionalInsurance: z.ZodBoolean;
36324
36324
  additionalInsuranceAmount: z.ZodOptional<z.ZodNumber>;
36325
- documents: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
36325
+ documentUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
36326
36326
  valeurDouane: z.ZodOptional<z.ZodString>;
36327
36327
  porteur: z.ZodString;
36328
36328
  nombreRoue: z.ZodString;
@@ -36332,16 +36332,16 @@ declare const shippingRoutes: {
36332
36332
  porteur: string;
36333
36333
  nombreRoue: string;
36334
36334
  additionalInsuranceAmount?: number | undefined;
36335
- documents?: any[] | undefined;
36336
36335
  valeurDouane?: string | undefined;
36336
+ documentUuids?: string[] | undefined;
36337
36337
  }, {
36338
36338
  packageDescription: string;
36339
36339
  additionalInsurance: boolean;
36340
36340
  porteur: string;
36341
36341
  nombreRoue: string;
36342
36342
  additionalInsuranceAmount?: number | undefined;
36343
- documents?: any[] | undefined;
36344
36343
  valeurDouane?: string | undefined;
36344
+ documentUuids?: string[] | undefined;
36345
36345
  }>>;
36346
36346
  }, "strip", z.ZodTypeAny, {
36347
36347
  shippingInfo: {
@@ -36432,7 +36432,6 @@ declare const shippingRoutes: {
36432
36432
  weight: number;
36433
36433
  description: string;
36434
36434
  additionalInsuranceAmount?: number | undefined;
36435
- documents?: any[] | undefined;
36436
36435
  hasEmballage?: boolean | undefined;
36437
36436
  nbrDiagnobag?: number | undefined;
36438
36437
  hasSonde?: boolean | undefined;
@@ -36440,6 +36439,7 @@ declare const shippingRoutes: {
36440
36439
  emballageId?: number | undefined;
36441
36440
  typeSondeId?: number | undefined;
36442
36441
  typeDiagnobagId?: number | undefined;
36442
+ documentUuids?: string[] | undefined;
36443
36443
  }[] | undefined;
36444
36444
  dataCourse?: {
36445
36445
  packageDescription: string;
@@ -36447,8 +36447,8 @@ declare const shippingRoutes: {
36447
36447
  porteur: string;
36448
36448
  nombreRoue: string;
36449
36449
  additionalInsuranceAmount?: number | undefined;
36450
- documents?: any[] | undefined;
36451
36450
  valeurDouane?: string | undefined;
36451
+ documentUuids?: string[] | undefined;
36452
36452
  } | undefined;
36453
36453
  }, {
36454
36454
  shippingInfo: {
@@ -36539,7 +36539,6 @@ declare const shippingRoutes: {
36539
36539
  weight: number;
36540
36540
  description: string;
36541
36541
  additionalInsuranceAmount?: number | undefined;
36542
- documents?: any[] | undefined;
36543
36542
  hasEmballage?: boolean | undefined;
36544
36543
  nbrDiagnobag?: number | undefined;
36545
36544
  hasSonde?: boolean | undefined;
@@ -36547,6 +36546,7 @@ declare const shippingRoutes: {
36547
36546
  emballageId?: number | undefined;
36548
36547
  typeSondeId?: number | undefined;
36549
36548
  typeDiagnobagId?: number | undefined;
36549
+ documentUuids?: string[] | undefined;
36550
36550
  }[] | undefined;
36551
36551
  dataCourse?: {
36552
36552
  packageDescription: string;
@@ -36554,8 +36554,8 @@ declare const shippingRoutes: {
36554
36554
  porteur: string;
36555
36555
  nombreRoue: string;
36556
36556
  additionalInsuranceAmount?: number | undefined;
36557
- documents?: any[] | undefined;
36558
36557
  valeurDouane?: string | undefined;
36558
+ documentUuids?: string[] | undefined;
36559
36559
  } | undefined;
36560
36560
  }>;
36561
36561
  response: z.ZodUnion<[z.ZodObject<{
@@ -66503,18 +66503,21 @@ declare const supportTicketRoutes: {
66503
66503
  readonly URGENT: "urgent";
66504
66504
  }>>;
66505
66505
  shippingId: z.ZodOptional<z.ZodNumber>;
66506
+ fileUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
66506
66507
  }, "strip", z.ZodTypeAny, {
66507
66508
  message: string;
66508
66509
  category: "tracking" | "other" | "general" | "delivery_issue" | "complaint" | "billing";
66509
66510
  subject: string;
66510
66511
  shippingId?: number | undefined;
66511
66512
  priority?: "low" | "medium" | "high" | "urgent" | undefined;
66513
+ fileUuids?: string[] | undefined;
66512
66514
  }, {
66513
66515
  message: string;
66514
66516
  category: "tracking" | "other" | "general" | "delivery_issue" | "complaint" | "billing";
66515
66517
  subject: string;
66516
66518
  shippingId?: number | undefined;
66517
66519
  priority?: "low" | "medium" | "high" | "urgent" | undefined;
66520
+ fileUuids?: string[] | undefined;
66518
66521
  }>;
66519
66522
  response: z.ZodUnion<[z.ZodObject<{
66520
66523
  data: z.ZodObject<{
@@ -68382,10 +68385,13 @@ declare const supportTicketRoutes: {
68382
68385
  }>;
68383
68386
  body: z.ZodObject<{
68384
68387
  message: z.ZodString;
68388
+ fileUuids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
68385
68389
  }, "strip", z.ZodTypeAny, {
68386
68390
  message: string;
68391
+ fileUuids?: string[] | undefined;
68387
68392
  }, {
68388
68393
  message: string;
68394
+ fileUuids?: string[] | undefined;
68389
68395
  }>;
68390
68396
  response: z.ZodUnion<[z.ZodObject<{
68391
68397
  data: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exnet-routing",
3
- "version": "1.2.34",
3
+ "version": "1.2.36",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [