@carlonicora/nextjs-jsonapi 1.44.2 → 1.45.0
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 +2 -2
- package/dist/{BlockNoteEditor-2ZP2BEZC.mjs → BlockNoteEditor-IAA6SRJD.mjs} +4 -4
- package/dist/{BlockNoteEditor-C7CVGQDG.js → BlockNoteEditor-JYQVZHSR.js} +14 -14
- package/dist/{BlockNoteEditor-C7CVGQDG.js.map → BlockNoteEditor-JYQVZHSR.js.map} +1 -1
- package/dist/{auth.interface-BJGKQ0zr.d.ts → auth.interface-DgpoGNZN.d.ts} +1 -0
- package/dist/{auth.interface-8XglqHir.d.mts → auth.interface-quk7psiq.d.mts} +1 -0
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-LBIC4GJK.mjs → chunk-4HMQNMP6.mjs} +28 -2
- package/dist/chunk-4HMQNMP6.mjs.map +1 -0
- package/dist/{chunk-L5F5ZN5F.js → chunk-AHXRHXZ2.js} +84 -2
- package/dist/chunk-AHXRHXZ2.js.map +1 -0
- package/dist/{chunk-CLXIZJVH.mjs → chunk-EA3EPEDL.mjs} +839 -450
- package/dist/chunk-EA3EPEDL.mjs.map +1 -0
- package/dist/{chunk-OODZEX6P.js → chunk-GP3MDKGE.js} +28 -2
- package/dist/chunk-GP3MDKGE.js.map +1 -0
- package/dist/{chunk-24E7WD4J.js → chunk-XRBK4J6U.js} +954 -565
- package/dist/chunk-XRBK4J6U.js.map +1 -0
- package/dist/{chunk-PHNL4QUF.mjs → chunk-ZMGUP2AI.mjs} +84 -2
- package/dist/chunk-ZMGUP2AI.mjs.map +1 -0
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +160 -3
- package/dist/components/index.d.ts +160 -3
- package/dist/components/index.js +10 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +9 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +42 -5
- package/dist/core/index.d.ts +42 -5
- package/dist/core/index.js +10 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +9 -1
- package/dist/index.d.mts +66 -5
- package/dist/index.d.ts +66 -5
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -2
- package/dist/{s3.service-DOwqcUDT.d.ts → s3.service--8IFzWsB.d.ts} +1 -1
- package/dist/{s3.service-D0rbmLFp.d.mts → s3.service-GQa6F4Ks.d.mts} +1 -1
- package/dist/server/index.d.mts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/scripts/generate-web-module/types/template-data.interface.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/core/index.ts +3 -0
- package/src/core/registry/ModuleRegistry.ts +3 -0
- package/src/features/auth/components/buttons/GoogleSignInButton.tsx +13 -2
- package/src/features/auth/components/forms/Login.tsx +24 -2
- package/src/features/auth/components/forms/Logout.tsx +9 -1
- package/src/features/auth/components/forms/Register.tsx +45 -5
- package/src/features/auth/components/forms/__tests__/Logout.spec.tsx +118 -0
- package/src/features/auth/config.ts +1 -1
- package/src/features/auth/data/auth.interface.ts +1 -0
- package/src/features/auth/data/auth.ts +1 -0
- package/src/features/auth/utils/__tests__/clearClientStorage.spec.ts +81 -0
- package/src/features/auth/utils/clearClientStorage.ts +11 -0
- package/src/features/auth/utils/index.ts +1 -0
- package/src/features/index.ts +1 -0
- package/src/features/referral/__tests__/config.spec.ts +105 -0
- package/src/features/referral/__tests__/referral-cookie.spec.ts +188 -0
- package/src/features/referral/components/ReferralCodeCapture.tsx +51 -0
- package/src/features/referral/components/ReferralDialog.tsx +94 -0
- package/src/features/referral/components/ReferralWidget.tsx +334 -0
- package/src/features/referral/components/index.ts +3 -0
- package/src/features/referral/config.ts +89 -0
- package/src/features/referral/data/ReferralService.ts +38 -0
- package/src/features/referral/data/ReferralStats.ts +31 -0
- package/src/features/referral/data/index.ts +2 -0
- package/src/features/referral/hooks/index.ts +2 -0
- package/src/features/referral/hooks/useReferralInvite.ts +32 -0
- package/src/features/referral/hooks/useReferralStats.ts +26 -0
- package/src/features/referral/index.ts +21 -0
- package/src/features/referral/interfaces/index.ts +1 -0
- package/src/features/referral/interfaces/referral.interface.ts +5 -0
- package/src/features/referral/referral-stats.module.ts +9 -0
- package/src/features/referral/referral.module.ts +9 -0
- package/src/features/referral/utils/index.ts +1 -0
- package/src/features/referral/utils/referral-cookie.ts +35 -0
- package/src/index.ts +4 -0
- package/dist/chunk-24E7WD4J.js.map +0 -1
- package/dist/chunk-CLXIZJVH.mjs.map +0 -1
- package/dist/chunk-L5F5ZN5F.js.map +0 -1
- package/dist/chunk-LBIC4GJK.mjs.map +0 -1
- package/dist/chunk-OODZEX6P.js.map +0 -1
- package/dist/chunk-PHNL4QUF.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-2ZP2BEZC.mjs.map → BlockNoteEditor-IAA6SRJD.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"],"names":[],"mappings":"AAAA;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;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;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;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;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;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;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;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;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;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;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;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;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;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,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"],"names":[],"mappings":"AAAA;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;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;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;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;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;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;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;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;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;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;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,u/tBAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/components/index.js"}
|
|
@@ -264,6 +264,9 @@ import {
|
|
|
264
264
|
RadioGroupItem,
|
|
265
265
|
ReactMarkdownContainer,
|
|
266
266
|
RecentPagesNavigator,
|
|
267
|
+
ReferralCodeCapture,
|
|
268
|
+
ReferralDialog,
|
|
269
|
+
ReferralWidget,
|
|
267
270
|
RefreshUser,
|
|
268
271
|
RelevantContentsList,
|
|
269
272
|
RelevantUsersList,
|
|
@@ -391,13 +394,13 @@ import {
|
|
|
391
394
|
useCarousel,
|
|
392
395
|
useFileUpload,
|
|
393
396
|
useSidebar
|
|
394
|
-
} from "../chunk-
|
|
395
|
-
import "../chunk-
|
|
397
|
+
} from "../chunk-EA3EPEDL.mjs";
|
|
398
|
+
import "../chunk-4HMQNMP6.mjs";
|
|
396
399
|
import {
|
|
397
400
|
getIcon,
|
|
398
401
|
getIconByModule,
|
|
399
402
|
getIconByModuleName
|
|
400
|
-
} from "../chunk-
|
|
403
|
+
} from "../chunk-ZMGUP2AI.mjs";
|
|
401
404
|
import "../chunk-AUXK7QSA.mjs";
|
|
402
405
|
import "../chunk-C7C7VY4F.mjs";
|
|
403
406
|
import "../chunk-GCQUTWZ2.mjs";
|
|
@@ -674,6 +677,9 @@ export {
|
|
|
674
677
|
RadioGroupItem,
|
|
675
678
|
ReactMarkdownContainer,
|
|
676
679
|
RecentPagesNavigator,
|
|
680
|
+
ReferralCodeCapture,
|
|
681
|
+
ReferralDialog,
|
|
682
|
+
ReferralWidget,
|
|
677
683
|
RefreshUser,
|
|
678
684
|
RelevantContentsList,
|
|
679
685
|
RelevantUsersList,
|
package/dist/contexts/index.js
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
27
|
-
require('../chunk-
|
|
28
|
-
require('../chunk-
|
|
26
|
+
var _chunkXRBK4J6Ujs = require('../chunk-XRBK4J6U.js');
|
|
27
|
+
require('../chunk-GP3MDKGE.js');
|
|
28
|
+
require('../chunk-AHXRHXZ2.js');
|
|
29
29
|
require('../chunk-LXKSUWAV.js');
|
|
30
30
|
require('../chunk-IBS6NI7D.js');
|
|
31
31
|
require('../chunk-WLS4D6VG.js');
|
|
@@ -55,5 +55,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
exports.CommonProvider =
|
|
58
|
+
exports.CommonProvider = _chunkXRBK4J6Ujs.CommonProvider; exports.CompanyProvider = _chunkXRBK4J6Ujs.CompanyProvider; exports.CurrentUserProvider = _chunkXRBK4J6Ujs.CurrentUserProvider; exports.DEFAULT_ONBOARDING_LABELS = _chunkXRBK4J6Ujs.DEFAULT_ONBOARDING_LABELS; exports.HeaderChildrenProvider = _chunkXRBK4J6Ujs.HeaderChildrenProvider; exports.NotificationContextProvider = _chunkXRBK4J6Ujs.NotificationContextProvider; exports.OnboardingProvider = _chunkXRBK4J6Ujs.OnboardingProvider; exports.RoleProvider = _chunkXRBK4J6Ujs.RoleProvider; exports.SharedProvider = _chunkXRBK4J6Ujs.SharedProvider; exports.SocketContext = _chunkXRBK4J6Ujs.SocketContext; exports.SocketProvider = _chunkXRBK4J6Ujs.SocketProvider; exports.UserProvider = _chunkXRBK4J6Ujs.UserProvider; exports.recentPagesAtom = _chunkXRBK4J6Ujs.recentPagesAtom; exports.useCommonContext = _chunkXRBK4J6Ujs.useCommonContext; exports.useCompanyContext = _chunkXRBK4J6Ujs.useCompanyContext; exports.useCurrentUserContext = _chunkXRBK4J6Ujs.useCurrentUserContext; exports.useHeaderChildren = _chunkXRBK4J6Ujs.useHeaderChildren; exports.useNotificationContext = _chunkXRBK4J6Ujs.useNotificationContext; exports.useOnboarding = _chunkXRBK4J6Ujs.useOnboarding; exports.useRoleContext = _chunkXRBK4J6Ujs.useRoleContext; exports.useSharedContext = _chunkXRBK4J6Ujs.useSharedContext; exports.useSocketContext = _chunkXRBK4J6Ujs.useSocketContext; exports.useUserContext = _chunkXRBK4J6Ujs.useUserContext;
|
|
59
59
|
//# sourceMappingURL=index.js.map
|
package/dist/contexts/index.mjs
CHANGED
|
@@ -23,9 +23,9 @@ import {
|
|
|
23
23
|
useSharedContext,
|
|
24
24
|
useSocketContext,
|
|
25
25
|
useUserContext
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
26
|
+
} from "../chunk-EA3EPEDL.mjs";
|
|
27
|
+
import "../chunk-4HMQNMP6.mjs";
|
|
28
|
+
import "../chunk-ZMGUP2AI.mjs";
|
|
29
29
|
import "../chunk-AUXK7QSA.mjs";
|
|
30
30
|
import "../chunk-C7C7VY4F.mjs";
|
|
31
31
|
import "../chunk-GCQUTWZ2.mjs";
|
package/dist/core/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../Api
|
|
|
3
3
|
import { A as ApiRequestDataTypeInterface, F as FieldSelector } from '../ApiRequestDataTypeInterface-CUKFDBx2.mjs';
|
|
4
4
|
export { G as GetterKeys, c as createJsonApiInclusion } from '../ApiRequestDataTypeInterface-CUKFDBx2.mjs';
|
|
5
5
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-zeewugD7.mjs';
|
|
6
|
-
import { A as AbstractService, d as TwoFactorChallengeInterface, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service-
|
|
7
|
-
export { b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, T as TotalRef, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service-
|
|
6
|
+
import { A as AbstractService, d as TwoFactorChallengeInterface, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service-GQa6F4Ks.mjs';
|
|
7
|
+
export { b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, T as TotalRef, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service-GQa6F4Ks.mjs';
|
|
8
8
|
import { M as ModuleWithPermissions, f as PermissionUser, A as Action, e as PermissionModule, g as ModuleFactory, j as RoleInterface, R as RoleInput, U as UserInterface, h as CompanyInterface, k as UserInput, C as CompanyInput, N as NotificationInterface, i as NotificationInput } from '../notification.interface-D241WNUx.mjs';
|
|
9
9
|
export { c as ModuleDefinition, b as ModulePermissionDefinition, a as PageUrl, P as PermissionCheck, d as PermissionConfig } from '../notification.interface-D241WNUx.mjs';
|
|
10
10
|
export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
@@ -18,8 +18,8 @@ import { PartialBlock } from '@blocknote/core';
|
|
|
18
18
|
import { T as TotpAuthenticatorInterface, P as PasskeyInterface } from '../AuthComponent-D_L2S4g9.mjs';
|
|
19
19
|
export { A as AuthComponent, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from '../AuthComponent-D_L2S4g9.mjs';
|
|
20
20
|
import { ExternalToast } from 'sonner';
|
|
21
|
-
import { b as AuthInterface, A as AuthInput } from '../auth.interface-
|
|
22
|
-
export { a as AuthQuery } from '../auth.interface-
|
|
21
|
+
import { b as AuthInterface, A as AuthInput } from '../auth.interface-quk7psiq.mjs';
|
|
22
|
+
export { a as AuthQuery } from '../auth.interface-quk7psiq.mjs';
|
|
23
23
|
import { PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON, PublicKeyCredentialRequestOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/browser';
|
|
24
24
|
import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface, q as PromotionCodeValidationResult } from '../stripe-promotion-code.interface-Dnm2DJKQ.mjs';
|
|
25
25
|
export { c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-promotion-code.interface-Dnm2DJKQ.mjs';
|
|
@@ -232,6 +232,8 @@ interface FoundationModuleDefinitions {
|
|
|
232
232
|
OAuth: ModuleWithPermissions;
|
|
233
233
|
Waitlist: ModuleWithPermissions;
|
|
234
234
|
WaitlistStats: ModuleWithPermissions;
|
|
235
|
+
Referral: ModuleWithPermissions;
|
|
236
|
+
ReferralStats: ModuleWithPermissions;
|
|
235
237
|
TotpAuthenticator: ModuleWithPermissions;
|
|
236
238
|
TotpSetup: ModuleWithPermissions;
|
|
237
239
|
TotpVerify: ModuleWithPermissions;
|
|
@@ -1977,4 +1979,39 @@ declare const WaitlistModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
|
1977
1979
|
|
|
1978
1980
|
declare const WaitlistStatsModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
1979
1981
|
|
|
1980
|
-
|
|
1982
|
+
interface ReferralStatsInterface {
|
|
1983
|
+
referralCode: string;
|
|
1984
|
+
completedReferrals: number;
|
|
1985
|
+
totalTokensEarned: number;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
declare class ReferralStats extends AbstractApiData implements ReferralStatsInterface {
|
|
1989
|
+
private _referralCode?;
|
|
1990
|
+
private _completedReferrals?;
|
|
1991
|
+
private _totalTokensEarned?;
|
|
1992
|
+
get referralCode(): string;
|
|
1993
|
+
get completedReferrals(): number;
|
|
1994
|
+
get totalTokensEarned(): number;
|
|
1995
|
+
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
1996
|
+
createJsonApi(): {};
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
declare class ReferralService extends AbstractService {
|
|
2000
|
+
/**
|
|
2001
|
+
* Get referral stats for the current company.
|
|
2002
|
+
* Returns deserialized attributes from JSON:API response.
|
|
2003
|
+
*/
|
|
2004
|
+
static getMyReferralStats(): Promise<ReferralStatsInterface>;
|
|
2005
|
+
/**
|
|
2006
|
+
* Send a referral invitation email.
|
|
2007
|
+
* Uses overridesJsonApiCreation since the endpoint accepts a simple JSON body, not JSON:API format.
|
|
2008
|
+
* Returns 204 No Content on success.
|
|
2009
|
+
*/
|
|
2010
|
+
static sendReferralEmail(email: string): Promise<void>;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
declare const ReferralModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
2014
|
+
|
|
2015
|
+
declare const ReferralStatsModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
2016
|
+
|
|
2017
|
+
export { AbstractApiData, AbstractService, Action, ApiData, ApiDataInterface, ApiRequestDataTypeInterface, ApiResponseInterface, type AppModuleDefinitions, Auth, AuthInput, AuthInterface, AuthModule, AuthorModule, BackupCodeVerify, type BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, type BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, type ClientNextRef, type ClientPreviousRef, type ClientSelfRef, type ClientTotalRef, Company, CompanyFields, CompanyInput, CompanyInterface, CompanyModule, Content, ContentInput, ContentInterface, ContentModule, DataClassRegistry as DataClass, DataClassRegistry, type DiffBlock, type DiffResult, EndpointCreator, type EndpointQuery, type EntityObject, Feature, FeatureInterface, FeatureModule, FieldSelector, type FormatOption, type FoundationModuleDefinitions, type InviteValidation, InvoiceStatus, JsonApiDataFactory, JsonApiHydratedDataInterface, MeterInterface, MeterSummaryInterface, Module, type ModuleDefinitions, ModuleFactory, ModuleInterface, ModuleModule, ModuleRegistrar, ModuleRegistry, ModuleWithPermissions, Modules, NextRef, Notification, NotificationFields, NotificationInput, NotificationInterface, NotificationModule, OAuthClient, OAuthClientCreateRequest, OAuthClientCreateResponse, OAuthClientInput, OAuthClientInterface, OAuthConsentInfo, OAuthConsentRequest, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, type PasskeyAuthenticationOptionsInput, type PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyInterface, PasskeyModule, PasskeyRegistrationOptions, type PasskeyRegistrationOptionsInput, type PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, type PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, type PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, type PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PaymentMethodInterface, PermissionModule, PermissionUser, PreviousRef, PriceRecurring, PromotionCodeValidationResult, ProrationPreviewInterface, Push, type PushInput, type PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, ReportUsageInput, Role, RoleInput, RoleInterface, RoleModule, S3, S3Input, S3Interface, S3Module, type SearchResultInterface, StripeCustomer, StripeCustomerInterface, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceInterface, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceInput, StripePriceInterface, StripePriceModule, StripePriceService, StripeProduct, StripeProductInput, StripeProductInterface, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionCreateResponse, StripeSubscriptionInput, StripeSubscriptionInterface, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageInterface, StripeUsageModule, StripeUsageService, SubscriptionStatus, TableOptions, type ToastOptions, TotpAuthenticator, TotpAuthenticatorInterface, TotpAuthenticatorModule, TotpSetup, type TotpSetupInput, type TotpSetupInterface, TotpSetupModule, TotpVerify, type TotpVerifyInput, TotpVerifyLogin, type TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, type TwoFactorChallengeInput, TwoFactorChallengeInterface, TwoFactorChallengeModule, TwoFactorEnable, type TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, type TwoFactorStatusInterface, TwoFactorStatusModule, UsageSummaryInterface, User, UserInput, UserInterface, UserModule, type UserObject, Waitlist, type WaitlistInput, type WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, type WaitlistStatsInterface, WaitlistStatsModule, type WaitlistStatus, type WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from '../Api
|
|
|
3
3
|
import { A as ApiRequestDataTypeInterface, F as FieldSelector } from '../ApiRequestDataTypeInterface-CUKFDBx2.js';
|
|
4
4
|
export { G as GetterKeys, c as createJsonApiInclusion } from '../ApiRequestDataTypeInterface-CUKFDBx2.js';
|
|
5
5
|
import { A as ApiResponseInterface } from '../ApiResponseInterface-CAIAeP5d.js';
|
|
6
|
-
import { A as AbstractService, d as TwoFactorChallengeInterface, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service
|
|
7
|
-
export { b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, T as TotalRef, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service
|
|
6
|
+
import { A as AbstractService, d as TwoFactorChallengeInterface, N as NextRef, P as PreviousRef, j as S3Interface, i as S3Input } from '../s3.service--8IFzWsB.js';
|
|
7
|
+
export { b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, f as NotificationService, h as PushService, R as RoleService, k as S3Service, S as SelfRef, T as TotalRef, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from '../s3.service--8IFzWsB.js';
|
|
8
8
|
import { M as ModuleWithPermissions, f as PermissionUser, A as Action, e as PermissionModule, g as ModuleFactory, j as RoleInterface, R as RoleInput, U as UserInterface, h as CompanyInterface, k as UserInput, C as CompanyInput, N as NotificationInterface, i as NotificationInput } from '../notification.interface-CR2PuV6Y.js';
|
|
9
9
|
export { c as ModuleDefinition, b as ModulePermissionDefinition, a as PageUrl, P as PermissionCheck, d as PermissionConfig } from '../notification.interface-CR2PuV6Y.js';
|
|
10
10
|
export { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
@@ -18,8 +18,8 @@ import { PartialBlock } from '@blocknote/core';
|
|
|
18
18
|
import { T as TotpAuthenticatorInterface, P as PasskeyInterface } from '../AuthComponent-CU0B9hdO.js';
|
|
19
19
|
export { A as AuthComponent, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from '../AuthComponent-CU0B9hdO.js';
|
|
20
20
|
import { ExternalToast } from 'sonner';
|
|
21
|
-
import { b as AuthInterface, A as AuthInput } from '../auth.interface-
|
|
22
|
-
export { a as AuthQuery } from '../auth.interface-
|
|
21
|
+
import { b as AuthInterface, A as AuthInput } from '../auth.interface-DgpoGNZN.js';
|
|
22
|
+
export { a as AuthQuery } from '../auth.interface-DgpoGNZN.js';
|
|
23
23
|
import { PublicKeyCredentialCreationOptionsJSON, RegistrationResponseJSON, PublicKeyCredentialRequestOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/browser';
|
|
24
24
|
import { M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, S as StripeCustomerInterface, a as StripeInvoiceInterface, j as StripeSubscriptionInterface, I as InvoiceStatus, g as StripeProductInterface, d as StripePriceInterface, h as StripeProductInput, e as PriceRecurring, f as StripePriceInput, i as SubscriptionStatus, k as StripeSubscriptionInput, m as StripeSubscriptionCreateResponse, b as ProrationPreviewInterface, n as StripeUsageInterface, R as ReportUsageInput, U as UsageSummaryInterface, q as PromotionCodeValidationResult } from '../stripe-promotion-code.interface-BcJty0rv.js';
|
|
25
25
|
export { c as ProrationLineItem, l as StripeSubscriptionCreateMeta, p as UsageRecordInterface } from '../stripe-promotion-code.interface-BcJty0rv.js';
|
|
@@ -232,6 +232,8 @@ interface FoundationModuleDefinitions {
|
|
|
232
232
|
OAuth: ModuleWithPermissions;
|
|
233
233
|
Waitlist: ModuleWithPermissions;
|
|
234
234
|
WaitlistStats: ModuleWithPermissions;
|
|
235
|
+
Referral: ModuleWithPermissions;
|
|
236
|
+
ReferralStats: ModuleWithPermissions;
|
|
235
237
|
TotpAuthenticator: ModuleWithPermissions;
|
|
236
238
|
TotpSetup: ModuleWithPermissions;
|
|
237
239
|
TotpVerify: ModuleWithPermissions;
|
|
@@ -1977,4 +1979,39 @@ declare const WaitlistModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
|
1977
1979
|
|
|
1978
1980
|
declare const WaitlistStatsModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
1979
1981
|
|
|
1980
|
-
|
|
1982
|
+
interface ReferralStatsInterface {
|
|
1983
|
+
referralCode: string;
|
|
1984
|
+
completedReferrals: number;
|
|
1985
|
+
totalTokensEarned: number;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
declare class ReferralStats extends AbstractApiData implements ReferralStatsInterface {
|
|
1989
|
+
private _referralCode?;
|
|
1990
|
+
private _completedReferrals?;
|
|
1991
|
+
private _totalTokensEarned?;
|
|
1992
|
+
get referralCode(): string;
|
|
1993
|
+
get completedReferrals(): number;
|
|
1994
|
+
get totalTokensEarned(): number;
|
|
1995
|
+
rehydrate(data: JsonApiHydratedDataInterface): this;
|
|
1996
|
+
createJsonApi(): {};
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
declare class ReferralService extends AbstractService {
|
|
2000
|
+
/**
|
|
2001
|
+
* Get referral stats for the current company.
|
|
2002
|
+
* Returns deserialized attributes from JSON:API response.
|
|
2003
|
+
*/
|
|
2004
|
+
static getMyReferralStats(): Promise<ReferralStatsInterface>;
|
|
2005
|
+
/**
|
|
2006
|
+
* Send a referral invitation email.
|
|
2007
|
+
* Uses overridesJsonApiCreation since the endpoint accepts a simple JSON body, not JSON:API format.
|
|
2008
|
+
* Returns 204 No Content on success.
|
|
2009
|
+
*/
|
|
2010
|
+
static sendReferralEmail(email: string): Promise<void>;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
declare const ReferralModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
2014
|
+
|
|
2015
|
+
declare const ReferralStatsModule: (factory: ModuleFactory) => ModuleWithPermissions;
|
|
2016
|
+
|
|
2017
|
+
export { AbstractApiData, AbstractService, Action, ApiData, ApiDataInterface, ApiRequestDataTypeInterface, ApiResponseInterface, type AppModuleDefinitions, Auth, AuthInput, AuthInterface, AuthModule, AuthorModule, BackupCodeVerify, type BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, type BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, type ClientNextRef, type ClientPreviousRef, type ClientSelfRef, type ClientTotalRef, Company, CompanyFields, CompanyInput, CompanyInterface, CompanyModule, Content, ContentInput, ContentInterface, ContentModule, DataClassRegistry as DataClass, DataClassRegistry, type DiffBlock, type DiffResult, EndpointCreator, type EndpointQuery, type EntityObject, Feature, FeatureInterface, FeatureModule, FieldSelector, type FormatOption, type FoundationModuleDefinitions, type InviteValidation, InvoiceStatus, JsonApiDataFactory, JsonApiHydratedDataInterface, MeterInterface, MeterSummaryInterface, Module, type ModuleDefinitions, ModuleFactory, ModuleInterface, ModuleModule, ModuleRegistrar, ModuleRegistry, ModuleWithPermissions, Modules, NextRef, Notification, NotificationFields, NotificationInput, NotificationInterface, NotificationModule, OAuthClient, OAuthClientCreateRequest, OAuthClientCreateResponse, OAuthClientInput, OAuthClientInterface, OAuthConsentInfo, OAuthConsentRequest, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, type PasskeyAuthenticationOptionsInput, type PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyInterface, PasskeyModule, PasskeyRegistrationOptions, type PasskeyRegistrationOptionsInput, type PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, type PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, type PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, type PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PaymentMethodInterface, PermissionModule, PermissionUser, PreviousRef, PriceRecurring, PromotionCodeValidationResult, ProrationPreviewInterface, Push, type PushInput, type PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, ReportUsageInput, Role, RoleInput, RoleInterface, RoleModule, S3, S3Input, S3Interface, S3Module, type SearchResultInterface, StripeCustomer, StripeCustomerInterface, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceInterface, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceInput, StripePriceInterface, StripePriceModule, StripePriceService, StripeProduct, StripeProductInput, StripeProductInterface, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionCreateResponse, StripeSubscriptionInput, StripeSubscriptionInterface, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageInterface, StripeUsageModule, StripeUsageService, SubscriptionStatus, TableOptions, type ToastOptions, TotpAuthenticator, TotpAuthenticatorInterface, TotpAuthenticatorModule, TotpSetup, type TotpSetupInput, type TotpSetupInterface, TotpSetupModule, TotpVerify, type TotpVerifyInput, TotpVerifyLogin, type TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, type TwoFactorChallengeInput, TwoFactorChallengeInterface, TwoFactorChallengeModule, TwoFactorEnable, type TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, type TwoFactorStatusInterface, TwoFactorStatusModule, UsageSummaryInterface, User, UserInput, UserInterface, UserModule, type UserObject, Waitlist, type WaitlistInput, type WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, type WaitlistStatsInterface, WaitlistStatsModule, type WaitlistStatus, type WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema };
|
package/dist/core/index.js
CHANGED
|
@@ -149,7 +149,11 @@
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
var _chunkAHXRHXZ2js = require('../chunk-AHXRHXZ2.js');
|
|
153
157
|
require('../chunk-LXKSUWAV.js');
|
|
154
158
|
require('../chunk-IBS6NI7D.js');
|
|
155
159
|
|
|
@@ -325,5 +329,9 @@ require('../chunk-7QVYU63E.js');
|
|
|
325
329
|
|
|
326
330
|
|
|
327
331
|
|
|
328
|
-
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
exports.AVAILABLE_OAUTH_SCOPES = _chunkAHXRHXZ2js.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkAHXRHXZ2js.AbstractApiData; exports.AbstractService = _chunkAHXRHXZ2js.AbstractService; exports.Action = _chunkAHXRHXZ2js.Action; exports.Auth = _chunkAHXRHXZ2js.Auth; exports.AuthComponent = _chunkAHXRHXZ2js.AuthComponent; exports.AuthModule = _chunkAHXRHXZ2js.AuthModule; exports.AuthService = _chunkAHXRHXZ2js.AuthService; exports.AuthorModule = _chunkAHXRHXZ2js.AuthorModule; exports.BackupCodeVerify = _chunkAHXRHXZ2js.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkAHXRHXZ2js.BackupCodeVerifyModule; exports.Billing = _chunkAHXRHXZ2js.Billing; exports.BillingModule = _chunkAHXRHXZ2js.BillingModule; exports.BillingService = _chunkAHXRHXZ2js.BillingService; exports.BlockNoteDiffUtil = _chunkAHXRHXZ2js.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkAHXRHXZ2js.BlockNoteWordDiffRendererUtil; exports.ClientAbstractService = _chunkAHXRHXZ2js.ClientAbstractService; exports.ClientHttpMethod = _chunkAHXRHXZ2js.ClientHttpMethod; exports.Company = _chunkAHXRHXZ2js.Company; exports.CompanyFields = _chunkAHXRHXZ2js.CompanyFields; exports.CompanyModule = _chunkAHXRHXZ2js.CompanyModule; exports.CompanyService = _chunkAHXRHXZ2js.CompanyService; exports.Content = _chunkAHXRHXZ2js.Content; exports.ContentFields = _chunkAHXRHXZ2js.ContentFields; exports.ContentModule = _chunkAHXRHXZ2js.ContentModule; exports.ContentService = _chunkAHXRHXZ2js.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkAHXRHXZ2js.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkWLS4D6VGjs.DataClassRegistry; exports.DataClassRegistry = _chunkWLS4D6VGjs.DataClassRegistry; exports.EndpointCreator = _chunkAHXRHXZ2js.EndpointCreator; exports.Feature = _chunkAHXRHXZ2js.Feature; exports.FeatureModule = _chunkAHXRHXZ2js.FeatureModule; exports.FeatureService = _chunkAHXRHXZ2js.FeatureService; exports.HttpMethod = _chunkAHXRHXZ2js.HttpMethod; exports.InvoiceStatus = _chunkAHXRHXZ2js.InvoiceStatus; exports.JsonApiDataFactory = _chunkWLS4D6VGjs.JsonApiDataFactory; exports.Module = _chunkAHXRHXZ2js.Module; exports.ModuleModule = _chunkAHXRHXZ2js.ModuleModule; exports.ModuleRegistrar = _chunkAHXRHXZ2js.ModuleRegistrar; exports.ModuleRegistry = _chunkAHXRHXZ2js.ModuleRegistry; exports.Modules = _chunkAHXRHXZ2js.Modules; exports.Notification = _chunkAHXRHXZ2js.Notification; exports.NotificationFields = _chunkAHXRHXZ2js.NotificationFields; exports.NotificationModule = _chunkAHXRHXZ2js.NotificationModule; exports.NotificationService = _chunkAHXRHXZ2js.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkAHXRHXZ2js.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkAHXRHXZ2js.OAuthClient; exports.OAuthModule = _chunkAHXRHXZ2js.OAuthModule; exports.OAuthService = _chunkAHXRHXZ2js.OAuthService; exports.Passkey = _chunkAHXRHXZ2js.Passkey; exports.PasskeyAuthenticationOptions = _chunkAHXRHXZ2js.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkAHXRHXZ2js.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkAHXRHXZ2js.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkAHXRHXZ2js.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkAHXRHXZ2js.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkAHXRHXZ2js.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkAHXRHXZ2js.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkAHXRHXZ2js.PasskeyRename; exports.PasskeyRenameModule = _chunkAHXRHXZ2js.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkAHXRHXZ2js.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkAHXRHXZ2js.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkAHXRHXZ2js.PaymentMethod; exports.Push = _chunkAHXRHXZ2js.Push; exports.PushModule = _chunkAHXRHXZ2js.PushModule; exports.PushService = _chunkAHXRHXZ2js.PushService; exports.ReferralModule = _chunkAHXRHXZ2js.ReferralModule; exports.ReferralService = _chunkAHXRHXZ2js.ReferralService; exports.ReferralStats = _chunkAHXRHXZ2js.ReferralStats; exports.ReferralStatsModule = _chunkAHXRHXZ2js.ReferralStatsModule; exports.RehydrationFactory = _chunkAHXRHXZ2js.RehydrationFactory; exports.Role = _chunkAHXRHXZ2js.Role; exports.RoleFields = _chunkAHXRHXZ2js.RoleFields; exports.RoleModule = _chunkAHXRHXZ2js.RoleModule; exports.RoleService = _chunkAHXRHXZ2js.RoleService; exports.S3 = _chunkAHXRHXZ2js.S3; exports.S3Module = _chunkAHXRHXZ2js.S3Module; exports.S3Service = _chunkAHXRHXZ2js.S3Service; exports.StripeCustomer = _chunkAHXRHXZ2js.StripeCustomer; exports.StripeCustomerModule = _chunkAHXRHXZ2js.StripeCustomerModule; exports.StripeCustomerService = _chunkAHXRHXZ2js.StripeCustomerService; exports.StripeInvoice = _chunkAHXRHXZ2js.StripeInvoice; exports.StripeInvoiceModule = _chunkAHXRHXZ2js.StripeInvoiceModule; exports.StripeInvoiceService = _chunkAHXRHXZ2js.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkAHXRHXZ2js.StripePaymentMethodModule; exports.StripePrice = _chunkAHXRHXZ2js.StripePrice; exports.StripePriceModule = _chunkAHXRHXZ2js.StripePriceModule; exports.StripePriceService = _chunkAHXRHXZ2js.StripePriceService; exports.StripeProduct = _chunkAHXRHXZ2js.StripeProduct; exports.StripeProductModule = _chunkAHXRHXZ2js.StripeProductModule; exports.StripeProductService = _chunkAHXRHXZ2js.StripeProductService; exports.StripePromotionCode = _chunkAHXRHXZ2js.StripePromotionCode; exports.StripePromotionCodeModule = _chunkAHXRHXZ2js.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkAHXRHXZ2js.StripePromotionCodeService; exports.StripeSubscription = _chunkAHXRHXZ2js.StripeSubscription; exports.StripeSubscriptionModule = _chunkAHXRHXZ2js.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkAHXRHXZ2js.StripeSubscriptionService; exports.StripeUsage = _chunkAHXRHXZ2js.StripeUsage; exports.StripeUsageModule = _chunkAHXRHXZ2js.StripeUsageModule; exports.StripeUsageService = _chunkAHXRHXZ2js.StripeUsageService; exports.SubscriptionStatus = _chunkAHXRHXZ2js.SubscriptionStatus; exports.TableOptions = _chunkAHXRHXZ2js.TableOptions; exports.TotpAuthenticator = _chunkAHXRHXZ2js.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkAHXRHXZ2js.TotpAuthenticatorModule; exports.TotpSetup = _chunkAHXRHXZ2js.TotpSetup; exports.TotpSetupModule = _chunkAHXRHXZ2js.TotpSetupModule; exports.TotpVerify = _chunkAHXRHXZ2js.TotpVerify; exports.TotpVerifyLogin = _chunkAHXRHXZ2js.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkAHXRHXZ2js.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkAHXRHXZ2js.TotpVerifyModule; exports.TwoFactorChallenge = _chunkAHXRHXZ2js.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkAHXRHXZ2js.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkAHXRHXZ2js.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkAHXRHXZ2js.TwoFactorEnableModule; exports.TwoFactorService = _chunkAHXRHXZ2js.TwoFactorService; exports.TwoFactorStatus = _chunkAHXRHXZ2js.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkAHXRHXZ2js.TwoFactorStatusModule; exports.User = _chunkAHXRHXZ2js.User; exports.UserFields = _chunkAHXRHXZ2js.UserFields; exports.UserModule = _chunkAHXRHXZ2js.UserModule; exports.UserService = _chunkAHXRHXZ2js.UserService; exports.Waitlist = _chunkAHXRHXZ2js.Waitlist; exports.WaitlistModule = _chunkAHXRHXZ2js.WaitlistModule; exports.WaitlistService = _chunkAHXRHXZ2js.WaitlistService; exports.WaitlistStats = _chunkAHXRHXZ2js.WaitlistStats; exports.WaitlistStatsModule = _chunkAHXRHXZ2js.WaitlistStatsModule; exports.checkPermissions = _chunkAHXRHXZ2js.checkPermissions; exports.checkPermissionsFromServer = _chunkAHXRHXZ2js.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkAHXRHXZ2js.clearLastApiTotal; exports.cn = _chunkAHXRHXZ2js.cn; exports.composeRefs = _chunkAHXRHXZ2js.composeRefs; exports.createJsonApiInclusion = _chunkAHXRHXZ2js.createJsonApiInclusion; exports.dismissToast = _chunkAHXRHXZ2js.dismissToast; exports.entityObjectSchema = _chunkAHXRHXZ2js.entityObjectSchema; exports.exists = _chunkAHXRHXZ2js.exists; exports.formatDate = _chunkAHXRHXZ2js.formatDate; exports.getBootstrapper = _chunkWLS4D6VGjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkAHXRHXZ2js.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkAHXRHXZ2js.getGlobalErrorHandler; exports.getIcon = _chunkAHXRHXZ2js.getIcon; exports.getIconByModule = _chunkAHXRHXZ2js.getIconByModule; exports.getIconByModuleName = _chunkAHXRHXZ2js.getIconByModuleName; exports.getLastApiTotal = _chunkAHXRHXZ2js.getLastApiTotal; exports.getLucideIcon = _chunkAHXRHXZ2js.getLucideIcon; exports.getLucideIconByModule = _chunkAHXRHXZ2js.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkAHXRHXZ2js.getLucideIconByModuleName; exports.getTableComponents = _chunkAHXRHXZ2js.getTableComponents; exports.getTableOptions = _chunkAHXRHXZ2js.getTableOptions; exports.getValueFromPath = _chunkAHXRHXZ2js.getValueFromPath; exports.hasBootstrapper = _chunkWLS4D6VGjs.hasBootstrapper; exports.rehydrate = _chunkAHXRHXZ2js.rehydrate; exports.rehydrateList = _chunkAHXRHXZ2js.rehydrateList; exports.resetBootstrapStore = _chunkWLS4D6VGjs.resetBootstrapStore; exports.setBootstrapper = _chunkWLS4D6VGjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkAHXRHXZ2js.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkAHXRHXZ2js.setGlobalErrorHandler; exports.showCustomToast = _chunkAHXRHXZ2js.showCustomToast; exports.showError = _chunkAHXRHXZ2js.showError; exports.showToast = _chunkAHXRHXZ2js.showToast; exports.translateData = _chunkWLS4D6VGjs.translateData; exports.translateResponse = _chunkWLS4D6VGjs.translateResponse; exports.tryBootstrap = _chunkWLS4D6VGjs.tryBootstrap; exports.useComposedRefs = _chunkAHXRHXZ2js.useComposedRefs; exports.useIsMobile = _chunkAHXRHXZ2js.useIsMobile; exports.userObjectSchema = _chunkAHXRHXZ2js.userObjectSchema;
|
|
329
337
|
//# sourceMappingURL=index.js.map
|
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"],"names":[],"mappings":"AAAA;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"],"names":[],"mappings":"AAAA;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;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;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;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;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,iuTAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/core/index.js"}
|
package/dist/core/index.mjs
CHANGED
|
@@ -61,6 +61,10 @@ import {
|
|
|
61
61
|
Push,
|
|
62
62
|
PushModule,
|
|
63
63
|
PushService,
|
|
64
|
+
ReferralModule,
|
|
65
|
+
ReferralService,
|
|
66
|
+
ReferralStats,
|
|
67
|
+
ReferralStatsModule,
|
|
64
68
|
RehydrationFactory,
|
|
65
69
|
Role,
|
|
66
70
|
RoleFields,
|
|
@@ -149,7 +153,7 @@ import {
|
|
|
149
153
|
useComposedRefs,
|
|
150
154
|
useIsMobile,
|
|
151
155
|
userObjectSchema
|
|
152
|
-
} from "../chunk-
|
|
156
|
+
} from "../chunk-ZMGUP2AI.mjs";
|
|
153
157
|
import "../chunk-AUXK7QSA.mjs";
|
|
154
158
|
import "../chunk-C7C7VY4F.mjs";
|
|
155
159
|
import {
|
|
@@ -230,6 +234,10 @@ export {
|
|
|
230
234
|
Push,
|
|
231
235
|
PushModule,
|
|
232
236
|
PushService,
|
|
237
|
+
ReferralModule,
|
|
238
|
+
ReferralService,
|
|
239
|
+
ReferralStats,
|
|
240
|
+
ReferralStatsModule,
|
|
233
241
|
RehydrationFactory,
|
|
234
242
|
Role,
|
|
235
243
|
RoleFields,
|
package/dist/index.d.mts
CHANGED
|
@@ -2,14 +2,14 @@ export { A as ApiData } from './ApiData-DPKNfY-9.mjs';
|
|
|
2
2
|
export { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.mjs';
|
|
3
3
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CUKFDBx2.mjs';
|
|
4
4
|
export { A as ApiResponseInterface } from './ApiResponseInterface-zeewugD7.mjs';
|
|
5
|
-
export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
|
|
6
|
-
export { A as AbstractService, b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, T as TotalRef, d as TwoFactorChallengeInterface, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-
|
|
5
|
+
export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
|
|
6
|
+
export { A as AbstractService, b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, T as TotalRef, d as TwoFactorChallengeInterface, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-GQa6F4Ks.mjs';
|
|
7
7
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
8
8
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.mjs';
|
|
9
9
|
export { ClassValue } from 'clsx';
|
|
10
10
|
export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-D_L2S4g9.mjs';
|
|
11
11
|
export { A as Action, C as CompanyInput, h as CompanyInterface, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, i as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, j as RoleInterface, k as UserInput, U as UserInterface } from './notification.interface-D241WNUx.mjs';
|
|
12
|
-
export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-
|
|
12
|
+
export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-quk7psiq.mjs';
|
|
13
13
|
export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-Dnm2DJKQ.mjs';
|
|
14
14
|
export { C as ContentInput, a as ContentInterface } from './content.interface-b-mzkL_q.mjs';
|
|
15
15
|
export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-BxFFOPNq.mjs';
|
|
@@ -100,7 +100,7 @@ interface TokenHandler {
|
|
|
100
100
|
*
|
|
101
101
|
* @example
|
|
102
102
|
* ```typescript
|
|
103
|
-
* import { configureAuth } from "@carlonicora/nextjs-jsonapi
|
|
103
|
+
* import { configureAuth } from "@carlonicora/nextjs-jsonapi";
|
|
104
104
|
* import { updateToken, removeToken } from "@/features/auth/utils/AuthCookies";
|
|
105
105
|
*
|
|
106
106
|
* configureAuth({ updateToken, removeToken });
|
|
@@ -113,4 +113,65 @@ declare function configureAuth(handler: TokenHandler): void;
|
|
|
113
113
|
*/
|
|
114
114
|
declare function getTokenHandler(): TokenHandler | null;
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Configuration interface for frontend referral feature.
|
|
118
|
+
*/
|
|
119
|
+
interface ReferralConfig {
|
|
120
|
+
/**
|
|
121
|
+
* Whether the referral feature is enabled.
|
|
122
|
+
* When false, components render nothing and hooks return null.
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
enabled?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Name of the cookie used to store referral codes.
|
|
128
|
+
* @default "referral_code"
|
|
129
|
+
*/
|
|
130
|
+
cookieName?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Number of days the referral cookie is valid.
|
|
133
|
+
* @default 30
|
|
134
|
+
*/
|
|
135
|
+
cookieDays?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Query parameter name for referral code in URL.
|
|
138
|
+
* @default "ref"
|
|
139
|
+
*/
|
|
140
|
+
urlParamName?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Base URL for referral links.
|
|
143
|
+
* @default window.location.origin (client-side only)
|
|
144
|
+
*/
|
|
145
|
+
referralUrlBase?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Path to append to base URL for referral links.
|
|
148
|
+
* @default "/"
|
|
149
|
+
*/
|
|
150
|
+
referralPath?: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Configure referral feature settings.
|
|
154
|
+
* Call this at app startup to enable and configure referral functionality.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```typescript
|
|
158
|
+
* import { configureReferral } from "@carlonicora/nextjs-jsonapi";
|
|
159
|
+
*
|
|
160
|
+
* configureReferral({
|
|
161
|
+
* enabled: process.env.NEXT_PUBLIC_REFERRAL_ENABLED === 'true',
|
|
162
|
+
* cookieDays: 30,
|
|
163
|
+
* });
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
declare function configureReferral(config: ReferralConfig): void;
|
|
167
|
+
/**
|
|
168
|
+
* Get the current referral configuration.
|
|
169
|
+
* @internal
|
|
170
|
+
*/
|
|
171
|
+
declare function getReferralConfig(): Required<ReferralConfig>;
|
|
172
|
+
/**
|
|
173
|
+
* Check if referral feature is enabled.
|
|
174
|
+
*/
|
|
175
|
+
declare function isReferralEnabled(): boolean;
|
|
176
|
+
|
|
177
|
+
export { type LoginConfig, type ReferralConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ export { A as ApiData } from './ApiData-DPKNfY-9.js';
|
|
|
2
2
|
export { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiDataInterface-DPP8s46n.js';
|
|
3
3
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CUKFDBx2.js';
|
|
4
4
|
export { A as ApiResponseInterface } from './ApiResponseInterface-CAIAeP5d.js';
|
|
5
|
-
export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, Push, PushInput, PushInterface, PushModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
|
|
6
|
-
export { A as AbstractService, b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, T as TotalRef, d as TwoFactorChallengeInterface, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service
|
|
5
|
+
export { AbstractApiData, AppModuleDefinitions, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, Push, PushInput, PushInterface, PushModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
|
|
6
|
+
export { A as AbstractService, b as AuthService, C as CompanyService, e as ContentService, F as FeatureService, H as HttpMethod, N as NextRef, f as NotificationService, P as PreviousRef, h as PushService, R as RoleService, i as S3Input, j as S3Interface, k as S3Service, S as SelfRef, T as TotalRef, d as TwoFactorChallengeInterface, U as UserService, c as clearLastApiTotal, a as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service--8IFzWsB.js';
|
|
7
7
|
export { B as BreadcrumbItemData } from './breadcrumb.item.data.interface-CgB4_1EE.js';
|
|
8
8
|
export { C as ContentFields, D as D3Link, a as D3Node, R as RoleFields, U as UserFields } from './content.fields-Ck5lkQ5d.js';
|
|
9
9
|
export { ClassValue } from 'clsx';
|
|
10
10
|
export { A as AuthComponent, P as PasskeyInterface, T as TotpAuthenticatorInterface, a as getIcon, g as getIconByModule, b as getIconByModuleName, c as getLucideIcon, d as getLucideIconByModule, e as getLucideIconByModuleName } from './AuthComponent-CU0B9hdO.js';
|
|
11
11
|
export { A as Action, C as CompanyInput, h as CompanyInterface, c as ModuleDefinition, g as ModuleFactory, b as ModulePermissionDefinition, M as ModuleWithPermissions, i as NotificationInput, N as NotificationInterface, a as PageUrl, P as PermissionCheck, d as PermissionConfig, e as PermissionModule, f as PermissionUser, R as RoleInput, j as RoleInterface, k as UserInput, U as UserInterface } from './notification.interface-CR2PuV6Y.js';
|
|
12
|
-
export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-
|
|
12
|
+
export { A as AuthInput, b as AuthInterface, a as AuthQuery } from './auth.interface-DgpoGNZN.js';
|
|
13
13
|
export { I as InvoiceStatus, M as MeterInterface, o as MeterSummaryInterface, P as PaymentMethodInterface, e as PriceRecurring, q as PromotionCodeValidationResult, c as ProrationLineItem, b as ProrationPreviewInterface, R as ReportUsageInput, S as StripeCustomerInterface, a as StripeInvoiceInterface, f as StripePriceInput, d as StripePriceInterface, h as StripeProductInput, g as StripeProductInterface, l as StripeSubscriptionCreateMeta, m as StripeSubscriptionCreateResponse, k as StripeSubscriptionInput, j as StripeSubscriptionInterface, n as StripeUsageInterface, i as SubscriptionStatus, p as UsageRecordInterface, U as UsageSummaryInterface } from './stripe-promotion-code.interface-BcJty0rv.js';
|
|
14
14
|
export { C as ContentInput, a as ContentInterface } from './content.interface-CpCDB1Uk.js';
|
|
15
15
|
export { F as FeatureInterface, M as ModuleInterface } from './feature.interface-CIWxo8NP.js';
|
|
@@ -100,7 +100,7 @@ interface TokenHandler {
|
|
|
100
100
|
*
|
|
101
101
|
* @example
|
|
102
102
|
* ```typescript
|
|
103
|
-
* import { configureAuth } from "@carlonicora/nextjs-jsonapi
|
|
103
|
+
* import { configureAuth } from "@carlonicora/nextjs-jsonapi";
|
|
104
104
|
* import { updateToken, removeToken } from "@/features/auth/utils/AuthCookies";
|
|
105
105
|
*
|
|
106
106
|
* configureAuth({ updateToken, removeToken });
|
|
@@ -113,4 +113,65 @@ declare function configureAuth(handler: TokenHandler): void;
|
|
|
113
113
|
*/
|
|
114
114
|
declare function getTokenHandler(): TokenHandler | null;
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Configuration interface for frontend referral feature.
|
|
118
|
+
*/
|
|
119
|
+
interface ReferralConfig {
|
|
120
|
+
/**
|
|
121
|
+
* Whether the referral feature is enabled.
|
|
122
|
+
* When false, components render nothing and hooks return null.
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
enabled?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Name of the cookie used to store referral codes.
|
|
128
|
+
* @default "referral_code"
|
|
129
|
+
*/
|
|
130
|
+
cookieName?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Number of days the referral cookie is valid.
|
|
133
|
+
* @default 30
|
|
134
|
+
*/
|
|
135
|
+
cookieDays?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Query parameter name for referral code in URL.
|
|
138
|
+
* @default "ref"
|
|
139
|
+
*/
|
|
140
|
+
urlParamName?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Base URL for referral links.
|
|
143
|
+
* @default window.location.origin (client-side only)
|
|
144
|
+
*/
|
|
145
|
+
referralUrlBase?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Path to append to base URL for referral links.
|
|
148
|
+
* @default "/"
|
|
149
|
+
*/
|
|
150
|
+
referralPath?: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Configure referral feature settings.
|
|
154
|
+
* Call this at app startup to enable and configure referral functionality.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```typescript
|
|
158
|
+
* import { configureReferral } from "@carlonicora/nextjs-jsonapi";
|
|
159
|
+
*
|
|
160
|
+
* configureReferral({
|
|
161
|
+
* enabled: process.env.NEXT_PUBLIC_REFERRAL_ENABLED === 'true',
|
|
162
|
+
* cookieDays: 30,
|
|
163
|
+
* });
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
166
|
+
declare function configureReferral(config: ReferralConfig): void;
|
|
167
|
+
/**
|
|
168
|
+
* Get the current referral configuration.
|
|
169
|
+
* @internal
|
|
170
|
+
*/
|
|
171
|
+
declare function getReferralConfig(): Required<ReferralConfig>;
|
|
172
|
+
/**
|
|
173
|
+
* Check if referral feature is enabled.
|
|
174
|
+
*/
|
|
175
|
+
declare function isReferralEnabled(): boolean;
|
|
176
|
+
|
|
177
|
+
export { type LoginConfig, type ReferralConfig, type RoleIdConfig, type TokenHandler, type TokenParams, configureAuth, configureLogin, configureReferral, configureRoles, getReferralConfig, getRoleId, getTokenHandler, isReferralEnabled, isRolesConfigured };
|