exnet-routing 1.2.42 → 1.2.44

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.
@@ -363,7 +363,7 @@ const shippingRoutes = (0, _type_1.IApiType)({
363
363
  const factureRoutes = (0, _type_1.IApiType)({
364
364
  liste: {
365
365
  method: "GET",
366
- url: `${baseurl}/factures/:userInterface/liste`,
366
+ url: `${baseurl}/facture/:userInterface/liste`,
367
367
  searchParams: models_1.PaginationSeachParamsSchema.merge(models_1.FactureFilterSchema),
368
368
  params: zod_1.z.object({
369
369
  userInterface: zod_1.z.enum(["paris", "medical", "service"]),
@@ -372,7 +372,7 @@ const factureRoutes = (0, _type_1.IApiType)({
372
372
  },
373
373
  listeGlobale: {
374
374
  method: "GET",
375
- url: `${baseurl}/factures/:userInterface/liste-global`,
375
+ url: `${baseurl}/facture/:userInterface/liste-global`,
376
376
  searchParams: models_1.PaginationSeachParamsSchema.merge(models_1.FactureLineFilterSchema),
377
377
  params: zod_1.z.object({
378
378
  userInterface: zod_1.z.enum(["paris", "medical", "service"]),
@@ -381,18 +381,18 @@ const factureRoutes = (0, _type_1.IApiType)({
381
381
  },
382
382
  extraction: {
383
383
  method: "GET",
384
- url: `${baseurl}/factures/:userInterface/extraction`,
384
+ url: `${baseurl}/facture/:userInterface/extraction`,
385
385
  searchParams: models_1.PaginationSeachParamsSchema.merge(zod_1.z.object({
386
386
  isForAll: zod_1.z.boolean().optional(),
387
387
  })),
388
388
  params: zod_1.z.object({
389
389
  userInterface: zod_1.z.enum(["paris", "medical", "service"]),
390
390
  }),
391
- response: (0, _type_1.response)((0, models_1.PaginationSchema)(models_1.FactureLineSchema)),
391
+ response: (0, _type_1.response)((0, models_1.PaginationSchema)(models_1.FactureSchema)),
392
392
  },
393
393
  detail: {
394
394
  method: "GET",
395
- url: `${baseurl}/factures/:userInterface/detail/:id`,
395
+ url: `${baseurl}/facture/:userInterface/detail/:id`,
396
396
  params: zod_1.z.object({
397
397
  userInterface: zod_1.z.enum(["paris", "medical", "service"]),
398
398
  id: zod_1.z.string(),
@@ -401,7 +401,7 @@ const factureRoutes = (0, _type_1.IApiType)({
401
401
  },
402
402
  preview: {
403
403
  method: "POST",
404
- url: `${baseurl}/factures/:userInterface/preview`,
404
+ url: `${baseurl}/facture/:userInterface/preview`,
405
405
  params: zod_1.z.object({
406
406
  userInterface: zod_1.z.enum(["paris", "medical", "service"]),
407
407
  }),
@@ -412,7 +412,7 @@ const factureRoutes = (0, _type_1.IApiType)({
412
412
  },
413
413
  create: {
414
414
  method: "POST",
415
- url: `${baseurl}/factures/:userInterface/create`,
415
+ url: `${baseurl}/facture/:userInterface/create`,
416
416
  params: zod_1.z.object({
417
417
  userInterface: zod_1.z.enum(["paris", "medical", "service"]),
418
418
  }),
@@ -421,13 +421,49 @@ const factureRoutes = (0, _type_1.IApiType)({
421
421
  },
422
422
  lineDelete: {
423
423
  method: "DELETE",
424
- url: `${baseurl}/factures/:userInterface/line-delete/:id`,
424
+ url: `${baseurl}/facture/:userInterface/line-delete/:id`,
425
425
  params: zod_1.z.object({
426
426
  userInterface: zod_1.z.enum(["paris", "medical", "service"]),
427
427
  id: zod_1.z.string(),
428
428
  }),
429
429
  response: (0, _type_1.response)(zod_1.z.null()),
430
430
  },
431
+ listeGlobaleFactures: {
432
+ method: "GET",
433
+ url: `${baseurl}/facture/:userInterface/liste-globale`,
434
+ searchParams: models_1.PaginationSeachParamsSchema.merge(models_1.FactureFilterSchema),
435
+ params: zod_1.z.object({
436
+ userInterface: zod_1.z.enum(["paris", "medical", "service"]),
437
+ }),
438
+ response: (0, _type_1.response)((0, models_1.PaginationSchema)(models_1.FactureSchema)),
439
+ },
440
+ shippingLines: {
441
+ method: "GET",
442
+ url: `${baseurl}/facture/:userInterface/shipping-lines/:shippingId`,
443
+ params: zod_1.z.object({
444
+ userInterface: zod_1.z.enum(["paris", "medical", "service"]),
445
+ shippingId: zod_1.z.string(),
446
+ }),
447
+ response: (0, _type_1.response)(zod_1.z.array(models_1.FactureLineSchema)),
448
+ },
449
+ shippingLinesAdd: {
450
+ method: "POST",
451
+ url: `${baseurl}/facture/:userInterface/shipping-lines/add`,
452
+ params: zod_1.z.object({
453
+ userInterface: zod_1.z.enum(["paris", "medical", "service"]),
454
+ }),
455
+ body: models_1.AddFactureLineSchema,
456
+ response: (0, _type_1.response)(models_1.FactureLineSchema),
457
+ },
458
+ avoirLinesByRef: {
459
+ method: "GET",
460
+ url: `${baseurl}/facture/:userInterface/avoir-lines/:factureRef`,
461
+ params: zod_1.z.object({
462
+ userInterface: zod_1.z.enum(["paris", "medical", "service"]),
463
+ factureRef: zod_1.z.string(),
464
+ }),
465
+ response: (0, _type_1.response)(zod_1.z.array(models_1.FactureLineSchema)),
466
+ },
431
467
  });
432
468
  const historiqueActionRoutes = (0, _type_1.IApiType)({
433
469
  liste: {
@@ -654,10 +690,19 @@ const supportTicketRoutes = (0, _type_1.IApiType)({
654
690
  response: (0, _type_1.response)(models_1.ChatSchema),
655
691
  },
656
692
  });
693
+ const facturationCodeRoutes = (0, _type_1.IApiType)({
694
+ liste: {
695
+ method: "GET",
696
+ url: `${baseurl}/facturation-codes`,
697
+ searchParams: models_1.PaginationSeachParamsSchema,
698
+ response: (0, _type_1.response)((0, models_1.PaginationSchema)(models_1.FacturationLineSchema)),
699
+ },
700
+ });
657
701
  exports.opsRoutes = (0, _type_1.IApiType)({
658
702
  auth: authRoutes,
659
703
  shipping: shippingRoutes,
660
704
  facture: factureRoutes,
705
+ facturationCode: facturationCodeRoutes,
661
706
  historiqueAction: historiqueActionRoutes,
662
707
  billingCenter: billingCenterRoutes,
663
708
  customer: customerRoutes,