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.
@@ -1087,4 +1087,36 @@ export declare const PreviewFactureSchema: z.ZodObject<{
1087
1087
  bonCommande?: string | undefined;
1088
1088
  refFactureSourceAvoir?: number | undefined;
1089
1089
  }>;
1090
+ export declare const AddFactureLineSchema: z.ZodObject<{
1091
+ shippingId: z.ZodNumber;
1092
+ facturationLineId: z.ZodNumber;
1093
+ price: z.ZodNumber;
1094
+ quantity: z.ZodNumber;
1095
+ comment: z.ZodOptional<z.ZodString>;
1096
+ lineType: z.ZodEnum<["facture", "avoir"]>;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ shippingId: number;
1099
+ lineType: "facture" | "avoir";
1100
+ facturationLineId: number;
1101
+ price: number;
1102
+ quantity: number;
1103
+ comment?: string | undefined;
1104
+ }, {
1105
+ shippingId: number;
1106
+ lineType: "facture" | "avoir";
1107
+ facturationLineId: number;
1108
+ price: number;
1109
+ quantity: number;
1110
+ comment?: string | undefined;
1111
+ }>;
1112
+ export declare const FactureRefReediterSchema: z.ZodObject<{
1113
+ ref: z.ZodNumber;
1114
+ fullRef: z.ZodString;
1115
+ }, "strip", z.ZodTypeAny, {
1116
+ ref: number;
1117
+ fullRef: string;
1118
+ }, {
1119
+ ref: number;
1120
+ fullRef: string;
1121
+ }>;
1090
1122
  export type IFacture = z.infer<typeof FactureSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreviewFactureSchema = exports.CreateFactureSchema = exports.FactureSchemaSimple = exports.FactureSchema = exports.FACTURE_CONSTANTS = void 0;
3
+ exports.FactureRefReediterSchema = exports.AddFactureLineSchema = exports.PreviewFactureSchema = exports.CreateFactureSchema = exports.FactureSchemaSimple = exports.FactureSchema = exports.FACTURE_CONSTANTS = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const luxon_1 = require("luxon");
6
6
  const _billing_center_1 = require("./_billing_center");
@@ -94,3 +94,15 @@ exports.PreviewFactureSchema = zod_1.z.object({
94
94
  refFactureSourceAvoir: zod_1.z.number().optional(),
95
95
  shippingIds: zod_1.z.array(zod_1.z.number()),
96
96
  });
97
+ exports.AddFactureLineSchema = zod_1.z.object({
98
+ shippingId: zod_1.z.number(),
99
+ facturationLineId: zod_1.z.number(),
100
+ price: zod_1.z.number(),
101
+ quantity: zod_1.z.number(),
102
+ comment: zod_1.z.string().optional(),
103
+ lineType: zod_1.z.enum(["facture", "avoir"]),
104
+ });
105
+ exports.FactureRefReediterSchema = zod_1.z.object({
106
+ ref: zod_1.z.number(),
107
+ fullRef: zod_1.z.string(),
108
+ });