@amohamud23/notihub 1.1.67 → 1.1.69
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/README.md +7 -7
- package/dist/index.cjs +0 -114
- package/dist/index.d.cts +4 -42
- package/dist/index.d.ts +4 -42
- package/dist/index.js +0 -103
- package/package.json +44 -44
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# NotiHubPackage
|
|
2
|
-
|
|
3
|
-
### How to publish package
|
|
4
|
-
|
|
5
|
-
1. Increment version
|
|
6
|
-
|
|
7
|
-
2. Run `npm publish`
|
|
1
|
+
# NotiHubPackage
|
|
2
|
+
|
|
3
|
+
### How to publish package
|
|
4
|
+
|
|
5
|
+
1. Increment version
|
|
6
|
+
|
|
7
|
+
2. Run `npm publish`
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
|
|
30
20
|
// src/index.ts
|
|
@@ -32,7 +22,6 @@ var index_exports = {};
|
|
|
32
22
|
__export(index_exports, {
|
|
33
23
|
DocumentNotFoundException: () => DocumentNotFoundException,
|
|
34
24
|
ErrorCode: () => errorcodes_exports,
|
|
35
|
-
Logger: () => Logger,
|
|
36
25
|
ParameterStoreClient: () => ParameterStoreClient_default,
|
|
37
26
|
TABLES: () => TABLES,
|
|
38
27
|
addMonths: () => addMonths,
|
|
@@ -2049,108 +2038,6 @@ var ParameterStore = class {
|
|
|
2049
2038
|
};
|
|
2050
2039
|
var ParameterStoreClient_default = new ParameterStore();
|
|
2051
2040
|
|
|
2052
|
-
// src/logger.ts
|
|
2053
|
-
var import_pino = __toESM(require("pino"), 1);
|
|
2054
|
-
var Logger = class _Logger {
|
|
2055
|
-
logger;
|
|
2056
|
-
static instance;
|
|
2057
|
-
constructor() {
|
|
2058
|
-
this.logger = (0, import_pino.default)({
|
|
2059
|
-
level: process.env.LOG_LEVEL || "info",
|
|
2060
|
-
transport: process.env.ENV !== "prod" ? {
|
|
2061
|
-
target: "pino-pretty",
|
|
2062
|
-
options: {
|
|
2063
|
-
colorize: true,
|
|
2064
|
-
translateTime: "SYS:standard",
|
|
2065
|
-
ignore: "pid,hostname"
|
|
2066
|
-
}
|
|
2067
|
-
} : void 0
|
|
2068
|
-
});
|
|
2069
|
-
}
|
|
2070
|
-
/**
|
|
2071
|
-
* Get singleton instance of Logger
|
|
2072
|
-
*/
|
|
2073
|
-
static getInstance() {
|
|
2074
|
-
if (!_Logger.instance) {
|
|
2075
|
-
_Logger.instance = new _Logger();
|
|
2076
|
-
}
|
|
2077
|
-
return _Logger.instance;
|
|
2078
|
-
}
|
|
2079
|
-
/**
|
|
2080
|
-
* Log informational message
|
|
2081
|
-
*/
|
|
2082
|
-
info(message, data) {
|
|
2083
|
-
if (data) {
|
|
2084
|
-
this.logger.info(data, message);
|
|
2085
|
-
} else {
|
|
2086
|
-
this.logger.info(message);
|
|
2087
|
-
}
|
|
2088
|
-
}
|
|
2089
|
-
/**
|
|
2090
|
-
* Log error message
|
|
2091
|
-
*/
|
|
2092
|
-
error(message, error) {
|
|
2093
|
-
if (error instanceof Error) {
|
|
2094
|
-
this.logger.error({ err: error }, message);
|
|
2095
|
-
} else if (error) {
|
|
2096
|
-
this.logger.error(error, message);
|
|
2097
|
-
} else {
|
|
2098
|
-
this.logger.error(message);
|
|
2099
|
-
}
|
|
2100
|
-
}
|
|
2101
|
-
/**
|
|
2102
|
-
* Log warning message
|
|
2103
|
-
*/
|
|
2104
|
-
warn(message, data) {
|
|
2105
|
-
if (data) {
|
|
2106
|
-
this.logger.warn(data, message);
|
|
2107
|
-
} else {
|
|
2108
|
-
this.logger.warn(message);
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
/**
|
|
2112
|
-
* Log debug message
|
|
2113
|
-
*/
|
|
2114
|
-
debug(message, data) {
|
|
2115
|
-
if (data) {
|
|
2116
|
-
this.logger.debug(data, message);
|
|
2117
|
-
} else {
|
|
2118
|
-
this.logger.debug(message);
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
/**
|
|
2122
|
-
* Log trace message
|
|
2123
|
-
*/
|
|
2124
|
-
trace(message, data) {
|
|
2125
|
-
if (data) {
|
|
2126
|
-
this.logger.trace(data, message);
|
|
2127
|
-
} else {
|
|
2128
|
-
this.logger.trace(message);
|
|
2129
|
-
}
|
|
2130
|
-
}
|
|
2131
|
-
/**
|
|
2132
|
-
* Log fatal message
|
|
2133
|
-
*/
|
|
2134
|
-
fatal(message, error) {
|
|
2135
|
-
if (error instanceof Error) {
|
|
2136
|
-
this.logger.fatal({ err: error }, message);
|
|
2137
|
-
} else if (error) {
|
|
2138
|
-
this.logger.fatal(error, message);
|
|
2139
|
-
} else {
|
|
2140
|
-
this.logger.fatal(message);
|
|
2141
|
-
}
|
|
2142
|
-
}
|
|
2143
|
-
/**
|
|
2144
|
-
* Create a child logger with additional context
|
|
2145
|
-
*/
|
|
2146
|
-
child(bindings) {
|
|
2147
|
-
const childLogger = new _Logger();
|
|
2148
|
-
childLogger.logger = this.logger.child(bindings);
|
|
2149
|
-
return childLogger;
|
|
2150
|
-
}
|
|
2151
|
-
};
|
|
2152
|
-
var logger_default = Logger.getInstance();
|
|
2153
|
-
|
|
2154
2041
|
// src/errorcodes.ts
|
|
2155
2042
|
var errorcodes_exports = {};
|
|
2156
2043
|
__export(errorcodes_exports, {
|
|
@@ -2177,7 +2064,6 @@ var InvalidDate = "4011";
|
|
|
2177
2064
|
0 && (module.exports = {
|
|
2178
2065
|
DocumentNotFoundException,
|
|
2179
2066
|
ErrorCode,
|
|
2180
|
-
Logger,
|
|
2181
2067
|
ParameterStoreClient,
|
|
2182
2068
|
TABLES,
|
|
2183
2069
|
addMonths,
|
package/dist/index.d.cts
CHANGED
|
@@ -120,6 +120,7 @@ type INotiHubUser = {
|
|
|
120
120
|
subscriptions: string[];
|
|
121
121
|
events: number;
|
|
122
122
|
isSignedIn: boolean;
|
|
123
|
+
snsEndpointArn?: string;
|
|
123
124
|
createdAt: string;
|
|
124
125
|
updatedAt: string;
|
|
125
126
|
};
|
|
@@ -149,6 +150,7 @@ type INotiType = {
|
|
|
149
150
|
type: string;
|
|
150
151
|
customerId: string;
|
|
151
152
|
description?: string;
|
|
153
|
+
snsTopicArn?: string;
|
|
152
154
|
createdAt: string;
|
|
153
155
|
updatedAt: string;
|
|
154
156
|
};
|
|
@@ -175,6 +177,7 @@ type IUserSubscribeNotifier = {
|
|
|
175
177
|
customerId: string;
|
|
176
178
|
notiTypeId: string;
|
|
177
179
|
subscriptionId: string;
|
|
180
|
+
snsSubscriptionArn: string;
|
|
178
181
|
createdAt: string;
|
|
179
182
|
updatedAt: string;
|
|
180
183
|
};
|
|
@@ -802,47 +805,6 @@ declare class ParameterStore {
|
|
|
802
805
|
}
|
|
803
806
|
declare const _default: ParameterStore;
|
|
804
807
|
|
|
805
|
-
/**
|
|
806
|
-
* Reusable Logger class using Pino for structured logging
|
|
807
|
-
*/
|
|
808
|
-
declare class Logger {
|
|
809
|
-
private logger;
|
|
810
|
-
private static instance;
|
|
811
|
-
private constructor();
|
|
812
|
-
/**
|
|
813
|
-
* Get singleton instance of Logger
|
|
814
|
-
*/
|
|
815
|
-
static getInstance(): Logger;
|
|
816
|
-
/**
|
|
817
|
-
* Log informational message
|
|
818
|
-
*/
|
|
819
|
-
info(message: string, data?: Record<string, any>): void;
|
|
820
|
-
/**
|
|
821
|
-
* Log error message
|
|
822
|
-
*/
|
|
823
|
-
error(message: string, error?: Error | Record<string, any>): void;
|
|
824
|
-
/**
|
|
825
|
-
* Log warning message
|
|
826
|
-
*/
|
|
827
|
-
warn(message: string, data?: Record<string, any>): void;
|
|
828
|
-
/**
|
|
829
|
-
* Log debug message
|
|
830
|
-
*/
|
|
831
|
-
debug(message: string, data?: Record<string, any>): void;
|
|
832
|
-
/**
|
|
833
|
-
* Log trace message
|
|
834
|
-
*/
|
|
835
|
-
trace(message: string, data?: Record<string, any>): void;
|
|
836
|
-
/**
|
|
837
|
-
* Log fatal message
|
|
838
|
-
*/
|
|
839
|
-
fatal(message: string, error?: Error | Record<string, any>): void;
|
|
840
|
-
/**
|
|
841
|
-
* Create a child logger with additional context
|
|
842
|
-
*/
|
|
843
|
-
child(bindings: Record<string, any>): Logger;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
808
|
declare const DocumentNotFound = "4001";
|
|
847
809
|
declare const UserNotFound = "4002";
|
|
848
810
|
declare const CustomerNotFound = "4003";
|
|
@@ -866,4 +828,4 @@ declare namespace errorcodes {
|
|
|
866
828
|
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 };
|
|
867
829
|
}
|
|
868
830
|
|
|
869
|
-
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,
|
|
831
|
+
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
|
@@ -120,6 +120,7 @@ type INotiHubUser = {
|
|
|
120
120
|
subscriptions: string[];
|
|
121
121
|
events: number;
|
|
122
122
|
isSignedIn: boolean;
|
|
123
|
+
snsEndpointArn?: string;
|
|
123
124
|
createdAt: string;
|
|
124
125
|
updatedAt: string;
|
|
125
126
|
};
|
|
@@ -149,6 +150,7 @@ type INotiType = {
|
|
|
149
150
|
type: string;
|
|
150
151
|
customerId: string;
|
|
151
152
|
description?: string;
|
|
153
|
+
snsTopicArn?: string;
|
|
152
154
|
createdAt: string;
|
|
153
155
|
updatedAt: string;
|
|
154
156
|
};
|
|
@@ -175,6 +177,7 @@ type IUserSubscribeNotifier = {
|
|
|
175
177
|
customerId: string;
|
|
176
178
|
notiTypeId: string;
|
|
177
179
|
subscriptionId: string;
|
|
180
|
+
snsSubscriptionArn: string;
|
|
178
181
|
createdAt: string;
|
|
179
182
|
updatedAt: string;
|
|
180
183
|
};
|
|
@@ -802,47 +805,6 @@ declare class ParameterStore {
|
|
|
802
805
|
}
|
|
803
806
|
declare const _default: ParameterStore;
|
|
804
807
|
|
|
805
|
-
/**
|
|
806
|
-
* Reusable Logger class using Pino for structured logging
|
|
807
|
-
*/
|
|
808
|
-
declare class Logger {
|
|
809
|
-
private logger;
|
|
810
|
-
private static instance;
|
|
811
|
-
private constructor();
|
|
812
|
-
/**
|
|
813
|
-
* Get singleton instance of Logger
|
|
814
|
-
*/
|
|
815
|
-
static getInstance(): Logger;
|
|
816
|
-
/**
|
|
817
|
-
* Log informational message
|
|
818
|
-
*/
|
|
819
|
-
info(message: string, data?: Record<string, any>): void;
|
|
820
|
-
/**
|
|
821
|
-
* Log error message
|
|
822
|
-
*/
|
|
823
|
-
error(message: string, error?: Error | Record<string, any>): void;
|
|
824
|
-
/**
|
|
825
|
-
* Log warning message
|
|
826
|
-
*/
|
|
827
|
-
warn(message: string, data?: Record<string, any>): void;
|
|
828
|
-
/**
|
|
829
|
-
* Log debug message
|
|
830
|
-
*/
|
|
831
|
-
debug(message: string, data?: Record<string, any>): void;
|
|
832
|
-
/**
|
|
833
|
-
* Log trace message
|
|
834
|
-
*/
|
|
835
|
-
trace(message: string, data?: Record<string, any>): void;
|
|
836
|
-
/**
|
|
837
|
-
* Log fatal message
|
|
838
|
-
*/
|
|
839
|
-
fatal(message: string, error?: Error | Record<string, any>): void;
|
|
840
|
-
/**
|
|
841
|
-
* Create a child logger with additional context
|
|
842
|
-
*/
|
|
843
|
-
child(bindings: Record<string, any>): Logger;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
808
|
declare const DocumentNotFound = "4001";
|
|
847
809
|
declare const UserNotFound = "4002";
|
|
848
810
|
declare const CustomerNotFound = "4003";
|
|
@@ -866,4 +828,4 @@ declare namespace errorcodes {
|
|
|
866
828
|
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 };
|
|
867
829
|
}
|
|
868
830
|
|
|
869
|
-
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,
|
|
831
|
+
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
|
@@ -2084,108 +2084,6 @@ var ParameterStore = class {
|
|
|
2084
2084
|
};
|
|
2085
2085
|
var ParameterStoreClient_default = new ParameterStore();
|
|
2086
2086
|
|
|
2087
|
-
// src/logger.ts
|
|
2088
|
-
import pino from "pino";
|
|
2089
|
-
var Logger = class _Logger {
|
|
2090
|
-
logger;
|
|
2091
|
-
static instance;
|
|
2092
|
-
constructor() {
|
|
2093
|
-
this.logger = pino({
|
|
2094
|
-
level: process.env.LOG_LEVEL || "info",
|
|
2095
|
-
transport: process.env.ENV !== "prod" ? {
|
|
2096
|
-
target: "pino-pretty",
|
|
2097
|
-
options: {
|
|
2098
|
-
colorize: true,
|
|
2099
|
-
translateTime: "SYS:standard",
|
|
2100
|
-
ignore: "pid,hostname"
|
|
2101
|
-
}
|
|
2102
|
-
} : void 0
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
/**
|
|
2106
|
-
* Get singleton instance of Logger
|
|
2107
|
-
*/
|
|
2108
|
-
static getInstance() {
|
|
2109
|
-
if (!_Logger.instance) {
|
|
2110
|
-
_Logger.instance = new _Logger();
|
|
2111
|
-
}
|
|
2112
|
-
return _Logger.instance;
|
|
2113
|
-
}
|
|
2114
|
-
/**
|
|
2115
|
-
* Log informational message
|
|
2116
|
-
*/
|
|
2117
|
-
info(message, data) {
|
|
2118
|
-
if (data) {
|
|
2119
|
-
this.logger.info(data, message);
|
|
2120
|
-
} else {
|
|
2121
|
-
this.logger.info(message);
|
|
2122
|
-
}
|
|
2123
|
-
}
|
|
2124
|
-
/**
|
|
2125
|
-
* Log error message
|
|
2126
|
-
*/
|
|
2127
|
-
error(message, error) {
|
|
2128
|
-
if (error instanceof Error) {
|
|
2129
|
-
this.logger.error({ err: error }, message);
|
|
2130
|
-
} else if (error) {
|
|
2131
|
-
this.logger.error(error, message);
|
|
2132
|
-
} else {
|
|
2133
|
-
this.logger.error(message);
|
|
2134
|
-
}
|
|
2135
|
-
}
|
|
2136
|
-
/**
|
|
2137
|
-
* Log warning message
|
|
2138
|
-
*/
|
|
2139
|
-
warn(message, data) {
|
|
2140
|
-
if (data) {
|
|
2141
|
-
this.logger.warn(data, message);
|
|
2142
|
-
} else {
|
|
2143
|
-
this.logger.warn(message);
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
/**
|
|
2147
|
-
* Log debug message
|
|
2148
|
-
*/
|
|
2149
|
-
debug(message, data) {
|
|
2150
|
-
if (data) {
|
|
2151
|
-
this.logger.debug(data, message);
|
|
2152
|
-
} else {
|
|
2153
|
-
this.logger.debug(message);
|
|
2154
|
-
}
|
|
2155
|
-
}
|
|
2156
|
-
/**
|
|
2157
|
-
* Log trace message
|
|
2158
|
-
*/
|
|
2159
|
-
trace(message, data) {
|
|
2160
|
-
if (data) {
|
|
2161
|
-
this.logger.trace(data, message);
|
|
2162
|
-
} else {
|
|
2163
|
-
this.logger.trace(message);
|
|
2164
|
-
}
|
|
2165
|
-
}
|
|
2166
|
-
/**
|
|
2167
|
-
* Log fatal message
|
|
2168
|
-
*/
|
|
2169
|
-
fatal(message, error) {
|
|
2170
|
-
if (error instanceof Error) {
|
|
2171
|
-
this.logger.fatal({ err: error }, message);
|
|
2172
|
-
} else if (error) {
|
|
2173
|
-
this.logger.fatal(error, message);
|
|
2174
|
-
} else {
|
|
2175
|
-
this.logger.fatal(message);
|
|
2176
|
-
}
|
|
2177
|
-
}
|
|
2178
|
-
/**
|
|
2179
|
-
* Create a child logger with additional context
|
|
2180
|
-
*/
|
|
2181
|
-
child(bindings) {
|
|
2182
|
-
const childLogger = new _Logger();
|
|
2183
|
-
childLogger.logger = this.logger.child(bindings);
|
|
2184
|
-
return childLogger;
|
|
2185
|
-
}
|
|
2186
|
-
};
|
|
2187
|
-
var logger_default = Logger.getInstance();
|
|
2188
|
-
|
|
2189
2087
|
// src/errorcodes.ts
|
|
2190
2088
|
var errorcodes_exports = {};
|
|
2191
2089
|
__export(errorcodes_exports, {
|
|
@@ -2211,7 +2109,6 @@ var InvalidDate = "4011";
|
|
|
2211
2109
|
export {
|
|
2212
2110
|
DocumentNotFoundException,
|
|
2213
2111
|
errorcodes_exports as ErrorCode,
|
|
2214
|
-
Logger,
|
|
2215
2112
|
ParameterStoreClient_default as ParameterStoreClient,
|
|
2216
2113
|
TABLES,
|
|
2217
2114
|
addMonths,
|
package/package.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@amohamud23/notihub",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Notihub Package",
|
|
5
|
-
"main": "./dist/index.cjs",
|
|
6
|
-
"types": "./dist/index.d.cts",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "tsup",
|
|
10
|
-
"test": "jest"
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"keywords": [
|
|
16
|
-
"npm",
|
|
17
|
-
"package",
|
|
18
|
-
"util",
|
|
19
|
-
"types"
|
|
20
|
-
],
|
|
21
|
-
"author": "Abdi Mohamud",
|
|
22
|
-
"license": "ISC",
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@types/express": "^5.0.3",
|
|
25
|
-
"@types/jest": "^29.5.14",
|
|
26
|
-
"@types/node": "^22.8.4",
|
|
27
|
-
"express": "^5.1.0",
|
|
28
|
-
"jest": "^29.7.0",
|
|
29
|
-
"pino-pretty": "^13.1.3",
|
|
30
|
-
"ts-jest": "^29.3.4",
|
|
31
|
-
"tsup": "^8.5.1",
|
|
32
|
-
"typescript": "^5.8.3"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@aws-sdk/client-dynamodb": "^3.821.0",
|
|
36
|
-
"@aws-sdk/client-ssm": "^3.939.0",
|
|
37
|
-
"@aws-sdk/lib-dynamodb": "^3.821.0",
|
|
38
|
-
"aws-sdk-client-mock": "^4.1.0",
|
|
39
|
-
"date-fns": "^4.1.0",
|
|
40
|
-
"pino": "^10.1.0",
|
|
41
|
-
"ts-node": "^10.9.2",
|
|
42
|
-
"uuid": "^11.0.2"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@amohamud23/notihub",
|
|
3
|
+
"version": "1.1.69",
|
|
4
|
+
"description": "Notihub Package",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"types": "./dist/index.d.cts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsup",
|
|
10
|
+
"test": "jest"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"npm",
|
|
17
|
+
"package",
|
|
18
|
+
"util",
|
|
19
|
+
"types"
|
|
20
|
+
],
|
|
21
|
+
"author": "Abdi Mohamud",
|
|
22
|
+
"license": "ISC",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/express": "^5.0.3",
|
|
25
|
+
"@types/jest": "^29.5.14",
|
|
26
|
+
"@types/node": "^22.8.4",
|
|
27
|
+
"express": "^5.1.0",
|
|
28
|
+
"jest": "^29.7.0",
|
|
29
|
+
"pino-pretty": "^13.1.3",
|
|
30
|
+
"ts-jest": "^29.3.4",
|
|
31
|
+
"tsup": "^8.5.1",
|
|
32
|
+
"typescript": "^5.8.3"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@aws-sdk/client-dynamodb": "^3.821.0",
|
|
36
|
+
"@aws-sdk/client-ssm": "^3.939.0",
|
|
37
|
+
"@aws-sdk/lib-dynamodb": "^3.821.0",
|
|
38
|
+
"aws-sdk-client-mock": "^4.1.0",
|
|
39
|
+
"date-fns": "^4.1.0",
|
|
40
|
+
"pino": "^10.1.0",
|
|
41
|
+
"ts-node": "^10.9.2",
|
|
42
|
+
"uuid": "^11.0.2"
|
|
43
|
+
}
|
|
44
|
+
}
|