@hexclave/shared 1.0.18 → 1.0.19
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/ai/unified-prompts/reminders.js +10 -7
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +2 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +238 -10
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt.js +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -1
- package/dist/apps/apps-config.d.ts +7 -3
- package/dist/apps/apps-config.d.ts.map +1 -1
- package/dist/apps/apps-config.js +12 -4
- package/dist/apps/apps-config.js.map +1 -1
- package/dist/config/schema.d.ts +217 -217
- package/dist/esm/ai/unified-prompts/reminders.js +10 -7
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +2 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +238 -11
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt.js +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -1
- package/dist/esm/apps/apps-config.d.ts +7 -3
- package/dist/esm/apps/apps-config.d.ts.map +1 -1
- package/dist/esm/apps/apps-config.js +12 -5
- package/dist/esm/apps/apps-config.js.map +1 -1
- package/dist/esm/config/schema.d.ts +217 -217
- package/dist/esm/interface/admin-metrics.d.ts +15 -15
- package/dist/esm/interface/conversations.d.ts +12 -12
- package/dist/esm/interface/crud/current-user.d.ts +10 -10
- package/dist/esm/interface/crud/email-outbox.d.ts +146 -146
- package/dist/esm/interface/crud/products.d.ts +16 -16
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +6 -6
- package/dist/esm/interface/crud/projects.d.ts +35 -35
- package/dist/esm/interface/crud/team-member-profiles.d.ts +20 -20
- package/dist/esm/interface/crud/transactions.d.ts +21 -21
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +16 -16
- package/dist/esm/interface/webhooks.d.ts +4 -4
- package/dist/esm/known-errors.d.ts +5 -5
- package/dist/esm/schema-fields.d.ts +5 -5
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/interface/admin-metrics.d.ts +15 -15
- package/dist/interface/conversations.d.ts +12 -12
- package/dist/interface/crud/current-user.d.ts +10 -10
- package/dist/interface/crud/email-outbox.d.ts +146 -146
- package/dist/interface/crud/products.d.ts +16 -16
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +6 -6
- package/dist/interface/crud/projects.d.ts +35 -35
- package/dist/interface/crud/team-member-profiles.d.ts +20 -20
- package/dist/interface/crud/transactions.d.ts +21 -21
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +16 -16
- package/dist/interface/webhooks.d.ts +4 -4
- package/dist/known-errors.d.ts +5 -5
- package/dist/schema-fields.d.ts +5 -5
- package/dist/sessions.d.ts +7 -7
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +10 -7
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +244 -10
- package/src/ai/unified-prompts/skill-site-prompt.ts +1 -1
- package/src/apps/apps-config.ts +13 -2
package/src/apps/apps-config.ts
CHANGED
|
@@ -38,11 +38,14 @@ export const ALL_APP_TAGS = {
|
|
|
38
38
|
},
|
|
39
39
|
} as const satisfies Record<string, AppTag>;
|
|
40
40
|
|
|
41
|
+
type ParentAppId = "authentication" | "analytics";
|
|
42
|
+
|
|
41
43
|
type App = {
|
|
42
44
|
displayName: string,
|
|
43
45
|
subtitle: string,
|
|
44
46
|
tags: (keyof typeof ALL_APP_TAGS)[],
|
|
45
47
|
stage: "alpha" | "beta" | "stable",
|
|
48
|
+
parentAppId?: ParentAppId,
|
|
46
49
|
};
|
|
47
50
|
|
|
48
51
|
export type AppId = keyof typeof ALL_APPS;
|
|
@@ -59,6 +62,7 @@ export const ALL_APPS = {
|
|
|
59
62
|
subtitle: "Protect your project from fraud and abuse",
|
|
60
63
|
tags: ["auth", "security"],
|
|
61
64
|
stage: "stable",
|
|
65
|
+
parentAppId: "authentication",
|
|
62
66
|
},
|
|
63
67
|
"onboarding": {
|
|
64
68
|
displayName: "Onboarding",
|
|
@@ -88,7 +92,7 @@ export const ALL_APPS = {
|
|
|
88
92
|
displayName: "Payments",
|
|
89
93
|
subtitle: "Payment processing and subscription management",
|
|
90
94
|
tags: ["operations", "gtm"],
|
|
91
|
-
stage: "
|
|
95
|
+
stage: "stable",
|
|
92
96
|
},
|
|
93
97
|
"emails": {
|
|
94
98
|
displayName: "Emails",
|
|
@@ -172,12 +176,19 @@ export const ALL_APPS = {
|
|
|
172
176
|
displayName: "Clickmaps",
|
|
173
177
|
subtitle: "Visualize where users click across your app",
|
|
174
178
|
tags: ["developers", "operations"],
|
|
175
|
-
stage: "
|
|
179
|
+
stage: "stable",
|
|
180
|
+
parentAppId: "analytics",
|
|
176
181
|
},
|
|
177
182
|
"session-replays": {
|
|
178
183
|
displayName: "Session Replays",
|
|
179
184
|
subtitle: "Watch real user sessions to understand how people use your app",
|
|
180
185
|
tags: ["developers", "operations"],
|
|
181
186
|
stage: "stable",
|
|
187
|
+
parentAppId: "analytics",
|
|
182
188
|
},
|
|
183
189
|
} as const satisfies Record<string, App>;
|
|
190
|
+
|
|
191
|
+
export function getParentAppId(appId: AppId): AppId | null {
|
|
192
|
+
const app = ALL_APPS[appId];
|
|
193
|
+
return "parentAppId" in app ? app.parentAppId : null;
|
|
194
|
+
}
|