jourycms-sdk 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/containers/content/clients/article-types.client.d.ts +1 -1
- package/dist/containers/content/clients/article-types.client.d.ts.map +1 -1
- package/dist/containers/content/clients/article-types.client.js +6 -6
- package/dist/containers/content/clients/articles.client.d.ts +2 -2
- package/dist/containers/content/clients/articles.client.d.ts.map +1 -1
- package/dist/containers/content/clients/articles.client.js +6 -6
- package/dist/containers/content/clients/taxonomies.client.d.ts +1 -1
- package/dist/containers/content/clients/taxonomies.client.d.ts.map +1 -1
- package/dist/containers/content/clients/taxonomies.client.js +3 -3
- package/dist/containers/content/clients/terms.client.d.ts +1 -1
- package/dist/containers/content/clients/terms.client.d.ts.map +1 -1
- package/dist/containers/content/clients/terms.client.js +3 -3
- package/package.json +1 -1
- package/typings/v1/cache-manager/entity.d.ts +9 -18
- package/typings/v1/events/payloads.d.ts +85 -85
- package/typings/v1/lib/execution-scenario/index.d.ts +1 -1
- package/typings/v1/modules/express/express.d.ts +6 -6
- package/typings/v1/sdk/sdk.d.ts +9 -9
- package/typings/v1/security/auth-data.d.ts +3 -3
- package/typings/v1/security/jwt.d.ts +2 -2
- package/typings/v1/services/auth/api/api-key.d.ts +14 -14
- package/typings/v1/services/auth/api/auth.d.ts +21 -21
- package/typings/v1/services/auth/api/permission-group.d.ts +13 -13
- package/typings/v1/services/auth/api/permission.d.ts +17 -17
- package/typings/v1/services/auth/api/role.d.ts +27 -27
- package/typings/v1/services/auth/api/tools.d.ts +1 -1
- package/typings/v1/services/auth/api/user.d.ts +51 -51
- package/typings/v1/services/auth/entities/user.d.ts +1 -1
- package/typings/v1/services/storage/api/uploaded-file.d.ts +16 -16
- package/typings/v1/services/system/api/app.d.ts +12 -12
- package/typings/v1/services/system/entities/app.d.ts +2 -2
- package/typings/v1/ui/forms/article/custom-fieds/custom-field.d.ts +2 -2
- package/typings/v1/utils/api/request.d.ts +13 -13
- package/typings/v1/utils/api/response.d.ts +1 -1
- package/typings/v1/utils/dev/instrumentation.d.ts +5 -5
- package/typings/v1/utils/system/models.d.ts +70 -11
@@ -3,17 +3,76 @@ declare module Levelup {
|
|
3
3
|
namespace V1 {
|
4
4
|
namespace Utils {
|
5
5
|
namespace SystemStructure {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
6
|
+
namespace Models {
|
7
|
+
|
8
|
+
export type AuthModels =
|
9
|
+
| "user"
|
10
|
+
| "role"
|
11
|
+
| "permission"
|
12
|
+
| "permissionGroup"
|
13
|
+
| "apiKey";
|
14
|
+
|
15
|
+
export type CmModels =
|
16
|
+
| "translationProject"
|
17
|
+
| "translationNamespace"
|
18
|
+
| "translationItem"
|
19
|
+
| "taxonomy"
|
20
|
+
| "term"
|
21
|
+
| "review"
|
22
|
+
| "comment"
|
23
|
+
| "article"
|
24
|
+
| "articleType";
|
25
|
+
export type SystemModels = "app";
|
26
|
+
|
27
|
+
export type AllModels =
|
28
|
+
| AuthModels
|
29
|
+
| CmModels
|
30
|
+
| SystemModels;
|
31
|
+
|
32
|
+
/**
|
33
|
+
* TODO: finish this
|
34
|
+
*/
|
35
|
+
|
36
|
+
export type EntityType<E extends AllModels> =
|
37
|
+
// auth
|
38
|
+
E extends "user"
|
39
|
+
? Levelup.V2.Users.Entity.ExposedUser &
|
40
|
+
Record<"password" | "confirm_password", string>
|
41
|
+
: E extends "permission"
|
42
|
+
? Levelup.V2.Auth.Entity.Permission
|
43
|
+
: E extends "permissionGroup"
|
44
|
+
? Levelup.V2.Auth.Entity.PermissionGroup
|
45
|
+
: E extends "role"
|
46
|
+
? Levelup.V2.Auth.Entity.Role
|
47
|
+
: E extends "apiKey"
|
48
|
+
? Levelup.V2.Auth.Entity.ApiKey
|
49
|
+
: // cm
|
50
|
+
E extends "article"
|
51
|
+
? Levelup.V2.Cm.Entity.Article
|
52
|
+
: E extends "articleType"
|
53
|
+
? Levelup.V2.Cm.Entity.ArticleType
|
54
|
+
: E extends "review"
|
55
|
+
? Levelup.V2.Cm.Entity.Review
|
56
|
+
: E extends "comment"
|
57
|
+
? Levelup.V2.Cm.Entity.Comment
|
58
|
+
: E extends "term"
|
59
|
+
? Levelup.V2.Cm.Entity.Term
|
60
|
+
: E extends "taxonomy"
|
61
|
+
? Levelup.V2.Cm.Entity.Taxonomy
|
62
|
+
: E extends "translationItem"
|
63
|
+
? Levelup.V2.Cm.Translation.Entity.Item
|
64
|
+
: E extends "translationProject"
|
65
|
+
? Levelup.V2.Cm.Translation.Entity.Project
|
66
|
+
: E extends "translationNamespace"
|
67
|
+
? Levelup.V2.Cm.Translation.Entity.Namespace
|
68
|
+
: // Storage
|
69
|
+
E extends "uploadedFile"
|
70
|
+
? Levelup.V2.Storage.Entity.UploadedFile
|
71
|
+
: // system
|
72
|
+
E extends "app"
|
73
|
+
? Levelup.V2.System.Entity.App
|
74
|
+
: never;
|
75
|
+
}
|
17
76
|
}
|
18
77
|
}
|
19
78
|
}
|