@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.
Files changed (92) hide show
  1. package/dist/accounts/mutations.js +9 -0
  2. package/dist/analytics/report.d.ts +1 -1
  3. package/dist/config/defaults/logs.d.ts +4 -0
  4. package/dist/config/defaults/logs.js +5 -0
  5. package/dist/config/index.d.ts +3 -328
  6. package/dist/db/explorer/index.d.ts +1 -1
  7. package/dist/db/explorer/index.js +1 -1
  8. package/dist/db/pg/filters/posts.js +1 -1
  9. package/dist/db/pg/map/registry.js +3 -2
  10. package/dist/groups/finders.d.ts +2 -2
  11. package/dist/groups/helpers.d.ts +6 -6
  12. package/dist/groups/mapping.d.ts +4 -4
  13. package/dist/jams/export.d.ts +2 -0
  14. package/dist/jams/export.js +5 -0
  15. package/dist/jams/finders.d.ts +1 -0
  16. package/dist/jams/finders.js +1 -0
  17. package/dist/jams/health.d.ts +23 -0
  18. package/dist/jams/health.js +79 -7
  19. package/dist/jams/helpers.d.ts +2 -2
  20. package/dist/jams/index.d.ts +1 -1
  21. package/dist/jams/index.js +10 -3
  22. package/dist/jams/livekit.d.ts +2 -2
  23. package/dist/jams/mapping.d.ts +10 -10
  24. package/dist/jams/mutations.d.ts +2 -2
  25. package/dist/jams/token.js +6 -2
  26. package/dist/jams/waitingRoom.js +3 -1
  27. package/dist/log/index.d.ts +1 -0
  28. package/dist/log/index.js +1 -0
  29. package/dist/log/retention.d.ts +9 -0
  30. package/dist/log/retention.js +83 -0
  31. package/dist/log/retentionJobs.d.ts +17 -0
  32. package/dist/log/retentionJobs.js +50 -0
  33. package/dist/media/garbageCollection.d.ts +109 -0
  34. package/dist/media/garbageCollection.js +603 -0
  35. package/dist/media/garbageCollectionJobs.d.ts +14 -0
  36. package/dist/media/garbageCollectionJobs.js +55 -0
  37. package/dist/media/index.d.ts +2 -0
  38. package/dist/media/index.js +91 -12
  39. package/dist/media/streaming.d.ts +2 -0
  40. package/dist/media/streaming.js +8 -0
  41. package/dist/mediaAttachments/mapping.d.ts +1 -1
  42. package/dist/notifications/defaultNotifications/index.js +2 -0
  43. package/dist/notifications/defaultNotifications/jamModerator/index.js +25 -16
  44. package/dist/notifications/defaultNotifications/jamModerator/recipients.d.ts +2 -0
  45. package/dist/notifications/defaultNotifications/jamModerator/recipients.js +5 -0
  46. package/dist/notifications/defaultNotifications/jamStarted/index.d.ts +1 -0
  47. package/dist/notifications/defaultNotifications/jamStarted/index.js +61 -13
  48. package/dist/notifications/defaultNotifications/newGroupPost/index.js +3 -3
  49. package/dist/notifications/defaultNotifications/newGroupPost/recipients.d.ts +5 -0
  50. package/dist/notifications/defaultNotifications/newGroupPost/recipients.js +23 -0
  51. package/dist/notifications/defaultNotifications/waitlistOffer/index.d.ts +24 -0
  52. package/dist/notifications/defaultNotifications/waitlistOffer/index.js +40 -0
  53. package/dist/notifications/eventIcsAttachment.d.ts +6 -0
  54. package/dist/notifications/eventIcsAttachment.js +32 -0
  55. package/dist/notifications/helpers.d.ts +11 -1
  56. package/dist/notifications/helpers.js +26 -0
  57. package/dist/notifications/index.d.ts +1 -1
  58. package/dist/notifications/index.js +1 -1
  59. package/dist/notifications/jobs.js +6 -0
  60. package/dist/notifications/mutations.js +9 -1
  61. package/dist/plugins/pluginAuth.js +1 -0
  62. package/dist/posts/activity.d.ts +1 -1
  63. package/dist/posts/activity.js +1 -1
  64. package/dist/posts/conversationQueries.d.ts +31 -0
  65. package/dist/posts/conversationQueries.js +150 -24
  66. package/dist/posts/eventAgenda.js +4 -2
  67. package/dist/posts/finders.d.ts +15 -6
  68. package/dist/posts/finders.js +23 -3
  69. package/dist/posts/helpers/index.d.ts +34 -26
  70. package/dist/posts/helpers/index.js +6 -0
  71. package/dist/posts/index.d.ts +3 -1
  72. package/dist/posts/index.js +3 -1
  73. package/dist/posts/mapping.d.ts +112 -98
  74. package/dist/posts/mutations.d.ts +24 -18
  75. package/dist/posts/mutations.js +222 -72
  76. package/dist/posts/rsvpExport.d.ts +47 -0
  77. package/dist/posts/rsvpExport.js +178 -0
  78. package/dist/posts/unseenCounts.d.ts +6 -0
  79. package/dist/posts/unseenCounts.js +51 -1
  80. package/dist/posts/waitlist.d.ts +13 -0
  81. package/dist/posts/waitlist.js +75 -0
  82. package/dist/posts/waitlistOfferJobs.d.ts +10 -0
  83. package/dist/posts/waitlistOfferJobs.js +91 -0
  84. package/dist/profileSettings/mapping.d.ts +1 -0
  85. package/dist/profiles/index.js +6 -1
  86. package/dist/profiles/mapping.d.ts +10 -10
  87. package/dist/reports/mapping.d.ts +1 -1
  88. package/dist/server/index.d.ts +1 -0
  89. package/dist/stats/mapping.d.ts +7 -6
  90. package/dist/stripe/connection.js +1 -1
  91. package/dist/stripe/helpers.js +7 -3
  92. package/package.json +11 -10
@@ -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 (e) {
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.35",
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.3.1",
40
+ "@openpeepshq/common": "0.4.0",
41
41
  "@openpeepshq/fetch-client": "^0.2.1",
42
- "@openpeepshq/i18n": "^0.1.12",
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.19.1",
68
- "@typescript-eslint/parser": "^8.19.1",
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": "^9.17.0",
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": "^5.7.2",
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": "prettier --check . && ESLINT_USE_FLAT_CONFIG=false eslint .",
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",