exnet-routing 1.2.41 → 1.2.43
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.
- package/dist/models/_facture.d.ts +32 -0
- package/dist/models/_facture.js +13 -1
- package/dist/routes/admin.d.ts +6 -2
- package/dist/routes/admin.js +1 -1
- package/dist/routes/ops.d.ts +11141 -2929
- package/dist/routes/ops.js +46 -1
- package/dist/routes/user.d.ts +1675 -0
- package/dist/routes/user.js +28 -0
- package/package.json +1 -1
|
@@ -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>;
|
package/dist/models/_facture.js
CHANGED
|
@@ -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
|
+
});
|
package/dist/routes/admin.d.ts
CHANGED
|
@@ -9888,24 +9888,28 @@ declare const contactRoutes: {
|
|
|
9888
9888
|
liste: {
|
|
9889
9889
|
method: "GET";
|
|
9890
9890
|
url: string;
|
|
9891
|
-
searchParams: z.ZodObject<{
|
|
9891
|
+
searchParams: z.ZodObject<z.objectUtil.extendShape<{
|
|
9892
9892
|
page: z.ZodOptional<z.ZodNumber>;
|
|
9893
9893
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
9894
9894
|
search: z.ZodOptional<z.ZodString>;
|
|
9895
9895
|
sortBy: z.ZodOptional<z.ZodString>;
|
|
9896
9896
|
direction: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
9897
|
-
},
|
|
9897
|
+
}, {
|
|
9898
|
+
letter: z.ZodOptional<z.ZodString>;
|
|
9899
|
+
}>, "strip", z.ZodTypeAny, {
|
|
9898
9900
|
page?: number | undefined;
|
|
9899
9901
|
limit?: number | undefined;
|
|
9900
9902
|
search?: string | undefined;
|
|
9901
9903
|
sortBy?: string | undefined;
|
|
9902
9904
|
direction?: "asc" | "desc" | undefined;
|
|
9905
|
+
letter?: string | undefined;
|
|
9903
9906
|
}, {
|
|
9904
9907
|
page?: number | undefined;
|
|
9905
9908
|
limit?: number | undefined;
|
|
9906
9909
|
search?: string | undefined;
|
|
9907
9910
|
sortBy?: string | undefined;
|
|
9908
9911
|
direction?: "asc" | "desc" | undefined;
|
|
9912
|
+
letter?: string | undefined;
|
|
9909
9913
|
}>;
|
|
9910
9914
|
response: z.ZodUnion<[z.ZodObject<{
|
|
9911
9915
|
data: z.ZodObject<{
|
package/dist/routes/admin.js
CHANGED
|
@@ -100,7 +100,7 @@ const contactRoutes = (0, _type_1.IApiType)({
|
|
|
100
100
|
liste: {
|
|
101
101
|
method: "GET",
|
|
102
102
|
url: `${baseurl}/contact/liste`,
|
|
103
|
-
searchParams: models_1.PaginationSeachParamsSchema,
|
|
103
|
+
searchParams: models_1.PaginationSeachParamsSchema.merge(models_1.ContactFilterSchema),
|
|
104
104
|
response: (0, _type_1.response)((0, models_1.PaginationSchema)(models_1.ContactSchema)),
|
|
105
105
|
},
|
|
106
106
|
detail: {
|