@rakun-kit/core 1.0.0 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -5
- package/dist/cjs/client.js +39 -1
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.js +31 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/proxies/index.d.ts +2 -2
- package/dist/esm/client.d.ts +20 -0
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +19 -0
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/index.d.ts +21 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +21 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/internal-content-types/Language.d.ts +4 -4
- package/dist/esm/internal-content-types/LiteralTranslation.d.ts +3 -3
- package/dist/esm/internal-content-types/ManagerRole.d.ts +2 -2
- package/dist/esm/internal-content-types/ManagerUser.d.ts +7 -7
- package/dist/esm/internal-content-types/Media.d.ts +27 -27
- package/dist/esm/internal-content-types/MediaFolder.d.ts +5 -5
- package/dist/esm/internal-content-types/MfaChallenge.d.ts +14 -14
- package/dist/esm/internal-content-types/Page.d.ts +2 -2
- package/dist/esm/internal-content-types/Redirect.d.ts +12 -12
- package/dist/esm/internal-content-types/Route.d.ts +9 -9
- package/dist/esm/internal-content-types/RouteLayoutModule.d.ts +7 -7
- package/dist/esm/internal-content-types/RouteLayoutModuleOverride.d.ts +6 -6
- package/dist/esm/internal-content-types/RouteMap.d.ts +5 -5
- package/dist/esm/internal-content-types/RouteSettings.d.ts +4 -4
- package/dist/esm/internal-content-types/Seo.d.ts +2 -2
- package/dist/esm/internal-content-types/Session.d.ts +10 -10
- package/dist/esm/internal-content-types/UserMfa.d.ts +13 -13
- package/dist/esm/internal-content-types/WebAuthnCredential.d.ts +13 -13
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts +12 -12
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -19
package/README.md
CHANGED
|
@@ -8,11 +8,11 @@ Typical imports:
|
|
|
8
8
|
|
|
9
9
|
```ts
|
|
10
10
|
import {
|
|
11
|
+
ContentType,
|
|
12
|
+
Fields,
|
|
11
13
|
rakunBootstrap,
|
|
12
14
|
ensureRakunInitialized,
|
|
13
15
|
} from "@rakun-kit/core";
|
|
14
|
-
import ContentType from "@rakun-kit/core/lib/ContentType";
|
|
15
|
-
import { Fields } from "@rakun-kit/core/lib/fields/index";
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
The main entrypoint exports:
|
|
@@ -31,9 +31,6 @@ Relevant subpaths:
|
|
|
31
31
|
- `@rakun-kit/core/client`: client-facing types and utilities.
|
|
32
32
|
- `@rakun-kit/core/logger`: logger.
|
|
33
33
|
- `@rakun-kit/core/errors`: application errors.
|
|
34
|
-
- `@rakun-kit/core/lib/ContentType`: `ContentType` class.
|
|
35
|
-
- `@rakun-kit/core/lib/fields/index`: `Fields` factory.
|
|
36
|
-
- `@rakun-kit/core/lib/*`, `@rakun-kit/core/lib/fields/*`, `@rakun-kit/core/lib/utils/*`: internal APIs published by the package.
|
|
37
34
|
- `@rakun-kit/core/types`: types derived from content types.
|
|
38
35
|
|
|
39
36
|
## Bootstrap
|
package/dist/cjs/client.js
CHANGED
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Seo = exports.loginInput = exports.EncodedContentTypeSchema = exports.instanceofAppErrorShape = exports.getTranslation = exports.mapPermissions = exports.hasPermissions = exports.getPermissionList = void 0;
|
|
17
|
+
exports.Seo = exports.loginInput = exports.EncodedContentTypeSchema = exports.instanceofAppErrorShape = exports.slugify = exports.isTranslatableObject = exports.isId = exports.Id = exports.getTranslation = exports.getListField = exports.mapPermissions = exports.hasPermissions = exports.getPermissionList = void 0;
|
|
4
18
|
var Permissions_1 = require("./lib/Permissions");
|
|
5
19
|
Object.defineProperty(exports, "getPermissionList", { enumerable: true, get: function () { return Permissions_1.getPermissionList; } });
|
|
6
20
|
Object.defineProperty(exports, "hasPermissions", { enumerable: true, get: function () { return Permissions_1.hasPermissions; } });
|
|
7
21
|
Object.defineProperty(exports, "mapPermissions", { enumerable: true, get: function () { return Permissions_1.mapPermissions; } });
|
|
22
|
+
__exportStar(require("./lib/fields"), exports);
|
|
23
|
+
__exportStar(require("./lib/fields/Boolean"), exports);
|
|
24
|
+
__exportStar(require("./lib/fields/ContentReference"), exports);
|
|
25
|
+
__exportStar(require("./lib/fields/Date"), exports);
|
|
26
|
+
__exportStar(require("./lib/fields/Field"), exports);
|
|
27
|
+
__exportStar(require("./lib/fields/File"), exports);
|
|
28
|
+
__exportStar(require("./lib/fields/Iterator"), exports);
|
|
29
|
+
__exportStar(require("./lib/fields/Link"), exports);
|
|
30
|
+
__exportStar(require("./lib/fields/List"), exports);
|
|
31
|
+
__exportStar(require("./lib/fields/Number"), exports);
|
|
32
|
+
__exportStar(require("./lib/fields/Relation"), exports);
|
|
33
|
+
__exportStar(require("./lib/fields/Select"), exports);
|
|
34
|
+
__exportStar(require("./lib/fields/SelfRelation"), exports);
|
|
35
|
+
__exportStar(require("./lib/fields/SimpleList"), exports);
|
|
36
|
+
__exportStar(require("./lib/fields/String"), exports);
|
|
37
|
+
var getListField_1 = require("./lib/utils/getListField");
|
|
38
|
+
Object.defineProperty(exports, "getListField", { enumerable: true, get: function () { return getListField_1.getListField; } });
|
|
8
39
|
var getTranslation_1 = require("./lib/utils/getTranslation");
|
|
9
40
|
Object.defineProperty(exports, "getTranslation", { enumerable: true, get: function () { return getTranslation_1.getTranslation; } });
|
|
41
|
+
var id_1 = require("./lib/utils/id");
|
|
42
|
+
Object.defineProperty(exports, "Id", { enumerable: true, get: function () { return id_1.Id; } });
|
|
43
|
+
Object.defineProperty(exports, "isId", { enumerable: true, get: function () { return id_1.isId; } });
|
|
44
|
+
var isTranslatableObject_1 = require("./lib/utils/isTranslatableObject");
|
|
45
|
+
Object.defineProperty(exports, "isTranslatableObject", { enumerable: true, get: function () { return isTranslatableObject_1.isTranslatableObject; } });
|
|
46
|
+
var slugify_1 = require("./lib/utils/slugify");
|
|
47
|
+
Object.defineProperty(exports, "slugify", { enumerable: true, get: function () { return slugify_1.slugify; } });
|
|
10
48
|
var errors_1 = require("./lib/errors/errors");
|
|
11
49
|
Object.defineProperty(exports, "instanceofAppErrorShape", { enumerable: true, get: function () { return errors_1.instanceofAppErrorShape; } });
|
|
12
50
|
var ContentType_1 = require("./lib/ContentType");
|
package/dist/cjs/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAK2B;AAJzB,gHAAA,iBAAiB,OAAA;AACjB,6GAAA,cAAc,OAAA;AACd,6GAAA,cAAc,OAAA;AAIhB,+CAA6B;AAC7B,uDAAqC;AACrC,gEAA8C;AAC9C,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,oDAAkC;AAClC,oDAAkC;AAClC,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,yDAAwD;AAA/C,4GAAA,YAAY,OAAA;AACrB,6DAA4D;AAAnD,gHAAA,cAAc,OAAA;AACvB,qCAA6D;AAApD,wFAAA,EAAE,OAAA;AAAE,0FAAA,IAAI,OAAA;AACjB,yEAAwE;AAA/D,4HAAA,oBAAoB,OAAA;AAC7B,+CAA8C;AAArC,kGAAA,OAAO,OAAA;AAChB,8CAG6B;AAF3B,iHAAA,uBAAuB,OAAA;AAGzB,iDAG2B;AADzB,uHAAA,wBAAwB,OAAA;AAG1B,sDAA2E;AAAlE,mGAAA,UAAU,OAAA;AAenB,oDAAmD;AAA1C,0FAAA,GAAG,OAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -35,8 +35,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
38
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Seo = exports.ManagerUser = exports.Language = exports.getTranslation = exports.mapPermissions = exports.hasPermissions = exports.getPermissionList = exports.parseCookieHeader = exports.handleMediaBinaryUpload = exports.setSessionCookie = exports.getSessionCookie = exports.createRequestContext = exports.mergeOperationContracts = exports.defineOperationContract = exports.defineOperation = exports.createWebOperationDefinitions = exports.createWebOperationContracts = exports.createOperationPath = exports.createOperationManifest = exports.createManagerOperationDefinitions = exports.createManagerOperationContracts = exports.createRakunOperationDefinitions = exports.getRakunBootstrapOptions = exports.ensureRakunBootstrap = exports.rakunBootstrap = exports.runWithRakunRequestTrace = exports.ensureRakunInitialized = void 0;
|
|
42
|
+
exports.Seo = exports.ManagerUser = exports.Language = exports.slugify = exports.isTranslatableObject = exports.isId = exports.Id = exports.getTranslation = exports.getListField = exports.PermissionsList = exports.mapPermissions = exports.hasPermissions = exports.getPermissionList = exports.parseCookieHeader = exports.handleMediaBinaryUpload = exports.setSessionCookie = exports.getSessionCookie = exports.createRequestContext = exports.mergeOperationContracts = exports.defineOperationContract = exports.defineOperation = exports.createWebOperationDefinitions = exports.createWebOperationContracts = exports.createOperationPath = exports.createOperationManifest = exports.createManagerOperationDefinitions = exports.createManagerOperationContracts = exports.createRakunOperationDefinitions = exports.ContentType = exports.getRakunBootstrapOptions = exports.ensureRakunBootstrap = exports.rakunBootstrap = exports.runWithRakunRequestTrace = exports.ensureRakunInitialized = void 0;
|
|
40
43
|
const Registry_1 = require("./lib/Registry");
|
|
41
44
|
const Logger_1 = require("./lib/Logger");
|
|
42
45
|
const internalContentTypes = __importStar(require("./internal-content-types"));
|
|
@@ -129,6 +132,23 @@ const ensureRakunBootstrap = (options) => {
|
|
|
129
132
|
exports.ensureRakunBootstrap = ensureRakunBootstrap;
|
|
130
133
|
var bootstrapState_2 = require("./bootstrapState");
|
|
131
134
|
Object.defineProperty(exports, "getRakunBootstrapOptions", { enumerable: true, get: function () { return bootstrapState_2.getRakunBootstrapOptions; } });
|
|
135
|
+
var ContentType_1 = require("./lib/ContentType");
|
|
136
|
+
Object.defineProperty(exports, "ContentType", { enumerable: true, get: function () { return __importDefault(ContentType_1).default; } });
|
|
137
|
+
__exportStar(require("./lib/fields"), exports);
|
|
138
|
+
__exportStar(require("./lib/fields/Boolean"), exports);
|
|
139
|
+
__exportStar(require("./lib/fields/ContentReference"), exports);
|
|
140
|
+
__exportStar(require("./lib/fields/Date"), exports);
|
|
141
|
+
__exportStar(require("./lib/fields/Field"), exports);
|
|
142
|
+
__exportStar(require("./lib/fields/File"), exports);
|
|
143
|
+
__exportStar(require("./lib/fields/Iterator"), exports);
|
|
144
|
+
__exportStar(require("./lib/fields/Link"), exports);
|
|
145
|
+
__exportStar(require("./lib/fields/List"), exports);
|
|
146
|
+
__exportStar(require("./lib/fields/Number"), exports);
|
|
147
|
+
__exportStar(require("./lib/fields/Relation"), exports);
|
|
148
|
+
__exportStar(require("./lib/fields/Select"), exports);
|
|
149
|
+
__exportStar(require("./lib/fields/SelfRelation"), exports);
|
|
150
|
+
__exportStar(require("./lib/fields/SimpleList"), exports);
|
|
151
|
+
__exportStar(require("./lib/fields/String"), exports);
|
|
132
152
|
var operations_1 = require("./api/operations");
|
|
133
153
|
Object.defineProperty(exports, "createRakunOperationDefinitions", { enumerable: true, get: function () { return operations_1.createRakunOperationDefinitions; } });
|
|
134
154
|
Object.defineProperty(exports, "createManagerOperationContracts", { enumerable: true, get: function () { return operations_1.createManagerOperationContracts; } });
|
|
@@ -153,8 +173,18 @@ var Permissions_1 = require("./lib/Permissions");
|
|
|
153
173
|
Object.defineProperty(exports, "getPermissionList", { enumerable: true, get: function () { return Permissions_1.getPermissionList; } });
|
|
154
174
|
Object.defineProperty(exports, "hasPermissions", { enumerable: true, get: function () { return Permissions_1.hasPermissions; } });
|
|
155
175
|
Object.defineProperty(exports, "mapPermissions", { enumerable: true, get: function () { return Permissions_1.mapPermissions; } });
|
|
176
|
+
Object.defineProperty(exports, "PermissionsList", { enumerable: true, get: function () { return Permissions_1.PermissionsList; } });
|
|
177
|
+
var getListField_1 = require("./lib/utils/getListField");
|
|
178
|
+
Object.defineProperty(exports, "getListField", { enumerable: true, get: function () { return getListField_1.getListField; } });
|
|
156
179
|
var getTranslation_1 = require("./lib/utils/getTranslation");
|
|
157
180
|
Object.defineProperty(exports, "getTranslation", { enumerable: true, get: function () { return getTranslation_1.getTranslation; } });
|
|
181
|
+
var id_1 = require("./lib/utils/id");
|
|
182
|
+
Object.defineProperty(exports, "Id", { enumerable: true, get: function () { return id_1.Id; } });
|
|
183
|
+
Object.defineProperty(exports, "isId", { enumerable: true, get: function () { return id_1.isId; } });
|
|
184
|
+
var isTranslatableObject_1 = require("./lib/utils/isTranslatableObject");
|
|
185
|
+
Object.defineProperty(exports, "isTranslatableObject", { enumerable: true, get: function () { return isTranslatableObject_1.isTranslatableObject; } });
|
|
186
|
+
var slugify_1 = require("./lib/utils/slugify");
|
|
187
|
+
Object.defineProperty(exports, "slugify", { enumerable: true, get: function () { return slugify_1.slugify; } });
|
|
158
188
|
var internal_content_types_1 = require("./internal-content-types");
|
|
159
189
|
Object.defineProperty(exports, "Language", { enumerable: true, get: function () { return internal_content_types_1.Language; } });
|
|
160
190
|
Object.defineProperty(exports, "ManagerUser", { enumerable: true, get: function () { return internal_content_types_1.ManagerUser; } });
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAGwB;AACxB,yCAAoD;AACpD,+EAAiE;AACjE,kFAA+E;AAC/E,+BAA8C;AAC9C,mCAA6C;AAC7C,qDAK0B;AAE1B,IAAI,WAAW,GAAyB,IAAI,CAAC;AAE7C,MAAM,YAAY,GAAG,GAAS,EAAE;IAC9B,MAAM,gBAAgB,GAAG,IAAA,yCAAwB,GAAE,CAAC;IAEpD,IAAI,CAAC,eAAM,EAAE,CAAC;QACZ,IAAA,qBAAY,EAAC;YACX,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC;IACL,CAAC;IAED,IAAI,gBAAgB,EAAE,MAAM,EAAE,CAAC;QAC7B,IAAA,qBAAY,EAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;AACH,CAAC,CAA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ined;
|
|
10
10
|
export declare const getOutputProxy: (contentTypeName: string) => OutputProxy<ContentType> | undefined;
|
|
11
11
|
export declare const getProxies: () => {
|
|
12
|
-
input: Record<string, InputProxy<ContentType<Record<string, import("
|
|
13
|
-
output: Record<string, OutputProxy<ContentType<Record<string, import("
|
|
12
|
+
input: Record<string, InputProxy<ContentType<Record<string, import("../..").Field<any, any, any, any, any, any>>, string>>>;
|
|
13
|
+
output: Record<string, OutputProxy<ContentType<Record<string, import("../..").Field<any, any, any, any, any, any>>, string>>>;
|
|
14
14
|
};
|
|
15
15
|
export declare const ProxyOutput: (item: DataPopulated<ContentType>) => {
|
|
16
16
|
[x: string]: unknown;
|
package/dist/esm/client.d.ts
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
export { getPermissionList, hasPermissions, mapPermissions, type Permission, } from "./lib/Permissions";
|
|
2
2
|
export type { MaybeTranslatableValue, TranslatableValue } from "./lib/types";
|
|
3
|
+
export * from "./lib/fields";
|
|
4
|
+
export * from "./lib/fields/Boolean";
|
|
5
|
+
export * from "./lib/fields/ContentReference";
|
|
6
|
+
export * from "./lib/fields/Date";
|
|
7
|
+
export * from "./lib/fields/Field";
|
|
8
|
+
export * from "./lib/fields/File";
|
|
9
|
+
export * from "./lib/fields/Iterator";
|
|
10
|
+
export * from "./lib/fields/Link";
|
|
11
|
+
export * from "./lib/fields/List";
|
|
12
|
+
export * from "./lib/fields/Number";
|
|
13
|
+
export * from "./lib/fields/Relation";
|
|
14
|
+
export * from "./lib/fields/Select";
|
|
15
|
+
export * from "./lib/fields/SelfRelation";
|
|
16
|
+
export * from "./lib/fields/SimpleList";
|
|
17
|
+
export * from "./lib/fields/String";
|
|
18
|
+
export { getListField } from "./lib/utils/getListField";
|
|
3
19
|
export { getTranslation } from "./lib/utils/getTranslation";
|
|
20
|
+
export { Id, isId, type Id as IdType } from "./lib/utils/id";
|
|
21
|
+
export { isTranslatableObject } from "./lib/utils/isTranslatableObject";
|
|
22
|
+
export { slugify } from "./lib/utils/slugify";
|
|
4
23
|
export { instanceofAppErrorShape, type AppErrorShape, } from "./lib/errors/errors";
|
|
5
24
|
export { type EncodedContentType, EncodedContentTypeSchema, } from "./lib/ContentType";
|
|
6
25
|
export type { FileOptimizeOptions } from "./lib/fields/File";
|
|
7
26
|
export { loginInput, type LoginInput } from "./schemas/manager/auth/login";
|
|
8
27
|
export type { ListOutput } from "./schemas/manager/list";
|
|
28
|
+
export type { ListLiteralsOutput } from "./schemas/manager/literals/list";
|
|
9
29
|
export type { FinalizeUploadInput, FinalizeUploadOutput, } from "./schemas/manager/media/finalizeUpload";
|
|
10
30
|
export type { GetMediaUrlInput, GetMediaUrlOutput, } from "./schemas/manager/media/getMediaUrl";
|
|
11
31
|
export type { PrepareUploadInput, PrepareUploadOutput, } from "./schemas/manager/media/prepareUpload";
|
package/dist/esm/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,KAAK,UAAU,GAChB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACL,uBAAuB,EACvB,KAAK,aAAa,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,kBAAkB,EACvB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,wCAAwC,CAAC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AO,EACL,uBAAuB,EACvB,KAAK,aAAa,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,kBAAkB,EACvB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,wCAAwC,CAAC;AAChD,YAAY,EACV,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC"}
|
package/dist/esm/client.js
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
export { getPermissionList, hasPermissions, mapPermissions, } from "./lib/Permissions";
|
|
2
|
+
export * from "./lib/fields";
|
|
3
|
+
export * from "./lib/fields/Boolean";
|
|
4
|
+
export * from "./lib/fields/ContentReference";
|
|
5
|
+
export * from "./lib/fields/Date";
|
|
6
|
+
export * from "./lib/fields/Field";
|
|
7
|
+
export * from "./lib/fields/File";
|
|
8
|
+
export * from "./lib/fields/Iterator";
|
|
9
|
+
export * from "./lib/fields/Link";
|
|
10
|
+
export * from "./lib/fields/List";
|
|
11
|
+
export * from "./lib/fields/Number";
|
|
12
|
+
export * from "./lib/fields/Relation";
|
|
13
|
+
export * from "./lib/fields/Select";
|
|
14
|
+
export * from "./lib/fields/SelfRelation";
|
|
15
|
+
export * from "./lib/fields/SimpleList";
|
|
16
|
+
export * from "./lib/fields/String";
|
|
17
|
+
export { getListField } from "./lib/utils/getListField";
|
|
2
18
|
export { getTranslation } from "./lib/utils/getTranslation";
|
|
19
|
+
export { Id, isId } from "./lib/utils/id";
|
|
20
|
+
export { isTranslatableObject } from "./lib/utils/isTranslatableObject";
|
|
21
|
+
export { slugify } from "./lib/utils/slugify";
|
|
3
22
|
export { instanceofAppErrorShape, } from "./lib/errors/errors";
|
|
4
23
|
export { EncodedContentTypeSchema, } from "./lib/ContentType";
|
|
5
24
|
export { loginInput } from "./schemas/manager/auth/login";
|
package/dist/esm/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,cAAc,GAEf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACL,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,UAAU,EAAmB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,cAAc,GAEf,MAAM,mBAAmB,CAAC;AAE3B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,IAAI,EAAqB,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,UAAU,EAAmB,MAAM,8BAA8B,CAAC;AAe3E,OAAO,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -7,19 +7,38 @@ export type { RakunBootstrapOptions };
|
|
|
7
7
|
export type { RouteDefinition, RouteKey, RouteKeys, } from "./api/utils/routes/routeDefinitions";
|
|
8
8
|
export type { ApiProxies, InputProxy, OutputProxy, } from "./api/proxies";
|
|
9
9
|
export { getRakunBootstrapOptions } from "./bootstrapState";
|
|
10
|
+
export { default as ContentType } from "./lib/ContentType";
|
|
11
|
+
export * from "./lib/fields";
|
|
12
|
+
export * from "./lib/fields/Boolean";
|
|
13
|
+
export * from "./lib/fields/ContentReference";
|
|
14
|
+
export * from "./lib/fields/Date";
|
|
15
|
+
export * from "./lib/fields/Field";
|
|
16
|
+
export * from "./lib/fields/File";
|
|
17
|
+
export * from "./lib/fields/Iterator";
|
|
18
|
+
export * from "./lib/fields/Link";
|
|
19
|
+
export * from "./lib/fields/List";
|
|
20
|
+
export * from "./lib/fields/Number";
|
|
21
|
+
export * from "./lib/fields/Relation";
|
|
22
|
+
export * from "./lib/fields/Select";
|
|
23
|
+
export * from "./lib/fields/SelfRelation";
|
|
24
|
+
export * from "./lib/fields/SimpleList";
|
|
25
|
+
export * from "./lib/fields/String";
|
|
10
26
|
export { type AnyRakunOperation, type AnyRakunOperationContract, createRakunOperationDefinitions, createManagerOperationContracts, createManagerOperationDefinitions, createOperationManifest, createOperationPath, createWebOperationContracts, createWebOperationDefinitions, defineOperation, defineOperationContract, mergeOperationContracts, type RakunOperationAccess, type RakunOperationContractDefinition, type RakunOperationContractMap, type RakunOperationDefinitionFromContract, type RakunOperationDefinition, type RakunOperationHttpMethod, type RakunOperationImplementationFromContract, type RakunOperationImplementationMap, type RakunOperationKind, type RakunOperationManifestFromContracts, type RakunOperationMeta, type RakunOperationMap, type RakunOperationSuccessArgs, } from "./api/operations";
|
|
11
27
|
export { createRequestContext, type CookieOptions, type RakunRequestContext, type RakunRequestContextInput, } from "./api/context";
|
|
12
28
|
export { getSessionCookie, setSessionCookie } from "./api/sessionCookie";
|
|
13
29
|
export { handleMediaBinaryUpload, type MediaBinaryUploadRequest, type MediaBinaryUploadResponse, } from "./api/routes/manager/auth/media/uploadBinary";
|
|
14
30
|
export { parseCookieHeader } from "./lib/utils/parseCookieHeader";
|
|
15
|
-
export { getPermissionList, hasPermissions, mapPermissions, type Permission, } from "./lib/Permissions";
|
|
31
|
+
export { getPermissionList, hasPermissions, mapPermissions, PermissionsList, type Permission, } from "./lib/Permissions";
|
|
16
32
|
export type { MaybeTranslatableValue, TranslatableValue } from "./lib/types";
|
|
33
|
+
export { getListField } from "./lib/utils/getListField";
|
|
17
34
|
export { getTranslation } from "./lib/utils/getTranslation";
|
|
35
|
+
export { Id, isId, type Id as IdType } from "./lib/utils/id";
|
|
36
|
+
export { isTranslatableObject } from "./lib/utils/isTranslatableObject";
|
|
37
|
+
export { slugify } from "./lib/utils/slugify";
|
|
18
38
|
export { Language, ManagerUser, Seo } from "./internal-content-types";
|
|
19
39
|
export type { LanguageSchema } from "./internal-content-types/Language";
|
|
20
40
|
export type { ManagerUserSchema } from "./internal-content-types/ManagerUser";
|
|
21
41
|
export type { EncodedContentType } from "./lib/ContentType";
|
|
22
|
-
export type { FileOptimizeOptions } from "./lib/fields/File";
|
|
23
42
|
export type { ListOutput } from "./schemas/manager/list";
|
|
24
43
|
export type { FinalizeUploadInput, FinalizeUploadOutput, } from "./schemas/manager/media/finalizeUpload";
|
|
25
44
|
export type { GetMediaUrlInput, GetMediaUrlOutput, } from "./schemas/manager/media/getMediaUrl";
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,qBAAqB,EAC3B,MAAM,kBAAkB,CAAC;AAwC1B,eAAO,MAAM,sBAAsB,qBA0BlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,CAAC,EACxC,QAAQ,MAAM,EACd,KAAK,MAAM,EACX,KAAK,MAAM,CAAC,KACX,CASF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,qBAAqB,SAgB5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,qBAAqB,SAMlE,CAAC;AAEF,YAAY,EAAE,qBAAqB,EAAE,CAAC;AACtC,YAAY,EACV,eAAe,EACf,QAAQ,EACR,SAAS,GACV,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,UAAU,EACV,UAAU,EACV,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,qBAAqB,EAC3B,MAAM,kBAAkB,CAAC;AAwC1B,eAAO,MAAM,sBAAsB,qBA0BlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,CAAC,EACxC,QAAQ,MAAM,EACd,KAAK,MAAM,EACX,KA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,GACrB,MAAM,wCAAwC,CAAC;AAChD,YAAY,EACV,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,uCAAuC,CAAC;AAC/C,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -85,13 +85,33 @@ export const ensureRakunBootstrap = (options) => {
|
|
|
85
85
|
rakunBootstrap(options);
|
|
86
86
|
};
|
|
87
87
|
export { getRakunBootstrapOptions } from "./bootstrapState";
|
|
88
|
+
export { default as ContentType } from "./lib/ContentType";
|
|
89
|
+
export * from "./lib/fields";
|
|
90
|
+
export * from "./lib/fields/Boolean";
|
|
91
|
+
export * from "./lib/fields/ContentReference";
|
|
92
|
+
export * from "./lib/fields/Date";
|
|
93
|
+
export * from "./lib/fields/Field";
|
|
94
|
+
export * from "./lib/fields/File";
|
|
95
|
+
export * from "./lib/fields/Iterator";
|
|
96
|
+
export * from "./lib/fields/Link";
|
|
97
|
+
export * from "./lib/fields/List";
|
|
98
|
+
export * from "./lib/fields/Number";
|
|
99
|
+
export * from "./lib/fields/Relation";
|
|
100
|
+
export * from "./lib/fields/Select";
|
|
101
|
+
export * from "./lib/fields/SelfRelation";
|
|
102
|
+
export * from "./lib/fields/SimpleList";
|
|
103
|
+
export * from "./lib/fields/String";
|
|
88
104
|
export { createRakunOperationDefinitions, createManagerOperationContracts, createManagerOperationDefinitions, createOperationManifest, createOperationPath, createWebOperationContracts, createWebOperationDefinitions, defineOperation, defineOperationContract, mergeOperationContracts, } from "./api/operations";
|
|
89
105
|
export { createRequestContext, } from "./api/context";
|
|
90
106
|
export { getSessionCookie, setSessionCookie } from "./api/sessionCookie";
|
|
91
107
|
export { handleMediaBinaryUpload, } from "./api/routes/manager/auth/media/uploadBinary";
|
|
92
108
|
export { parseCookieHeader } from "./lib/utils/parseCookieHeader";
|
|
93
|
-
export { getPermissionList, hasPermissions, mapPermissions, } from "./lib/Permissions";
|
|
109
|
+
export { getPermissionList, hasPermissions, mapPermissions, PermissionsList, } from "./lib/Permissions";
|
|
110
|
+
export { getListField } from "./lib/utils/getListField";
|
|
94
111
|
export { getTranslation } from "./lib/utils/getTranslation";
|
|
112
|
+
export { Id, isId } from "./lib/utils/id";
|
|
113
|
+
export { isTranslatableObject } from "./lib/utils/isTranslatableObject";
|
|
114
|
+
export { slugify } from "./lib/utils/slugify";
|
|
95
115
|
export { Language, ManagerUser, Seo } from "./internal-content-types";
|
|
96
116
|
export * from "./media";
|
|
97
117
|
export * from "./contracts";
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,oBAAoB,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,GAEzB,MAAM,kBAAkB,CAAC;AAE1B,IAAI,WAAW,GAAyB,IAAI,CAAC;AAE7C,MAAM,YAAY,GAAG,GAAS,EAAE;IAC9B,MAAM,gBAAgB,GAAG,wBAAwB,EAAE,CAAC;IAEpD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,YAAY,CAAC;YACX,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC;IACL,CAAC;IAED,IAAI,gBAAgB,EAAE,MAAM,EAAE,CAAC;QAC7B,YAAY,CAAC,gBAAgB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OAAO,EACL,uBAAuB,GAGxB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,eAAe,GAEhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,IAAI,EAAqB,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAiBtE,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ContentType from "../lib/ContentType";
|
|
2
2
|
import type { DataFront, DataInput, DBOutput } from "../lib/types";
|
|
3
3
|
export declare const Language: ContentType<{
|
|
4
|
-
code: import("
|
|
5
|
-
name: import("
|
|
6
|
-
default: import("
|
|
7
|
-
parent: import("
|
|
4
|
+
code: import("..").StringField<"Text", true, false, "all">;
|
|
5
|
+
name: import("..").StringField<"Text", true, false, "all">;
|
|
6
|
+
default: import("..").BooleanField<true, false, "all">;
|
|
7
|
+
parent: import("..").SelfRelationField<false, false, "all">;
|
|
8
8
|
}, "Language">;
|
|
9
9
|
export type Language = typeof Language;
|
|
10
10
|
export type LanguageSchema = DataFront<Language>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ContentType from "../lib/ContentType";
|
|
2
2
|
import type { DataFront, DBOutput } from "../lib/types";
|
|
3
3
|
export declare const LiteralTranslation: ContentType<{
|
|
4
|
-
key: import("
|
|
5
|
-
locale: import("
|
|
6
|
-
message: import("
|
|
4
|
+
key: import("..").StringField<"Text", true, false, "all">;
|
|
5
|
+
locale: import("..").StringField<"Text", true, false, "all">;
|
|
6
|
+
message: import("..").StringField<"Text", true, false, "all">;
|
|
7
7
|
}, "LiteralTranslation">;
|
|
8
8
|
export type LiteralTranslation = typeof LiteralTranslation;
|
|
9
9
|
export type LiteralTranslationSchema = DataFront<LiteralTranslation>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ContentType from "../lib/ContentType";
|
|
2
2
|
import type { DataFront, DBOutput } from "../lib/types";
|
|
3
3
|
export declare const ManagerRole: ContentType<{
|
|
4
|
-
name: import("
|
|
5
|
-
permissions: import("
|
|
4
|
+
name: import("..").StringField<"Text", true, false, "all">;
|
|
5
|
+
permissions: import("..").SelectField<["manager.users.readAny", "manager.users.updateAny", "manager.users.deleteAny", "manager.roles.readAny", "manager.roles.updateAny", "manager.roles.deleteAny", "manager.routes.readAny", "manager.routes.updateAny", "manager.routes.deleteAny", "manager.languages.readAny", "manager.languages.updateAny", "manager.languages.deleteAny", "content.Media.readAny", "content.Media.own", "content.Media.updateAny", "content.Media.deleteAny", "content.Redirect.readAny", "content.Redirect.own", "content.Redirect.updateAny", "content.Redirect.deleteAny", "manager.literals.readAny", "manager.literals.updateAny"], true, import("zod").ZodArray<import("zod").ZodLiteral<"manager.users.readAny" | "manager.users.updateAny" | "manager.users.deleteAny" | "manager.roles.readAny" | "manager.roles.updateAny" | "manager.roles.deleteAny" | "manager.routes.readAny" | "manager.routes.updateAny" | "manager.routes.deleteAny" | "manager.languages.readAny" | "manager.languages.updateAny" | "manager.languages.deleteAny" | "content.Media.readAny" | "content.Media.own" | "content.Media.updateAny" | "content.Media.deleteAny" | "content.Redirect.readAny" | "content.Redirect.own" | "content.Redirect.updateAny" | "content.Redirect.deleteAny" | "manager.literals.readAny" | "manager.literals.updateAny">>, true, false, "all">;
|
|
6
6
|
}, "ManagerRole">;
|
|
7
7
|
export type ManagerRole = typeof ManagerRole;
|
|
8
8
|
export type ManagerRoleSchema = DataFront<ManagerRole>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import ContentType from "../lib/ContentType";
|
|
2
2
|
import type { DataFront, DataInput, DBOutput } from "../lib/types";
|
|
3
3
|
export declare const ManagerUser: ContentType<{
|
|
4
|
-
user: import("
|
|
5
|
-
email: import("
|
|
6
|
-
password: import("
|
|
7
|
-
role: import("
|
|
8
|
-
name: import("
|
|
9
|
-
permissions: import("
|
|
4
|
+
user: import("..").StringField<"Text", true, false, "all">;
|
|
5
|
+
email: import("..").StringField<"Email", true, false, "all">;
|
|
6
|
+
password: import("..").StringField<"Password", true, false, "manager">;
|
|
7
|
+
role: import("..").RelationField<ContentType<{
|
|
8
|
+
name: import("..").StringField<"Text", true, false, "all">;
|
|
9
|
+
permissions: import("..").SelectField<["manager.users.readAny", "manager.users.updateAny", "manager.users.deleteAny", "manager.roles.readAny", "manager.roles.updateAny", "manager.roles.deleteAny", "manager.routes.readAny", "manager.routes.updateAny", "manager.routes.deleteAny", "manager.languages.readAny", "manager.languages.updateAny", "manager.languages.deleteAny", "content.Media.readAny", "content.Media.own", "content.Media.updateAny", "content.Media.deleteAny", "content.Redirect.readAny", "content.Redirect.own", "content.Redirect.updateAny", "content.Redirect.deleteAny", "manager.literals.readAny", "manager.literals.updateAny"], true, import("zod").ZodArray<import("zod").ZodLiteral<"manager.users.readAny" | "manager.users.updateAny" | "manager.users.deleteAny" | "manager.roles.readAny" | "manager.roles.updateAny" | "manager.roles.deleteAny" | "manager.routes.readAny" | "manager.routes.updateAny" | "manager.routes.deleteAny" | "manager.languages.readAny" | "manager.languages.updateAny" | "manager.languages.deleteAny" | "content.Media.readAny" | "content.Media.own" | "content.Media.updateAny" | "content.Media.deleteAny" | "content.Redirect.readAny" | "content.Redirect.own" | "content.Redirect.updateAny" | "content.Redirect.deleteAny" | "manager.literals.readAny" | "manager.literals.updateAny">>, true, false, "all">;
|
|
10
10
|
}, "ManagerRole">, undefined, import("zod").ZodObject<{
|
|
11
11
|
name: import("zod").ZodString;
|
|
12
12
|
permissions: import("zod").ZodArray<import("zod").ZodLiteral<"manager.users.readAny" | "manager.users.updateAny" | "manager.users.deleteAny" | "manager.roles.readAny" | "manager.roles.updateAny" | "manager.roles.deleteAny" | "manager.routes.readAny" | "manager.routes.updateAny" | "manager.routes.deleteAny" | "manager.languages.readAny" | "manager.languages.updateAny" | "manager.languages.deleteAny" | "content.Media.readAny" | "content.Media.own" | "content.Media.updateAny" | "content.Media.deleteAny" | "content.Redirect.readAny" | "content.Redirect.own" | "content.Redirect.updateAny" | "content.Redirect.deleteAny" | "manager.literals.readAny" | "manager.literals.updateAny">>;
|
|
@@ -19,7 +19,7 @@ export declare const ManagerUser: ContentType<{
|
|
|
19
19
|
_type: import("zod").ZodLiteral<"ManagerRole">;
|
|
20
20
|
_id: import("zod").ZodString;
|
|
21
21
|
}, import("zod/v4/core").$strip>, true, false, "all">;
|
|
22
|
-
twoFactorEnabled: import("
|
|
22
|
+
twoFactorEnabled: import("..").BooleanField<true, false, "all">;
|
|
23
23
|
}, "ManagerUser">;
|
|
24
24
|
export type ManagerUser = typeof ManagerUser;
|
|
25
25
|
export type ManagerUserSchema = DataFront<ManagerUser>;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import ContentType from "../lib/ContentType";
|
|
2
2
|
import type { DataFront, DBOutput } from "../lib/types";
|
|
3
3
|
export declare const Media: ContentType<{
|
|
4
|
-
name: import("
|
|
5
|
-
originalName: import("
|
|
6
|
-
key: import("
|
|
7
|
-
access: import("
|
|
8
|
-
mime: import("
|
|
9
|
-
extension: import("
|
|
10
|
-
size: import("
|
|
11
|
-
etag: import("
|
|
12
|
-
url: import("
|
|
13
|
-
previewKey: import("
|
|
14
|
-
previewUrl: import("
|
|
15
|
-
previewMime: import("
|
|
16
|
-
width: import("
|
|
17
|
-
height: import("
|
|
18
|
-
orientation: import("
|
|
19
|
-
optimized: import("
|
|
20
|
-
optimizedFormat: import("
|
|
21
|
-
optimizationQuality: import("
|
|
22
|
-
originalSize: import("
|
|
23
|
-
folder: import("
|
|
24
|
-
name: import("
|
|
25
|
-
slug: import("
|
|
26
|
-
path: import("
|
|
27
|
-
parent: import("
|
|
28
|
-
description: import("
|
|
4
|
+
name: import("..").StringField<"Text", true, false, "all">;
|
|
5
|
+
originalName: import("..").StringField<"Text", true, false, "all">;
|
|
6
|
+
key: import("..").StringField<"Text", true, false, "all">;
|
|
7
|
+
access: import("..").SelectField<["public", "private"], false, import("zod").ZodLiteral<"public" | "private">, true, false, "all">;
|
|
8
|
+
mime: import("..").StringField<"Text", true, false, "all">;
|
|
9
|
+
extension: import("..").StringField<"Text", false, false, "all">;
|
|
10
|
+
size: import("..").NumberField<true, false, "all">;
|
|
11
|
+
etag: import("..").StringField<"Text", false, false, "all">;
|
|
12
|
+
url: import("..").StringField<"Url", false, false, "all">;
|
|
13
|
+
previewKey: import("..").StringField<"Text", false, false, "all">;
|
|
14
|
+
previewUrl: import("..").StringField<"Url", false, false, "all">;
|
|
15
|
+
previewMime: import("..").StringField<"Text", false, false, "all">;
|
|
16
|
+
width: import("..").NumberField<false, false, "all">;
|
|
17
|
+
height: import("..").NumberField<false, false, "all">;
|
|
18
|
+
orientation: import("..").SelectField<["portrait", "landscape"], false, import("zod").ZodLiteral<"portrait" | "landscape">, false, false, "all">;
|
|
19
|
+
optimized: import("..").BooleanField<false, false, "all">;
|
|
20
|
+
optimizedFormat: import("..").StringField<"Text", false, false, "all">;
|
|
21
|
+
optimizationQuality: import("..").NumberField<false, false, "all">;
|
|
22
|
+
originalSize: import("..").NumberField<false, false, "all">;
|
|
23
|
+
folder: import("..").RelationField<ContentType<{
|
|
24
|
+
name: import("..").StringField<"Text", true, false, "all">;
|
|
25
|
+
slug: import("..").StringField<"Slug", true, false, "all">;
|
|
26
|
+
path: import("..").StringField<"Text", true, false, "all">;
|
|
27
|
+
parent: import("..").SelfRelationField<false, false, "all">;
|
|
28
|
+
description: import("..").StringField<"Textarea", false, false, "all">;
|
|
29
29
|
}, "MediaFolder">, "existing", import("zod").ZodObject<{
|
|
30
30
|
name: import("zod").ZodString;
|
|
31
31
|
slug: import("zod").ZodString;
|
|
@@ -52,8 +52,8 @@ export declare const Media: ContentType<{
|
|
|
52
52
|
_type: import("zod").ZodLiteral<"MediaFolder">;
|
|
53
53
|
_id: import("zod").ZodString;
|
|
54
54
|
}, import("zod/v4/core").$strip>, false, false, "all">;
|
|
55
|
-
uploadedAt: import("
|
|
56
|
-
status: import("
|
|
55
|
+
uploadedAt: import("..").DateField<"Date", true, false, "all">;
|
|
56
|
+
status: import("..").SelectField<["uploaded", "archived", "deleted"], false, import("zod").ZodLiteral<"uploaded" | "archived" | "deleted">, true, false, "all">;
|
|
57
57
|
}, "Media">;
|
|
58
58
|
export type Media = typeof Media;
|
|
59
59
|
export type MediaSchema = DataFront<Media>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import ContentType from "../lib/ContentType";
|
|
2
2
|
import type { DataFront, DBOutput } from "../lib/types";
|
|
3
3
|
export declare const MediaFolder: ContentType<{
|
|
4
|
-
name: import("
|
|
5
|
-
slug: import("
|
|
6
|
-
path: import("
|
|
7
|
-
parent: import("
|
|
8
|
-
description: import("
|
|
4
|
+
name: import("..").StringField<"Text", true, false, "all">;
|
|
5
|
+
slug: import("..").StringField<"Slug", true, false, "all">;
|
|
6
|
+
path: import("..").StringField<"Text", true, false, "all">;
|
|
7
|
+
parent: import("..").SelfRelationField<false, false, "all">;
|
|
8
|
+
description: import("..").StringField<"Textarea", false, false, "all">;
|
|
9
9
|
}, "MediaFolder">;
|
|
10
10
|
export type MediaFolder = typeof MediaFolder;
|
|
11
11
|
export type MediaFolderSchema = DataFront<MediaFolder>;
|