@mxpicture/tesla-superchargers-generated 0.1.1

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 (101) hide show
  1. package/dist/public/Addresses.d.ts +130 -0
  2. package/dist/public/Addresses.d.ts.map +1 -0
  3. package/dist/public/Addresses.js +131 -0
  4. package/dist/public/Addresses.js.map +1 -0
  5. package/dist/public/BillingType.d.ts +9 -0
  6. package/dist/public/BillingType.d.ts.map +1 -0
  7. package/dist/public/BillingType.js +6 -0
  8. package/dist/public/BillingType.js.map +1 -0
  9. package/dist/public/CarSettings.d.ts +89 -0
  10. package/dist/public/CarSettings.d.ts.map +1 -0
  11. package/dist/public/CarSettings.js +65 -0
  12. package/dist/public/CarSettings.js.map +1 -0
  13. package/dist/public/Cars.d.ts +118 -0
  14. package/dist/public/Cars.d.ts.map +1 -0
  15. package/dist/public/Cars.js +114 -0
  16. package/dist/public/Cars.js.map +1 -0
  17. package/dist/public/Charges.d.ts +146 -0
  18. package/dist/public/Charges.d.ts.map +1 -0
  19. package/dist/public/Charges.js +150 -0
  20. package/dist/public/Charges.js.map +1 -0
  21. package/dist/public/ChargingProcesses.d.ts +129 -0
  22. package/dist/public/ChargingProcesses.d.ts.map +1 -0
  23. package/dist/public/ChargingProcesses.js +129 -0
  24. package/dist/public/ChargingProcesses.js.map +1 -0
  25. package/dist/public/Drives.d.ts +164 -0
  26. package/dist/public/Drives.d.ts.map +1 -0
  27. package/dist/public/Drives.js +171 -0
  28. package/dist/public/Drives.js.map +1 -0
  29. package/dist/public/Geofences.d.ts +90 -0
  30. package/dist/public/Geofences.d.ts.map +1 -0
  31. package/dist/public/Geofences.js +78 -0
  32. package/dist/public/Geofences.js.map +1 -0
  33. package/dist/public/KeyParams.d.ts +6 -0
  34. package/dist/public/KeyParams.d.ts.map +1 -0
  35. package/dist/public/KeyParams.js +4 -0
  36. package/dist/public/KeyParams.js.map +1 -0
  37. package/dist/public/PicChargers.d.ts +205 -0
  38. package/dist/public/PicChargers.d.ts.map +1 -0
  39. package/dist/public/PicChargers.js +226 -0
  40. package/dist/public/PicChargers.js.map +1 -0
  41. package/dist/public/PicChargingProcessStates.d.ts +59 -0
  42. package/dist/public/PicChargingProcessStates.d.ts.map +1 -0
  43. package/dist/public/PicChargingProcessStates.js +51 -0
  44. package/dist/public/PicChargingProcessStates.js.map +1 -0
  45. package/dist/public/PicPricebooks.d.ts +89 -0
  46. package/dist/public/PicPricebooks.d.ts.map +1 -0
  47. package/dist/public/PicPricebooks.js +112 -0
  48. package/dist/public/PicPricebooks.js.map +1 -0
  49. package/dist/public/PicSlugs.d.ts +146 -0
  50. package/dist/public/PicSlugs.d.ts.map +1 -0
  51. package/dist/public/PicSlugs.js +153 -0
  52. package/dist/public/PicSlugs.js.map +1 -0
  53. package/dist/public/Positions.d.ts +187 -0
  54. package/dist/public/Positions.d.ts.map +1 -0
  55. package/dist/public/Positions.js +199 -0
  56. package/dist/public/Positions.js.map +1 -0
  57. package/dist/public/Range.d.ts +9 -0
  58. package/dist/public/Range.d.ts.map +1 -0
  59. package/dist/public/Range.js +6 -0
  60. package/dist/public/Range.js.map +1 -0
  61. package/dist/public/SchemaMigrations.d.ts +43 -0
  62. package/dist/public/SchemaMigrations.d.ts.map +1 -0
  63. package/dist/public/SchemaMigrations.js +29 -0
  64. package/dist/public/SchemaMigrations.js.map +1 -0
  65. package/dist/public/Settings.d.ts +106 -0
  66. package/dist/public/Settings.d.ts.map +1 -0
  67. package/dist/public/Settings.js +87 -0
  68. package/dist/public/Settings.js.map +1 -0
  69. package/dist/public/States.d.ts +62 -0
  70. package/dist/public/States.d.ts.map +1 -0
  71. package/dist/public/States.js +49 -0
  72. package/dist/public/States.js.map +1 -0
  73. package/dist/public/StatesStatus.d.ts +10 -0
  74. package/dist/public/StatesStatus.d.ts.map +1 -0
  75. package/dist/public/StatesStatus.js +6 -0
  76. package/dist/public/StatesStatus.js.map +1 -0
  77. package/dist/public/SuperchargerPriceHistory.d.ts +185 -0
  78. package/dist/public/SuperchargerPriceHistory.d.ts.map +1 -0
  79. package/dist/public/SuperchargerPriceHistory.js +197 -0
  80. package/dist/public/SuperchargerPriceHistory.js.map +1 -0
  81. package/dist/public/UnitOfLength.d.ts +9 -0
  82. package/dist/public/UnitOfLength.d.ts.map +1 -0
  83. package/dist/public/UnitOfLength.js +6 -0
  84. package/dist/public/UnitOfLength.js.map +1 -0
  85. package/dist/public/UnitOfPressure.d.ts +9 -0
  86. package/dist/public/UnitOfPressure.d.ts.map +1 -0
  87. package/dist/public/UnitOfPressure.js +6 -0
  88. package/dist/public/UnitOfPressure.js.map +1 -0
  89. package/dist/public/UnitOfTemperature.d.ts +9 -0
  90. package/dist/public/UnitOfTemperature.d.ts.map +1 -0
  91. package/dist/public/UnitOfTemperature.js +6 -0
  92. package/dist/public/UnitOfTemperature.js.map +1 -0
  93. package/dist/public/Updates.d.ts +61 -0
  94. package/dist/public/Updates.d.ts.map +1 -0
  95. package/dist/public/Updates.js +48 -0
  96. package/dist/public/Updates.js.map +1 -0
  97. package/dist/public/index.d.ts +25 -0
  98. package/dist/public/index.d.ts.map +1 -0
  99. package/dist/public/index.js +26 -0
  100. package/dist/public/index.js.map +1 -0
  101. package/package.json +42 -0
@@ -0,0 +1,87 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+ import { unitOfLength } from "./UnitOfLength.js";
4
+ import { unitOfTemperature, } from "./UnitOfTemperature.js";
5
+ import { range } from "./Range.js";
6
+ import { unitOfPressure } from "./UnitOfPressure.js";
7
+ import { z } from "zod";
8
+ export const settingsId = z.string();
9
+ export const settings = z.object({
10
+ id: settingsId,
11
+ inserted_at: z.date(),
12
+ updated_at: z.date(),
13
+ unit_of_length: unitOfLength,
14
+ unit_of_temperature: unitOfTemperature,
15
+ preferred_range: range,
16
+ base_url: z.string().nullable(),
17
+ grafana_url: z.string().nullable(),
18
+ language: z.string(),
19
+ unit_of_pressure: unitOfPressure,
20
+ theme_mode: z.string(),
21
+ });
22
+ export const settingsInitializer = z.object({
23
+ id: settingsId.optional(),
24
+ inserted_at: z.date(),
25
+ updated_at: z.date(),
26
+ unit_of_length: unitOfLength.optional(),
27
+ unit_of_temperature: unitOfTemperature.optional(),
28
+ preferred_range: range.optional(),
29
+ base_url: z.string().optional().nullable(),
30
+ grafana_url: z.string().optional().nullable(),
31
+ language: z.string().optional(),
32
+ unit_of_pressure: unitOfPressure.optional(),
33
+ theme_mode: z.string().optional(),
34
+ });
35
+ export const settingsMutator = z.object({
36
+ id: settingsId.optional(),
37
+ inserted_at: z.date().optional(),
38
+ updated_at: z.date().optional(),
39
+ unit_of_length: unitOfLength.optional(),
40
+ unit_of_temperature: unitOfTemperature.optional(),
41
+ preferred_range: range.optional(),
42
+ base_url: z.string().optional().nullable(),
43
+ grafana_url: z.string().optional().nullable(),
44
+ language: z.string().optional(),
45
+ unit_of_pressure: unitOfPressure.optional(),
46
+ theme_mode: z.string().optional(),
47
+ });
48
+ export const settingsKeys = [
49
+ { name: "id" },
50
+ { name: "inserted_at" },
51
+ { name: "updated_at" },
52
+ { name: "unit_of_length" },
53
+ { name: "unit_of_temperature" },
54
+ { name: "preferred_range" },
55
+ { name: "base_url", nullable: true },
56
+ { name: "grafana_url", nullable: true },
57
+ { name: "language" },
58
+ { name: "unit_of_pressure" },
59
+ { name: "theme_mode" },
60
+ ];
61
+ export const settingsInitializerKeys = [
62
+ { name: "id", optional: true },
63
+ { name: "inserted_at" },
64
+ { name: "updated_at" },
65
+ { name: "unit_of_length", optional: true },
66
+ { name: "unit_of_temperature", optional: true },
67
+ { name: "preferred_range", optional: true },
68
+ { name: "base_url", optional: true, nullable: true },
69
+ { name: "grafana_url", optional: true, nullable: true },
70
+ { name: "language", optional: true },
71
+ { name: "unit_of_pressure", optional: true },
72
+ { name: "theme_mode", optional: true },
73
+ ];
74
+ export const settingsMutatorKeys = [
75
+ { name: "id", optional: true },
76
+ { name: "inserted_at", optional: true },
77
+ { name: "updated_at", optional: true },
78
+ { name: "unit_of_length", optional: true },
79
+ { name: "unit_of_temperature", optional: true },
80
+ { name: "preferred_range", optional: true },
81
+ { name: "base_url", optional: true, nullable: true },
82
+ { name: "grafana_url", optional: true, nullable: true },
83
+ { name: "language", optional: true },
84
+ { name: "unit_of_pressure", optional: true },
85
+ { name: "theme_mode", optional: true },
86
+ ];
87
+ //# sourceMappingURL=Settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../src/public/Settings.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,yEAAyE;AAEzE,OAAO,EAAE,YAAY,EAAqB,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACL,iBAAiB,GAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAc,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAuB,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwFxB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAqC,CAAC;AAExE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,UAAU;IACd,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE;IACpB,cAAc,EAAE,YAAY;IAC5B,mBAAmB,EAAE,iBAAiB;IACtC,eAAe,EAAE,KAAK;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,gBAAgB,EAAE,cAAc;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAkC,CAAC;AAEpC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC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AAI,EAAE;IACpC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAiC;IAC/D,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC9B,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE;IACtC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC/C,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3C,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IACpD,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvD,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE;IACpC,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE;CACvC,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { type StatesStatus } from "./StatesStatus.js";
2
+ import { type CarsId } from "./Cars.js";
3
+ import { z } from "zod";
4
+ import type { KeyParams } from "./KeyParams.js";
5
+ /** Identifier type for public.states */
6
+ export type StatesId = number;
7
+ /** Represents the table public.states */
8
+ export interface States {
9
+ id: StatesId;
10
+ state: StatesStatus;
11
+ start_date: Date;
12
+ end_date: Date | null;
13
+ car_id: CarsId;
14
+ }
15
+ /** Represents the initializer for the table public.states */
16
+ export interface StatesInitializer {
17
+ /** Default value: nextval('states_id_seq'::regclass) */
18
+ id?: StatesId;
19
+ state: StatesStatus;
20
+ start_date: Date;
21
+ end_date?: Date | null;
22
+ car_id: CarsId;
23
+ }
24
+ /** Represents the mutator for the table public.states */
25
+ export interface StatesMutator {
26
+ id?: StatesId;
27
+ state?: StatesStatus;
28
+ start_date?: Date;
29
+ end_date?: Date | null;
30
+ car_id?: CarsId;
31
+ }
32
+ export declare const statesId: z.Schema<StatesId>;
33
+ export declare const states: z.Schema<States>;
34
+ export declare const statesInitializer: z.Schema<StatesInitializer>;
35
+ export declare const statesMutator: z.Schema<StatesMutator>;
36
+ /**
37
+ * Represents the initializer for the table public.states
38
+ * Strict variant: optional properties are required and typed with an explicit `| undefined` instead of `?:`.
39
+ */
40
+ export interface StatesInitializerStrict {
41
+ /** Default value: nextval('states_id_seq'::regclass) */
42
+ id: StatesId | undefined;
43
+ state: StatesStatus;
44
+ start_date: Date;
45
+ end_date: Date | null | undefined;
46
+ car_id: CarsId;
47
+ }
48
+ /**
49
+ * Represents the mutator for the table public.states
50
+ * Strict variant: optional properties are required and typed with an explicit `| undefined` instead of `?:`.
51
+ */
52
+ export interface StatesMutatorStrict {
53
+ id: StatesId | undefined;
54
+ state: StatesStatus | undefined;
55
+ start_date: Date | undefined;
56
+ end_date: Date | null | undefined;
57
+ car_id: CarsId | undefined;
58
+ }
59
+ export declare const statesKeys: KeyParams<States>[];
60
+ export declare const statesInitializerKeys: KeyParams<StatesInitializer>[];
61
+ export declare const statesMutatorKeys: KeyParams<StatesMutator>[];
62
+ //# sourceMappingURL=States.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"States.d.ts","sourceRoot":"","sources":["../../src/public/States.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAU,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAChD,OAA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AG,SAAS,CAAC;IAEzB,KAAK,EAAE,YAAY,CAAC;IAEpB,UAAU,EAAE,IAAI,CAAC;IAEjB,QAAQ,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAElC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,QAAQ,GAAG,SAAS,CAAC;IAEzB,KAAK,EAAE,YAAY,GAAG,SAAS,CAAC;IAEhC,UAAU,EAAE,IAAI,GAAG,SAAS,CAAC;IAE7B,QAAQ,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAElC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,EAMzC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAAC,iBAAiB,CAAC,EAM/D,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAAS,CAAC,aAAa,CAAC,EAMvD,CAAC"}
@@ -0,0 +1,49 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+ import { statesStatus } from "./StatesStatus.js";
4
+ import { carsId } from "./Cars.js";
5
+ import { z } from "zod";
6
+ export const statesId = z.number();
7
+ export const states = z.object({
8
+ id: statesId,
9
+ state: statesStatus,
10
+ start_date: z.date(),
11
+ end_date: z.date().nullable(),
12
+ car_id: z.lazy(() => carsId),
13
+ });
14
+ export const statesInitializer = z.object({
15
+ id: statesId.optional(),
16
+ state: statesStatus,
17
+ start_date: z.date(),
18
+ end_date: z.date().optional().nullable(),
19
+ car_id: z.lazy(() => carsId),
20
+ });
21
+ export const statesMutator = z.object({
22
+ id: statesId.optional(),
23
+ state: statesStatus.optional(),
24
+ start_date: z.date().optional(),
25
+ end_date: z.date().optional().nullable(),
26
+ car_id: z.lazy(() => carsId.optional()),
27
+ });
28
+ export const statesKeys = [
29
+ { name: "id" },
30
+ { name: "state" },
31
+ { name: "start_date" },
32
+ { name: "end_date", nullable: true },
33
+ { name: "car_id" },
34
+ ];
35
+ export const statesInitializerKeys = [
36
+ { name: "id", optional: true },
37
+ { name: "state" },
38
+ { name: "start_date" },
39
+ { name: "end_date", optional: true, nullable: true },
40
+ { name: "car_id" },
41
+ ];
42
+ export const statesMutatorKeys = [
43
+ { name: "id", optional: true },
44
+ { name: "state", optional: true },
45
+ { name: "start_date", optional: true },
46
+ { name: "end_date", optional: true, nullable: true },
47
+ { name: "car_id", optional: true },
48
+ ];
49
+ //# sourceMappingURL=States.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"States.js","sourceRoot":"","sources":["../../src/public/States.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,yEAAyE;AAEzE,OAAO,EAAE,YAAY,EAAqB,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8CxB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAmC,CAAC;AAEpE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,YAAY;IACnB,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;CAC7B,CAAgC,CAAC;AAElC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,QAAQ,CAAC,QAAQ,EAAE;IACvB,KAAK,EAAE,YAAY;IACnB,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ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E,QAAQ,EAAE,IAAI,EAAE;IACjC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE;IACtC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IACpD,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;CACnC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ /** Represents the enum public.states_status */
3
+ export type StatesStatus = "online" | "offline" | "asleep";
4
+ /** Zod schema for states_status */
5
+ export declare const statesStatus: z.ZodEnum<{
6
+ online: "online";
7
+ offline: "offline";
8
+ asleep: "asleep";
9
+ }>;
10
+ //# sourceMappingURL=StatesStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatesStatus.d.ts","sourceRoot":"","sources":["../../src/public/StatesStatus.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+CAA+C;AAC/C,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3D,mCAAmC;AACnC,eAAO,MAAM,YAAY;;;;EAA0C,CAAC"}
@@ -0,0 +1,6 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+ import { z } from "zod";
4
+ /** Zod schema for states_status */
5
+ export const statesStatus = z.enum(["online", "offline", "asleep"]);
6
+ //# sourceMappingURL=StatesStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatesStatus.js","sourceRoot":"","sources":["../../src/public/StatesStatus.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,yEAAyE;AAEzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,mCAAmC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,185 @@
1
+ import { z } from "zod";
2
+ import type { KeyParams } from "./KeyParams.js";
3
+ /** Identifier type for public.supercharger_price_history */
4
+ export type SuperchargerPriceHistoryId = string;
5
+ /** Represents the table public.supercharger_price_history */
6
+ export interface SuperchargerPriceHistory {
7
+ id: SuperchargerPriceHistoryId;
8
+ run_id: string;
9
+ fetched_at: Date;
10
+ location_id: string;
11
+ name: string | null;
12
+ common_site_name: string | null;
13
+ city: string | null;
14
+ postal_code: string | null;
15
+ country: string | null;
16
+ country_code: string | null;
17
+ region: string | null;
18
+ sub_region: string | null;
19
+ latitude: number | null;
20
+ longitude: number | null;
21
+ stalls: number | null;
22
+ max_power_kw: number | null;
23
+ open_to_non_teslas: boolean | null;
24
+ access_type: string | null;
25
+ time_zone: string | null;
26
+ tesla_charge_rate: number | null;
27
+ tesla_charge_unit: string | null;
28
+ tesla_charge_currency: string | null;
29
+ nontesla_charge_rate: number | null;
30
+ nontesla_charge_unit: string | null;
31
+ nontesla_charge_currency: string | null;
32
+ nontesla_member_charge_rate: number | null;
33
+ congestion_rate: number | null;
34
+ idle_rate: number | null;
35
+ warning: string | null;
36
+ record: unknown;
37
+ }
38
+ /** Represents the initializer for the table public.supercharger_price_history */
39
+ export interface SuperchargerPriceHistoryInitializer {
40
+ /** Default value: nextval('supercharger_price_history_id_seq'::regclass) */
41
+ id?: SuperchargerPriceHistoryId;
42
+ run_id: string;
43
+ fetched_at: Date;
44
+ location_id: string;
45
+ name?: string | null;
46
+ common_site_name?: string | null;
47
+ city?: string | null;
48
+ postal_code?: string | null;
49
+ country?: string | null;
50
+ country_code?: string | null;
51
+ region?: string | null;
52
+ sub_region?: string | null;
53
+ latitude?: number | null;
54
+ longitude?: number | null;
55
+ stalls?: number | null;
56
+ max_power_kw?: number | null;
57
+ open_to_non_teslas?: boolean | null;
58
+ access_type?: string | null;
59
+ time_zone?: string | null;
60
+ tesla_charge_rate?: number | null;
61
+ tesla_charge_unit?: string | null;
62
+ tesla_charge_currency?: string | null;
63
+ nontesla_charge_rate?: number | null;
64
+ nontesla_charge_unit?: string | null;
65
+ nontesla_charge_currency?: string | null;
66
+ nontesla_member_charge_rate?: number | null;
67
+ congestion_rate?: number | null;
68
+ idle_rate?: number | null;
69
+ warning?: string | null;
70
+ record: unknown;
71
+ }
72
+ /** Represents the mutator for the table public.supercharger_price_history */
73
+ export interface SuperchargerPriceHistoryMutator {
74
+ id?: SuperchargerPriceHistoryId;
75
+ run_id?: string;
76
+ fetched_at?: Date;
77
+ location_id?: string;
78
+ name?: string | null;
79
+ common_site_name?: string | null;
80
+ city?: string | null;
81
+ postal_code?: string | null;
82
+ country?: string | null;
83
+ country_code?: string | null;
84
+ region?: string | null;
85
+ sub_region?: string | null;
86
+ latitude?: number | null;
87
+ longitude?: number | null;
88
+ stalls?: number | null;
89
+ max_power_kw?: number | null;
90
+ open_to_non_teslas?: boolean | null;
91
+ access_type?: string | null;
92
+ time_zone?: string | null;
93
+ tesla_charge_rate?: number | null;
94
+ tesla_charge_unit?: string | null;
95
+ tesla_charge_currency?: string | null;
96
+ nontesla_charge_rate?: number | null;
97
+ nontesla_charge_unit?: string | null;
98
+ nontesla_charge_currency?: string | null;
99
+ nontesla_member_charge_rate?: number | null;
100
+ congestion_rate?: number | null;
101
+ idle_rate?: number | null;
102
+ warning?: string | null;
103
+ record?: unknown;
104
+ }
105
+ export declare const superchargerPriceHistoryId: z.Schema<SuperchargerPriceHistoryId>;
106
+ export declare const superchargerPriceHistory: z.Schema<SuperchargerPriceHistory>;
107
+ export declare const superchargerPriceHistoryInitializer: z.Schema<SuperchargerPriceHistoryInitializer>;
108
+ export declare const superchargerPriceHistoryMutator: z.Schema<SuperchargerPriceHistoryMutator>;
109
+ /**
110
+ * Represents the initializer for the table public.supercharger_price_history
111
+ * Strict variant: optional properties are required and typed with an explicit `| undefined` instead of `?:`.
112
+ */
113
+ export interface SuperchargerPriceHistoryInitializerStrict {
114
+ /** Default value: nextval('supercharger_price_history_id_seq'::regclass) */
115
+ id: SuperchargerPriceHistoryId | undefined;
116
+ run_id: string;
117
+ fetched_at: Date;
118
+ location_id: string;
119
+ name: string | null | undefined;
120
+ common_site_name: string | null | undefined;
121
+ city: string | null | undefined;
122
+ postal_code: string | null | undefined;
123
+ country: string | null | undefined;
124
+ country_code: string | null | undefined;
125
+ region: string | null | undefined;
126
+ sub_region: string | null | undefined;
127
+ latitude: number | null | undefined;
128
+ longitude: number | null | undefined;
129
+ stalls: number | null | undefined;
130
+ max_power_kw: number | null | undefined;
131
+ open_to_non_teslas: boolean | null | undefined;
132
+ access_type: string | null | undefined;
133
+ time_zone: string | null | undefined;
134
+ tesla_charge_rate: number | null | undefined;
135
+ tesla_charge_unit: string | null | undefined;
136
+ tesla_charge_currency: string | null | undefined;
137
+ nontesla_charge_rate: number | null | undefined;
138
+ nontesla_charge_unit: string | null | undefined;
139
+ nontesla_charge_currency: string | null | undefined;
140
+ nontesla_member_charge_rate: number | null | undefined;
141
+ congestion_rate: number | null | undefined;
142
+ idle_rate: number | null | undefined;
143
+ warning: string | null | undefined;
144
+ record: unknown;
145
+ }
146
+ /**
147
+ * Represents the mutator for the table public.supercharger_price_history
148
+ * Strict variant: optional properties are required and typed with an explicit `| undefined` instead of `?:`.
149
+ */
150
+ export interface SuperchargerPriceHistoryMutatorStrict {
151
+ id: SuperchargerPriceHistoryId | undefined;
152
+ run_id: string | undefined;
153
+ fetched_at: Date | undefined;
154
+ location_id: string | undefined;
155
+ name: string | null | undefined;
156
+ common_site_name: string | null | undefined;
157
+ city: string | null | undefined;
158
+ postal_code: string | null | undefined;
159
+ country: string | null | undefined;
160
+ country_code: string | null | undefined;
161
+ region: string | null | undefined;
162
+ sub_region: string | null | undefined;
163
+ latitude: number | null | undefined;
164
+ longitude: number | null | undefined;
165
+ stalls: number | null | undefined;
166
+ max_power_kw: number | null | undefined;
167
+ open_to_non_teslas: boolean | null | undefined;
168
+ access_type: string | null | undefined;
169
+ time_zone: string | null | undefined;
170
+ tesla_charge_rate: number | null | undefined;
171
+ tesla_charge_unit: string | null | undefined;
172
+ tesla_charge_currency: string | null | undefined;
173
+ nontesla_charge_rate: number | null | undefined;
174
+ nontesla_charge_unit: string | null | undefined;
175
+ nontesla_charge_currency: string | null | undefined;
176
+ nontesla_member_charge_rate: number | null | undefined;
177
+ congestion_rate: number | null | undefined;
178
+ idle_rate: number | null | undefined;
179
+ warning: string | null | undefined;
180
+ record: unknown | undefined;
181
+ }
182
+ export declare const superchargerPriceHistoryKeys: KeyParams<SuperchargerPriceHistory>[];
183
+ export declare const superchargerPriceHistoryInitializerKeys: KeyParams<SuperchargerPriceHistoryInitializer>[];
184
+ export declare const superchargerPriceHistoryMutatorKeys: KeyParams<SuperchargerPriceHistoryMutator>[];
185
+ //# sourceMappingURL=SuperchargerPriceHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuperchargerPriceHistory.d.ts","sourceRoot":"","sources":["../../src/public/SuperchargerPriceHistory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,4DAA4D;AAC5D,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAEhD,6DAA6D;AAC7D,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,0BAA0B,CAAC;IAE/B,MAAM,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,IAAI,CAAC;IAEjB,WAAW,EAAE,MAAM,CAAC;IAEpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,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AAE,OAAO,GAAG,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,4BAA4B,EAAE,SAAS,CAAC,wBAAwB,CAAC,EAgC3E,CAAC;AAEJ,eAAO,MAAM,uCAAuC,EAAE,SAAS,CAAC,mCAAmC,CAAC,EAgCjG,CAAC;AAEJ,eAAO,MAAM,mCAAmC,EAAE,SAAS,CAAC,+BAA+B,CAAC,EAgCzF,CAAC"}
@@ -0,0 +1,197 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+ import { z } from "zod";
4
+ export const superchargerPriceHistoryId = z.string();
5
+ export const superchargerPriceHistory = z.object({
6
+ id: superchargerPriceHistoryId,
7
+ run_id: z.string(),
8
+ fetched_at: z.date(),
9
+ location_id: z.string(),
10
+ name: z.string().nullable(),
11
+ common_site_name: z.string().nullable(),
12
+ city: z.string().nullable(),
13
+ postal_code: z.string().nullable(),
14
+ country: z.string().nullable(),
15
+ country_code: z.string().nullable(),
16
+ region: z.string().nullable(),
17
+ sub_region: z.string().nullable(),
18
+ latitude: z.number().nullable(),
19
+ longitude: z.number().nullable(),
20
+ stalls: z.number().nullable(),
21
+ max_power_kw: z.number().nullable(),
22
+ open_to_non_teslas: z.boolean().nullable(),
23
+ access_type: z.string().nullable(),
24
+ time_zone: z.string().nullable(),
25
+ tesla_charge_rate: z.number().nullable(),
26
+ tesla_charge_unit: z.string().nullable(),
27
+ tesla_charge_currency: z.string().nullable(),
28
+ nontesla_charge_rate: z.number().nullable(),
29
+ nontesla_charge_unit: z.string().nullable(),
30
+ nontesla_charge_currency: z.string().nullable(),
31
+ nontesla_member_charge_rate: z.number().nullable(),
32
+ congestion_rate: z.number().nullable(),
33
+ idle_rate: z.number().nullable(),
34
+ warning: z.string().nullable(),
35
+ record: z.unknown(),
36
+ });
37
+ export const superchargerPriceHistoryInitializer = z.object({
38
+ id: superchargerPriceHistoryId.optional(),
39
+ run_id: z.string(),
40
+ fetched_at: z.date(),
41
+ location_id: z.string(),
42
+ name: z.string().optional().nullable(),
43
+ common_site_name: z.string().optional().nullable(),
44
+ city: z.string().optional().nullable(),
45
+ postal_code: z.string().optional().nullable(),
46
+ country: z.string().optional().nullable(),
47
+ country_code: z.string().optional().nullable(),
48
+ region: z.string().optional().nullable(),
49
+ sub_region: z.string().optional().nullable(),
50
+ latitude: z.number().optional().nullable(),
51
+ longitude: z.number().optional().nullable(),
52
+ stalls: z.number().optional().nullable(),
53
+ max_power_kw: z.number().optional().nullable(),
54
+ open_to_non_teslas: z.boolean().optional().nullable(),
55
+ access_type: z.string().optional().nullable(),
56
+ time_zone: z.string().optional().nullable(),
57
+ tesla_charge_rate: z.number().optional().nullable(),
58
+ tesla_charge_unit: z.string().optional().nullable(),
59
+ tesla_charge_currency: z.string().optional().nullable(),
60
+ nontesla_charge_rate: z.number().optional().nullable(),
61
+ nontesla_charge_unit: z.string().optional().nullable(),
62
+ nontesla_charge_currency: z.string().optional().nullable(),
63
+ nontesla_member_charge_rate: z.number().optional().nullable(),
64
+ congestion_rate: z.number().optional().nullable(),
65
+ idle_rate: z.number().optional().nullable(),
66
+ warning: z.string().optional().nullable(),
67
+ record: z.unknown(),
68
+ });
69
+ export const superchargerPriceHistoryMutator = z.object({
70
+ id: superchargerPriceHistoryId.optional(),
71
+ run_id: z.string().optional(),
72
+ fetched_at: z.date().optional(),
73
+ location_id: z.string().optional(),
74
+ name: z.string().optional().nullable(),
75
+ common_site_name: z.string().optional().nullable(),
76
+ city: z.string().optional().nullable(),
77
+ postal_code: z.string().optional().nullable(),
78
+ country: z.string().optional().nullable(),
79
+ country_code: z.string().optional().nullable(),
80
+ region: z.string().optional().nullable(),
81
+ sub_region: z.string().optional().nullable(),
82
+ latitude: z.number().optional().nullable(),
83
+ longitude: z.number().optional().nullable(),
84
+ stalls: z.number().optional().nullable(),
85
+ max_power_kw: z.number().optional().nullable(),
86
+ open_to_non_teslas: z.boolean().optional().nullable(),
87
+ access_type: z.string().optional().nullable(),
88
+ time_zone: z.string().optional().nullable(),
89
+ tesla_charge_rate: z.number().optional().nullable(),
90
+ tesla_charge_unit: z.string().optional().nullable(),
91
+ tesla_charge_currency: z.string().optional().nullable(),
92
+ nontesla_charge_rate: z.number().optional().nullable(),
93
+ nontesla_charge_unit: z.string().optional().nullable(),
94
+ nontesla_charge_currency: z.string().optional().nullable(),
95
+ nontesla_member_charge_rate: z.number().optional().nullable(),
96
+ congestion_rate: z.number().optional().nullable(),
97
+ idle_rate: z.number().optional().nullable(),
98
+ warning: z.string().optional().nullable(),
99
+ record: z.unknown().optional(),
100
+ });
101
+ export const superchargerPriceHistoryKeys = [
102
+ { name: "id" },
103
+ { name: "run_id" },
104
+ { name: "fetched_at" },
105
+ { name: "location_id" },
106
+ { name: "name", nullable: true },
107
+ { name: "common_site_name", nullable: true },
108
+ { name: "city", nullable: true },
109
+ { name: "postal_code", nullable: true },
110
+ { name: "country", nullable: true },
111
+ { name: "country_code", nullable: true },
112
+ { name: "region", nullable: true },
113
+ { name: "sub_region", nullable: true },
114
+ { name: "latitude", nullable: true },
115
+ { name: "longitude", nullable: true },
116
+ { name: "stalls", nullable: true },
117
+ { name: "max_power_kw", nullable: true },
118
+ { name: "open_to_non_teslas", nullable: true },
119
+ { name: "access_type", nullable: true },
120
+ { name: "time_zone", nullable: true },
121
+ { name: "tesla_charge_rate", nullable: true },
122
+ { name: "tesla_charge_unit", nullable: true },
123
+ { name: "tesla_charge_currency", nullable: true },
124
+ { name: "nontesla_charge_rate", nullable: true },
125
+ { name: "nontesla_charge_unit", nullable: true },
126
+ { name: "nontesla_charge_currency", nullable: true },
127
+ { name: "nontesla_member_charge_rate", nullable: true },
128
+ { name: "congestion_rate", nullable: true },
129
+ { name: "idle_rate", nullable: true },
130
+ { name: "warning", nullable: true },
131
+ { name: "record" },
132
+ ];
133
+ export const superchargerPriceHistoryInitializerKeys = [
134
+ { name: "id", optional: true },
135
+ { name: "run_id" },
136
+ { name: "fetched_at" },
137
+ { name: "location_id" },
138
+ { name: "name", optional: true, nullable: true },
139
+ { name: "common_site_name", optional: true, nullable: true },
140
+ { name: "city", optional: true, nullable: true },
141
+ { name: "postal_code", optional: true, nullable: true },
142
+ { name: "country", optional: true, nullable: true },
143
+ { name: "country_code", optional: true, nullable: true },
144
+ { name: "region", optional: true, nullable: true },
145
+ { name: "sub_region", optional: true, nullable: true },
146
+ { name: "latitude", optional: true, nullable: true },
147
+ { name: "longitude", optional: true, nullable: true },
148
+ { name: "stalls", optional: true, nullable: true },
149
+ { name: "max_power_kw", optional: true, nullable: true },
150
+ { name: "open_to_non_teslas", optional: true, nullable: true },
151
+ { name: "access_type", optional: true, nullable: true },
152
+ { name: "time_zone", optional: true, nullable: true },
153
+ { name: "tesla_charge_rate", optional: true, nullable: true },
154
+ { name: "tesla_charge_unit", optional: true, nullable: true },
155
+ { name: "tesla_charge_currency", optional: true, nullable: true },
156
+ { name: "nontesla_charge_rate", optional: true, nullable: true },
157
+ { name: "nontesla_charge_unit", optional: true, nullable: true },
158
+ { name: "nontesla_charge_currency", optional: true, nullable: true },
159
+ { name: "nontesla_member_charge_rate", optional: true, nullable: true },
160
+ { name: "congestion_rate", optional: true, nullable: true },
161
+ { name: "idle_rate", optional: true, nullable: true },
162
+ { name: "warning", optional: true, nullable: true },
163
+ { name: "record" },
164
+ ];
165
+ export const superchargerPriceHistoryMutatorKeys = [
166
+ { name: "id", optional: true },
167
+ { name: "run_id", optional: true },
168
+ { name: "fetched_at", optional: true },
169
+ { name: "location_id", optional: true },
170
+ { name: "name", optional: true, nullable: true },
171
+ { name: "common_site_name", optional: true, nullable: true },
172
+ { name: "city", optional: true, nullable: true },
173
+ { name: "postal_code", optional: true, nullable: true },
174
+ { name: "country", optional: true, nullable: true },
175
+ { name: "country_code", optional: true, nullable: true },
176
+ { name: "region", optional: true, nullable: true },
177
+ { name: "sub_region", optional: true, nullable: true },
178
+ { name: "latitude", optional: true, nullable: true },
179
+ { name: "longitude", optional: true, nullable: true },
180
+ { name: "stalls", optional: true, nullable: true },
181
+ { name: "max_power_kw", optional: true, nullable: true },
182
+ { name: "open_to_non_teslas", optional: true, nullable: true },
183
+ { name: "access_type", optional: true, nullable: true },
184
+ { name: "time_zone", optional: true, nullable: true },
185
+ { name: "tesla_charge_rate", optional: true, nullable: true },
186
+ { name: "tesla_charge_unit", optional: true, nullable: true },
187
+ { name: "tesla_charge_currency", optional: true, nullable: true },
188
+ { name: "nontesla_charge_rate", optional: true, nullable: true },
189
+ { name: "nontesla_charge_unit", optional: true, nullable: true },
190
+ { name: "nontesla_charge_currency", optional: true, nullable: true },
191
+ { name: "nontesla_member_charge_rate", optional: true, nullable: true },
192
+ { name: "congestion_rate", optional: true, nullable: true },
193
+ { name: "idle_rate", optional: true, nullable: true },
194
+ { name: "warning", optional: true, nullable: true },
195
+ { name: "record", optional: true },
196
+ ];
197
+ //# sourceMappingURL=SuperchargerPriceHistory.js.map