@updraft-solutions/mcrit-sdk 0.4.0 → 0.5.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.
Files changed (42) hide show
  1. package/dist/chunk-AKLFMP7G.cjs +2525 -0
  2. package/dist/chunk-YCIXOVEC.js +2525 -0
  3. package/dist/index.cjs +193 -3
  4. package/dist/index.d.cts +3 -3
  5. package/dist/index.d.ts +3 -3
  6. package/dist/index.js +196 -6
  7. package/dist/schemas/index.cjs +192 -2
  8. package/dist/schemas/index.d.cts +3123 -94
  9. package/dist/schemas/index.d.ts +3123 -94
  10. package/dist/schemas/index.js +195 -5
  11. package/dist/{models-Bc5BKYuI.d.cts → training-Der1DPU-.d.cts} +17563 -1056
  12. package/dist/{models-Bc5BKYuI.d.ts → training-Der1DPU-.d.ts} +17563 -1056
  13. package/dist/types/index.cjs +1 -1
  14. package/dist/types/index.d.cts +275 -6
  15. package/dist/types/index.d.ts +275 -6
  16. package/dist/types/index.js +1 -1
  17. package/package.json +1 -1
  18. package/src/index.ts +39 -0
  19. package/src/schemas/common.ts +33 -0
  20. package/src/schemas/course-milestone.ts +78 -0
  21. package/src/schemas/equipment.ts +27 -0
  22. package/src/schemas/form-template.ts +413 -0
  23. package/src/schemas/index.ts +7 -1
  24. package/src/schemas/location-map.ts +175 -0
  25. package/src/schemas/models.ts +38 -20
  26. package/src/schemas/newsletter.ts +362 -0
  27. package/src/schemas/todo.ts +46 -0
  28. package/src/schemas/training.ts +500 -0
  29. package/src/types/ai.ts +85 -0
  30. package/src/types/aircraft-block.ts +23 -0
  31. package/src/types/api.ts +3 -1
  32. package/src/types/background-task.ts +28 -0
  33. package/src/types/compliance.ts +27 -3
  34. package/src/types/index.ts +5 -0
  35. package/src/types/landing-fee.ts +92 -0
  36. package/src/types/models.ts +43 -3
  37. package/src/types/roles.ts +26 -0
  38. package/dist/chunk-RC2BBT6H.cjs +0 -1384
  39. package/dist/chunk-WQLDSZNN.js +0 -1384
  40. package/src/schemas/fee.ts +0 -37
  41. /package/dist/{chunk-LXNCAKJZ.js → chunk-2WJHTRIE.js} +0 -0
  42. /package/dist/{chunk-MOOGM3DW.cjs → chunk-DCEOET63.cjs} +0 -0
@@ -1,37 +0,0 @@
1
- import { z } from "zod";
2
-
3
- export const FeeSchema = z.object({
4
- id: z.number(),
5
- type: z.literal("fee").optional(),
6
- company_id: z.number(),
7
- provider: z.string().nullable().optional(),
8
- category: z.string(),
9
- subcategory: z.string().nullable().optional(),
10
- title: z.string(),
11
- internal_title: z.string().nullable().optional(),
12
- display_title: z.string().optional(),
13
- relation: z
14
- .array(z.enum(["booking", "flightlog", "invoice", "instructor"]))
15
- .nullable()
16
- .optional(),
17
- payment_per: z
18
- .enum(["perSession", "perFlight", "perBooking", "perHour"])
19
- .nullable()
20
- .optional(),
21
- price: z.any().optional(),
22
- prices: z.array(z.any()).optional(),
23
- can: z
24
- .object({
25
- update: z.boolean().optional(),
26
- delete: z.boolean().optional(),
27
- })
28
- .optional(),
29
- });
30
-
31
- export const FeeCategoryOptionsSchema = z.object({
32
- categories: z.array(z.string()),
33
- subcategories: z.record(z.string(), z.array(z.string())),
34
- });
35
-
36
- export type Fee = z.infer<typeof FeeSchema>;
37
- export type FeeCategoryOptions = z.infer<typeof FeeCategoryOptionsSchema>;
File without changes
File without changes