@amohamud23/notihub 1.1.30 → 1.1.32
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 +20 -6
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1190,11 +1190,18 @@ var NotiTypeStats = class _NotiTypeStats {
|
|
|
1190
1190
|
* Increment the count of views for a specific notification type.
|
|
1191
1191
|
* @param id - The ID of the notification type stats entry.
|
|
1192
1192
|
*/
|
|
1193
|
-
static async incrementViews(id) {
|
|
1193
|
+
static async incrementViews(id, notiTypeId) {
|
|
1194
1194
|
const command = new import_lib_dynamodb8.UpdateCommand({
|
|
1195
1195
|
TableName: _NotiTypeStats.TABLE_NAME,
|
|
1196
|
-
Key: {
|
|
1197
|
-
|
|
1196
|
+
Key: {
|
|
1197
|
+
id,
|
|
1198
|
+
notiTypeId
|
|
1199
|
+
// Include the sort key
|
|
1200
|
+
},
|
|
1201
|
+
UpdateExpression: "ADD #views :inc",
|
|
1202
|
+
ExpressionAttributeNames: {
|
|
1203
|
+
"#views": "views"
|
|
1204
|
+
},
|
|
1198
1205
|
ExpressionAttributeValues: {
|
|
1199
1206
|
":inc": 1
|
|
1200
1207
|
},
|
|
@@ -1627,11 +1634,18 @@ var NotificationStats = class _NotificationStats {
|
|
|
1627
1634
|
* Increments the view count for a notification stats entry.
|
|
1628
1635
|
* @param id - The ID of the notification stats entry.
|
|
1629
1636
|
*/
|
|
1630
|
-
static async incrementViewCount(id) {
|
|
1637
|
+
static async incrementViewCount(id, customerId) {
|
|
1631
1638
|
const command = new import_lib_dynamodb13.UpdateCommand({
|
|
1632
1639
|
TableName: _NotificationStats.TABLE_NAME,
|
|
1633
|
-
Key: {
|
|
1634
|
-
|
|
1640
|
+
Key: {
|
|
1641
|
+
id,
|
|
1642
|
+
customerId
|
|
1643
|
+
// Include the sort key
|
|
1644
|
+
},
|
|
1645
|
+
UpdateExpression: "ADD #views :inc",
|
|
1646
|
+
ExpressionAttributeNames: {
|
|
1647
|
+
"#views": "views"
|
|
1648
|
+
},
|
|
1635
1649
|
ExpressionAttributeValues: {
|
|
1636
1650
|
":inc": 1
|
|
1637
1651
|
},
|
package/dist/index.d.cts
CHANGED
|
@@ -533,7 +533,7 @@ declare class NotiTypeStats {
|
|
|
533
533
|
* Increment the count of views for a specific notification type.
|
|
534
534
|
* @param id - The ID of the notification type stats entry.
|
|
535
535
|
*/
|
|
536
|
-
static incrementViews(id: string): Promise<INotiTypeStats>;
|
|
536
|
+
static incrementViews(id: string, notiTypeId: string): Promise<INotiTypeStats>;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
declare class Views {
|
|
@@ -672,7 +672,7 @@ declare class NotificationStats {
|
|
|
672
672
|
* Increments the view count for a notification stats entry.
|
|
673
673
|
* @param id - The ID of the notification stats entry.
|
|
674
674
|
*/
|
|
675
|
-
static incrementViewCount(id: string): Promise<INotiHubNotificationStats>;
|
|
675
|
+
static incrementViewCount(id: string, customerId: string): Promise<INotiHubNotificationStats>;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
declare class NotiHubStatsHistory {
|
package/dist/index.d.ts
CHANGED
|
@@ -533,7 +533,7 @@ declare class NotiTypeStats {
|
|
|
533
533
|
* Increment the count of views for a specific notification type.
|
|
534
534
|
* @param id - The ID of the notification type stats entry.
|
|
535
535
|
*/
|
|
536
|
-
static incrementViews(id: string): Promise<INotiTypeStats>;
|
|
536
|
+
static incrementViews(id: string, notiTypeId: string): Promise<INotiTypeStats>;
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
declare class Views {
|
|
@@ -672,7 +672,7 @@ declare class NotificationStats {
|
|
|
672
672
|
* Increments the view count for a notification stats entry.
|
|
673
673
|
* @param id - The ID of the notification stats entry.
|
|
674
674
|
*/
|
|
675
|
-
static incrementViewCount(id: string): Promise<INotiHubNotificationStats>;
|
|
675
|
+
static incrementViewCount(id: string, customerId: string): Promise<INotiHubNotificationStats>;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
declare class NotiHubStatsHistory {
|
package/dist/index.js
CHANGED
|
@@ -1190,11 +1190,18 @@ var NotiTypeStats = class _NotiTypeStats {
|
|
|
1190
1190
|
* Increment the count of views for a specific notification type.
|
|
1191
1191
|
* @param id - The ID of the notification type stats entry.
|
|
1192
1192
|
*/
|
|
1193
|
-
static async incrementViews(id) {
|
|
1193
|
+
static async incrementViews(id, notiTypeId) {
|
|
1194
1194
|
const command = new UpdateCommand7({
|
|
1195
1195
|
TableName: _NotiTypeStats.TABLE_NAME,
|
|
1196
|
-
Key: {
|
|
1197
|
-
|
|
1196
|
+
Key: {
|
|
1197
|
+
id,
|
|
1198
|
+
notiTypeId
|
|
1199
|
+
// Include the sort key
|
|
1200
|
+
},
|
|
1201
|
+
UpdateExpression: "ADD #views :inc",
|
|
1202
|
+
ExpressionAttributeNames: {
|
|
1203
|
+
"#views": "views"
|
|
1204
|
+
},
|
|
1198
1205
|
ExpressionAttributeValues: {
|
|
1199
1206
|
":inc": 1
|
|
1200
1207
|
},
|
|
@@ -1648,11 +1655,18 @@ var NotificationStats = class _NotificationStats {
|
|
|
1648
1655
|
* Increments the view count for a notification stats entry.
|
|
1649
1656
|
* @param id - The ID of the notification stats entry.
|
|
1650
1657
|
*/
|
|
1651
|
-
static async incrementViewCount(id) {
|
|
1658
|
+
static async incrementViewCount(id, customerId) {
|
|
1652
1659
|
const command = new UpdateCommand11({
|
|
1653
1660
|
TableName: _NotificationStats.TABLE_NAME,
|
|
1654
|
-
Key: {
|
|
1655
|
-
|
|
1661
|
+
Key: {
|
|
1662
|
+
id,
|
|
1663
|
+
customerId
|
|
1664
|
+
// Include the sort key
|
|
1665
|
+
},
|
|
1666
|
+
UpdateExpression: "ADD #views :inc",
|
|
1667
|
+
ExpressionAttributeNames: {
|
|
1668
|
+
"#views": "views"
|
|
1669
|
+
},
|
|
1656
1670
|
ExpressionAttributeValues: {
|
|
1657
1671
|
":inc": 1
|
|
1658
1672
|
},
|