@rakun-kit/core 1.1.0 → 1.1.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/cjs/api/routes/manager/media/finalizeUpload.js +42 -0
- package/dist/cjs/api/routes/manager/media/finalizeUpload.js.map +1 -1
- package/dist/cjs/api/routes/manager/media/prepareUpload.js +26 -1
- package/dist/cjs/api/routes/manager/media/prepareUpload.js.map +1 -1
- package/dist/cjs/api/routes/manager/media/uploadBinary.js +40 -0
- package/dist/cjs/api/routes/manager/media/uploadBinary.js.map +1 -1
- package/dist/esm/api/context.d.ts +1 -1
- package/dist/esm/api/context.js +2 -2
- package/dist/esm/api/operations/custom.d.ts +1 -1
- package/dist/esm/api/operations/custom.js +1 -1
- package/dist/esm/api/operations/index.d.ts +41 -41
- package/dist/esm/api/operations/index.js +7 -7
- package/dist/esm/api/operations/manager-contract.d.ts +30 -30
- package/dist/esm/api/operations/manager-contract.js +4 -4
- package/dist/esm/api/operations/manager.d.ts +31 -31
- package/dist/esm/api/operations/manager.js +35 -35
- package/dist/esm/api/operations/types.d.ts +1 -1
- package/dist/esm/api/operations/web-contract.d.ts +3 -3
- package/dist/esm/api/operations/web-contract.js +3 -3
- package/dist/esm/api/operations/web.d.ts +4 -4
- package/dist/esm/api/operations/web.js +5 -5
- package/dist/esm/api/proxies/context.d.ts +2 -2
- package/dist/esm/api/proxies/index.d.ts +4 -4
- package/dist/esm/api/proxies/index.js +1 -1
- package/dist/esm/api/routes/manager/auth/accountInfo.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/accountInfo.js +3 -3
- package/dist/esm/api/routes/manager/auth/deleteSession.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/deleteSession.js +3 -3
- package/dist/esm/api/routes/manager/auth/login.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/login.js +4 -4
- package/dist/esm/api/routes/manager/auth/logout.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/logout.js +3 -3
- package/dist/esm/api/routes/manager/auth/totp/confirmTotp.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/totp/confirmTotp.js +2 -2
- package/dist/esm/api/routes/manager/auth/totp/enrollTotp.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/totp/enrollTotp.js +3 -3
- package/dist/esm/api/routes/manager/auth/totp/verifyTotp.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/totp/verifyTotp.js +3 -3
- package/dist/esm/api/routes/manager/auth/updatePassword.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/updatePassword.js +3 -3
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthOptions.js +4 -4
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnAuthVerify.js +4 -4
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterOptions.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterOptions.js +3 -3
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterVerify.d.ts +1 -1
- package/dist/esm/api/routes/manager/auth/webauthn/webauthnRegisterVerify.js +4 -4
- package/dist/esm/api/routes/manager/create.d.ts +2 -2
- package/dist/esm/api/routes/manager/create.js +8 -8
- package/dist/esm/api/routes/manager/delete.d.ts +2 -2
- package/dist/esm/api/routes/manager/delete.js +8 -8
- package/dist/esm/api/routes/manager/get.d.ts +2 -2
- package/dist/esm/api/routes/manager/get.js +6 -6
- package/dist/esm/api/routes/manager/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/list.js +8 -8
- package/dist/esm/api/routes/manager/literals/list.d.ts +2 -2
- package/dist/esm/api/routes/manager/literals/list.js +5 -5
- package/dist/esm/api/routes/manager/literals/upsert.d.ts +2 -2
- package/dist/esm/api/routes/manager/literals/upsert.js +6 -6
- package/dist/esm/api/routes/manager/media/createFolder.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/createFolder.js +7 -7
- package/dist/esm/api/routes/manager/media/finalizeUpload.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/finalizeUpload.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/media/finalizeUpload.js +50 -8
- package/dist/esm/api/routes/manager/media/finalizeUpload.js.map +1 -1
- package/dist/esm/api/routes/manager/media/getMediaUrl.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/getMediaUrl.js +3 -3
- package/dist/esm/api/routes/manager/media/listFolders.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/listFolders.js +4 -4
- package/dist/esm/api/routes/manager/media/prepareUpload.d.ts +2 -2
- package/dist/esm/api/routes/manager/media/prepareUpload.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/media/prepareUpload.js +29 -4
- package/dist/esm/api/routes/manager/media/prepareUpload.js.map +1 -1
- package/dist/esm/api/routes/manager/media/uploadBinary.d.ts +1 -1
- package/dist/esm/api/routes/manager/media/uploadBinary.d.ts.map +1 -1
- package/dist/esm/api/routes/manager/media/uploadBinary.js +45 -5
- package/dist/esm/api/routes/manager/media/uploadBinary.js.map +1 -1
- package/dist/esm/api/routes/manager/setDefaultLanguage.d.ts +2 -2
- package/dist/esm/api/routes/manager/setDefaultLanguage.js +4 -4
- package/dist/esm/api/routes/manager/update.d.ts +2 -2
- package/dist/esm/api/routes/manager/update.js +8 -8
- package/dist/esm/api/routes/web/page.d.ts +1 -1
- package/dist/esm/api/routes/web/page.js +13 -13
- package/dist/esm/api/sessionCookie.d.ts +1 -1
- package/dist/esm/api/utils/checkFailureCase.d.ts +1 -1
- package/dist/esm/api/utils/checkFailureCase.js +1 -1
- package/dist/esm/api/utils/checkOwnership.d.ts +2 -2
- package/dist/esm/api/utils/checkOwnership.js +3 -3
- package/dist/esm/api/utils/checkPermissions.d.ts +2 -2
- package/dist/esm/api/utils/checkPermissions.js +2 -2
- package/dist/esm/api/utils/getLanguages.js +2 -2
- package/dist/esm/api/utils/getLink.d.ts +2 -2
- package/dist/esm/api/utils/getLink.js +4 -4
- package/dist/esm/api/utils/getUser.d.ts +1 -1
- package/dist/esm/api/utils/getUser.js +4 -4
- package/dist/esm/api/utils/parseId.d.ts +1 -1
- package/dist/esm/api/utils/parseId.js +1 -1
- package/dist/esm/api/utils/passwords.js +1 -1
- package/dist/esm/api/utils/populates/populateLinks.d.ts +2 -2
- package/dist/esm/api/utils/populates/populateLinks.js +4 -4
- package/dist/esm/api/utils/populates/populateRelations.d.ts +2 -2
- package/dist/esm/api/utils/populates/populateRelations.js +6 -6
- package/dist/esm/api/utils/redirects/resolveRedirect.js +2 -2
- package/dist/esm/api/utils/routes/revalidatePath.js +5 -5
- package/dist/esm/api/utils/routes/routeDefinitions.d.ts +1 -1
- package/dist/esm/api/utils/routes/routeMapHelpers.d.ts +3 -3
- package/dist/esm/api/utils/routes/routeMapHelpers.js +6 -6
- package/dist/esm/api/utils/routes/syncConfiguredRoutes.d.ts +2 -2
- package/dist/esm/api/utils/routes/syncConfiguredRoutes.js +5 -5
- package/dist/esm/api/utils/routes/updateRoutesMap.d.ts +2 -2
- package/dist/esm/api/utils/routes/updateRoutesMap.js +4 -4
- package/dist/esm/api/utils/transformObjectIdsToStrings.js +1 -1
- package/dist/esm/api/utils/transformStringToObjectIds.js +1 -1
- package/dist/esm/api/utils/translate.d.ts +1 -1
- package/dist/esm/api/utils/translate.js +3 -3
- package/dist/esm/api/utils/validateModule.d.ts +1 -1
- package/dist/esm/api/utils/validateModule.js +2 -2
- package/dist/esm/bootstrapState.d.ts +8 -8
- package/dist/esm/client.d.ts +34 -34
- package/dist/esm/client.js +25 -25
- package/dist/esm/contracts.d.ts +26 -26
- package/dist/esm/contracts.js +26 -26
- package/dist/esm/index.d.ts +43 -43
- package/dist/esm/index.js +39 -39
- package/dist/esm/internal-content-types/HelloWorld.d.ts +3 -3
- package/dist/esm/internal-content-types/HelloWorld.js +2 -2
- package/dist/esm/internal-content-types/Language.d.ts +6 -6
- package/dist/esm/internal-content-types/Language.js +2 -2
- package/dist/esm/internal-content-types/LiteralTranslation.d.ts +5 -5
- package/dist/esm/internal-content-types/LiteralTranslation.js +2 -2
- package/dist/esm/internal-content-types/ManagerRole.d.ts +4 -4
- package/dist/esm/internal-content-types/ManagerRole.js +3 -3
- package/dist/esm/internal-content-types/ManagerUser.d.ts +9 -9
- package/dist/esm/internal-content-types/ManagerUser.js +3 -3
- package/dist/esm/internal-content-types/Media.d.ts +29 -29
- package/dist/esm/internal-content-types/Media.js +3 -3
- package/dist/esm/internal-content-types/MediaFolder.d.ts +7 -7
- package/dist/esm/internal-content-types/MediaFolder.js +2 -2
- package/dist/esm/internal-content-types/MfaChallenge.d.ts +16 -16
- package/dist/esm/internal-content-types/MfaChallenge.js +3 -3
- package/dist/esm/internal-content-types/Page.d.ts +5 -5
- package/dist/esm/internal-content-types/Page.js +3 -3
- package/dist/esm/internal-content-types/Redirect.d.ts +14 -14
- package/dist/esm/internal-content-types/Redirect.js +2 -2
- package/dist/esm/internal-content-types/Route.d.ts +11 -11
- package/dist/esm/internal-content-types/Route.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModule.d.ts +9 -9
- package/dist/esm/internal-content-types/RouteLayoutModule.js +2 -2
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.d.ts +8 -8
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.js +2 -2
- package/dist/esm/internal-content-types/RouteMap.d.ts +7 -7
- package/dist/esm/internal-content-types/RouteMap.js +2 -2
- package/dist/esm/internal-content-types/RouteSettings.d.ts +8 -8
- package/dist/esm/internal-content-types/RouteSettings.js +3 -3
- package/dist/esm/internal-content-types/Seo.d.ts +4 -4
- package/dist/esm/internal-content-types/Seo.js +2 -2
- package/dist/esm/internal-content-types/Session.d.ts +12 -12
- package/dist/esm/internal-content-types/Session.js +3 -3
- package/dist/esm/internal-content-types/UserMfa.d.ts +15 -15
- package/dist/esm/internal-content-types/UserMfa.js +3 -3
- package/dist/esm/internal-content-types/WebAuthnCredential.d.ts +15 -15
- package/dist/esm/internal-content-types/WebAuthnCredential.js +3 -3
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts +14 -14
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.js +3 -3
- package/dist/esm/internal-content-types/index.d.ts +20 -20
- package/dist/esm/internal-content-types/index.js +20 -20
- package/dist/esm/lib/ContentType.d.ts +3 -3
- package/dist/esm/lib/ContentType.js +4 -4
- package/dist/esm/lib/Permissions.d.ts +1 -1
- package/dist/esm/lib/Registry.d.ts +2 -2
- package/dist/esm/lib/Registry.js +4 -4
- package/dist/esm/lib/errors/AppError.d.ts +1 -1
- package/dist/esm/lib/errors/AppError.js +1 -1
- package/dist/esm/lib/errors/index.d.ts +4 -4
- package/dist/esm/lib/errors/index.js +3 -3
- package/dist/esm/lib/errors/throwAppError.d.ts +1 -1
- package/dist/esm/lib/errors/throwAppError.js +3 -3
- package/dist/esm/lib/fields/Boolean.d.ts +3 -3
- package/dist/esm/lib/fields/Boolean.js +1 -1
- package/dist/esm/lib/fields/ContentReference.d.ts +5 -5
- package/dist/esm/lib/fields/ContentReference.js +2 -2
- package/dist/esm/lib/fields/Date.d.ts +3 -3
- package/dist/esm/lib/fields/Date.js +1 -1
- package/dist/esm/lib/fields/Field.d.ts +19 -19
- package/dist/esm/lib/fields/Field.js +1 -1
- package/dist/esm/lib/fields/File.d.ts +3 -3
- package/dist/esm/lib/fields/File.js +3 -3
- package/dist/esm/lib/fields/Iterator.d.ts +4 -4
- package/dist/esm/lib/fields/Iterator.js +2 -2
- package/dist/esm/lib/fields/Link.d.ts +4 -4
- package/dist/esm/lib/fields/Link.js +3 -3
- package/dist/esm/lib/fields/List.d.ts +3 -3
- package/dist/esm/lib/fields/List.js +1 -1
- package/dist/esm/lib/fields/Number.d.ts +3 -3
- package/dist/esm/lib/fields/Number.js +1 -1
- package/dist/esm/lib/fields/Relation.d.ts +6 -6
- package/dist/esm/lib/fields/Relation.js +5 -5
- package/dist/esm/lib/fields/Select.d.ts +3 -3
- package/dist/esm/lib/fields/Select.js +1 -1
- package/dist/esm/lib/fields/SelfRelation.d.ts +4 -4
- package/dist/esm/lib/fields/SelfRelation.js +2 -2
- package/dist/esm/lib/fields/SimpleList.d.ts +4 -4
- package/dist/esm/lib/fields/SimpleList.js +2 -2
- package/dist/esm/lib/fields/String.d.ts +3 -3
- package/dist/esm/lib/fields/String.js +3 -3
- package/dist/esm/lib/fields/index.d.ts +19 -19
- package/dist/esm/lib/fields/index.js +13 -13
- package/dist/esm/lib/types/index.d.ts +2 -2
- package/dist/esm/lib/utils/getListField.d.ts +1 -1
- package/dist/esm/lib/utils/getSchemas.d.ts +1 -1
- package/dist/esm/lib/utils/getTranslation.d.ts +2 -2
- package/dist/esm/lib/utils/getTranslation.js +1 -1
- package/dist/esm/lib/utils/isTranslatableObject.d.ts +1 -1
- package/dist/esm/lib/utils/translateObject.d.ts +2 -2
- package/dist/esm/lib/utils/translateObject.js +3 -3
- package/dist/esm/literals/definitions.d.ts +1 -1
- package/dist/esm/literals/definitions.js +1 -1
- package/dist/esm/literals/index.d.ts +3 -3
- package/dist/esm/literals/index.js +3 -3
- package/dist/esm/literals/manager.d.ts +1 -1
- package/dist/esm/literals/manager.js +1 -1
- package/dist/esm/manager.d.ts +124 -124
- package/dist/esm/manager.js +2 -2
- package/dist/esm/media/imageOptimization.d.ts +1 -1
- package/dist/esm/media/imageOptimization.js +2 -2
- package/dist/esm/media/index.d.ts +4 -4
- package/dist/esm/media/index.js +3 -3
- package/dist/esm/media/mediaService.d.ts +1 -1
- package/dist/esm/orm/createIndexes.js +1 -1
- package/dist/esm/orm/database.js +3 -3
- package/dist/esm/orm/dbService.d.ts +3 -3
- package/dist/esm/orm/index.d.ts +2 -2
- package/dist/esm/orm/index.js +12 -12
- package/dist/esm/orm/mongodbPeer.js +1 -1
- package/dist/esm/orm/operations/clear.d.ts +1 -1
- package/dist/esm/orm/operations/clear.js +1 -1
- package/dist/esm/orm/operations/create.d.ts +2 -2
- package/dist/esm/orm/operations/create.js +4 -4
- package/dist/esm/orm/operations/delete.d.ts +2 -2
- package/dist/esm/orm/operations/delete.js +2 -2
- package/dist/esm/orm/operations/find.d.ts +2 -2
- package/dist/esm/orm/operations/find.js +3 -3
- package/dist/esm/orm/operations/findDependencies.d.ts +2 -2
- package/dist/esm/orm/operations/findDependencies.js +4 -4
- package/dist/esm/orm/operations/get.d.ts +3 -3
- package/dist/esm/orm/operations/get.js +3 -3
- package/dist/esm/orm/operations/getAll.d.ts +2 -2
- package/dist/esm/orm/operations/getAll.js +2 -2
- package/dist/esm/orm/operations/list.d.ts +2 -2
- package/dist/esm/orm/operations/list.js +3 -3
- package/dist/esm/orm/operations/update.d.ts +3 -3
- package/dist/esm/orm/operations/update.js +5 -5
- package/dist/esm/orm/operations/updateMany.d.ts +2 -2
- package/dist/esm/orm/operations/updateMany.js +3 -3
- package/dist/esm/orm/operations/upsert.d.ts +2 -2
- package/dist/esm/orm/operations/upsert.js +4 -4
- package/dist/esm/orm/utils/deepDeleteNulls.js +1 -1
- package/dist/esm/orm/utils/parseId.d.ts +1 -1
- package/dist/esm/orm/utils/parseId.js +1 -1
- package/dist/esm/orm/utils/transformObjectIdsToStrings.js +1 -1
- package/dist/esm/orm/utils/transformStringToObjectIds.js +1 -1
- package/dist/esm/schemas/manager/literals/upsert.js +1 -1
- package/dist/esm/schemas/manager/media/finalizeUpload.js +1 -1
- package/dist/esm/schemas/manager/media/getMediaUrl.js +1 -1
- package/dist/esm/schemas/manager/media/listFolders.js +1 -1
- package/dist/esm/schemas/web/page.js +1 -1
- package/dist/esm/web/index.d.ts +1 -1
- package/dist/esm/web/index.js +1 -1
- package/dist/esm/web/page.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createManagerOperationContracts: () => {
|
|
2
|
-
"manager.contentTypes": import("./types").RakunOperationContractWithoutInput<{
|
|
2
|
+
"manager.contentTypes": import("./types.js").RakunOperationContractWithoutInput<{
|
|
3
3
|
name: string;
|
|
4
4
|
fields: Record<string, unknown>;
|
|
5
5
|
uniques: string[][];
|
|
@@ -11,7 +11,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
11
11
|
listFields?: string[] | undefined;
|
|
12
12
|
isHiddenFromManager?: boolean | undefined;
|
|
13
13
|
}[], "query", "get", "auth">;
|
|
14
|
-
"manager.languages": import("./types").RakunOperationContractWithoutInput<{
|
|
14
|
+
"manager.languages": import("./types.js").RakunOperationContractWithoutInput<{
|
|
15
15
|
code: string;
|
|
16
16
|
name: string;
|
|
17
17
|
default: boolean;
|
|
@@ -23,27 +23,27 @@ export declare const createManagerOperationContracts: () => {
|
|
|
23
23
|
contentType: string;
|
|
24
24
|
} | undefined;
|
|
25
25
|
}[], "query", "get", "auth">;
|
|
26
|
-
"manager.regenerateRoutes": import("./types").RakunOperationContractWithoutInput<{
|
|
26
|
+
"manager.regenerateRoutes": import("./types.js").RakunOperationContractWithoutInput<{
|
|
27
27
|
ok: boolean;
|
|
28
28
|
}, "mutation", "post", "auth">;
|
|
29
|
-
"manager.create": import("./types").RakunOperationContractWithInput<{
|
|
29
|
+
"manager.create": import("./types.js").RakunOperationContractWithInput<{
|
|
30
30
|
contentType: string;
|
|
31
31
|
data: any;
|
|
32
32
|
}, any, "mutation", "post", "auth">;
|
|
33
|
-
"manager.update": import("./types").RakunOperationContractWithInput<{
|
|
33
|
+
"manager.update": import("./types.js").RakunOperationContractWithInput<{
|
|
34
34
|
contentType: string;
|
|
35
35
|
id: string;
|
|
36
36
|
data: any;
|
|
37
37
|
}, any, "mutation", "post", "auth">;
|
|
38
|
-
"manager.delete": import("./types").RakunOperationContractWithInput<{
|
|
38
|
+
"manager.delete": import("./types.js").RakunOperationContractWithInput<{
|
|
39
39
|
contentType: string;
|
|
40
40
|
id: string;
|
|
41
41
|
}, any, "mutation", "post", "auth">;
|
|
42
|
-
"manager.get": import("./types").RakunOperationContractWithInput<{
|
|
42
|
+
"manager.get": import("./types.js").RakunOperationContractWithInput<{
|
|
43
43
|
contentType: string;
|
|
44
44
|
id: string;
|
|
45
45
|
}, any, "query", "post", "auth">;
|
|
46
|
-
"manager.list": import("./types").RakunOperationContractWithInput<{
|
|
46
|
+
"manager.list": import("./types.js").RakunOperationContractWithInput<{
|
|
47
47
|
contentType: string;
|
|
48
48
|
query: {
|
|
49
49
|
filter?: Record<string, any> | undefined;
|
|
@@ -61,13 +61,13 @@ export declare const createManagerOperationContracts: () => {
|
|
|
61
61
|
_id: string;
|
|
62
62
|
}[];
|
|
63
63
|
}, "query", "post", "auth">;
|
|
64
|
-
"manager.setDefaultLanguage": import("./types").RakunOperationContractWithInput<{
|
|
64
|
+
"manager.setDefaultLanguage": import("./types.js").RakunOperationContractWithInput<{
|
|
65
65
|
language: string;
|
|
66
66
|
}, {
|
|
67
67
|
ok: boolean;
|
|
68
68
|
}, "mutation", "post", "auth">;
|
|
69
|
-
"manager.permissions": import("./types").RakunOperationContractWithoutInput<string[], "query", "get", "auth">;
|
|
70
|
-
"manager.media.prepareUpload": import("./types").RakunOperationContractWithInput<{
|
|
69
|
+
"manager.permissions": import("./types.js").RakunOperationContractWithoutInput<string[], "query", "get", "auth">;
|
|
70
|
+
"manager.media.prepareUpload": import("./types.js").RakunOperationContractWithInput<{
|
|
71
71
|
fileName: string;
|
|
72
72
|
mime: string;
|
|
73
73
|
size: number;
|
|
@@ -80,7 +80,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
80
80
|
access: "public" | "private";
|
|
81
81
|
headers?: Record<string, string> | undefined;
|
|
82
82
|
}, "mutation", "post", "auth">;
|
|
83
|
-
"manager.media.finalizeUpload": import("./types").RakunOperationContractWithInput<{
|
|
83
|
+
"manager.media.finalizeUpload": import("./types.js").RakunOperationContractWithInput<{
|
|
84
84
|
key: string;
|
|
85
85
|
access?: "public" | "private" | undefined;
|
|
86
86
|
fileName?: string | undefined;
|
|
@@ -147,7 +147,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
147
147
|
path: string;
|
|
148
148
|
} | undefined;
|
|
149
149
|
}, "mutation", "post", "auth">;
|
|
150
|
-
"manager.media.getUrl": import("./types").RakunOperationContractWithInput<{
|
|
150
|
+
"manager.media.getUrl": import("./types.js").RakunOperationContractWithInput<{
|
|
151
151
|
key: string;
|
|
152
152
|
access?: "public" | "private" | undefined;
|
|
153
153
|
expiresInSeconds?: number | undefined;
|
|
@@ -158,7 +158,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
158
158
|
expiresAt: Date | null;
|
|
159
159
|
isPublic: boolean;
|
|
160
160
|
}, "query", "post", "auth">;
|
|
161
|
-
"manager.media.createFolder": import("./types").RakunOperationContractWithInput<{
|
|
161
|
+
"manager.media.createFolder": import("./types.js").RakunOperationContractWithInput<{
|
|
162
162
|
name: string;
|
|
163
163
|
parentId?: string | undefined;
|
|
164
164
|
description?: string | undefined;
|
|
@@ -170,7 +170,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
170
170
|
parentId?: string | undefined;
|
|
171
171
|
description?: string | undefined;
|
|
172
172
|
}, "mutation", "post", "auth">;
|
|
173
|
-
"manager.media.listFolders": import("./types").RakunOperationContractWithInput<{
|
|
173
|
+
"manager.media.listFolders": import("./types.js").RakunOperationContractWithInput<{
|
|
174
174
|
parentId?: string | undefined;
|
|
175
175
|
}, {
|
|
176
176
|
items: {
|
|
@@ -182,7 +182,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
182
182
|
description?: string | undefined;
|
|
183
183
|
}[];
|
|
184
184
|
}, "query", "post", "auth">;
|
|
185
|
-
"manager.literals.list": import("./types").RakunOperationContractWithInput<{
|
|
185
|
+
"manager.literals.list": import("./types.js").RakunOperationContractWithInput<{
|
|
186
186
|
locale?: string | undefined;
|
|
187
187
|
}, {
|
|
188
188
|
defaultLocale: string;
|
|
@@ -211,7 +211,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
211
211
|
translation?: string | undefined;
|
|
212
212
|
}[];
|
|
213
213
|
}, "query", "post", "auth">;
|
|
214
|
-
"manager.literals.upsert": import("./types").RakunOperationContractWithInput<{
|
|
214
|
+
"manager.literals.upsert": import("./types.js").RakunOperationContractWithInput<{
|
|
215
215
|
key: string;
|
|
216
216
|
locale: string;
|
|
217
217
|
message: string;
|
|
@@ -227,13 +227,13 @@ export declare const createManagerOperationContracts: () => {
|
|
|
227
227
|
extra: string[];
|
|
228
228
|
};
|
|
229
229
|
}, "mutation", "post", "auth">;
|
|
230
|
-
"manager.auth.updatePassword": import("./types").RakunOperationContractWithInput<{
|
|
230
|
+
"manager.auth.updatePassword": import("./types.js").RakunOperationContractWithInput<{
|
|
231
231
|
currentPassword: string;
|
|
232
232
|
newPassword: string;
|
|
233
233
|
}, {
|
|
234
234
|
ok: boolean;
|
|
235
235
|
}, "mutation", "post", "auth">;
|
|
236
|
-
"manager.auth.login": import("./types").RakunOperationContractWithInput<{
|
|
236
|
+
"manager.auth.login": import("./types.js").RakunOperationContractWithInput<{
|
|
237
237
|
username: string;
|
|
238
238
|
password: string;
|
|
239
239
|
}, {
|
|
@@ -243,10 +243,10 @@ export declare const createManagerOperationContracts: () => {
|
|
|
243
243
|
expiresAt: string;
|
|
244
244
|
method: string;
|
|
245
245
|
}, "mutation", "post", "public">;
|
|
246
|
-
"manager.auth.logout": import("./types").RakunOperationContractWithoutInput<{
|
|
246
|
+
"manager.auth.logout": import("./types.js").RakunOperationContractWithoutInput<{
|
|
247
247
|
token: string;
|
|
248
248
|
}, "mutation", "post", "auth">;
|
|
249
|
-
"manager.auth.getSession": import("./types").RakunOperationContractWithoutInput<{
|
|
249
|
+
"manager.auth.getSession": import("./types.js").RakunOperationContractWithoutInput<{
|
|
250
250
|
user: string;
|
|
251
251
|
email: string;
|
|
252
252
|
role: {
|
|
@@ -260,7 +260,7 @@ export declare const createManagerOperationContracts: () => {
|
|
|
260
260
|
_id: string;
|
|
261
261
|
password?: undefined;
|
|
262
262
|
} | null, "query", "get", "public">;
|
|
263
|
-
"manager.auth.accountInfo": import("./types").RakunOperationContractWithoutInput<{
|
|
263
|
+
"manager.auth.accountInfo": import("./types.js").RakunOperationContractWithoutInput<{
|
|
264
264
|
has2FA: boolean;
|
|
265
265
|
enabled2FA: boolean;
|
|
266
266
|
method2FA: "totp" | "webauthn";
|
|
@@ -271,21 +271,21 @@ export declare const createManagerOperationContracts: () => {
|
|
|
271
271
|
}[];
|
|
272
272
|
currentSession: string;
|
|
273
273
|
}, "query", "get", "auth">;
|
|
274
|
-
"manager.auth.deleteSession": import("./types").RakunOperationContractWithInput<{
|
|
274
|
+
"manager.auth.deleteSession": import("./types.js").RakunOperationContractWithInput<{
|
|
275
275
|
token: string;
|
|
276
276
|
}, {
|
|
277
277
|
ok: boolean;
|
|
278
278
|
}, "mutation", "post", "auth">;
|
|
279
|
-
"manager.auth.totp.enroll": import("./types").RakunOperationContractWithoutInput<{
|
|
279
|
+
"manager.auth.totp.enroll": import("./types.js").RakunOperationContractWithoutInput<{
|
|
280
280
|
qrDataURL: string;
|
|
281
281
|
otpauthURL: string;
|
|
282
282
|
}, "query", "get", "auth">;
|
|
283
|
-
"manager.auth.totp.confirm": import("./types").RakunOperationContractWithInput<{
|
|
283
|
+
"manager.auth.totp.confirm": import("./types.js").RakunOperationContractWithInput<{
|
|
284
284
|
code: string;
|
|
285
285
|
}, {
|
|
286
286
|
ok: boolean;
|
|
287
287
|
}, "mutation", "post", "auth">;
|
|
288
|
-
"manager.auth.totp.verify": import("./types").RakunOperationContractWithInput<{
|
|
288
|
+
"manager.auth.totp.verify": import("./types.js").RakunOperationContractWithInput<{
|
|
289
289
|
code: string;
|
|
290
290
|
challenge: string;
|
|
291
291
|
}, {
|
|
@@ -293,25 +293,25 @@ export declare const createManagerOperationContracts: () => {
|
|
|
293
293
|
} | {
|
|
294
294
|
error: string;
|
|
295
295
|
}, "mutation", "post", "public">;
|
|
296
|
-
"manager.auth.webauthn.register.options": import("./types").RakunOperationContractWithInput<{
|
|
296
|
+
"manager.auth.webauthn.register.options": import("./types.js").RakunOperationContractWithInput<{
|
|
297
297
|
deviceName: string;
|
|
298
298
|
}, {
|
|
299
299
|
token: string;
|
|
300
300
|
options: any;
|
|
301
301
|
}, "query", "post", "auth">;
|
|
302
|
-
"manager.auth.webauthn.register.verify": import("./types").RakunOperationContractWithInput<{
|
|
302
|
+
"manager.auth.webauthn.register.verify": import("./types.js").RakunOperationContractWithInput<{
|
|
303
303
|
token: string;
|
|
304
304
|
deviceName: string;
|
|
305
305
|
response: any;
|
|
306
306
|
}, {
|
|
307
307
|
ok: boolean;
|
|
308
308
|
}, "mutation", "post", "auth">;
|
|
309
|
-
"manager.auth.webauthn.auth.options": import("./types").RakunOperationContractWithInput<{
|
|
309
|
+
"manager.auth.webauthn.auth.options": import("./types.js").RakunOperationContractWithInput<{
|
|
310
310
|
challengeToken: string;
|
|
311
311
|
}, {
|
|
312
312
|
options: any;
|
|
313
313
|
}, "query", "post", "public">;
|
|
314
|
-
"manager.auth.webauthn.auth.verify": import("./types").RakunOperationContractWithInput<{
|
|
314
|
+
"manager.auth.webauthn.auth.verify": import("./types.js").RakunOperationContractWithInput<{
|
|
315
315
|
challengeToken: string;
|
|
316
316
|
response: any;
|
|
317
317
|
}, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import z from "zod";
|
|
3
|
-
import { defineOperationContract } from "./types";
|
|
4
|
-
import { Language, ManagerUser } from "../../internal-content-types";
|
|
5
|
-
import { EncodedContentTypeSchema } from "../../lib/ContentType";
|
|
6
|
-
import { accountInfoOutput, confirmTotpInput, createFolderInput, createFolderOutput, createInput, deleteInput, deleteSessionInput, enrollTotpOutput, finalizeUploadInput, finalizeUploadOutput, getInput, getMediaUrlInput, getMediaUrlOutput, listFoldersInput, listFoldersOutput, listInput, listLiteralsInput, listLiteralsOutput, listOutput, loginInput, loginOutput, logoutOutput, prepareUploadInput, prepareUploadOutput, setDefaultLanguageInput, updateInput, updatePasswordInput, upsertLiteralInput, upsertLiteralOutput, verifyTotpInput, verifyTotpOutput, webauthnAuthOptionsInput, webauthnAuthOptionsOutput, webauthnAuthVerifyInput, webauthnAuthVerifyOutput, webauthnRegisterOptionsInput, webauthnRegisterOptionsOutput, webauthnRegisterVerifyInput, } from "../../contracts";
|
|
3
|
+
import { defineOperationContract } from "./types.js";
|
|
4
|
+
import { Language, ManagerUser } from "../../internal-content-types/index.js";
|
|
5
|
+
import { EncodedContentTypeSchema } from "../../lib/ContentType.js";
|
|
6
|
+
import { accountInfoOutput, confirmTotpInput, createFolderInput, createFolderOutput, createInput, deleteInput, deleteSessionInput, enrollTotpOutput, finalizeUploadInput, finalizeUploadOutput, getInput, getMediaUrlInput, getMediaUrlOutput, listFoldersInput, listFoldersOutput, listInput, listLiteralsInput, listLiteralsOutput, listOutput, loginInput, loginOutput, logoutOutput, prepareUploadInput, prepareUploadOutput, setDefaultLanguageInput, updateInput, updatePasswordInput, upsertLiteralInput, upsertLiteralOutput, verifyTotpInput, verifyTotpOutput, webauthnAuthOptionsInput, webauthnAuthOptionsOutput, webauthnAuthVerifyInput, webauthnAuthVerifyOutput, webauthnRegisterOptionsInput, webauthnRegisterOptionsOutput, webauthnRegisterVerifyInput, } from "../../contracts.js";
|
|
7
7
|
const okOutput = z.object({ ok: z.boolean() });
|
|
8
8
|
export const createManagerOperationContracts = () => ({
|
|
9
9
|
"manager.contentTypes": defineOperationContract({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createManagerOperationDefinitions: () => {
|
|
2
|
-
"manager.contentTypes": import("./types").RakunOperationWithoutInput<{
|
|
2
|
+
"manager.contentTypes": import("./types.js").RakunOperationWithoutInput<{
|
|
3
3
|
name: string;
|
|
4
4
|
fields: Record<string, unknown>;
|
|
5
5
|
uniques: string[][];
|
|
@@ -11,7 +11,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
11
11
|
listFields?: string[] | undefined;
|
|
12
12
|
isHiddenFromManager?: boolean | undefined;
|
|
13
13
|
}[], "query", "get", "auth">;
|
|
14
|
-
"manager.languages": import("./types").RakunOperationWithoutInput<{
|
|
14
|
+
"manager.languages": import("./types.js").RakunOperationWithoutInput<{
|
|
15
15
|
code: string;
|
|
16
16
|
name: string;
|
|
17
17
|
default: boolean;
|
|
@@ -23,27 +23,27 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
23
23
|
contentType: string;
|
|
24
24
|
} | undefined;
|
|
25
25
|
}[], "query", "get", "auth">;
|
|
26
|
-
"manager.regenerateRoutes": import("./types").RakunOperationWithoutInput<{
|
|
26
|
+
"manager.regenerateRoutes": import("./types.js").RakunOperationWithoutInput<{
|
|
27
27
|
ok: boolean;
|
|
28
28
|
}, "mutation", "post", "auth">;
|
|
29
|
-
"manager.create": import("./types").RakunOperationWithInput<{
|
|
29
|
+
"manager.create": import("./types.js").RakunOperationWithInput<{
|
|
30
30
|
contentType: string;
|
|
31
31
|
data: any;
|
|
32
32
|
}, any, "mutation", "post", "auth">;
|
|
33
|
-
"manager.update": import("./types").RakunOperationWithInput<{
|
|
33
|
+
"manager.update": import("./types.js").RakunOperationWithInput<{
|
|
34
34
|
contentType: string;
|
|
35
35
|
id: string;
|
|
36
36
|
data: any;
|
|
37
37
|
}, any, "mutation", "post", "auth">;
|
|
38
|
-
"manager.delete": import("./types").RakunOperationWithInput<{
|
|
38
|
+
"manager.delete": import("./types.js").RakunOperationWithInput<{
|
|
39
39
|
contentType: string;
|
|
40
40
|
id: string;
|
|
41
41
|
}, any, "mutation", "post", "auth">;
|
|
42
|
-
"manager.get": import("./types").RakunOperationWithInput<{
|
|
42
|
+
"manager.get": import("./types.js").RakunOperationWithInput<{
|
|
43
43
|
contentType: string;
|
|
44
44
|
id: string;
|
|
45
45
|
}, any, "query", "post", "auth">;
|
|
46
|
-
"manager.list": import("./types").RakunOperationWithInput<{
|
|
46
|
+
"manager.list": import("./types.js").RakunOperationWithInput<{
|
|
47
47
|
contentType: string;
|
|
48
48
|
query: {
|
|
49
49
|
filter?: Record<string, any> | undefined;
|
|
@@ -61,13 +61,13 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
61
61
|
_id: string;
|
|
62
62
|
}[];
|
|
63
63
|
}, "query", "post", "auth">;
|
|
64
|
-
"manager.setDefaultLanguage": import("./types").RakunOperationWithInput<{
|
|
64
|
+
"manager.setDefaultLanguage": import("./types.js").RakunOperationWithInput<{
|
|
65
65
|
language: string;
|
|
66
66
|
}, {
|
|
67
67
|
ok: boolean;
|
|
68
68
|
}, "mutation", "post", "auth">;
|
|
69
|
-
"manager.permissions": import("./types").RakunOperationWithoutInput<string[], "query", "get", "auth">;
|
|
70
|
-
"manager.media.prepareUpload": import("./types").RakunOperationWithInput<{
|
|
69
|
+
"manager.permissions": import("./types.js").RakunOperationWithoutInput<string[], "query", "get", "auth">;
|
|
70
|
+
"manager.media.prepareUpload": import("./types.js").RakunOperationWithInput<{
|
|
71
71
|
fileName: string;
|
|
72
72
|
mime: string;
|
|
73
73
|
size: number;
|
|
@@ -80,7 +80,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
80
80
|
access: "public" | "private";
|
|
81
81
|
headers?: Record<string, string> | undefined;
|
|
82
82
|
}, "mutation", "post", "auth">;
|
|
83
|
-
"manager.media.finalizeUpload": import("./types").RakunOperationWithInput<{
|
|
83
|
+
"manager.media.finalizeUpload": import("./types.js").RakunOperationWithInput<{
|
|
84
84
|
key: string;
|
|
85
85
|
access?: "public" | "private" | undefined;
|
|
86
86
|
fileName?: string | undefined;
|
|
@@ -147,7 +147,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
147
147
|
path: string;
|
|
148
148
|
} | undefined;
|
|
149
149
|
}, "mutation", "post", "auth">;
|
|
150
|
-
"manager.media.getUrl": import("./types").RakunOperationWithInput<{
|
|
150
|
+
"manager.media.getUrl": import("./types.js").RakunOperationWithInput<{
|
|
151
151
|
key: string;
|
|
152
152
|
access?: "public" | "private" | undefined;
|
|
153
153
|
expiresInSeconds?: number | undefined;
|
|
@@ -158,7 +158,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
158
158
|
expiresAt: Date | null;
|
|
159
159
|
isPublic: boolean;
|
|
160
160
|
}, "query", "post", "auth">;
|
|
161
|
-
"manager.media.createFolder": import("./types").RakunOperationWithInput<{
|
|
161
|
+
"manager.media.createFolder": import("./types.js").RakunOperationWithInput<{
|
|
162
162
|
name: string;
|
|
163
163
|
parentId?: string | undefined;
|
|
164
164
|
description?: string | undefined;
|
|
@@ -170,7 +170,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
170
170
|
parentId?: string | undefined;
|
|
171
171
|
description?: string | undefined;
|
|
172
172
|
}, "mutation", "post", "auth">;
|
|
173
|
-
"manager.media.listFolders": import("./types").RakunOperationWithInput<{
|
|
173
|
+
"manager.media.listFolders": import("./types.js").RakunOperationWithInput<{
|
|
174
174
|
parentId?: string | undefined;
|
|
175
175
|
}, {
|
|
176
176
|
items: {
|
|
@@ -182,7 +182,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
182
182
|
description?: string | undefined;
|
|
183
183
|
}[];
|
|
184
184
|
}, "query", "post", "auth">;
|
|
185
|
-
"manager.literals.list": import("./types").RakunOperationWithInput<{
|
|
185
|
+
"manager.literals.list": import("./types.js").RakunOperationWithInput<{
|
|
186
186
|
locale?: string | undefined;
|
|
187
187
|
}, {
|
|
188
188
|
defaultLocale: string;
|
|
@@ -211,7 +211,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
211
211
|
translation?: string | undefined;
|
|
212
212
|
}[];
|
|
213
213
|
}, "query", "post", "auth">;
|
|
214
|
-
"manager.literals.upsert": import("./types").RakunOperationWithInput<{
|
|
214
|
+
"manager.literals.upsert": import("./types.js").RakunOperationWithInput<{
|
|
215
215
|
key: string;
|
|
216
216
|
locale: string;
|
|
217
217
|
message: string;
|
|
@@ -227,13 +227,13 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
227
227
|
extra: string[];
|
|
228
228
|
};
|
|
229
229
|
}, "mutation", "post", "auth">;
|
|
230
|
-
"manager.auth.updatePassword": import("./types").RakunOperationWithInput<{
|
|
230
|
+
"manager.auth.updatePassword": import("./types.js").RakunOperationWithInput<{
|
|
231
231
|
currentPassword: string;
|
|
232
232
|
newPassword: string;
|
|
233
233
|
}, {
|
|
234
234
|
ok: boolean;
|
|
235
235
|
}, "mutation", "post", "auth">;
|
|
236
|
-
"manager.auth.login": import("./types").RakunOperationWithInput<{
|
|
236
|
+
"manager.auth.login": import("./types.js").RakunOperationWithInput<{
|
|
237
237
|
username: string;
|
|
238
238
|
password: string;
|
|
239
239
|
}, {
|
|
@@ -243,10 +243,10 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
243
243
|
expiresAt: string;
|
|
244
244
|
method: string;
|
|
245
245
|
}, "mutation", "post", "public">;
|
|
246
|
-
"manager.auth.logout": import("./types").RakunOperationWithoutInput<{
|
|
246
|
+
"manager.auth.logout": import("./types.js").RakunOperationWithoutInput<{
|
|
247
247
|
token: string;
|
|
248
248
|
}, "mutation", "post", "auth">;
|
|
249
|
-
"manager.auth.getSession": import("./types").RakunOperationWithoutInput<{
|
|
249
|
+
"manager.auth.getSession": import("./types.js").RakunOperationWithoutInput<{
|
|
250
250
|
user: string;
|
|
251
251
|
email: string;
|
|
252
252
|
role: {
|
|
@@ -260,7 +260,7 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
260
260
|
_id: string;
|
|
261
261
|
password?: undefined;
|
|
262
262
|
} | null, "query", "get", "public">;
|
|
263
|
-
"manager.auth.accountInfo": import("./types").RakunOperationWithoutInput<{
|
|
263
|
+
"manager.auth.accountInfo": import("./types.js").RakunOperationWithoutInput<{
|
|
264
264
|
has2FA: boolean;
|
|
265
265
|
enabled2FA: boolean;
|
|
266
266
|
method2FA: "totp" | "webauthn";
|
|
@@ -271,21 +271,21 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
271
271
|
}[];
|
|
272
272
|
currentSession: string;
|
|
273
273
|
}, "query", "get", "auth">;
|
|
274
|
-
"manager.auth.deleteSession": import("./types").RakunOperationWithInput<{
|
|
274
|
+
"manager.auth.deleteSession": import("./types.js").RakunOperationWithInput<{
|
|
275
275
|
token: string;
|
|
276
276
|
}, {
|
|
277
277
|
ok: boolean;
|
|
278
278
|
}, "mutation", "post", "auth">;
|
|
279
|
-
"manager.auth.totp.enroll": import("./types").RakunOperationWithoutInput<{
|
|
279
|
+
"manager.auth.totp.enroll": import("./types.js").RakunOperationWithoutInput<{
|
|
280
280
|
qrDataURL: string;
|
|
281
281
|
otpauthURL: string;
|
|
282
282
|
}, "query", "get", "auth">;
|
|
283
|
-
"manager.auth.totp.confirm": import("./types").RakunOperationWithInput<{
|
|
283
|
+
"manager.auth.totp.confirm": import("./types.js").RakunOperationWithInput<{
|
|
284
284
|
code: string;
|
|
285
285
|
}, {
|
|
286
286
|
ok: boolean;
|
|
287
287
|
}, "mutation", "post", "auth">;
|
|
288
|
-
"manager.auth.totp.verify": import("./types").RakunOperationWithInput<{
|
|
288
|
+
"manager.auth.totp.verify": import("./types.js").RakunOperationWithInput<{
|
|
289
289
|
code: string;
|
|
290
290
|
challenge: string;
|
|
291
291
|
}, {
|
|
@@ -293,29 +293,29 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
293
293
|
} | {
|
|
294
294
|
error: string;
|
|
295
295
|
}, "mutation", "post", "public">;
|
|
296
|
-
"manager.auth.webauthn.register.options": import("./types").RakunOperationWithInput<{
|
|
296
|
+
"manager.auth.webauthn.register.options": import("./types.js").RakunOperationWithInput<{
|
|
297
297
|
deviceName: string;
|
|
298
298
|
}, {
|
|
299
299
|
token: string;
|
|
300
300
|
options: any;
|
|
301
301
|
}, "query", "post", "auth">;
|
|
302
|
-
"manager.auth.webauthn.register.verify": import("./types").RakunOperationWithInput<{
|
|
302
|
+
"manager.auth.webauthn.register.verify": import("./types.js").RakunOperationWithInput<{
|
|
303
303
|
token: string;
|
|
304
304
|
deviceName: string;
|
|
305
305
|
response: any;
|
|
306
306
|
}, {
|
|
307
307
|
ok: boolean;
|
|
308
308
|
}, "mutation", "post", "auth">;
|
|
309
|
-
"manager.auth.webauthn.auth.options": import("./types").RakunOperationWithInput<{
|
|
309
|
+
"manager.auth.webauthn.auth.options": import("./types.js").RakunOperationWithInput<{
|
|
310
310
|
challengeToken: string;
|
|
311
311
|
}, {
|
|
312
312
|
options: any;
|
|
313
313
|
}, "query", "post", "public">;
|
|
314
|
-
"manager.auth.webauthn.auth.verify": import("./types").RakunOperationWithInput<{
|
|
314
|
+
"manager.auth.webauthn.auth.verify": import("./types.js").RakunOperationWithInput<{
|
|
315
315
|
challengeToken: string;
|
|
316
316
|
response: any;
|
|
317
317
|
}, {
|
|
318
318
|
token: string;
|
|
319
319
|
}, "mutation", "post", "public">;
|
|
320
|
-
} & import("./types").RakunOperationMap;
|
|
320
|
+
} & import("./types.js").RakunOperationMap;
|
|
321
321
|
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { mergeOperationContracts } from "./types";
|
|
2
|
-
import { createManagerOperationContracts } from "./manager-contract";
|
|
3
|
-
import { getCustomApiOperationDefinitions, mergeOperationMaps } from "./custom";
|
|
4
|
-
import { setSessionCookie } from "../sessionCookie";
|
|
5
|
-
import { throwAppError } from "../../lib/errors";
|
|
6
|
-
import { Logger } from "../../lib/Logger";
|
|
7
|
-
import { getPermissionList } from "../../lib/Permissions";
|
|
8
|
-
import { getContentTypesForManager } from "../../lib/Registry";
|
|
9
|
-
import { getLanguages } from "../utils/getLanguages";
|
|
10
|
-
import { regenerateAllRoutesMap } from "../utils/routes/updateRoutesMap";
|
|
11
|
-
import { createHandler } from "../routes/manager/create";
|
|
12
|
-
import { deleteHandler } from "../routes/manager/delete";
|
|
13
|
-
import { getHandler } from "../routes/manager/get";
|
|
14
|
-
import { listHandler } from "../routes/manager/list";
|
|
15
|
-
import { setDefaultLanguageHandler } from "../routes/manager/setDefaultLanguage";
|
|
16
|
-
import { updateHandler } from "../routes/manager/update";
|
|
17
|
-
import { loginHandler } from "../routes/manager/auth/login";
|
|
18
|
-
import { enrollTotpHandler } from "../routes/manager/auth/totp/enrollTotp";
|
|
19
|
-
import { logoutHandler } from "../routes/manager/auth/logout";
|
|
20
|
-
import { updatePasswordHandler } from "../routes/manager/auth/updatePassword";
|
|
21
|
-
import { confirmTotpHandler } from "../routes/manager/auth/totp/confirmTotp";
|
|
22
|
-
import { verifyTotpHandler } from "../routes/manager/auth/totp/verifyTotp";
|
|
23
|
-
import { webauthnRegisterOptionsHandler } from "../routes/manager/auth/webauthn/webauthnRegisterOptions";
|
|
24
|
-
import { webauthnRegisterVerifyHandler } from "../routes/manager/auth/webauthn/webauthnRegisterVerify";
|
|
25
|
-
import { webauthnAuthOptionsHandler } from "../routes/manager/auth/webauthn/webauthnAuthOptions";
|
|
26
|
-
import { webauthnAuthVerifyHandler } from "../routes/manager/auth/webauthn/webauthnAuthVerify";
|
|
27
|
-
import { accountInfoHandler } from "../routes/manager/auth/accountInfo";
|
|
28
|
-
import { deleteSessionHandler } from "../routes/manager/auth/deleteSession";
|
|
29
|
-
import { prepareUploadHandler } from "../routes/manager/media/prepareUpload";
|
|
30
|
-
import { finalizeUploadHandler } from "../routes/manager/media/finalizeUpload";
|
|
31
|
-
import { getMediaUrlHandler } from "../routes/manager/media/getMediaUrl";
|
|
32
|
-
import { createFolderHandler } from "../routes/manager/media/createFolder";
|
|
33
|
-
import { listFoldersHandler } from "../routes/manager/media/listFolders";
|
|
34
|
-
import { listLiteralsHandler } from "../routes/manager/literals/list";
|
|
35
|
-
import { upsertLiteralHandler } from "../routes/manager/literals/upsert";
|
|
1
|
+
import { mergeOperationContracts } from "./types.js";
|
|
2
|
+
import { createManagerOperationContracts } from "./manager-contract.js";
|
|
3
|
+
import { getCustomApiOperationDefinitions, mergeOperationMaps } from "./custom.js";
|
|
4
|
+
import { setSessionCookie } from "../sessionCookie.js";
|
|
5
|
+
import { throwAppError } from "../../lib/errors/index.js";
|
|
6
|
+
import { Logger } from "../../lib/Logger.js";
|
|
7
|
+
import { getPermissionList } from "../../lib/Permissions.js";
|
|
8
|
+
import { getContentTypesForManager } from "../../lib/Registry.js";
|
|
9
|
+
import { getLanguages } from "../utils/getLanguages.js";
|
|
10
|
+
import { regenerateAllRoutesMap } from "../utils/routes/updateRoutesMap.js";
|
|
11
|
+
import { createHandler } from "../routes/manager/create.js";
|
|
12
|
+
import { deleteHandler } from "../routes/manager/delete.js";
|
|
13
|
+
import { getHandler } from "../routes/manager/get.js";
|
|
14
|
+
import { listHandler } from "../routes/manager/list.js";
|
|
15
|
+
import { setDefaultLanguageHandler } from "../routes/manager/setDefaultLanguage.js";
|
|
16
|
+
import { updateHandler } from "../routes/manager/update.js";
|
|
17
|
+
import { loginHandler } from "../routes/manager/auth/login.js";
|
|
18
|
+
import { enrollTotpHandler } from "../routes/manager/auth/totp/enrollTotp.js";
|
|
19
|
+
import { logoutHandler } from "../routes/manager/auth/logout.js";
|
|
20
|
+
import { updatePasswordHandler } from "../routes/manager/auth/updatePassword.js";
|
|
21
|
+
import { confirmTotpHandler } from "../routes/manager/auth/totp/confirmTotp.js";
|
|
22
|
+
import { verifyTotpHandler } from "../routes/manager/auth/totp/verifyTotp.js";
|
|
23
|
+
import { webauthnRegisterOptionsHandler } from "../routes/manager/auth/webauthn/webauthnRegisterOptions.js";
|
|
24
|
+
import { webauthnRegisterVerifyHandler } from "../routes/manager/auth/webauthn/webauthnRegisterVerify.js";
|
|
25
|
+
import { webauthnAuthOptionsHandler } from "../routes/manager/auth/webauthn/webauthnAuthOptions.js";
|
|
26
|
+
import { webauthnAuthVerifyHandler } from "../routes/manager/auth/webauthn/webauthnAuthVerify.js";
|
|
27
|
+
import { accountInfoHandler } from "../routes/manager/auth/accountInfo.js";
|
|
28
|
+
import { deleteSessionHandler } from "../routes/manager/auth/deleteSession.js";
|
|
29
|
+
import { prepareUploadHandler } from "../routes/manager/media/prepareUpload.js";
|
|
30
|
+
import { finalizeUploadHandler } from "../routes/manager/media/finalizeUpload.js";
|
|
31
|
+
import { getMediaUrlHandler } from "../routes/manager/media/getMediaUrl.js";
|
|
32
|
+
import { createFolderHandler } from "../routes/manager/media/createFolder.js";
|
|
33
|
+
import { listFoldersHandler } from "../routes/manager/media/listFolders.js";
|
|
34
|
+
import { listLiteralsHandler } from "../routes/manager/literals/list.js";
|
|
35
|
+
import { upsertLiteralHandler } from "../routes/manager/literals/upsert.js";
|
|
36
36
|
export const createManagerOperationDefinitions = () => {
|
|
37
37
|
const contracts = createManagerOperationContracts();
|
|
38
38
|
const implementations = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ZodType } from "zod";
|
|
2
|
-
import type { RakunRequestContext } from "../context";
|
|
2
|
+
import type { RakunRequestContext } from "../context.js";
|
|
3
3
|
export type RakunOperationAccess = "public" | "auth";
|
|
4
4
|
export type RakunOperationKind = "query" | "mutation";
|
|
5
5
|
export type RakunOperationHttpMethod = "get" | "post";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createWebOperationContracts: () => {
|
|
2
|
-
"web.languages": import("./types").RakunOperationContractWithoutInput<{
|
|
2
|
+
"web.languages": import("./types.js").RakunOperationContractWithoutInput<{
|
|
3
3
|
code: string;
|
|
4
4
|
name: string;
|
|
5
5
|
default: boolean;
|
|
@@ -11,7 +11,7 @@ export declare const createWebOperationContracts: () => {
|
|
|
11
11
|
contentType: string;
|
|
12
12
|
} | undefined;
|
|
13
13
|
}[], "query", "get", "public">;
|
|
14
|
-
"web.page": import("./types").RakunOperationContractWithInput<{
|
|
14
|
+
"web.page": import("./types.js").RakunOperationContractWithInput<{
|
|
15
15
|
path: string;
|
|
16
16
|
search?: string | undefined;
|
|
17
17
|
headers?: Record<string, string> | undefined;
|
|
@@ -63,7 +63,7 @@ export declare const createWebOperationContracts: () => {
|
|
|
63
63
|
status: number;
|
|
64
64
|
} | undefined;
|
|
65
65
|
}, "query", "get", "public">;
|
|
66
|
-
"web.test": import("./types").RakunOperationContractWithoutInput<{
|
|
66
|
+
"web.test": import("./types.js").RakunOperationContractWithoutInput<{
|
|
67
67
|
ok: boolean;
|
|
68
68
|
}, "query", "get", "public">;
|
|
69
69
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { defineOperationContract } from "./types";
|
|
3
|
-
import { Language } from "../../internal-content-types";
|
|
4
|
-
import { pageInput, pageOutput } from "../../contracts";
|
|
2
|
+
import { defineOperationContract } from "./types.js";
|
|
3
|
+
import { Language } from "../../internal-content-types/index.js";
|
|
4
|
+
import { pageInput, pageOutput } from "../../contracts.js";
|
|
5
5
|
export const createWebOperationContracts = () => ({
|
|
6
6
|
"web.languages": defineOperationContract({
|
|
7
7
|
access: "public",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createWebOperationDefinitions: () => {
|
|
2
|
-
"web.languages": import("./types").RakunOperationWithoutInput<{
|
|
2
|
+
"web.languages": import("./types.js").RakunOperationWithoutInput<{
|
|
3
3
|
code: string;
|
|
4
4
|
name: string;
|
|
5
5
|
default: boolean;
|
|
@@ -11,7 +11,7 @@ export declare const createWebOperationDefinitions: () => {
|
|
|
11
11
|
contentType: string;
|
|
12
12
|
} | undefined;
|
|
13
13
|
}[], "query", "get", "public">;
|
|
14
|
-
"web.page": import("./types").RakunOperationWithInput<{
|
|
14
|
+
"web.page": import("./types.js").RakunOperationWithInput<{
|
|
15
15
|
path: string;
|
|
16
16
|
search?: string | undefined;
|
|
17
17
|
headers?: Record<string, string> | undefined;
|
|
@@ -63,8 +63,8 @@ export declare const createWebOperationDefinitions: () => {
|
|
|
63
63
|
status: number;
|
|
64
64
|
} | undefined;
|
|
65
65
|
}, "query", "get", "public">;
|
|
66
|
-
"web.test": import("./types").RakunOperationWithoutInput<{
|
|
66
|
+
"web.test": import("./types.js").RakunOperationWithoutInput<{
|
|
67
67
|
ok: boolean;
|
|
68
68
|
}, "query", "get", "public">;
|
|
69
|
-
} & import("./types").RakunOperationMap;
|
|
69
|
+
} & import("./types.js").RakunOperationMap;
|
|
70
70
|
//# sourceMappingURL=web.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { mergeOperationContracts } from "./types";
|
|
2
|
-
import { createWebOperationContracts } from "./web-contract";
|
|
3
|
-
import { getCustomApiOperationDefinitions, mergeOperationMaps, } from "./custom";
|
|
4
|
-
import { getLanguages } from "../utils/getLanguages";
|
|
5
|
-
import { getPage } from "../routes/web/page";
|
|
1
|
+
import { mergeOperationContracts } from "./types.js";
|
|
2
|
+
import { createWebOperationContracts } from "./web-contract.js";
|
|
3
|
+
import { getCustomApiOperationDefinitions, mergeOperationMaps, } from "./custom.js";
|
|
4
|
+
import { getLanguages } from "../utils/getLanguages.js";
|
|
5
|
+
import { getPage } from "../routes/web/page.js";
|
|
6
6
|
const getStringHeaders = (headers) => {
|
|
7
7
|
const values = Object.entries(headers).flatMap(([key, value]) => {
|
|
8
8
|
if (typeof value === "string") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { FlattenTranslate } from "../../lib/types";
|
|
3
|
-
import { RouteDefinition } from "../utils/routes/routeDefinitions";
|
|
2
|
+
import { FlattenTranslate } from "../../lib/types/index.js";
|
|
3
|
+
import { RouteDefinition } from "../utils/routes/routeDefinitions.js";
|
|
4
4
|
type RouteWithInfo = RouteDefinition & {
|
|
5
5
|
infoSchema: z.ZodTypeAny;
|
|
6
6
|
};
|