@amohamud23/notihub 1.1.61 → 1.1.63
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 +3 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22,6 +22,7 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
DocumentNotFoundException: () => DocumentNotFoundException,
|
|
24
24
|
ErrorCode: () => errorcodes_exports,
|
|
25
|
+
ParameterStoreClient: () => ParameterStoreClient_default,
|
|
25
26
|
TABLES: () => TABLES,
|
|
26
27
|
addMonths: () => addMonths,
|
|
27
28
|
formatResponse: () => formatResponse,
|
|
@@ -453,7 +454,7 @@ var Customer_default = Customer;
|
|
|
453
454
|
var import_lib_dynamodb4 = require("@aws-sdk/lib-dynamodb");
|
|
454
455
|
var Notifications = class _Notifications {
|
|
455
456
|
static ENV = process.env.ENV || "dev";
|
|
456
|
-
static TABLE_NAME = `NotiHub-Notifications-
|
|
457
|
+
static TABLE_NAME = `NotiHub-Notifications-v2-${_Notifications.ENV}`;
|
|
457
458
|
/**
|
|
458
459
|
* Retrieves a notification by its ID.
|
|
459
460
|
* @param id - The ID of the notification to retrieve.
|
|
@@ -2070,6 +2071,7 @@ var InvalidDate = "4011";
|
|
|
2070
2071
|
0 && (module.exports = {
|
|
2071
2072
|
DocumentNotFoundException,
|
|
2072
2073
|
ErrorCode,
|
|
2074
|
+
ParameterStoreClient,
|
|
2073
2075
|
TABLES,
|
|
2074
2076
|
addMonths,
|
|
2075
2077
|
formatResponse,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Response as Response$1 } from 'express';
|
|
2
|
+
import { SSMClient } from '@aws-sdk/client-ssm';
|
|
2
3
|
|
|
3
4
|
type CreateNotiRequestBody = {
|
|
4
5
|
customerId: string;
|
|
@@ -794,6 +795,13 @@ declare const TABLES: {
|
|
|
794
795
|
PaymentSession: typeof PaymentSession;
|
|
795
796
|
};
|
|
796
797
|
|
|
798
|
+
declare class ParameterStore {
|
|
799
|
+
ssmClient: SSMClient;
|
|
800
|
+
constructor();
|
|
801
|
+
getParameter(paramName: string, withDecryption?: boolean): Promise<string>;
|
|
802
|
+
}
|
|
803
|
+
declare const _default: ParameterStore;
|
|
804
|
+
|
|
797
805
|
declare const DocumentNotFound = "4001";
|
|
798
806
|
declare const UserNotFound = "4002";
|
|
799
807
|
declare const CustomerNotFound = "4003";
|
|
@@ -817,4 +825,4 @@ declare namespace errorcodes {
|
|
|
817
825
|
export { errorcodes_CustomerNotFound as CustomerNotFound, errorcodes_DocumentNotFound as DocumentNotFound, errorcodes_InvalidDate as InvalidDate, errorcodes_InvalidEmail as InvalidEmail, errorcodes_InvalidName as InvalidName, errorcodes_InvalidPassword as InvalidPassword, errorcodes_InvalidPhoneNumber as InvalidPhoneNumber, errorcodes_InvalidPushToken as InvalidPushToken, errorcodes_UserNotFound as UserNotFound };
|
|
818
826
|
}
|
|
819
827
|
|
|
820
|
-
export { type CreateNotiRequestBody, type CreateSubscriptionRequestBody, type CreateUserRequestBody, type DBMetaData, DocumentNotFoundException, errorcodes as ErrorCode, type ICreateCustomerRequestBody, type ICreateNotiRequestBody, type INotiHubCustomer, type INotiHubCustomerMetadata, type INotiHubCustomerMinified, type INotiHubImage, type INotiHubNotification, type INotiHubNotificationStats, type INotiHubPaymentSession, type INotiHubStats, type INotiHubStatsHistory, type INotiHubStripeSubscription, type INotiHubSubscription, type INotiHubSubscriptionActivity, type INotiHubUser, type INotiHubUserView, type INotiType, type INotiTypeStats, type IUserSubscribeNotifier, type IUserSubscription, type NotiHubTypes, type Response, TABLES, addMonths, formatResponse, getDate, getDateFormat, handleError, handleSuccess };
|
|
828
|
+
export { type CreateNotiRequestBody, type CreateSubscriptionRequestBody, type CreateUserRequestBody, type DBMetaData, DocumentNotFoundException, errorcodes as ErrorCode, type ICreateCustomerRequestBody, type ICreateNotiRequestBody, type INotiHubCustomer, type INotiHubCustomerMetadata, type INotiHubCustomerMinified, type INotiHubImage, type INotiHubNotification, type INotiHubNotificationStats, type INotiHubPaymentSession, type INotiHubStats, type INotiHubStatsHistory, type INotiHubStripeSubscription, type INotiHubSubscription, type INotiHubSubscriptionActivity, type INotiHubUser, type INotiHubUserView, type INotiType, type INotiTypeStats, type IUserSubscribeNotifier, type IUserSubscription, type NotiHubTypes, _default as ParameterStoreClient, type Response, TABLES, addMonths, formatResponse, getDate, getDateFormat, handleError, handleSuccess };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Response as Response$1 } from 'express';
|
|
2
|
+
import { SSMClient } from '@aws-sdk/client-ssm';
|
|
2
3
|
|
|
3
4
|
type CreateNotiRequestBody = {
|
|
4
5
|
customerId: string;
|
|
@@ -794,6 +795,13 @@ declare const TABLES: {
|
|
|
794
795
|
PaymentSession: typeof PaymentSession;
|
|
795
796
|
};
|
|
796
797
|
|
|
798
|
+
declare class ParameterStore {
|
|
799
|
+
ssmClient: SSMClient;
|
|
800
|
+
constructor();
|
|
801
|
+
getParameter(paramName: string, withDecryption?: boolean): Promise<string>;
|
|
802
|
+
}
|
|
803
|
+
declare const _default: ParameterStore;
|
|
804
|
+
|
|
797
805
|
declare const DocumentNotFound = "4001";
|
|
798
806
|
declare const UserNotFound = "4002";
|
|
799
807
|
declare const CustomerNotFound = "4003";
|
|
@@ -817,4 +825,4 @@ declare namespace errorcodes {
|
|
|
817
825
|
export { errorcodes_CustomerNotFound as CustomerNotFound, errorcodes_DocumentNotFound as DocumentNotFound, errorcodes_InvalidDate as InvalidDate, errorcodes_InvalidEmail as InvalidEmail, errorcodes_InvalidName as InvalidName, errorcodes_InvalidPassword as InvalidPassword, errorcodes_InvalidPhoneNumber as InvalidPhoneNumber, errorcodes_InvalidPushToken as InvalidPushToken, errorcodes_UserNotFound as UserNotFound };
|
|
818
826
|
}
|
|
819
827
|
|
|
820
|
-
export { type CreateNotiRequestBody, type CreateSubscriptionRequestBody, type CreateUserRequestBody, type DBMetaData, DocumentNotFoundException, errorcodes as ErrorCode, type ICreateCustomerRequestBody, type ICreateNotiRequestBody, type INotiHubCustomer, type INotiHubCustomerMetadata, type INotiHubCustomerMinified, type INotiHubImage, type INotiHubNotification, type INotiHubNotificationStats, type INotiHubPaymentSession, type INotiHubStats, type INotiHubStatsHistory, type INotiHubStripeSubscription, type INotiHubSubscription, type INotiHubSubscriptionActivity, type INotiHubUser, type INotiHubUserView, type INotiType, type INotiTypeStats, type IUserSubscribeNotifier, type IUserSubscription, type NotiHubTypes, type Response, TABLES, addMonths, formatResponse, getDate, getDateFormat, handleError, handleSuccess };
|
|
828
|
+
export { type CreateNotiRequestBody, type CreateSubscriptionRequestBody, type CreateUserRequestBody, type DBMetaData, DocumentNotFoundException, errorcodes as ErrorCode, type ICreateCustomerRequestBody, type ICreateNotiRequestBody, type INotiHubCustomer, type INotiHubCustomerMetadata, type INotiHubCustomerMinified, type INotiHubImage, type INotiHubNotification, type INotiHubNotificationStats, type INotiHubPaymentSession, type INotiHubStats, type INotiHubStatsHistory, type INotiHubStripeSubscription, type INotiHubSubscription, type INotiHubSubscriptionActivity, type INotiHubUser, type INotiHubUserView, type INotiType, type INotiTypeStats, type IUserSubscribeNotifier, type IUserSubscription, type NotiHubTypes, _default as ParameterStoreClient, type Response, TABLES, addMonths, formatResponse, getDate, getDateFormat, handleError, handleSuccess };
|
package/dist/index.js
CHANGED
|
@@ -442,7 +442,7 @@ import {
|
|
|
442
442
|
} from "@aws-sdk/lib-dynamodb";
|
|
443
443
|
var Notifications = class _Notifications {
|
|
444
444
|
static ENV = process.env.ENV || "dev";
|
|
445
|
-
static TABLE_NAME = `NotiHub-Notifications-
|
|
445
|
+
static TABLE_NAME = `NotiHub-Notifications-v2-${_Notifications.ENV}`;
|
|
446
446
|
/**
|
|
447
447
|
* Retrieves a notification by its ID.
|
|
448
448
|
* @param id - The ID of the notification to retrieve.
|
|
@@ -2115,6 +2115,7 @@ var InvalidDate = "4011";
|
|
|
2115
2115
|
export {
|
|
2116
2116
|
DocumentNotFoundException,
|
|
2117
2117
|
errorcodes_exports as ErrorCode,
|
|
2118
|
+
ParameterStoreClient_default as ParameterStoreClient,
|
|
2118
2119
|
TABLES,
|
|
2119
2120
|
addMonths,
|
|
2120
2121
|
formatResponse,
|