@amohamud23/notihub 1.1.0 → 1.1.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.
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1302,10 +1302,10 @@ var NotificationStats = class _NotificationStats {
|
|
|
1302
1302
|
* @param id - The ID of the notification stats to retrieve.
|
|
1303
1303
|
* @returns A promise that resolves to the notification stats object or null if not found.
|
|
1304
1304
|
*/
|
|
1305
|
-
static async getNotificationStatsById(id) {
|
|
1305
|
+
static async getNotificationStatsById(id, customerId) {
|
|
1306
1306
|
const command = new import_lib_dynamodb13.GetCommand({
|
|
1307
1307
|
TableName: _NotificationStats.TABLE_NAME,
|
|
1308
|
-
Key: { id }
|
|
1308
|
+
Key: { id, customerId }
|
|
1309
1309
|
});
|
|
1310
1310
|
try {
|
|
1311
1311
|
const result = await ddbDocClient.send(command);
|
package/dist/index.d.cts
CHANGED
|
@@ -589,7 +589,7 @@ declare class NotificationStats {
|
|
|
589
589
|
* @param id - The ID of the notification stats to retrieve.
|
|
590
590
|
* @returns A promise that resolves to the notification stats object or null if not found.
|
|
591
591
|
*/
|
|
592
|
-
static getNotificationStatsById(id: string): Promise<INotiHubNotificationStats | null>;
|
|
592
|
+
static getNotificationStatsById(id: string, customerId: string): Promise<INotiHubNotificationStats | null>;
|
|
593
593
|
/**
|
|
594
594
|
* Creates a new notification stats entry.
|
|
595
595
|
* @param stats - The notification stats object to create.
|
package/dist/index.d.ts
CHANGED
|
@@ -589,7 +589,7 @@ declare class NotificationStats {
|
|
|
589
589
|
* @param id - The ID of the notification stats to retrieve.
|
|
590
590
|
* @returns A promise that resolves to the notification stats object or null if not found.
|
|
591
591
|
*/
|
|
592
|
-
static getNotificationStatsById(id: string): Promise<INotiHubNotificationStats | null>;
|
|
592
|
+
static getNotificationStatsById(id: string, customerId: string): Promise<INotiHubNotificationStats | null>;
|
|
593
593
|
/**
|
|
594
594
|
* Creates a new notification stats entry.
|
|
595
595
|
* @param stats - The notification stats object to create.
|
package/dist/index.js
CHANGED
|
@@ -1316,10 +1316,10 @@ var NotificationStats = class _NotificationStats {
|
|
|
1316
1316
|
* @param id - The ID of the notification stats to retrieve.
|
|
1317
1317
|
* @returns A promise that resolves to the notification stats object or null if not found.
|
|
1318
1318
|
*/
|
|
1319
|
-
static async getNotificationStatsById(id) {
|
|
1319
|
+
static async getNotificationStatsById(id, customerId) {
|
|
1320
1320
|
const command = new GetCommand12({
|
|
1321
1321
|
TableName: _NotificationStats.TABLE_NAME,
|
|
1322
|
-
Key: { id }
|
|
1322
|
+
Key: { id, customerId }
|
|
1323
1323
|
});
|
|
1324
1324
|
try {
|
|
1325
1325
|
const result = await ddbDocClient.send(command);
|