@amohamud23/notihub 1.1.53 → 1.1.55
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 +3 -3
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/package.json +42 -42
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
|
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
DocumentNotFoundException: () => DocumentNotFoundException,
|
|
34
34
|
ErrorCode: () => errorcodes_exports,
|
|
35
35
|
MongooseClient: () => MongooseClient_default,
|
|
@@ -41,7 +41,7 @@ __export(src_exports, {
|
|
|
41
41
|
handleError: () => handleError,
|
|
42
42
|
handleSuccess: () => handleSuccess
|
|
43
43
|
});
|
|
44
|
-
module.exports = __toCommonJS(
|
|
44
|
+
module.exports = __toCommonJS(index_exports);
|
|
45
45
|
|
|
46
46
|
// src/util/index.ts
|
|
47
47
|
function getDate(dateStr) {
|
package/dist/index.d.cts
CHANGED
|
@@ -70,13 +70,18 @@ type INotiHubCustomer = {
|
|
|
70
70
|
type INotiHubCustomerMetadata = {
|
|
71
71
|
id: string;
|
|
72
72
|
customerId: string;
|
|
73
|
-
paymentState: "ACTIVE" | "INACTIVE";
|
|
73
|
+
paymentState: "ACTIVE" | "INACTIVE" | "TRIAL";
|
|
74
74
|
emailState: "VERIFIED" | "UNVERIFIED";
|
|
75
75
|
isOnboarded: boolean;
|
|
76
76
|
notiLimit: number;
|
|
77
77
|
companyName: string;
|
|
78
78
|
phone: string;
|
|
79
79
|
subcriptionType: "MONTHLY" | "ANNUAL";
|
|
80
|
+
stripeDetails: {
|
|
81
|
+
stripeCustomerId: string;
|
|
82
|
+
stripeSubscriptionId: string;
|
|
83
|
+
status: string;
|
|
84
|
+
};
|
|
80
85
|
website: string;
|
|
81
86
|
createdAt: string;
|
|
82
87
|
updatedAt: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -70,13 +70,18 @@ type INotiHubCustomer = {
|
|
|
70
70
|
type INotiHubCustomerMetadata = {
|
|
71
71
|
id: string;
|
|
72
72
|
customerId: string;
|
|
73
|
-
paymentState: "ACTIVE" | "INACTIVE";
|
|
73
|
+
paymentState: "ACTIVE" | "INACTIVE" | "TRIAL";
|
|
74
74
|
emailState: "VERIFIED" | "UNVERIFIED";
|
|
75
75
|
isOnboarded: boolean;
|
|
76
76
|
notiLimit: number;
|
|
77
77
|
companyName: string;
|
|
78
78
|
phone: string;
|
|
79
79
|
subcriptionType: "MONTHLY" | "ANNUAL";
|
|
80
|
+
stripeDetails: {
|
|
81
|
+
stripeCustomerId: string;
|
|
82
|
+
stripeSubscriptionId: string;
|
|
83
|
+
status: string;
|
|
84
|
+
};
|
|
80
85
|
website: string;
|
|
81
86
|
createdAt: string;
|
|
82
87
|
updatedAt: string;
|
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
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
|
-
"ts-jest": "^29.3.4",
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"@aws-sdk/
|
|
35
|
-
"aws-sdk-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"uuid": "^11.0.2"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@amohamud23/notihub",
|
|
3
|
+
"version": "1.1.55",
|
|
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
|
+
"ts-jest": "^29.3.4",
|
|
30
|
+
"tsup": "^8.5.1",
|
|
31
|
+
"typescript": "^5.8.3"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@aws-sdk/client-dynamodb": "^3.821.0",
|
|
35
|
+
"@aws-sdk/lib-dynamodb": "^3.821.0",
|
|
36
|
+
"aws-sdk-client-mock": "^4.1.0",
|
|
37
|
+
"date-fns": "^4.1.0",
|
|
38
|
+
"mongoose": "^8.7.2",
|
|
39
|
+
"ts-node": "^10.9.2",
|
|
40
|
+
"uuid": "^11.0.2"
|
|
41
|
+
}
|
|
42
|
+
}
|