@amohamud23/notihub 1.1.10 → 1.1.11

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
@@ -1121,10 +1121,13 @@ var SubscriptionType = class _SubscriptionType {
1121
1121
  * @param id - The ID of the subscription type to retrieve.
1122
1122
  * @returns A promise that resolves to the subscription type object or null if not found.
1123
1123
  */
1124
- static async getSubscriptionTypeById(id) {
1124
+ static async getSubscriptionTypeById(id, userId) {
1125
1125
  const command = new import_lib_dynamodb10.GetCommand({
1126
1126
  TableName: _SubscriptionType.TABLE_NAME,
1127
- Key: { id }
1127
+ Key: {
1128
+ id,
1129
+ userId
1130
+ }
1128
1131
  });
1129
1132
  try {
1130
1133
  const result = await ddbDocClient.send(command);
package/dist/index.d.cts CHANGED
@@ -530,7 +530,7 @@ declare class SubscriptionType {
530
530
  * @param id - The ID of the subscription type to retrieve.
531
531
  * @returns A promise that resolves to the subscription type object or null if not found.
532
532
  */
533
- static getSubscriptionTypeById(id: string): Promise<IUserSubscribeNotifier | null>;
533
+ static getSubscriptionTypeById(id: string, userId: string): Promise<IUserSubscribeNotifier | null>;
534
534
  static getSubscriptionTypesByUserId(userId: string): Promise<IUserSubscribeNotifier[] | null>;
535
535
  /**
536
536
  * Deletes a subscription type by its ID.
package/dist/index.d.ts CHANGED
@@ -530,7 +530,7 @@ declare class SubscriptionType {
530
530
  * @param id - The ID of the subscription type to retrieve.
531
531
  * @returns A promise that resolves to the subscription type object or null if not found.
532
532
  */
533
- static getSubscriptionTypeById(id: string): Promise<IUserSubscribeNotifier | null>;
533
+ static getSubscriptionTypeById(id: string, userId: string): Promise<IUserSubscribeNotifier | null>;
534
534
  static getSubscriptionTypesByUserId(userId: string): Promise<IUserSubscribeNotifier[] | null>;
535
535
  /**
536
536
  * Deletes a subscription type by its ID.
package/dist/index.js CHANGED
@@ -1127,10 +1127,13 @@ var SubscriptionType = class _SubscriptionType {
1127
1127
  * @param id - The ID of the subscription type to retrieve.
1128
1128
  * @returns A promise that resolves to the subscription type object or null if not found.
1129
1129
  */
1130
- static async getSubscriptionTypeById(id) {
1130
+ static async getSubscriptionTypeById(id, userId) {
1131
1131
  const command = new GetCommand9({
1132
1132
  TableName: _SubscriptionType.TABLE_NAME,
1133
- Key: { id }
1133
+ Key: {
1134
+ id,
1135
+ userId
1136
+ }
1134
1137
  });
1135
1138
  try {
1136
1139
  const result = await ddbDocClient.send(command);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",