@amohamud23/notihub 1.0.198 → 1.1.0

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
@@ -89,7 +89,7 @@ type INotiHubNotification = {
89
89
  customerMinified: INotiHubCustomerMinified;
90
90
  body: string;
91
91
  deliveryType: "IMMEDIATE" | "SCHEDULED";
92
- scheduledAt: Date;
92
+ scheduledAt: string;
93
93
  createdAt: string;
94
94
  updatedAt: string;
95
95
  };
package/dist/index.d.ts CHANGED
@@ -89,7 +89,7 @@ type INotiHubNotification = {
89
89
  customerMinified: INotiHubCustomerMinified;
90
90
  body: string;
91
91
  deliveryType: "IMMEDIATE" | "SCHEDULED";
92
- scheduledAt: Date;
92
+ scheduledAt: string;
93
93
  createdAt: string;
94
94
  updatedAt: string;
95
95
  };
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.198",
3
+ "version": "1.1.0",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",