@twin.org/messaging-connector-entity-storage 0.0.2-next.2 → 0.0.2-next.3

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.
@@ -286,8 +286,7 @@ class EntityStorageMessagingEmailConnector {
286
286
  */
287
287
  constructor(options) {
288
288
  this._logging = core.ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
289
- this._messagingEmailEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingEmailEntryStorageConnectorType ??
290
- core.StringHelper.kebabCase("EmailEntry"));
289
+ this._messagingEmailEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingEmailEntryStorageConnectorType ?? "email-entry");
291
290
  }
292
291
  /**
293
292
  * Store a custom email using Entity Storage.
@@ -366,10 +365,8 @@ class EntityStorageMessagingPushNotificationConnector {
366
365
  */
367
366
  constructor(options) {
368
367
  this._logging = core.ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
369
- this._messagingDeviceEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingDeviceEntryStorageConnectorType ??
370
- core.StringHelper.kebabCase("PushNotificationDeviceEntry"));
371
- this._messagingMessageEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingMessageEntryStorageConnectorType ??
372
- core.StringHelper.kebabCase("PushNotificationMessageEntry"));
368
+ this._messagingDeviceEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingDeviceEntryStorageConnectorType ?? "push-notification-device-entry");
369
+ this._messagingMessageEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingMessageEntryStorageConnectorType ?? "push-notification-message-entry");
373
370
  }
374
371
  /**
375
372
  * Registers a device to an specific app in order to send notifications to it.
@@ -468,7 +465,7 @@ class EntityStorageMessagingSmsConnector {
468
465
  */
469
466
  constructor(options) {
470
467
  this._logging = core.ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
471
- this._messagingSmsEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingSmsEntryStorageConnectorType ?? core.StringHelper.kebabCase("SmsEntry"));
468
+ this._messagingSmsEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingSmsEntryStorageConnectorType ?? "sms-entry");
472
469
  }
473
470
  /**
474
471
  * Send a SMS message to a phone number.
@@ -1,5 +1,5 @@
1
1
  import { property, SortDirection, entity, EntitySchemaFactory, EntitySchemaHelper } from '@twin.org/entity';
2
- import { ComponentFactory, StringHelper, Guards, Converter, RandomHelper, GeneralError } from '@twin.org/core';
2
+ import { ComponentFactory, Guards, Converter, RandomHelper, GeneralError } from '@twin.org/core';
3
3
  import { EntityStorageConnectorFactory } from '@twin.org/entity-storage-models';
4
4
 
5
5
  /**
@@ -284,8 +284,7 @@ class EntityStorageMessagingEmailConnector {
284
284
  */
285
285
  constructor(options) {
286
286
  this._logging = ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
287
- this._messagingEmailEntryStorage = EntityStorageConnectorFactory.get(options?.messagingEmailEntryStorageConnectorType ??
288
- StringHelper.kebabCase("EmailEntry"));
287
+ this._messagingEmailEntryStorage = EntityStorageConnectorFactory.get(options?.messagingEmailEntryStorageConnectorType ?? "email-entry");
289
288
  }
290
289
  /**
291
290
  * Store a custom email using Entity Storage.
@@ -364,10 +363,8 @@ class EntityStorageMessagingPushNotificationConnector {
364
363
  */
365
364
  constructor(options) {
366
365
  this._logging = ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
367
- this._messagingDeviceEntryStorage = EntityStorageConnectorFactory.get(options?.messagingDeviceEntryStorageConnectorType ??
368
- StringHelper.kebabCase("PushNotificationDeviceEntry"));
369
- this._messagingMessageEntryStorage = EntityStorageConnectorFactory.get(options?.messagingMessageEntryStorageConnectorType ??
370
- StringHelper.kebabCase("PushNotificationMessageEntry"));
366
+ this._messagingDeviceEntryStorage = EntityStorageConnectorFactory.get(options?.messagingDeviceEntryStorageConnectorType ?? "push-notification-device-entry");
367
+ this._messagingMessageEntryStorage = EntityStorageConnectorFactory.get(options?.messagingMessageEntryStorageConnectorType ?? "push-notification-message-entry");
371
368
  }
372
369
  /**
373
370
  * Registers a device to an specific app in order to send notifications to it.
@@ -466,7 +463,7 @@ class EntityStorageMessagingSmsConnector {
466
463
  */
467
464
  constructor(options) {
468
465
  this._logging = ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
469
- this._messagingSmsEntryStorage = EntityStorageConnectorFactory.get(options?.messagingSmsEntryStorageConnectorType ?? StringHelper.kebabCase("SmsEntry"));
466
+ this._messagingSmsEntryStorage = EntityStorageConnectorFactory.get(options?.messagingSmsEntryStorageConnectorType ?? "sms-entry");
470
467
  }
471
468
  /**
472
469
  * Send a SMS message to a phone number.
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/messaging-connector-entity-storage - Changelog
2
2
 
3
+ ## [0.0.2-next.3](https://github.com/twinfoundation/messaging/compare/messaging-connector-entity-storage-v0.0.2-next.2...messaging-connector-entity-storage-v0.0.2-next.3) (2025-09-29)
4
+
5
+
6
+ ### Features
7
+
8
+ * add messaging admin component ([cbaaca3](https://github.com/twinfoundation/messaging/commit/cbaaca34db6a9f5c51438c201535b4b43a1aea1f))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/messaging-models bumped from 0.0.2-next.2 to 0.0.2-next.3
16
+
3
17
  ## [0.0.2-next.2](https://github.com/twinfoundation/messaging/compare/messaging-connector-entity-storage-v0.0.2-next.1...messaging-connector-entity-storage-v0.0.2-next.2) (2025-08-29)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/messaging-connector-entity-storage",
3
- "version": "0.0.2-next.2",
3
+ "version": "0.0.2-next.3",
4
4
  "description": "Messaging connector implementation using the Entity Storage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "@twin.org/core": "next",
18
18
  "@twin.org/entity": "next",
19
19
  "@twin.org/logging-models": "next",
20
- "@twin.org/messaging-models": "0.0.2-next.2",
20
+ "@twin.org/messaging-models": "0.0.2-next.3",
21
21
  "@twin.org/nameof": "next"
22
22
  },
23
23
  "main": "./dist/cjs/index.cjs",