@amohamud23/notihub 1.0.195 → 1.0.196

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
@@ -597,12 +597,16 @@ var NotiType = class _NotiType {
597
597
  /**
598
598
  * Retrieves a notification type by its ID.
599
599
  * @param id - The ID of the notification type to retrieve.
600
+ * @param customerId - The customer ID associated with the notification type.
600
601
  * @returns A promise that resolves to the notification type object or null if not found.
601
602
  */
602
- static async getNotiTypeById(id) {
603
+ static async getNotiTypeById(id, customerId) {
603
604
  const command = new import_lib_dynamodb6.GetCommand({
604
605
  TableName: _NotiType.TABLE_NAME,
605
- Key: { id }
606
+ Key: {
607
+ customerId,
608
+ id
609
+ }
606
610
  });
607
611
  try {
608
612
  const result = await ddbDocClient.send(command);
package/dist/index.d.cts CHANGED
@@ -379,9 +379,10 @@ declare class NotiType {
379
379
  /**
380
380
  * Retrieves a notification type by its ID.
381
381
  * @param id - The ID of the notification type to retrieve.
382
+ * @param customerId - The customer ID associated with the notification type.
382
383
  * @returns A promise that resolves to the notification type object or null if not found.
383
384
  */
384
- static getNotiTypeById(id: string): Promise<INotiType | null>;
385
+ static getNotiTypeById(id: string, customerId: string): Promise<INotiType | null>;
385
386
  /**
386
387
  * Retrieves all notification types.
387
388
  * @returns A promise that resolves to an array of notification type objects.
package/dist/index.d.ts CHANGED
@@ -379,9 +379,10 @@ declare class NotiType {
379
379
  /**
380
380
  * Retrieves a notification type by its ID.
381
381
  * @param id - The ID of the notification type to retrieve.
382
+ * @param customerId - The customer ID associated with the notification type.
382
383
  * @returns A promise that resolves to the notification type object or null if not found.
383
384
  */
384
- static getNotiTypeById(id: string): Promise<INotiType | null>;
385
+ static getNotiTypeById(id: string, customerId: string): Promise<INotiType | null>;
385
386
  /**
386
387
  * Retrieves all notification types.
387
388
  * @returns A promise that resolves to an array of notification type objects.
package/dist/index.js CHANGED
@@ -585,12 +585,16 @@ var NotiType = class _NotiType {
585
585
  /**
586
586
  * Retrieves a notification type by its ID.
587
587
  * @param id - The ID of the notification type to retrieve.
588
+ * @param customerId - The customer ID associated with the notification type.
588
589
  * @returns A promise that resolves to the notification type object or null if not found.
589
590
  */
590
- static async getNotiTypeById(id) {
591
+ static async getNotiTypeById(id, customerId) {
591
592
  const command = new GetCommand5({
592
593
  TableName: _NotiType.TABLE_NAME,
593
- Key: { id }
594
+ Key: {
595
+ customerId,
596
+ id
597
+ }
594
598
  });
595
599
  try {
596
600
  const result = await ddbDocClient.send(command);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.0.195",
3
+ "version": "1.0.196",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",