@openpeepshq/core 0.1.35 → 0.2.1
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/accounts/mutations.js +9 -0
- package/dist/analytics/report.d.ts +1 -1
- package/dist/config/defaults/logs.d.ts +4 -0
- package/dist/config/defaults/logs.js +5 -0
- package/dist/config/index.d.ts +3 -328
- package/dist/db/explorer/index.d.ts +1 -1
- package/dist/db/explorer/index.js +1 -1
- package/dist/db/pg/filters/posts.js +1 -1
- package/dist/db/pg/map/registry.js +3 -2
- package/dist/groups/finders.d.ts +2 -2
- package/dist/groups/helpers.d.ts +6 -6
- package/dist/groups/mapping.d.ts +4 -4
- package/dist/jams/export.d.ts +2 -0
- package/dist/jams/export.js +5 -0
- package/dist/jams/finders.d.ts +1 -0
- package/dist/jams/finders.js +1 -0
- package/dist/jams/health.d.ts +23 -0
- package/dist/jams/health.js +79 -7
- package/dist/jams/helpers.d.ts +2 -2
- package/dist/jams/index.d.ts +1 -1
- package/dist/jams/index.js +10 -3
- package/dist/jams/livekit.d.ts +2 -2
- package/dist/jams/mapping.d.ts +10 -10
- package/dist/jams/mutations.d.ts +2 -2
- package/dist/jams/token.js +6 -2
- package/dist/jams/waitingRoom.js +3 -1
- package/dist/log/index.d.ts +1 -0
- package/dist/log/index.js +1 -0
- package/dist/log/retention.d.ts +9 -0
- package/dist/log/retention.js +83 -0
- package/dist/log/retentionJobs.d.ts +17 -0
- package/dist/log/retentionJobs.js +50 -0
- package/dist/media/garbageCollection.d.ts +109 -0
- package/dist/media/garbageCollection.js +603 -0
- package/dist/media/garbageCollectionJobs.d.ts +14 -0
- package/dist/media/garbageCollectionJobs.js +55 -0
- package/dist/media/index.d.ts +2 -0
- package/dist/media/index.js +91 -12
- package/dist/media/streaming.d.ts +2 -0
- package/dist/media/streaming.js +8 -0
- package/dist/mediaAttachments/mapping.d.ts +1 -1
- package/dist/notifications/defaultNotifications/index.js +2 -0
- package/dist/notifications/defaultNotifications/jamModerator/index.js +25 -16
- package/dist/notifications/defaultNotifications/jamModerator/recipients.d.ts +2 -0
- package/dist/notifications/defaultNotifications/jamModerator/recipients.js +5 -0
- package/dist/notifications/defaultNotifications/jamStarted/index.d.ts +1 -0
- package/dist/notifications/defaultNotifications/jamStarted/index.js +61 -13
- package/dist/notifications/defaultNotifications/newGroupPost/index.js +3 -3
- package/dist/notifications/defaultNotifications/newGroupPost/recipients.d.ts +5 -0
- package/dist/notifications/defaultNotifications/newGroupPost/recipients.js +23 -0
- package/dist/notifications/defaultNotifications/waitlistOffer/index.d.ts +24 -0
- package/dist/notifications/defaultNotifications/waitlistOffer/index.js +40 -0
- package/dist/notifications/eventIcsAttachment.d.ts +6 -0
- package/dist/notifications/eventIcsAttachment.js +32 -0
- package/dist/notifications/helpers.d.ts +11 -1
- package/dist/notifications/helpers.js +26 -0
- package/dist/notifications/index.d.ts +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/notifications/jobs.js +6 -0
- package/dist/notifications/mutations.js +9 -1
- package/dist/plugins/pluginAuth.js +1 -0
- package/dist/posts/activity.d.ts +1 -1
- package/dist/posts/activity.js +1 -1
- package/dist/posts/conversationQueries.d.ts +31 -0
- package/dist/posts/conversationQueries.js +150 -24
- package/dist/posts/eventAgenda.js +4 -2
- package/dist/posts/finders.d.ts +15 -6
- package/dist/posts/finders.js +23 -3
- package/dist/posts/helpers/index.d.ts +34 -26
- package/dist/posts/helpers/index.js +6 -0
- package/dist/posts/index.d.ts +3 -1
- package/dist/posts/index.js +3 -1
- package/dist/posts/mapping.d.ts +112 -98
- package/dist/posts/mutations.d.ts +24 -18
- package/dist/posts/mutations.js +222 -72
- package/dist/posts/rsvpExport.d.ts +47 -0
- package/dist/posts/rsvpExport.js +178 -0
- package/dist/posts/unseenCounts.d.ts +6 -0
- package/dist/posts/unseenCounts.js +51 -1
- package/dist/posts/waitlist.d.ts +13 -0
- package/dist/posts/waitlist.js +75 -0
- package/dist/posts/waitlistOfferJobs.d.ts +10 -0
- package/dist/posts/waitlistOfferJobs.js +91 -0
- package/dist/profileSettings/mapping.d.ts +1 -0
- package/dist/profiles/index.js +6 -1
- package/dist/profiles/mapping.d.ts +10 -10
- package/dist/reports/mapping.d.ts +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/stats/mapping.d.ts +7 -6
- package/dist/stripe/connection.js +1 -1
- package/dist/stripe/helpers.js +7 -3
- package/package.json +11 -10
package/dist/stripe/helpers.js
CHANGED
|
@@ -73,7 +73,7 @@ export const testStripeCredentials = async (data) => {
|
|
|
73
73
|
}
|
|
74
74
|
return { success: true, key: 'configuration.server.stripe.success.test' };
|
|
75
75
|
}
|
|
76
|
-
catch
|
|
76
|
+
catch {
|
|
77
77
|
return { success: false, key: 'configuration.server.stripe.errors.failed' };
|
|
78
78
|
}
|
|
79
79
|
};
|
|
@@ -89,7 +89,9 @@ export const createStripeCustomerPortal = async (stripeId) => {
|
|
|
89
89
|
}));
|
|
90
90
|
return session.url;
|
|
91
91
|
}
|
|
92
|
-
catch {
|
|
92
|
+
catch {
|
|
93
|
+
// swallowed: caller gets undefined
|
|
94
|
+
}
|
|
93
95
|
};
|
|
94
96
|
export const createStripeCustomer = async (profile, account) => {
|
|
95
97
|
const profileSettings = await findProfileSettings(profile.id);
|
|
@@ -202,5 +204,7 @@ export const createStripeCheckoutUrl = async (profile, account) => {
|
|
|
202
204
|
}))
|
|
203
205
|
.then((session) => session.url ?? undefined);
|
|
204
206
|
}
|
|
205
|
-
catch {
|
|
207
|
+
catch {
|
|
208
|
+
// swallowed: caller gets undefined
|
|
209
|
+
}
|
|
206
210
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpeepshq/core",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"dependencies": {
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"type-fest": "^4.31.0",
|
|
38
38
|
"uuidv7": "^1.0.2",
|
|
39
39
|
"web-push": "^3.6.7",
|
|
40
|
-
"@openpeepshq/common": "0.
|
|
40
|
+
"@openpeepshq/common": "0.4.0",
|
|
41
41
|
"@openpeepshq/fetch-client": "^0.2.1",
|
|
42
|
-
"@openpeepshq/i18n": "^0.1
|
|
42
|
+
"@openpeepshq/i18n": "^0.2.1",
|
|
43
43
|
"@openpeepshq/geocoder": "^0.1.2"
|
|
44
44
|
},
|
|
45
45
|
"main": "dist/index.js",
|
|
@@ -64,22 +64,23 @@
|
|
|
64
64
|
"@types/pg": "^8.15.4",
|
|
65
65
|
"@types/safe-json-stringify": "^1.1.5",
|
|
66
66
|
"@types/web-push": "^3.6.4",
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
68
|
-
"@typescript-eslint/parser": "^8.
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.72.0",
|
|
68
|
+
"@typescript-eslint/parser": "^8.72.0",
|
|
69
69
|
"concurrently": "^9.1.2",
|
|
70
70
|
"drizzle-kit": "^0.31.1",
|
|
71
|
-
"eslint": "^
|
|
71
|
+
"eslint": "^10.1.0",
|
|
72
72
|
"eslint-config-prettier": "^9.1.0",
|
|
73
73
|
"google-auth-library": "^10.7.0",
|
|
74
74
|
"i18next": "^24.2.3",
|
|
75
75
|
"prettier": "^3.4.2",
|
|
76
76
|
"tsc-alias": "^1.8.10",
|
|
77
|
-
"typescript": "^
|
|
78
|
-
"vitest": "^2.1.8"
|
|
77
|
+
"typescript": "^6.0.2",
|
|
78
|
+
"vitest": "^2.1.8",
|
|
79
|
+
"@eslint/js": "^9.17.0"
|
|
79
80
|
},
|
|
80
81
|
"scripts": {
|
|
81
|
-
"lint": "
|
|
82
|
-
"format": "prettier --write .",
|
|
82
|
+
"lint": "eslint .",
|
|
83
|
+
"format": "prettier --write --ignore-path ../../.prettierignore .",
|
|
83
84
|
"test": "vitest run",
|
|
84
85
|
"clean": "rm -rf tsconfig.tsbuildinfo dist",
|
|
85
86
|
"build": "tsc && tsc-alias && rm -rf dist/db/pg/sql && cp -r src/db/pg/sql dist/db/pg/sql",
|