@amohamud23/notihub 1.0.175 → 1.0.176

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.
package/dist/index.cjs CHANGED
@@ -298,7 +298,7 @@ var User_default = User;
298
298
  var import_lib_dynamodb3 = require("@aws-sdk/lib-dynamodb");
299
299
  var Customer = class _Customer {
300
300
  static ENV = process.env.ENV || "dev";
301
- static TABLE_NAME = `NotiHub-Customers-${_Customer.ENV}`;
301
+ static TABLE_NAME = `NotiHub-Customers-v1-${_Customer.ENV}`;
302
302
  /**
303
303
  * Retrieves a customer by their ID.
304
304
  * @param id - The ID of the customer to retrieve.
@@ -405,7 +405,7 @@ var Customer_default = Customer;
405
405
  var import_lib_dynamodb4 = require("@aws-sdk/lib-dynamodb");
406
406
  var Notifications = class _Notifications {
407
407
  static ENV = process.env.ENV || "dev";
408
- static TABLE_NAME = `NotiHub-Notifications-${_Notifications.ENV}`;
408
+ static TABLE_NAME = `NotiHub-Notifications-v1-${_Notifications.ENV}`;
409
409
  /**
410
410
  * Retrieves a notification by its ID.
411
411
  * @param id - The ID of the notification to retrieve.
@@ -531,7 +531,7 @@ var NotiHubStats_default = NotiHubStats;
531
531
  var import_lib_dynamodb6 = require("@aws-sdk/lib-dynamodb");
532
532
  var NotiType = class _NotiType {
533
533
  static ENV = process.env.ENV || "dev";
534
- static TABLE_NAME = `NotiHub-NotiTypes-${_NotiType.ENV}`;
534
+ static TABLE_NAME = `NotiHub-NotiTypes-v1-${_NotiType.ENV}`;
535
535
  /**
536
536
  * Retrieves a notification type by its ID.
537
537
  * @param id - The ID of the notification type to retrieve.
@@ -710,7 +710,7 @@ var NotiType_default = NotiType;
710
710
  var import_lib_dynamodb7 = require("@aws-sdk/lib-dynamodb");
711
711
  var Subscription = class _Subscription {
712
712
  static ENV = process.env.ENV || "dev";
713
- static TABLE_NAME = `NotiHub-Subscriptions-${_Subscription.ENV}`;
713
+ static TABLE_NAME = `NotiHub-Subscriptions-v1-${_Subscription.ENV}`;
714
714
  /**
715
715
  * Retrieves a subscription by its ID.
716
716
  * @param id - The ID of the subscription to retrieve.
@@ -826,7 +826,7 @@ var Subscription_default = Subscription;
826
826
  var import_lib_dynamodb8 = require("@aws-sdk/lib-dynamodb");
827
827
  var NotiTypeStats = class _NotiTypeStats {
828
828
  static ENV = process.env.ENV || "dev";
829
- static TABLE_NAME = `NotiHub-NotiTypeStats-${_NotiTypeStats.ENV}`;
829
+ static TABLE_NAME = `NotiHub-NotiTypeStats-v1-${_NotiTypeStats.ENV}`;
830
830
  /**
831
831
  * Retrieves notification type stats by their ID.
832
832
  * @param id - The ID of the notification type stats to retrieve.
@@ -916,7 +916,7 @@ var NotiTypeStats_default = NotiTypeStats;
916
916
  var import_lib_dynamodb9 = require("@aws-sdk/lib-dynamodb");
917
917
  var Views = class _Views {
918
918
  static ENV = process.env.ENV || "dev";
919
- static TABLE_NAME = `NotiHub-Views-${_Views.ENV}`;
919
+ static TABLE_NAME = `NotiHub-Views-v1-${_Views.ENV}`;
920
920
  /**
921
921
  * Retrieves a view by its ID.
922
922
  * @param id - The ID of the view to retrieve.
@@ -960,7 +960,7 @@ var Views_default = Views;
960
960
  var import_lib_dynamodb10 = require("@aws-sdk/lib-dynamodb");
961
961
  var SubscriptionType = class _SubscriptionType {
962
962
  static ENV = process.env.ENV || "dev";
963
- static TABLE_NAME = `NotiHub-SubscriptionTypes-${_SubscriptionType.ENV}`;
963
+ static TABLE_NAME = `NotiHub-SubscriptionTypes-v1-${_SubscriptionType.ENV}`;
964
964
  /**
965
965
  * Retrieves a subscription type by its ID.
966
966
  * @param id - The ID of the subscription type to retrieve.
@@ -1024,7 +1024,7 @@ var SubscriptionType_default = SubscriptionType;
1024
1024
  var import_lib_dynamodb11 = require("@aws-sdk/lib-dynamodb");
1025
1025
  var CustomerMetaData = class _CustomerMetaData {
1026
1026
  static ENV = process.env.ENV || "dev";
1027
- static TABLE_NAME = `NotiHub-CustomerMetaData-${_CustomerMetaData.ENV}`;
1027
+ static TABLE_NAME = `NotiHub-CustomerMetaData-v1-${_CustomerMetaData.ENV}`;
1028
1028
  /**
1029
1029
  * Retrieves customer metadata by its ID.
1030
1030
  * @param id - The ID of the customer metadata to retrieve.
@@ -1103,7 +1103,7 @@ var CustomerMetaData_default = CustomerMetaData;
1103
1103
  var import_lib_dynamodb12 = require("@aws-sdk/lib-dynamodb");
1104
1104
  var CustomerMinified = class _CustomerMinified {
1105
1105
  static ENV = process.env.ENV || "dev";
1106
- static TABLE_NAME = `NotiHub-CustomersMinified-${_CustomerMinified.ENV}`;
1106
+ static TABLE_NAME = `NotiHub-CustomersMinified-v1-${_CustomerMinified.ENV}`;
1107
1107
  /**
1108
1108
  * Retrieves a customer by their ID.
1109
1109
  * @param id - The ID of the customer to retrieve.
@@ -1165,7 +1165,7 @@ var CustomerMinified_default = CustomerMinified;
1165
1165
  var import_lib_dynamodb13 = require("@aws-sdk/lib-dynamodb");
1166
1166
  var NotificationStats = class _NotificationStats {
1167
1167
  static ENV = process.env.ENV || "dev";
1168
- static TABLE_NAME = `NotiHub-NotificationStats-${_NotificationStats.ENV}`;
1168
+ static TABLE_NAME = `NotiHub-NotificationStats-v1-${_NotificationStats.ENV}`;
1169
1169
  /**
1170
1170
  * Retrieves notification stats by their ID.
1171
1171
  * @param id - The ID of the notification stats to retrieve.
@@ -1226,7 +1226,7 @@ var NotificationStats_default = NotificationStats;
1226
1226
  var import_lib_dynamodb14 = require("@aws-sdk/lib-dynamodb");
1227
1227
  var NotiHubStatsHistory = class _NotiHubStatsHistory {
1228
1228
  static ENV = process.env.ENV || "dev";
1229
- static TABLE_NAME = `NotiHub-StatsHistory-${_NotiHubStatsHistory.ENV}`;
1229
+ static TABLE_NAME = `NotiHub-StatsHistory-v1-${_NotiHubStatsHistory.ENV}`;
1230
1230
  /**
1231
1231
  * Creates a new NotiHub stats history entry.
1232
1232
  * @param statsHistory - The statistics history object to create.
package/dist/index.js CHANGED
@@ -270,7 +270,7 @@ import {
270
270
  } from "@aws-sdk/lib-dynamodb";
271
271
  var Customer = class _Customer {
272
272
  static ENV = process.env.ENV || "dev";
273
- static TABLE_NAME = `NotiHub-Customers-${_Customer.ENV}`;
273
+ static TABLE_NAME = `NotiHub-Customers-v1-${_Customer.ENV}`;
274
274
  /**
275
275
  * Retrieves a customer by their ID.
276
276
  * @param id - The ID of the customer to retrieve.
@@ -380,7 +380,7 @@ import {
380
380
  } from "@aws-sdk/lib-dynamodb";
381
381
  var Notifications = class _Notifications {
382
382
  static ENV = process.env.ENV || "dev";
383
- static TABLE_NAME = `NotiHub-Notifications-${_Notifications.ENV}`;
383
+ static TABLE_NAME = `NotiHub-Notifications-v1-${_Notifications.ENV}`;
384
384
  /**
385
385
  * Retrieves a notification by its ID.
386
386
  * @param id - The ID of the notification to retrieve.
@@ -519,7 +519,7 @@ import {
519
519
  } from "@aws-sdk/lib-dynamodb";
520
520
  var NotiType = class _NotiType {
521
521
  static ENV = process.env.ENV || "dev";
522
- static TABLE_NAME = `NotiHub-NotiTypes-${_NotiType.ENV}`;
522
+ static TABLE_NAME = `NotiHub-NotiTypes-v1-${_NotiType.ENV}`;
523
523
  /**
524
524
  * Retrieves a notification type by its ID.
525
525
  * @param id - The ID of the notification type to retrieve.
@@ -703,7 +703,7 @@ import {
703
703
  } from "@aws-sdk/lib-dynamodb";
704
704
  var Subscription = class _Subscription {
705
705
  static ENV = process.env.ENV || "dev";
706
- static TABLE_NAME = `NotiHub-Subscriptions-${_Subscription.ENV}`;
706
+ static TABLE_NAME = `NotiHub-Subscriptions-v1-${_Subscription.ENV}`;
707
707
  /**
708
708
  * Retrieves a subscription by its ID.
709
709
  * @param id - The ID of the subscription to retrieve.
@@ -824,7 +824,7 @@ import {
824
824
  } from "@aws-sdk/lib-dynamodb";
825
825
  var NotiTypeStats = class _NotiTypeStats {
826
826
  static ENV = process.env.ENV || "dev";
827
- static TABLE_NAME = `NotiHub-NotiTypeStats-${_NotiTypeStats.ENV}`;
827
+ static TABLE_NAME = `NotiHub-NotiTypeStats-v1-${_NotiTypeStats.ENV}`;
828
828
  /**
829
829
  * Retrieves notification type stats by their ID.
830
830
  * @param id - The ID of the notification type stats to retrieve.
@@ -917,7 +917,7 @@ import {
917
917
  } from "@aws-sdk/lib-dynamodb";
918
918
  var Views = class _Views {
919
919
  static ENV = process.env.ENV || "dev";
920
- static TABLE_NAME = `NotiHub-Views-${_Views.ENV}`;
920
+ static TABLE_NAME = `NotiHub-Views-v1-${_Views.ENV}`;
921
921
  /**
922
922
  * Retrieves a view by its ID.
923
923
  * @param id - The ID of the view to retrieve.
@@ -965,7 +965,7 @@ import {
965
965
  } from "@aws-sdk/lib-dynamodb";
966
966
  var SubscriptionType = class _SubscriptionType {
967
967
  static ENV = process.env.ENV || "dev";
968
- static TABLE_NAME = `NotiHub-SubscriptionTypes-${_SubscriptionType.ENV}`;
968
+ static TABLE_NAME = `NotiHub-SubscriptionTypes-v1-${_SubscriptionType.ENV}`;
969
969
  /**
970
970
  * Retrieves a subscription type by its ID.
971
971
  * @param id - The ID of the subscription type to retrieve.
@@ -1033,7 +1033,7 @@ import {
1033
1033
  } from "@aws-sdk/lib-dynamodb";
1034
1034
  var CustomerMetaData = class _CustomerMetaData {
1035
1035
  static ENV = process.env.ENV || "dev";
1036
- static TABLE_NAME = `NotiHub-CustomerMetaData-${_CustomerMetaData.ENV}`;
1036
+ static TABLE_NAME = `NotiHub-CustomerMetaData-v1-${_CustomerMetaData.ENV}`;
1037
1037
  /**
1038
1038
  * Retrieves customer metadata by its ID.
1039
1039
  * @param id - The ID of the customer metadata to retrieve.
@@ -1116,7 +1116,7 @@ import {
1116
1116
  } from "@aws-sdk/lib-dynamodb";
1117
1117
  var CustomerMinified = class _CustomerMinified {
1118
1118
  static ENV = process.env.ENV || "dev";
1119
- static TABLE_NAME = `NotiHub-CustomersMinified-${_CustomerMinified.ENV}`;
1119
+ static TABLE_NAME = `NotiHub-CustomersMinified-v1-${_CustomerMinified.ENV}`;
1120
1120
  /**
1121
1121
  * Retrieves a customer by their ID.
1122
1122
  * @param id - The ID of the customer to retrieve.
@@ -1178,7 +1178,7 @@ var CustomerMinified_default = CustomerMinified;
1178
1178
  import { DeleteCommand as DeleteCommand11, GetCommand as GetCommand12, PutCommand as PutCommand12 } from "@aws-sdk/lib-dynamodb";
1179
1179
  var NotificationStats = class _NotificationStats {
1180
1180
  static ENV = process.env.ENV || "dev";
1181
- static TABLE_NAME = `NotiHub-NotificationStats-${_NotificationStats.ENV}`;
1181
+ static TABLE_NAME = `NotiHub-NotificationStats-v1-${_NotificationStats.ENV}`;
1182
1182
  /**
1183
1183
  * Retrieves notification stats by their ID.
1184
1184
  * @param id - The ID of the notification stats to retrieve.
@@ -1242,7 +1242,7 @@ import {
1242
1242
  } from "@aws-sdk/lib-dynamodb";
1243
1243
  var NotiHubStatsHistory = class _NotiHubStatsHistory {
1244
1244
  static ENV = process.env.ENV || "dev";
1245
- static TABLE_NAME = `NotiHub-StatsHistory-${_NotiHubStatsHistory.ENV}`;
1245
+ static TABLE_NAME = `NotiHub-StatsHistory-v1-${_NotiHubStatsHistory.ENV}`;
1246
1246
  /**
1247
1247
  * Creates a new NotiHub stats history entry.
1248
1248
  * @param statsHistory - The statistics history object to create.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.175",
3
+ "version": "1.0.176",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",