@carlonicora/nextjs-jsonapi 1.57.1 → 1.58.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/{AuthComponent-IqFWLNIU.d.ts → AuthComponent-B4rNZRYE.d.ts} +4 -1
- package/dist/{AuthComponent-CK9aRRW2.d.mts → AuthComponent-nzabiz68.d.mts} +4 -1
- package/dist/{BlockNoteEditor-7TXNOVKN.mjs → BlockNoteEditor-I7N4N6MZ.mjs} +4 -4
- package/dist/{BlockNoteEditor-XKW6GQ7Z.js → BlockNoteEditor-LPMGYNE7.js} +14 -14
- package/dist/{BlockNoteEditor-XKW6GQ7Z.js.map → BlockNoteEditor-LPMGYNE7.js.map} +1 -1
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-4J2JLZXB.js → chunk-74TRO667.js} +4153 -4127
- package/dist/chunk-74TRO667.js.map +1 -0
- package/dist/{chunk-UJBUJALX.js → chunk-BQSMP4NU.js} +11 -11
- package/dist/{chunk-UJBUJALX.js.map → chunk-BQSMP4NU.js.map} +1 -1
- package/dist/{chunk-FE26PIZK.mjs → chunk-HRG4EAOG.mjs} +2 -2
- package/dist/{chunk-QOLVON35.js → chunk-NAST4OSM.js} +77 -60
- package/dist/chunk-NAST4OSM.js.map +1 -0
- package/dist/{chunk-YRLM4PNR.mjs → chunk-OAJFQZXY.mjs} +6554 -6528
- package/dist/chunk-OAJFQZXY.mjs.map +1 -0
- package/dist/{chunk-J2PYGXVD.mjs → chunk-YHNDD34Z.mjs} +18 -1
- package/dist/chunk-YHNDD34Z.mjs.map +1 -0
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +17 -3
- package/dist/components/index.d.ts +17 -3
- package/dist/components/index.js +10 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +10 -4
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +4 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +3 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/EntityAvatar.tsx +23 -0
- package/src/components/TableCellAvatar.tsx +16 -0
- package/src/components/index.ts +3 -0
- package/src/utils/getInitials.ts +16 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-4J2JLZXB.js.map +0 -1
- package/dist/chunk-J2PYGXVD.mjs.map +0 -1
- package/dist/chunk-QOLVON35.js.map +0 -1
- package/dist/chunk-YRLM4PNR.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-7TXNOVKN.mjs.map → BlockNoteEditor-I7N4N6MZ.mjs.map} +0 -0
- /package/dist/{chunk-FE26PIZK.mjs.map → chunk-HRG4EAOG.mjs.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkNAST4OSMjs = require('./chunk-NAST4OSM.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunk4MN547K7js = require('./chunk-4MN547K7.js');
|
|
@@ -190,38 +190,38 @@ var COMPANY_ADMINISTRATOR_ROLE_ID = "2e1eee00-6cba-4506-9059-ccd24e4ea5b0";
|
|
|
190
190
|
var ACTION_TYPES = ["read", "create", "update", "delete"];
|
|
191
191
|
|
|
192
192
|
// src/features/rbac/data/RbacService.ts
|
|
193
|
-
var RbacService = class extends
|
|
193
|
+
var RbacService = class extends _chunkNAST4OSMjs.AbstractService {
|
|
194
194
|
static {
|
|
195
195
|
_chunk7QVYU63Ejs.__name.call(void 0, this, "RbacService");
|
|
196
196
|
}
|
|
197
197
|
static async getFeatures() {
|
|
198
|
-
const endpoint = new (0,
|
|
198
|
+
const endpoint = new (0, _chunkNAST4OSMjs.EndpointCreator)({ endpoint: _chunkNAST4OSMjs.Modules.Feature }).addAdditionalParam("fetchAll", "true");
|
|
199
199
|
return this.callApi({
|
|
200
|
-
type:
|
|
200
|
+
type: _chunkNAST4OSMjs.Modules.Feature,
|
|
201
201
|
method: "GET" /* GET */,
|
|
202
202
|
endpoint: endpoint.generate()
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
static async getRoles() {
|
|
206
|
-
const endpoint = new (0,
|
|
206
|
+
const endpoint = new (0, _chunkNAST4OSMjs.EndpointCreator)({ endpoint: _chunkNAST4OSMjs.Modules.Role }).addAdditionalParam("fetchAll", "true");
|
|
207
207
|
return this.callApi({
|
|
208
|
-
type:
|
|
208
|
+
type: _chunkNAST4OSMjs.Modules.Role,
|
|
209
209
|
method: "GET" /* GET */,
|
|
210
210
|
endpoint: endpoint.generate()
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
static async getPermissionMappings() {
|
|
214
|
-
const endpoint = new (0,
|
|
214
|
+
const endpoint = new (0, _chunkNAST4OSMjs.EndpointCreator)({ endpoint: _chunkNAST4OSMjs.Modules.PermissionMapping });
|
|
215
215
|
return this.callApi({
|
|
216
|
-
type:
|
|
216
|
+
type: _chunkNAST4OSMjs.Modules.PermissionMapping,
|
|
217
217
|
method: "GET" /* GET */,
|
|
218
218
|
endpoint: endpoint.generate()
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
static async getModuleRelationshipPaths() {
|
|
222
|
-
const endpoint = new (0,
|
|
222
|
+
const endpoint = new (0, _chunkNAST4OSMjs.EndpointCreator)({ endpoint: _chunkNAST4OSMjs.Modules.ModulePaths });
|
|
223
223
|
return this.callApi({
|
|
224
|
-
type:
|
|
224
|
+
type: _chunkNAST4OSMjs.Modules.ModulePaths,
|
|
225
225
|
method: "GET" /* GET */,
|
|
226
226
|
endpoint: endpoint.generate()
|
|
227
227
|
});
|
|
@@ -259,4 +259,4 @@ var RbacService = class extends _chunkQOLVON35js.AbstractService {
|
|
|
259
259
|
|
|
260
260
|
|
|
261
261
|
exports.configureJsonApi = configureJsonApi; exports.configureClientConfig = configureClientConfig; exports.getApiUrl = getApiUrl; exports.getAppUrl = getAppUrl; exports.getTrackablePages = getTrackablePages; exports.getStripePublishableKey = getStripePublishableKey; exports.configureI18n = configureI18n; exports.useI18nRouter = useI18nRouter; exports.useI18nTranslations = useI18nTranslations; exports.getI18nLink = getI18nLink; exports.useI18nLocale = useI18nLocale; exports.useI18nDateFnsLocale = useI18nDateFnsLocale; exports.configureLogin = configureLogin; exports.isDiscordAuthEnabled = isDiscordAuthEnabled; exports.isGoogleAuthEnabled = isGoogleAuthEnabled; exports.isInternalAuthEnabled = isInternalAuthEnabled; exports.isRegistrationAllowed = isRegistrationAllowed; exports.getRegistrationMode = getRegistrationMode; exports.configureRoles = configureRoles; exports.getRoleId = getRoleId; exports.isRolesConfigured = isRolesConfigured; exports.configureWaitlist = configureWaitlist; exports.getWaitlistConfig = getWaitlistConfig; exports.configureReferral = configureReferral; exports.getReferralConfig = getReferralConfig; exports.isReferralEnabled = isReferralEnabled; exports.COMPANY_ADMINISTRATOR_ROLE_ID = COMPANY_ADMINISTRATOR_ROLE_ID; exports.ACTION_TYPES = ACTION_TYPES; exports.RbacService = RbacService;
|
|
262
|
-
//# sourceMappingURL=chunk-
|
|
262
|
+
//# sourceMappingURL=chunk-BQSMP4NU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/chunk-UJBUJALX.js","../src/client/config.ts","../src/i18n/config.ts","../src/login/config.ts","../src/roles/config.ts","../src/features/waitlist/config/waitlist.config.ts","../src/features/referral/config.ts","../src/features/rbac/data/RbacTypes.ts","../src/features/rbac/data/RbacService.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AAC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ModuleWithPermissions } from \"../permissions/types\";\nimport { setBootstrapper } from \"../core/registry/bootstrapStore\";\n\n// Config storage for client-side contexts\nlet _clientConfig: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n bootstrapper?: () => void;\n additionalHeaders?: Record<string, string>;\n stripePublishableKey?: string;\n} | null = null;\n\n/**\n * Configure the JSON:API client. This is the main configuration function.\n * This is typically called during app initialization.\n */\nexport function configureJsonApi(config: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n bootstrapper?: () => void;\n additionalHeaders?: Record<string, string>;\n stripePublishableKey?: string;\n}): void {\n _clientConfig = config;\n // Register and call bootstrapper to register all modules\n if (config.bootstrapper) {\n setBootstrapper(config.bootstrapper);\n config.bootstrapper();\n }\n}\n\n/**\n * Configure the client config. This is typically called during app initialization.\n * @deprecated Use configureJsonApi instead\n */\nexport function configureClientConfig(config: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n}): void {\n _clientConfig = config;\n}\n\n/**\n * Get the configured API URL.\n */\nexport function getApiUrl(): string {\n if (_clientConfig?.apiUrl) {\n return _clientConfig.apiUrl;\n }\n if (typeof process !== \"undefined\" && process.env?.NEXT_PUBLIC_API_URL) {\n return process.env.NEXT_PUBLIC_API_URL;\n }\n return \"\";\n}\n\n/**\n * Get the configured app URL.\n */\nexport function getAppUrl(): string {\n if (_clientConfig?.appUrl) {\n return _clientConfig.appUrl;\n }\n if (typeof process !== \"undefined\" && process.env?.NEXT_PUBLIC_APP_URL) {\n return process.env.NEXT_PUBLIC_APP_URL;\n }\n if (typeof window !== \"undefined\") {\n return window.location.origin;\n }\n return \"\";\n}\n\n/**\n * Get the configured trackable pages.\n */\nexport function getTrackablePages(): ModuleWithPermissions[] {\n return _clientConfig?.trackablePages ?? [];\n}\n\n/**\n * Get the configured Stripe publishable key.\n */\nexport function getStripePublishableKey(): string | undefined {\n return _clientConfig?.stripePublishableKey;\n}\n","import { ComponentType } from \"react\";\n\n// Types for injected hooks\nexport interface I18nRouter {\n push: (href: string) => void;\n replace: (href: string) => void;\n back: () => void;\n forward: () => void;\n refresh: () => void;\n prefetch: (href: string) => void;\n}\n\nexport type UseRouterHook = () => I18nRouter;\nexport type UseTranslationsHook = (namespace?: string) => (key: string, values?: Record<string, any>) => string;\nexport type UseLocaleHook = () => string;\n\nexport type UseDateFnsLocaleHook = () => any; // date-fns Locale type\nexport type LinkComponent = ComponentType<{ href: string; children: React.ReactNode; [key: string]: any }>;\n\nexport interface I18nConfig {\n useRouter: UseRouterHook;\n useTranslations: UseTranslationsHook;\n useLocale?: UseLocaleHook;\n useDateFnsLocale?: UseDateFnsLocaleHook;\n Link: LinkComponent;\n usePathname: () => string;\n}\n\n// Private storage\nlet _config: I18nConfig | null = null;\n\n// Configuration function (called by app at startup)\nexport function configureI18n(config: I18nConfig): void {\n _config = config;\n}\n\n// Hooks for library components to use\nexport function useI18nRouter(): I18nRouter {\n if (!_config?.useRouter) {\n throw new Error(\"i18n not configured. Call configureI18n() at app startup.\");\n }\n return _config.useRouter();\n}\n\nexport function useI18nTranslations(namespace?: string): (key: string, values?: Record<string, any>) => string {\n if (!_config?.useTranslations) {\n // Fallback: return key as-is (safe for server/client)\n return (key: string) => key;\n }\n return _config.useTranslations(namespace);\n}\n\nexport function getI18nLink(): LinkComponent {\n if (!_config?.Link) {\n throw new Error(\"i18n not configured. Call configureI18n() at app startup.\");\n }\n return _config.Link;\n}\n\nexport function useI18nLocale(): string {\n if (_config?.useLocale) {\n return _config.useLocale();\n }\n // Fallback to English (safe for server/client)\n return \"en\";\n}\n\nexport function useI18nDateFnsLocale(): any {\n if (_config?.useDateFnsLocale) {\n return _config.useDateFnsLocale();\n }\n // Fallback to undefined (Calendar will use default)\n return undefined;\n}\n","let _useDiscordAuth: boolean = false;\nlet _useGoogleAuth: boolean = false;\nlet _useInternalAuth: boolean = true;\nlet _allowRegistration: boolean = true;\nlet _registrationMode: \"open\" | \"closed\" | \"waitlist\" = \"open\";\n\nexport type RegistrationMode = \"open\" | \"closed\" | \"waitlist\";\n\nexport interface LoginConfig {\n discordClientId?: string;\n googleClientId?: string;\n useInternalAuth?: boolean;\n allowRegistration?: boolean;\n registrationMode?: RegistrationMode;\n}\n\nexport function configureLogin(params: LoginConfig): void {\n _useDiscordAuth = !!params.discordClientId;\n _useGoogleAuth = !!params.googleClientId;\n _useInternalAuth = params.useInternalAuth ?? true;\n _allowRegistration = params.allowRegistration ?? true;\n _registrationMode = params.registrationMode ?? \"open\";\n}\n\nexport function isDiscordAuthEnabled(): boolean {\n return _useDiscordAuth;\n}\n\nexport function isGoogleAuthEnabled(): boolean {\n return _useGoogleAuth;\n}\n\nexport function isInternalAuthEnabled(): boolean {\n return _useInternalAuth;\n}\n\nexport function isRegistrationAllowed(): boolean {\n return _allowRegistration;\n}\n\nexport function getRegistrationMode(): RegistrationMode {\n return _registrationMode;\n}\n","/**\n * Role ID configuration interface\n * Apps provide their role IDs via configureRoles()\n */\nexport interface RoleIdConfig {\n Administrator: string;\n CompanyAdministrator: string;\n [key: string]: string; // Allow additional roles\n}\n\n// Private storage for the injected role IDs\nlet _roleId: RoleIdConfig | null = null;\n\n/**\n * Configure role IDs for the library\n * Call this at app startup to provide role ID constants\n *\n * @example\n * ```typescript\n * import { configureRoles } from \"@carlonicora/nextjs-jsonapi\";\n * import { RoleId } from \"@phlow/shared\";\n *\n * configureRoles(RoleId);\n * ```\n */\nexport function configureRoles(roleId: RoleIdConfig): void {\n _roleId = roleId;\n}\n\n/**\n * Get configured role IDs\n * @throws Error if roles not configured\n */\nexport function getRoleId(): RoleIdConfig {\n if (!_roleId) {\n throw new Error(\"Roles not configured. Call configureRoles() at app startup.\");\n }\n return _roleId;\n}\n\n/**\n * Check if roles have been configured\n */\nexport function isRolesConfigured(): boolean {\n return _roleId !== null;\n}\n","export type QuestionnaireFieldType = \"text\" | \"textarea\" | \"select\" | \"checkbox\";\n\nexport interface QuestionnaireOption {\n value: string;\n label: string;\n description?: string;\n}\n\nexport interface QuestionnaireField {\n id: string;\n type: QuestionnaireFieldType;\n label: string;\n description?: string;\n placeholder?: string;\n required?: boolean;\n options?: QuestionnaireOption[];\n}\n\nexport interface WaitlistConfig {\n questionnaire?: QuestionnaireField[];\n heroTitle?: string;\n heroSubtitle?: string;\n heroDescription?: string;\n benefits?: string[];\n}\n\nlet _waitlistConfig: WaitlistConfig = {};\n\nexport function configureWaitlist(config: WaitlistConfig): void {\n _waitlistConfig = config;\n}\n\nexport function getWaitlistConfig(): WaitlistConfig {\n return _waitlistConfig;\n}\n","/**\n * Configuration interface for frontend referral feature.\n */\nexport interface ReferralConfig {\n /**\n * Whether the referral feature is enabled.\n * When false, components render nothing and hooks return null.\n * @default false\n */\n enabled?: boolean;\n\n /**\n * Name of the cookie used to store referral codes.\n * @default \"referral_code\"\n */\n cookieName?: string;\n\n /**\n * Number of days the referral cookie is valid.\n * @default 30\n */\n cookieDays?: number;\n\n /**\n * Query parameter name for referral code in URL.\n * @default \"ref\"\n */\n urlParamName?: string;\n\n /**\n * Base URL for referral links.\n * @default window.location.origin (client-side only)\n */\n referralUrlBase?: string;\n\n /**\n * Path to append to base URL for referral links.\n * @default \"/\"\n */\n referralPath?: string;\n}\n\n/**\n * Default configuration values\n */\nexport const DEFAULT_REFERRAL_CONFIG: Required<ReferralConfig> = {\n enabled: false,\n cookieName: \"referral_code\",\n cookieDays: 30,\n urlParamName: \"ref\",\n referralUrlBase: \"\",\n referralPath: \"/\",\n};\n\n// Private storage for configuration\nlet _referralConfig: Required<ReferralConfig> = { ...DEFAULT_REFERRAL_CONFIG };\n\n/**\n * Configure referral feature settings.\n * Call this at app startup to enable and configure referral functionality.\n *\n * @example\n * ```typescript\n * import { configureReferral } from \"@carlonicora/nextjs-jsonapi\";\n *\n * configureReferral({\n * enabled: process.env.NEXT_PUBLIC_REFERRAL_ENABLED === 'true',\n * cookieDays: 30,\n * });\n * ```\n */\nexport function configureReferral(config: ReferralConfig): void {\n _referralConfig = { ...DEFAULT_REFERRAL_CONFIG, ...config };\n}\n\n/**\n * Get the current referral configuration.\n * @internal\n */\nexport function getReferralConfig(): Required<ReferralConfig> {\n return _referralConfig;\n}\n\n/**\n * Check if referral feature is enabled.\n */\nexport function isReferralEnabled(): boolean {\n return _referralConfig.enabled;\n}\n","export const COMPANY_ADMINISTRATOR_ROLE_ID = \"2e1eee00-6cba-4506-9059-ccd24e4ea5b0\";\n\nexport type PermissionValue = boolean | string;\n\nexport type ActionType = \"read\" | \"create\" | \"update\" | \"delete\";\n\nexport const ACTION_TYPES: ActionType[] = [\"read\", \"create\", \"update\", \"delete\"];\n\n/** The permissions object shape used by both Module and PermissionMapping entities */\nexport type PermissionsMap = {\n create?: PermissionValue;\n read?: PermissionValue;\n update?: PermissionValue;\n delete?: PermissionValue;\n};\n","import { AbstractService, EndpointCreator, HttpMethod, Modules } from \"../../../core\";\nimport { FeatureInterface } from \"../../feature\";\nimport { RoleInterface } from \"../../role\";\nimport { PermissionMappingInterface } from \"./PermissionMappingInterface\";\nimport { ModulePathsInterface } from \"./ModulePathsInterface\";\n\nexport class RbacService extends AbstractService {\n static async getFeatures(): Promise<FeatureInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: Modules.Feature }).addAdditionalParam(\"fetchAll\", \"true\");\n\n return this.callApi<FeatureInterface[]>({\n type: Modules.Feature,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async getRoles(): Promise<RoleInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: Modules.Role }).addAdditionalParam(\"fetchAll\", \"true\");\n\n return this.callApi<RoleInterface[]>({\n type: Modules.Role,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async getPermissionMappings(): Promise<PermissionMappingInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: Modules.PermissionMapping });\n\n return this.callApi<PermissionMappingInterface[]>({\n type: Modules.PermissionMapping,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async getModuleRelationshipPaths(): Promise<ModulePathsInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: Modules.ModulePaths });\n\n return this.callApi<ModulePathsInterface[]>({\n type: Modules.ModulePaths,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/chunk-BQSMP4NU.js","../src/client/config.ts","../src/i18n/config.ts","../src/login/config.ts","../src/roles/config.ts","../src/features/waitlist/config/waitlist.config.ts","../src/features/referral/config.ts","../src/features/rbac/data/RbacTypes.ts","../src/features/rbac/data/RbacService.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACF,sDAA4B;AAC5B;AACE;AACF,sDAA4B;AAC5B;AACA;ACNA,IAAI,cAAA,EAOO,IAAA;AAMJ,SAAS,gBAAA,CAAiB,MAAA,EAOxB;AACP,EAAA,cAAA,EAAgB,MAAA;AAEhB,EAAA,GAAA,CAAI,MAAA,CAAO,YAAA,EAAc;AACvB,IAAA,8CAAA,MAAgB,CAAO,YAAY,CAAA;AACnC,IAAA,MAAA,CAAO,YAAA,CAAa,CAAA;AAAA,EACtB;AACF;AAdgB,qCAAA,gBAAA,EAAA,kBAAA,CAAA;AAoBT,SAAS,qBAAA,CAAsB,MAAA,EAI7B;AACP,EAAA,cAAA,EAAgB,MAAA;AAClB;AANgB,qCAAA,qBAAA,EAAA,uBAAA,CAAA;AAWT,SAAS,SAAA,CAAA,EAAoB;AAClC,EAAA,GAAA,iBAAI,aAAA,2BAAe,QAAA,EAAQ;AACzB,IAAA,OAAO,aAAA,CAAc,MAAA;AAAA,EACvB;AACA,EAAA,GAAA,CAAI,OAAO,QAAA,IAAY,YAAA,mBAAe,OAAA,qBAAQ,GAAA,6BAAK,qBAAA,EAAqB;AACtE,IAAA,OAAO,OAAA,CAAQ,GAAA,CAAI,mBAAA;AAAA,EACrB;AACA,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AC,CAAA;AAEtE,IAAA,OAAO,IAAA,CAAK,OAAA,CAAgC;AAAA,MAC1C,IAAA,EAAM,wBAAA,CAAQ,WAAA;AAAA,MACd,MAAA,EAAA,eAAA;AAAA,MACA,QAAA,EAAU,QAAA,CAAS,QAAA,CAAS;AAAA,IAC9B,CAAC,CAAA;AAAA,EACH;AACF,CAAA;ARuLA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,8yCAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/chunk-BQSMP4NU.js","sourcesContent":[null,"\"use client\";\n\nimport { ModuleWithPermissions } from \"../permissions/types\";\nimport { setBootstrapper } from \"../core/registry/bootstrapStore\";\n\n// Config storage for client-side contexts\nlet _clientConfig: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n bootstrapper?: () => void;\n additionalHeaders?: Record<string, string>;\n stripePublishableKey?: string;\n} | null = null;\n\n/**\n * Configure the JSON:API client. This is the main configuration function.\n * This is typically called during app initialization.\n */\nexport function configureJsonApi(config: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n bootstrapper?: () => void;\n additionalHeaders?: Record<string, string>;\n stripePublishableKey?: string;\n}): void {\n _clientConfig = config;\n // Register and call bootstrapper to register all modules\n if (config.bootstrapper) {\n setBootstrapper(config.bootstrapper);\n config.bootstrapper();\n }\n}\n\n/**\n * Configure the client config. This is typically called during app initialization.\n * @deprecated Use configureJsonApi instead\n */\nexport function configureClientConfig(config: {\n apiUrl: string;\n appUrl?: string;\n trackablePages?: ModuleWithPermissions[];\n}): void {\n _clientConfig = config;\n}\n\n/**\n * Get the configured API URL.\n */\nexport function getApiUrl(): string {\n if (_clientConfig?.apiUrl) {\n return _clientConfig.apiUrl;\n }\n if (typeof process !== \"undefined\" && process.env?.NEXT_PUBLIC_API_URL) {\n return process.env.NEXT_PUBLIC_API_URL;\n }\n return \"\";\n}\n\n/**\n * Get the configured app URL.\n */\nexport function getAppUrl(): string {\n if (_clientConfig?.appUrl) {\n return _clientConfig.appUrl;\n }\n if (typeof process !== \"undefined\" && process.env?.NEXT_PUBLIC_APP_URL) {\n return process.env.NEXT_PUBLIC_APP_URL;\n }\n if (typeof window !== \"undefined\") {\n return window.location.origin;\n }\n return \"\";\n}\n\n/**\n * Get the configured trackable pages.\n */\nexport function getTrackablePages(): ModuleWithPermissions[] {\n return _clientConfig?.trackablePages ?? [];\n}\n\n/**\n * Get the configured Stripe publishable key.\n */\nexport function getStripePublishableKey(): string | undefined {\n return _clientConfig?.stripePublishableKey;\n}\n","import { ComponentType } from \"react\";\n\n// Types for injected hooks\nexport interface I18nRouter {\n push: (href: string) => void;\n replace: (href: string) => void;\n back: () => void;\n forward: () => void;\n refresh: () => void;\n prefetch: (href: string) => void;\n}\n\nexport type UseRouterHook = () => I18nRouter;\nexport type UseTranslationsHook = (namespace?: string) => (key: string, values?: Record<string, any>) => string;\nexport type UseLocaleHook = () => string;\n\nexport type UseDateFnsLocaleHook = () => any; // date-fns Locale type\nexport type LinkComponent = ComponentType<{ href: string; children: React.ReactNode; [key: string]: any }>;\n\nexport interface I18nConfig {\n useRouter: UseRouterHook;\n useTranslations: UseTranslationsHook;\n useLocale?: UseLocaleHook;\n useDateFnsLocale?: UseDateFnsLocaleHook;\n Link: LinkComponent;\n usePathname: () => string;\n}\n\n// Private storage\nlet _config: I18nConfig | null = null;\n\n// Configuration function (called by app at startup)\nexport function configureI18n(config: I18nConfig): void {\n _config = config;\n}\n\n// Hooks for library components to use\nexport function useI18nRouter(): I18nRouter {\n if (!_config?.useRouter) {\n throw new Error(\"i18n not configured. Call configureI18n() at app startup.\");\n }\n return _config.useRouter();\n}\n\nexport function useI18nTranslations(namespace?: string): (key: string, values?: Record<string, any>) => string {\n if (!_config?.useTranslations) {\n // Fallback: return key as-is (safe for server/client)\n return (key: string) => key;\n }\n return _config.useTranslations(namespace);\n}\n\nexport function getI18nLink(): LinkComponent {\n if (!_config?.Link) {\n throw new Error(\"i18n not configured. Call configureI18n() at app startup.\");\n }\n return _config.Link;\n}\n\nexport function useI18nLocale(): string {\n if (_config?.useLocale) {\n return _config.useLocale();\n }\n // Fallback to English (safe for server/client)\n return \"en\";\n}\n\nexport function useI18nDateFnsLocale(): any {\n if (_config?.useDateFnsLocale) {\n return _config.useDateFnsLocale();\n }\n // Fallback to undefined (Calendar will use default)\n return undefined;\n}\n","let _useDiscordAuth: boolean = false;\nlet _useGoogleAuth: boolean = false;\nlet _useInternalAuth: boolean = true;\nlet _allowRegistration: boolean = true;\nlet _registrationMode: \"open\" | \"closed\" | \"waitlist\" = \"open\";\n\nexport type RegistrationMode = \"open\" | \"closed\" | \"waitlist\";\n\nexport interface LoginConfig {\n discordClientId?: string;\n googleClientId?: string;\n useInternalAuth?: boolean;\n allowRegistration?: boolean;\n registrationMode?: RegistrationMode;\n}\n\nexport function configureLogin(params: LoginConfig): void {\n _useDiscordAuth = !!params.discordClientId;\n _useGoogleAuth = !!params.googleClientId;\n _useInternalAuth = params.useInternalAuth ?? true;\n _allowRegistration = params.allowRegistration ?? true;\n _registrationMode = params.registrationMode ?? \"open\";\n}\n\nexport function isDiscordAuthEnabled(): boolean {\n return _useDiscordAuth;\n}\n\nexport function isGoogleAuthEnabled(): boolean {\n return _useGoogleAuth;\n}\n\nexport function isInternalAuthEnabled(): boolean {\n return _useInternalAuth;\n}\n\nexport function isRegistrationAllowed(): boolean {\n return _allowRegistration;\n}\n\nexport function getRegistrationMode(): RegistrationMode {\n return _registrationMode;\n}\n","/**\n * Role ID configuration interface\n * Apps provide their role IDs via configureRoles()\n */\nexport interface RoleIdConfig {\n Administrator: string;\n CompanyAdministrator: string;\n [key: string]: string; // Allow additional roles\n}\n\n// Private storage for the injected role IDs\nlet _roleId: RoleIdConfig | null = null;\n\n/**\n * Configure role IDs for the library\n * Call this at app startup to provide role ID constants\n *\n * @example\n * ```typescript\n * import { configureRoles } from \"@carlonicora/nextjs-jsonapi\";\n * import { RoleId } from \"@phlow/shared\";\n *\n * configureRoles(RoleId);\n * ```\n */\nexport function configureRoles(roleId: RoleIdConfig): void {\n _roleId = roleId;\n}\n\n/**\n * Get configured role IDs\n * @throws Error if roles not configured\n */\nexport function getRoleId(): RoleIdConfig {\n if (!_roleId) {\n throw new Error(\"Roles not configured. Call configureRoles() at app startup.\");\n }\n return _roleId;\n}\n\n/**\n * Check if roles have been configured\n */\nexport function isRolesConfigured(): boolean {\n return _roleId !== null;\n}\n","export type QuestionnaireFieldType = \"text\" | \"textarea\" | \"select\" | \"checkbox\";\n\nexport interface QuestionnaireOption {\n value: string;\n label: string;\n description?: string;\n}\n\nexport interface QuestionnaireField {\n id: string;\n type: QuestionnaireFieldType;\n label: string;\n description?: string;\n placeholder?: string;\n required?: boolean;\n options?: QuestionnaireOption[];\n}\n\nexport interface WaitlistConfig {\n questionnaire?: QuestionnaireField[];\n heroTitle?: string;\n heroSubtitle?: string;\n heroDescription?: string;\n benefits?: string[];\n}\n\nlet _waitlistConfig: WaitlistConfig = {};\n\nexport function configureWaitlist(config: WaitlistConfig): void {\n _waitlistConfig = config;\n}\n\nexport function getWaitlistConfig(): WaitlistConfig {\n return _waitlistConfig;\n}\n","/**\n * Configuration interface for frontend referral feature.\n */\nexport interface ReferralConfig {\n /**\n * Whether the referral feature is enabled.\n * When false, components render nothing and hooks return null.\n * @default false\n */\n enabled?: boolean;\n\n /**\n * Name of the cookie used to store referral codes.\n * @default \"referral_code\"\n */\n cookieName?: string;\n\n /**\n * Number of days the referral cookie is valid.\n * @default 30\n */\n cookieDays?: number;\n\n /**\n * Query parameter name for referral code in URL.\n * @default \"ref\"\n */\n urlParamName?: string;\n\n /**\n * Base URL for referral links.\n * @default window.location.origin (client-side only)\n */\n referralUrlBase?: string;\n\n /**\n * Path to append to base URL for referral links.\n * @default \"/\"\n */\n referralPath?: string;\n}\n\n/**\n * Default configuration values\n */\nexport const DEFAULT_REFERRAL_CONFIG: Required<ReferralConfig> = {\n enabled: false,\n cookieName: \"referral_code\",\n cookieDays: 30,\n urlParamName: \"ref\",\n referralUrlBase: \"\",\n referralPath: \"/\",\n};\n\n// Private storage for configuration\nlet _referralConfig: Required<ReferralConfig> = { ...DEFAULT_REFERRAL_CONFIG };\n\n/**\n * Configure referral feature settings.\n * Call this at app startup to enable and configure referral functionality.\n *\n * @example\n * ```typescript\n * import { configureReferral } from \"@carlonicora/nextjs-jsonapi\";\n *\n * configureReferral({\n * enabled: process.env.NEXT_PUBLIC_REFERRAL_ENABLED === 'true',\n * cookieDays: 30,\n * });\n * ```\n */\nexport function configureReferral(config: ReferralConfig): void {\n _referralConfig = { ...DEFAULT_REFERRAL_CONFIG, ...config };\n}\n\n/**\n * Get the current referral configuration.\n * @internal\n */\nexport function getReferralConfig(): Required<ReferralConfig> {\n return _referralConfig;\n}\n\n/**\n * Check if referral feature is enabled.\n */\nexport function isReferralEnabled(): boolean {\n return _referralConfig.enabled;\n}\n","export const COMPANY_ADMINISTRATOR_ROLE_ID = \"2e1eee00-6cba-4506-9059-ccd24e4ea5b0\";\n\nexport type PermissionValue = boolean | string;\n\nexport type ActionType = \"read\" | \"create\" | \"update\" | \"delete\";\n\nexport const ACTION_TYPES: ActionType[] = [\"read\", \"create\", \"update\", \"delete\"];\n\n/** The permissions object shape used by both Module and PermissionMapping entities */\nexport type PermissionsMap = {\n create?: PermissionValue;\n read?: PermissionValue;\n update?: PermissionValue;\n delete?: PermissionValue;\n};\n","import { AbstractService, EndpointCreator, HttpMethod, Modules } from \"../../../core\";\nimport { FeatureInterface } from \"../../feature\";\nimport { RoleInterface } from \"../../role\";\nimport { PermissionMappingInterface } from \"./PermissionMappingInterface\";\nimport { ModulePathsInterface } from \"./ModulePathsInterface\";\n\nexport class RbacService extends AbstractService {\n static async getFeatures(): Promise<FeatureInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: Modules.Feature }).addAdditionalParam(\"fetchAll\", \"true\");\n\n return this.callApi<FeatureInterface[]>({\n type: Modules.Feature,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async getRoles(): Promise<RoleInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: Modules.Role }).addAdditionalParam(\"fetchAll\", \"true\");\n\n return this.callApi<RoleInterface[]>({\n type: Modules.Role,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async getPermissionMappings(): Promise<PermissionMappingInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: Modules.PermissionMapping });\n\n return this.callApi<PermissionMappingInterface[]>({\n type: Modules.PermissionMapping,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n\n static async getModuleRelationshipPaths(): Promise<ModulePathsInterface[]> {\n const endpoint = new EndpointCreator({ endpoint: Modules.ModulePaths });\n\n return this.callApi<ModulePathsInterface[]>({\n type: Modules.ModulePaths,\n method: HttpMethod.GET,\n endpoint: endpoint.generate(),\n });\n }\n}\n"]}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
AbstractService,
|
|
3
3
|
EndpointCreator,
|
|
4
4
|
Modules
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YHNDD34Z.mjs";
|
|
6
6
|
import {
|
|
7
7
|
setBootstrapper
|
|
8
8
|
} from "./chunk-BTKJFMFL.mjs";
|
|
@@ -259,4 +259,4 @@ export {
|
|
|
259
259
|
ACTION_TYPES,
|
|
260
260
|
RbacService
|
|
261
261
|
};
|
|
262
|
-
//# sourceMappingURL=chunk-
|
|
262
|
+
//# sourceMappingURL=chunk-HRG4EAOG.mjs.map
|
|
@@ -1238,6 +1238,22 @@ var entityObjectSchema = _zod.z.object({
|
|
|
1238
1238
|
name: _zod.z.string()
|
|
1239
1239
|
});
|
|
1240
1240
|
|
|
1241
|
+
// src/utils/getInitials.ts
|
|
1242
|
+
function getInitials(firstOrName, lastName) {
|
|
1243
|
+
if (lastName !== void 0) {
|
|
1244
|
+
const first = _nullishCoalesce(_optionalChain([firstOrName, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31(), 'optionalAccess', _32 => _32[0]]), () => ( ""));
|
|
1245
|
+
const last = _nullishCoalesce(_optionalChain([lastName, 'optionalAccess', _33 => _33.trim, 'call', _34 => _34(), 'optionalAccess', _35 => _35[0]]), () => ( ""));
|
|
1246
|
+
if (first && last) return (first + last).toUpperCase();
|
|
1247
|
+
return (firstOrName || lastName || "").slice(0, 2).toUpperCase();
|
|
1248
|
+
}
|
|
1249
|
+
const words = firstOrName.trim().split(/\s+/);
|
|
1250
|
+
if (words.length >= 2) {
|
|
1251
|
+
return (words[0][0] + words[1][0]).toUpperCase();
|
|
1252
|
+
}
|
|
1253
|
+
return firstOrName.slice(0, 2).toUpperCase();
|
|
1254
|
+
}
|
|
1255
|
+
_chunk7QVYU63Ejs.__name.call(void 0, getInitials, "getInitials");
|
|
1256
|
+
|
|
1241
1257
|
// src/utils/blocknote-diff.util.ts
|
|
1242
1258
|
var _uuid = require('uuid');
|
|
1243
1259
|
var BlockNoteDiffUtil = (_class2 = class {
|
|
@@ -1831,14 +1847,14 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
1831
1847
|
return diffBlocks.map((block) => {
|
|
1832
1848
|
const updatedBlock = { ...block };
|
|
1833
1849
|
if (updatedBlock.diffId) {
|
|
1834
|
-
updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess',
|
|
1835
|
-
updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess',
|
|
1850
|
+
updatedBlock.accepted = _optionalChain([acceptedChanges, 'optionalAccess', _36 => _36.has, 'call', _37 => _37(updatedBlock.diffId)]) || false;
|
|
1851
|
+
updatedBlock.rejected = _optionalChain([rejectedChanges, 'optionalAccess', _38 => _38.has, 'call', _39 => _39(updatedBlock.diffId)]) || false;
|
|
1836
1852
|
}
|
|
1837
1853
|
if (updatedBlock.wordDiffs) {
|
|
1838
1854
|
updatedBlock.wordDiffs = updatedBlock.wordDiffs.map((wordDiff) => ({
|
|
1839
1855
|
...wordDiff,
|
|
1840
|
-
accepted: _optionalChain([acceptedChanges, 'optionalAccess',
|
|
1841
|
-
rejected: _optionalChain([rejectedChanges, 'optionalAccess',
|
|
1856
|
+
accepted: _optionalChain([acceptedChanges, 'optionalAccess', _40 => _40.has, 'call', _41 => _41(wordDiff.diffId)]) || false,
|
|
1857
|
+
rejected: _optionalChain([rejectedChanges, 'optionalAccess', _42 => _42.has, 'call', _43 => _43(wordDiff.diffId)]) || false
|
|
1842
1858
|
}));
|
|
1843
1859
|
}
|
|
1844
1860
|
if (updatedBlock.children) {
|
|
@@ -1863,7 +1879,7 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
1863
1879
|
type: block.type || "paragraph",
|
|
1864
1880
|
props: this.getBlockProps(block),
|
|
1865
1881
|
content: Array.isArray(block.content) ? block.content : [],
|
|
1866
|
-
children: _optionalChain([block, 'access',
|
|
1882
|
+
children: _optionalChain([block, 'access', _44 => _44.children, 'optionalAccess', _45 => _45.map, 'call', _46 => _46(
|
|
1867
1883
|
(child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
|
|
1868
1884
|
)])
|
|
1869
1885
|
};
|
|
@@ -1876,7 +1892,7 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
1876
1892
|
type: block.type || "paragraph",
|
|
1877
1893
|
props: block.props || {},
|
|
1878
1894
|
content: Array.isArray(block.content) ? block.content : [],
|
|
1879
|
-
children: _optionalChain([block, 'access',
|
|
1895
|
+
children: _optionalChain([block, 'access', _47 => _47.children, 'optionalAccess', _48 => _48.map, 'call', _49 => _49(
|
|
1880
1896
|
(child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
|
|
1881
1897
|
)])
|
|
1882
1898
|
};
|
|
@@ -1928,7 +1944,7 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
1928
1944
|
type: block.type || "paragraph",
|
|
1929
1945
|
props: this.getBlockProps(block),
|
|
1930
1946
|
content,
|
|
1931
|
-
children: _optionalChain([block, 'access',
|
|
1947
|
+
children: _optionalChain([block, 'access', _50 => _50.children, 'optionalAccess', _51 => _51.map, 'call', _52 => _52(
|
|
1932
1948
|
(child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange)
|
|
1933
1949
|
)])
|
|
1934
1950
|
};
|
|
@@ -1950,7 +1966,7 @@ var BlockNoteWordDiffRendererUtil = class {
|
|
|
1950
1966
|
type: block.type || "paragraph",
|
|
1951
1967
|
props: block.props || {},
|
|
1952
1968
|
content: Array.isArray(content) ? content : [],
|
|
1953
|
-
children: _optionalChain([block, 'access',
|
|
1969
|
+
children: _optionalChain([block, 'access', _53 => _53.children, 'optionalAccess', _54 => _54.map, 'call', _55 => _55((child) => this.renderDiffBlock(child, onAcceptChange, onRejectChange))]) || []
|
|
1954
1970
|
};
|
|
1955
1971
|
}
|
|
1956
1972
|
static groupAndRenderWordDiffs(wordDiffs) {
|
|
@@ -2798,7 +2814,7 @@ var AuthService = class extends AbstractService {
|
|
|
2798
2814
|
language
|
|
2799
2815
|
});
|
|
2800
2816
|
if (!apiResponse.ok) throw new Error(apiResponse.error);
|
|
2801
|
-
if (_optionalChain([apiResponse, 'access',
|
|
2817
|
+
if (_optionalChain([apiResponse, 'access', _56 => _56.raw, 'optionalAccess', _57 => _57.data, 'optionalAccess', _58 => _58.type]) === "two-factor-challenge") {
|
|
2802
2818
|
const challenge = rehydrate(Modules.TwoFactorChallenge, {
|
|
2803
2819
|
jsonApi: apiResponse.raw.data,
|
|
2804
2820
|
included: _nullishCoalesce(apiResponse.raw.included, () => ( []))
|
|
@@ -2812,9 +2828,9 @@ var AuthService = class extends AbstractService {
|
|
|
2812
2828
|
token: auth.token,
|
|
2813
2829
|
refreshToken: auth.refreshToken,
|
|
2814
2830
|
userId: auth.user.id,
|
|
2815
|
-
companyId: _optionalChain([auth, 'access',
|
|
2831
|
+
companyId: _optionalChain([auth, 'access', _59 => _59.user, 'access', _60 => _60.company, 'optionalAccess', _61 => _61.id]),
|
|
2816
2832
|
roles: auth.user.roles.map((role) => role.id),
|
|
2817
|
-
features: _nullishCoalesce(_optionalChain([auth, 'access',
|
|
2833
|
+
features: _nullishCoalesce(_optionalChain([auth, 'access', _62 => _62.user, 'access', _63 => _63.company, 'optionalAccess', _64 => _64.features, 'optionalAccess', _65 => _65.map, 'call', _66 => _66((feature) => feature.id)]), () => ( [])),
|
|
2818
2834
|
modules: auth.user.modules.map((module) => ({
|
|
2819
2835
|
id: module.id,
|
|
2820
2836
|
permissions: module.permissions
|
|
@@ -2824,7 +2840,7 @@ var AuthService = class extends AbstractService {
|
|
|
2824
2840
|
return auth.user;
|
|
2825
2841
|
}
|
|
2826
2842
|
static async logout(params) {
|
|
2827
|
-
const language = _optionalChain([params, 'optionalAccess',
|
|
2843
|
+
const language = _optionalChain([params, 'optionalAccess', _67 => _67.language]) || "en-US";
|
|
2828
2844
|
await _chunk4MN547K7js.JsonApiDelete.call(void 0, {
|
|
2829
2845
|
classKey: Modules.Auth,
|
|
2830
2846
|
endpoint: new EndpointCreator({ endpoint: Modules.Auth }).generate(),
|
|
@@ -2898,9 +2914,9 @@ var AuthService = class extends AbstractService {
|
|
|
2898
2914
|
token: auth.token,
|
|
2899
2915
|
refreshToken: auth.refreshToken,
|
|
2900
2916
|
userId: auth.user.id,
|
|
2901
|
-
companyId: _optionalChain([auth, 'access',
|
|
2917
|
+
companyId: _optionalChain([auth, 'access', _68 => _68.user, 'access', _69 => _69.company, 'optionalAccess', _70 => _70.id]),
|
|
2902
2918
|
roles: auth.user.roles.map((role) => role.id),
|
|
2903
|
-
features: _nullishCoalesce(_optionalChain([auth, 'access',
|
|
2919
|
+
features: _nullishCoalesce(_optionalChain([auth, 'access', _71 => _71.user, 'access', _72 => _72.company, 'optionalAccess', _73 => _73.features, 'optionalAccess', _74 => _74.map, 'call', _75 => _75((feature) => feature.id)]), () => ( [])),
|
|
2904
2920
|
modules: auth.user.modules.map((module) => ({
|
|
2905
2921
|
id: module.id,
|
|
2906
2922
|
permissions: module.permissions
|
|
@@ -3148,9 +3164,9 @@ var TwoFactorService = class extends AbstractService {
|
|
|
3148
3164
|
token: auth.token,
|
|
3149
3165
|
refreshToken: auth.refreshToken,
|
|
3150
3166
|
userId: auth.user.id,
|
|
3151
|
-
companyId: _optionalChain([auth, 'access',
|
|
3167
|
+
companyId: _optionalChain([auth, 'access', _76 => _76.user, 'access', _77 => _77.company, 'optionalAccess', _78 => _78.id]),
|
|
3152
3168
|
roles: auth.user.roles.map((role) => role.id),
|
|
3153
|
-
features: _nullishCoalesce(_optionalChain([auth, 'access',
|
|
3169
|
+
features: _nullishCoalesce(_optionalChain([auth, 'access', _79 => _79.user, 'access', _80 => _80.company, 'optionalAccess', _81 => _81.features, 'optionalAccess', _82 => _82.map, 'call', _83 => _83((feature) => feature.id)]), () => ( [])),
|
|
3154
3170
|
modules: auth.user.modules.map((module) => ({
|
|
3155
3171
|
id: module.id,
|
|
3156
3172
|
permissions: module.permissions
|
|
@@ -3288,8 +3304,8 @@ var BillingService = class extends AbstractService {
|
|
|
3288
3304
|
type: Modules.StripeUsage,
|
|
3289
3305
|
method: "GET" /* GET */,
|
|
3290
3306
|
endpoint: endpoint.generate(),
|
|
3291
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
3292
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
3307
|
+
next: _optionalChain([params, 'optionalAccess', _84 => _84.next]),
|
|
3308
|
+
previous: _optionalChain([params, 'optionalAccess', _85 => _85.prev])
|
|
3293
3309
|
});
|
|
3294
3310
|
}
|
|
3295
3311
|
/**
|
|
@@ -3521,8 +3537,8 @@ var StripeCustomerService = class extends AbstractService {
|
|
|
3521
3537
|
type: Modules.StripePaymentMethod,
|
|
3522
3538
|
method: "GET" /* GET */,
|
|
3523
3539
|
endpoint: endpoint.generate(),
|
|
3524
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
3525
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
3540
|
+
next: _optionalChain([params, 'optionalAccess', _86 => _86.next]),
|
|
3541
|
+
previous: _optionalChain([params, 'optionalAccess', _87 => _87.prev])
|
|
3526
3542
|
});
|
|
3527
3543
|
}
|
|
3528
3544
|
/**
|
|
@@ -3736,15 +3752,15 @@ var StripeInvoiceService = class extends AbstractService {
|
|
|
3736
3752
|
const endpoint = new EndpointCreator({
|
|
3737
3753
|
endpoint: Modules.StripeInvoice
|
|
3738
3754
|
});
|
|
3739
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
3755
|
+
if (_optionalChain([params, 'optionalAccess', _88 => _88.status])) {
|
|
3740
3756
|
endpoint.addAdditionalParam("status", params.status);
|
|
3741
3757
|
}
|
|
3742
3758
|
return this.callApi({
|
|
3743
3759
|
type: Modules.StripeInvoice,
|
|
3744
3760
|
method: "GET" /* GET */,
|
|
3745
3761
|
endpoint: endpoint.generate(),
|
|
3746
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
3747
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
3762
|
+
next: _optionalChain([params, 'optionalAccess', _89 => _89.next]),
|
|
3763
|
+
previous: _optionalChain([params, 'optionalAccess', _90 => _90.prev])
|
|
3748
3764
|
});
|
|
3749
3765
|
}
|
|
3750
3766
|
/**
|
|
@@ -3949,18 +3965,18 @@ var StripePriceService = class extends AbstractService {
|
|
|
3949
3965
|
const endpoint = new EndpointCreator({
|
|
3950
3966
|
endpoint: Modules.StripePrice
|
|
3951
3967
|
});
|
|
3952
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
3968
|
+
if (_optionalChain([params, 'optionalAccess', _91 => _91.productId])) {
|
|
3953
3969
|
endpoint.addAdditionalParam("productId", params.productId);
|
|
3954
3970
|
}
|
|
3955
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
3971
|
+
if (_optionalChain([params, 'optionalAccess', _92 => _92.active]) !== void 0) {
|
|
3956
3972
|
endpoint.addAdditionalParam("active", params.active.toString());
|
|
3957
3973
|
}
|
|
3958
3974
|
return this.callApi({
|
|
3959
3975
|
type: Modules.StripePrice,
|
|
3960
3976
|
method: "GET" /* GET */,
|
|
3961
3977
|
endpoint: endpoint.generate(),
|
|
3962
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
3963
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
3978
|
+
next: _optionalChain([params, 'optionalAccess', _93 => _93.next]),
|
|
3979
|
+
previous: _optionalChain([params, 'optionalAccess', _94 => _94.prev])
|
|
3964
3980
|
});
|
|
3965
3981
|
}
|
|
3966
3982
|
/**
|
|
@@ -4119,15 +4135,15 @@ var StripeProductService = class extends AbstractService {
|
|
|
4119
4135
|
const endpoint = new EndpointCreator({
|
|
4120
4136
|
endpoint: Modules.StripeProduct
|
|
4121
4137
|
});
|
|
4122
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
4138
|
+
if (_optionalChain([params, 'optionalAccess', _95 => _95.active]) !== void 0) {
|
|
4123
4139
|
endpoint.addAdditionalParam("active", params.active.toString());
|
|
4124
4140
|
}
|
|
4125
4141
|
return this.callApi({
|
|
4126
4142
|
type: Modules.StripeProduct,
|
|
4127
4143
|
method: "GET" /* GET */,
|
|
4128
4144
|
endpoint: endpoint.generate(),
|
|
4129
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4130
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4145
|
+
next: _optionalChain([params, 'optionalAccess', _96 => _96.next]),
|
|
4146
|
+
previous: _optionalChain([params, 'optionalAccess', _97 => _97.prev])
|
|
4131
4147
|
});
|
|
4132
4148
|
}
|
|
4133
4149
|
/**
|
|
@@ -4346,8 +4362,8 @@ var StripeSubscriptionService = class extends AbstractService {
|
|
|
4346
4362
|
type: Modules.StripeSubscription,
|
|
4347
4363
|
method: "GET" /* GET */,
|
|
4348
4364
|
endpoint: endpoint.generate(),
|
|
4349
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4350
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4365
|
+
next: _optionalChain([params, 'optionalAccess', _98 => _98.next]),
|
|
4366
|
+
previous: _optionalChain([params, 'optionalAccess', _99 => _99.prev])
|
|
4351
4367
|
});
|
|
4352
4368
|
}
|
|
4353
4369
|
/**
|
|
@@ -4574,8 +4590,8 @@ var StripeUsageService = class extends AbstractService {
|
|
|
4574
4590
|
type: Modules.StripeUsage,
|
|
4575
4591
|
method: "GET" /* GET */,
|
|
4576
4592
|
endpoint: endpoint.generate(),
|
|
4577
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4578
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4593
|
+
next: _optionalChain([params, 'optionalAccess', _100 => _100.next]),
|
|
4594
|
+
previous: _optionalChain([params, 'optionalAccess', _101 => _101.prev])
|
|
4579
4595
|
});
|
|
4580
4596
|
}
|
|
4581
4597
|
/**
|
|
@@ -4623,8 +4639,8 @@ var StripeUsageService = class extends AbstractService {
|
|
|
4623
4639
|
type: Modules.StripeUsage,
|
|
4624
4640
|
method: "GET" /* GET */,
|
|
4625
4641
|
endpoint: endpoint.generate(),
|
|
4626
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
4627
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
4642
|
+
next: _optionalChain([params, 'optionalAccess', _102 => _102.next]),
|
|
4643
|
+
previous: _optionalChain([params, 'optionalAccess', _103 => _103.prev])
|
|
4628
4644
|
});
|
|
4629
4645
|
}
|
|
4630
4646
|
/**
|
|
@@ -5060,8 +5076,8 @@ var ContentService = class extends AbstractService {
|
|
|
5060
5076
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
5061
5077
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
5062
5078
|
}
|
|
5063
|
-
if (_optionalChain([Modules, 'access',
|
|
5064
|
-
if (_optionalChain([Modules, 'access',
|
|
5079
|
+
if (_optionalChain([Modules, 'access', _104 => _104.Content, 'access', _105 => _105.inclusions, 'optionalAccess', _106 => _106.lists, 'optionalAccess', _107 => _107.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
5080
|
+
if (_optionalChain([Modules, 'access', _108 => _108.Content, 'access', _109 => _109.inclusions, 'optionalAccess', _110 => _110.lists, 'optionalAccess', _111 => _111.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
5065
5081
|
return this.callApi({
|
|
5066
5082
|
type: Modules.Content,
|
|
5067
5083
|
method: "GET" /* GET */,
|
|
@@ -5075,8 +5091,8 @@ var ContentService = class extends AbstractService {
|
|
|
5075
5091
|
id: params.id,
|
|
5076
5092
|
childEndpoint: "relevance"
|
|
5077
5093
|
});
|
|
5078
|
-
if (_optionalChain([Modules, 'access',
|
|
5079
|
-
if (_optionalChain([Modules, 'access',
|
|
5094
|
+
if (_optionalChain([Modules, 'access', _112 => _112.Content, 'access', _113 => _113.inclusions, 'optionalAccess', _114 => _114.lists, 'optionalAccess', _115 => _115.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
5095
|
+
if (_optionalChain([Modules, 'access', _116 => _116.Content, 'access', _117 => _117.inclusions, 'optionalAccess', _118 => _118.lists, 'optionalAccess', _119 => _119.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
5080
5096
|
return this.callApi({
|
|
5081
5097
|
type: Modules.Content,
|
|
5082
5098
|
method: "GET" /* GET */,
|
|
@@ -5092,8 +5108,8 @@ var ContentService = class extends AbstractService {
|
|
|
5092
5108
|
});
|
|
5093
5109
|
if (params.fetchAll) endpoint.addAdditionalParam("fetchAll", "true");
|
|
5094
5110
|
if (params.search) endpoint.addAdditionalParam("search", params.search);
|
|
5095
|
-
if (_optionalChain([Modules, 'access',
|
|
5096
|
-
if (_optionalChain([Modules, 'access',
|
|
5111
|
+
if (_optionalChain([Modules, 'access', _120 => _120.Content, 'access', _121 => _121.inclusions, 'optionalAccess', _122 => _122.lists, 'optionalAccess', _123 => _123.fields])) endpoint.limitToFields(Modules.Content.inclusions.lists.fields);
|
|
5112
|
+
if (_optionalChain([Modules, 'access', _124 => _124.Content, 'access', _125 => _125.inclusions, 'optionalAccess', _126 => _126.lists, 'optionalAccess', _127 => _127.types])) endpoint.limitToType(Modules.Content.inclusions.lists.types);
|
|
5097
5113
|
return this.callApi({
|
|
5098
5114
|
type: Modules.Content,
|
|
5099
5115
|
method: "GET" /* GET */,
|
|
@@ -5795,8 +5811,8 @@ var UserService = class extends AbstractService {
|
|
|
5795
5811
|
id: params.id,
|
|
5796
5812
|
childEndpoint: "user-relevance"
|
|
5797
5813
|
});
|
|
5798
|
-
if (_optionalChain([Modules, 'access',
|
|
5799
|
-
if (_optionalChain([Modules, 'access',
|
|
5814
|
+
if (_optionalChain([Modules, 'access', _128 => _128.User, 'access', _129 => _129.inclusions, 'optionalAccess', _130 => _130.lists, 'optionalAccess', _131 => _131.fields])) endpoint.limitToFields(Modules.User.inclusions.lists.fields);
|
|
5815
|
+
if (_optionalChain([Modules, 'access', _132 => _132.User, 'access', _133 => _133.inclusions, 'optionalAccess', _134 => _134.lists, 'optionalAccess', _135 => _135.types])) endpoint.limitToType(Modules.User.inclusions.lists.types);
|
|
5800
5816
|
return this.callApi({
|
|
5801
5817
|
type: Modules.User,
|
|
5802
5818
|
method: "GET" /* GET */,
|
|
@@ -6037,7 +6053,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6037
6053
|
type: Modules.OAuth,
|
|
6038
6054
|
method: "GET" /* GET */,
|
|
6039
6055
|
endpoint: new EndpointCreator({ endpoint: "oauth/clients" }).generate(),
|
|
6040
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
6056
|
+
next: _optionalChain([params, 'optionalAccess', _136 => _136.next])
|
|
6041
6057
|
});
|
|
6042
6058
|
}
|
|
6043
6059
|
/**
|
|
@@ -6063,7 +6079,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6063
6079
|
});
|
|
6064
6080
|
return {
|
|
6065
6081
|
client: result.data,
|
|
6066
|
-
clientSecret: _optionalChain([result, 'access',
|
|
6082
|
+
clientSecret: _optionalChain([result, 'access', _137 => _137.meta, 'optionalAccess', _138 => _138.clientSecret])
|
|
6067
6083
|
};
|
|
6068
6084
|
}
|
|
6069
6085
|
/**
|
|
@@ -6102,7 +6118,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6102
6118
|
}).generate()
|
|
6103
6119
|
});
|
|
6104
6120
|
return {
|
|
6105
|
-
clientSecret: _optionalChain([result, 'access',
|
|
6121
|
+
clientSecret: _optionalChain([result, 'access', _139 => _139.meta, 'optionalAccess', _140 => _140.clientSecret])
|
|
6106
6122
|
};
|
|
6107
6123
|
}
|
|
6108
6124
|
// ==========================================
|
|
@@ -6146,7 +6162,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6146
6162
|
overridesJsonApiCreation: true
|
|
6147
6163
|
});
|
|
6148
6164
|
return {
|
|
6149
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
6165
|
+
redirectUrl: _optionalChain([result, 'access', _141 => _141.meta, 'optionalAccess', _142 => _142.redirectUrl])
|
|
6150
6166
|
};
|
|
6151
6167
|
}
|
|
6152
6168
|
/**
|
|
@@ -6166,7 +6182,7 @@ var OAuthService = class extends AbstractService {
|
|
|
6166
6182
|
overridesJsonApiCreation: true
|
|
6167
6183
|
});
|
|
6168
6184
|
return {
|
|
6169
|
-
redirectUrl: _optionalChain([result, 'access',
|
|
6185
|
+
redirectUrl: _optionalChain([result, 'access', _143 => _143.meta, 'optionalAccess', _144 => _144.redirectUrl])
|
|
6170
6186
|
};
|
|
6171
6187
|
}
|
|
6172
6188
|
};
|
|
@@ -6350,15 +6366,15 @@ var WaitlistService = class extends AbstractService {
|
|
|
6350
6366
|
*/
|
|
6351
6367
|
static async findMany(params) {
|
|
6352
6368
|
const endpoint = new EndpointCreator({ endpoint: Modules.Waitlist });
|
|
6353
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
6354
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
6355
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
6369
|
+
if (_optionalChain([params, 'optionalAccess', _145 => _145.status])) endpoint.addAdditionalParam("status", params.status);
|
|
6370
|
+
if (_optionalChain([params, 'optionalAccess', _146 => _146.search])) endpoint.addAdditionalParam("search", params.search);
|
|
6371
|
+
if (_optionalChain([params, 'optionalAccess', _147 => _147.fetchAll])) endpoint.addAdditionalParam("fetchAll", "true");
|
|
6356
6372
|
return this.callApi({
|
|
6357
6373
|
type: Modules.Waitlist,
|
|
6358
6374
|
method: "GET" /* GET */,
|
|
6359
6375
|
endpoint: endpoint.generate(),
|
|
6360
|
-
next: _optionalChain([params, 'optionalAccess',
|
|
6361
|
-
previous: _optionalChain([params, 'optionalAccess',
|
|
6376
|
+
next: _optionalChain([params, 'optionalAccess', _148 => _148.next]),
|
|
6377
|
+
previous: _optionalChain([params, 'optionalAccess', _149 => _149.prev])
|
|
6362
6378
|
});
|
|
6363
6379
|
}
|
|
6364
6380
|
/**
|
|
@@ -6426,10 +6442,10 @@ var WaitlistService = class extends AbstractService {
|
|
|
6426
6442
|
method: "GET" /* GET */,
|
|
6427
6443
|
endpoint: endpoint.generate()
|
|
6428
6444
|
});
|
|
6429
|
-
const attributes = _optionalChain([response, 'access',
|
|
6445
|
+
const attributes = _optionalChain([response, 'access', _150 => _150.data, 'optionalAccess', _151 => _151._jsonApi, 'optionalAccess', _152 => _152.attributes]);
|
|
6430
6446
|
return {
|
|
6431
|
-
email: _optionalChain([attributes, 'optionalAccess',
|
|
6432
|
-
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess',
|
|
6447
|
+
email: _optionalChain([attributes, 'optionalAccess', _153 => _153.email]),
|
|
6448
|
+
valid: _nullishCoalesce(_optionalChain([attributes, 'optionalAccess', _154 => _154.valid]), () => ( false))
|
|
6433
6449
|
};
|
|
6434
6450
|
} catch (_error) {
|
|
6435
6451
|
return null;
|
|
@@ -6515,7 +6531,7 @@ var PermissionMapping = class extends AbstractApiData {
|
|
|
6515
6531
|
super.rehydrate(data);
|
|
6516
6532
|
this._roleId = data.jsonApi.attributes.roleId;
|
|
6517
6533
|
this._moduleId = data.jsonApi.attributes.moduleId;
|
|
6518
|
-
this._permissions = _optionalChain([data, 'access',
|
|
6534
|
+
this._permissions = _optionalChain([data, 'access', _155 => _155.jsonApi, 'access', _156 => _156.meta, 'optionalAccess', _157 => _157.permissions]);
|
|
6519
6535
|
return this;
|
|
6520
6536
|
}
|
|
6521
6537
|
};
|
|
@@ -6803,5 +6819,6 @@ var ReferralStatsModule = /* @__PURE__ */ _chunk7QVYU63Ejs.__name.call(void 0, (
|
|
|
6803
6819
|
|
|
6804
6820
|
|
|
6805
6821
|
|
|
6806
|
-
|
|
6807
|
-
|
|
6822
|
+
|
|
6823
|
+
exports.RehydrationFactory = RehydrationFactory; exports.AbstractApiData = AbstractApiData; exports.HttpMethod = HttpMethod; exports.getLastApiTotal = getLastApiTotal; exports.clearLastApiTotal = clearLastApiTotal; exports.setGlobalErrorHandler = setGlobalErrorHandler; exports.getGlobalErrorHandler = getGlobalErrorHandler; exports.AbstractService = AbstractService; exports.configureClientJsonApi = configureClientJsonApi; exports.getClientApiUrl = getClientApiUrl; exports.getClientAppUrl = getClientAppUrl; exports.getClientTrackablePages = getClientTrackablePages; exports.ClientJsonApiGet = ClientJsonApiGet; exports.ClientJsonApiPost = ClientJsonApiPost; exports.ClientJsonApiPut = ClientJsonApiPut; exports.ClientJsonApiPatch = ClientJsonApiPatch; exports.ClientJsonApiDelete = ClientJsonApiDelete; exports.ClientHttpMethod = ClientHttpMethod; exports.setClientGlobalErrorHandler = setClientGlobalErrorHandler; exports.getClientGlobalErrorHandler = getClientGlobalErrorHandler; exports.ClientAbstractService = ClientAbstractService; exports.ModuleRegistrar = ModuleRegistrar; exports.ModuleRegistry = ModuleRegistry; exports.Modules = Modules; exports.EndpointCreator = EndpointCreator; exports.createJsonApiInclusion = createJsonApiInclusion; exports.rehydrate = rehydrate; exports.rehydrateList = rehydrateList; exports.cn = cn; exports.composeRefs = composeRefs; exports.useComposedRefs = useComposedRefs; exports.useIsMobile = useIsMobile; exports.formatDate = formatDate; exports.exists = exists; exports.TableOptions = TableOptions; exports.getTableOptions = getTableOptions; exports.getTableComponents = getTableComponents; exports.userObjectSchema = userObjectSchema; exports.entityObjectSchema = entityObjectSchema; exports.getInitials = getInitials; exports.BlockNoteDiffUtil = BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = BlockNoteWordDiffRendererUtil; exports.getIconByModule = getIconByModule; exports.getIcon = getIcon; exports.getIconByModuleName = getIconByModuleName; exports.getLucideIcon = getLucideIcon; exports.getLucideIconByModule = getLucideIconByModule; exports.getLucideIconByModuleName = getLucideIconByModuleName; exports.showToast = showToast; exports.showError = showError; exports.dismissToast = dismissToast; exports.showCustomToast = showCustomToast; exports.Action = Action; exports.checkPermissions = checkPermissions; exports.checkPermissionsFromServer = checkPermissionsFromServer; exports.getValueFromPath = getValueFromPath; exports.TotpAuthenticator = TotpAuthenticator; exports.TotpAuthenticatorModule = TotpAuthenticatorModule; exports.TotpSetup = TotpSetup; exports.TotpSetupModule = TotpSetupModule; exports.TotpVerify = TotpVerify; exports.TotpVerifyModule = TotpVerifyModule; exports.TotpVerifyLogin = TotpVerifyLogin; exports.TotpVerifyLoginModule = TotpVerifyLoginModule; exports.Passkey = Passkey; exports.PasskeyModule = PasskeyModule; exports.PasskeyRegistrationOptions = PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = PasskeyRegistrationVerifyModule; exports.PasskeyRename = PasskeyRename; exports.PasskeyRenameModule = PasskeyRenameModule; exports.PasskeyVerifyLogin = PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = PasskeyVerifyLoginModule; exports.PasskeyAuthenticationOptions = PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = PasskeyAuthenticationOptionsModule; exports.TwoFactorEnable = TwoFactorEnable; exports.TwoFactorEnableModule = TwoFactorEnableModule; exports.TwoFactorChallenge = TwoFactorChallenge; exports.TwoFactorChallengeModule = TwoFactorChallengeModule; exports.BackupCodeVerify = BackupCodeVerify; exports.BackupCodeVerifyModule = BackupCodeVerifyModule; exports.configureAuth = configureAuth; exports.getTokenHandler = getTokenHandler; exports.Auth = Auth; exports.AuthService = AuthService; exports.TwoFactorStatus = TwoFactorStatus; exports.TwoFactorService = TwoFactorService; exports.AuthComponent = AuthComponent; exports.AuthModule = AuthModule; exports.TwoFactorStatusModule = TwoFactorStatusModule; exports.BillingService = BillingService; exports.Billing = Billing; exports.BillingModule = BillingModule; exports.PaymentMethod = PaymentMethod; exports.StripeCustomer = StripeCustomer; exports.StripeCustomerService = StripeCustomerService; exports.StripeCustomerModule = StripeCustomerModule; exports.StripePaymentMethodModule = StripePaymentMethodModule; exports.StripeInvoice = StripeInvoice; exports.InvoiceStatus = InvoiceStatus; exports.StripeInvoiceService = StripeInvoiceService; exports.StripeInvoiceModule = StripeInvoiceModule; exports.StripePrice = StripePrice; exports.StripePriceService = StripePriceService; exports.StripePriceModule = StripePriceModule; exports.StripeProduct = StripeProduct; exports.StripeProductService = StripeProductService; exports.StripeProductModule = StripeProductModule; exports.StripeSubscription = StripeSubscription; exports.SubscriptionStatus = SubscriptionStatus; exports.StripeSubscriptionService = StripeSubscriptionService; exports.StripeSubscriptionModule = StripeSubscriptionModule; exports.StripeUsage = StripeUsage; exports.StripeUsageService = StripeUsageService; exports.StripeUsageModule = StripeUsageModule; exports.StripePromotionCodeService = StripePromotionCodeService; exports.StripePromotionCode = StripePromotionCode; exports.StripePromotionCodeModule = StripePromotionCodeModule; exports.Company = Company; exports.CompanyFields = CompanyFields; exports.CompanyService = CompanyService; exports.CompanyModule = CompanyModule; exports.Content = Content; exports.ContentFields = ContentFields; exports.ContentService = ContentService; exports.ContentModule = ContentModule; exports.Feature = Feature; exports.FeatureService = FeatureService; exports.FeatureModule = FeatureModule; exports.Module = Module; exports.ModuleModule = ModuleModule; exports.Notification = Notification; exports.NotificationFields = NotificationFields; exports.NotificationService = NotificationService; exports.NotificationModule = NotificationModule; exports.Push = Push; exports.PushService = PushService; exports.PushModule = PushModule; exports.Role = Role; exports.RoleFields = RoleFields; exports.RoleService = RoleService; exports.RoleModule = RoleModule; exports.S3 = S3; exports.S3Module = S3Module; exports.S3Service = S3Service; exports.User = User; exports.UserFields = UserFields; exports.UserService = UserService; exports.AuthorModule = AuthorModule; exports.UserModule = UserModule; exports.OAuthClient = OAuthClient; exports.OAuthModule = OAuthModule; exports.OAuthService = OAuthService; exports.OAUTH_SCOPE_DISPLAY = OAUTH_SCOPE_DISPLAY; exports.AVAILABLE_OAUTH_SCOPES = AVAILABLE_OAUTH_SCOPES; exports.DEFAULT_GRANT_TYPES = DEFAULT_GRANT_TYPES; exports.Waitlist = Waitlist; exports.WaitlistService = WaitlistService; exports.WaitlistStats = WaitlistStats; exports.WaitlistModule = WaitlistModule; exports.WaitlistStatsModule = WaitlistStatsModule; exports.PermissionMapping = PermissionMapping; exports.ModulePaths = ModulePaths; exports.PermissionMappingModule = PermissionMappingModule; exports.ModulePathsModule = ModulePathsModule; exports.ReferralStats = ReferralStats; exports.ReferralService = ReferralService; exports.ReferralModule = ReferralModule; exports.ReferralStatsModule = ReferralStatsModule;
|
|
6824
|
+
//# sourceMappingURL=chunk-NAST4OSM.js.map
|