exnet-routing 0.0.0
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/.github/workflows/release.yml +31 -0
- package/.prettierignore +2 -0
- package/.releaserc.json +13 -0
- package/README.md +1 -0
- package/core/_type.ts +110 -0
- package/core/_untils.ts +142 -0
- package/core/index.ts +15 -0
- package/eslint.config.js +50 -0
- package/index.ts +131 -0
- package/models/_banniere.ts +33 -0
- package/models/_billing_center.ts +167 -0
- package/models/_calcul_range.ts +12 -0
- package/models/_calcul_range_price.ts +17 -0
- package/models/_calcul_weight.ts +11 -0
- package/models/_calcul_weight_price.ts +18 -0
- package/models/_chat.ts +19 -0
- package/models/_chat_message.ts +19 -0
- package/models/_contact.ts +179 -0
- package/models/_contact_visible.ts +14 -0
- package/models/_country.ts +13 -0
- package/models/_customer.ts +148 -0
- package/models/_emballage.ts +23 -0
- package/models/_exportation.ts +12 -0
- package/models/_facturation_line.ts +90 -0
- package/models/_facture.ts +34 -0
- package/models/_facture_line.ts +32 -0
- package/models/_fuel.ts +14 -0
- package/models/_historique_action.ts +21 -0
- package/models/_information_chauffeur.ts +27 -0
- package/models/_information_importante.ts +17 -0
- package/models/_livraison_chauffeur.ts +17 -0
- package/models/_manifest.ts +58 -0
- package/models/_prise_de_poste.ts +166 -0
- package/models/_ramassage_chauffeur.ts +23 -0
- package/models/_ref_coef.ts +14 -0
- package/models/_ref_countrie.ts +15 -0
- package/models/_ref_facture.ts +12 -0
- package/models/_ref_import_export_price.ts +17 -0
- package/models/_salarie.ts +45 -0
- package/models/_shipping.ts +79 -0
- package/models/_shipping_affected.ts +16 -0
- package/models/_shipping_classification.ts +29 -0
- package/models/_shipping_comment.ts +17 -0
- package/models/_shipping_course.ts +23 -0
- package/models/_shipping_detail.ts +26 -0
- package/models/_shipping_detail_info_supplementaire.ts +34 -0
- package/models/_shipping_document.ts +19 -0
- package/models/_shipping_emballage.ts +27 -0
- package/models/_shipping_manifest.ts +16 -0
- package/models/_shipping_package.ts +29 -0
- package/models/_shipping_pod.ts +18 -0
- package/models/_shipping_proforma.ts +19 -0
- package/models/_shipping_proforma_line.ts +19 -0
- package/models/_shipping_tracking.ts +52 -0
- package/models/_tracking_visible.ts +14 -0
- package/models/_type_diagnobag.ts +30 -0
- package/models/_type_emballage.ts +24 -0
- package/models/_type_sonde.ts +24 -0
- package/models/_type_transport.ts +21 -0
- package/models/_untils.ts +72 -0
- package/models/_user.ts +463 -0
- package/models/_user_billing_center.ts +16 -0
- package/models/_user_login_historie.ts +18 -0
- package/models/_vehicule.ts +45 -0
- package/models/_vehicule_affected.ts +16 -0
- package/models/index.ts +56 -0
- package/package.json +34 -0
- package/prettier.config.js +7 -0
- package/routes/admin.ts +703 -0
- package/routes/driver.ts +5 -0
- package/routes/ops.ts +286 -0
- package/routes/public.ts +53 -0
- package/routes/user.ts +191 -0
- package/tsconfig.json +22 -0
package/routes/ops.ts
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { z } from "zod"
|
|
2
|
+
import { IApiType, response } from "../core/_type"
|
|
3
|
+
import {
|
|
4
|
+
UpdateUserMeSchema,
|
|
5
|
+
UserSchema,
|
|
6
|
+
ShippingSchema,
|
|
7
|
+
PaginationSchema,
|
|
8
|
+
PaginationSeachParamsSchema,
|
|
9
|
+
ShippingFilterSchema,
|
|
10
|
+
} from "models"
|
|
11
|
+
|
|
12
|
+
const baseurl = "/ops"
|
|
13
|
+
|
|
14
|
+
export const opsRoutes = IApiType({
|
|
15
|
+
auth: {
|
|
16
|
+
logout: {
|
|
17
|
+
method: "POST",
|
|
18
|
+
url: `${baseurl}/logout`,
|
|
19
|
+
response: response(UserSchema),
|
|
20
|
+
},
|
|
21
|
+
me: {
|
|
22
|
+
method: "GET",
|
|
23
|
+
url: `${baseurl}/me`,
|
|
24
|
+
response: response(UserSchema),
|
|
25
|
+
},
|
|
26
|
+
updateMe: {
|
|
27
|
+
method: "PUT",
|
|
28
|
+
url: `${baseurl}/me`,
|
|
29
|
+
body: z.object({ UpdateUserMeSchema }),
|
|
30
|
+
response: response(UserSchema),
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
shipping: {
|
|
34
|
+
detail: {
|
|
35
|
+
method: "GET",
|
|
36
|
+
url: `${baseurl}/shipping/:userInterface/detail/:ref`,
|
|
37
|
+
params: z.object({
|
|
38
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
39
|
+
ref: z.string(),
|
|
40
|
+
}),
|
|
41
|
+
response: response(ShippingSchema),
|
|
42
|
+
},
|
|
43
|
+
dashboard: {
|
|
44
|
+
enAttente: {
|
|
45
|
+
method: "GET",
|
|
46
|
+
url: `${baseurl}/shipping/:userInterface/dashboard/liste/en-attente`,
|
|
47
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
48
|
+
params: z.object({
|
|
49
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
50
|
+
}),
|
|
51
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
52
|
+
},
|
|
53
|
+
enCours: {
|
|
54
|
+
method: "GET",
|
|
55
|
+
url: `${baseurl}/shipping/:userInterface/dashboard/liste/en-cours`,
|
|
56
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
57
|
+
params: z.object({
|
|
58
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
59
|
+
}),
|
|
60
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
61
|
+
},
|
|
62
|
+
livrer: {
|
|
63
|
+
method: "GET",
|
|
64
|
+
url: `${baseurl}/shipping/:userInterface/dashboard/liste/livrer`,
|
|
65
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
66
|
+
params: z.object({
|
|
67
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
68
|
+
}),
|
|
69
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
70
|
+
},
|
|
71
|
+
aArriver: {
|
|
72
|
+
method: "GET",
|
|
73
|
+
url: `${baseurl}/shipping/:userInterface/dashboard/liste/a-arriver`,
|
|
74
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
75
|
+
params: z.object({
|
|
76
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
77
|
+
}),
|
|
78
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
79
|
+
},
|
|
80
|
+
facturer: {
|
|
81
|
+
method: "GET",
|
|
82
|
+
url: `${baseurl}/shipping/:userInterface/dashboard/liste/facturer`,
|
|
83
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
84
|
+
params: z.object({
|
|
85
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
86
|
+
}),
|
|
87
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
88
|
+
},
|
|
89
|
+
annuler: {
|
|
90
|
+
method: "GET",
|
|
91
|
+
url: `${baseurl}/shipping/:userInterface/dashboard/liste/annuler`,
|
|
92
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
93
|
+
params: z.object({
|
|
94
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
95
|
+
}),
|
|
96
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
course: {
|
|
100
|
+
enAttente: {
|
|
101
|
+
method: "GET",
|
|
102
|
+
url: `${baseurl}/shipping/:userInterface/course/liste/en-attente`,
|
|
103
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
104
|
+
params: z.object({
|
|
105
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
106
|
+
}),
|
|
107
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
108
|
+
},
|
|
109
|
+
enCours: {
|
|
110
|
+
method: "GET",
|
|
111
|
+
url: `${baseurl}/shipping/:userInterface/course/liste/en-cours`,
|
|
112
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
113
|
+
params: z.object({
|
|
114
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
115
|
+
}),
|
|
116
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
117
|
+
},
|
|
118
|
+
livrer: {
|
|
119
|
+
method: "GET",
|
|
120
|
+
url: `${baseurl}/shipping/:userInterface/course/liste/livrer`,
|
|
121
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
122
|
+
params: z.object({
|
|
123
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
124
|
+
}),
|
|
125
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
126
|
+
},
|
|
127
|
+
aArchiver: {
|
|
128
|
+
method: "GET",
|
|
129
|
+
url: `${baseurl}/shipping/:userInterface/course/liste/a-archiver`,
|
|
130
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
131
|
+
params: z.object({
|
|
132
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
133
|
+
}),
|
|
134
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
135
|
+
},
|
|
136
|
+
facturer: {
|
|
137
|
+
method: "GET",
|
|
138
|
+
url: `${baseurl}/shipping/:userInterface/course/liste/facturer`,
|
|
139
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
140
|
+
params: z.object({
|
|
141
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
142
|
+
}),
|
|
143
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
144
|
+
},
|
|
145
|
+
annuler: {
|
|
146
|
+
method: "GET",
|
|
147
|
+
url: `${baseurl}/shipping/:userInterface/course/liste/annuler`,
|
|
148
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
149
|
+
params: z.object({
|
|
150
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
151
|
+
}),
|
|
152
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
import: {
|
|
156
|
+
enAttente: {
|
|
157
|
+
method: "GET",
|
|
158
|
+
url: `${baseurl}/shipping/:userInterface/import/liste/en-attente`,
|
|
159
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
160
|
+
params: z.object({
|
|
161
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
162
|
+
}),
|
|
163
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
164
|
+
},
|
|
165
|
+
enCours: {
|
|
166
|
+
method: "GET",
|
|
167
|
+
url: `${baseurl}/shipping/:userInterface/import/liste/en-cours`,
|
|
168
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
169
|
+
params: z.object({
|
|
170
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
171
|
+
}),
|
|
172
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
173
|
+
},
|
|
174
|
+
livrer: {
|
|
175
|
+
method: "GET",
|
|
176
|
+
url: `${baseurl}/shipping/:userInterface/import/liste/livrer`,
|
|
177
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
178
|
+
params: z.object({
|
|
179
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
180
|
+
}),
|
|
181
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
182
|
+
},
|
|
183
|
+
aArchiver: {
|
|
184
|
+
method: "GET",
|
|
185
|
+
url: `${baseurl}/shipping/:userInterface/import/liste/a-archiver`,
|
|
186
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
187
|
+
params: z.object({
|
|
188
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
189
|
+
}),
|
|
190
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
191
|
+
},
|
|
192
|
+
facturer: {
|
|
193
|
+
method: "GET",
|
|
194
|
+
url: `${baseurl}/shipping/:userInterface/import/liste/facturer`,
|
|
195
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
196
|
+
params: z.object({
|
|
197
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
198
|
+
}),
|
|
199
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
200
|
+
},
|
|
201
|
+
annuler: {
|
|
202
|
+
method: "GET",
|
|
203
|
+
url: `${baseurl}/shipping/:userInterface/import/liste/annuler`,
|
|
204
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
205
|
+
params: z.object({
|
|
206
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
207
|
+
}),
|
|
208
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
export: {
|
|
212
|
+
enAttente: {
|
|
213
|
+
method: "GET",
|
|
214
|
+
url: `${baseurl}/shipping/:userInterface/export/liste/en-attente`,
|
|
215
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
216
|
+
params: z.object({
|
|
217
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
218
|
+
}),
|
|
219
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
220
|
+
},
|
|
221
|
+
enCours: {
|
|
222
|
+
method: "GET",
|
|
223
|
+
url: `${baseurl}/shipping/:userInterface/export/liste/en-cours`,
|
|
224
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
225
|
+
params: z.object({
|
|
226
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
227
|
+
}),
|
|
228
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
229
|
+
},
|
|
230
|
+
livrer: {
|
|
231
|
+
method: "GET",
|
|
232
|
+
url: `${baseurl}/shipping/:userInterface/export/liste/livrer`,
|
|
233
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
234
|
+
params: z.object({
|
|
235
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
236
|
+
}),
|
|
237
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
238
|
+
},
|
|
239
|
+
aArchiver: {
|
|
240
|
+
method: "GET",
|
|
241
|
+
url: `${baseurl}/shipping/:userInterface/export/liste/a-archiver`,
|
|
242
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
243
|
+
params: z.object({
|
|
244
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
245
|
+
}),
|
|
246
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
247
|
+
},
|
|
248
|
+
facturer: {
|
|
249
|
+
method: "GET",
|
|
250
|
+
url: `${baseurl}/shipping/:userInterface/export/liste/facturer`,
|
|
251
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
252
|
+
params: z.object({
|
|
253
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
254
|
+
}),
|
|
255
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
256
|
+
},
|
|
257
|
+
annuler: {
|
|
258
|
+
method: "GET",
|
|
259
|
+
url: `${baseurl}/shipping/:userInterface/export/liste/annuler`,
|
|
260
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
261
|
+
params: z.object({
|
|
262
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
263
|
+
}),
|
|
264
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
archiver: {
|
|
268
|
+
method: "GET",
|
|
269
|
+
url: `${baseurl}/shipping/:userInterface/liste/archiver`,
|
|
270
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
271
|
+
params: z.object({
|
|
272
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
273
|
+
}),
|
|
274
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
275
|
+
},
|
|
276
|
+
withEmballage: {
|
|
277
|
+
method: "GET",
|
|
278
|
+
url: `${baseurl}/shipping/:userInterface/liste/with-emballage`,
|
|
279
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
280
|
+
params: z.object({
|
|
281
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
282
|
+
}),
|
|
283
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
})
|
package/routes/public.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod"
|
|
2
|
+
import { IApiType, response } from "../core/_type"
|
|
3
|
+
import {
|
|
4
|
+
LoginSchema,
|
|
5
|
+
UserSchema,
|
|
6
|
+
TokenSchema,
|
|
7
|
+
ForgotPasswordSchema,
|
|
8
|
+
ResetPasswordSchema,
|
|
9
|
+
RefreshTokenSchema,
|
|
10
|
+
} from "models"
|
|
11
|
+
|
|
12
|
+
const baseurl = ""
|
|
13
|
+
|
|
14
|
+
export const publicRoutes = IApiType({
|
|
15
|
+
auth: {
|
|
16
|
+
login: {
|
|
17
|
+
method: "POST",
|
|
18
|
+
url: `${baseurl}/login`,
|
|
19
|
+
body: z.object({ LoginSchema }),
|
|
20
|
+
response: response(
|
|
21
|
+
z.object({
|
|
22
|
+
token: z.object({ TokenSchema }),
|
|
23
|
+
refreshToken: z.object({ TokenSchema }),
|
|
24
|
+
user: z.object({ UserSchema }),
|
|
25
|
+
})
|
|
26
|
+
),
|
|
27
|
+
},
|
|
28
|
+
forgotPassword: {
|
|
29
|
+
method: "POST",
|
|
30
|
+
url: `${baseurl}/forgot-password`,
|
|
31
|
+
body: z.object({ ForgotPasswordSchema }),
|
|
32
|
+
response: response(z.null()),
|
|
33
|
+
},
|
|
34
|
+
resetPassword: {
|
|
35
|
+
method: "POST",
|
|
36
|
+
url: `${baseurl}/reset-password`,
|
|
37
|
+
body: z.object({ ResetPasswordSchema }),
|
|
38
|
+
response: response(z.null()),
|
|
39
|
+
},
|
|
40
|
+
refresh: {
|
|
41
|
+
method: "POST",
|
|
42
|
+
url: `${baseurl}/refresh`,
|
|
43
|
+
body: z.object({ RefreshTokenSchema }),
|
|
44
|
+
response: response(
|
|
45
|
+
z.object({
|
|
46
|
+
token: z.object({ TokenSchema }),
|
|
47
|
+
refreshToken: z.object({ TokenSchema }),
|
|
48
|
+
user: z.object({ UserSchema }),
|
|
49
|
+
})
|
|
50
|
+
),
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
})
|
package/routes/user.ts
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { z } from "zod"
|
|
2
|
+
import { IApiType, response } from "../core/_type"
|
|
3
|
+
import {
|
|
4
|
+
BanniereSchema,
|
|
5
|
+
ContactCreateByUserSchema,
|
|
6
|
+
ContactImportByUserSchema,
|
|
7
|
+
ContactSchema,
|
|
8
|
+
ContactUpdateByUserSchema,
|
|
9
|
+
ShippingSchema,
|
|
10
|
+
UpdateUserMeSchema,
|
|
11
|
+
UserSchema,
|
|
12
|
+
} from "models"
|
|
13
|
+
import {
|
|
14
|
+
ContactFilterSchema,
|
|
15
|
+
PaginationSchema,
|
|
16
|
+
PaginationSeachParamsSchema,
|
|
17
|
+
ShippingFilterSchema,
|
|
18
|
+
} from "../models/_untils"
|
|
19
|
+
|
|
20
|
+
const baseurl = "/user"
|
|
21
|
+
|
|
22
|
+
export const userRoutes = IApiType({
|
|
23
|
+
auth: {
|
|
24
|
+
logout: {
|
|
25
|
+
method: "POST",
|
|
26
|
+
url: `${baseurl}/logout`,
|
|
27
|
+
response: response(UserSchema),
|
|
28
|
+
},
|
|
29
|
+
me: {
|
|
30
|
+
method: "GET",
|
|
31
|
+
url: `${baseurl}/me`,
|
|
32
|
+
response: response(UserSchema),
|
|
33
|
+
},
|
|
34
|
+
updateMe: {
|
|
35
|
+
method: "PUT",
|
|
36
|
+
url: `${baseurl}/me`,
|
|
37
|
+
body: z.object({ UpdateUserMeSchema }),
|
|
38
|
+
response: response(UserSchema),
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
activeBanniere: {
|
|
42
|
+
method: "GET",
|
|
43
|
+
url: `${baseurl}/active-banniere`,
|
|
44
|
+
response: response(BanniereSchema),
|
|
45
|
+
},
|
|
46
|
+
shipping: {
|
|
47
|
+
detail: {
|
|
48
|
+
method: "GET",
|
|
49
|
+
url: `${baseurl}/shipping/:userInterface/detail/:ref`,
|
|
50
|
+
params: z.object({
|
|
51
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
52
|
+
ref: z.string(),
|
|
53
|
+
}),
|
|
54
|
+
response: response(ShippingSchema),
|
|
55
|
+
},
|
|
56
|
+
dashboard: {
|
|
57
|
+
enCours: {
|
|
58
|
+
method: "GET",
|
|
59
|
+
url: `${baseurl}/shipping/:userInterface/dashboard/liste/en-cours`,
|
|
60
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
61
|
+
params: z.object({
|
|
62
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
63
|
+
}),
|
|
64
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
65
|
+
},
|
|
66
|
+
livrer: {
|
|
67
|
+
method: "GET",
|
|
68
|
+
url: `${baseurl}/shipping/:userInterface/dashboard/liste/livrer`,
|
|
69
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
70
|
+
params: z.object({
|
|
71
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
72
|
+
}),
|
|
73
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
course: {
|
|
77
|
+
enCours: {
|
|
78
|
+
method: "GET",
|
|
79
|
+
url: `${baseurl}/shipping/:userInterface/course/liste/en-cours`,
|
|
80
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
81
|
+
params: z.object({
|
|
82
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
83
|
+
}),
|
|
84
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
85
|
+
},
|
|
86
|
+
livrer: {
|
|
87
|
+
method: "GET",
|
|
88
|
+
url: `${baseurl}/shipping/:userInterface/course/liste/livrer`,
|
|
89
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
90
|
+
params: z.object({
|
|
91
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
92
|
+
}),
|
|
93
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
import: {
|
|
97
|
+
enCours: {
|
|
98
|
+
method: "GET",
|
|
99
|
+
url: `${baseurl}/shipping/:userInterface/import/liste/en-cours`,
|
|
100
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
101
|
+
params: z.object({
|
|
102
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
103
|
+
}),
|
|
104
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
105
|
+
},
|
|
106
|
+
livrer: {
|
|
107
|
+
method: "GET",
|
|
108
|
+
url: `${baseurl}/shipping/:userInterface/import/liste/livrer`,
|
|
109
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
110
|
+
params: z.object({
|
|
111
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
112
|
+
}),
|
|
113
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
export: {
|
|
117
|
+
enCours: {
|
|
118
|
+
method: "GET",
|
|
119
|
+
url: `${baseurl}/shipping/:userInterface/export/liste/en-cours`,
|
|
120
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
121
|
+
params: z.object({
|
|
122
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
123
|
+
}),
|
|
124
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
125
|
+
},
|
|
126
|
+
livrer: {
|
|
127
|
+
method: "GET",
|
|
128
|
+
url: `${baseurl}/shipping/:userInterface/export/liste/livrer`,
|
|
129
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
130
|
+
params: z.object({
|
|
131
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
132
|
+
}),
|
|
133
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
archiver: {
|
|
137
|
+
method: "GET",
|
|
138
|
+
url: `${baseurl}/shipping/:userInterface/liste/archiver`,
|
|
139
|
+
searchParams: PaginationSeachParamsSchema.merge(ShippingFilterSchema),
|
|
140
|
+
params: z.object({
|
|
141
|
+
userInterface: z.enum(["paris", "medical", "service"]),
|
|
142
|
+
}),
|
|
143
|
+
response: response(PaginationSchema(ShippingSchema)),
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
contact: {
|
|
147
|
+
liste: {
|
|
148
|
+
method: "GET",
|
|
149
|
+
url: `${baseurl}/contact/liste`,
|
|
150
|
+
searchParams: PaginationSeachParamsSchema.merge(ContactFilterSchema),
|
|
151
|
+
response: response(PaginationSchema(ContactSchema)),
|
|
152
|
+
},
|
|
153
|
+
create: {
|
|
154
|
+
method: "POST",
|
|
155
|
+
url: `${baseurl}/contact/create`,
|
|
156
|
+
body: ContactCreateByUserSchema,
|
|
157
|
+
response: response(ContactSchema),
|
|
158
|
+
},
|
|
159
|
+
import: {
|
|
160
|
+
method: "POST",
|
|
161
|
+
url: `${baseurl}/contact/import`,
|
|
162
|
+
body: ContactImportByUserSchema,
|
|
163
|
+
response: response(z.array(ContactSchema)),
|
|
164
|
+
},
|
|
165
|
+
update: {
|
|
166
|
+
method: "PUT",
|
|
167
|
+
url: `${baseurl}/contact/update/:id`,
|
|
168
|
+
params: z.object({
|
|
169
|
+
id: z.string(),
|
|
170
|
+
}),
|
|
171
|
+
body: ContactUpdateByUserSchema,
|
|
172
|
+
response: response(ContactSchema),
|
|
173
|
+
},
|
|
174
|
+
delete: {
|
|
175
|
+
method: "DELETE",
|
|
176
|
+
url: `${baseurl}/contact/delete/:id`,
|
|
177
|
+
params: z.object({
|
|
178
|
+
id: z.string(),
|
|
179
|
+
}),
|
|
180
|
+
response: response(z.null()),
|
|
181
|
+
},
|
|
182
|
+
detail: {
|
|
183
|
+
method: "GET",
|
|
184
|
+
url: `${baseurl}/contact/detail/:id`,
|
|
185
|
+
params: z.object({
|
|
186
|
+
id: z.string(),
|
|
187
|
+
}),
|
|
188
|
+
response: response(ContactSchema),
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
})
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es2022",
|
|
5
|
+
"lib": ["es2022"],
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"noEmit": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"module": "es2022",
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"incremental": true,
|
|
17
|
+
"baseUrl": ".",
|
|
18
|
+
"rootDir": "."
|
|
19
|
+
},
|
|
20
|
+
"include": ["**/*.ts", "**/*.d.ts", ".es.js"],
|
|
21
|
+
"exclude": ["node_modules"]
|
|
22
|
+
}
|