@amohamud23/notihub 1.1.61 → 1.1.62

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
@@ -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,
@@ -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
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amohamud23/notihub",
3
- "version": "1.1.61",
3
+ "version": "1.1.62",
4
4
  "description": "Notihub Package",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",