@amohamud23/notihub 1.0.197 → 1.0.199

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
@@ -524,7 +524,10 @@ var NotiHubStats = class _NotiHubStats {
524
524
  const command = new import_lib_dynamodb5.UpdateCommand({
525
525
  TableName: _NotiHubStats.TABLE_NAME,
526
526
  Key: { id, customerId },
527
- UpdateExpression: "ADD views :inc",
527
+ UpdateExpression: "ADD #views :inc",
528
+ ExpressionAttributeNames: {
529
+ "#views": "views"
530
+ },
528
531
  ExpressionAttributeValues: {
529
532
  ":inc": 1
530
533
  },
package/dist/index.d.cts CHANGED
@@ -96,6 +96,7 @@ type INotiHubNotification = {
96
96
  type INotiHubNotificationStats = {
97
97
  id: string;
98
98
  notificationId: string;
99
+ customerId: string;
99
100
  views: number;
100
101
  createdAt: string;
101
102
  updatedAt: string;
@@ -129,9 +130,7 @@ type INotiHubStatsHistory = {
129
130
  id: string;
130
131
  customerId: string;
131
132
  type: "DAY" | "MONTH" | "YEAR";
132
- subscription: number;
133
- notifications: number;
134
- views: number;
133
+ stat: INotiHubStats;
135
134
  createdAt: string;
136
135
  updatedAt: string;
137
136
  };
package/dist/index.d.ts CHANGED
@@ -96,6 +96,7 @@ type INotiHubNotification = {
96
96
  type INotiHubNotificationStats = {
97
97
  id: string;
98
98
  notificationId: string;
99
+ customerId: string;
99
100
  views: number;
100
101
  createdAt: string;
101
102
  updatedAt: string;
@@ -129,9 +130,7 @@ type INotiHubStatsHistory = {
129
130
  id: string;
130
131
  customerId: string;
131
132
  type: "DAY" | "MONTH" | "YEAR";
132
- subscription: number;
133
- notifications: number;
134
- views: number;
133
+ stat: INotiHubStats;
135
134
  createdAt: string;
136
135
  updatedAt: string;
137
136
  };
package/dist/index.js CHANGED
@@ -504,7 +504,10 @@ var NotiHubStats = class _NotiHubStats {
504
504
  const command = new UpdateCommand4({
505
505
  TableName: _NotiHubStats.TABLE_NAME,
506
506
  Key: { id, customerId },
507
- UpdateExpression: "ADD views :inc",
507
+ UpdateExpression: "ADD #views :inc",
508
+ ExpressionAttributeNames: {
509
+ "#views": "views"
510
+ },
508
511
  ExpressionAttributeValues: {
509
512
  ":inc": 1
510
513
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.197",
3
+ "version": "1.0.199",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",