@carlonicora/nextjs-jsonapi 1.2.0 → 1.3.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/{BlockNoteEditor-CNXQ3WL3.js → BlockNoteEditor-7WYPN34K.js} +17 -17
- package/dist/{BlockNoteEditor-CNXQ3WL3.js.map → BlockNoteEditor-7WYPN34K.js.map} +1 -1
- package/dist/{BlockNoteEditor-DC33K4IF.mjs → BlockNoteEditor-V625C23O.mjs} +7 -7
- package/dist/{JsonApiRequest-O7BGUMFO.mjs → JsonApiRequest-6UR7DIAR.mjs} +4 -2
- package/dist/JsonApiRequest-UJ7FGIVI.js +25 -0
- package/dist/JsonApiRequest-UJ7FGIVI.js.map +1 -0
- package/dist/{chunk-EZK3H6EJ.js → chunk-5IET37O4.js} +206 -206
- package/dist/{chunk-EZK3H6EJ.js.map → chunk-5IET37O4.js.map} +1 -1
- package/dist/{chunk-Y4XI3AZR.mjs → chunk-5QC7A6BL.mjs} +32 -20
- package/dist/chunk-5QC7A6BL.mjs.map +1 -0
- package/dist/{chunk-LJRD4SRV.js → chunk-DEYKTLA3.js} +6 -6
- package/dist/{chunk-LJRD4SRV.js.map → chunk-DEYKTLA3.js.map} +1 -1
- package/dist/{chunk-NPPQNSXN.mjs → chunk-FMBQZAIP.mjs} +3 -3
- package/dist/{chunk-MHVXFWZY.mjs → chunk-HTLEKZND.mjs} +3 -3
- package/dist/{chunk-74F6BBHH.mjs → chunk-IKBA4AHN.mjs} +2 -1
- package/dist/chunk-IKBA4AHN.mjs.map +1 -0
- package/dist/{chunk-JLN6UWII.mjs → chunk-JGFWIT2E.mjs} +2 -2
- package/dist/{chunk-KDFDGXCX.js → chunk-K2ANOT66.js} +576 -564
- package/dist/chunk-K2ANOT66.js.map +1 -0
- package/dist/{chunk-X53MF5ZN.mjs → chunk-P2F54I7Q.mjs} +2 -2
- package/dist/{chunk-5ZEADNNP.js → chunk-PMXG5WBC.js} +3 -2
- package/dist/chunk-PMXG5WBC.js.map +1 -0
- package/dist/{chunk-L6LH7WA4.js → chunk-PO5Q3H5I.js} +190 -190
- package/dist/{chunk-L6LH7WA4.js.map → chunk-PO5Q3H5I.js.map} +1 -1
- package/dist/{chunk-WZJDLITG.js → chunk-Q4FXESVT.js} +3 -3
- package/dist/{chunk-WZJDLITG.js.map → chunk-Q4FXESVT.js.map} +1 -1
- package/dist/client/index.js +7 -7
- package/dist/client/index.mjs +6 -6
- package/dist/components/index.js +7 -7
- package/dist/components/index.mjs +6 -6
- package/dist/contexts/index.js +7 -7
- package/dist/contexts/index.mjs +6 -6
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/features/index.js +4 -4
- package/dist/features/index.mjs +3 -3
- package/dist/hooks/index.js +7 -7
- package/dist/hooks/index.mjs +6 -6
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/scripts/generate-web-module/generator.d.ts +15 -0
- package/dist/scripts/generate-web-module/generator.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/generator.js +320 -0
- package/dist/scripts/generate-web-module/generator.js.map +1 -0
- package/dist/scripts/generate-web-module/index.d.ts +16 -0
- package/dist/scripts/generate-web-module/index.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/index.js +80 -0
- package/dist/scripts/generate-web-module/index.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/container.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/components/container.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/container.template.js +124 -0
- package/dist/scripts/generate-web-module/templates/components/container.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/content.template.d.ts +15 -0
- package/dist/scripts/generate-web-module/templates/components/content.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/content.template.js +39 -0
- package/dist/scripts/generate-web-module/templates/components/content.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/deleter.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/components/deleter.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/deleter.template.js +51 -0
- package/dist/scripts/generate-web-module/templates/components/deleter.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/details.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/components/details.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/details.template.js +109 -0
- package/dist/scripts/generate-web-module/templates/components/details.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/editor.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/components/editor.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/editor.template.js +459 -0
- package/dist/scripts/generate-web-module/templates/components/editor.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/index.d.ts +15 -0
- package/dist/scripts/generate-web-module/templates/components/index.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/index.js +29 -0
- package/dist/scripts/generate-web-module/templates/components/index.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/list-container.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/components/list-container.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/list-container.template.js +30 -0
- package/dist/scripts/generate-web-module/templates/components/list-container.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/list.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/components/list.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/list.template.js +84 -0
- package/dist/scripts/generate-web-module/templates/components/list.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/multi-selector.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/components/multi-selector.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/multi-selector.template.js +184 -0
- package/dist/scripts/generate-web-module/templates/components/multi-selector.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/selector.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/components/selector.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/components/selector.template.js +199 -0
- package/dist/scripts/generate-web-module/templates/components/selector.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/context.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/context.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/context.template.js +121 -0
- package/dist/scripts/generate-web-module/templates/context.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/fields.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/data/fields.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/fields.template.js +55 -0
- package/dist/scripts/generate-web-module/templates/data/fields.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/index.d.ts +10 -0
- package/dist/scripts/generate-web-module/templates/data/index.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/index.js +26 -0
- package/dist/scripts/generate-web-module/templates/data/index.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/interface.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/data/interface.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/interface.template.js +116 -0
- package/dist/scripts/generate-web-module/templates/data/interface.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/model.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/data/model.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/model.template.js +274 -0
- package/dist/scripts/generate-web-module/templates/data/model.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/service.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/data/service.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/data/service.template.js +168 -0
- package/dist/scripts/generate-web-module/templates/data/service.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/index.d.ts +12 -0
- package/dist/scripts/generate-web-module/templates/index.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/index.js +37 -0
- package/dist/scripts/generate-web-module/templates/index.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/module.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/module.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/module.template.js +64 -0
- package/dist/scripts/generate-web-module/templates/module.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/pages/detail-page.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/pages/detail-page.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/pages/detail-page.template.js +65 -0
- package/dist/scripts/generate-web-module/templates/pages/detail-page.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/pages/index.d.ts +8 -0
- package/dist/scripts/generate-web-module/templates/pages/index.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/pages/index.js +13 -0
- package/dist/scripts/generate-web-module/templates/pages/index.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/pages/list-page.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/pages/list-page.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/pages/list-page.template.js +37 -0
- package/dist/scripts/generate-web-module/templates/pages/list-page.template.js.map +1 -0
- package/dist/scripts/generate-web-module/templates/table-hook.template.d.ts +14 -0
- package/dist/scripts/generate-web-module/templates/table-hook.template.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/templates/table-hook.template.js +174 -0
- package/dist/scripts/generate-web-module/templates/table-hook.template.js.map +1 -0
- package/dist/scripts/generate-web-module/transformers/field-mapper.d.ts +55 -0
- package/dist/scripts/generate-web-module/transformers/field-mapper.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/transformers/field-mapper.js +179 -0
- package/dist/scripts/generate-web-module/transformers/field-mapper.js.map +1 -0
- package/dist/scripts/generate-web-module/transformers/i18n-generator.d.ts +78 -0
- package/dist/scripts/generate-web-module/transformers/i18n-generator.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/transformers/i18n-generator.js +182 -0
- package/dist/scripts/generate-web-module/transformers/i18n-generator.js.map +1 -0
- package/dist/scripts/generate-web-module/transformers/import-resolver.d.ts +106 -0
- package/dist/scripts/generate-web-module/transformers/import-resolver.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/transformers/import-resolver.js +193 -0
- package/dist/scripts/generate-web-module/transformers/import-resolver.js.map +1 -0
- package/dist/scripts/generate-web-module/transformers/index.d.ts +12 -0
- package/dist/scripts/generate-web-module/transformers/index.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/transformers/index.js +28 -0
- package/dist/scripts/generate-web-module/transformers/index.js.map +1 -0
- package/dist/scripts/generate-web-module/transformers/name-transformer.d.ts +60 -0
- package/dist/scripts/generate-web-module/transformers/name-transformer.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/transformers/name-transformer.js +115 -0
- package/dist/scripts/generate-web-module/transformers/name-transformer.js.map +1 -0
- package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts +57 -0
- package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/transformers/parent-detector.js +88 -0
- package/dist/scripts/generate-web-module/transformers/parent-detector.js.map +1 -0
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts +68 -0
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js +219 -0
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js.map +1 -0
- package/dist/scripts/generate-web-module/types/field-mapping.types.d.ts +68 -0
- package/dist/scripts/generate-web-module/types/field-mapping.types.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/types/field-mapping.types.js +129 -0
- package/dist/scripts/generate-web-module/types/field-mapping.types.js.map +1 -0
- package/dist/scripts/generate-web-module/types/index.d.ts +9 -0
- package/dist/scripts/generate-web-module/types/index.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/types/index.js +25 -0
- package/dist/scripts/generate-web-module/types/index.js.map +1 -0
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts +40 -0
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/types/json-schema.interface.js +10 -0
- package/dist/scripts/generate-web-module/types/json-schema.interface.js.map +1 -0
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts +128 -0
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/types/template-data.interface.js +9 -0
- package/dist/scripts/generate-web-module/types/template-data.interface.js.map +1 -0
- package/dist/scripts/generate-web-module/utils/bootstrapper-updater.d.ts +29 -0
- package/dist/scripts/generate-web-module/utils/bootstrapper-updater.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/utils/bootstrapper-updater.js +153 -0
- package/dist/scripts/generate-web-module/utils/bootstrapper-updater.js.map +1 -0
- package/dist/scripts/generate-web-module/utils/file-writer.d.ts +38 -0
- package/dist/scripts/generate-web-module/utils/file-writer.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/utils/file-writer.js +126 -0
- package/dist/scripts/generate-web-module/utils/file-writer.js.map +1 -0
- package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts +28 -0
- package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/utils/i18n-updater.js +122 -0
- package/dist/scripts/generate-web-module/utils/i18n-updater.js.map +1 -0
- package/dist/scripts/generate-web-module/utils/index.d.ts +9 -0
- package/dist/scripts/generate-web-module/utils/index.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/utils/index.js +20 -0
- package/dist/scripts/generate-web-module/utils/index.js.map +1 -0
- package/dist/scripts/generate-web-module/validators/json-schema-validator.d.ts +46 -0
- package/dist/scripts/generate-web-module/validators/json-schema-validator.d.ts.map +1 -0
- package/dist/scripts/generate-web-module/validators/json-schema-validator.js +265 -0
- package/dist/scripts/generate-web-module/validators/json-schema-validator.js.map +1 -0
- package/dist/shadcnui/index.js +4 -4
- package/dist/shadcnui/index.mjs +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.mjs +2 -2
- package/package.json +27 -21
- package/scripts/generate-web-module/generator.ts +363 -0
- package/scripts/generate-web-module/index.ts +49 -0
- package/scripts/generate-web-module/templates/components/container.template.ts +129 -0
- package/scripts/generate-web-module/templates/components/content.template.ts +40 -0
- package/scripts/generate-web-module/templates/components/deleter.template.ts +51 -0
- package/scripts/generate-web-module/templates/components/details.template.ts +115 -0
- package/scripts/generate-web-module/templates/components/editor.template.ts +495 -0
- package/scripts/generate-web-module/templates/components/index.ts +18 -0
- package/scripts/generate-web-module/templates/components/list-container.template.ts +30 -0
- package/scripts/generate-web-module/templates/components/list.template.ts +91 -0
- package/scripts/generate-web-module/templates/components/multi-selector.template.ts +184 -0
- package/scripts/generate-web-module/templates/components/selector.template.ts +199 -0
- package/scripts/generate-web-module/templates/context.template.ts +121 -0
- package/scripts/generate-web-module/templates/data/fields.template.ts +64 -0
- package/scripts/generate-web-module/templates/data/index.ts +10 -0
- package/scripts/generate-web-module/templates/data/interface.template.ts +136 -0
- package/scripts/generate-web-module/templates/data/model.template.ts +327 -0
- package/scripts/generate-web-module/templates/data/service.template.ts +185 -0
- package/scripts/generate-web-module/templates/index.ts +34 -0
- package/scripts/generate-web-module/templates/module.template.ts +69 -0
- package/scripts/generate-web-module/templates/pages/detail-page.template.ts +65 -0
- package/scripts/generate-web-module/templates/pages/index.ts +8 -0
- package/scripts/generate-web-module/templates/pages/list-page.template.ts +37 -0
- package/scripts/generate-web-module/templates/table-hook.template.ts +182 -0
- package/scripts/generate-web-module/transformers/field-mapper.ts +201 -0
- package/scripts/generate-web-module/transformers/i18n-generator.ts +199 -0
- package/scripts/generate-web-module/transformers/import-resolver.ts +250 -0
- package/scripts/generate-web-module/transformers/index.ts +12 -0
- package/scripts/generate-web-module/transformers/name-transformer.ts +115 -0
- package/scripts/generate-web-module/transformers/parent-detector.ts +87 -0
- package/scripts/generate-web-module/transformers/relationship-resolver.ts +221 -0
- package/scripts/generate-web-module/tsconfig.json +24 -0
- package/scripts/generate-web-module/types/field-mapping.types.ts +141 -0
- package/scripts/generate-web-module/types/index.ts +9 -0
- package/scripts/generate-web-module/types/json-schema.interface.ts +42 -0
- package/scripts/generate-web-module/types/template-data.interface.ts +164 -0
- package/scripts/generate-web-module/utils/bootstrapper-updater.ts +145 -0
- package/scripts/generate-web-module/utils/file-writer.ts +115 -0
- package/scripts/generate-web-module/utils/i18n-updater.ts +108 -0
- package/scripts/generate-web-module/utils/index.ts +9 -0
- package/scripts/generate-web-module/validators/json-schema-validator.ts +306 -0
- package/src/components/errors/ErrorDetails.tsx +2 -2
- package/src/features/auth/components/containers/AuthContainer.tsx +1 -1
- package/src/features/auth/components/details/LandingComponent.tsx +20 -1
- package/src/features/auth/components/forms/AcceptInvitation.tsx +1 -1
- package/src/features/auth/components/forms/ActivateAccount.tsx +1 -1
- package/src/features/auth/components/forms/ForgotPassword.tsx +1 -1
- package/src/features/auth/components/forms/Login.tsx +1 -1
- package/src/features/auth/components/forms/Register.tsx +1 -1
- package/src/features/auth/components/forms/ResetPassword.tsx +1 -1
- package/src/features/company/components/forms/CompanyLicense.tsx +1 -8
- package/src/unified/JsonApiRequest.ts +2 -2
- package/dist/JsonApiRequest-VARLNKAF.js +0 -23
- package/dist/JsonApiRequest-VARLNKAF.js.map +0 -1
- package/dist/chunk-5ZEADNNP.js.map +0 -1
- package/dist/chunk-74F6BBHH.mjs.map +0 -1
- package/dist/chunk-KDFDGXCX.js.map +0 -1
- package/dist/chunk-Y4XI3AZR.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-DC33K4IF.mjs.map → BlockNoteEditor-V625C23O.mjs.map} +0 -0
- /package/dist/{JsonApiRequest-O7BGUMFO.mjs.map → JsonApiRequest-6UR7DIAR.mjs.map} +0 -0
- /package/dist/{chunk-NPPQNSXN.mjs.map → chunk-FMBQZAIP.mjs.map} +0 -0
- /package/dist/{chunk-MHVXFWZY.mjs.map → chunk-HTLEKZND.mjs.map} +0 -0
- /package/dist/{chunk-JLN6UWII.mjs.map → chunk-JGFWIT2E.mjs.map} +0 -0
- /package/dist/{chunk-X53MF5ZN.mjs.map → chunk-P2F54I7Q.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/chunk-WZJDLITG.js","../src/core/factories/RehydrationFactory.ts","../src/core/abstracts/AbstractApiData.ts","../src/core/abstracts/AbstractService.ts","../src/core/registry/ModuleRegistrar.ts","../src/core/registry/ModuleRegistry.ts","../src/core/endpoint/EndpointCreator.ts","../src/core/fields/FieldSelector.ts","../src/core/utils/rehydrate.ts"],"names":["includedData","HttpMethod"],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACE;AACF,sDAA4B;AAC5B;AACA;ACFO,IAAM,mBAAA,EAAN,MAAyB;AAAA,EALhC,OAKgC;AAAA,IAAA,qCAAA,IAAA,EAAA,oBAAA,CAAA;AAAA,EAAA;AAAA,EAC9B,OAAc,SAAA,CACZ,QAAA,EACA,IAAA,EACG;AACH,IAAA,MAAM,aAAA,EAAe,kCAAA,CAAkB,GAAA,CAAI,QAAQ,CAAA;AAEnD,IAAA,MAAM,SAAA,EAAW,IAAI,YAAA,CAAa,CAAA;AAClC,IAAA,OAAO,QAAA,CAAS,SAAA,CAAU,IAAI,CAAA;AAAA,EAChC;AAAA,EAEA,OAAc,aAAA,CACZ,QAAA,EACA,IAAA,EACK;AACL,IAAA,MAAM,aAAA,EAAe,kCAAA,CAAkB,GAAA,CAAI,QAAQ,CAAA;AAEnD,IAAA,MAAM,SAAA,EAAW,IAAA,CAAK,GAAA,CAAI,CAAC,IAAA,EAAA,GAAuC;AAChE,MAAA,MAAM,SAAA,EAAW,IAAI,YAAA,CAAa,CAAA;AAClC,MAAA,OAA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3B,IAAA;AAC0B,IAAA;AAC5B,EAAA;AACD;ALwTgC;AACA;AMzXJ;AAAA,EAAA;AAAA,IAAA;AAAA,EAAA;AACnB,EAAA;AAQL,EAAA;AACgB,IAAA;AACE,MAAA;AACN,MAAA;AACW,MAAA;AACN,MAAA;AACS,MAAA;AAC3B,IAAA;AACF,EAAA;AAE8D,EAAA;AAClC,IAAA;AACnB,IAAA;AACT,EAAA;AAEmC,EAAA;AACb,IAAA;AACb,IAAA;AACT,EAAA;AAE4E,EAAA;AAC3D,IAAA;AACR,IAAA;AACT,EAAA;AAEwC,EAAA;AACb,IAAA;AAClB,IAAA;AACT,EAAA;AAE8D,EAAA;AAC7C,IAAA;AACjB,EAAA;AAE2E,EAAA;AACrD,IAAA;AACL,IAAA;AACR,IAAA;AACT,EAAA;AAEuC,EAAA;AACb,IAAA;AACjB,IAAA;AACT,EAAA;AAEqD,EAAA;AACvB,IAAA;AAET,IAAA;AACG,MAAA;AACI,MAAA;AACzB,IAAA;AAEM,IAAA;AACT,EAAA;AAEmB,EAAA;AACM,IAAA;AACJ,IAAA;AACO,MAAA;AAC1B,IAAA;AAEuB,IAAA;AACA,IAAA;AACJ,IAAA;AAER,MAAA;AAIX,IAAA;AAC4B,IAAA;AACN,IAAA;AAEf,IAAA;AACT,EAAA;AACF;ANsWiC;AACA;AO9bS;AACjC,EAAA;AACC,IAAA;AACN,IAAA;AACF,EAAA;AACF;AALgB;APsciB;AACA;AQtc/B;AAE0B,EAAA;AAC5B;AALgB;AAYd;AAE0B,EAAA;AAC5B;AALgB;ARuciB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/chunk-WZJDLITG.js","sourcesContent":[null,"import { ApiDataInterface } from \"../interfaces/ApiDataInterface\";\nimport { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { JsonApiHydratedDataInterface } from \"../interfaces/JsonApiHydratedDataInterface\";\nimport { DataClassRegistry } from \"../registry/DataClassRegistry\";\n\nexport class RehydrationFactory {\n public static rehydrate<T extends ApiDataInterface>(\n classKey: ApiRequestDataTypeInterface,\n data: JsonApiHydratedDataInterface,\n ): T {\n const factoryClass = DataClassRegistry.get(classKey);\n\n const instance = new factoryClass();\n return instance.rehydrate(data) as T;\n }\n\n public static rehydrateList<T extends ApiDataInterface>(\n classKey: ApiRequestDataTypeInterface,\n data: JsonApiHydratedDataInterface[],\n ): T[] {\n const factoryClass = DataClassRegistry.get(classKey);\n\n const response = data.map((item: JsonApiHydratedDataInterface) => {\n const instance = new factoryClass();\n return instance.rehydrate(item) as T;\n });\n\n return response;\n }\n}\n","import { ApiDataInterface } from \"../interfaces/ApiDataInterface\";\nimport { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { JsonApiHydratedDataInterface } from \"../interfaces/JsonApiHydratedDataInterface\";\nimport { RehydrationFactory } from \"../factories/RehydrationFactory\";\n\nexport abstract class AbstractApiData implements ApiDataInterface {\n protected _jsonApi?: any;\n protected _included?: any[];\n\n protected _id?: string;\n protected _type?: string;\n protected _createdAt?: Date;\n protected _updatedAt?: Date;\n\n protected _self?: string;\n\n get type(): string {\n if (!this._type) throw new Error(\"Type is not set.\");\n return this._type;\n }\n\n get id(): string {\n if (!this._id) throw new Error(\"Id is not set.\");\n return this._id;\n }\n\n get self(): string | undefined {\n return this._self;\n }\n\n get createdAt(): Date {\n return this._createdAt ?? new Date();\n }\n\n get updatedAt(): Date {\n return this._updatedAt ?? new Date();\n }\n\n get included(): any[] {\n return this._included ?? [];\n }\n\n get jsonApi(): any {\n return this._jsonApi;\n }\n\n ingestJsonApi(_data: JsonApiHydratedDataInterface): void {}\n\n generateApiUrl(_params?: any): string {\n throw new Error(\"Method not implemented.\");\n }\n\n createJsonApi(_data?: any): any {\n throw new Error(\"Method not implemented.\");\n }\n\n protected _readIncluded<T extends ApiDataInterface>(\n data: JsonApiHydratedDataInterface,\n type: string,\n dataType: ApiRequestDataTypeInterface,\n ): T | T[] | undefined {\n if (\n data.included === undefined ||\n data.included.length === 0 ||\n data.jsonApi.relationships === undefined ||\n data.jsonApi.relationships[type] === undefined ||\n data.jsonApi.relationships[type].data === undefined\n ) {\n return undefined;\n }\n\n if (Array.isArray(data.jsonApi.relationships[type].data)) {\n const response: T[] = data.jsonApi.relationships[type].data.map((jsonApiData: any) => {\n const includedData = data.included.find(\n (includedData: any) => includedData.id === jsonApiData.id && includedData.type === jsonApiData.type,\n );\n\n if (includedData === undefined) return undefined;\n\n return RehydrationFactory.rehydrate(dataType, {\n jsonApi: includedData,\n included: data.included,\n }) as T;\n });\n\n return response.filter((item: T | undefined) => item !== undefined) as T[];\n }\n\n const includedData = data.included.find(\n (includedData: any) =>\n includedData.id === data.jsonApi.relationships[type].data.id &&\n includedData.type === data.jsonApi.relationships[type].data.type,\n );\n\n if (includedData === undefined && data.allData !== undefined) {\n // Try to find in allData as a fallback\n const fallbackData = data.allData.find(\n (includedData: any) =>\n includedData.id === data.jsonApi.relationships[type].data.id &&\n includedData.type === data.jsonApi.relationships[type].data.type,\n );\n if (fallbackData !== undefined) {\n return RehydrationFactory.rehydrate(dataType, {\n jsonApi: fallbackData,\n included: data.included,\n }) as T;\n }\n }\n\n if (includedData === undefined) return undefined;\n\n return RehydrationFactory.rehydrate(dataType, {\n jsonApi: includedData,\n included: data.included,\n }) as T;\n }\n\n dehydrate(): JsonApiHydratedDataInterface {\n return {\n jsonApi: this._jsonApi,\n included: this._included ?? [],\n };\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n this._jsonApi = data.jsonApi;\n this._included = data.included;\n\n this._type = this._jsonApi.type;\n this._id = this._jsonApi.id;\n this._createdAt = this._jsonApi.meta?.createdAt !== undefined ? new Date(this._jsonApi.meta.createdAt) : undefined;\n this._updatedAt = this._jsonApi.meta?.updatedAt !== undefined ? new Date(this._jsonApi.meta.updatedAt) : undefined;\n\n this._self = this._jsonApi.links?.self ?? undefined;\n\n return this;\n }\n}\n","import { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { ApiResponseInterface } from \"../interfaces/ApiResponseInterface\";\n\nexport enum HttpMethod {\n GET = \"GET\",\n POST = \"POST\",\n PUT = \"PUT\",\n PATCH = \"PATCH\",\n DELETE = \"DELETE\",\n}\n\nexport interface NextRef {\n next?: string;\n}\n\nexport interface PreviousRef {\n previous?: string;\n}\n\nexport interface SelfRef {\n self?: string;\n}\n\nlet globalErrorHandler: ((status: number, message: string) => void) | null = null;\n\n/**\n * Set a global error handler for API errors (client-side only).\n * This handler will be called instead of throwing errors.\n */\nexport function setGlobalErrorHandler(handler: (status: number, message: string) => void) {\n globalErrorHandler = handler;\n}\n\n/**\n * Get the current global error handler.\n */\nexport function getGlobalErrorHandler(): ((status: number, message: string) => void) | null {\n return globalErrorHandler;\n}\n\n/**\n * Abstract base class for services that interact with the JSON:API.\n * Extend this class to create feature-specific services.\n */\nexport abstract class AbstractService {\n /**\n * Extract locale from client-side URL pathname\n * URL structure: /{locale}/route-path (e.g., /it/accounts)\n * Fallback chain: URL locale → navigator.language → \"en\"\n */\n private static getClientLocale(): string {\n if (typeof window === \"undefined\") {\n return \"en\"; // Server-side fallback\n }\n\n // Extract locale from URL pathname (first segment after leading slash)\n const pathSegments = window.location.pathname.split(\"/\").filter(Boolean);\n const urlLocale = pathSegments[0];\n\n // Validate against supported locales (currently only \"en\")\n const supportedLocales = [\"en\"];\n if (urlLocale && supportedLocales.includes(urlLocale)) {\n return urlLocale;\n }\n\n // Fallback to navigator language\n const navigatorLocale = navigator.language.split(\"-\")[0];\n if (navigatorLocale && supportedLocales.includes(navigatorLocale)) {\n return navigatorLocale;\n }\n\n // Final fallback\n return \"en\";\n }\n\n static async next<T>(params: {\n type: ApiRequestDataTypeInterface;\n endpoint: string;\n next?: NextRef;\n previous?: PreviousRef;\n self?: SelfRef;\n }): Promise<T> {\n return await this.callApi<T>({\n method: HttpMethod.GET,\n type: params.type,\n endpoint: params.endpoint,\n next: params.next,\n previous: params.previous,\n self: params.self,\n });\n }\n\n /**\n * Fetch the previous page of results.\n */\n static async previous<T>(params: {\n type: ApiRequestDataTypeInterface;\n endpoint: string;\n next?: NextRef;\n previous?: PreviousRef;\n self?: SelfRef;\n }): Promise<T> {\n return await this.callApi<T>({\n method: HttpMethod.GET,\n type: params.type,\n endpoint: params.endpoint,\n next: params.next,\n previous: params.previous,\n self: params.self,\n });\n }\n\n /**\n * Make an API call with automatic environment detection and error handling.\n */\n protected static async callApi<T>(params: {\n type: ApiRequestDataTypeInterface;\n method: HttpMethod;\n endpoint: string;\n companyId?: string;\n input?: any;\n overridesJsonApiCreation?: boolean;\n next?: NextRef;\n previous?: PreviousRef;\n self?: SelfRef;\n responseType?: ApiRequestDataTypeInterface;\n files?: { [key: string]: File | Blob } | File | Blob;\n }): Promise<T> {\n // Dynamic import to avoid bundling issues\n const { JsonApiGet, JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } =\n await import(\"../../unified/JsonApiRequest\");\n\n let apiResponse: ApiResponseInterface;\n\n // Get language based on environment\n let language = \"en\";\n if (typeof window === \"undefined\") {\n const { getLocale } = await import(\"next-intl/server\");\n language = (await getLocale()) ?? \"en\";\n } else {\n // Client-side: extract locale from URL pathname\n language = this.getClientLocale();\n }\n\n switch (params.method) {\n case HttpMethod.GET:\n apiResponse = await JsonApiGet({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n language: language,\n });\n break;\n case HttpMethod.POST:\n apiResponse = await JsonApiPost({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n body: params.input,\n overridesJsonApiCreation: params.overridesJsonApiCreation,\n language: language,\n responseType: params.responseType,\n files: params.files,\n });\n break;\n case HttpMethod.PUT:\n apiResponse = await JsonApiPut({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n body: params.input,\n language: language,\n responseType: params.responseType,\n files: params.files,\n });\n break;\n case HttpMethod.PATCH:\n apiResponse = await JsonApiPatch({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n body: params.input,\n overridesJsonApiCreation: params.overridesJsonApiCreation,\n language: language,\n responseType: params.responseType,\n files: params.files,\n });\n break;\n case HttpMethod.DELETE:\n apiResponse = await JsonApiDelete({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n language: language,\n responseType: params.responseType,\n });\n break;\n default:\n throw new Error(\"Method not found\");\n }\n\n if (!apiResponse.ok) {\n if (globalErrorHandler && typeof window !== \"undefined\") {\n globalErrorHandler(apiResponse.response, apiResponse.error);\n return undefined as any;\n } else {\n const error = new Error(`${apiResponse.response}:${apiResponse.error}`) as any;\n error.status = apiResponse.response;\n error.digest = `HTTP_${apiResponse.response}`;\n throw error;\n }\n }\n\n if (apiResponse.next && params.next) params.next.next = apiResponse.next;\n if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;\n if (apiResponse.self && params.self) params.self.self = apiResponse.self;\n\n return apiResponse.data as T;\n }\n\n /**\n * Get raw JSON:API response data without deserialization.\n */\n protected static async getRawData(params: {\n type: ApiRequestDataTypeInterface;\n method: HttpMethod;\n endpoint: string;\n companyId?: string;\n }): Promise<any> {\n const { JsonApiGet } = await import(\"../../unified/JsonApiRequest\");\n\n let language = \"en\";\n\n if (typeof window === \"undefined\") {\n const { getLocale } = await import(\"next-intl/server\");\n language = (await getLocale()) ?? \"en\";\n } else {\n // Client-side: extract locale from URL pathname\n language = this.getClientLocale();\n }\n\n const apiResponse: ApiResponseInterface = await JsonApiGet({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n language: language,\n });\n\n if (!apiResponse.ok) {\n if (globalErrorHandler && typeof window !== \"undefined\") {\n globalErrorHandler(apiResponse.response, apiResponse.error);\n return undefined as any;\n } else {\n const error = new Error(`${apiResponse.response}:${apiResponse.error}`) as any;\n error.status = apiResponse.response;\n error.digest = `HTTP_${apiResponse.response}`;\n throw error;\n }\n }\n\n return apiResponse.raw;\n }\n}\n","import { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { DataClassRegistry } from \"./DataClassRegistry\";\n\n/**\n * Helper class to bootstrap the registry from a Modules-style class.\n * This supports the pattern where modules are defined as static getters.\n */\nexport class ModuleRegistrar {\n private static _isBootstrapped = false;\n\n /**\n * Bootstrap the registry from a Modules class.\n * Automatically detects static getters and registers their models.\n *\n * @param modulesClass - The Modules class with static getters\n */\n static bootstrap<T extends object>(modulesClass: T): void {\n if (this._isBootstrapped) return;\n\n const data = Object.getOwnPropertyNames(modulesClass)\n .filter((key) => {\n const descriptor = Object.getOwnPropertyDescriptor(modulesClass, key);\n return descriptor && typeof descriptor.get === \"function\";\n })\n .map((key) => (modulesClass as any)[key] as ApiRequestDataTypeInterface);\n\n data.forEach((item) => {\n if (item && item.model) {\n DataClassRegistry.registerObjectClass(item, item.model);\n }\n });\n\n this._isBootstrapped = true;\n }\n\n /**\n * Reset the bootstrapped state. Useful for testing.\n */\n static reset(): void {\n this._isBootstrapped = false;\n DataClassRegistry.clear();\n }\n}\n","import { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { ModuleWithPermissions } from \"../../permissions/types\";\n\n// Foundation module types - defined by LIBRARY\nexport interface FoundationModuleDefinitions {\n S3: ModuleWithPermissions;\n Auth: ModuleWithPermissions;\n User: ModuleWithPermissions;\n Author: ModuleWithPermissions;\n Company: ModuleWithPermissions;\n Role: ModuleWithPermissions;\n Notification: ModuleWithPermissions;\n Push: ModuleWithPermissions;\n Feature: ModuleWithPermissions;\n Module: ModuleWithPermissions;\n Content: ModuleWithPermissions;\n UserTopic: ModuleWithPermissions;\n UserExpertise: ModuleWithPermissions;\n}\n\n// App-specific modules - apps will augment this interface ONLY\n\nexport interface AppModuleDefinitions {}\n\n// Combined type for full autocompletion\nexport type ModuleDefinitions = FoundationModuleDefinitions & AppModuleDefinitions;\n\nclass ModuleRegistryClass {\n private _modules: Map<string, ApiRequestDataTypeInterface> = new Map();\n\n register<K extends string>(name: K, module: ApiRequestDataTypeInterface): void {\n this._modules.set(name, module);\n }\n\n get<K extends keyof ModuleDefinitions>(name: K): ModuleDefinitions[K] {\n const module = this._modules.get(name as string);\n if (!module) {\n throw new Error(`Module \"${String(name)}\" not registered. Call bootstrap() first.`);\n }\n return module as ModuleDefinitions[K];\n }\n\n findByName(moduleName: string): ModuleWithPermissions {\n // Search by module's name property (e.g., \"topics\", \"articles\")\n for (const module of this._modules.values()) {\n if ((module as ModuleWithPermissions).name === moduleName) {\n return module as ModuleWithPermissions;\n }\n }\n throw new Error(`Module not found: ${moduleName}`);\n }\n\n findByModelName(modelName: string): ModuleWithPermissions {\n // Direct lookup by registry key (e.g., \"Article\", \"Document\")\n const module = this._modules.get(modelName);\n if (!module) {\n throw new Error(`Module not found for model: ${modelName}`);\n }\n return module as ModuleWithPermissions;\n }\n}\n\nexport const ModuleRegistry = new ModuleRegistryClass();\n\n// Proxy object for Modules.X syntax with autocompletion\nexport const Modules = new Proxy({} as ModuleDefinitions, {\n get(_, prop: string) {\n if (prop === \"findByName\") {\n return (name: string) => ModuleRegistry.findByName(name);\n }\n if (prop === \"findByModelName\") {\n return (name: string) => ModuleRegistry.findByModelName(name);\n }\n return ModuleRegistry.get(prop as keyof ModuleDefinitions);\n },\n}) as ModuleDefinitions & {\n findByName: (name: string) => ModuleWithPermissions;\n findByModelName: (name: string) => ModuleWithPermissions;\n};\n","import { FieldSelector } from \"../fields/FieldSelector\";\nimport { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\n\nexport type EndpointQuery = {\n endpoint: ApiRequestDataTypeInterface;\n id?: string;\n childEndpoint?: ApiRequestDataTypeInterface | string;\n childId?: string;\n additionalParams?: { key: string; value: string | string[] }[];\n};\n\nexport class EndpointCreator {\n private _endpoint: EndpointQuery;\n\n constructor(params: {\n endpoint: ApiRequestDataTypeInterface;\n id?: string;\n childEndpoint?: ApiRequestDataTypeInterface | string;\n childId?: string;\n additionalParams?: { key: string; value: string }[];\n }) {\n this._endpoint = {\n endpoint: params.endpoint,\n id: params.id,\n childEndpoint: params.childEndpoint,\n childId: params.childId,\n additionalParams: params.additionalParams ?? [],\n };\n }\n\n endpoint(value: ApiRequestDataTypeInterface): EndpointCreator {\n this._endpoint.endpoint = value;\n return this;\n }\n\n id(value: string): EndpointCreator {\n this._endpoint.id = value;\n return this;\n }\n\n childEndpoint(value: ApiRequestDataTypeInterface | string): EndpointCreator {\n this._endpoint.childEndpoint = value;\n return this;\n }\n\n childId(value: string): EndpointCreator {\n this._endpoint.childId = value;\n return this;\n }\n\n set additionalParams(value: { key: string; value: string }[]) {\n this._endpoint.additionalParams = value;\n }\n\n addAdditionalParam(key: string, value: string | string[]): EndpointCreator {\n if (!this._endpoint.additionalParams) this._endpoint.additionalParams = [];\n this._endpoint.additionalParams.push({ key, value });\n return this;\n }\n\n limitToType(selectors: string[]): this {\n this.addAdditionalParam(`include`, selectors.join(\",\"));\n return this;\n }\n\n limitToFields(selectors: FieldSelector<any>[]): this {\n if (selectors.length === 0) return this;\n\n selectors.forEach((selector) => {\n const fieldString = selector.fields.join(\",\");\n this.addAdditionalParam(`fields[${selector.type}]`, fieldString);\n });\n\n return this;\n }\n\n generate(): string {\n let additionalParams = \"\";\n if (this._endpoint.additionalParams) {\n additionalParams = this._endpoint.additionalParams.map((param) => `${param.key}=${param.value}`).join(\"&\");\n }\n\n let response = `${this._endpoint.endpoint.name}`;\n if (this._endpoint.id) response += `/${this._endpoint.id}`;\n if (this._endpoint.childEndpoint) {\n response += `/${\n typeof this._endpoint.childEndpoint === \"string\"\n ? this._endpoint.childEndpoint\n : this._endpoint.childEndpoint.name\n }`;\n }\n if (this._endpoint.childId) response += `/${this._endpoint.childId}`;\n if (additionalParams) response += `?${additionalParams}`;\n\n return response;\n }\n}\n","export type GetterKeys<T> = {\n [K in keyof T]: T[K] extends () => any ? never : K;\n}[keyof T];\n\nexport type FieldSelector<T> = {\n type: string;\n fields: ReadonlyArray<GetterKeys<T>>;\n};\n\nexport function createJsonApiInclusion<T>(dataType: string, fields: ReadonlyArray<GetterKeys<T>>): FieldSelector<T> {\n return {\n type: dataType,\n fields,\n };\n}\n","import { ApiDataInterface } from \"../interfaces/ApiDataInterface\";\nimport { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { JsonApiHydratedDataInterface } from \"../interfaces/JsonApiHydratedDataInterface\";\nimport { RehydrationFactory } from \"../factories/RehydrationFactory\";\n\n/**\n * Rehydrate a single dehydrated object back into its typed class instance.\n */\nexport function rehydrate<T extends ApiDataInterface>(\n classKey: ApiRequestDataTypeInterface,\n data: JsonApiHydratedDataInterface,\n): T {\n return RehydrationFactory.rehydrate(classKey, data) as T;\n}\n\n/**\n * Rehydrate a list of dehydrated objects back into typed class instances.\n */\nexport function rehydrateList<T extends ApiDataInterface>(\n classKey: ApiRequestDataTypeInterface,\n data: JsonApiHydratedDataInterface[],\n): T[] {\n return RehydrationFactory.rehydrateList(classKey, data) as T[];\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/chunk-Q4FXESVT.js","../src/core/factories/RehydrationFactory.ts","../src/core/abstracts/AbstractApiData.ts","../src/core/abstracts/AbstractService.ts","../src/core/registry/ModuleRegistrar.ts","../src/core/registry/ModuleRegistry.ts","../src/core/endpoint/EndpointCreator.ts","../src/core/fields/FieldSelector.ts","../src/core/utils/rehydrate.ts"],"names":["includedData","HttpMethod"],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACE;AACF,sDAA4B;AAC5B;AACA;ACFO,IAAM,mBAAA,EAAN,MAAyB;AAAA,EALhC,OAKgC;AAAA,IAAA,qCAAA,IAAA,EAAA,oBAAA,CAAA;AAAA,EAAA;AAAA,EAC9B,OAAc,SAAA,CACZ,QAAA,EACA,IAAA,EACG;AACH,IAAA,MAAM,aAAA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AACT,EAAA;AACF;ANsWiC;AACA;AO9bS;AACjC,EAAA;AACC,IAAA;AACN,IAAA;AACF,EAAA;AACF;AALgB;APsciB;AACA;AQtc/B;AAE0B,EAAA;AAC5B;AALgB;AAYd;AAE0B,EAAA;AAC5B;AALgB;ARuciB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/chunk-Q4FXESVT.js","sourcesContent":[null,"import { ApiDataInterface } from \"../interfaces/ApiDataInterface\";\nimport { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { JsonApiHydratedDataInterface } from \"../interfaces/JsonApiHydratedDataInterface\";\nimport { DataClassRegistry } from \"../registry/DataClassRegistry\";\n\nexport class RehydrationFactory {\n public static rehydrate<T extends ApiDataInterface>(\n classKey: ApiRequestDataTypeInterface,\n data: JsonApiHydratedDataInterface,\n ): T {\n const factoryClass = DataClassRegistry.get(classKey);\n\n const instance = new factoryClass();\n return instance.rehydrate(data) as T;\n }\n\n public static rehydrateList<T extends ApiDataInterface>(\n classKey: ApiRequestDataTypeInterface,\n data: JsonApiHydratedDataInterface[],\n ): T[] {\n const factoryClass = DataClassRegistry.get(classKey);\n\n const response = data.map((item: JsonApiHydratedDataInterface) => {\n const instance = new factoryClass();\n return instance.rehydrate(item) as T;\n });\n\n return response;\n }\n}\n","import { ApiDataInterface } from \"../interfaces/ApiDataInterface\";\nimport { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { JsonApiHydratedDataInterface } from \"../interfaces/JsonApiHydratedDataInterface\";\nimport { RehydrationFactory } from \"../factories/RehydrationFactory\";\n\nexport abstract class AbstractApiData implements ApiDataInterface {\n protected _jsonApi?: any;\n protected _included?: any[];\n\n protected _id?: string;\n protected _type?: string;\n protected _createdAt?: Date;\n protected _updatedAt?: Date;\n\n protected _self?: string;\n\n get type(): string {\n if (!this._type) throw new Error(\"Type is not set.\");\n return this._type;\n }\n\n get id(): string {\n if (!this._id) throw new Error(\"Id is not set.\");\n return this._id;\n }\n\n get self(): string | undefined {\n return this._self;\n }\n\n get createdAt(): Date {\n return this._createdAt ?? new Date();\n }\n\n get updatedAt(): Date {\n return this._updatedAt ?? new Date();\n }\n\n get included(): any[] {\n return this._included ?? [];\n }\n\n get jsonApi(): any {\n return this._jsonApi;\n }\n\n ingestJsonApi(_data: JsonApiHydratedDataInterface): void {}\n\n generateApiUrl(_params?: any): string {\n throw new Error(\"Method not implemented.\");\n }\n\n createJsonApi(_data?: any): any {\n throw new Error(\"Method not implemented.\");\n }\n\n protected _readIncluded<T extends ApiDataInterface>(\n data: JsonApiHydratedDataInterface,\n type: string,\n dataType: ApiRequestDataTypeInterface,\n ): T | T[] | undefined {\n if (\n data.included === undefined ||\n data.included.length === 0 ||\n data.jsonApi.relationships === undefined ||\n data.jsonApi.relationships[type] === undefined ||\n data.jsonApi.relationships[type].data === undefined\n ) {\n return undefined;\n }\n\n if (Array.isArray(data.jsonApi.relationships[type].data)) {\n const response: T[] = data.jsonApi.relationships[type].data.map((jsonApiData: any) => {\n const includedData = data.included.find(\n (includedData: any) => includedData.id === jsonApiData.id && includedData.type === jsonApiData.type,\n );\n\n if (includedData === undefined) return undefined;\n\n return RehydrationFactory.rehydrate(dataType, {\n jsonApi: includedData,\n included: data.included,\n }) as T;\n });\n\n return response.filter((item: T | undefined) => item !== undefined) as T[];\n }\n\n const includedData = data.included.find(\n (includedData: any) =>\n includedData.id === data.jsonApi.relationships[type].data.id &&\n includedData.type === data.jsonApi.relationships[type].data.type,\n );\n\n if (includedData === undefined && data.allData !== undefined) {\n // Try to find in allData as a fallback\n const fallbackData = data.allData.find(\n (includedData: any) =>\n includedData.id === data.jsonApi.relationships[type].data.id &&\n includedData.type === data.jsonApi.relationships[type].data.type,\n );\n if (fallbackData !== undefined) {\n return RehydrationFactory.rehydrate(dataType, {\n jsonApi: fallbackData,\n included: data.included,\n }) as T;\n }\n }\n\n if (includedData === undefined) return undefined;\n\n return RehydrationFactory.rehydrate(dataType, {\n jsonApi: includedData,\n included: data.included,\n }) as T;\n }\n\n dehydrate(): JsonApiHydratedDataInterface {\n return {\n jsonApi: this._jsonApi,\n included: this._included ?? [],\n };\n }\n\n rehydrate(data: JsonApiHydratedDataInterface): this {\n this._jsonApi = data.jsonApi;\n this._included = data.included;\n\n this._type = this._jsonApi.type;\n this._id = this._jsonApi.id;\n this._createdAt = this._jsonApi.meta?.createdAt !== undefined ? new Date(this._jsonApi.meta.createdAt) : undefined;\n this._updatedAt = this._jsonApi.meta?.updatedAt !== undefined ? new Date(this._jsonApi.meta.updatedAt) : undefined;\n\n this._self = this._jsonApi.links?.self ?? undefined;\n\n return this;\n }\n}\n","import { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { ApiResponseInterface } from \"../interfaces/ApiResponseInterface\";\n\nexport enum HttpMethod {\n GET = \"GET\",\n POST = \"POST\",\n PUT = \"PUT\",\n PATCH = \"PATCH\",\n DELETE = \"DELETE\",\n}\n\nexport interface NextRef {\n next?: string;\n}\n\nexport interface PreviousRef {\n previous?: string;\n}\n\nexport interface SelfRef {\n self?: string;\n}\n\nlet globalErrorHandler: ((status: number, message: string) => void) | null = null;\n\n/**\n * Set a global error handler for API errors (client-side only).\n * This handler will be called instead of throwing errors.\n */\nexport function setGlobalErrorHandler(handler: (status: number, message: string) => void) {\n globalErrorHandler = handler;\n}\n\n/**\n * Get the current global error handler.\n */\nexport function getGlobalErrorHandler(): ((status: number, message: string) => void) | null {\n return globalErrorHandler;\n}\n\n/**\n * Abstract base class for services that interact with the JSON:API.\n * Extend this class to create feature-specific services.\n */\nexport abstract class AbstractService {\n /**\n * Extract locale from client-side URL pathname\n * URL structure: /{locale}/route-path (e.g., /it/accounts)\n * Fallback chain: URL locale → navigator.language → \"en\"\n */\n private static getClientLocale(): string {\n if (typeof window === \"undefined\") {\n return \"en\"; // Server-side fallback\n }\n\n // Extract locale from URL pathname (first segment after leading slash)\n const pathSegments = window.location.pathname.split(\"/\").filter(Boolean);\n const urlLocale = pathSegments[0];\n\n // Validate against supported locales (currently only \"en\")\n const supportedLocales = [\"en\"];\n if (urlLocale && supportedLocales.includes(urlLocale)) {\n return urlLocale;\n }\n\n // Fallback to navigator language\n const navigatorLocale = navigator.language.split(\"-\")[0];\n if (navigatorLocale && supportedLocales.includes(navigatorLocale)) {\n return navigatorLocale;\n }\n\n // Final fallback\n return \"en\";\n }\n\n static async next<T>(params: {\n type: ApiRequestDataTypeInterface;\n endpoint: string;\n next?: NextRef;\n previous?: PreviousRef;\n self?: SelfRef;\n }): Promise<T> {\n return await this.callApi<T>({\n method: HttpMethod.GET,\n type: params.type,\n endpoint: params.endpoint,\n next: params.next,\n previous: params.previous,\n self: params.self,\n });\n }\n\n /**\n * Fetch the previous page of results.\n */\n static async previous<T>(params: {\n type: ApiRequestDataTypeInterface;\n endpoint: string;\n next?: NextRef;\n previous?: PreviousRef;\n self?: SelfRef;\n }): Promise<T> {\n return await this.callApi<T>({\n method: HttpMethod.GET,\n type: params.type,\n endpoint: params.endpoint,\n next: params.next,\n previous: params.previous,\n self: params.self,\n });\n }\n\n /**\n * Make an API call with automatic environment detection and error handling.\n */\n protected static async callApi<T>(params: {\n type: ApiRequestDataTypeInterface;\n method: HttpMethod;\n endpoint: string;\n companyId?: string;\n input?: any;\n overridesJsonApiCreation?: boolean;\n next?: NextRef;\n previous?: PreviousRef;\n self?: SelfRef;\n responseType?: ApiRequestDataTypeInterface;\n files?: { [key: string]: File | Blob } | File | Blob;\n }): Promise<T> {\n // Dynamic import to avoid bundling issues\n const { JsonApiGet, JsonApiPost, JsonApiPut, JsonApiPatch, JsonApiDelete } =\n await import(\"../../unified/JsonApiRequest\");\n\n let apiResponse: ApiResponseInterface;\n\n // Get language based on environment\n let language = \"en\";\n if (typeof window === \"undefined\") {\n const { getLocale } = await import(\"next-intl/server\");\n language = (await getLocale()) ?? \"en\";\n } else {\n // Client-side: extract locale from URL pathname\n language = this.getClientLocale();\n }\n\n switch (params.method) {\n case HttpMethod.GET:\n apiResponse = await JsonApiGet({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n language: language,\n });\n break;\n case HttpMethod.POST:\n apiResponse = await JsonApiPost({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n body: params.input,\n overridesJsonApiCreation: params.overridesJsonApiCreation,\n language: language,\n responseType: params.responseType,\n files: params.files,\n });\n break;\n case HttpMethod.PUT:\n apiResponse = await JsonApiPut({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n body: params.input,\n language: language,\n responseType: params.responseType,\n files: params.files,\n });\n break;\n case HttpMethod.PATCH:\n apiResponse = await JsonApiPatch({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n body: params.input,\n overridesJsonApiCreation: params.overridesJsonApiCreation,\n language: language,\n responseType: params.responseType,\n files: params.files,\n });\n break;\n case HttpMethod.DELETE:\n apiResponse = await JsonApiDelete({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n language: language,\n responseType: params.responseType,\n });\n break;\n default:\n throw new Error(\"Method not found\");\n }\n\n if (!apiResponse.ok) {\n if (globalErrorHandler && typeof window !== \"undefined\") {\n globalErrorHandler(apiResponse.response, apiResponse.error);\n return undefined as any;\n } else {\n const error = new Error(`${apiResponse.response}:${apiResponse.error}`) as any;\n error.status = apiResponse.response;\n error.digest = `HTTP_${apiResponse.response}`;\n throw error;\n }\n }\n\n if (apiResponse.next && params.next) params.next.next = apiResponse.next;\n if (apiResponse.prev && params.previous) params.previous.previous = apiResponse.prev;\n if (apiResponse.self && params.self) params.self.self = apiResponse.self;\n\n return apiResponse.data as T;\n }\n\n /**\n * Get raw JSON:API response data without deserialization.\n */\n protected static async getRawData(params: {\n type: ApiRequestDataTypeInterface;\n method: HttpMethod;\n endpoint: string;\n companyId?: string;\n }): Promise<any> {\n const { JsonApiGet } = await import(\"../../unified/JsonApiRequest\");\n\n let language = \"en\";\n\n if (typeof window === \"undefined\") {\n const { getLocale } = await import(\"next-intl/server\");\n language = (await getLocale()) ?? \"en\";\n } else {\n // Client-side: extract locale from URL pathname\n language = this.getClientLocale();\n }\n\n const apiResponse: ApiResponseInterface = await JsonApiGet({\n classKey: params.type,\n endpoint: params.endpoint,\n companyId: params.companyId,\n language: language,\n });\n\n if (!apiResponse.ok) {\n if (globalErrorHandler && typeof window !== \"undefined\") {\n globalErrorHandler(apiResponse.response, apiResponse.error);\n return undefined as any;\n } else {\n const error = new Error(`${apiResponse.response}:${apiResponse.error}`) as any;\n error.status = apiResponse.response;\n error.digest = `HTTP_${apiResponse.response}`;\n throw error;\n }\n }\n\n return apiResponse.raw;\n }\n}\n","import { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { DataClassRegistry } from \"./DataClassRegistry\";\n\n/**\n * Helper class to bootstrap the registry from a Modules-style class.\n * This supports the pattern where modules are defined as static getters.\n */\nexport class ModuleRegistrar {\n private static _isBootstrapped = false;\n\n /**\n * Bootstrap the registry from a Modules class.\n * Automatically detects static getters and registers their models.\n *\n * @param modulesClass - The Modules class with static getters\n */\n static bootstrap<T extends object>(modulesClass: T): void {\n if (this._isBootstrapped) return;\n\n const data = Object.getOwnPropertyNames(modulesClass)\n .filter((key) => {\n const descriptor = Object.getOwnPropertyDescriptor(modulesClass, key);\n return descriptor && typeof descriptor.get === \"function\";\n })\n .map((key) => (modulesClass as any)[key] as ApiRequestDataTypeInterface);\n\n data.forEach((item) => {\n if (item && item.model) {\n DataClassRegistry.registerObjectClass(item, item.model);\n }\n });\n\n this._isBootstrapped = true;\n }\n\n /**\n * Reset the bootstrapped state. Useful for testing.\n */\n static reset(): void {\n this._isBootstrapped = false;\n DataClassRegistry.clear();\n }\n}\n","import { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { ModuleWithPermissions } from \"../../permissions/types\";\n\n// Foundation module types - defined by LIBRARY\nexport interface FoundationModuleDefinitions {\n S3: ModuleWithPermissions;\n Auth: ModuleWithPermissions;\n User: ModuleWithPermissions;\n Author: ModuleWithPermissions;\n Company: ModuleWithPermissions;\n Role: ModuleWithPermissions;\n Notification: ModuleWithPermissions;\n Push: ModuleWithPermissions;\n Feature: ModuleWithPermissions;\n Module: ModuleWithPermissions;\n Content: ModuleWithPermissions;\n UserTopic: ModuleWithPermissions;\n UserExpertise: ModuleWithPermissions;\n}\n\n// App-specific modules - apps will augment this interface ONLY\n\nexport interface AppModuleDefinitions {}\n\n// Combined type for full autocompletion\nexport type ModuleDefinitions = FoundationModuleDefinitions & AppModuleDefinitions;\n\nclass ModuleRegistryClass {\n private _modules: Map<string, ApiRequestDataTypeInterface> = new Map();\n\n register<K extends string>(name: K, module: ApiRequestDataTypeInterface): void {\n this._modules.set(name, module);\n }\n\n get<K extends keyof ModuleDefinitions>(name: K): ModuleDefinitions[K] {\n const module = this._modules.get(name as string);\n if (!module) {\n throw new Error(`Module \"${String(name)}\" not registered. Call bootstrap() first.`);\n }\n return module as ModuleDefinitions[K];\n }\n\n findByName(moduleName: string): ModuleWithPermissions {\n // Search by module's name property (e.g., \"topics\", \"articles\")\n for (const module of this._modules.values()) {\n if ((module as ModuleWithPermissions).name === moduleName) {\n return module as ModuleWithPermissions;\n }\n }\n throw new Error(`Module not found: ${moduleName}`);\n }\n\n findByModelName(modelName: string): ModuleWithPermissions {\n // Direct lookup by registry key (e.g., \"Article\", \"Document\")\n const module = this._modules.get(modelName);\n if (!module) {\n throw new Error(`Module not found for model: ${modelName}`);\n }\n return module as ModuleWithPermissions;\n }\n}\n\nexport const ModuleRegistry = new ModuleRegistryClass();\n\n// Proxy object for Modules.X syntax with autocompletion\nexport const Modules = new Proxy({} as ModuleDefinitions, {\n get(_, prop: string) {\n if (prop === \"findByName\") {\n return (name: string) => ModuleRegistry.findByName(name);\n }\n if (prop === \"findByModelName\") {\n return (name: string) => ModuleRegistry.findByModelName(name);\n }\n return ModuleRegistry.get(prop as keyof ModuleDefinitions);\n },\n}) as ModuleDefinitions & {\n findByName: (name: string) => ModuleWithPermissions;\n findByModelName: (name: string) => ModuleWithPermissions;\n};\n","import { FieldSelector } from \"../fields/FieldSelector\";\nimport { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\n\nexport type EndpointQuery = {\n endpoint: ApiRequestDataTypeInterface;\n id?: string;\n childEndpoint?: ApiRequestDataTypeInterface | string;\n childId?: string;\n additionalParams?: { key: string; value: string | string[] }[];\n};\n\nexport class EndpointCreator {\n private _endpoint: EndpointQuery;\n\n constructor(params: {\n endpoint: ApiRequestDataTypeInterface;\n id?: string;\n childEndpoint?: ApiRequestDataTypeInterface | string;\n childId?: string;\n additionalParams?: { key: string; value: string }[];\n }) {\n this._endpoint = {\n endpoint: params.endpoint,\n id: params.id,\n childEndpoint: params.childEndpoint,\n childId: params.childId,\n additionalParams: params.additionalParams ?? [],\n };\n }\n\n endpoint(value: ApiRequestDataTypeInterface): EndpointCreator {\n this._endpoint.endpoint = value;\n return this;\n }\n\n id(value: string): EndpointCreator {\n this._endpoint.id = value;\n return this;\n }\n\n childEndpoint(value: ApiRequestDataTypeInterface | string): EndpointCreator {\n this._endpoint.childEndpoint = value;\n return this;\n }\n\n childId(value: string): EndpointCreator {\n this._endpoint.childId = value;\n return this;\n }\n\n set additionalParams(value: { key: string; value: string }[]) {\n this._endpoint.additionalParams = value;\n }\n\n addAdditionalParam(key: string, value: string | string[]): EndpointCreator {\n if (!this._endpoint.additionalParams) this._endpoint.additionalParams = [];\n this._endpoint.additionalParams.push({ key, value });\n return this;\n }\n\n limitToType(selectors: string[]): this {\n this.addAdditionalParam(`include`, selectors.join(\",\"));\n return this;\n }\n\n limitToFields(selectors: FieldSelector<any>[]): this {\n if (selectors.length === 0) return this;\n\n selectors.forEach((selector) => {\n const fieldString = selector.fields.join(\",\");\n this.addAdditionalParam(`fields[${selector.type}]`, fieldString);\n });\n\n return this;\n }\n\n generate(): string {\n let additionalParams = \"\";\n if (this._endpoint.additionalParams) {\n additionalParams = this._endpoint.additionalParams.map((param) => `${param.key}=${param.value}`).join(\"&\");\n }\n\n let response = `${this._endpoint.endpoint.name}`;\n if (this._endpoint.id) response += `/${this._endpoint.id}`;\n if (this._endpoint.childEndpoint) {\n response += `/${\n typeof this._endpoint.childEndpoint === \"string\"\n ? this._endpoint.childEndpoint\n : this._endpoint.childEndpoint.name\n }`;\n }\n if (this._endpoint.childId) response += `/${this._endpoint.childId}`;\n if (additionalParams) response += `?${additionalParams}`;\n\n return response;\n }\n}\n","export type GetterKeys<T> = {\n [K in keyof T]: T[K] extends () => any ? never : K;\n}[keyof T];\n\nexport type FieldSelector<T> = {\n type: string;\n fields: ReadonlyArray<GetterKeys<T>>;\n};\n\nexport function createJsonApiInclusion<T>(dataType: string, fields: ReadonlyArray<GetterKeys<T>>): FieldSelector<T> {\n return {\n type: dataType,\n fields,\n };\n}\n","import { ApiDataInterface } from \"../interfaces/ApiDataInterface\";\nimport { ApiRequestDataTypeInterface } from \"../interfaces/ApiRequestDataTypeInterface\";\nimport { JsonApiHydratedDataInterface } from \"../interfaces/JsonApiHydratedDataInterface\";\nimport { RehydrationFactory } from \"../factories/RehydrationFactory\";\n\n/**\n * Rehydrate a single dehydrated object back into its typed class instance.\n */\nexport function rehydrate<T extends ApiDataInterface>(\n classKey: ApiRequestDataTypeInterface,\n data: JsonApiHydratedDataInterface,\n): T {\n return RehydrationFactory.rehydrate(classKey, data) as T;\n}\n\n/**\n * Rehydrate a list of dehydrated objects back into typed class instances.\n */\nexport function rehydrateList<T extends ApiDataInterface>(\n classKey: ApiRequestDataTypeInterface,\n data: JsonApiHydratedDataInterface[],\n): T[] {\n return RehydrationFactory.rehydrateList(classKey, data) as T[];\n}\n"]}
|
package/dist/client/index.js
CHANGED
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkK2ANOT66js = require('../chunk-K2ANOT66.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkIBS6NI7Djs = require('../chunk-IBS6NI7D.js');
|
|
20
|
-
require('../chunk-
|
|
21
|
-
require('../chunk-
|
|
22
|
-
require('../chunk-
|
|
20
|
+
require('../chunk-5IET37O4.js');
|
|
21
|
+
require('../chunk-DEYKTLA3.js');
|
|
22
|
+
require('../chunk-PO5Q3H5I.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkLXKSUWAVjs = require('../chunk-LXKSUWAV.js');
|
|
26
26
|
require('../chunk-AYHKQWHH.js');
|
|
27
|
-
require('../chunk-
|
|
27
|
+
require('../chunk-PMXG5WBC.js');
|
|
28
28
|
require('../chunk-4HCRAOS5.js');
|
|
29
29
|
require('../chunk-3FBCC4G3.js');
|
|
30
|
-
require('../chunk-
|
|
30
|
+
require('../chunk-Q4FXESVT.js');
|
|
31
31
|
require('../chunk-AGAJMJ4T.js');
|
|
32
32
|
require('../chunk-32HM6MDD.js');
|
|
33
33
|
require('../chunk-7QVYU63E.js');
|
|
@@ -46,5 +46,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
exports.JsonApiContext =
|
|
49
|
+
exports.JsonApiContext = _chunkK2ANOT66js.JsonApiContext; exports.JsonApiProvider = _chunkK2ANOT66js.JsonApiProvider; exports.directFetch = _chunkIBS6NI7Djs.directFetch; exports.getClientToken = _chunkLXKSUWAVjs.getClientToken; exports.useContentTableStructure = _chunkK2ANOT66js.useContentTableStructure; exports.useJsonApiConfig = _chunkK2ANOT66js.useJsonApiConfig; exports.useJsonApiConfigOptional = _chunkK2ANOT66js.useJsonApiConfigOptional; exports.useJsonApiGet = _chunkK2ANOT66js.useJsonApiGet; exports.useJsonApiMutation = _chunkK2ANOT66js.useJsonApiMutation; exports.useRehydration = _chunkK2ANOT66js.useRehydration; exports.useRehydrationList = _chunkK2ANOT66js.useRehydrationList; exports.useRoleTableStructure = _chunkK2ANOT66js.useRoleTableStructure; exports.useUserSearch = _chunkK2ANOT66js.useUserSearch; exports.useUserTableStructure = _chunkK2ANOT66js.useUserTableStructure;
|
|
50
50
|
//# sourceMappingURL=index.js.map
|
package/dist/client/index.mjs
CHANGED
|
@@ -12,21 +12,21 @@ import {
|
|
|
12
12
|
useRoleTableStructure,
|
|
13
13
|
useUserSearch,
|
|
14
14
|
useUserTableStructure
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-5QC7A6BL.mjs";
|
|
16
16
|
import {
|
|
17
17
|
directFetch
|
|
18
18
|
} from "../chunk-C7C7VY4F.mjs";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-P2F54I7Q.mjs";
|
|
20
|
+
import "../chunk-JGFWIT2E.mjs";
|
|
21
|
+
import "../chunk-HTLEKZND.mjs";
|
|
22
22
|
import {
|
|
23
23
|
getClientToken
|
|
24
24
|
} from "../chunk-AUXK7QSA.mjs";
|
|
25
25
|
import "../chunk-SM63SZCP.mjs";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-IKBA4AHN.mjs";
|
|
27
27
|
import "../chunk-BLWVZK6J.mjs";
|
|
28
28
|
import "../chunk-Q2N6SQYW.mjs";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-FMBQZAIP.mjs";
|
|
30
30
|
import "../chunk-RBIVEH2K.mjs";
|
|
31
31
|
import "../chunk-HAG77QBV.mjs";
|
|
32
32
|
import "../chunk-PAWJFY3S.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -108,17 +108,17 @@
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
var
|
|
111
|
+
var _chunkK2ANOT66js = require('../chunk-K2ANOT66.js');
|
|
112
112
|
require('../chunk-IBS6NI7D.js');
|
|
113
|
-
require('../chunk-
|
|
114
|
-
require('../chunk-
|
|
115
|
-
require('../chunk-
|
|
113
|
+
require('../chunk-5IET37O4.js');
|
|
114
|
+
require('../chunk-DEYKTLA3.js');
|
|
115
|
+
require('../chunk-PO5Q3H5I.js');
|
|
116
116
|
require('../chunk-LXKSUWAV.js');
|
|
117
117
|
require('../chunk-AYHKQWHH.js');
|
|
118
|
-
require('../chunk-
|
|
118
|
+
require('../chunk-PMXG5WBC.js');
|
|
119
119
|
require('../chunk-4HCRAOS5.js');
|
|
120
120
|
require('../chunk-3FBCC4G3.js');
|
|
121
|
-
require('../chunk-
|
|
121
|
+
require('../chunk-Q4FXESVT.js');
|
|
122
122
|
require('../chunk-AGAJMJ4T.js');
|
|
123
123
|
require('../chunk-32HM6MDD.js');
|
|
124
124
|
require('../chunk-7QVYU63E.js');
|
|
@@ -231,5 +231,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
231
231
|
|
|
232
232
|
|
|
233
233
|
|
|
234
|
-
exports.AcceptInvitation =
|
|
234
|
+
exports.AcceptInvitation = _chunkK2ANOT66js.AcceptInvitation; exports.ActivateAccount = _chunkK2ANOT66js.ActivateAccount; exports.AddUserToRole = _chunkK2ANOT66js.AddUserToRole; exports.AdminCompanyContainer = _chunkK2ANOT66js.AdminCompanyContainer; exports.AdminUsersList = _chunkK2ANOT66js.AdminUsersList; exports.AllowedUsersDetails = _chunkK2ANOT66js.AllowedUsersDetails; exports.AttributeElement = _chunkK2ANOT66js.AttributeElement; exports.AuthContainer = _chunkK2ANOT66js.AuthContainer; exports.BlockNoteEditorContainer = _chunkK2ANOT66js.BlockNoteEditorContainer; exports.Breadcrumb = _chunkK2ANOT66js.Breadcrumb; exports.CommonAssociationCommandDialog = _chunkK2ANOT66js.CommonAssociationCommandDialog; exports.CommonAssociationTrigger = _chunkK2ANOT66js.CommonAssociationTrigger; exports.CommonDeleter = _chunkK2ANOT66js.CommonDeleter; exports.CommonEditorButtons = _chunkK2ANOT66js.CommonEditorButtons; exports.CommonEditorHeader = _chunkK2ANOT66js.CommonEditorHeader; exports.CommonEditorTrigger = _chunkK2ANOT66js.CommonEditorTrigger; exports.CompaniesList = _chunkK2ANOT66js.CompaniesList; exports.CompanyConfigurationEditor = _chunkK2ANOT66js.CompanyConfigurationEditor; exports.CompanyConfigurationSecurityForm = _chunkK2ANOT66js.CompanyConfigurationSecurityForm; exports.CompanyContainer = _chunkK2ANOT66js.CompanyContainer; exports.CompanyDeleter = _chunkK2ANOT66js.CompanyDeleter; exports.CompanyDetails = _chunkK2ANOT66js.CompanyDetails; exports.CompanyEditor = _chunkK2ANOT66js.CompanyEditor; exports.CompanyUsersList = _chunkK2ANOT66js.CompanyUsersList; exports.ContentListTable = _chunkK2ANOT66js.ContentListTable; exports.ContentTableSearch = _chunkK2ANOT66js.ContentTableSearch; exports.ContentTitle = _chunkK2ANOT66js.ContentTitle; exports.ContentsList = _chunkK2ANOT66js.ContentsList; exports.ContentsListById = _chunkK2ANOT66js.ContentsListById; exports.ContributorsList = _chunkK2ANOT66js.ContributorsList; exports.Cookies = _chunkK2ANOT66js.Cookies; exports.DatePickerPopover = _chunkK2ANOT66js.DatePickerPopover; exports.DateRangeSelector = _chunkK2ANOT66js.DateRangeSelector; exports.ErrorDetails = _chunkK2ANOT66js.ErrorDetails; exports.FileInput = _chunkK2ANOT66js.FileInput; exports.FileUploader = _chunkK2ANOT66js.FileUploader; exports.FileUploaderContent = _chunkK2ANOT66js.FileUploaderContent; exports.FileUploaderItem = _chunkK2ANOT66js.FileUploaderItem; exports.ForgotPassword = _chunkK2ANOT66js.ForgotPassword; exports.FormCheckbox = _chunkK2ANOT66js.FormCheckbox; exports.FormContainerGeneric = _chunkK2ANOT66js.FormContainerGeneric; exports.FormDate = _chunkK2ANOT66js.FormDate; exports.FormDateTime = _chunkK2ANOT66js.FormDateTime; exports.FormFeatures = _chunkK2ANOT66js.FormFeatures; exports.FormInput = _chunkK2ANOT66js.FormInput; exports.FormPassword = _chunkK2ANOT66js.FormPassword; exports.FormPlaceAutocomplete = _chunkK2ANOT66js.FormPlaceAutocomplete; exports.FormRoles = _chunkK2ANOT66js.FormRoles; exports.FormSelect = _chunkK2ANOT66js.FormSelect; exports.FormSlider = _chunkK2ANOT66js.FormSlider; exports.FormSwitch = _chunkK2ANOT66js.FormSwitch; exports.FormTextarea = _chunkK2ANOT66js.FormTextarea; exports.Header = _chunkK2ANOT66js.Header; exports.LandingComponent = _chunkK2ANOT66js.LandingComponent; exports.Login = _chunkK2ANOT66js.Login; exports.Logout = _chunkK2ANOT66js.Logout; exports.ModeToggleSwitch = _chunkK2ANOT66js.ModeToggleSwitch; exports.NotificationErrorBoundary = _chunkK2ANOT66js.NotificationErrorBoundary; exports.NotificationMenuItem = _chunkK2ANOT66js.NotificationMenuItem; exports.NotificationModal = _chunkK2ANOT66js.NotificationModal; exports.NotificationToast = _chunkK2ANOT66js.NotificationToast; exports.NotificationsList = _chunkK2ANOT66js.NotificationsList; exports.NotificationsListContainer = _chunkK2ANOT66js.NotificationsListContainer; exports.PageContainer = _chunkK2ANOT66js.PageContainer; exports.PageContainerContentDetails = _chunkK2ANOT66js.PageContainerContentDetails; exports.PageContentContainer = _chunkK2ANOT66js.PageContentContainer; exports.PageSection = _chunkK2ANOT66js.PageSection; exports.PasswordInput = _chunkK2ANOT66js.PasswordInput; exports.PushNotificationProvider = _chunkK2ANOT66js.PushNotificationProvider; exports.ReactMarkdownContainer = _chunkK2ANOT66js.ReactMarkdownContainer; exports.RecentPagesNavigator = _chunkK2ANOT66js.RecentPagesNavigator; exports.RefreshUser = _chunkK2ANOT66js.RefreshUser; exports.RelevantContentsList = _chunkK2ANOT66js.RelevantContentsList; exports.RelevantUsersList = _chunkK2ANOT66js.RelevantUsersList; exports.RemoveUserFromRole = _chunkK2ANOT66js.RemoveUserFromRole; exports.ResetPassword = _chunkK2ANOT66js.ResetPassword; exports.RoleContainer = _chunkK2ANOT66js.RoleContainer; exports.RoleDetails = _chunkK2ANOT66js.RoleDetails; exports.RoleUsersList = _chunkK2ANOT66js.RoleUsersList; exports.RolesList = _chunkK2ANOT66js.RolesList; exports.TabsContainer = _chunkK2ANOT66js.TabsContainer; exports.UserAvatar = _chunkK2ANOT66js.UserAvatar; exports.UserAvatarEditor = _chunkK2ANOT66js.UserAvatarEditor; exports.UserContainer = _chunkK2ANOT66js.UserContainer; exports.UserDeleter = _chunkK2ANOT66js.UserDeleter; exports.UserDetails = _chunkK2ANOT66js.UserDetails; exports.UserEditor = _chunkK2ANOT66js.UserEditor; exports.UserIndexContainer = _chunkK2ANOT66js.UserIndexContainer; exports.UserIndexDetails = _chunkK2ANOT66js.UserIndexDetails; exports.UserListInAdd = _chunkK2ANOT66js.UserListInAdd; exports.UserMultiSelect = _chunkK2ANOT66js.UserMultiSelect; exports.UserReactivator = _chunkK2ANOT66js.UserReactivator; exports.UserResentInvitationEmail = _chunkK2ANOT66js.UserResentInvitationEmail; exports.UserRoleAdd = _chunkK2ANOT66js.UserRoleAdd; exports.UserRolesList = _chunkK2ANOT66js.UserRolesList; exports.UserSelector = _chunkK2ANOT66js.UserSelector; exports.UsersList = _chunkK2ANOT66js.UsersList; exports.UsersListByContentIds = _chunkK2ANOT66js.UsersListByContentIds; exports.UsersListContainer = _chunkK2ANOT66js.UsersListContainer; exports.cellComponent = _chunkK2ANOT66js.cellComponent; exports.cellDate = _chunkK2ANOT66js.cellDate; exports.cellId = _chunkK2ANOT66js.cellId; exports.cellLink = _chunkK2ANOT66js.cellLink; exports.cellUrl = _chunkK2ANOT66js.cellUrl; exports.errorToast = _chunkK2ANOT66js.errorToast; exports.generateNotificationData = _chunkK2ANOT66js.generateNotificationData; exports.triggerAssociationToast = _chunkK2ANOT66js.triggerAssociationToast; exports.useFileUpload = _chunkK2ANOT66js.useFileUpload;
|
|
235
235
|
//# sourceMappingURL=index.js.map
|
|
@@ -108,17 +108,17 @@ import {
|
|
|
108
108
|
generateNotificationData,
|
|
109
109
|
triggerAssociationToast,
|
|
110
110
|
useFileUpload
|
|
111
|
-
} from "../chunk-
|
|
111
|
+
} from "../chunk-5QC7A6BL.mjs";
|
|
112
112
|
import "../chunk-C7C7VY4F.mjs";
|
|
113
|
-
import "../chunk-
|
|
114
|
-
import "../chunk-
|
|
115
|
-
import "../chunk-
|
|
113
|
+
import "../chunk-P2F54I7Q.mjs";
|
|
114
|
+
import "../chunk-JGFWIT2E.mjs";
|
|
115
|
+
import "../chunk-HTLEKZND.mjs";
|
|
116
116
|
import "../chunk-AUXK7QSA.mjs";
|
|
117
117
|
import "../chunk-SM63SZCP.mjs";
|
|
118
|
-
import "../chunk-
|
|
118
|
+
import "../chunk-IKBA4AHN.mjs";
|
|
119
119
|
import "../chunk-BLWVZK6J.mjs";
|
|
120
120
|
import "../chunk-Q2N6SQYW.mjs";
|
|
121
|
-
import "../chunk-
|
|
121
|
+
import "../chunk-FMBQZAIP.mjs";
|
|
122
122
|
import "../chunk-RBIVEH2K.mjs";
|
|
123
123
|
import "../chunk-HAG77QBV.mjs";
|
|
124
124
|
import "../chunk-PAWJFY3S.mjs";
|
package/dist/contexts/index.js
CHANGED
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkK2ANOT66js = require('../chunk-K2ANOT66.js');
|
|
21
21
|
require('../chunk-IBS6NI7D.js');
|
|
22
|
-
require('../chunk-
|
|
23
|
-
require('../chunk-
|
|
24
|
-
require('../chunk-
|
|
22
|
+
require('../chunk-5IET37O4.js');
|
|
23
|
+
require('../chunk-DEYKTLA3.js');
|
|
24
|
+
require('../chunk-PO5Q3H5I.js');
|
|
25
25
|
require('../chunk-LXKSUWAV.js');
|
|
26
26
|
require('../chunk-AYHKQWHH.js');
|
|
27
|
-
require('../chunk-
|
|
27
|
+
require('../chunk-PMXG5WBC.js');
|
|
28
28
|
require('../chunk-4HCRAOS5.js');
|
|
29
29
|
require('../chunk-3FBCC4G3.js');
|
|
30
|
-
require('../chunk-
|
|
30
|
+
require('../chunk-Q4FXESVT.js');
|
|
31
31
|
require('../chunk-AGAJMJ4T.js');
|
|
32
32
|
require('../chunk-32HM6MDD.js');
|
|
33
33
|
require('../chunk-7QVYU63E.js');
|
|
@@ -49,5 +49,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
exports.CommonProvider =
|
|
52
|
+
exports.CommonProvider = _chunkK2ANOT66js.CommonProvider; exports.CompanyProvider = _chunkK2ANOT66js.CompanyProvider; exports.CurrentUserProvider = _chunkK2ANOT66js.CurrentUserProvider; exports.NotificationContextProvider = _chunkK2ANOT66js.NotificationContextProvider; exports.RoleProvider = _chunkK2ANOT66js.RoleProvider; exports.SharedProvider = _chunkK2ANOT66js.SharedProvider; exports.SocketContext = _chunkK2ANOT66js.SocketContext; exports.SocketProvider = _chunkK2ANOT66js.SocketProvider; exports.UserProvider = _chunkK2ANOT66js.UserProvider; exports.useCommonContext = _chunkK2ANOT66js.useCommonContext; exports.useCompanyContext = _chunkK2ANOT66js.useCompanyContext; exports.useCurrentUserContext = _chunkK2ANOT66js.useCurrentUserContext; exports.useNotificationContext = _chunkK2ANOT66js.useNotificationContext; exports.useRoleContext = _chunkK2ANOT66js.useRoleContext; exports.useSharedContext = _chunkK2ANOT66js.useSharedContext; exports.useSocketContext = _chunkK2ANOT66js.useSocketContext; exports.useUserContext = _chunkK2ANOT66js.useUserContext;
|
|
53
53
|
//# sourceMappingURL=index.js.map
|
package/dist/contexts/index.mjs
CHANGED
|
@@ -17,17 +17,17 @@ import {
|
|
|
17
17
|
useSharedContext,
|
|
18
18
|
useSocketContext,
|
|
19
19
|
useUserContext
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-5QC7A6BL.mjs";
|
|
21
21
|
import "../chunk-C7C7VY4F.mjs";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-P2F54I7Q.mjs";
|
|
23
|
+
import "../chunk-JGFWIT2E.mjs";
|
|
24
|
+
import "../chunk-HTLEKZND.mjs";
|
|
25
25
|
import "../chunk-AUXK7QSA.mjs";
|
|
26
26
|
import "../chunk-SM63SZCP.mjs";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-IKBA4AHN.mjs";
|
|
28
28
|
import "../chunk-BLWVZK6J.mjs";
|
|
29
29
|
import "../chunk-Q2N6SQYW.mjs";
|
|
30
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-FMBQZAIP.mjs";
|
|
31
31
|
import "../chunk-RBIVEH2K.mjs";
|
|
32
32
|
import "../chunk-HAG77QBV.mjs";
|
|
33
33
|
import "../chunk-PAWJFY3S.mjs";
|
package/dist/core/index.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkQ4FXESVTjs = require('../chunk-Q4FXESVT.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -39,5 +39,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.AbstractApiData =
|
|
42
|
+
exports.AbstractApiData = _chunkQ4FXESVTjs.AbstractApiData; exports.AbstractService = _chunkQ4FXESVTjs.AbstractService; exports.DataClass = _chunkAGAJMJ4Tjs.DataClassRegistry; exports.DataClassRegistry = _chunkAGAJMJ4Tjs.DataClassRegistry; exports.EndpointCreator = _chunkQ4FXESVTjs.EndpointCreator; exports.HttpMethod = _chunkQ4FXESVTjs.HttpMethod; exports.JsonApiDataFactory = _chunkAGAJMJ4Tjs.JsonApiDataFactory; exports.ModuleRegistrar = _chunkQ4FXESVTjs.ModuleRegistrar; exports.ModuleRegistry = _chunkQ4FXESVTjs.ModuleRegistry; exports.Modules = _chunkQ4FXESVTjs.Modules; exports.RehydrationFactory = _chunkQ4FXESVTjs.RehydrationFactory; exports.createJsonApiInclusion = _chunkQ4FXESVTjs.createJsonApiInclusion; exports.getGlobalErrorHandler = _chunkQ4FXESVTjs.getGlobalErrorHandler; exports.rehydrate = _chunkQ4FXESVTjs.rehydrate; exports.rehydrateList = _chunkQ4FXESVTjs.rehydrateList; exports.setGlobalErrorHandler = _chunkQ4FXESVTjs.setGlobalErrorHandler; exports.translateData = _chunkAGAJMJ4Tjs.translateData; exports.translateResponse = _chunkAGAJMJ4Tjs.translateResponse;
|
|
43
43
|
//# sourceMappingURL=index.js.map
|
package/dist/core/index.mjs
CHANGED
package/dist/features/index.js
CHANGED
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkPO5Q3H5Ijs = require('../chunk-PO5Q3H5I.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
var _chunkAYHKQWHHjs = require('../chunk-AYHKQWHH.js');
|
|
42
|
-
require('../chunk-
|
|
42
|
+
require('../chunk-PMXG5WBC.js');
|
|
43
43
|
require('../chunk-4HCRAOS5.js');
|
|
44
|
-
require('../chunk-
|
|
44
|
+
require('../chunk-Q4FXESVT.js');
|
|
45
45
|
require('../chunk-AGAJMJ4T.js');
|
|
46
46
|
require('../chunk-32HM6MDD.js');
|
|
47
47
|
require('../chunk-7QVYU63E.js');
|
|
@@ -83,5 +83,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
exports.Auth =
|
|
86
|
+
exports.Auth = _chunkPO5Q3H5Ijs.Auth; exports.AuthComponent = _chunkPO5Q3H5Ijs.AuthComponent; exports.AuthModule = _chunkPO5Q3H5Ijs.AuthModule; exports.AuthService = _chunkPO5Q3H5Ijs.AuthService; exports.AuthorModule = _chunkPO5Q3H5Ijs.AuthorModule; exports.Company = _chunkPO5Q3H5Ijs.Company; exports.CompanyFields = _chunkPO5Q3H5Ijs.CompanyFields; exports.CompanyModule = _chunkPO5Q3H5Ijs.CompanyModule; exports.CompanyService = _chunkPO5Q3H5Ijs.CompanyService; exports.Content = _chunkPO5Q3H5Ijs.Content; exports.ContentFields = _chunkPO5Q3H5Ijs.ContentFields; exports.ContentModule = _chunkPO5Q3H5Ijs.ContentModule; exports.ContentService = _chunkPO5Q3H5Ijs.ContentService; exports.Feature = _chunkPO5Q3H5Ijs.Feature; exports.FeatureModule = _chunkPO5Q3H5Ijs.FeatureModule; exports.FeatureService = _chunkPO5Q3H5Ijs.FeatureService; exports.Module = _chunkPO5Q3H5Ijs.Module; exports.ModuleModule = _chunkPO5Q3H5Ijs.ModuleModule; exports.Notification = _chunkPO5Q3H5Ijs.Notification; exports.NotificationFields = _chunkPO5Q3H5Ijs.NotificationFields; exports.NotificationModule = _chunkPO5Q3H5Ijs.NotificationModule; exports.NotificationService = _chunkPO5Q3H5Ijs.NotificationService; exports.Push = _chunkPO5Q3H5Ijs.Push; exports.PushModule = _chunkPO5Q3H5Ijs.PushModule; exports.PushService = _chunkPO5Q3H5Ijs.PushService; exports.Role = _chunkPO5Q3H5Ijs.Role; exports.RoleFields = _chunkPO5Q3H5Ijs.RoleFields; exports.RoleModule = _chunkPO5Q3H5Ijs.RoleModule; exports.RoleService = _chunkPO5Q3H5Ijs.RoleService; exports.S3 = _chunkPO5Q3H5Ijs.S3; exports.S3Module = _chunkPO5Q3H5Ijs.S3Module; exports.S3Service = _chunkPO5Q3H5Ijs.S3Service; exports.User = _chunkPO5Q3H5Ijs.User; exports.UserFields = _chunkPO5Q3H5Ijs.UserFields; exports.UserModule = _chunkPO5Q3H5Ijs.UserModule; exports.UserService = _chunkPO5Q3H5Ijs.UserService; exports.configureAuth = _chunkAYHKQWHHjs.configureAuth;
|
|
87
87
|
//# sourceMappingURL=index.js.map
|
package/dist/features/index.mjs
CHANGED
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
UserFields,
|
|
36
36
|
UserModule,
|
|
37
37
|
UserService
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-HTLEKZND.mjs";
|
|
39
39
|
import {
|
|
40
40
|
configureAuth
|
|
41
41
|
} from "../chunk-SM63SZCP.mjs";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-IKBA4AHN.mjs";
|
|
43
43
|
import "../chunk-BLWVZK6J.mjs";
|
|
44
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-FMBQZAIP.mjs";
|
|
45
45
|
import "../chunk-RBIVEH2K.mjs";
|
|
46
46
|
import "../chunk-HAG77QBV.mjs";
|
|
47
47
|
import "../chunk-PAWJFY3S.mjs";
|
package/dist/hooks/index.js
CHANGED
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkK2ANOT66js = require('../chunk-K2ANOT66.js');
|
|
16
16
|
require('../chunk-IBS6NI7D.js');
|
|
17
|
-
require('../chunk-
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-
|
|
17
|
+
require('../chunk-5IET37O4.js');
|
|
18
|
+
require('../chunk-DEYKTLA3.js');
|
|
19
|
+
require('../chunk-PO5Q3H5I.js');
|
|
20
20
|
require('../chunk-LXKSUWAV.js');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -26,10 +26,10 @@ require('../chunk-LXKSUWAV.js');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkAYHKQWHHjs = require('../chunk-AYHKQWHH.js');
|
|
29
|
-
require('../chunk-
|
|
29
|
+
require('../chunk-PMXG5WBC.js');
|
|
30
30
|
require('../chunk-4HCRAOS5.js');
|
|
31
31
|
require('../chunk-3FBCC4G3.js');
|
|
32
|
-
require('../chunk-
|
|
32
|
+
require('../chunk-Q4FXESVT.js');
|
|
33
33
|
require('../chunk-AGAJMJ4T.js');
|
|
34
34
|
require('../chunk-32HM6MDD.js');
|
|
35
35
|
require('../chunk-7QVYU63E.js');
|
|
@@ -52,5 +52,5 @@ require('../chunk-7QVYU63E.js');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
exports.TableGeneratorRegistry =
|
|
55
|
+
exports.TableGeneratorRegistry = _chunkK2ANOT66js.TableGeneratorRegistry; exports.configureI18n = _chunkAYHKQWHHjs.configureI18n; exports.getI18nLink = _chunkAYHKQWHHjs.getI18nLink; exports.registerTableGenerator = _chunkK2ANOT66js.registerTableGenerator; exports.tableGeneratorRegistry = _chunkK2ANOT66js.tableGeneratorRegistry; exports.useCustomD3Graph = _chunkK2ANOT66js.useCustomD3Graph; exports.useDataListRetriever = _chunkK2ANOT66js.useDataListRetriever; exports.useDebounce = _chunkK2ANOT66js.useDebounce; exports.useI18nDateFnsLocale = _chunkAYHKQWHHjs.useI18nDateFnsLocale; exports.useI18nLocale = _chunkAYHKQWHHjs.useI18nLocale; exports.useI18nRouter = _chunkAYHKQWHHjs.useI18nRouter; exports.useI18nTranslations = _chunkAYHKQWHHjs.useI18nTranslations; exports.useNotificationSync = _chunkK2ANOT66js.useNotificationSync; exports.usePageTracker = _chunkK2ANOT66js.usePageTracker; exports.usePageUrlGenerator = _chunkK2ANOT66js.usePageUrlGenerator; exports.useSocket = _chunkK2ANOT66js.useSocket; exports.useTableGenerator = _chunkK2ANOT66js.useTableGenerator; exports.useUrlRewriter = _chunkK2ANOT66js.useUrlRewriter;
|
|
56
56
|
//# sourceMappingURL=index.js.map
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
useSocket,
|
|
13
13
|
useTableGenerator,
|
|
14
14
|
useUrlRewriter
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-5QC7A6BL.mjs";
|
|
16
16
|
import "../chunk-C7C7VY4F.mjs";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-P2F54I7Q.mjs";
|
|
18
|
+
import "../chunk-JGFWIT2E.mjs";
|
|
19
|
+
import "../chunk-HTLEKZND.mjs";
|
|
20
20
|
import "../chunk-AUXK7QSA.mjs";
|
|
21
21
|
import {
|
|
22
22
|
configureI18n,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
useI18nRouter,
|
|
27
27
|
useI18nTranslations
|
|
28
28
|
} from "../chunk-SM63SZCP.mjs";
|
|
29
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-IKBA4AHN.mjs";
|
|
30
30
|
import "../chunk-BLWVZK6J.mjs";
|
|
31
31
|
import "../chunk-Q2N6SQYW.mjs";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-FMBQZAIP.mjs";
|
|
33
33
|
import "../chunk-RBIVEH2K.mjs";
|
|
34
34
|
import "../chunk-HAG77QBV.mjs";
|
|
35
35
|
import "../chunk-PAWJFY3S.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -23,6 +23,7 @@ declare function configureJsonApi(config: {
|
|
|
23
23
|
bootstrapper?: () => void;
|
|
24
24
|
additionalHeaders?: Record<string, string>;
|
|
25
25
|
}): void;
|
|
26
|
+
declare function getApiUrl(): string;
|
|
26
27
|
declare function getAppUrl(): string;
|
|
27
28
|
declare function getTrackablePages(): ModuleWithPermissions[];
|
|
28
29
|
declare function JsonApiGet(params: {
|
|
@@ -74,4 +75,4 @@ declare function JsonApiDelete(params: {
|
|
|
74
75
|
responseType?: ApiRequestDataTypeInterface;
|
|
75
76
|
}): Promise<ApiResponseInterface>;
|
|
76
77
|
|
|
77
|
-
export { ApiRequestDataTypeInterface, ApiResponseInterface, JsonApiDelete, JsonApiGet, JsonApiPatch, JsonApiPost, JsonApiPut, ModuleWithPermissions, configureJsonApi, getAppUrl, getTrackablePages };
|
|
78
|
+
export { ApiRequestDataTypeInterface, ApiResponseInterface, JsonApiDelete, JsonApiGet, JsonApiPatch, JsonApiPost, JsonApiPut, ModuleWithPermissions, configureJsonApi, getApiUrl, getAppUrl, getTrackablePages };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ declare function configureJsonApi(config: {
|
|
|
23
23
|
bootstrapper?: () => void;
|
|
24
24
|
additionalHeaders?: Record<string, string>;
|
|
25
25
|
}): void;
|
|
26
|
+
declare function getApiUrl(): string;
|
|
26
27
|
declare function getAppUrl(): string;
|
|
27
28
|
declare function getTrackablePages(): ModuleWithPermissions[];
|
|
28
29
|
declare function JsonApiGet(params: {
|
|
@@ -74,4 +75,4 @@ declare function JsonApiDelete(params: {
|
|
|
74
75
|
responseType?: ApiRequestDataTypeInterface;
|
|
75
76
|
}): Promise<ApiResponseInterface>;
|
|
76
77
|
|
|
77
|
-
export { ApiRequestDataTypeInterface, ApiResponseInterface, JsonApiDelete, JsonApiGet, JsonApiPatch, JsonApiPost, JsonApiPut, ModuleWithPermissions, configureJsonApi, getAppUrl, getTrackablePages };
|
|
78
|
+
export { ApiRequestDataTypeInterface, ApiResponseInterface, JsonApiDelete, JsonApiGet, JsonApiPatch, JsonApiPost, JsonApiPut, ModuleWithPermissions, configureJsonApi, getApiUrl, getAppUrl, getTrackablePages };
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,8 @@ var _chunkAYHKQWHHjs = require('./chunk-AYHKQWHH.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
var _chunkPMXG5WBCjs = require('./chunk-PMXG5WBC.js');
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
|
|
@@ -32,7 +33,7 @@ var _chunk4HCRAOS5js = require('./chunk-4HCRAOS5.js');
|
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
|
|
35
|
-
var
|
|
36
|
+
var _chunkQ4FXESVTjs = require('./chunk-Q4FXESVT.js');
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
|
|
@@ -83,5 +84,6 @@ require('./chunk-7QVYU63E.js');
|
|
|
83
84
|
|
|
84
85
|
|
|
85
86
|
|
|
86
|
-
|
|
87
|
+
|
|
88
|
+
exports.AbstractApiData = _chunkQ4FXESVTjs.AbstractApiData; exports.AbstractService = _chunkQ4FXESVTjs.AbstractService; exports.Action = _chunk32HM6MDDjs.Action; exports.DataClass = _chunkAGAJMJ4Tjs.DataClassRegistry; exports.DataClassRegistry = _chunkAGAJMJ4Tjs.DataClassRegistry; exports.EndpointCreator = _chunkQ4FXESVTjs.EndpointCreator; exports.HttpMethod = _chunkQ4FXESVTjs.HttpMethod; exports.JsonApiDataFactory = _chunkAGAJMJ4Tjs.JsonApiDataFactory; exports.JsonApiDelete = _chunkPMXG5WBCjs.JsonApiDelete; exports.JsonApiGet = _chunkPMXG5WBCjs.JsonApiGet; exports.JsonApiPatch = _chunkPMXG5WBCjs.JsonApiPatch; exports.JsonApiPost = _chunkPMXG5WBCjs.JsonApiPost; exports.JsonApiPut = _chunkPMXG5WBCjs.JsonApiPut; exports.ModuleRegistrar = _chunkQ4FXESVTjs.ModuleRegistrar; exports.ModuleRegistry = _chunkQ4FXESVTjs.ModuleRegistry; exports.Modules = _chunkQ4FXESVTjs.Modules; exports.RehydrationFactory = _chunkQ4FXESVTjs.RehydrationFactory; exports.checkPermissions = _chunk32HM6MDDjs.checkPermissions; exports.checkPermissionsFromServer = _chunk32HM6MDDjs.checkPermissionsFromServer; exports.configureAuth = _chunkAYHKQWHHjs.configureAuth; exports.configureI18n = _chunkAYHKQWHHjs.configureI18n; exports.configureJsonApi = _chunkPMXG5WBCjs.configureJsonApi; exports.configureRoles = _chunk4HCRAOS5js.configureRoles; exports.createJsonApiInclusion = _chunkQ4FXESVTjs.createJsonApiInclusion; exports.getApiUrl = _chunkPMXG5WBCjs.getApiUrl; exports.getAppUrl = _chunkPMXG5WBCjs.getAppUrl; exports.getGlobalErrorHandler = _chunkQ4FXESVTjs.getGlobalErrorHandler; exports.getRoleId = _chunk4HCRAOS5js.getRoleId; exports.getTokenHandler = _chunkAYHKQWHHjs.getTokenHandler; exports.getTrackablePages = _chunkPMXG5WBCjs.getTrackablePages; exports.getValueFromPath = _chunk32HM6MDDjs.getValueFromPath; exports.isRolesConfigured = _chunk4HCRAOS5js.isRolesConfigured; exports.rehydrate = _chunkQ4FXESVTjs.rehydrate; exports.rehydrateList = _chunkQ4FXESVTjs.rehydrateList; exports.setGlobalErrorHandler = _chunkQ4FXESVTjs.setGlobalErrorHandler; exports.translateData = _chunkAGAJMJ4Tjs.translateData; exports.translateResponse = _chunkAGAJMJ4Tjs.translateResponse;
|
|
87
89
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;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;AACF,+
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;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;AACF,+mEAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
|