@fastybird/smart-panel-backend 0.2.0-alpha.0 → 0.2.0-alpha.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 (213) hide show
  1. package/dist/app.module.js +7 -0
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/migrations/1000000000000-InitialSetup.js +1 -1
  4. package/dist/migrations/1000000000000-InitialSetup.js.map +1 -1
  5. package/dist/migrations/1000000000001-AddSceneIcon.d.ts +6 -0
  6. package/dist/migrations/1000000000001-AddSceneIcon.js +22 -0
  7. package/dist/migrations/1000000000001-AddSceneIcon.js.map +1 -0
  8. package/dist/modules/auth/auth.module.js +1 -1
  9. package/dist/modules/auth/auth.module.js.map +1 -1
  10. package/dist/modules/dashboard/dashboard.module.js +1 -1
  11. package/dist/modules/dashboard/dashboard.module.js.map +1 -1
  12. package/dist/modules/devices/services/devices-type-mapper.service.d.ts +1 -1
  13. package/dist/modules/devices/services/devices.service.d.ts +1 -0
  14. package/dist/modules/devices/services/devices.service.js +22 -23
  15. package/dist/modules/devices/services/devices.service.js.map +1 -1
  16. package/dist/modules/platform/platforms/abstract.platform.d.ts +8 -0
  17. package/dist/modules/platform/platforms/abstract.platform.js +26 -0
  18. package/dist/modules/platform/platforms/abstract.platform.js.map +1 -1
  19. package/dist/modules/platform/platforms/generic.platform.d.ts +2 -1
  20. package/dist/modules/platform/platforms/generic.platform.js.map +1 -1
  21. package/dist/modules/platform/platforms/home-assistant.platform.d.ts +2 -0
  22. package/dist/modules/platform/platforms/home-assistant.platform.js +18 -0
  23. package/dist/modules/platform/platforms/home-assistant.platform.js.map +1 -1
  24. package/dist/modules/platform/platforms/raspberry.platform.js +5 -25
  25. package/dist/modules/platform/platforms/raspberry.platform.js.map +1 -1
  26. package/dist/modules/platform/services/platform.service.d.ts +2 -0
  27. package/dist/modules/platform/services/platform.service.js +7 -0
  28. package/dist/modules/platform/services/platform.service.js.map +1 -1
  29. package/dist/modules/scenes/dto/create-scene.dto.d.ts +1 -0
  30. package/dist/modules/scenes/dto/create-scene.dto.js +13 -0
  31. package/dist/modules/scenes/dto/create-scene.dto.js.map +1 -1
  32. package/dist/modules/scenes/dto/update-scene.dto.d.ts +1 -0
  33. package/dist/modules/scenes/dto/update-scene.dto.js +13 -0
  34. package/dist/modules/scenes/dto/update-scene.dto.js.map +1 -1
  35. package/dist/modules/scenes/entities/scenes.entity.d.ts +1 -0
  36. package/dist/modules/scenes/entities/scenes.entity.js +13 -0
  37. package/dist/modules/scenes/entities/scenes.entity.js.map +1 -1
  38. package/dist/modules/storage/models/config.model.js +2 -4
  39. package/dist/modules/storage/models/config.model.js.map +1 -1
  40. package/dist/modules/storage/services/storage.service.js +3 -0
  41. package/dist/modules/storage/services/storage.service.js.map +1 -1
  42. package/dist/modules/storage/storage.constants.d.ts +2 -0
  43. package/dist/modules/storage/storage.constants.js +3 -1
  44. package/dist/modules/storage/storage.constants.js.map +1 -1
  45. package/dist/modules/storage/storage.module.js +1 -3
  46. package/dist/modules/storage/storage.module.js.map +1 -1
  47. package/dist/modules/system/models/system.model.d.ts +1 -0
  48. package/dist/modules/system/models/system.model.js +11 -0
  49. package/dist/modules/system/models/system.model.js.map +1 -1
  50. package/dist/modules/system/services/system.service.js +4 -1
  51. package/dist/modules/system/services/system.service.js.map +1 -1
  52. package/dist/modules/system/services/update.service.d.ts +2 -0
  53. package/dist/modules/system/services/update.service.js +36 -16
  54. package/dist/modules/system/services/update.service.js.map +1 -1
  55. package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js +1 -1
  56. package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js.map +1 -1
  57. package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js +1 -1
  58. package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js.map +1 -1
  59. package/dist/plugins/devices-home-assistant/devices-home-assistant.openapi.d.ts +2 -2
  60. package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +3 -1
  61. package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
  62. package/dist/plugins/devices-home-assistant/dto/helper-mapping-preview.dto.d.ts +1 -0
  63. package/dist/plugins/devices-home-assistant/dto/helper-mapping-preview.dto.js +14 -0
  64. package/dist/plugins/devices-home-assistant/dto/helper-mapping-preview.dto.js.map +1 -1
  65. package/dist/plugins/devices-home-assistant/models/config.model.d.ts +1 -0
  66. package/dist/plugins/devices-home-assistant/models/config.model.js +12 -0
  67. package/dist/plugins/devices-home-assistant/models/config.model.js.map +1 -1
  68. package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.d.ts +3 -1
  69. package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js +14 -2
  70. package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js.map +1 -1
  71. package/dist/plugins/devices-home-assistant/services/device-adoption.service.js +2 -2
  72. package/dist/plugins/devices-home-assistant/services/device-adoption.service.js.map +1 -1
  73. package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.d.ts +10 -0
  74. package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js +47 -0
  75. package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js.map +1 -0
  76. package/dist/plugins/devices-home-assistant/services/helper-adoption.service.js +1 -7
  77. package/dist/plugins/devices-home-assistant/services/helper-adoption.service.js.map +1 -1
  78. package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.d.ts +3 -1
  79. package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js +9 -3
  80. package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js.map +1 -1
  81. package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.d.ts +5 -1
  82. package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js +35 -12
  83. package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js.map +1 -1
  84. package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +6 -1
  85. package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +63 -6
  86. package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
  87. package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js +1 -0
  88. package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js.map +1 -1
  89. package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js +1 -1
  90. package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js.map +1 -1
  91. package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.d.ts +1 -0
  92. package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js +37 -2
  93. package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js.map +1 -1
  94. package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.d.ts +3 -0
  95. package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js +34 -0
  96. package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js.map +1 -1
  97. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.d.ts +5 -1
  98. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +14 -3
  99. package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
  100. package/dist/plugins/devices-shelly-ng/dto/create-device.dto.d.ts +1 -0
  101. package/dist/plugins/devices-shelly-ng/dto/create-device.dto.js +13 -0
  102. package/dist/plugins/devices-shelly-ng/dto/create-device.dto.js.map +1 -1
  103. package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js +6 -6
  104. package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js.map +1 -1
  105. package/dist/plugins/devices-shelly-ng/models/config.model.js +6 -6
  106. package/dist/plugins/devices-shelly-ng/models/config.model.js.map +1 -1
  107. package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +4 -0
  108. package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +49 -3
  109. package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js.map +1 -1
  110. package/dist/plugins/devices-shelly-ng/subscribers/device-entity.subscriber.js.map +1 -1
  111. package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js +1 -1
  112. package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js.map +1 -1
  113. package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.d.ts +6 -2
  114. package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js +68 -20
  115. package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js.map +1 -1
  116. package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js +4 -0
  117. package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js.map +1 -1
  118. package/dist/plugins/devices-third-party/devices-third-party.plugin.js +1 -1
  119. package/dist/plugins/devices-third-party/devices-third-party.plugin.js.map +1 -1
  120. package/dist/plugins/devices-wled/devices-wled.plugin.js +1 -1
  121. package/dist/plugins/devices-wled/devices-wled.plugin.js.map +1 -1
  122. package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +1 -1
  123. package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
  124. package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt-config-validator.service.js +1 -1
  125. package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt-config-validator.service.js.map +1 -1
  126. package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.d.ts → plugins/influx-v1/dto/update-config.dto.d.ts} +1 -1
  127. package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js → plugins/influx-v1/dto/update-config.dto.js} +3 -3
  128. package/dist/plugins/influx-v1/dto/update-config.dto.js.map +1 -0
  129. package/dist/plugins/influx-v1/influx-v1.constants.js.map +1 -0
  130. package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.openapi.d.ts +1 -1
  131. package/dist/plugins/influx-v1/influx-v1.openapi.js +7 -0
  132. package/dist/plugins/influx-v1/influx-v1.openapi.js.map +1 -0
  133. package/dist/{modules/storage/plugins/influx-v1/influx-v1.module.d.ts → plugins/influx-v1/influx-v1.plugin.d.ts} +6 -6
  134. package/dist/{modules/storage/plugins/influx-v1/influx-v1.module.js → plugins/influx-v1/influx-v1.plugin.js} +22 -22
  135. package/dist/plugins/influx-v1/influx-v1.plugin.js.map +1 -0
  136. package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.d.ts → plugins/influx-v1/models/config.model.d.ts} +1 -1
  137. package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.js → plugins/influx-v1/models/config.model.js} +3 -3
  138. package/dist/plugins/influx-v1/models/config.model.js.map +1 -0
  139. package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.d.ts → plugins/influx-v1/services/influx-v1.storage.d.ts} +3 -3
  140. package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.js → plugins/influx-v1/services/influx-v1.storage.js} +9 -9
  141. package/dist/plugins/influx-v1/services/influx-v1.storage.js.map +1 -0
  142. package/dist/plugins/influx-v2/dto/update-config.dto.d.ts +8 -0
  143. package/dist/plugins/influx-v2/dto/update-config.dto.js +82 -0
  144. package/dist/plugins/influx-v2/dto/update-config.dto.js.map +1 -0
  145. package/dist/plugins/influx-v2/influx-v2.constants.d.ts +4 -0
  146. package/dist/plugins/influx-v2/influx-v2.constants.js +8 -0
  147. package/dist/plugins/influx-v2/influx-v2.constants.js.map +1 -0
  148. package/dist/plugins/influx-v2/influx-v2.openapi.d.ts +2 -0
  149. package/dist/plugins/influx-v2/influx-v2.openapi.js +7 -0
  150. package/dist/plugins/influx-v2/influx-v2.openapi.js.map +1 -0
  151. package/dist/plugins/influx-v2/influx-v2.plugin.d.ts +17 -0
  152. package/dist/plugins/influx-v2/influx-v2.plugin.js +95 -0
  153. package/dist/plugins/influx-v2/influx-v2.plugin.js.map +1 -0
  154. package/dist/plugins/influx-v2/models/config.model.d.ts +9 -0
  155. package/dist/plugins/influx-v2/models/config.model.js +93 -0
  156. package/dist/plugins/influx-v2/models/config.model.js.map +1 -0
  157. package/dist/plugins/influx-v2/services/influx-v2.storage.d.ts +33 -0
  158. package/dist/plugins/influx-v2/services/influx-v2.storage.js +230 -0
  159. package/dist/plugins/influx-v2/services/influx-v2.storage.js.map +1 -0
  160. package/dist/{modules/storage/plugins/memory/memory.update-config.dto.d.ts → plugins/memory-storage/dto/update-config.dto.d.ts} +1 -1
  161. package/dist/{modules/storage/plugins/memory/memory.update-config.dto.js → plugins/memory-storage/dto/update-config.dto.js} +5 -5
  162. package/dist/plugins/memory-storage/dto/update-config.dto.js.map +1 -0
  163. package/dist/{modules/storage/plugins/memory/memory.constants.js → plugins/memory-storage/memory-storage.constants.js} +1 -1
  164. package/dist/plugins/memory-storage/memory-storage.constants.js.map +1 -0
  165. package/dist/{modules/storage/plugins/memory/memory.openapi.d.ts → plugins/memory-storage/memory-storage.openapi.d.ts} +1 -1
  166. package/dist/plugins/memory-storage/memory-storage.openapi.js +7 -0
  167. package/dist/plugins/memory-storage/memory-storage.openapi.js.map +1 -0
  168. package/dist/plugins/memory-storage/memory-storage.plugin.d.ts +13 -0
  169. package/dist/{modules/storage/plugins/memory/memory.module.js → plugins/memory-storage/memory-storage.plugin.js} +24 -24
  170. package/dist/plugins/memory-storage/memory-storage.plugin.js.map +1 -0
  171. package/dist/{modules/storage/plugins/memory/memory.config.model.d.ts → plugins/memory-storage/models/config.model.d.ts} +1 -1
  172. package/dist/{modules/storage/plugins/memory/memory.config.model.js → plugins/memory-storage/models/config.model.js} +5 -5
  173. package/dist/plugins/memory-storage/models/config.model.js.map +1 -0
  174. package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.d.ts +1 -1
  175. package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.js +3 -3
  176. package/dist/plugins/memory-storage/services/in-memory-timeseries.store.js.map +1 -0
  177. package/dist/plugins/memory-storage/services/influxql-parser.js.map +1 -0
  178. package/dist/{modules/storage/plugins/memory/memory.plugin.d.ts → plugins/memory-storage/services/memory-storage.storage.d.ts} +3 -3
  179. package/dist/{modules/storage/plugins/memory/memory.plugin.js → plugins/memory-storage/services/memory-storage.storage.js} +8 -8
  180. package/dist/plugins/memory-storage/services/memory-storage.storage.js.map +1 -0
  181. package/dist/plugins/simulator/simulator.plugin.js +4 -4
  182. package/dist/plugins/simulator/simulator.plugin.js.map +1 -1
  183. package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js +1 -1
  184. package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js.map +1 -1
  185. package/dist/plugins/tiles-scene/tiles-scene.plugin.js +1 -1
  186. package/dist/plugins/tiles-scene/tiles-scene.plugin.js.map +1 -1
  187. package/dist/plugins/tiles-time/tiles-time.plugin.js +1 -1
  188. package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js +1 -1
  189. package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js.map +1 -1
  190. package/dist/tsconfig.build.tsbuildinfo +1 -1
  191. package/package.json +3 -2
  192. package/dist/modules/storage/plugins/influx-v1/influx-v1.config.model.js.map +0 -1
  193. package/dist/modules/storage/plugins/influx-v1/influx-v1.constants.js.map +0 -1
  194. package/dist/modules/storage/plugins/influx-v1/influx-v1.module.js.map +0 -1
  195. package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js +0 -7
  196. package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js.map +0 -1
  197. package/dist/modules/storage/plugins/influx-v1/influx-v1.plugin.js.map +0 -1
  198. package/dist/modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js.map +0 -1
  199. package/dist/modules/storage/plugins/memory/in-memory-timeseries.store.js.map +0 -1
  200. package/dist/modules/storage/plugins/memory/influxql-parser.js.map +0 -1
  201. package/dist/modules/storage/plugins/memory/memory.config.model.js.map +0 -1
  202. package/dist/modules/storage/plugins/memory/memory.constants.js.map +0 -1
  203. package/dist/modules/storage/plugins/memory/memory.module.d.ts +0 -13
  204. package/dist/modules/storage/plugins/memory/memory.module.js.map +0 -1
  205. package/dist/modules/storage/plugins/memory/memory.openapi.js +0 -7
  206. package/dist/modules/storage/plugins/memory/memory.openapi.js.map +0 -1
  207. package/dist/modules/storage/plugins/memory/memory.plugin.js.map +0 -1
  208. package/dist/modules/storage/plugins/memory/memory.update-config.dto.js.map +0 -1
  209. /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.d.ts +0 -0
  210. /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.js +0 -0
  211. /package/dist/{modules/storage/plugins/memory/memory.constants.d.ts → plugins/memory-storage/memory-storage.constants.d.ts} +0 -0
  212. /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.d.ts +0 -0
  213. /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.js +0 -0
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.InfluxV2Plugin = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const logger_1 = require("../../common/logger");
15
+ const config_service_1 = require("../../modules/config/services/config.service");
16
+ const plugins_type_mapper_service_1 = require("../../modules/config/services/plugins-type-mapper.service");
17
+ const extensions_service_1 = require("../../modules/extensions/services/extensions.service");
18
+ const storage_service_1 = require("../../modules/storage/services/storage.service");
19
+ const storage_module_1 = require("../../modules/storage/storage.module");
20
+ const swagger_models_registry_service_1 = require("../../modules/swagger/services/swagger-models-registry.service");
21
+ const update_config_dto_1 = require("./dto/update-config.dto");
22
+ const influx_v2_constants_1 = require("./influx-v2.constants");
23
+ const influx_v2_openapi_1 = require("./influx-v2.openapi");
24
+ const config_model_1 = require("./models/config.model");
25
+ const influx_v2_storage_1 = require("./services/influx-v2.storage");
26
+ let InfluxV2Plugin = class InfluxV2Plugin {
27
+ constructor(pluginsMapperService, swaggerRegistry, extensionsService, configService, storageService) {
28
+ this.pluginsMapperService = pluginsMapperService;
29
+ this.swaggerRegistry = swaggerRegistry;
30
+ this.extensionsService = extensionsService;
31
+ this.configService = configService;
32
+ this.storageService = storageService;
33
+ this.logger = (0, logger_1.createExtensionLogger)(influx_v2_constants_1.INFLUX_V2_PLUGIN_NAME, 'InfluxV2Plugin');
34
+ }
35
+ onModuleInit() {
36
+ this.pluginsMapperService.registerMapping({
37
+ type: influx_v2_constants_1.INFLUX_V2_PLUGIN_NAME,
38
+ class: config_model_1.InfluxV2ConfigModel,
39
+ configDto: update_config_dto_1.UpdateInfluxV2ConfigDto,
40
+ });
41
+ this.storageService.registerPluginFactory(influx_v2_constants_1.INFLUX_V2_PLUGIN_NAME, () => {
42
+ const pluginConfig = this.getPluginConfig();
43
+ return new influx_v2_storage_1.InfluxV2Storage({
44
+ url: pluginConfig.url,
45
+ token: pluginConfig.token,
46
+ org: pluginConfig.org,
47
+ bucket: pluginConfig.bucket,
48
+ });
49
+ });
50
+ for (const model of influx_v2_openapi_1.INFLUX_V2_SWAGGER_EXTRA_MODELS) {
51
+ this.swaggerRegistry.register(model);
52
+ }
53
+ this.extensionsService.registerPluginMetadata({
54
+ type: influx_v2_constants_1.INFLUX_V2_PLUGIN_NAME,
55
+ name: 'InfluxDB v2',
56
+ description: 'InfluxDB 2.x time-series storage backend with Flux query language, token-based auth, and bucket management.',
57
+ author: 'FastyBird',
58
+ readme: `# InfluxDB v2 Plugin
59
+
60
+ Connects to an InfluxDB 2.x server and provides time-series storage using the Flux query language, buckets, organizations, and token-based authentication.
61
+
62
+ ## Configuration
63
+
64
+ - **url** — InfluxDB v2 server URL (default: http://127.0.0.1:8086)
65
+ - **token** — API token for authentication
66
+ - **org** — Organization name (default: fastybird)
67
+ - **bucket** — Bucket name (default: fastybird)`,
68
+ links: {
69
+ documentation: 'https://smart-panel.fastybird.com/docs',
70
+ repository: 'https://github.com/FastyBird/smart-panel',
71
+ },
72
+ });
73
+ }
74
+ getPluginConfig() {
75
+ try {
76
+ return this.configService.getPluginConfig(influx_v2_constants_1.INFLUX_V2_PLUGIN_NAME);
77
+ }
78
+ catch (error) {
79
+ this.logger.warn('Failed to load InfluxDB v2 plugin configuration, using defaults', error instanceof Error ? error.message : String(error));
80
+ return new config_model_1.InfluxV2ConfigModel();
81
+ }
82
+ }
83
+ };
84
+ exports.InfluxV2Plugin = InfluxV2Plugin;
85
+ exports.InfluxV2Plugin = InfluxV2Plugin = __decorate([
86
+ (0, common_1.Module)({
87
+ imports: [storage_module_1.StorageModule],
88
+ }),
89
+ __metadata("design:paramtypes", [plugins_type_mapper_service_1.PluginsTypeMapperService,
90
+ swagger_models_registry_service_1.SwaggerModelsRegistryService,
91
+ extensions_service_1.ExtensionsService,
92
+ config_service_1.ConfigService,
93
+ storage_service_1.StorageService])
94
+ ], InfluxV2Plugin);
95
+ //# sourceMappingURL=influx-v2.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"influx-v2.plugin.js","sourceRoot":"","sources":["../../../src/plugins/influx-v2/influx-v2.plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAsD;AAEtD,gDAA4D;AAC5D,iFAA6E;AAC7E,2GAAqG;AACrG,6FAAyF;AACzF,oFAAgF;AAChF,yEAAqE;AACrE,oHAA8G;AAE9G,+DAAkE;AAClE,+DAA8D;AAC9D,2DAAqE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AC7C,KAAK,EAAE;gBACN,aAAa,EAAE,wCAAwC;gBACvD,UAAU,EAAE,0CAA0C;aACtD;SACD,CAAC,CAAC;IACJ,CAAC;IAIO,eAAe;QACtB,IAAI,CAAC;YACJ,OAAO,IAAI,CAAC,aAAa,CAAC,eAAe,CAAsB,2CAAqB,CAAC,CAAC;QACvF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CACf,iEAAiE,EACjE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACtD,CAAC;YAEF,OAAO,IAAI,kCAAmB,EAAE,CAAC;QAClC,CAAC;IACF,CAAC;CACD,CAAA;AApEY,wCAAc;yBAAd,cAAc;IAH1B,IAAA,eAAM,EAAC;QACP,OAAO,EAAE,CAAC,8BAAa,CAAC;KACxB,CAAC;qCAGuC,sDAAwB;QAC7B,8DAA4B;QAC1B,sCAAiB;QACrB,8BAAa;QACZ,gCAAc;GANpC,cAAc,CAoE1B"}
@@ -0,0 +1,9 @@
1
+ import { PluginConfigModel } from '../../../modules/config/models/config.model';
2
+ export declare class InfluxV2ConfigModel extends PluginConfigModel {
3
+ type: string;
4
+ enabled: boolean;
5
+ url: string;
6
+ token?: string;
7
+ org: string;
8
+ bucket: string;
9
+ }
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.InfluxV2ConfigModel = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const config_model_1 = require("../../../modules/config/models/config.model");
17
+ const influx_v2_constants_1 = require("../influx-v2.constants");
18
+ let InfluxV2ConfigModel = class InfluxV2ConfigModel extends config_model_1.PluginConfigModel {
19
+ constructor() {
20
+ super(...arguments);
21
+ this.type = influx_v2_constants_1.INFLUX_V2_PLUGIN_NAME;
22
+ this.enabled = false;
23
+ this.url = influx_v2_constants_1.INFLUXDB_V2_DEFAULT_URL;
24
+ this.org = influx_v2_constants_1.INFLUXDB_V2_DEFAULT_ORG;
25
+ this.bucket = influx_v2_constants_1.INFLUXDB_V2_DEFAULT_BUCKET;
26
+ }
27
+ };
28
+ exports.InfluxV2ConfigModel = InfluxV2ConfigModel;
29
+ __decorate([
30
+ (0, swagger_1.ApiProperty)({
31
+ description: 'Plugin type',
32
+ type: 'string',
33
+ example: influx_v2_constants_1.INFLUX_V2_PLUGIN_NAME,
34
+ }),
35
+ (0, class_transformer_1.Expose)(),
36
+ (0, class_validator_1.IsString)(),
37
+ __metadata("design:type", String)
38
+ ], InfluxV2ConfigModel.prototype, "type", void 0);
39
+ __decorate([
40
+ (0, swagger_1.ApiProperty)({
41
+ description: 'Whether the plugin is enabled',
42
+ type: 'boolean',
43
+ example: false,
44
+ }),
45
+ (0, class_transformer_1.Expose)(),
46
+ (0, class_validator_1.IsBoolean)(),
47
+ __metadata("design:type", Boolean)
48
+ ], InfluxV2ConfigModel.prototype, "enabled", void 0);
49
+ __decorate([
50
+ (0, swagger_1.ApiProperty)({
51
+ description: 'InfluxDB v2 server URL',
52
+ type: 'string',
53
+ example: 'http://127.0.0.1:8086',
54
+ }),
55
+ (0, class_transformer_1.Expose)(),
56
+ (0, class_validator_1.IsString)(),
57
+ __metadata("design:type", String)
58
+ ], InfluxV2ConfigModel.prototype, "url", void 0);
59
+ __decorate([
60
+ (0, swagger_1.ApiPropertyOptional)({
61
+ description: 'InfluxDB v2 API token for authentication',
62
+ type: 'string',
63
+ example: 'my-token',
64
+ }),
65
+ (0, class_transformer_1.Expose)(),
66
+ (0, class_validator_1.IsOptional)(),
67
+ (0, class_validator_1.IsString)(),
68
+ __metadata("design:type", String)
69
+ ], InfluxV2ConfigModel.prototype, "token", void 0);
70
+ __decorate([
71
+ (0, swagger_1.ApiProperty)({
72
+ description: 'InfluxDB v2 organization name',
73
+ type: 'string',
74
+ example: 'fastybird',
75
+ }),
76
+ (0, class_transformer_1.Expose)(),
77
+ (0, class_validator_1.IsString)(),
78
+ __metadata("design:type", String)
79
+ ], InfluxV2ConfigModel.prototype, "org", void 0);
80
+ __decorate([
81
+ (0, swagger_1.ApiProperty)({
82
+ description: 'InfluxDB v2 bucket name',
83
+ type: 'string',
84
+ example: 'fastybird',
85
+ }),
86
+ (0, class_transformer_1.Expose)(),
87
+ (0, class_validator_1.IsString)(),
88
+ __metadata("design:type", String)
89
+ ], InfluxV2ConfigModel.prototype, "bucket", void 0);
90
+ exports.InfluxV2ConfigModel = InfluxV2ConfigModel = __decorate([
91
+ (0, swagger_1.ApiSchema)({ name: 'StorageInfluxV2PluginDataConfig' })
92
+ ], InfluxV2ConfigModel);
93
+ //# sourceMappingURL=config.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.model.js","sourceRoot":"","sources":["../../../../src/plugins/influx-v2/models/config.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAkE;AAElE,6CAA8E;AAE9E,8EAAgF;AAChF,gEAKgC;AAGzB,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,gCAAiB;IAAnD;;QAQN,SAAI,GAAW,2CAAqB,CAAC;QAS5B,YAAO,GA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AAE;;mDACiC;8BAtDhC,mBAAmB;IAD/B,IAAA,mBAAS,EAAC,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC;GAC1C,mBAAmB,CAuD/B"}
@@ -0,0 +1,33 @@
1
+ import { StoragePlugin } from '../../../modules/storage/interfaces/storage-plugin.interface';
2
+ import { StorageMeasurementSchema, StoragePoint, StorageQueryOptions } from '../../../modules/storage/storage.types';
3
+ export interface InfluxV2Config {
4
+ url: string;
5
+ token?: string;
6
+ org: string;
7
+ bucket: string;
8
+ }
9
+ export declare class InfluxV2Storage implements StoragePlugin {
10
+ readonly name = "influx-v2-plugin";
11
+ private readonly logger;
12
+ private client;
13
+ private writeApi;
14
+ private queryApi;
15
+ private readonly schemas;
16
+ private config;
17
+ private connected;
18
+ constructor(config?: Partial<InfluxV2Config>);
19
+ updateConfig(config: Partial<InfluxV2Config>): void;
20
+ initialize(): Promise<void>;
21
+ destroy(): Promise<void>;
22
+ isAvailable(): boolean;
23
+ writePoints(points: StoragePoint[]): Promise<void>;
24
+ query<T>(query: string, _options?: StorageQueryOptions): Promise<T[]>;
25
+ queryRaw<T>(query: string, _options?: StorageQueryOptions): Promise<T>;
26
+ registerSchema(schema: StorageMeasurementSchema): void;
27
+ dropMeasurement(measurement: string): Promise<void>;
28
+ getMeasurements(): Promise<string[]>;
29
+ ping(): Promise<unknown[]>;
30
+ getSeries(): Promise<string[]>;
31
+ private getWriteApi;
32
+ private getQueryApi;
33
+ }
@@ -0,0 +1,230 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InfluxV2Storage = void 0;
4
+ const influxdb_client_1 = require("@influxdata/influxdb-client");
5
+ const logger_1 = require("../../../common/logger");
6
+ const storage_types_1 = require("../../../modules/storage/storage.types");
7
+ const influx_v2_constants_1 = require("../influx-v2.constants");
8
+ function toBoolean(value) {
9
+ if (typeof value === 'boolean')
10
+ return value;
11
+ if (typeof value === 'number')
12
+ return value !== 0;
13
+ const lower = value.toLowerCase().trim();
14
+ return lower !== '' && lower !== '0' && lower !== 'false' && lower !== 'no';
15
+ }
16
+ function toInfluxPoint(point, schemas) {
17
+ const p = new influxdb_client_1.Point(point.measurement);
18
+ if (point.tags) {
19
+ for (const [key, value] of Object.entries(point.tags)) {
20
+ p.tag(key, value);
21
+ }
22
+ }
23
+ if (point.fields) {
24
+ const schema = schemas.get(point.measurement);
25
+ for (const [key, value] of Object.entries(point.fields)) {
26
+ const fieldType = schema?.fields[key];
27
+ switch (fieldType) {
28
+ case storage_types_1.StorageFieldType.INTEGER:
29
+ p.intField(key, Number(value));
30
+ break;
31
+ case storage_types_1.StorageFieldType.FLOAT:
32
+ p.floatField(key, Number(value));
33
+ break;
34
+ case storage_types_1.StorageFieldType.BOOLEAN:
35
+ p.booleanField(key, toBoolean(value));
36
+ break;
37
+ case storage_types_1.StorageFieldType.STRING:
38
+ p.stringField(key, String(value));
39
+ break;
40
+ default:
41
+ if (typeof value === 'number') {
42
+ p.floatField(key, value);
43
+ }
44
+ else if (typeof value === 'boolean') {
45
+ p.booleanField(key, value);
46
+ }
47
+ else {
48
+ p.stringField(key, String(value));
49
+ }
50
+ break;
51
+ }
52
+ }
53
+ }
54
+ if (point.timestamp) {
55
+ p.timestamp(point.timestamp);
56
+ }
57
+ return p;
58
+ }
59
+ class InfluxV2Storage {
60
+ constructor(config) {
61
+ this.name = influx_v2_constants_1.INFLUX_V2_PLUGIN_NAME;
62
+ this.logger = (0, logger_1.createExtensionLogger)(influx_v2_constants_1.INFLUX_V2_PLUGIN_NAME, 'InfluxV2Storage');
63
+ this.client = null;
64
+ this.writeApi = null;
65
+ this.queryApi = null;
66
+ this.schemas = new Map();
67
+ this.connected = false;
68
+ this.config = {
69
+ url: config?.url ?? influx_v2_constants_1.INFLUXDB_V2_DEFAULT_URL,
70
+ token: config?.token,
71
+ org: config?.org ?? influx_v2_constants_1.INFLUXDB_V2_DEFAULT_ORG,
72
+ bucket: config?.bucket ?? influx_v2_constants_1.INFLUXDB_V2_DEFAULT_BUCKET,
73
+ };
74
+ }
75
+ updateConfig(config) {
76
+ if (config.url)
77
+ this.config.url = config.url;
78
+ if (config.token !== undefined)
79
+ this.config.token = config.token;
80
+ if (config.org)
81
+ this.config.org = config.org;
82
+ if (config.bucket)
83
+ this.config.bucket = config.bucket;
84
+ }
85
+ async initialize() {
86
+ this.client = new influxdb_client_1.InfluxDB({
87
+ url: this.config.url,
88
+ token: this.config.token,
89
+ });
90
+ this.writeApi = this.client.getWriteApi(this.config.org, this.config.bucket, 'ns');
91
+ this.queryApi = this.client.getQueryApi(this.config.org);
92
+ try {
93
+ const bucket = this.config.bucket;
94
+ await this.getQueryApi().collectRows((0, influxdb_client_1.flux) `buckets() |> filter(fn: (r) => r.name == ${bucket})`);
95
+ this.connected = true;
96
+ this.logger.log('Successfully connected to InfluxDB v2.');
97
+ }
98
+ catch (error) {
99
+ const err = error;
100
+ this.logger.error('Failed to connect to InfluxDB v2', { message: err.message, stack: err.stack });
101
+ await this.destroy();
102
+ }
103
+ }
104
+ async destroy() {
105
+ if (this.writeApi) {
106
+ try {
107
+ await this.writeApi.close();
108
+ }
109
+ catch {
110
+ }
111
+ }
112
+ this.writeApi = null;
113
+ this.queryApi = null;
114
+ this.client = null;
115
+ this.connected = false;
116
+ this.logger.log('Connection closed.');
117
+ }
118
+ isAvailable() {
119
+ return this.client !== null && this.connected;
120
+ }
121
+ async writePoints(points) {
122
+ const api = this.getWriteApi();
123
+ for (const point of points) {
124
+ api.writePoint(toInfluxPoint(point, this.schemas));
125
+ }
126
+ try {
127
+ await api.flush();
128
+ }
129
+ catch (error) {
130
+ const err = error;
131
+ this.logger.error('Failed to flush write points to InfluxDB v2', {
132
+ message: err.message,
133
+ stack: err.stack,
134
+ });
135
+ throw error;
136
+ }
137
+ }
138
+ async query(query, _options) {
139
+ try {
140
+ const rows = await this.getQueryApi().collectRows(query);
141
+ return rows;
142
+ }
143
+ catch (error) {
144
+ if (error instanceof influxdb_client_1.HttpError && error.statusCode === 404) {
145
+ this.logger.warn('Bucket not found, returning empty results.');
146
+ return [];
147
+ }
148
+ throw error;
149
+ }
150
+ }
151
+ async queryRaw(query, _options) {
152
+ try {
153
+ const result = await this.getQueryApi().collectRows(query);
154
+ return result;
155
+ }
156
+ catch (error) {
157
+ if (error instanceof influxdb_client_1.HttpError && error.statusCode === 404) {
158
+ this.logger.warn('Bucket not found, returning empty results.');
159
+ return [];
160
+ }
161
+ throw error;
162
+ }
163
+ }
164
+ registerSchema(schema) {
165
+ this.schemas.set(schema.measurement, schema);
166
+ }
167
+ async dropMeasurement(measurement) {
168
+ const url = `${this.config.url}/api/v2/delete` +
169
+ `?org=${encodeURIComponent(this.config.org)}` +
170
+ `&bucket=${encodeURIComponent(this.config.bucket)}`;
171
+ const response = await fetch(url, {
172
+ method: 'POST',
173
+ headers: {
174
+ 'Content-Type': 'application/json',
175
+ ...(this.config.token ? { Authorization: `Token ${this.config.token}` } : {}),
176
+ },
177
+ body: JSON.stringify({
178
+ start: '1970-01-01T00:00:00Z',
179
+ stop: '2099-12-31T23:59:59Z',
180
+ predicate: `_measurement == "${measurement.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`,
181
+ }),
182
+ });
183
+ if (!response.ok) {
184
+ const body = await response.text();
185
+ throw new Error(`Failed to drop measurement '${measurement}': ${response.status} ${body}`);
186
+ }
187
+ }
188
+ async getMeasurements() {
189
+ try {
190
+ const bucket = this.config.bucket;
191
+ const query = (0, influxdb_client_1.flux) `import "influxdata/influxdb/schema"
192
+ schema.measurements(bucket: ${bucket})`;
193
+ const rows = await this.getQueryApi().collectRows(query);
194
+ return rows.map((row) => row._value);
195
+ }
196
+ catch (error) {
197
+ if (error instanceof influxdb_client_1.HttpError && error.statusCode === 404) {
198
+ this.logger.warn('Bucket not found, returning empty measurements.');
199
+ return [];
200
+ }
201
+ throw error;
202
+ }
203
+ }
204
+ async ping() {
205
+ try {
206
+ const rows = await this.getQueryApi().collectRows('buckets() |> limit(n: 1)');
207
+ return [{ online: true, results: rows }];
208
+ }
209
+ catch {
210
+ return [{ online: false }];
211
+ }
212
+ }
213
+ async getSeries() {
214
+ return this.getMeasurements();
215
+ }
216
+ getWriteApi() {
217
+ if (!this.writeApi) {
218
+ throw new Error('InfluxDB v2 write API is not initialized');
219
+ }
220
+ return this.writeApi;
221
+ }
222
+ getQueryApi() {
223
+ if (!this.queryApi) {
224
+ throw new Error('InfluxDB v2 query API is not initialized');
225
+ }
226
+ return this.queryApi;
227
+ }
228
+ }
229
+ exports.InfluxV2Storage = InfluxV2Storage;
230
+ //# sourceMappingURL=influx-v2.storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"influx-v2.storage.js","sourceRoot":"","sources":["../../../../src/plugins/influx-v2/services/influx-v2.storage.ts"],"names":[],"mappings":";;;AAAA,iEAAmG;AAEnG,mDAA+D;AAE/D,0EAKgD;AAChD,gEAKgC;AAahC,SAAS,SAAS,CAAC,KAAgC;IAClD,IAAI,OAAO,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,KAAK,CAAC,CAAC;IAElD,MAAM,KAAK,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IAEzC,OAAO,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,GAAG,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,IAAI,CAAC;AAC7E,CAAC;AAKD,SAAS,aAAa,CAAC,KAAmB,EAAE,OAA8C;IACzF,MAAM,CAAC,GAAG,IAAI,uBAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAEvC,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QAChB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;YACvD,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,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YAE9E,OAAO,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1C,CAAC;QAAC,MAAM,CAAC;YACR,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAC5B,CAAC;IACF,CAAC;IAED,KAAK,CAAC,SAAS;QACd,OAAO,IAAI,CAAC,eAAe,EAAE,CAAC;IAC/B,CAAC;IAIO,WAAW;QAClB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;QAC7D,CAAC;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAEO,WAAW;QAClB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;QAC7D,CAAC;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;CACD;AArND,0CAqNC"}
@@ -1,4 +1,4 @@
1
- import { UpdatePluginConfigDto } from '../../../config/dto/config.dto';
1
+ import { UpdatePluginConfigDto } from '../../../modules/config/dto/config.dto';
2
2
  export declare class UpdateMemoryConfigDto extends UpdatePluginConfigDto {
3
3
  type: string;
4
4
  }
@@ -13,12 +13,12 @@ exports.UpdateMemoryConfigDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const swagger_1 = require("@nestjs/swagger");
16
- const config_dto_1 = require("../../../config/dto/config.dto");
17
- const memory_constants_1 = require("./memory.constants");
16
+ const config_dto_1 = require("../../../modules/config/dto/config.dto");
17
+ const memory_storage_constants_1 = require("../memory-storage.constants");
18
18
  let UpdateMemoryConfigDto = class UpdateMemoryConfigDto extends config_dto_1.UpdatePluginConfigDto {
19
19
  constructor() {
20
20
  super(...arguments);
21
- this.type = memory_constants_1.MEMORY_PLUGIN_NAME;
21
+ this.type = memory_storage_constants_1.MEMORY_PLUGIN_NAME;
22
22
  }
23
23
  };
24
24
  exports.UpdateMemoryConfigDto = UpdateMemoryConfigDto;
@@ -26,7 +26,7 @@ __decorate([
26
26
  (0, swagger_1.ApiProperty)({
27
27
  description: 'Plugin identifier',
28
28
  type: 'string',
29
- example: memory_constants_1.MEMORY_PLUGIN_NAME,
29
+ example: memory_storage_constants_1.MEMORY_PLUGIN_NAME,
30
30
  }),
31
31
  (0, class_transformer_1.Expose)(),
32
32
  (0, class_validator_1.IsString)({ message: '[{"field":"type","reason":"Type must be a valid string."}]' }),
@@ -35,4 +35,4 @@ __decorate([
35
35
  exports.UpdateMemoryConfigDto = UpdateMemoryConfigDto = __decorate([
36
36
  (0, swagger_1.ApiSchema)({ name: 'StorageMemoryPluginUpdateConfig' })
37
37
  ], UpdateMemoryConfigDto);
38
- //# sourceMappingURL=memory.update-config.dto.js.map
38
+ //# sourceMappingURL=update-config.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-config.dto.js","sourceRoot":"","sources":["../../../../src/plugins/memory-storage/dto/update-config.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA2C;AAE3C,6CAAyD;AAEzD,uEAA+E;AAC/E,0EAAiE;AAG1D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,kCAAqB;IAAzD;;QAQN,SAAI,GAAW,6CAAkB,CAAC;IACnC,CAAC;CAAA,CAAA;AATY,sDAAqB;AAQjC;IAPC,IAAA,qBAAW,EAAC;QACZ,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,6CAAkB;KAC3B,CAAC;IACD,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4DAA4D,EAAE,CAAC;;mDAClD;gCARtB,qBAAqB;IADjC,IAAA,mBAAS,EAAC,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC;GAC1C,qBAAqB,CASjC"}
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MEMORY_PLUGIN_NAME = void 0;
4
4
  exports.MEMORY_PLUGIN_NAME = 'memory-storage-plugin';
5
- //# sourceMappingURL=memory.constants.js.map
5
+ //# sourceMappingURL=memory-storage.constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-storage.constants.js","sourceRoot":"","sources":["../../../src/plugins/memory-storage/memory-storage.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,uBAAuB,CAAC"}
@@ -1,2 +1,2 @@
1
- import { UpdateMemoryConfigDto } from './memory.update-config.dto';
1
+ import { UpdateMemoryConfigDto } from './dto/update-config.dto';
2
2
  export declare const MEMORY_SWAGGER_EXTRA_MODELS: (typeof UpdateMemoryConfigDto)[];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MEMORY_SWAGGER_EXTRA_MODELS = void 0;
4
+ const update_config_dto_1 = require("./dto/update-config.dto");
5
+ const config_model_1 = require("./models/config.model");
6
+ exports.MEMORY_SWAGGER_EXTRA_MODELS = [update_config_dto_1.UpdateMemoryConfigDto, config_model_1.MemoryConfigModel];
7
+ //# sourceMappingURL=memory-storage.openapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory-storage.openapi.js","sourceRoot":"","sources":["../../../src/plugins/memory-storage/memory-storage.openapi.ts"],"names":[],"mappings":";;;AAAA,+DAAgE;AAChE,wDAA0D;AAE7C,QAAA,2BAA2B,GAAG,CAAC,yCAAqB,EAAE,gCAAiB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { OnModuleInit } from '@nestjs/common';
2
+ import { PluginsTypeMapperService } from '../../modules/config/services/plugins-type-mapper.service';
3
+ import { ExtensionsService } from '../../modules/extensions/services/extensions.service';
4
+ import { StorageService } from '../../modules/storage/services/storage.service';
5
+ import { SwaggerModelsRegistryService } from '../../modules/swagger/services/swagger-models-registry.service';
6
+ export declare class MemoryStoragePlugin implements OnModuleInit {
7
+ private readonly pluginsMapperService;
8
+ private readonly swaggerRegistry;
9
+ private readonly extensionsService;
10
+ private readonly storageService;
11
+ constructor(pluginsMapperService: PluginsTypeMapperService, swaggerRegistry: SwaggerModelsRegistryService, extensionsService: ExtensionsService, storageService: StorageService);
12
+ onModuleInit(): void;
13
+ }