exnet-routing 1.2.1 → 1.2.3

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.
Files changed (45) hide show
  1. package/dist/@test/routes/admin.test.js +2 -2
  2. package/dist/@test/routes/ops.test.js +1 -1
  3. package/dist/core/api/_type.d.ts +180 -0
  4. package/dist/core/api/_type.js +35 -0
  5. package/dist/core/api/_untils.d.ts +16 -0
  6. package/dist/core/api/_untils.js +128 -0
  7. package/dist/core/index.js +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/models/_billing_center.d.ts +49 -61
  11. package/dist/models/_billing_center.js +15 -19
  12. package/dist/models/_chat.d.ts +35 -49
  13. package/dist/models/_chat_message.d.ts +45 -63
  14. package/dist/models/_facture.d.ts +70 -98
  15. package/dist/models/_facture_line.d.ts +160 -224
  16. package/dist/models/_historique_action.d.ts +35 -49
  17. package/dist/models/_information_importante.d.ts +35 -49
  18. package/dist/models/_livraison_chauffeur.d.ts +35 -49
  19. package/dist/models/_ramassage_chauffeur.d.ts +35 -49
  20. package/dist/models/_shipping.d.ts +25 -35
  21. package/dist/models/_shipping_affected.d.ts +35 -49
  22. package/dist/models/_shipping_classification.d.ts +35 -49
  23. package/dist/models/_shipping_comment.d.ts +35 -49
  24. package/dist/models/_shipping_course.d.ts +35 -49
  25. package/dist/models/_shipping_detail.d.ts +35 -49
  26. package/dist/models/_shipping_detail_info_supplementaire.d.ts +35 -49
  27. package/dist/models/_shipping_document.d.ts +35 -49
  28. package/dist/models/_shipping_emballage.d.ts +35 -49
  29. package/dist/models/_shipping_manifest.d.ts +35 -49
  30. package/dist/models/_shipping_package.d.ts +35 -49
  31. package/dist/models/_shipping_pod.d.ts +35 -49
  32. package/dist/models/_shipping_proforma.d.ts +35 -49
  33. package/dist/models/_shipping_proforma_line.d.ts +45 -63
  34. package/dist/models/_shipping_tracking.d.ts +35 -49
  35. package/dist/models/_user_billing_center.d.ts +25 -35
  36. package/dist/routes/admin.d.ts +774 -1076
  37. package/dist/routes/admin.js +1 -1
  38. package/dist/routes/driver.js +1 -1
  39. package/dist/routes/ops.d.ts +1966 -2752
  40. package/dist/routes/ops.js +46 -3
  41. package/dist/routes/public.d.ts +26 -5
  42. package/dist/routes/public.js +5 -2
  43. package/dist/routes/user.d.ts +510 -714
  44. package/dist/routes/user.js +2 -2
  45. package/package.json +1 -1
@@ -212,8 +212,8 @@ describe("Admin Routes", () => {
212
212
  isService: false,
213
213
  customerId: 1,
214
214
  address: "1 rue de Test",
215
- submittedToFrenchVat: true,
216
- actif: true,
215
+ isSubmittedToFrenchVat: true,
216
+ isActif: true,
217
217
  };
218
218
  const mockResponse = {
219
219
  success: true,
@@ -63,7 +63,7 @@ describe("Ops Routes", () => {
63
63
  });
64
64
  describe("shipping dashboard", () => {
65
65
  const interfaces = ["paris", "medical", "service"];
66
- const statuses = ["enAttente", "enCours", "livrer", "aArriver", "facturer", "annuler"];
66
+ const statuses = ["enAttente", "enCours", "livrer", "aArchiver", "facturer", "annuler"];
67
67
  interfaces.forEach((userInterface) => {
68
68
  statuses.forEach((status) => {
69
69
  it(`should get ${status} shipping list for ${userInterface}`, async () => {
@@ -0,0 +1,180 @@
1
+ import { z } from "zod";
2
+ import { index } from "../index";
3
+ type ApiService = typeof index;
4
+ export type IHttpMethod = "GET" | "POST" | "PUT" | "DELETE";
5
+ export type IHttpMethodWithBody = "POST" | "PUT" | "DELETE";
6
+ export type IHttpMethodWithoutBody = "GET";
7
+ export declare const response: <R extends z.ZodObject<any> | z.ZodArray<any> | z.ZodNull>(data: R) => z.ZodUnion<[z.ZodObject<{
8
+ data: R;
9
+ message: z.ZodOptional<z.ZodString>;
10
+ status: z.ZodOptional<z.ZodNumber>;
11
+ error: z.ZodOptional<z.ZodNever>;
12
+ success: z.ZodLiteral<true>;
13
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
14
+ data: R;
15
+ message: z.ZodOptional<z.ZodString>;
16
+ status: z.ZodOptional<z.ZodNumber>;
17
+ error: z.ZodOptional<z.ZodNever>;
18
+ success: z.ZodLiteral<true>;
19
+ }>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
20
+ data: R;
21
+ message: z.ZodOptional<z.ZodString>;
22
+ status: z.ZodOptional<z.ZodNumber>;
23
+ error: z.ZodOptional<z.ZodNever>;
24
+ success: z.ZodLiteral<true>;
25
+ }>, any>[k]; } : never, z.baseObjectInputType<{
26
+ data: R;
27
+ message: z.ZodOptional<z.ZodString>;
28
+ status: z.ZodOptional<z.ZodNumber>;
29
+ error: z.ZodOptional<z.ZodNever>;
30
+ success: z.ZodLiteral<true>;
31
+ }> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{
32
+ data: R;
33
+ message: z.ZodOptional<z.ZodString>;
34
+ status: z.ZodOptional<z.ZodNumber>;
35
+ error: z.ZodOptional<z.ZodNever>;
36
+ success: z.ZodLiteral<true>;
37
+ }>[k_1]; } : never>, z.ZodObject<{
38
+ data: z.ZodNever;
39
+ message: z.ZodString;
40
+ status: z.ZodOptional<z.ZodNumber>;
41
+ error: z.ZodObject<{
42
+ message: z.ZodString;
43
+ info: z.ZodObject<{
44
+ status: z.ZodNumber;
45
+ code: z.ZodString;
46
+ messages: z.ZodArray<z.ZodObject<{
47
+ message: z.ZodString;
48
+ rule: z.ZodOptional<z.ZodString>;
49
+ field: z.ZodOptional<z.ZodString>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ message: string;
52
+ rule?: string | undefined;
53
+ field?: string | undefined;
54
+ }, {
55
+ message: string;
56
+ rule?: string | undefined;
57
+ field?: string | undefined;
58
+ }>, "many">;
59
+ }, "strip", z.ZodTypeAny, {
60
+ status: number;
61
+ code: string;
62
+ messages: {
63
+ message: string;
64
+ rule?: string | undefined;
65
+ field?: string | undefined;
66
+ }[];
67
+ }, {
68
+ status: number;
69
+ code: string;
70
+ messages: {
71
+ message: string;
72
+ rule?: string | undefined;
73
+ field?: string | undefined;
74
+ }[];
75
+ }>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ message: string;
78
+ info: {
79
+ status: number;
80
+ code: string;
81
+ messages: {
82
+ message: string;
83
+ rule?: string | undefined;
84
+ field?: string | undefined;
85
+ }[];
86
+ };
87
+ }, {
88
+ message: string;
89
+ info: {
90
+ status: number;
91
+ code: string;
92
+ messages: {
93
+ message: string;
94
+ rule?: string | undefined;
95
+ field?: string | undefined;
96
+ }[];
97
+ };
98
+ }>;
99
+ success: z.ZodNever;
100
+ }, "strip", z.ZodTypeAny, {
101
+ message: string;
102
+ data: never;
103
+ error: {
104
+ message: string;
105
+ info: {
106
+ status: number;
107
+ code: string;
108
+ messages: {
109
+ message: string;
110
+ rule?: string | undefined;
111
+ field?: string | undefined;
112
+ }[];
113
+ };
114
+ };
115
+ success: never;
116
+ status?: number | undefined;
117
+ }, {
118
+ message: string;
119
+ data: never;
120
+ error: {
121
+ message: string;
122
+ info: {
123
+ status: number;
124
+ code: string;
125
+ messages: {
126
+ message: string;
127
+ rule?: string | undefined;
128
+ field?: string | undefined;
129
+ }[];
130
+ };
131
+ };
132
+ success: never;
133
+ status?: number | undefined;
134
+ }>]>;
135
+ export type IBaseRoute = {
136
+ url: string;
137
+ searchParams?: z.ZodObject<any>;
138
+ params?: z.ZodObject<any>;
139
+ response: ReturnType<typeof response>;
140
+ };
141
+ export type IRoute = IBaseRoute & ({
142
+ method: IHttpMethodWithBody;
143
+ body?: z.ZodObject<any>;
144
+ } | {
145
+ method: IHttpMethodWithoutBody;
146
+ body?: never;
147
+ });
148
+ export type NestedRoute = {
149
+ [K: string]: NestedRoute | IRoute;
150
+ };
151
+ export declare const IApiType: <T extends NestedRoute>(api: T) => T;
152
+ export type TransformApi<T extends NestedRoute> = {
153
+ [K in keyof T]: T[K] extends NestedRoute ? TransformApi<T[K]> : T[K]["body"] extends z.ZodObject<any> ? T[K]["searchParams"] extends z.ZodObject<any> ? T[K]["params"] extends z.ZodObject<any> ? (params: {
154
+ body: z.infer<T[K]["body"]>;
155
+ searchParams: z.infer<T[K]["searchParams"]>;
156
+ queryParams: z.infer<T[K]["params"]>;
157
+ }) => Promise<z.infer<T[K]["response"]>> : (params: {
158
+ body: z.infer<T[K]["body"]>;
159
+ searchParams: z.infer<T[K]["searchParams"]>;
160
+ }) => Promise<z.infer<T[K]["response"]>> : T[K]["params"] extends z.ZodObject<any> ? (params: {
161
+ body: z.infer<T[K]["body"]>;
162
+ queryParams: z.infer<T[K]["params"]>;
163
+ }) => Promise<z.infer<T[K]["response"]>> : (params: {
164
+ body: z.infer<T[K]["body"]>;
165
+ }) => Promise<z.infer<T[K]["response"]>> : T[K]["searchParams"] extends z.ZodObject<any> ? T[K]["params"] extends z.ZodObject<any> ? (params: {
166
+ searchParams: z.infer<T[K]["searchParams"]>;
167
+ queryParams: z.infer<T[K]["params"]>;
168
+ }) => Promise<z.infer<T[K]["response"]>> : (params: {
169
+ searchParams: z.infer<T[K]["searchParams"]>;
170
+ }) => Promise<z.infer<T[K]["response"]>> : T[K]["params"] extends z.ZodObject<any> ? (params: {
171
+ queryParams: z.infer<T[K]["params"]>;
172
+ }) => Promise<z.infer<T[K]["response"]>> : () => Promise<z.infer<T[K]["response"]>>;
173
+ };
174
+ export type ApiRouteResponse<Route extends (...args: any) => Promise<any>> = Awaited<ReturnType<Route>>["data"];
175
+ export type IRouterApi = TransformApi<ApiService>;
176
+ export type IRouteFunction = (...params: any[]) => Promise<IRoute["response"]>;
177
+ export type IRouteGroup = {
178
+ [name: string]: IRouteFunction | IRouteGroup;
179
+ };
180
+ export {};
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IApiType = exports.response = void 0;
4
+ const zod_1 = require("zod");
5
+ const response = (data) => {
6
+ return zod_1.z
7
+ .object({
8
+ data,
9
+ message: zod_1.z.string().optional(),
10
+ status: zod_1.z.number().optional(),
11
+ error: zod_1.z.never().optional(),
12
+ success: zod_1.z.literal(true),
13
+ })
14
+ .or(zod_1.z.object({
15
+ data: zod_1.z.never(),
16
+ message: zod_1.z.string(),
17
+ status: zod_1.z.number().optional(),
18
+ error: zod_1.z.object({
19
+ message: zod_1.z.string(),
20
+ info: zod_1.z.object({
21
+ status: zod_1.z.number(),
22
+ code: zod_1.z.string(),
23
+ messages: zod_1.z.array(zod_1.z.object({
24
+ message: zod_1.z.string(),
25
+ rule: zod_1.z.string().optional(),
26
+ field: zod_1.z.string().optional(),
27
+ })),
28
+ }),
29
+ }),
30
+ success: zod_1.z.never(),
31
+ }));
32
+ };
33
+ exports.response = response;
34
+ const IApiType = (api) => api;
35
+ exports.IApiType = IApiType;
@@ -0,0 +1,16 @@
1
+ import { AxiosHeaders } from "axios";
2
+ import { IRoute, IRouteGroup, IRouterApi } from "./_type";
3
+ import { NestedRoute } from "./_type";
4
+ export declare const apiUrlBuilder: (segment?: string, baseUrl?: string, host?: string) => string;
5
+ export declare const apiFetch: {
6
+ setHostApi: (h: string) => void;
7
+ setBaseUrl: (b: string) => void;
8
+ setHeaders: (h: AxiosHeaders | undefined) => void;
9
+ fetch: (urlInput: string, method?: RequestInit["method"] | undefined, body?: any, searchParams?: any, queryParams?: {
10
+ [key: string]: string;
11
+ }) => Promise<any>;
12
+ };
13
+ export declare const isRoute: (value: NestedRoute | IRoute) => value is IRoute;
14
+ export declare const isSubRoute: (value: NestedRoute | IRoute) => value is NestedRoute;
15
+ export declare const parseApiRoute: <T extends NestedRoute | IRoute, K extends IRouteGroup>(key: string | undefined, subRoute: T, result: K, hostApi: string, basePath: string, headers?: AxiosHeaders) => K;
16
+ export declare const parseApiRoutes: <T extends NestedRoute>(api: T, hostApi: string, basePath: string, headers?: AxiosHeaders) => IRouterApi;
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.parseApiRoutes = exports.parseApiRoute = exports.isSubRoute = exports.isRoute = exports.apiFetch = exports.apiUrlBuilder = void 0;
7
+ const path_1 = require("path");
8
+ const axios_1 = __importDefault(require("axios"));
9
+ let host;
10
+ let baseUrl;
11
+ let headers;
12
+ const apiUrlBuilder = (segment = "", baseUrl = "", host = "") => {
13
+ const path = (0, path_1.join)(baseUrl, segment);
14
+ return host + path;
15
+ };
16
+ exports.apiUrlBuilder = apiUrlBuilder;
17
+ exports.apiFetch = {
18
+ setHostApi: (h) => {
19
+ host = h;
20
+ },
21
+ setBaseUrl: (b) => {
22
+ baseUrl = b;
23
+ },
24
+ setHeaders: (h) => {
25
+ headers = h;
26
+ },
27
+ fetch: async (urlInput, method, body, searchParams, queryParams) => {
28
+ try {
29
+ let url = (0, exports.apiUrlBuilder)(urlInput, baseUrl, host);
30
+ if (queryParams) {
31
+ Object.entries(queryParams).forEach(([key, value]) => {
32
+ if (value !== undefined && value !== null) {
33
+ url = url.replace(`:${key}`, encodeURIComponent(String(value)));
34
+ }
35
+ });
36
+ }
37
+ if (searchParams) {
38
+ const searchParamsString = typeof searchParams === "string"
39
+ ? searchParams
40
+ : Object.entries(searchParams)
41
+ .filter(([_, value]) => value !== undefined && value !== null)
42
+ .map(([key, value]) => {
43
+ const encodedKey = encodeURIComponent(key);
44
+ const encodedValue = Array.isArray(value) || typeof value === "object"
45
+ ? encodeURIComponent(JSON.stringify(value))
46
+ : encodeURIComponent(String(value !== null && value !== void 0 ? value : ""));
47
+ return `${encodedKey}=${encodedValue}`;
48
+ })
49
+ .join("&");
50
+ url += (url.includes("?") ? "&" : "?") + searchParamsString;
51
+ }
52
+ const res = await (0, axios_1.default)({
53
+ headers: {
54
+ "Content-Type": "application/json",
55
+ "Access-Control-Allow-Origin": "*",
56
+ "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
57
+ "Access-Control-Allow-Headers": "Content-Type, Authorization",
58
+ "Access-Control-Allow-Credentials": "true",
59
+ "Access-Control-Allow-Private-Network": "true",
60
+ Accept: "application/json",
61
+ ...headers,
62
+ },
63
+ method,
64
+ url,
65
+ data: body,
66
+ });
67
+ return res.data;
68
+ }
69
+ catch (error) {
70
+ throw new Error(`Request failed: ${error}`);
71
+ }
72
+ },
73
+ };
74
+ const isRoute = (value) => {
75
+ return "method" in value;
76
+ };
77
+ exports.isRoute = isRoute;
78
+ const isSubRoute = (value) => {
79
+ return !(0, exports.isRoute)(value);
80
+ };
81
+ exports.isSubRoute = isSubRoute;
82
+ const createRouteFunction = (route, apiFetch) => {
83
+ const createFetchFunction = (paramTypes) => {
84
+ return async (...args) => {
85
+ const params = paramTypes.reduce((acc, type) => {
86
+ acc[type] = args[0][type] || null;
87
+ return acc;
88
+ }, {});
89
+ return await apiFetch.fetch(route.url, route.method, params.body, params.searchParams, params.queryParams);
90
+ };
91
+ };
92
+ if (route.body) {
93
+ if (route.searchParams) {
94
+ return route.params
95
+ ? createFetchFunction(["body", "searchParams", "queryParams"])
96
+ : createFetchFunction(["body", "searchParams"]);
97
+ }
98
+ return route.params ? createFetchFunction(["body", "queryParams"]) : createFetchFunction(["body"]);
99
+ }
100
+ if (route.searchParams) {
101
+ return route.params ? createFetchFunction(["searchParams", "queryParams"]) : createFetchFunction(["searchParams"]);
102
+ }
103
+ return route.params ? createFetchFunction(["queryParams"]) : createFetchFunction([]);
104
+ };
105
+ const parseApiRoute = (key, subRoute, result, hostApi, basePath, headers) => {
106
+ var _a;
107
+ exports.apiFetch.setHostApi(hostApi);
108
+ exports.apiFetch.setBaseUrl(basePath);
109
+ exports.apiFetch.setHeaders(headers);
110
+ if ((0, exports.isRoute)(subRoute) && key) {
111
+ ;
112
+ result = createRouteFunction(subRoute, exports.apiFetch);
113
+ }
114
+ else if ((0, exports.isSubRoute)(subRoute)) {
115
+ for (const [key, value] of Object.entries(subRoute)) {
116
+ ;
117
+ result[key] = (0, exports.parseApiRoute)(key, value, ((_a = result[key]) !== null && _a !== void 0 ? _a : {}), hostApi, basePath, headers);
118
+ }
119
+ }
120
+ return result;
121
+ };
122
+ exports.parseApiRoute = parseApiRoute;
123
+ const parseApiRoutes = (api, hostApi, basePath, headers) => {
124
+ const result = {};
125
+ const response = (0, exports.parseApiRoute)(undefined, api, result, hostApi, basePath, headers);
126
+ return response;
127
+ };
128
+ exports.parseApiRoutes = parseApiRoutes;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.index = void 0;
4
4
  const public_1 = require("./../routes/public");
5
5
  const user_1 = require("./../routes/user");
6
- const _type_1 = require("./_type");
6
+ 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");
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { index } from "./core/index";
2
- import { TransformApi } from "./core/_type";
2
+ import { TransformApi } from "./core/api/_type";
3
3
  import { AxiosHeaderValue } from "axios";
4
4
  type RecordHeaders = {
5
5
  [x: string]: AxiosHeaderValue | undefined;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.APIRouter = void 0;
4
- const _untils_1 = require("./core/_untils");
4
+ const _untils_1 = require("./core/api/_untils");
5
5
  const index_1 = require("./core/index");
6
6
  const axios_1 = require("axios");
7
7
  class APIRouter {
@@ -20,16 +20,14 @@ export declare const BillingCenterSchema: z.ZodObject<{
20
20
  telephone: z.ZodNullable<z.ZodString>;
21
21
  email: z.ZodNullable<z.ZodString>;
22
22
  intraVatNumber: z.ZodNullable<z.ZodString>;
23
- submittedToFrenchVat: z.ZodBoolean;
23
+ isSubmittedToFrenchVat: z.ZodBoolean;
24
24
  comments: z.ZodNullable<z.ZodString>;
25
25
  numCodeOne: z.ZodNullable<z.ZodString>;
26
26
  numCodeTwo: z.ZodNullable<z.ZodString>;
27
- activeMailInstruction: z.ZodBoolean;
28
- actif: z.ZodBoolean;
29
- activeVariation: z.ZodBoolean;
30
- valeurCustomer: z.ZodBoolean;
31
- customerName: z.ZodBoolean;
32
- mailing: z.ZodBoolean;
27
+ isActiveMailInstruction: z.ZodBoolean;
28
+ isActif: z.ZodBoolean;
29
+ isActiveVariation: z.ZodBoolean;
30
+ isMailing: z.ZodBoolean;
33
31
  isParis: z.ZodBoolean;
34
32
  isMedical: z.ZodBoolean;
35
33
  isService: z.ZodBoolean;
@@ -219,16 +217,14 @@ export declare const BillingCenterSchema: z.ZodObject<{
219
217
  telephone: string | null;
220
218
  email: string | null;
221
219
  intraVatNumber: string | null;
222
- submittedToFrenchVat: boolean;
223
220
  numeroEori: string | null;
224
221
  comments: string | null;
225
222
  numCodeOne: string | null;
226
223
  numCodeTwo: string | null;
224
+ isActif: boolean;
227
225
  isParis: boolean;
228
226
  isMedical: boolean;
229
227
  isService: boolean;
230
- actif: boolean;
231
- valeurCustomer: boolean;
232
228
  dirigeant: string | null;
233
229
  dirigeantTel: string | null;
234
230
  dirigeantEmail: string | null;
@@ -251,10 +247,10 @@ export declare const BillingCenterSchema: z.ZodObject<{
251
247
  numeroSiren: string | null;
252
248
  invoiceMailOne: string;
253
249
  invoiceMailTwo: string | null;
254
- activeMailInstruction: boolean;
255
- activeVariation: boolean;
256
- customerName: boolean;
257
- mailing: boolean;
250
+ isSubmittedToFrenchVat: boolean;
251
+ isActiveMailInstruction: boolean;
252
+ isActiveVariation: boolean;
253
+ isMailing: boolean;
258
254
  deuxBordereaux: string | null;
259
255
  customerId: number | null;
260
256
  customer?: {
@@ -323,16 +319,14 @@ export declare const BillingCenterSchema: z.ZodObject<{
323
319
  telephone: string | null;
324
320
  email: string | null;
325
321
  intraVatNumber: string | null;
326
- submittedToFrenchVat: boolean;
327
322
  numeroEori: string | null;
328
323
  comments: string | null;
329
324
  numCodeOne: string | null;
330
325
  numCodeTwo: string | null;
326
+ isActif: boolean;
331
327
  isParis: boolean;
332
328
  isMedical: boolean;
333
329
  isService: boolean;
334
- actif: boolean;
335
- valeurCustomer: boolean;
336
330
  dirigeant: string | null;
337
331
  dirigeantTel: string | null;
338
332
  dirigeantEmail: string | null;
@@ -355,10 +349,10 @@ export declare const BillingCenterSchema: z.ZodObject<{
355
349
  numeroSiren: string | null;
356
350
  invoiceMailOne: string;
357
351
  invoiceMailTwo: string | null;
358
- activeMailInstruction: boolean;
359
- activeVariation: boolean;
360
- customerName: boolean;
361
- mailing: boolean;
352
+ isSubmittedToFrenchVat: boolean;
353
+ isActiveMailInstruction: boolean;
354
+ isActiveVariation: boolean;
355
+ isMailing: boolean;
362
356
  deuxBordereaux: string | null;
363
357
  customerId: number | null;
364
358
  customer?: {
@@ -430,16 +424,15 @@ export declare const BillingCenterCreateSchema: z.ZodObject<{
430
424
  telephone: z.ZodOptional<z.ZodString>;
431
425
  email: z.ZodOptional<z.ZodString>;
432
426
  intraVatNumber: z.ZodOptional<z.ZodString>;
433
- submittedToFrenchVat: z.ZodBoolean;
427
+ isSubmittedToFrenchVat: z.ZodBoolean;
434
428
  comments: z.ZodOptional<z.ZodString>;
435
429
  numCodeOne: z.ZodOptional<z.ZodString>;
436
430
  numCodeTwo: z.ZodOptional<z.ZodString>;
437
- activeMailInstruction: z.ZodBoolean;
438
- actif: z.ZodBoolean;
431
+ isActiveMailInstruction: z.ZodBoolean;
432
+ isActif: z.ZodBoolean;
439
433
  activeVariation: z.ZodBoolean;
440
- valeurCustomer: z.ZodBoolean;
441
- customerName: z.ZodBoolean;
442
- mailing: z.ZodBoolean;
434
+ isActiveVariation: z.ZodBoolean;
435
+ isMailing: z.ZodBoolean;
443
436
  isParis: z.ZodBoolean;
444
437
  isMedical: z.ZodBoolean;
445
438
  isService: z.ZodBoolean;
@@ -469,19 +462,18 @@ export declare const BillingCenterCreateSchema: z.ZodObject<{
469
462
  postalCode: string;
470
463
  city: string;
471
464
  telephoneOne: string;
472
- submittedToFrenchVat: boolean;
465
+ isActif: boolean;
473
466
  isParis: boolean;
474
467
  isMedical: boolean;
475
468
  isService: boolean;
476
- actif: boolean;
477
- valeurCustomer: boolean;
478
469
  billingCenterName: string;
479
470
  invoiceMailOne: string;
480
- activeMailInstruction: boolean;
481
- activeVariation: boolean;
482
- customerName: boolean;
483
- mailing: boolean;
471
+ isSubmittedToFrenchVat: boolean;
472
+ isActiveMailInstruction: boolean;
473
+ isActiveVariation: boolean;
474
+ isMailing: boolean;
484
475
  customerId: number;
476
+ activeVariation: boolean;
485
477
  addressTwo?: string | undefined;
486
478
  telephoneTwo?: string | undefined;
487
479
  dafResponsibleName?: string | undefined;
@@ -519,19 +511,18 @@ export declare const BillingCenterCreateSchema: z.ZodObject<{
519
511
  postalCode: string;
520
512
  city: string;
521
513
  telephoneOne: string;
522
- submittedToFrenchVat: boolean;
514
+ isActif: boolean;
523
515
  isParis: boolean;
524
516
  isMedical: boolean;
525
517
  isService: boolean;
526
- actif: boolean;
527
- valeurCustomer: boolean;
528
518
  billingCenterName: string;
529
519
  invoiceMailOne: string;
530
- activeMailInstruction: boolean;
531
- activeVariation: boolean;
532
- customerName: boolean;
533
- mailing: boolean;
520
+ isSubmittedToFrenchVat: boolean;
521
+ isActiveMailInstruction: boolean;
522
+ isActiveVariation: boolean;
523
+ isMailing: boolean;
534
524
  customerId: number;
525
+ activeVariation: boolean;
535
526
  addressTwo?: string | undefined;
536
527
  telephoneTwo?: string | undefined;
537
528
  dafResponsibleName?: string | undefined;
@@ -581,16 +572,15 @@ export declare const BillingCenterUpdateSchema: z.ZodObject<{
581
572
  telephone: z.ZodOptional<z.ZodString>;
582
573
  email: z.ZodOptional<z.ZodString>;
583
574
  intraVatNumber: z.ZodOptional<z.ZodString>;
584
- submittedToFrenchVat: z.ZodOptional<z.ZodBoolean>;
575
+ isSubmittedToFrenchVat: z.ZodOptional<z.ZodBoolean>;
585
576
  comments: z.ZodOptional<z.ZodString>;
586
577
  numCodeOne: z.ZodOptional<z.ZodString>;
587
578
  numCodeTwo: z.ZodOptional<z.ZodString>;
588
- activeMailInstruction: z.ZodOptional<z.ZodBoolean>;
589
- actif: z.ZodOptional<z.ZodBoolean>;
579
+ isActiveMailInstruction: z.ZodOptional<z.ZodBoolean>;
580
+ isActif: z.ZodOptional<z.ZodBoolean>;
590
581
  activeVariation: z.ZodOptional<z.ZodBoolean>;
591
- valeurCustomer: z.ZodOptional<z.ZodBoolean>;
592
- customerName: z.ZodOptional<z.ZodBoolean>;
593
- mailing: z.ZodOptional<z.ZodBoolean>;
582
+ isActiveVariation: z.ZodOptional<z.ZodBoolean>;
583
+ isMailing: z.ZodOptional<z.ZodBoolean>;
594
584
  isParis: z.ZodOptional<z.ZodBoolean>;
595
585
  isMedical: z.ZodOptional<z.ZodBoolean>;
596
586
  isService: z.ZodOptional<z.ZodBoolean>;
@@ -626,16 +616,14 @@ export declare const BillingCenterUpdateSchema: z.ZodObject<{
626
616
  telephone?: string | undefined;
627
617
  email?: string | undefined;
628
618
  intraVatNumber?: string | undefined;
629
- submittedToFrenchVat?: boolean | undefined;
630
619
  numeroEori?: string | undefined;
631
620
  comments?: string | undefined;
632
621
  numCodeOne?: string | undefined;
633
622
  numCodeTwo?: string | undefined;
623
+ isActif?: boolean | undefined;
634
624
  isParis?: boolean | undefined;
635
625
  isMedical?: boolean | undefined;
636
626
  isService?: boolean | undefined;
637
- actif?: boolean | undefined;
638
- valeurCustomer?: boolean | undefined;
639
627
  dirigeant?: string | undefined;
640
628
  dirigeantTel?: string | undefined;
641
629
  dirigeantEmail?: string | undefined;
@@ -658,12 +646,13 @@ export declare const BillingCenterUpdateSchema: z.ZodObject<{
658
646
  numeroSiren?: string | undefined;
659
647
  invoiceMailOne?: string | undefined;
660
648
  invoiceMailTwo?: string | undefined;
661
- activeMailInstruction?: boolean | undefined;
662
- activeVariation?: boolean | undefined;
663
- customerName?: boolean | undefined;
664
- mailing?: boolean | undefined;
649
+ isSubmittedToFrenchVat?: boolean | undefined;
650
+ isActiveMailInstruction?: boolean | undefined;
651
+ isActiveVariation?: boolean | undefined;
652
+ isMailing?: boolean | undefined;
665
653
  deuxBordereaux?: string | undefined;
666
654
  customerId?: number | undefined;
655
+ activeVariation?: boolean | undefined;
667
656
  }, {
668
657
  country?: string | undefined;
669
658
  address?: string | undefined;
@@ -676,16 +665,14 @@ export declare const BillingCenterUpdateSchema: z.ZodObject<{
676
665
  telephone?: string | undefined;
677
666
  email?: string | undefined;
678
667
  intraVatNumber?: string | undefined;
679
- submittedToFrenchVat?: boolean | undefined;
680
668
  numeroEori?: string | undefined;
681
669
  comments?: string | undefined;
682
670
  numCodeOne?: string | undefined;
683
671
  numCodeTwo?: string | undefined;
672
+ isActif?: boolean | undefined;
684
673
  isParis?: boolean | undefined;
685
674
  isMedical?: boolean | undefined;
686
675
  isService?: boolean | undefined;
687
- actif?: boolean | undefined;
688
- valeurCustomer?: boolean | undefined;
689
676
  dirigeant?: string | undefined;
690
677
  dirigeantTel?: string | undefined;
691
678
  dirigeantEmail?: string | undefined;
@@ -708,12 +695,13 @@ export declare const BillingCenterUpdateSchema: z.ZodObject<{
708
695
  numeroSiren?: string | undefined;
709
696
  invoiceMailOne?: string | undefined;
710
697
  invoiceMailTwo?: string | undefined;
711
- activeMailInstruction?: boolean | undefined;
712
- activeVariation?: boolean | undefined;
713
- customerName?: boolean | undefined;
714
- mailing?: boolean | undefined;
698
+ isSubmittedToFrenchVat?: boolean | undefined;
699
+ isActiveMailInstruction?: boolean | undefined;
700
+ isActiveVariation?: boolean | undefined;
701
+ isMailing?: boolean | undefined;
715
702
  deuxBordereaux?: string | undefined;
716
703
  customerId?: number | undefined;
704
+ activeVariation?: boolean | undefined;
717
705
  }>;
718
706
  export type IBillingCenter = z.infer<typeof BillingCenterSchema>;
719
707
  export type IBillingCenterCreate = z.infer<typeof BillingCenterCreateSchema>;