@twin.org/messaging-connector-entity-storage 0.0.1-next.9 → 0.0.2-next.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.
@@ -3,7 +3,6 @@
3
3
  var entity = require('@twin.org/entity');
4
4
  var core = require('@twin.org/core');
5
5
  var entityStorageModels = require('@twin.org/entity-storage-models');
6
- var loggingModels = require('@twin.org/logging-models');
7
6
 
8
7
  /**
9
8
  * Call defining an email entry.
@@ -45,35 +44,35 @@ exports.EmailEntry = class EmailEntry {
45
44
  __decorate([
46
45
  entity.property({ type: "string", isPrimary: true }),
47
46
  __metadata("design:type", String)
48
- ], exports.EmailEntry.prototype, "id", undefined);
47
+ ], exports.EmailEntry.prototype, "id", void 0);
49
48
  __decorate([
50
49
  entity.property({ type: "string" }),
51
50
  __metadata("design:type", String)
52
- ], exports.EmailEntry.prototype, "sender", undefined);
51
+ ], exports.EmailEntry.prototype, "sender", void 0);
53
52
  __decorate([
54
53
  entity.property({ type: "array", itemType: "string" }),
55
54
  __metadata("design:type", Array)
56
- ], exports.EmailEntry.prototype, "recipients", undefined);
55
+ ], exports.EmailEntry.prototype, "recipients", void 0);
57
56
  __decorate([
58
- entity.property({ type: "integer" }),
57
+ entity.property({ type: "integer", format: "uint64", sortDirection: entity.SortDirection.Descending }),
59
58
  __metadata("design:type", Number)
60
- ], exports.EmailEntry.prototype, "ts", undefined);
59
+ ], exports.EmailEntry.prototype, "ts", void 0);
61
60
  __decorate([
62
61
  entity.property({ type: "string" }),
63
62
  __metadata("design:type", String)
64
- ], exports.EmailEntry.prototype, "message", undefined);
63
+ ], exports.EmailEntry.prototype, "message", void 0);
65
64
  __decorate([
66
65
  entity.property({ type: "string" }),
67
66
  __metadata("design:type", String)
68
- ], exports.EmailEntry.prototype, "subject", undefined);
67
+ ], exports.EmailEntry.prototype, "subject", void 0);
69
68
  __decorate([
70
69
  entity.property({ type: "string" }),
71
70
  __metadata("design:type", String)
72
- ], exports.EmailEntry.prototype, "status", undefined);
71
+ ], exports.EmailEntry.prototype, "status", void 0);
73
72
  __decorate([
74
- entity.property({ type: "object" }),
73
+ entity.property({ type: "object", optional: true }),
75
74
  __metadata("design:type", Object)
76
- ], exports.EmailEntry.prototype, "error", undefined);
75
+ ], exports.EmailEntry.prototype, "error", void 0);
77
76
  exports.EmailEntry = __decorate([
78
77
  entity.entity()
79
78
  ], exports.EmailEntry);
@@ -110,27 +109,27 @@ exports.PushNotificationDeviceEntry = class PushNotificationDeviceEntry {
110
109
  __decorate([
111
110
  entity.property({ type: "string", isPrimary: true }),
112
111
  __metadata("design:type", String)
113
- ], exports.PushNotificationDeviceEntry.prototype, "id", undefined);
112
+ ], exports.PushNotificationDeviceEntry.prototype, "id", void 0);
114
113
  __decorate([
115
114
  entity.property({ type: "string" }),
116
115
  __metadata("design:type", String)
117
- ], exports.PushNotificationDeviceEntry.prototype, "applicationId", undefined);
116
+ ], exports.PushNotificationDeviceEntry.prototype, "applicationId", void 0);
118
117
  __decorate([
119
118
  entity.property({ type: "string" }),
120
119
  __metadata("design:type", String)
121
- ], exports.PushNotificationDeviceEntry.prototype, "deviceToken", undefined);
120
+ ], exports.PushNotificationDeviceEntry.prototype, "deviceToken", void 0);
122
121
  __decorate([
123
- entity.property({ type: "integer" }),
122
+ entity.property({ type: "integer", format: "uint64", sortDirection: entity.SortDirection.Descending }),
124
123
  __metadata("design:type", Number)
125
- ], exports.PushNotificationDeviceEntry.prototype, "ts", undefined);
124
+ ], exports.PushNotificationDeviceEntry.prototype, "ts", void 0);
126
125
  __decorate([
127
126
  entity.property({ type: "string" }),
128
127
  __metadata("design:type", String)
129
- ], exports.PushNotificationDeviceEntry.prototype, "status", undefined);
128
+ ], exports.PushNotificationDeviceEntry.prototype, "status", void 0);
130
129
  __decorate([
131
- entity.property({ type: "object" }),
130
+ entity.property({ type: "object", optional: true }),
132
131
  __metadata("design:type", Object)
133
- ], exports.PushNotificationDeviceEntry.prototype, "error", undefined);
132
+ ], exports.PushNotificationDeviceEntry.prototype, "error", void 0);
134
133
  exports.PushNotificationDeviceEntry = __decorate([
135
134
  entity.entity()
136
135
  ], exports.PushNotificationDeviceEntry);
@@ -171,31 +170,31 @@ exports.PushNotificationMessageEntry = class PushNotificationMessageEntry {
171
170
  __decorate([
172
171
  entity.property({ type: "string", isPrimary: true }),
173
172
  __metadata("design:type", String)
174
- ], exports.PushNotificationMessageEntry.prototype, "id", undefined);
173
+ ], exports.PushNotificationMessageEntry.prototype, "id", void 0);
175
174
  __decorate([
176
175
  entity.property({ type: "string" }),
177
176
  __metadata("design:type", String)
178
- ], exports.PushNotificationMessageEntry.prototype, "deviceAddress", undefined);
177
+ ], exports.PushNotificationMessageEntry.prototype, "deviceAddress", void 0);
179
178
  __decorate([
180
179
  entity.property({ type: "string" }),
181
180
  __metadata("design:type", String)
182
- ], exports.PushNotificationMessageEntry.prototype, "title", undefined);
181
+ ], exports.PushNotificationMessageEntry.prototype, "title", void 0);
183
182
  __decorate([
184
183
  entity.property({ type: "string" }),
185
184
  __metadata("design:type", String)
186
- ], exports.PushNotificationMessageEntry.prototype, "message", undefined);
185
+ ], exports.PushNotificationMessageEntry.prototype, "message", void 0);
187
186
  __decorate([
188
- entity.property({ type: "integer" }),
187
+ entity.property({ type: "integer", format: "uint64", sortDirection: entity.SortDirection.Descending }),
189
188
  __metadata("design:type", Number)
190
- ], exports.PushNotificationMessageEntry.prototype, "ts", undefined);
189
+ ], exports.PushNotificationMessageEntry.prototype, "ts", void 0);
191
190
  __decorate([
192
191
  entity.property({ type: "string" }),
193
192
  __metadata("design:type", String)
194
- ], exports.PushNotificationMessageEntry.prototype, "status", undefined);
193
+ ], exports.PushNotificationMessageEntry.prototype, "status", void 0);
195
194
  __decorate([
196
- entity.property({ type: "object" }),
195
+ entity.property({ type: "object", optional: true }),
197
196
  __metadata("design:type", Object)
198
- ], exports.PushNotificationMessageEntry.prototype, "error", undefined);
197
+ ], exports.PushNotificationMessageEntry.prototype, "error", void 0);
199
198
  exports.PushNotificationMessageEntry = __decorate([
200
199
  entity.entity()
201
200
  ], exports.PushNotificationMessageEntry);
@@ -232,27 +231,27 @@ exports.SmsEntry = class SmsEntry {
232
231
  __decorate([
233
232
  entity.property({ type: "string", isPrimary: true }),
234
233
  __metadata("design:type", String)
235
- ], exports.SmsEntry.prototype, "id", undefined);
234
+ ], exports.SmsEntry.prototype, "id", void 0);
236
235
  __decorate([
237
236
  entity.property({ type: "string" }),
238
237
  __metadata("design:type", String)
239
- ], exports.SmsEntry.prototype, "phoneNumber", undefined);
238
+ ], exports.SmsEntry.prototype, "phoneNumber", void 0);
240
239
  __decorate([
241
- entity.property({ type: "integer" }),
240
+ entity.property({ type: "integer", format: "uint64", sortDirection: entity.SortDirection.Descending }),
242
241
  __metadata("design:type", Number)
243
- ], exports.SmsEntry.prototype, "ts", undefined);
242
+ ], exports.SmsEntry.prototype, "ts", void 0);
244
243
  __decorate([
245
244
  entity.property({ type: "string" }),
246
245
  __metadata("design:type", String)
247
- ], exports.SmsEntry.prototype, "message", undefined);
246
+ ], exports.SmsEntry.prototype, "message", void 0);
248
247
  __decorate([
249
248
  entity.property({ type: "string" }),
250
249
  __metadata("design:type", String)
251
- ], exports.SmsEntry.prototype, "status", undefined);
250
+ ], exports.SmsEntry.prototype, "status", void 0);
252
251
  __decorate([
253
- entity.property({ type: "object" }),
252
+ entity.property({ type: "object", optional: true }),
254
253
  __metadata("design:type", Object)
255
- ], exports.SmsEntry.prototype, "error", undefined);
254
+ ], exports.SmsEntry.prototype, "error", void 0);
256
255
  exports.SmsEntry = __decorate([
257
256
  entity.entity()
258
257
  ], exports.SmsEntry);
@@ -272,7 +271,7 @@ class EntityStorageMessagingEmailConnector {
272
271
  */
273
272
  CLASS_NAME = "EntityStorageMessagingEmailConnector";
274
273
  /**
275
- * The logging connector.
274
+ * The logging component.
276
275
  * @internal
277
276
  */
278
277
  _logging;
@@ -286,9 +285,7 @@ class EntityStorageMessagingEmailConnector {
286
285
  * @param options The options for the connector.
287
286
  */
288
287
  constructor(options) {
289
- if (core.Is.stringValue(options?.loggingConnectorType)) {
290
- this._logging = loggingModels.LoggingConnectorFactory.get(options.loggingConnectorType);
291
- }
288
+ this._logging = core.ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
292
289
  this._messagingEmailEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingEmailEntryStorageConnectorType ??
293
290
  core.StringHelper.kebabCase("EmailEntry"));
294
291
  }
@@ -349,7 +346,7 @@ class EntityStorageMessagingPushNotificationConnector {
349
346
  */
350
347
  CLASS_NAME = "EntityStorageMessagingPushNotificationConnector";
351
348
  /**
352
- * The logging connector.
349
+ * The logging component.
353
350
  * @internal
354
351
  */
355
352
  _logging;
@@ -368,9 +365,7 @@ class EntityStorageMessagingPushNotificationConnector {
368
365
  * @param options The options for the connector.
369
366
  */
370
367
  constructor(options) {
371
- if (core.Is.stringValue(options?.loggingConnectorType)) {
372
- this._logging = loggingModels.LoggingConnectorFactory.get(options.loggingConnectorType);
373
- }
368
+ this._logging = core.ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
374
369
  this._messagingDeviceEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingDeviceEntryStorageConnectorType ??
375
370
  core.StringHelper.kebabCase("PushNotificationDeviceEntry"));
376
371
  this._messagingMessageEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingMessageEntryStorageConnectorType ??
@@ -458,7 +453,7 @@ class EntityStorageMessagingSmsConnector {
458
453
  */
459
454
  CLASS_NAME = "EntityStorageMessagingSmsConnector";
460
455
  /**
461
- * The logging connector.
456
+ * The logging component.
462
457
  * @internal
463
458
  */
464
459
  _logging;
@@ -472,9 +467,7 @@ class EntityStorageMessagingSmsConnector {
472
467
  * @param options The options for the connector.
473
468
  */
474
469
  constructor(options) {
475
- if (core.Is.stringValue(options?.loggingConnectorType)) {
476
- this._logging = loggingModels.LoggingConnectorFactory.get(options.loggingConnectorType);
477
- }
470
+ this._logging = core.ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
478
471
  this._messagingSmsEntryStorage = entityStorageModels.EntityStorageConnectorFactory.get(options?.messagingSmsEntryStorageConnectorType ?? core.StringHelper.kebabCase("SmsEntry"));
479
472
  }
480
473
  /**
@@ -1,7 +1,6 @@
1
- import { property, entity, EntitySchemaFactory, EntitySchemaHelper } from '@twin.org/entity';
2
- import { Is, StringHelper, Guards, Converter, RandomHelper, GeneralError } from '@twin.org/core';
1
+ import { property, SortDirection, entity, EntitySchemaFactory, EntitySchemaHelper } from '@twin.org/entity';
2
+ import { ComponentFactory, StringHelper, Guards, Converter, RandomHelper, GeneralError } from '@twin.org/core';
3
3
  import { EntityStorageConnectorFactory } from '@twin.org/entity-storage-models';
4
- import { LoggingConnectorFactory } from '@twin.org/logging-models';
5
4
 
6
5
  /**
7
6
  * Call defining an email entry.
@@ -43,35 +42,35 @@ let EmailEntry = class EmailEntry {
43
42
  __decorate([
44
43
  property({ type: "string", isPrimary: true }),
45
44
  __metadata("design:type", String)
46
- ], EmailEntry.prototype, "id", undefined);
45
+ ], EmailEntry.prototype, "id", void 0);
47
46
  __decorate([
48
47
  property({ type: "string" }),
49
48
  __metadata("design:type", String)
50
- ], EmailEntry.prototype, "sender", undefined);
49
+ ], EmailEntry.prototype, "sender", void 0);
51
50
  __decorate([
52
51
  property({ type: "array", itemType: "string" }),
53
52
  __metadata("design:type", Array)
54
- ], EmailEntry.prototype, "recipients", undefined);
53
+ ], EmailEntry.prototype, "recipients", void 0);
55
54
  __decorate([
56
- property({ type: "integer" }),
55
+ property({ type: "integer", format: "uint64", sortDirection: SortDirection.Descending }),
57
56
  __metadata("design:type", Number)
58
- ], EmailEntry.prototype, "ts", undefined);
57
+ ], EmailEntry.prototype, "ts", void 0);
59
58
  __decorate([
60
59
  property({ type: "string" }),
61
60
  __metadata("design:type", String)
62
- ], EmailEntry.prototype, "message", undefined);
61
+ ], EmailEntry.prototype, "message", void 0);
63
62
  __decorate([
64
63
  property({ type: "string" }),
65
64
  __metadata("design:type", String)
66
- ], EmailEntry.prototype, "subject", undefined);
65
+ ], EmailEntry.prototype, "subject", void 0);
67
66
  __decorate([
68
67
  property({ type: "string" }),
69
68
  __metadata("design:type", String)
70
- ], EmailEntry.prototype, "status", undefined);
69
+ ], EmailEntry.prototype, "status", void 0);
71
70
  __decorate([
72
- property({ type: "object" }),
71
+ property({ type: "object", optional: true }),
73
72
  __metadata("design:type", Object)
74
- ], EmailEntry.prototype, "error", undefined);
73
+ ], EmailEntry.prototype, "error", void 0);
75
74
  EmailEntry = __decorate([
76
75
  entity()
77
76
  ], EmailEntry);
@@ -108,27 +107,27 @@ let PushNotificationDeviceEntry = class PushNotificationDeviceEntry {
108
107
  __decorate([
109
108
  property({ type: "string", isPrimary: true }),
110
109
  __metadata("design:type", String)
111
- ], PushNotificationDeviceEntry.prototype, "id", undefined);
110
+ ], PushNotificationDeviceEntry.prototype, "id", void 0);
112
111
  __decorate([
113
112
  property({ type: "string" }),
114
113
  __metadata("design:type", String)
115
- ], PushNotificationDeviceEntry.prototype, "applicationId", undefined);
114
+ ], PushNotificationDeviceEntry.prototype, "applicationId", void 0);
116
115
  __decorate([
117
116
  property({ type: "string" }),
118
117
  __metadata("design:type", String)
119
- ], PushNotificationDeviceEntry.prototype, "deviceToken", undefined);
118
+ ], PushNotificationDeviceEntry.prototype, "deviceToken", void 0);
120
119
  __decorate([
121
- property({ type: "integer" }),
120
+ property({ type: "integer", format: "uint64", sortDirection: SortDirection.Descending }),
122
121
  __metadata("design:type", Number)
123
- ], PushNotificationDeviceEntry.prototype, "ts", undefined);
122
+ ], PushNotificationDeviceEntry.prototype, "ts", void 0);
124
123
  __decorate([
125
124
  property({ type: "string" }),
126
125
  __metadata("design:type", String)
127
- ], PushNotificationDeviceEntry.prototype, "status", undefined);
126
+ ], PushNotificationDeviceEntry.prototype, "status", void 0);
128
127
  __decorate([
129
- property({ type: "object" }),
128
+ property({ type: "object", optional: true }),
130
129
  __metadata("design:type", Object)
131
- ], PushNotificationDeviceEntry.prototype, "error", undefined);
130
+ ], PushNotificationDeviceEntry.prototype, "error", void 0);
132
131
  PushNotificationDeviceEntry = __decorate([
133
132
  entity()
134
133
  ], PushNotificationDeviceEntry);
@@ -169,31 +168,31 @@ let PushNotificationMessageEntry = class PushNotificationMessageEntry {
169
168
  __decorate([
170
169
  property({ type: "string", isPrimary: true }),
171
170
  __metadata("design:type", String)
172
- ], PushNotificationMessageEntry.prototype, "id", undefined);
171
+ ], PushNotificationMessageEntry.prototype, "id", void 0);
173
172
  __decorate([
174
173
  property({ type: "string" }),
175
174
  __metadata("design:type", String)
176
- ], PushNotificationMessageEntry.prototype, "deviceAddress", undefined);
175
+ ], PushNotificationMessageEntry.prototype, "deviceAddress", void 0);
177
176
  __decorate([
178
177
  property({ type: "string" }),
179
178
  __metadata("design:type", String)
180
- ], PushNotificationMessageEntry.prototype, "title", undefined);
179
+ ], PushNotificationMessageEntry.prototype, "title", void 0);
181
180
  __decorate([
182
181
  property({ type: "string" }),
183
182
  __metadata("design:type", String)
184
- ], PushNotificationMessageEntry.prototype, "message", undefined);
183
+ ], PushNotificationMessageEntry.prototype, "message", void 0);
185
184
  __decorate([
186
- property({ type: "integer" }),
185
+ property({ type: "integer", format: "uint64", sortDirection: SortDirection.Descending }),
187
186
  __metadata("design:type", Number)
188
- ], PushNotificationMessageEntry.prototype, "ts", undefined);
187
+ ], PushNotificationMessageEntry.prototype, "ts", void 0);
189
188
  __decorate([
190
189
  property({ type: "string" }),
191
190
  __metadata("design:type", String)
192
- ], PushNotificationMessageEntry.prototype, "status", undefined);
191
+ ], PushNotificationMessageEntry.prototype, "status", void 0);
193
192
  __decorate([
194
- property({ type: "object" }),
193
+ property({ type: "object", optional: true }),
195
194
  __metadata("design:type", Object)
196
- ], PushNotificationMessageEntry.prototype, "error", undefined);
195
+ ], PushNotificationMessageEntry.prototype, "error", void 0);
197
196
  PushNotificationMessageEntry = __decorate([
198
197
  entity()
199
198
  ], PushNotificationMessageEntry);
@@ -230,27 +229,27 @@ let SmsEntry = class SmsEntry {
230
229
  __decorate([
231
230
  property({ type: "string", isPrimary: true }),
232
231
  __metadata("design:type", String)
233
- ], SmsEntry.prototype, "id", undefined);
232
+ ], SmsEntry.prototype, "id", void 0);
234
233
  __decorate([
235
234
  property({ type: "string" }),
236
235
  __metadata("design:type", String)
237
- ], SmsEntry.prototype, "phoneNumber", undefined);
236
+ ], SmsEntry.prototype, "phoneNumber", void 0);
238
237
  __decorate([
239
- property({ type: "integer" }),
238
+ property({ type: "integer", format: "uint64", sortDirection: SortDirection.Descending }),
240
239
  __metadata("design:type", Number)
241
- ], SmsEntry.prototype, "ts", undefined);
240
+ ], SmsEntry.prototype, "ts", void 0);
242
241
  __decorate([
243
242
  property({ type: "string" }),
244
243
  __metadata("design:type", String)
245
- ], SmsEntry.prototype, "message", undefined);
244
+ ], SmsEntry.prototype, "message", void 0);
246
245
  __decorate([
247
246
  property({ type: "string" }),
248
247
  __metadata("design:type", String)
249
- ], SmsEntry.prototype, "status", undefined);
248
+ ], SmsEntry.prototype, "status", void 0);
250
249
  __decorate([
251
- property({ type: "object" }),
250
+ property({ type: "object", optional: true }),
252
251
  __metadata("design:type", Object)
253
- ], SmsEntry.prototype, "error", undefined);
252
+ ], SmsEntry.prototype, "error", void 0);
254
253
  SmsEntry = __decorate([
255
254
  entity()
256
255
  ], SmsEntry);
@@ -270,7 +269,7 @@ class EntityStorageMessagingEmailConnector {
270
269
  */
271
270
  CLASS_NAME = "EntityStorageMessagingEmailConnector";
272
271
  /**
273
- * The logging connector.
272
+ * The logging component.
274
273
  * @internal
275
274
  */
276
275
  _logging;
@@ -284,9 +283,7 @@ class EntityStorageMessagingEmailConnector {
284
283
  * @param options The options for the connector.
285
284
  */
286
285
  constructor(options) {
287
- if (Is.stringValue(options?.loggingConnectorType)) {
288
- this._logging = LoggingConnectorFactory.get(options.loggingConnectorType);
289
- }
286
+ this._logging = ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
290
287
  this._messagingEmailEntryStorage = EntityStorageConnectorFactory.get(options?.messagingEmailEntryStorageConnectorType ??
291
288
  StringHelper.kebabCase("EmailEntry"));
292
289
  }
@@ -347,7 +344,7 @@ class EntityStorageMessagingPushNotificationConnector {
347
344
  */
348
345
  CLASS_NAME = "EntityStorageMessagingPushNotificationConnector";
349
346
  /**
350
- * The logging connector.
347
+ * The logging component.
351
348
  * @internal
352
349
  */
353
350
  _logging;
@@ -366,9 +363,7 @@ class EntityStorageMessagingPushNotificationConnector {
366
363
  * @param options The options for the connector.
367
364
  */
368
365
  constructor(options) {
369
- if (Is.stringValue(options?.loggingConnectorType)) {
370
- this._logging = LoggingConnectorFactory.get(options.loggingConnectorType);
371
- }
366
+ this._logging = ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
372
367
  this._messagingDeviceEntryStorage = EntityStorageConnectorFactory.get(options?.messagingDeviceEntryStorageConnectorType ??
373
368
  StringHelper.kebabCase("PushNotificationDeviceEntry"));
374
369
  this._messagingMessageEntryStorage = EntityStorageConnectorFactory.get(options?.messagingMessageEntryStorageConnectorType ??
@@ -456,7 +451,7 @@ class EntityStorageMessagingSmsConnector {
456
451
  */
457
452
  CLASS_NAME = "EntityStorageMessagingSmsConnector";
458
453
  /**
459
- * The logging connector.
454
+ * The logging component.
460
455
  * @internal
461
456
  */
462
457
  _logging;
@@ -470,9 +465,7 @@ class EntityStorageMessagingSmsConnector {
470
465
  * @param options The options for the connector.
471
466
  */
472
467
  constructor(options) {
473
- if (Is.stringValue(options?.loggingConnectorType)) {
474
- this._logging = LoggingConnectorFactory.get(options.loggingConnectorType);
475
- }
468
+ this._logging = ComponentFactory.getIfExists(options?.loggingComponentType ?? "logging");
476
469
  this._messagingSmsEntryStorage = EntityStorageConnectorFactory.get(options?.messagingSmsEntryStorageConnectorType ?? StringHelper.kebabCase("SmsEntry"));
477
470
  }
478
471
  /**
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface IEntityStorageMessagingEmailConnectorConstructorOptions {
5
5
  /**
6
- * The type of logging connector to use, defaults to no logging.
6
+ * The type of logging component to use, defaults to no logging.
7
7
  */
8
- loggingConnectorType?: string;
8
+ loggingComponentType?: string;
9
9
  /**
10
10
  * The type of entity storage connector to use for the email entries.
11
11
  * @default email-entry
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface IEntityStorageMessagingPushNotificationConnectorConstructorOptions {
5
5
  /**
6
- * The type of logging connector to use, defaults to no logging.
6
+ * The type of logging component to use, defaults to no logging.
7
7
  */
8
- loggingConnectorType?: string;
8
+ loggingComponentType?: string;
9
9
  /**
10
10
  * The type of entity storage connector to use for the push notifications entries.
11
11
  * @default push-notification-device-entry
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface IEntityStorageMessagingSmsConnectorConstructorOptions {
5
5
  /**
6
- * The type of logging connector to use, defaults to no logging.
6
+ * The type of logging component to use, defaults to no logging.
7
7
  */
8
- loggingConnectorType?: string;
8
+ loggingComponentType?: string;
9
9
  /**
10
10
  * The type of entity storage connector to use for the sms entries.
11
11
  * @default sms-entry
package/docs/changelog.md CHANGED
@@ -1,5 +1,104 @@
1
1
  # @twin.org/messaging-connector-entity-storage - Changelog
2
2
 
3
- ## v0.0.1-next.9
3
+ ## [0.0.2-next.1](https://github.com/twinfoundation/messaging/compare/messaging-connector-entity-storage-v0.0.2-next.0...messaging-connector-entity-storage-v0.0.2-next.1) (2025-08-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * Entity Storage email connector init ([#2](https://github.com/twinfoundation/messaging/issues/2)) ([65b344d](https://github.com/twinfoundation/messaging/commit/65b344de0d2d3d557d921e3d32e263dcb04ee9b3))
9
+ * update dependencies ([53dcde6](https://github.com/twinfoundation/messaging/commit/53dcde60d6efaee5957296f6d097cb97c0fb2f9d))
10
+ * update framework core ([fc476b4](https://github.com/twinfoundation/messaging/commit/fc476b48e6075de0ae871e3cec1fa179aa04b5eb))
11
+ * use shared store mechanism ([#8](https://github.com/twinfoundation/messaging/issues/8)) ([9ad65c2](https://github.com/twinfoundation/messaging/commit/9ad65c239ba77bb75604a1f6e51b975357f3228d))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * Adding format to the MessagingEntries ts number ([8b99d4f](https://github.com/twinfoundation/messaging/commit/8b99d4f01c4f2b08da8d2affc1b9554fcb0d3690))
17
+ * Make SMS entry error property optional ([#5](https://github.com/twinfoundation/messaging/issues/5)) ([e0faf83](https://github.com/twinfoundation/messaging/commit/e0faf83e028a2c5dc45a5e8ba1a546013e4a3c8c))
18
+
19
+
20
+ ### Dependencies
21
+
22
+ * The following workspace dependencies were updated
23
+ * dependencies
24
+ * @twin.org/messaging-models bumped from 0.0.2-next.0 to 0.0.2-next.1
25
+
26
+ ## 0.0.1 (2025-07-08)
27
+
28
+
29
+ ### Features
30
+
31
+ * release to production ([cc714a7](https://github.com/twinfoundation/messaging/commit/cc714a7e1db251ab8e1a158f7753387a56d60271))
32
+
33
+
34
+ ### Dependencies
35
+
36
+ * The following workspace dependencies were updated
37
+ * dependencies
38
+ * @twin.org/messaging-models bumped from ^0.0.0 to ^0.0.1
39
+
40
+ ## [0.0.1-next.16](https://github.com/twinfoundation/messaging/compare/messaging-connector-entity-storage-v0.0.1-next.15...messaging-connector-entity-storage-v0.0.1-next.16) (2025-06-30)
41
+
42
+
43
+ ### Miscellaneous Chores
44
+
45
+ * **messaging-connector-entity-storage:** Synchronize repo versions
46
+
47
+
48
+ ### Dependencies
49
+
50
+ * The following workspace dependencies were updated
51
+ * dependencies
52
+ * @twin.org/messaging-models bumped from 0.0.1-next.15 to 0.0.1-next.16
53
+
54
+ ## [0.0.1-next.15](https://github.com/twinfoundation/messaging/compare/messaging-connector-entity-storage-v0.0.1-next.14...messaging-connector-entity-storage-v0.0.1-next.15) (2025-06-12)
55
+
56
+
57
+ ### Features
58
+
59
+ * update dependencies ([53dcde6](https://github.com/twinfoundation/messaging/commit/53dcde60d6efaee5957296f6d097cb97c0fb2f9d))
60
+
61
+
62
+ ### Dependencies
63
+
64
+ * The following workspace dependencies were updated
65
+ * dependencies
66
+ * @twin.org/messaging-models bumped from 0.0.1-next.14 to 0.0.1-next.15
67
+
68
+ ## [0.0.1-next.14](https://github.com/twinfoundation/messaging/compare/messaging-connector-entity-storage-v0.0.1-next.13...messaging-connector-entity-storage-v0.0.1-next.14) (2025-04-17)
69
+
70
+
71
+ ### Features
72
+
73
+ * use shared store mechanism ([#8](https://github.com/twinfoundation/messaging/issues/8)) ([9ad65c2](https://github.com/twinfoundation/messaging/commit/9ad65c239ba77bb75604a1f6e51b975357f3228d))
74
+
75
+
76
+ ### Dependencies
77
+
78
+ * The following workspace dependencies were updated
79
+ * dependencies
80
+ * @twin.org/messaging-models bumped from 0.0.1-next.13 to 0.0.1-next.14
81
+
82
+ ## [0.0.1-next.13](https://github.com/twinfoundation/messaging/compare/messaging-connector-entity-storage-v0.0.1-next.12...messaging-connector-entity-storage-v0.0.1-next.13) (2025-03-28)
83
+
84
+
85
+ ### Features
86
+
87
+ * Entity Storage email connector init ([#2](https://github.com/twinfoundation/messaging/issues/2)) ([65b344d](https://github.com/twinfoundation/messaging/commit/65b344de0d2d3d557d921e3d32e263dcb04ee9b3))
88
+
89
+
90
+ ### Bug Fixes
91
+
92
+ * Adding format to the MessagingEntries ts number ([8b99d4f](https://github.com/twinfoundation/messaging/commit/8b99d4f01c4f2b08da8d2affc1b9554fcb0d3690))
93
+ * Make SMS entry error property optional ([#5](https://github.com/twinfoundation/messaging/issues/5)) ([e0faf83](https://github.com/twinfoundation/messaging/commit/e0faf83e028a2c5dc45a5e8ba1a546013e4a3c8c))
94
+
95
+
96
+ ### Dependencies
97
+
98
+ * The following workspace dependencies were updated
99
+ * dependencies
100
+ * @twin.org/messaging-models bumped from 0.0.1-next.12 to 0.0.1-next.13
101
+
102
+ ## v0.0.1-next.12
4
103
 
5
104
  - Initial Release
@@ -4,13 +4,13 @@ Call defining an email entry.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new EmailEntry()
7
+ ### Constructor
8
8
 
9
- > **new EmailEntry**(): [`EmailEntry`](EmailEntry.md)
9
+ > **new EmailEntry**(): `EmailEntry`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`EmailEntry`](EmailEntry.md)
13
+ `EmailEntry`
14
14
 
15
15
  ## Properties
16
16
 
@@ -8,9 +8,9 @@ Class for connecting to the email messaging operations of the Entity Storage.
8
8
 
9
9
  ## Constructors
10
10
 
11
- ### new EntityStorageMessagingEmailConnector()
11
+ ### Constructor
12
12
 
13
- > **new EntityStorageMessagingEmailConnector**(`options`?): [`EntityStorageMessagingEmailConnector`](EntityStorageMessagingEmailConnector.md)
13
+ > **new EntityStorageMessagingEmailConnector**(`options?`): `EntityStorageMessagingEmailConnector`
14
14
 
15
15
  Create a new instance of EntityStorageMessagingEmailConnector.
16
16
 
@@ -24,7 +24,7 @@ The options for the connector.
24
24
 
25
25
  #### Returns
26
26
 
27
- [`EntityStorageMessagingEmailConnector`](EntityStorageMessagingEmailConnector.md)
27
+ `EntityStorageMessagingEmailConnector`
28
28
 
29
29
  ## Properties
30
30
 
@@ -8,9 +8,9 @@ Class for connecting to the push notifications messaging operations of the Entit
8
8
 
9
9
  ## Constructors
10
10
 
11
- ### new EntityStorageMessagingPushNotificationConnector()
11
+ ### Constructor
12
12
 
13
- > **new EntityStorageMessagingPushNotificationConnector**(`options`?): [`EntityStorageMessagingPushNotificationConnector`](EntityStorageMessagingPushNotificationConnector.md)
13
+ > **new EntityStorageMessagingPushNotificationConnector**(`options?`): `EntityStorageMessagingPushNotificationConnector`
14
14
 
15
15
  Create a new instance of EntityStorageMessagingPushNotificationConnector.
16
16
 
@@ -24,7 +24,7 @@ The options for the connector.
24
24
 
25
25
  #### Returns
26
26
 
27
- [`EntityStorageMessagingPushNotificationConnector`](EntityStorageMessagingPushNotificationConnector.md)
27
+ `EntityStorageMessagingPushNotificationConnector`
28
28
 
29
29
  ## Properties
30
30
 
@@ -8,9 +8,9 @@ Class for connecting to the SMS messaging operations of the Entity Storage.
8
8
 
9
9
  ## Constructors
10
10
 
11
- ### new EntityStorageMessagingSmsConnector()
11
+ ### Constructor
12
12
 
13
- > **new EntityStorageMessagingSmsConnector**(`options`?): [`EntityStorageMessagingSmsConnector`](EntityStorageMessagingSmsConnector.md)
13
+ > **new EntityStorageMessagingSmsConnector**(`options?`): `EntityStorageMessagingSmsConnector`
14
14
 
15
15
  Create a new instance of EntityStorageMessagingSmsConnector.
16
16
 
@@ -24,7 +24,7 @@ The options for the connector.
24
24
 
25
25
  #### Returns
26
26
 
27
- [`EntityStorageMessagingSmsConnector`](EntityStorageMessagingSmsConnector.md)
27
+ `EntityStorageMessagingSmsConnector`
28
28
 
29
29
  ## Properties
30
30
 
@@ -4,13 +4,13 @@ Call defining an push notification device entry.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new PushNotificationDeviceEntry()
7
+ ### Constructor
8
8
 
9
- > **new PushNotificationDeviceEntry**(): [`PushNotificationDeviceEntry`](PushNotificationDeviceEntry.md)
9
+ > **new PushNotificationDeviceEntry**(): `PushNotificationDeviceEntry`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`PushNotificationDeviceEntry`](PushNotificationDeviceEntry.md)
13
+ `PushNotificationDeviceEntry`
14
14
 
15
15
  ## Properties
16
16
 
@@ -4,13 +4,13 @@ Call defining an push notification message entry.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new PushNotificationMessageEntry()
7
+ ### Constructor
8
8
 
9
- > **new PushNotificationMessageEntry**(): [`PushNotificationMessageEntry`](PushNotificationMessageEntry.md)
9
+ > **new PushNotificationMessageEntry**(): `PushNotificationMessageEntry`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`PushNotificationMessageEntry`](PushNotificationMessageEntry.md)
13
+ `PushNotificationMessageEntry`
14
14
 
15
15
  ## Properties
16
16
 
@@ -4,13 +4,13 @@ Call defining an sms entry.
4
4
 
5
5
  ## Constructors
6
6
 
7
- ### new SmsEntry()
7
+ ### Constructor
8
8
 
9
- > **new SmsEntry**(): [`SmsEntry`](SmsEntry.md)
9
+ > **new SmsEntry**(): `SmsEntry`
10
10
 
11
11
  #### Returns
12
12
 
13
- [`SmsEntry`](SmsEntry.md)
13
+ `SmsEntry`
14
14
 
15
15
  ## Properties
16
16
 
@@ -1,6 +1,6 @@
1
1
  # Function: initSchema()
2
2
 
3
- > **initSchema**(`options`?): `void`
3
+ > **initSchema**(`options?`): `void`
4
4
 
5
5
  Initialize the schema for the messaging connector entity storage.
6
6
 
@@ -10,19 +10,19 @@ Initialize the schema for the messaging connector entity storage.
10
10
 
11
11
  The options for the initialisation.
12
12
 
13
- #### email
13
+ #### email?
14
14
 
15
15
  `boolean`
16
16
 
17
17
  Should we register email schemas.
18
18
 
19
- #### sms
19
+ #### sms?
20
20
 
21
21
  `boolean`
22
22
 
23
23
  Should we register sms schemas.
24
24
 
25
- #### pushNotification
25
+ #### pushNotification?
26
26
 
27
27
  `boolean`
28
28
 
@@ -4,11 +4,11 @@ Options for the entity storage messaging email connector.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### loggingConnectorType?
7
+ ### loggingComponentType?
8
8
 
9
- > `optional` **loggingConnectorType**: `string`
9
+ > `optional` **loggingComponentType**: `string`
10
10
 
11
- The type of logging connector to use, defaults to no logging.
11
+ The type of logging component to use, defaults to no logging.
12
12
 
13
13
  ***
14
14
 
@@ -4,11 +4,11 @@ Options for the entity storage messaging push notification connector.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### loggingConnectorType?
7
+ ### loggingComponentType?
8
8
 
9
- > `optional` **loggingConnectorType**: `string`
9
+ > `optional` **loggingComponentType**: `string`
10
10
 
11
- The type of logging connector to use, defaults to no logging.
11
+ The type of logging component to use, defaults to no logging.
12
12
 
13
13
  ***
14
14
 
@@ -4,11 +4,11 @@ Options for the entity storage messaging SMS connector.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### loggingConnectorType?
7
+ ### loggingComponentType?
8
8
 
9
- > `optional` **loggingConnectorType**: `string`
9
+ > `optional` **loggingComponentType**: `string`
10
10
 
11
- The type of logging connector to use, defaults to no logging.
11
+ The type of logging component to use, defaults to no logging.
12
12
 
13
13
  ***
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/messaging-connector-entity-storage",
3
- "version": "0.0.1-next.9",
3
+ "version": "0.0.2-next.1",
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.1-next.9",
20
+ "@twin.org/messaging-models": "0.0.2-next.1",
21
21
  "@twin.org/nameof": "next"
22
22
  },
23
23
  "main": "./dist/cjs/index.cjs",