@texturehq/device 1.3.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 (182) hide show
  1. package/README.md +110 -0
  2. package/dist/common/constants.d.ts +3 -0
  3. package/dist/common/constants.d.ts.map +1 -0
  4. package/dist/common/constants.js +6 -0
  5. package/dist/common/constants.js.map +1 -0
  6. package/dist/common/exceptions.d.ts +5 -0
  7. package/dist/common/exceptions.d.ts.map +1 -0
  8. package/dist/common/exceptions.js +13 -0
  9. package/dist/common/exceptions.js.map +1 -0
  10. package/dist/common/logger.d.ts +2 -0
  11. package/dist/common/logger.d.ts.map +1 -0
  12. package/dist/common/logger.js +6 -0
  13. package/dist/common/logger.js.map +1 -0
  14. package/dist/common/supportLevel.d.ts +6 -0
  15. package/dist/common/supportLevel.d.ts.map +1 -0
  16. package/dist/common/supportLevel.js +14 -0
  17. package/dist/common/supportLevel.js.map +1 -0
  18. package/dist/common/utils/index.d.ts +2 -0
  19. package/dist/common/utils/index.d.ts.map +1 -0
  20. package/dist/common/utils/index.js +8 -0
  21. package/dist/common/utils/index.js.map +1 -0
  22. package/dist/common/utils/retryAxios.d.ts +18 -0
  23. package/dist/common/utils/retryAxios.d.ts.map +1 -0
  24. package/dist/common/utils/retryAxios.js +32 -0
  25. package/dist/common/utils/retryAxios.js.map +1 -0
  26. package/dist/deviceModel/entities.d.ts +211 -0
  27. package/dist/deviceModel/entities.d.ts.map +1 -0
  28. package/dist/deviceModel/entities.js +41 -0
  29. package/dist/deviceModel/entities.js.map +1 -0
  30. package/dist/deviceModel/getDeviceModel/index.d.ts +29 -0
  31. package/dist/deviceModel/getDeviceModel/index.d.ts.map +1 -0
  32. package/dist/deviceModel/getDeviceModel/index.js +50 -0
  33. package/dist/deviceModel/getDeviceModel/index.js.map +1 -0
  34. package/dist/deviceModel/getDeviceModel/response.interfaces.d.ts +95 -0
  35. package/dist/deviceModel/getDeviceModel/response.interfaces.d.ts.map +1 -0
  36. package/dist/deviceModel/getDeviceModel/response.interfaces.js +252 -0
  37. package/dist/deviceModel/getDeviceModel/response.interfaces.js.map +1 -0
  38. package/dist/deviceModel/getDeviceModel/test.fail.d.ts +2 -0
  39. package/dist/deviceModel/getDeviceModel/test.fail.d.ts.map +1 -0
  40. package/dist/deviceModel/getDeviceModel/test.fail.js +8 -0
  41. package/dist/deviceModel/getDeviceModel/test.fail.js.map +1 -0
  42. package/dist/deviceModel/getDeviceModel/test.success.d.ts +2 -0
  43. package/dist/deviceModel/getDeviceModel/test.success.d.ts.map +1 -0
  44. package/dist/deviceModel/getDeviceModel/test.success.js +8 -0
  45. package/dist/deviceModel/getDeviceModel/test.success.js.map +1 -0
  46. package/dist/deviceModel/getDeviceModelByManufacturerSlug/index.d.ts +36 -0
  47. package/dist/deviceModel/getDeviceModelByManufacturerSlug/index.d.ts.map +1 -0
  48. package/dist/deviceModel/getDeviceModelByManufacturerSlug/index.js +59 -0
  49. package/dist/deviceModel/getDeviceModelByManufacturerSlug/index.js.map +1 -0
  50. package/dist/deviceModel/getDeviceModelByManufacturerSlug/response.interfaces.d.ts +53 -0
  51. package/dist/deviceModel/getDeviceModelByManufacturerSlug/response.interfaces.d.ts.map +1 -0
  52. package/dist/deviceModel/getDeviceModelByManufacturerSlug/response.interfaces.js +210 -0
  53. package/dist/deviceModel/getDeviceModelByManufacturerSlug/response.interfaces.js.map +1 -0
  54. package/dist/deviceModel/getDeviceModelByManufacturerSlug/test.fail.d.ts +2 -0
  55. package/dist/deviceModel/getDeviceModelByManufacturerSlug/test.fail.d.ts.map +1 -0
  56. package/dist/deviceModel/getDeviceModelByManufacturerSlug/test.fail.js +8 -0
  57. package/dist/deviceModel/getDeviceModelByManufacturerSlug/test.fail.js.map +1 -0
  58. package/dist/deviceModel/getDeviceModelByManufacturerSlug/test.success.d.ts +2 -0
  59. package/dist/deviceModel/getDeviceModelByManufacturerSlug/test.success.d.ts.map +1 -0
  60. package/dist/deviceModel/getDeviceModelByManufacturerSlug/test.success.js +8 -0
  61. package/dist/deviceModel/getDeviceModelByManufacturerSlug/test.success.js.map +1 -0
  62. package/dist/deviceModel/getDeviceModels/index.d.ts +50 -0
  63. package/dist/deviceModel/getDeviceModels/index.d.ts.map +1 -0
  64. package/dist/deviceModel/getDeviceModels/index.js +60 -0
  65. package/dist/deviceModel/getDeviceModels/index.js.map +1 -0
  66. package/dist/deviceModel/getDeviceModels/response.interfaces.d.ts +95 -0
  67. package/dist/deviceModel/getDeviceModels/response.interfaces.d.ts.map +1 -0
  68. package/dist/deviceModel/getDeviceModels/response.interfaces.js +252 -0
  69. package/dist/deviceModel/getDeviceModels/response.interfaces.js.map +1 -0
  70. package/dist/deviceModel/getDeviceModels/test.success.d.ts +2 -0
  71. package/dist/deviceModel/getDeviceModels/test.success.d.ts.map +1 -0
  72. package/dist/deviceModel/getDeviceModels/test.success.js +11 -0
  73. package/dist/deviceModel/getDeviceModels/test.success.js.map +1 -0
  74. package/dist/deviceModel/index.d.ts +5 -0
  75. package/dist/deviceModel/index.d.ts.map +1 -0
  76. package/dist/deviceModel/index.js +21 -0
  77. package/dist/deviceModel/index.js.map +1 -0
  78. package/dist/deviceState/battery.d.ts +132 -0
  79. package/dist/deviceState/battery.d.ts.map +1 -0
  80. package/dist/deviceState/battery.js +81 -0
  81. package/dist/deviceState/battery.js.map +1 -0
  82. package/dist/deviceState/charger.d.ts +44 -0
  83. package/dist/deviceState/charger.d.ts.map +1 -0
  84. package/dist/deviceState/charger.js +34 -0
  85. package/dist/deviceState/charger.js.map +1 -0
  86. package/dist/deviceState/common.d.ts +50 -0
  87. package/dist/deviceState/common.d.ts.map +1 -0
  88. package/dist/deviceState/common.js +75 -0
  89. package/dist/deviceState/common.js.map +1 -0
  90. package/dist/deviceState/index.d.ts +7 -0
  91. package/dist/deviceState/index.d.ts.map +1 -0
  92. package/dist/deviceState/index.js +23 -0
  93. package/dist/deviceState/index.js.map +1 -0
  94. package/dist/deviceState/inverter.d.ts +79 -0
  95. package/dist/deviceState/inverter.d.ts.map +1 -0
  96. package/dist/deviceState/inverter.js +30 -0
  97. package/dist/deviceState/inverter.js.map +1 -0
  98. package/dist/deviceState/thermostat.d.ts +58 -0
  99. package/dist/deviceState/thermostat.d.ts.map +1 -0
  100. package/dist/deviceState/thermostat.js +51 -0
  101. package/dist/deviceState/thermostat.js.map +1 -0
  102. package/dist/deviceState/vehicle.d.ts +88 -0
  103. package/dist/deviceState/vehicle.d.ts.map +1 -0
  104. package/dist/deviceState/vehicle.js +72 -0
  105. package/dist/deviceState/vehicle.js.map +1 -0
  106. package/dist/deviceType/entities.d.ts +6 -0
  107. package/dist/deviceType/entities.d.ts.map +1 -0
  108. package/dist/deviceType/entities.js +14 -0
  109. package/dist/deviceType/entities.js.map +1 -0
  110. package/dist/deviceType/index.d.ts +2 -0
  111. package/dist/deviceType/index.d.ts.map +1 -0
  112. package/dist/deviceType/index.js +18 -0
  113. package/dist/deviceType/index.js.map +1 -0
  114. package/dist/index.d.ts +9 -0
  115. package/dist/index.d.ts.map +1 -0
  116. package/dist/index.js +25 -0
  117. package/dist/index.js.map +1 -0
  118. package/dist/manufacturer/entities.d.ts +124 -0
  119. package/dist/manufacturer/entities.d.ts.map +1 -0
  120. package/dist/manufacturer/entities.js +28 -0
  121. package/dist/manufacturer/entities.js.map +1 -0
  122. package/dist/manufacturer/getManufacturer/index.d.ts +34 -0
  123. package/dist/manufacturer/getManufacturer/index.d.ts.map +1 -0
  124. package/dist/manufacturer/getManufacturer/index.js +47 -0
  125. package/dist/manufacturer/getManufacturer/index.js.map +1 -0
  126. package/dist/manufacturer/getManufacturer/response.interfaces.d.ts +77 -0
  127. package/dist/manufacturer/getManufacturer/response.interfaces.d.ts.map +1 -0
  128. package/dist/manufacturer/getManufacturer/response.interfaces.js +234 -0
  129. package/dist/manufacturer/getManufacturer/response.interfaces.js.map +1 -0
  130. package/dist/manufacturer/getManufacturer/test.fail.d.ts +2 -0
  131. package/dist/manufacturer/getManufacturer/test.fail.d.ts.map +1 -0
  132. package/dist/manufacturer/getManufacturer/test.fail.js +8 -0
  133. package/dist/manufacturer/getManufacturer/test.fail.js.map +1 -0
  134. package/dist/manufacturer/getManufacturer/test.success.d.ts +2 -0
  135. package/dist/manufacturer/getManufacturer/test.success.d.ts.map +1 -0
  136. package/dist/manufacturer/getManufacturer/test.success.js +8 -0
  137. package/dist/manufacturer/getManufacturer/test.success.js.map +1 -0
  138. package/dist/manufacturer/getManufacturers/index.d.ts +51 -0
  139. package/dist/manufacturer/getManufacturers/index.d.ts.map +1 -0
  140. package/dist/manufacturer/getManufacturers/index.js +46 -0
  141. package/dist/manufacturer/getManufacturers/index.js.map +1 -0
  142. package/dist/manufacturer/getManufacturers/response.interfaces.d.ts +77 -0
  143. package/dist/manufacturer/getManufacturers/response.interfaces.d.ts.map +1 -0
  144. package/dist/manufacturer/getManufacturers/response.interfaces.js +242 -0
  145. package/dist/manufacturer/getManufacturers/response.interfaces.js.map +1 -0
  146. package/dist/manufacturer/getManufacturers/test.success.d.ts +2 -0
  147. package/dist/manufacturer/getManufacturers/test.success.d.ts.map +1 -0
  148. package/dist/manufacturer/getManufacturers/test.success.js +8 -0
  149. package/dist/manufacturer/getManufacturers/test.success.js.map +1 -0
  150. package/dist/manufacturer/index.d.ts +5 -0
  151. package/dist/manufacturer/index.d.ts.map +1 -0
  152. package/dist/manufacturer/index.js +21 -0
  153. package/dist/manufacturer/index.js.map +1 -0
  154. package/dist/manufacturer/parseManufacturer/index.d.ts +4 -0
  155. package/dist/manufacturer/parseManufacturer/index.d.ts.map +1 -0
  156. package/dist/manufacturer/parseManufacturer/index.js +42 -0
  157. package/dist/manufacturer/parseManufacturer/index.js.map +1 -0
  158. package/dist/metrics/aggregations.d.ts +5 -0
  159. package/dist/metrics/aggregations.d.ts.map +1 -0
  160. package/dist/metrics/aggregations.js +7 -0
  161. package/dist/metrics/aggregations.js.map +1 -0
  162. package/dist/metrics/groupBy.d.ts +5 -0
  163. package/dist/metrics/groupBy.d.ts.map +1 -0
  164. package/dist/metrics/groupBy.js +7 -0
  165. package/dist/metrics/groupBy.js.map +1 -0
  166. package/dist/metrics/index.d.ts +6 -0
  167. package/dist/metrics/index.d.ts.map +1 -0
  168. package/dist/metrics/index.js +22 -0
  169. package/dist/metrics/index.js.map +1 -0
  170. package/dist/metrics/range.d.ts +28 -0
  171. package/dist/metrics/range.d.ts.map +1 -0
  172. package/dist/metrics/range.js +138 -0
  173. package/dist/metrics/range.js.map +1 -0
  174. package/dist/metrics/units.d.ts +5 -0
  175. package/dist/metrics/units.d.ts.map +1 -0
  176. package/dist/metrics/units.js +31 -0
  177. package/dist/metrics/units.js.map +1 -0
  178. package/dist/metrics/window.d.ts +17 -0
  179. package/dist/metrics/window.d.ts.map +1 -0
  180. package/dist/metrics/window.js +28 -0
  181. package/dist/metrics/window.js.map +1 -0
  182. package/package.json +37 -0
@@ -0,0 +1,252 @@
1
+ "use strict";
2
+ // To parse this data:
3
+ //
4
+ // import { Convert, ResponseInterfaces } from "./file";
5
+ //
6
+ // const responseInterfaces = Convert.toResponseInterfaces(json);
7
+ //
8
+ // These functions will throw an error if the JSON doesn't
9
+ // match the expected interface, even if the JSON is valid.
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.Convert = void 0;
12
+ // Converts JSON strings to/from your types
13
+ // and asserts the results of JSON.parse at runtime
14
+ class Convert {
15
+ static toResponseInterfaces(json) {
16
+ return cast(JSON.parse(json), r("ResponseInterfaces"));
17
+ }
18
+ static responseInterfacesToJson(value) {
19
+ return JSON.stringify(uncast(value, r("ResponseInterfaces")), null, 2);
20
+ }
21
+ }
22
+ exports.Convert = Convert;
23
+ function invalidValue(typ, val, key, parent = '') {
24
+ const prettyTyp = prettyTypeName(typ);
25
+ const parentText = parent ? ` on ${parent}` : '';
26
+ const keyText = key ? ` for key "${key}"` : '';
27
+ throw Error(`Invalid value${keyText}${parentText}. Expected ${prettyTyp} but got ${JSON.stringify(val)}`);
28
+ }
29
+ function prettyTypeName(typ) {
30
+ if (Array.isArray(typ)) {
31
+ if (typ.length === 2 && typ[0] === undefined) {
32
+ return `an optional ${prettyTypeName(typ[1])}`;
33
+ }
34
+ else {
35
+ return `one of [${typ.map(a => { return prettyTypeName(a); }).join(", ")}]`;
36
+ }
37
+ }
38
+ else if (typeof typ === "object" && typ.literal !== undefined) {
39
+ return typ.literal;
40
+ }
41
+ else {
42
+ return typeof typ;
43
+ }
44
+ }
45
+ function jsonToJSProps(typ) {
46
+ if (typ.jsonToJS === undefined) {
47
+ const map = {};
48
+ typ.props.forEach((p) => map[p.json] = { key: p.js, typ: p.typ });
49
+ typ.jsonToJS = map;
50
+ }
51
+ return typ.jsonToJS;
52
+ }
53
+ function jsToJSONProps(typ) {
54
+ if (typ.jsToJSON === undefined) {
55
+ const map = {};
56
+ typ.props.forEach((p) => map[p.js] = { key: p.json, typ: p.typ });
57
+ typ.jsToJSON = map;
58
+ }
59
+ return typ.jsToJSON;
60
+ }
61
+ function transform(val, typ, getProps, key = '', parent = '') {
62
+ function transformPrimitive(typ, val) {
63
+ if (typeof typ === typeof val)
64
+ return val;
65
+ return invalidValue(typ, val, key, parent);
66
+ }
67
+ function transformUnion(typs, val) {
68
+ // val must validate against one typ in typs
69
+ const l = typs.length;
70
+ for (let i = 0; i < l; i++) {
71
+ const typ = typs[i];
72
+ try {
73
+ return transform(val, typ, getProps);
74
+ }
75
+ catch (_) { }
76
+ }
77
+ return invalidValue(typs, val, key, parent);
78
+ }
79
+ function transformEnum(cases, val) {
80
+ if (cases.indexOf(val) !== -1)
81
+ return val;
82
+ return invalidValue(cases.map(a => { return l(a); }), val, key, parent);
83
+ }
84
+ function transformArray(typ, val) {
85
+ // val must be an array with no invalid elements
86
+ if (!Array.isArray(val))
87
+ return invalidValue(l("array"), val, key, parent);
88
+ return val.map(el => transform(el, typ, getProps));
89
+ }
90
+ function transformDate(val) {
91
+ if (val === null) {
92
+ return null;
93
+ }
94
+ const d = new Date(val);
95
+ if (isNaN(d.valueOf())) {
96
+ return invalidValue(l("Date"), val, key, parent);
97
+ }
98
+ return d;
99
+ }
100
+ function transformObject(props, additional, val) {
101
+ if (val === null || typeof val !== "object" || Array.isArray(val)) {
102
+ return invalidValue(l(ref || "object"), val, key, parent);
103
+ }
104
+ const result = {};
105
+ Object.getOwnPropertyNames(props).forEach(key => {
106
+ const prop = props[key];
107
+ const v = Object.prototype.hasOwnProperty.call(val, key) ? val[key] : undefined;
108
+ result[prop.key] = transform(v, prop.typ, getProps, key, ref);
109
+ });
110
+ Object.getOwnPropertyNames(val).forEach(key => {
111
+ if (!Object.prototype.hasOwnProperty.call(props, key)) {
112
+ result[key] = transform(val[key], additional, getProps, key, ref);
113
+ }
114
+ });
115
+ return result;
116
+ }
117
+ if (typ === "any")
118
+ return val;
119
+ if (typ === null) {
120
+ if (val === null)
121
+ return val;
122
+ return invalidValue(typ, val, key, parent);
123
+ }
124
+ if (typ === false)
125
+ return invalidValue(typ, val, key, parent);
126
+ let ref = undefined;
127
+ while (typeof typ === "object" && typ.ref !== undefined) {
128
+ ref = typ.ref;
129
+ typ = typeMap[typ.ref];
130
+ }
131
+ if (Array.isArray(typ))
132
+ return transformEnum(typ, val);
133
+ if (typeof typ === "object") {
134
+ return typ.hasOwnProperty("unionMembers") ? transformUnion(typ.unionMembers, val)
135
+ : typ.hasOwnProperty("arrayItems") ? transformArray(typ.arrayItems, val)
136
+ : typ.hasOwnProperty("props") ? transformObject(getProps(typ), typ.additional, val)
137
+ : invalidValue(typ, val, key, parent);
138
+ }
139
+ // Numbers can be parsed by Date but shouldn't be.
140
+ if (typ === Date && typeof val !== "number")
141
+ return transformDate(val);
142
+ return transformPrimitive(typ, val);
143
+ }
144
+ function cast(val, typ) {
145
+ return transform(val, typ, jsonToJSProps);
146
+ }
147
+ function uncast(val, typ) {
148
+ return transform(val, typ, jsToJSONProps);
149
+ }
150
+ function l(typ) {
151
+ return { literal: typ };
152
+ }
153
+ function a(typ) {
154
+ return { arrayItems: typ };
155
+ }
156
+ function u(...typs) {
157
+ return { unionMembers: typs };
158
+ }
159
+ function o(props, additional) {
160
+ return { props, additional };
161
+ }
162
+ function m(additional) {
163
+ return { props: [], additional };
164
+ }
165
+ function r(name) {
166
+ return { ref: name };
167
+ }
168
+ const typeMap = {
169
+ "ResponseInterfaces": o([
170
+ { json: "docs", js: "docs", typ: a(r("Doc")) },
171
+ { json: "totalDocs", js: "totalDocs", typ: 0 },
172
+ { json: "limit", js: "limit", typ: 0 },
173
+ { json: "totalPages", js: "totalPages", typ: 0 },
174
+ { json: "page", js: "page", typ: 0 },
175
+ { json: "pagingCounter", js: "pagingCounter", typ: 0 },
176
+ { json: "hasPrevPage", js: "hasPrevPage", typ: true },
177
+ { json: "hasNextPage", js: "hasNextPage", typ: true },
178
+ { json: "prevPage", js: "prevPage", typ: null },
179
+ { json: "nextPage", js: "nextPage", typ: 0 },
180
+ ], false),
181
+ "Doc": o([
182
+ { json: "id", js: "id", typ: "" },
183
+ { json: "slug", js: "slug", typ: "" },
184
+ { json: "name", js: "name", typ: "" },
185
+ { json: "manufacturer", js: "manufacturer", typ: r("Manufacturer") },
186
+ { json: "type", js: "type", typ: "" },
187
+ { json: "support_level", js: "support_level", typ: "" },
188
+ { json: "createdAt", js: "createdAt", typ: Date },
189
+ { json: "updatedAt", js: "updatedAt", typ: Date },
190
+ ], false),
191
+ "Manufacturer": o([
192
+ { json: "id", js: "id", typ: "" },
193
+ { json: "slug", js: "slug", typ: "" },
194
+ { json: "name", js: "name", typ: "" },
195
+ { json: "logo", js: "logo", typ: r("Logo") },
196
+ { json: "support_level", js: "support_level", typ: "" },
197
+ { json: "createdAt", js: "createdAt", typ: Date },
198
+ { json: "updatedAt", js: "updatedAt", typ: Date },
199
+ { json: "icon", js: "icon", typ: r("Icon") },
200
+ { json: "vector_icon", js: "vector_icon", typ: r("Logo") },
201
+ ], false),
202
+ "Icon": o([
203
+ { json: "id", js: "id", typ: "" },
204
+ { json: "alt", js: "alt", typ: "" },
205
+ { json: "filename", js: "filename", typ: "" },
206
+ { json: "mimeType", js: "mimeType", typ: "" },
207
+ { json: "filesize", js: "filesize", typ: 0 },
208
+ { json: "width", js: "width", typ: 0 },
209
+ { json: "height", js: "height", typ: 0 },
210
+ { json: "focalX", js: "focalX", typ: 0 },
211
+ { json: "focalY", js: "focalY", typ: 0 },
212
+ { json: "sizes", js: "sizes", typ: r("IconSizes") },
213
+ { json: "createdAt", js: "createdAt", typ: Date },
214
+ { json: "updatedAt", js: "updatedAt", typ: Date },
215
+ { json: "url", js: "url", typ: "" },
216
+ ], false),
217
+ "IconSizes": o([
218
+ { json: "thumbnail", js: "thumbnail", typ: r("PurpleCard") },
219
+ { json: "card", js: "card", typ: r("PurpleCard") },
220
+ { json: "tablet", js: "tablet", typ: r("PurpleCard") },
221
+ ], false),
222
+ "PurpleCard": o([
223
+ { json: "width", js: "width", typ: 0 },
224
+ { json: "height", js: "height", typ: 0 },
225
+ { json: "mimeType", js: "mimeType", typ: "" },
226
+ { json: "filesize", js: "filesize", typ: 0 },
227
+ { json: "filename", js: "filename", typ: "" },
228
+ { json: "url", js: "url", typ: "" },
229
+ ], false),
230
+ "Logo": o([
231
+ { json: "id", js: "id", typ: "" },
232
+ { json: "alt", js: "alt", typ: "" },
233
+ { json: "filename", js: "filename", typ: "" },
234
+ { json: "mimeType", js: "mimeType", typ: "" },
235
+ { json: "filesize", js: "filesize", typ: 0 },
236
+ { json: "width", js: "width", typ: 0 },
237
+ { json: "height", js: "height", typ: 0 },
238
+ { json: "sizes", js: "sizes", typ: r("LogoSizes") },
239
+ { json: "createdAt", js: "createdAt", typ: Date },
240
+ { json: "updatedAt", js: "updatedAt", typ: Date },
241
+ { json: "url", js: "url", typ: "" },
242
+ ], false),
243
+ "LogoSizes": o([
244
+ { json: "thumbnail", js: "thumbnail", typ: r("FluffyCard") },
245
+ { json: "card", js: "card", typ: r("FluffyCard") },
246
+ { json: "tablet", js: "tablet", typ: r("FluffyCard") },
247
+ ], false),
248
+ "FluffyCard": o([
249
+ { json: "url", js: "url", typ: null },
250
+ ], false),
251
+ };
252
+ //# sourceMappingURL=response.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.interfaces.js","sourceRoot":"","sources":["../../../src/deviceModel/getDeviceModels/response.interfaces.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,EAAE;AACF,0DAA0D;AAC1D,EAAE;AACF,mEAAmE;AACnE,EAAE;AACF,0DAA0D;AAC1D,2DAA2D;;;AAsG3D,2CAA2C;AAC3C,mDAAmD;AACnD,MAAa,OAAO;IACT,MAAM,CAAC,oBAAoB,CAAC,IAAY;QAC3C,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC3D,CAAC;IAEM,MAAM,CAAC,wBAAwB,CAAC,KAAyB;QAC5D,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,oBAAoB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC3E,CAAC;CACJ;AARD,0BAQC;AAED,SAAS,YAAY,CAAC,GAAQ,EAAE,GAAQ,EAAE,GAAQ,EAAE,SAAc,EAAE;IAChE,MAAM,SAAS,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjD,MAAM,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,MAAM,KAAK,CAAC,gBAAgB,OAAO,GAAG,UAAU,cAAc,SAAS,YAAY,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC9G,CAAC;AAED,SAAS,cAAc,CAAC,GAAQ;IAC5B,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,C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GAAG,EAAE,EAAE,EAAE;KACtC,EAAE,KAAK,CAAC;IACT,WAAW,EAAE,CAAC,CAAC;QACX,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE;QAC5D,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE;QAClD,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE;KACzD,EAAE,KAAK,CAAC;IACT,YAAY,EAAE,CAAC,CAAC;QACZ,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE;KACxC,EAAE,KAAK,CAAC;CACZ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=test.success.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.success.d.ts","sourceRoot":"","sources":["../../../src/deviceModel/getDeviceModels/test.success.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require(".");
4
+ const main = async () => {
5
+ await (0, _1.getDeviceModels)({
6
+ baseImageUrl: "https://texturehq.payloadcms.app",
7
+ slugs: ["tesla:cybertruck", "chargepoint:express"],
8
+ });
9
+ };
10
+ main();
11
+ //# sourceMappingURL=test.success.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.success.js","sourceRoot":"","sources":["../../../src/deviceModel/getDeviceModels/test.success.ts"],"names":[],"mappings":";;AAAA,wBAAoC;AAEpC,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;IACtB,MAAM,IAAA,kBAAe,EAAC;QACpB,YAAY,EAAE,kCAAkC;QAChD,KAAK,EAAE,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;KACnD,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,IAAI,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./getDeviceModel";
2
+ export * from "./getDeviceModelByManufacturerSlug";
3
+ export * from "./getDeviceModels";
4
+ export * from "./entities";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deviceModel/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAA;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./getDeviceModel"), exports);
18
+ __exportStar(require("./getDeviceModelByManufacturerSlug"), exports);
19
+ __exportStar(require("./getDeviceModels"), exports);
20
+ __exportStar(require("./entities"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/deviceModel/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,qEAAkD;AAClD,oDAAkC;AAClC,6CAA2B"}
@@ -0,0 +1,132 @@
1
+ import { z } from "zod";
2
+ export declare const CoreBatteryStateSchema: z.ZodObject<{
3
+ /**
4
+ * Whether the battery is currently charging. The state could be unknown if not provided by the manufacturer.
5
+ * @example "charging"
6
+ */
7
+ chargingState: z.ZodEnum<["charging", "discharging", "idle", "unknown"]>;
8
+ /**
9
+ * The current charge of the battery in watt-hours (Wh).
10
+ * @example 43200
11
+ */
12
+ charge: z.ZodNumber;
13
+ /**
14
+ * The current charge of the battery as a percentage. Represented as a number between 0 and 100.
15
+ * @example 50
16
+ */
17
+ chargePercentage: z.ZodNumber;
18
+ /**
19
+ * The current charge rate of the battery in watts (W).
20
+ *
21
+ * If negative, the battery is charging (consuming power).
22
+ * If positive, the battery is discharging (supplying power).
23
+ * If 0 then the battery is idle.
24
+ *
25
+ * @example 1000
26
+ * @optional
27
+ */
28
+ chargeRate: z.ZodOptional<z.ZodNumber>;
29
+ /**
30
+ * The current charge percentage that should be reserved for backup power. Represented as a number between 0 and 100.
31
+ * @example 90
32
+ * @optional
33
+ */
34
+ backupReserve: z.ZodOptional<z.ZodNumber>;
35
+ /**
36
+ * Whether the battery has an active storm mode alert.
37
+ * @example true
38
+ * @optional
39
+ */
40
+ isStormModeActive: z.ZodOptional<z.ZodBoolean>;
41
+ /**
42
+ * Whether the battery has an active storm mode enabled.
43
+ * @example true
44
+ * @optional
45
+ */
46
+ isStormModeEnabled: z.ZodOptional<z.ZodBoolean>;
47
+ /**
48
+ * The current strategy or mode the battery is operating in.
49
+ * @example "self-consumption"
50
+ */
51
+ strategy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["unknown", "self_consumption", "time_of_use", "backup"]>>>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ chargingState: "idle" | "unknown" | "charging" | "discharging";
54
+ charge: number;
55
+ chargePercentage: number;
56
+ chargeRate?: number | undefined;
57
+ backupReserve?: number | undefined;
58
+ isStormModeActive?: boolean | undefined;
59
+ isStormModeEnabled?: boolean | undefined;
60
+ strategy?: "unknown" | "self_consumption" | "time_of_use" | "backup" | undefined;
61
+ }, {
62
+ chargingState: "idle" | "unknown" | "charging" | "discharging";
63
+ charge: number;
64
+ chargePercentage: number;
65
+ chargeRate?: number | undefined;
66
+ backupReserve?: number | undefined;
67
+ isStormModeActive?: boolean | undefined;
68
+ isStormModeEnabled?: boolean | undefined;
69
+ strategy?: "unknown" | "self_consumption" | "time_of_use" | "backup" | undefined;
70
+ }>;
71
+ export declare const BatteryStateSchema: z.ZodObject<{
72
+ chargingState: z.ZodEnum<["charging", "discharging", "idle", "unknown"]>;
73
+ charge: z.ZodNumber;
74
+ chargePercentage: z.ZodNumber;
75
+ chargeRate: z.ZodOptional<z.ZodNumber>;
76
+ backupReserve: z.ZodOptional<z.ZodNumber>;
77
+ isStormModeActive: z.ZodOptional<z.ZodBoolean>;
78
+ isStormModeEnabled: z.ZodOptional<z.ZodBoolean>;
79
+ strategy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["unknown", "self_consumption", "time_of_use", "backup"]>>>;
80
+ gridStatus: z.ZodOptional<z.ZodEnum<["exporting", "importing", "idle", "unknown"]>>;
81
+ gridPower: z.ZodOptional<z.ZodNumber>;
82
+ gridEnergy: z.ZodOptional<z.ZodNumber>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ chargingState: "idle" | "unknown" | "charging" | "discharging";
85
+ charge: number;
86
+ chargePercentage: number;
87
+ chargeRate?: number | undefined;
88
+ backupReserve?: number | undefined;
89
+ isStormModeActive?: boolean | undefined;
90
+ isStormModeEnabled?: boolean | undefined;
91
+ strategy?: "unknown" | "self_consumption" | "time_of_use" | "backup" | undefined;
92
+ gridStatus?: "idle" | "unknown" | "exporting" | "importing" | undefined;
93
+ gridPower?: number | undefined;
94
+ gridEnergy?: number | undefined;
95
+ }, {
96
+ chargingState: "idle" | "unknown" | "charging" | "discharging";
97
+ charge: number;
98
+ chargePercentage: number;
99
+ chargeRate?: number | undefined;
100
+ backupReserve?: number | undefined;
101
+ isStormModeActive?: boolean | undefined;
102
+ isStormModeEnabled?: boolean | undefined;
103
+ strategy?: "unknown" | "self_consumption" | "time_of_use" | "backup" | undefined;
104
+ gridStatus?: "idle" | "unknown" | "exporting" | "importing" | undefined;
105
+ gridPower?: number | undefined;
106
+ gridEnergy?: number | undefined;
107
+ }>;
108
+ export type BatteryState = z.infer<typeof BatteryStateSchema>;
109
+ export declare const BatteryStaticStateSchema: z.ZodObject<{
110
+ /**
111
+ * The rated maximum capacity of the battery in watt-hours (Wh).
112
+ */
113
+ capacity: z.ZodNumber;
114
+ /**
115
+ * The rated maximum charge rate of the battery in watts (W).
116
+ */
117
+ maxChargeRate: z.ZodOptional<z.ZodNumber>;
118
+ /**
119
+ * The rated maximum discharge rate of the battery in watts (W).
120
+ */
121
+ maxDischargeRate: z.ZodOptional<z.ZodNumber>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ capacity: number;
124
+ maxChargeRate?: number | undefined;
125
+ maxDischargeRate?: number | undefined;
126
+ }, {
127
+ capacity: number;
128
+ maxChargeRate?: number | undefined;
129
+ maxDischargeRate?: number | undefined;
130
+ }>;
131
+ export type BatteryStaticState = z.infer<typeof BatteryStaticStateSchema>;
132
+ //# sourceMappingURL=battery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../src/deviceState/battery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;IACjC;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAMH;;;;;;;;;OASG;;IAEH;;;;OAIG;;IASH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoD,CAAC;AACpF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,wBAAwB;IACnC;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;EAEH,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatteryStaticStateSchema = exports.BatteryStateSchema = exports.CoreBatteryStateSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("./common");
6
+ exports.CoreBatteryStateSchema = zod_1.z.object({
7
+ /**
8
+ * Whether the battery is currently charging. The state could be unknown if not provided by the manufacturer.
9
+ * @example "charging"
10
+ */
11
+ chargingState: common_1.BatteryChargingStateEnum,
12
+ /**
13
+ * The current charge of the battery in watt-hours (Wh).
14
+ * @example 43200
15
+ */
16
+ charge: zod_1.z.number().describe("The current charge of the battery in watt-hours (Wh)."),
17
+ /**
18
+ * The current charge of the battery as a percentage. Represented as a number between 0 and 100.
19
+ * @example 50
20
+ */
21
+ chargePercentage: zod_1.z
22
+ .number()
23
+ .min(0)
24
+ .max(100)
25
+ .describe("The current charge of the battery as a percentage. Represented as a number between 0 and 100."),
26
+ /**
27
+ * The current charge rate of the battery in watts (W).
28
+ *
29
+ * If negative, the battery is charging (consuming power).
30
+ * If positive, the battery is discharging (supplying power).
31
+ * If 0 then the battery is idle.
32
+ *
33
+ * @example 1000
34
+ * @optional
35
+ */
36
+ chargeRate: zod_1.z.number().optional().describe("The current charge rate of the battery in watts (W)."),
37
+ /**
38
+ * The current charge percentage that should be reserved for backup power. Represented as a number between 0 and 100.
39
+ * @example 90
40
+ * @optional
41
+ */
42
+ backupReserve: zod_1.z
43
+ .number()
44
+ .min(0)
45
+ .max(100)
46
+ .optional()
47
+ .describe("The charge percentage that should be reserved for backup power. Represented as a number between 0 and 100."),
48
+ /**
49
+ * Whether the battery has an active storm mode alert.
50
+ * @example true
51
+ * @optional
52
+ */
53
+ isStormModeActive: zod_1.z.boolean().optional().describe("Whether the battery has an active storm mode alert."),
54
+ /**
55
+ * Whether the battery has an active storm mode enabled.
56
+ * @example true
57
+ * @optional
58
+ */
59
+ isStormModeEnabled: zod_1.z.boolean().optional().describe("Whether the battery has storm mode enabled."),
60
+ /**
61
+ * The current strategy or mode the battery is operating in.
62
+ * @example "self-consumption"
63
+ */
64
+ strategy: common_1.BatteryStrategiesEnum.optional(),
65
+ });
66
+ exports.BatteryStateSchema = exports.CoreBatteryStateSchema.merge(common_1.CoreGridStateSchema);
67
+ exports.BatteryStaticStateSchema = zod_1.z.object({
68
+ /**
69
+ * The rated maximum capacity of the battery in watt-hours (Wh).
70
+ */
71
+ capacity: zod_1.z.number().describe("The rated maximum capacity of the battery in watt-hours (Wh)."),
72
+ /**
73
+ * The rated maximum charge rate of the battery in watts (W).
74
+ */
75
+ maxChargeRate: zod_1.z.number().optional().describe("The rated maximum charge rate of the battery in watts (W)."),
76
+ /**
77
+ * The rated maximum discharge rate of the battery in watts (W).
78
+ */
79
+ maxDischargeRate: zod_1.z.number().optional().describe("The rated maximum discharge rate of the battery in watts (W)."),
80
+ });
81
+ //# sourceMappingURL=battery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"battery.js","sourceRoot":"","sources":["../../src/deviceState/battery.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAAgG;AAEnF,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C;;;OAGG;IACH,aAAa,EAAE,iCAAwB;IACvC;;;OAGG;IACH,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;IACpF;;;OAGG;IACH,gBAAgB,EAAE,OAAC;SAChB,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CAAC,+FAA+F,CAAC;IAC5G;;;;;;;;;OASG;IACH,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sDAAsD,CAAC;IAClG;;;;OAIG;IACH,aAAa,EAAE,OAAC;SACb,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,4GAA4G,CAC7G;IACH;;;;OAIG;IACH,iBAAiB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qDAAqD,CAAC;IACzG;;;;OAIG;IACH,kBAAkB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;IAClG;;;OAGG;IACH,QAAQ,EAAE,8BAAqB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,8BAAsB,CAAC,KAAK,CAAC,4BAAmB,CAAC,CAAC;AAGvE,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C;;OAEG;IACH,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;IAC9F;;OAEG;IACH,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4DAA4D,CAAC;IAC3G;;OAEG;IACH,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;CAClH,CAAC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { z } from "zod";
2
+ export declare const ChargerStateSchema: z.ZodObject<{
3
+ /**
4
+ * Whether the charger is currently charging. The state could be unknown if not provided by the manufacturer.
5
+ * @example "charging"
6
+ */
7
+ chargingState: z.ZodEnum<["charging", "discharging", "idle", "unknown"]>;
8
+ /**
9
+ * Whether the charger is plugged in.
10
+ * @example true
11
+ */
12
+ isPluggedIn: z.ZodOptional<z.ZodBoolean>;
13
+ /**
14
+ * The voltage of the charger in volts (V).
15
+ * @example 240
16
+ */
17
+ chargerVoltage: z.ZodOptional<z.ZodNumber>;
18
+ /**
19
+ * The current of the charger in amps (A).
20
+ * @example 40
21
+ */
22
+ chargerCurrent: z.ZodOptional<z.ZodNumber>;
23
+ /**
24
+ * The wattage of the charger in watts (W).
25
+ * @example 7200
26
+ */
27
+ chargerWattage: z.ZodOptional<z.ZodNumber>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ chargingState: "idle" | "unknown" | "charging" | "discharging";
30
+ isPluggedIn?: boolean | undefined;
31
+ chargerVoltage?: number | undefined;
32
+ chargerCurrent?: number | undefined;
33
+ chargerWattage?: number | undefined;
34
+ }, {
35
+ chargingState: "idle" | "unknown" | "charging" | "discharging";
36
+ isPluggedIn?: boolean | undefined;
37
+ chargerVoltage?: number | undefined;
38
+ chargerCurrent?: number | undefined;
39
+ chargerWattage?: number | undefined;
40
+ }>;
41
+ export type ChargerState = z.infer<typeof ChargerStateSchema>;
42
+ export declare const ChargerStaticStateSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
43
+ export type ChargerStaticState = z.infer<typeof ChargerStaticStateSchema>;
44
+ //# sourceMappingURL=charger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charger.d.ts","sourceRoot":"","sources":["../../src/deviceState/charger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB;IAC7B;;;OAGG;;IAIH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;;;;;;;;;;;;;EAEH,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,wBAAwB,gDAAe,CAAC;AACrD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChargerStaticStateSchema = exports.ChargerStateSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("./common");
6
+ exports.ChargerStateSchema = zod_1.z.object({
7
+ /**
8
+ * Whether the charger is currently charging. The state could be unknown if not provided by the manufacturer.
9
+ * @example "charging"
10
+ */
11
+ chargingState: common_1.BatteryChargingStateEnum.describe("Whether the charger is currently charging. The state could be unknown if not provided by the manufacturer."),
12
+ /**
13
+ * Whether the charger is plugged in.
14
+ * @example true
15
+ */
16
+ isPluggedIn: zod_1.z.boolean().optional().describe("Whether the charger is plugged in."),
17
+ /**
18
+ * The voltage of the charger in volts (V).
19
+ * @example 240
20
+ */
21
+ chargerVoltage: zod_1.z.number().min(0).max(1_000).optional().describe("The voltage of the charger in volts (V)."),
22
+ /**
23
+ * The current of the charger in amps (A).
24
+ * @example 40
25
+ */
26
+ chargerCurrent: zod_1.z.number().min(0).max(1_000).optional().describe("The current of the charger in amps (A)."),
27
+ /**
28
+ * The wattage of the charger in watts (W).
29
+ * @example 7200
30
+ */
31
+ chargerWattage: zod_1.z.number().min(0).max(100_000).optional().describe("The wattage of the charger in watts (W)."),
32
+ });
33
+ exports.ChargerStaticStateSchema = zod_1.z.object({});
34
+ //# sourceMappingURL=charger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charger.js","sourceRoot":"","sources":["../../src/deviceState/charger.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qCAAoD;AAEvC,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC;;;OAGG;IACH,aAAa,EAAE,iCAAwB,CAAC,QAAQ,CAC9C,4GAA4G,CAC7G;IACD;;;OAGG;IACH,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IAClF;;;OAGG;IACH,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;IAC5G;;;OAGG;IACH,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IAC3G;;;OAGG;IACH,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;CAC/G,CAAC,CAAC;AAGU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}