@amohamud23/notihub 1.1.11 → 1.1.13
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 -5
- package/dist/index.d.cts +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.js +2 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1121,13 +1121,10 @@ 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) {
|
|
1125
1125
|
const command = new import_lib_dynamodb10.GetCommand({
|
|
1126
1126
|
TableName: _SubscriptionType.TABLE_NAME,
|
|
1127
|
-
Key: {
|
|
1128
|
-
id,
|
|
1129
|
-
userId
|
|
1130
|
-
}
|
|
1127
|
+
Key: { id }
|
|
1131
1128
|
});
|
|
1132
1129
|
try {
|
|
1133
1130
|
const result = await ddbDocClient.send(command);
|
package/dist/index.d.cts
CHANGED
|
@@ -182,10 +182,8 @@ type INotiHubUserView = {
|
|
|
182
182
|
type INotiHubSubscription = {
|
|
183
183
|
id: string;
|
|
184
184
|
subscriptionId: string;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
user: INotiHubUser;
|
|
188
|
-
userRef: INotiHubUser;
|
|
185
|
+
customerId: string;
|
|
186
|
+
userId: string;
|
|
189
187
|
type: "SUBSCRIBED" | "UNSUBSCRIBED";
|
|
190
188
|
createdAt: string;
|
|
191
189
|
updatedAt: string;
|
|
@@ -530,7 +528,7 @@ declare class SubscriptionType {
|
|
|
530
528
|
* @param id - The ID of the subscription type to retrieve.
|
|
531
529
|
* @returns A promise that resolves to the subscription type object or null if not found.
|
|
532
530
|
*/
|
|
533
|
-
static getSubscriptionTypeById(id: string
|
|
531
|
+
static getSubscriptionTypeById(id: string): Promise<IUserSubscribeNotifier | null>;
|
|
534
532
|
static getSubscriptionTypesByUserId(userId: string): Promise<IUserSubscribeNotifier[] | null>;
|
|
535
533
|
/**
|
|
536
534
|
* Deletes a subscription type by its ID.
|
package/dist/index.d.ts
CHANGED
|
@@ -182,10 +182,8 @@ type INotiHubUserView = {
|
|
|
182
182
|
type INotiHubSubscription = {
|
|
183
183
|
id: string;
|
|
184
184
|
subscriptionId: string;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
user: INotiHubUser;
|
|
188
|
-
userRef: INotiHubUser;
|
|
185
|
+
customerId: string;
|
|
186
|
+
userId: string;
|
|
189
187
|
type: "SUBSCRIBED" | "UNSUBSCRIBED";
|
|
190
188
|
createdAt: string;
|
|
191
189
|
updatedAt: string;
|
|
@@ -530,7 +528,7 @@ declare class SubscriptionType {
|
|
|
530
528
|
* @param id - The ID of the subscription type to retrieve.
|
|
531
529
|
* @returns A promise that resolves to the subscription type object or null if not found.
|
|
532
530
|
*/
|
|
533
|
-
static getSubscriptionTypeById(id: string
|
|
531
|
+
static getSubscriptionTypeById(id: string): Promise<IUserSubscribeNotifier | null>;
|
|
534
532
|
static getSubscriptionTypesByUserId(userId: string): Promise<IUserSubscribeNotifier[] | null>;
|
|
535
533
|
/**
|
|
536
534
|
* Deletes a subscription type by its ID.
|
package/dist/index.js
CHANGED
|
@@ -1127,13 +1127,10 @@ 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) {
|
|
1131
1131
|
const command = new GetCommand9({
|
|
1132
1132
|
TableName: _SubscriptionType.TABLE_NAME,
|
|
1133
|
-
Key: {
|
|
1134
|
-
id,
|
|
1135
|
-
userId
|
|
1136
|
-
}
|
|
1133
|
+
Key: { id }
|
|
1137
1134
|
});
|
|
1138
1135
|
try {
|
|
1139
1136
|
const result = await ddbDocClient.send(command);
|