@amohamud23/notihub 1.0.170 → 1.0.172
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
|
@@ -504,10 +504,10 @@ var NotiHubStats = class _NotiHubStats {
|
|
|
504
504
|
* Retrieves the statistics for NotiHub.
|
|
505
505
|
* @returns A promise that resolves to the statistics object or null if not found.
|
|
506
506
|
*/
|
|
507
|
-
static async
|
|
507
|
+
static async getStatsBy(customerId) {
|
|
508
508
|
const command = new import_lib_dynamodb5.GetCommand({
|
|
509
509
|
TableName: _NotiHubStats.TABLE_NAME,
|
|
510
|
-
Key: {
|
|
510
|
+
Key: { customerId }
|
|
511
511
|
});
|
|
512
512
|
try {
|
|
513
513
|
const result = await ddbDocClient.send(command);
|
package/dist/index.d.cts
CHANGED
|
@@ -366,7 +366,7 @@ declare class NotiHubStats {
|
|
|
366
366
|
* Retrieves the statistics for NotiHub.
|
|
367
367
|
* @returns A promise that resolves to the statistics object or null if not found.
|
|
368
368
|
*/
|
|
369
|
-
static
|
|
369
|
+
static getStatsBy(customerId: string): Promise<INotiHubStats | null>;
|
|
370
370
|
/**
|
|
371
371
|
* Updates the statistics for NotiHub.
|
|
372
372
|
* @param notificationId - The ID of the notification to update the stats for.
|
package/dist/index.d.ts
CHANGED
|
@@ -366,7 +366,7 @@ declare class NotiHubStats {
|
|
|
366
366
|
* Retrieves the statistics for NotiHub.
|
|
367
367
|
* @returns A promise that resolves to the statistics object or null if not found.
|
|
368
368
|
*/
|
|
369
|
-
static
|
|
369
|
+
static getStatsBy(customerId: string): Promise<INotiHubStats | null>;
|
|
370
370
|
/**
|
|
371
371
|
* Updates the statistics for NotiHub.
|
|
372
372
|
* @param notificationId - The ID of the notification to update the stats for.
|
package/dist/index.js
CHANGED
|
@@ -484,10 +484,10 @@ var NotiHubStats = class _NotiHubStats {
|
|
|
484
484
|
* Retrieves the statistics for NotiHub.
|
|
485
485
|
* @returns A promise that resolves to the statistics object or null if not found.
|
|
486
486
|
*/
|
|
487
|
-
static async
|
|
487
|
+
static async getStatsBy(customerId) {
|
|
488
488
|
const command = new GetCommand4({
|
|
489
489
|
TableName: _NotiHubStats.TABLE_NAME,
|
|
490
|
-
Key: {
|
|
490
|
+
Key: { customerId }
|
|
491
491
|
});
|
|
492
492
|
try {
|
|
493
493
|
const result = await ddbDocClient.send(command);
|