jourycms-sdk 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/base.app-container.d.ts +7 -0
- package/dist/base.app-container.d.ts.map +1 -0
- package/dist/base.app-container.js +10 -0
- package/dist/base.client.d.ts +10 -0
- package/dist/base.client.d.ts.map +1 -0
- package/dist/base.client.js +16 -0
- package/dist/base.service-container.d.ts +8 -0
- package/dist/base.service-container.d.ts.map +1 -0
- package/dist/base.service-container.js +12 -0
- package/dist/containers/auth/clients/api-keys.client.d.ts +13 -0
- package/dist/containers/auth/clients/api-keys.client.d.ts.map +1 -0
- package/dist/containers/auth/clients/api-keys.client.js +48 -0
- package/dist/containers/auth/clients/auth.client.d.ts +12 -0
- package/dist/containers/auth/clients/auth.client.d.ts.map +1 -0
- package/dist/containers/auth/clients/auth.client.js +39 -0
- package/dist/containers/auth/clients/permission-groups.client.d.ts +12 -0
- package/dist/containers/auth/clients/permission-groups.client.d.ts.map +1 -0
- package/dist/containers/auth/clients/permission-groups.client.js +42 -0
- package/dist/containers/auth/clients/permissions.client.d.ts +13 -0
- package/dist/containers/auth/clients/permissions.client.d.ts.map +1 -0
- package/dist/containers/auth/clients/permissions.client.js +48 -0
- package/dist/containers/auth/clients/roles.client.d.ts +17 -0
- package/dist/containers/auth/clients/roles.client.d.ts.map +1 -0
- package/dist/containers/auth/clients/roles.client.js +72 -0
- package/dist/containers/auth/clients/users.client.d.ts +26 -0
- package/dist/containers/auth/clients/users.client.d.ts.map +1 -0
- package/dist/containers/auth/clients/users.client.js +128 -0
- package/dist/containers/auth/service-container.d.ts +23 -0
- package/dist/containers/auth/service-container.d.ts.map +1 -0
- package/dist/containers/auth/service-container.js +48 -0
- package/dist/containers/content/clients/article-types.client.d.ts +15 -0
- package/dist/containers/content/clients/article-types.client.d.ts.map +1 -0
- package/dist/containers/content/clients/article-types.client.js +60 -0
- package/dist/containers/content/clients/articles.client.d.ts +15 -0
- package/dist/containers/content/clients/articles.client.d.ts.map +1 -0
- package/dist/containers/content/clients/articles.client.js +60 -0
- package/dist/containers/content/clients/comments.client.d.ts +15 -0
- package/dist/containers/content/clients/comments.client.d.ts.map +1 -0
- package/dist/containers/content/clients/comments.client.js +60 -0
- package/dist/containers/content/clients/reviews.client.d.ts +15 -0
- package/dist/containers/content/clients/reviews.client.d.ts.map +1 -0
- package/dist/containers/content/clients/reviews.client.js +60 -0
- package/dist/containers/content/clients/taxonomies.client.d.ts +15 -0
- package/dist/containers/content/clients/taxonomies.client.d.ts.map +1 -0
- package/dist/containers/content/clients/taxonomies.client.js +60 -0
- package/dist/containers/content/clients/terms.client.d.ts +15 -0
- package/dist/containers/content/clients/terms.client.d.ts.map +1 -0
- package/dist/containers/content/clients/terms.client.js +60 -0
- package/dist/containers/content/clients/translation.items.client.d.ts +16 -0
- package/dist/containers/content/clients/translation.items.client.d.ts.map +1 -0
- package/dist/containers/content/clients/translation.items.client.js +66 -0
- package/dist/containers/content/clients/translation.namespaces.client.d.ts +16 -0
- package/dist/containers/content/clients/translation.namespaces.client.d.ts.map +1 -0
- package/dist/containers/content/clients/translation.namespaces.client.js +66 -0
- package/dist/containers/content/clients/translation.projects.client.d.ts +16 -0
- package/dist/containers/content/clients/translation.projects.client.d.ts.map +1 -0
- package/dist/containers/content/clients/translation.projects.client.js +66 -0
- package/dist/containers/content/service-container.d.ts +29 -0
- package/dist/containers/content/service-container.d.ts.map +1 -0
- package/dist/containers/content/service-container.js +66 -0
- package/dist/containers/storage/clients/files.client.d.ts +13 -0
- package/dist/containers/storage/clients/files.client.d.ts.map +1 -0
- package/dist/containers/storage/clients/files.client.js +48 -0
- package/dist/containers/storage/clients/uploader.client.d.ts +6 -0
- package/dist/containers/storage/clients/uploader.client.d.ts.map +1 -0
- package/dist/containers/storage/clients/uploader.client.js +12 -0
- package/dist/containers/storage/clients/utils.client.d.ts +15 -0
- package/dist/containers/storage/clients/utils.client.d.ts.map +1 -0
- package/dist/containers/storage/clients/utils.client.js +45 -0
- package/dist/containers/storage/service-container.d.ts +31 -0
- package/dist/containers/storage/service-container.d.ts.map +1 -0
- package/dist/containers/storage/service-container.js +63 -0
- package/dist/containers/system/clients/apps.client.d.ts +16 -0
- package/dist/containers/system/clients/apps.client.d.ts.map +1 -0
- package/dist/containers/system/clients/apps.client.js +66 -0
- package/dist/containers/system/service-container.d.ts +13 -0
- package/dist/containers/system/service-container.d.ts.map +1 -0
- package/dist/containers/system/service-container.js +18 -0
- package/dist/exceptions/api-response.exception.d.ts +15 -0
- package/dist/exceptions/api-response.exception.d.ts.map +1 -0
- package/dist/exceptions/api-response.exception.js +26 -0
- package/dist/http-client.d.ts +20 -0
- package/dist/http-client.d.ts.map +1 -0
- package/dist/http-client.js +187 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +237 -0
- package/dist/init-sdk.d.ts +21 -0
- package/dist/init-sdk.d.ts.map +1 -0
- package/dist/init-sdk.js +17 -0
- package/dist/sdk.test.d.ts +1 -0
- package/dist/sdk.test.d.ts.map +1 -0
- package/dist/sdk.test.js +1 -0
- package/dist/utils/helpers.d.ts +5 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/helpers.js +13 -0
- package/dist/utils/logger.d.ts +133 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +176 -0
- package/package.json +49 -0
- package/typings/index.d.ts +1 -0
- package/typings/v1/cache-manager/class.d.ts +0 -0
- package/typings/v1/cache-manager/entity.d.ts +83 -0
- package/typings/v1/cache-manager/index.d.ts +5 -0
- package/typings/v1/cache-manager/store.d.ts +35 -0
- package/typings/v1/events/index.d.ts +3 -0
- package/typings/v1/events/payloads.d.ts +339 -0
- package/typings/v1/index.d.ts +8 -0
- package/typings/v1/lib/execution-scenario/index.d.ts +27 -0
- package/typings/v1/lib/index.d.ts +4 -0
- package/typings/v1/lib/logger/index.d.ts +3 -0
- package/typings/v1/lib/logger/logger.d.ts +53 -0
- package/typings/v1/modules/express/express.d.ts +40 -0
- package/typings/v1/modules/express/index.d.ts +3 -0
- package/typings/v1/modules/index.d.ts +4 -0
- package/typings/v1/modules/mongoose/index.d.ts +3 -0
- package/typings/v1/modules/mongoose/mongoose.d.ts +48 -0
- package/typings/v1/sdk/index.d.ts +3 -0
- package/typings/v1/sdk/sdk.d.ts +158 -0
- package/typings/v1/security/auth-data.d.ts +36 -0
- package/typings/v1/security/index.d.ts +4 -0
- package/typings/v1/security/jwt.d.ts +36 -0
- package/typings/v1/services/auth/api/api-key.d.ts +144 -0
- package/typings/v1/services/auth/api/auth.d.ts +168 -0
- package/typings/v1/services/auth/api/index.d.ts +9 -0
- package/typings/v1/services/auth/api/permission-group.d.ts +95 -0
- package/typings/v1/services/auth/api/permission.d.ts +128 -0
- package/typings/v1/services/auth/api/role.d.ts +193 -0
- package/typings/v1/services/auth/api/tools.d.ts +33 -0
- package/typings/v1/services/auth/api/user.d.ts +391 -0
- package/typings/v1/services/auth/entities/_shared.d.ts +11 -0
- package/typings/v1/services/auth/entities/api-key.d.ts +29 -0
- package/typings/v1/services/auth/entities/federated-credential.d.ts +22 -0
- package/typings/v1/services/auth/entities/index.d.ts +9 -0
- package/typings/v1/services/auth/entities/permission-group.d.ts +20 -0
- package/typings/v1/services/auth/entities/permission.d.ts +24 -0
- package/typings/v1/services/auth/entities/role.d.ts +25 -0
- package/typings/v1/services/auth/entities/user.d.ts +153 -0
- package/typings/v1/services/auth/index.d.ts +5 -0
- package/typings/v1/services/auth/models/.DS_Store +0 -0
- package/typings/v1/services/auth/models/api-key.d.ts +19 -0
- package/typings/v1/services/auth/models/api-key.model.d.ts +3 -0
- package/typings/v1/services/auth/models/federated-credential.d.ts +24 -0
- package/typings/v1/services/auth/models/index.d.ts +9 -0
- package/typings/v1/services/auth/models/permission-group.d.ts +24 -0
- package/typings/v1/services/auth/models/permission.d.ts +22 -0
- package/typings/v1/services/auth/models/role.d.ts +22 -0
- package/typings/v1/services/auth/models/user.d.ts +22 -0
- package/typings/v1/services/content/api/article-type.d.ts +160 -0
- package/typings/v1/services/content/api/article.d.ts +108 -0
- package/typings/v1/services/content/api/comment.d.ts +106 -0
- package/typings/v1/services/content/api/index.d.ts +12 -0
- package/typings/v1/services/content/api/review.d.ts +105 -0
- package/typings/v1/services/content/api/taxonomy.d.ts +101 -0
- package/typings/v1/services/content/api/term.d.ts +101 -0
- package/typings/v1/services/content/api/translation.item.d.ts +195 -0
- package/typings/v1/services/content/api/translation.namespace.d.ts +135 -0
- package/typings/v1/services/content/api/translation.project.d.ts +196 -0
- package/typings/v1/services/content/api/translation.tools.d.ts +85 -0
- package/typings/v1/services/content/entities/article-type.d.ts +51 -0
- package/typings/v1/services/content/entities/article.d.ts +53 -0
- package/typings/v1/services/content/entities/comment.d.ts +34 -0
- package/typings/v1/services/content/entities/index.d.ts +11 -0
- package/typings/v1/services/content/entities/review.d.ts +35 -0
- package/typings/v1/services/content/entities/taxonomy.d.ts +40 -0
- package/typings/v1/services/content/entities/term.d.ts +43 -0
- package/typings/v1/services/content/entities/translation.item.d.ts +48 -0
- package/typings/v1/services/content/entities/translation.namespace.d.ts +29 -0
- package/typings/v1/services/content/entities/translation.project.d.ts +98 -0
- package/typings/v1/services/content/index.d.ts +5 -0
- package/typings/v1/services/content/models/article-type.d.ts +19 -0
- package/typings/v1/services/content/models/article.d.ts +19 -0
- package/typings/v1/services/content/models/comment.d.ts +19 -0
- package/typings/v1/services/content/models/index.d.ts +11 -0
- package/typings/v1/services/content/models/review.d.ts +19 -0
- package/typings/v1/services/content/models/taxonomy.d.ts +19 -0
- package/typings/v1/services/content/models/term.d.ts +19 -0
- package/typings/v1/services/content/models/translation.item.d.ts +21 -0
- package/typings/v1/services/content/models/translation.namespace.d.ts +22 -0
- package/typings/v1/services/content/models/translation.project.d.ts +21 -0
- package/typings/v1/services/index.d.ts +4 -0
- package/typings/v1/services/storage/api/index.d.ts +3 -0
- package/typings/v1/services/storage/api/uploaded-file.d.ts +166 -0
- package/typings/v1/services/storage/entities/index.d.ts +3 -0
- package/typings/v1/services/storage/entities/uploaded-file.d.ts +49 -0
- package/typings/v1/services/storage/index.d.ts +5 -0
- package/typings/v1/services/storage/models/index.d.ts +3 -0
- package/typings/v1/services/storage/models/uploaded-file.d.ts +19 -0
- package/typings/v1/services/system/api/app.d.ts +130 -0
- package/typings/v1/services/system/api/index.d.ts +3 -0
- package/typings/v1/services/system/entities/app.d.ts +97 -0
- package/typings/v1/services/system/entities/index.d.ts +3 -0
- package/typings/v1/services/system/index.d.ts +5 -0
- package/typings/v1/services/system/models/app.d.ts +19 -0
- package/typings/v1/services/system/models/index.d.ts +3 -0
- package/typings/v1/ui/admin/index.d.ts +1 -0
- package/typings/v1/ui/forms/article/custom-fieds/custom-field.d.ts +189 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/article_object.custom-field.d.ts +29 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/boolean.custom-field.d.ts +24 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/checkbox.custom-field.d.ts +26 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/date.custom-field.d.ts +23 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/date_range.custom-field.d.ts +26 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/file.custom-field.d.ts +26 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/image.custom-field.d.ts +25 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/index.d.ts +11 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/number.custom-field.d.ts +26 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/radiobox.custom-field.d.ts +27 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/select.custom-field.d.ts +27 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/text.custom-field.d.ts +26 -0
- package/typings/v1/ui/forms/article/custom-fieds/fields/time.custom-field.d.ts +24 -0
- package/typings/v1/ui/forms/article/custom-fieds/index.d.ts +1 -0
- package/typings/v1/ui/forms/article/index.d.ts +1 -0
- package/typings/v1/ui/forms/index.d.ts +1 -0
- package/typings/v1/ui/index.d.ts +3 -0
- package/typings/v1/ui/routes/index.d.ts +1 -0
- package/typings/v1/ui/routes/routes.d.ts +73 -0
- package/typings/v1/utils/api/index.d.ts +4 -0
- package/typings/v1/utils/api/request.d.ts +215 -0
- package/typings/v1/utils/api/response.d.ts +188 -0
- package/typings/v1/utils/common/common.d.ts +53 -0
- package/typings/v1/utils/common/index.d.ts +3 -0
- package/typings/v1/utils/dev/config.d.ts +135 -0
- package/typings/v1/utils/dev/index.d.ts +4 -0
- package/typings/v1/utils/dev/instrumentation.d.ts +41 -0
- package/typings/v1/utils/entities/entities.d.ts +66 -0
- package/typings/v1/utils/entities/index.d.ts +4 -0
- package/typings/v1/utils/entities/snapshots.d.ts +69 -0
- package/typings/v1/utils/index.d.ts +10 -0
- package/typings/v1/utils/models/index.d.ts +3 -0
- package/typings/v1/utils/models/models.d.ts +50 -0
- package/typings/v1/utils/seed/index.d.ts +3 -0
- package/typings/v1/utils/seed/locations.d.ts +41 -0
- package/typings/v1/utils/system/microservice.d.ts +11 -0
- package/typings/v1/utils/system/models.d.ts +21 -0
- package/typings/v1/utils/utils.d.ts +171 -0
@@ -0,0 +1,196 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Translation {
|
6
|
+
/**
|
7
|
+
* @description Service Entity
|
8
|
+
*/
|
9
|
+
export namespace Api {
|
10
|
+
export namespace Projects {
|
11
|
+
/**
|
12
|
+
* --------------------------------------------------------------------------
|
13
|
+
* Create
|
14
|
+
* --------------------------------------------------------------------------
|
15
|
+
* @link
|
16
|
+
* @fires ProjectsService.Create
|
17
|
+
* @param {Levelup.CMS.V1.Translation.Api.Projects.Create.Request} query
|
18
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Projects.Create.Response}
|
19
|
+
* @method POST
|
20
|
+
*
|
21
|
+
*/
|
22
|
+
export namespace Create {
|
23
|
+
export type Request =
|
24
|
+
Utils.Api.Request.BuildCreateRequest<Entity.Project>;
|
25
|
+
export type Response =
|
26
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Project>;
|
27
|
+
}
|
28
|
+
|
29
|
+
/**
|
30
|
+
* --------------------------------------------------------------------------
|
31
|
+
* Update
|
32
|
+
* --------------------------------------------------------------------------
|
33
|
+
* @link
|
34
|
+
* @fires ProjectsService.Update
|
35
|
+
* @param {Levelup.CMS.V1.Translation.Api.Projects.Update.Request} query
|
36
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Projects.Update.Response}
|
37
|
+
* @method PUT
|
38
|
+
*
|
39
|
+
*/
|
40
|
+
export namespace Update {
|
41
|
+
export type Request =
|
42
|
+
Utils.Api.Request.BuildUpdateRequest<Entity.Project>;
|
43
|
+
export type Response =
|
44
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Project>;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* --------------------------------------------------------------------------
|
49
|
+
* Delete
|
50
|
+
* --------------------------------------------------------------------------
|
51
|
+
* @link
|
52
|
+
* @fires ProjectsService.Delete
|
53
|
+
* @param {Levelup.CMS.V1.Translation.Api.Projects.Delete.Request} query
|
54
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Projects.Delete.Response}
|
55
|
+
* @method DELETE
|
56
|
+
*
|
57
|
+
*/
|
58
|
+
export namespace Delete {
|
59
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
60
|
+
}
|
61
|
+
|
62
|
+
/**
|
63
|
+
* --------------------------------------------------------------------------
|
64
|
+
* BulkDelete
|
65
|
+
* --------------------------------------------------------------------------
|
66
|
+
* @link
|
67
|
+
* @fires ProjectsService.BulkDelete
|
68
|
+
* @param {Levelup.CMS.V1.Translation.Api.Projects.BulkDelete.Request} query
|
69
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Projects.BulkDelete.Response}
|
70
|
+
* @method DELETE
|
71
|
+
*
|
72
|
+
*/
|
73
|
+
export namespace BulkDelete {
|
74
|
+
export type Request = Utils.Api.Request.Build<{
|
75
|
+
data: {
|
76
|
+
id?: string[];
|
77
|
+
tracking_id?: string[];
|
78
|
+
};
|
79
|
+
}>;
|
80
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
81
|
+
}
|
82
|
+
|
83
|
+
/**
|
84
|
+
* --------------------------------------------------------------------------
|
85
|
+
* GetOne
|
86
|
+
* --------------------------------------------------------------------------
|
87
|
+
* @link
|
88
|
+
* @fires ProjectsService.GetOne
|
89
|
+
* @param {Levelup.CMS.V1.Translation.Api.Projects.GetOne.Request} query
|
90
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Projects.GetOne.Response}
|
91
|
+
* @method GET
|
92
|
+
*
|
93
|
+
*/
|
94
|
+
export namespace GetOne {
|
95
|
+
type Scope = "";
|
96
|
+
export type Request = Utils.Api.Request.Build<
|
97
|
+
Record<string, unknown>
|
98
|
+
>;
|
99
|
+
export type Response =
|
100
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Project>;
|
101
|
+
}
|
102
|
+
|
103
|
+
/**
|
104
|
+
* --------------------------------------------------------------------------
|
105
|
+
* List
|
106
|
+
* --------------------------------------------------------------------------
|
107
|
+
* @link
|
108
|
+
* @fires ProjectsService.List
|
109
|
+
* @param {Levelup.CMS.V1.Translation.Api.Projects.List.Request} query
|
110
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Projects.List.Response}
|
111
|
+
* @method GET
|
112
|
+
*
|
113
|
+
*/
|
114
|
+
export namespace List {
|
115
|
+
type Scope = "listing" | "ids" | "trackings";
|
116
|
+
|
117
|
+
export type Request =
|
118
|
+
Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Project> & {
|
119
|
+
updated_by?: string;
|
120
|
+
created_by?: string;
|
121
|
+
scope?: Scope;
|
122
|
+
filters?: {
|
123
|
+
/**
|
124
|
+
* Here will be the custom filters
|
125
|
+
*/
|
126
|
+
};
|
127
|
+
};
|
128
|
+
export type Response =
|
129
|
+
Utils.Api.Response.BuildListResponse<Entity.Project>;
|
130
|
+
}
|
131
|
+
|
132
|
+
export namespace GetTranslationProgress {
|
133
|
+
export type Request = Utils.Api.Request.Build<
|
134
|
+
Partial<{
|
135
|
+
project: string;
|
136
|
+
}>
|
137
|
+
>;
|
138
|
+
export type Response =
|
139
|
+
Utils.Api.Response.BuildSingleItemResponse<{
|
140
|
+
total: number;
|
141
|
+
translated: number;
|
142
|
+
approved: number;
|
143
|
+
|
144
|
+
languages: {
|
145
|
+
[language: Entity.TLanguageCode]: {
|
146
|
+
translated: number;
|
147
|
+
};
|
148
|
+
};
|
149
|
+
|
150
|
+
namespaces: {
|
151
|
+
[namespace: string]: {
|
152
|
+
total: number;
|
153
|
+
translated: number;
|
154
|
+
approved: number;
|
155
|
+
};
|
156
|
+
};
|
157
|
+
|
158
|
+
by_date: {
|
159
|
+
[day: string]: {
|
160
|
+
translated: number;
|
161
|
+
approved: number;
|
162
|
+
};
|
163
|
+
};
|
164
|
+
|
165
|
+
users: {
|
166
|
+
[user: string]: {
|
167
|
+
total: number;
|
168
|
+
translated: number;
|
169
|
+
approved: number;
|
170
|
+
};
|
171
|
+
};
|
172
|
+
|
173
|
+
users_activity: {
|
174
|
+
[user: string]: {
|
175
|
+
day: string;
|
176
|
+
updates: number;
|
177
|
+
}[];
|
178
|
+
};
|
179
|
+
|
180
|
+
meta_data: {
|
181
|
+
users: {
|
182
|
+
[user: string]: Utils.Entity.Snapshots.Auth.User;
|
183
|
+
};
|
184
|
+
namespaces: {
|
185
|
+
[namespace: string]: string;
|
186
|
+
};
|
187
|
+
};
|
188
|
+
}>;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Translation {
|
6
|
+
export namespace Api {
|
7
|
+
export namespace Tools {
|
8
|
+
export namespace InsertI18MissingKey {
|
9
|
+
export type Request = Utils.Api.Request.BuildCreateRequest<{
|
10
|
+
project: string;
|
11
|
+
namespace: string;
|
12
|
+
key: string;
|
13
|
+
languages: Entity.TLanguageCode[];
|
14
|
+
default_language: Entity.TLanguageCode;
|
15
|
+
}>;
|
16
|
+
export type Response =
|
17
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Item>;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
export namespace Insights {
|
21
|
+
export namespace GetTranslationProgress {
|
22
|
+
export type Request = Utils.Api.Request.Build<
|
23
|
+
Partial<{
|
24
|
+
project: string;
|
25
|
+
}>
|
26
|
+
>;
|
27
|
+
export type Response =
|
28
|
+
Utils.Api.Response.BuildSingleItemResponse<{
|
29
|
+
total: number;
|
30
|
+
translated: number;
|
31
|
+
approved: number;
|
32
|
+
|
33
|
+
languages: {
|
34
|
+
[language: Entity.TLanguageCode]: {
|
35
|
+
translated: number;
|
36
|
+
};
|
37
|
+
};
|
38
|
+
|
39
|
+
namespaces: {
|
40
|
+
[namespace: string]: {
|
41
|
+
total: number;
|
42
|
+
translated: number;
|
43
|
+
approved: number;
|
44
|
+
};
|
45
|
+
};
|
46
|
+
|
47
|
+
by_date: {
|
48
|
+
[day: string]: {
|
49
|
+
translated: number;
|
50
|
+
approved: number;
|
51
|
+
};
|
52
|
+
};
|
53
|
+
|
54
|
+
users: {
|
55
|
+
[user: string]: {
|
56
|
+
total: number;
|
57
|
+
translated: number;
|
58
|
+
approved: number;
|
59
|
+
};
|
60
|
+
};
|
61
|
+
|
62
|
+
users_activity: {
|
63
|
+
[user: string]: {
|
64
|
+
day: string;
|
65
|
+
updates: number;
|
66
|
+
}[];
|
67
|
+
};
|
68
|
+
|
69
|
+
meta_data: {
|
70
|
+
users: {
|
71
|
+
[user: string]: Utils.Entity.Snapshots.Auth.User;
|
72
|
+
};
|
73
|
+
namespaces: {
|
74
|
+
[namespace: string]: string;
|
75
|
+
};
|
76
|
+
};
|
77
|
+
}>;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Entity {
|
6
|
+
type ICustomMetaField = {
|
7
|
+
field_key: string;
|
8
|
+
field_label: string;
|
9
|
+
field_type: UI.Forms.CustomFields.CustomFieldType;
|
10
|
+
field_options: {
|
11
|
+
[Key: string]: any;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
|
15
|
+
export interface IArticleTypeSnapshots {
|
16
|
+
created_by: Utils.Entity.Snapshots.Auth.User | null;
|
17
|
+
}
|
18
|
+
|
19
|
+
export interface IArticleTypeInsights {
|
20
|
+
article_count: number;
|
21
|
+
}
|
22
|
+
|
23
|
+
export interface ArticleType
|
24
|
+
extends Utils.Entity.General.ICreatable,
|
25
|
+
Utils.Entity.General.IHasSearchMeta {
|
26
|
+
_id: Utils.Common.ID;
|
27
|
+
slug: string;
|
28
|
+
name: string;
|
29
|
+
labels: {
|
30
|
+
singular: string;
|
31
|
+
plural: string;
|
32
|
+
list: string;
|
33
|
+
create: string;
|
34
|
+
edit: string;
|
35
|
+
delete: string;
|
36
|
+
};
|
37
|
+
description: string;
|
38
|
+
description_unformatted: string;
|
39
|
+
description_structured: { [Key: string]: any };
|
40
|
+
|
41
|
+
custom_meta_fields: ICustomMetaField[];
|
42
|
+
related_taxonomies: Utils.Common.ID[];
|
43
|
+
|
44
|
+
snapshots: IArticleTypeSnapshots;
|
45
|
+
insights: IArticleTypeInsights;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Entity {
|
6
|
+
export interface IArticleAttributes {
|
7
|
+
google_index_requested?: boolean;
|
8
|
+
}
|
9
|
+
export interface IArticleSnapshots {
|
10
|
+
created_by: Utils.Entity.Snapshots.Auth.User | null;
|
11
|
+
}
|
12
|
+
export interface IArticleInsights {
|
13
|
+
comment_count?: number;
|
14
|
+
vote_count?: number;
|
15
|
+
vote_value?: number;
|
16
|
+
view_count?: number;
|
17
|
+
}
|
18
|
+
|
19
|
+
export interface Article
|
20
|
+
extends Utils.Entity.General.ICreatable,
|
21
|
+
Utils.Entity.General.IHasSearchMeta {
|
22
|
+
_type: Utils.Common.ID | null;
|
23
|
+
_id: Utils.Common.ID;
|
24
|
+
slug: string;
|
25
|
+
title: string;
|
26
|
+
body: string;
|
27
|
+
body_unformatted: string;
|
28
|
+
body_structured: { [Key: string]: any };
|
29
|
+
|
30
|
+
is_featured: boolean;
|
31
|
+
|
32
|
+
featured_image: Utils.Common.FileAttribute | null;
|
33
|
+
|
34
|
+
article_type: Utils.Common.ID;
|
35
|
+
|
36
|
+
related_tags: {
|
37
|
+
_id: Utils.Common.ID;
|
38
|
+
taxonomy: Utils.Common.ID;
|
39
|
+
name: string;
|
40
|
+
slug: string;
|
41
|
+
}[];
|
42
|
+
|
43
|
+
meta_fields: { [Key: string]: any };
|
44
|
+
|
45
|
+
attributes: IArticleAttributes;
|
46
|
+
snapshots: IArticleSnapshots;
|
47
|
+
insights: IArticleInsights;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Entity {
|
6
|
+
export interface ICommentSnapshots {
|
7
|
+
created_by: Utils.Entity.Snapshots.Auth.User | null;
|
8
|
+
article: {
|
9
|
+
_id: Utils.Common.ID;
|
10
|
+
slug: string;
|
11
|
+
title: string;
|
12
|
+
};
|
13
|
+
}
|
14
|
+
|
15
|
+
export interface Comment
|
16
|
+
extends Utils.Entity.General.ICreatable,
|
17
|
+
Utils.Entity.General.IHasSearchMeta {
|
18
|
+
_id: Utils.Common.ID;
|
19
|
+
parent: Utils.Common.ID;
|
20
|
+
children: Utils.Common.ID[];
|
21
|
+
article: Utils.Common.ID;
|
22
|
+
slug: string;
|
23
|
+
|
24
|
+
body: string;
|
25
|
+
body_unformatted: string;
|
26
|
+
body_structured: { [Key: string]: any };
|
27
|
+
|
28
|
+
snapshots: ICommentSnapshots;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
'generated by levelup';
|
2
|
+
|
3
|
+
export * from "./translation.project.d.ts";
|
4
|
+
export * from "./translation.namespace.d.ts";
|
5
|
+
export * from "./translation.item.d.ts";
|
6
|
+
export * from "./taxonomy.d.ts";
|
7
|
+
export * from "./term.d.ts";
|
8
|
+
export * from "./review.d.ts";
|
9
|
+
export * from "./comment.d.ts";
|
10
|
+
export * from "./article.d.ts";
|
11
|
+
export * from "./article-type.d.ts";
|
@@ -0,0 +1,35 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Entity {
|
6
|
+
export interface IReviewSnapshots {
|
7
|
+
created_by: Utils.Entity.Snapshots.Auth.User | null;
|
8
|
+
article: {
|
9
|
+
_id: Utils.Common.ID;
|
10
|
+
slug: string;
|
11
|
+
title: string;
|
12
|
+
};
|
13
|
+
}
|
14
|
+
|
15
|
+
export interface Review
|
16
|
+
extends Utils.Entity.General.ICreatable,
|
17
|
+
Utils.Entity.General.IHasSearchMeta {
|
18
|
+
_id: Utils.Common.ID;
|
19
|
+
|
20
|
+
article: Utils.Common.ID;
|
21
|
+
slug: string;
|
22
|
+
|
23
|
+
body: string;
|
24
|
+
body_unformatted: string;
|
25
|
+
body_structured: { [Key: string]: any };
|
26
|
+
|
27
|
+
value: number;
|
28
|
+
|
29
|
+
snapshots: IReviewSnapshots;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Entity {
|
6
|
+
export interface ITaxonomySnapshots {
|
7
|
+
created_by: Utils.Entity.Snapshots.Auth.User | null;
|
8
|
+
}
|
9
|
+
|
10
|
+
export interface Taxonomy
|
11
|
+
extends Utils.Entity.General.ICreatable,
|
12
|
+
Utils.Entity.General.IHasSearchMeta {
|
13
|
+
_id: Utils.Common.ID;
|
14
|
+
slug: string;
|
15
|
+
name: string;
|
16
|
+
|
17
|
+
description: string;
|
18
|
+
description_unformatted: string;
|
19
|
+
description_structured: { [Key: string]: any };
|
20
|
+
|
21
|
+
// hierarchy
|
22
|
+
is_multi: boolean;
|
23
|
+
is_hierarchical: boolean;
|
24
|
+
|
25
|
+
labels: {
|
26
|
+
singular: string;
|
27
|
+
plural: string;
|
28
|
+
list: string;
|
29
|
+
add: string;
|
30
|
+
edit: string;
|
31
|
+
delete: string;
|
32
|
+
};
|
33
|
+
|
34
|
+
snapshots: ITaxonomySnapshots;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Entity {
|
6
|
+
export interface ITermSnapshots {
|
7
|
+
created_by: Utils.Entity.Snapshots.Auth.User | null;
|
8
|
+
taxonomy: {
|
9
|
+
_id: Utils.Common.ID;
|
10
|
+
slug: string;
|
11
|
+
name: string;
|
12
|
+
is_hierarchical: boolean;
|
13
|
+
is_multi: boolean;
|
14
|
+
};
|
15
|
+
}
|
16
|
+
|
17
|
+
export interface ITermInsights {
|
18
|
+
article_count: number;
|
19
|
+
}
|
20
|
+
|
21
|
+
export interface Term
|
22
|
+
extends Utils.Entity.General.ICreatable,
|
23
|
+
Utils.Entity.General.IHasSearchMeta {
|
24
|
+
// TODO finish this
|
25
|
+
_id: Utils.Common.ID;
|
26
|
+
taxonomy: Utils.Common.ID;
|
27
|
+
parent: Utils.Common.ID | null;
|
28
|
+
children: Utils.Common.ID[];
|
29
|
+
slug: string;
|
30
|
+
name: string;
|
31
|
+
|
32
|
+
description: string;
|
33
|
+
description_unformatted: string;
|
34
|
+
description_structured: { [Key: string]: any };
|
35
|
+
|
36
|
+
snapshots: ITermSnapshots;
|
37
|
+
insights: ITermInsights;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
/**
|
6
|
+
* SubDomain Translation
|
7
|
+
*/
|
8
|
+
export namespace Translation {
|
9
|
+
export namespace Entity {
|
10
|
+
export interface IItemUpdateHistoryItem {
|
11
|
+
translation: string;
|
12
|
+
date: Date;
|
13
|
+
updated_by: Utils.Entity.Snapshots.Auth.User;
|
14
|
+
auto_translated: boolean;
|
15
|
+
}
|
16
|
+
|
17
|
+
export interface IItemTranslation {
|
18
|
+
language: LanguageCode;
|
19
|
+
translation: string;
|
20
|
+
date: Date;
|
21
|
+
is_auto_translated: boolean;
|
22
|
+
is_approved: boolean;
|
23
|
+
updated_by: Utils.Entity.Snapshots.Auth.User;
|
24
|
+
approved_by: Utils.Entity.Snapshots.Auth.User;
|
25
|
+
update_history: IItemUpdateHistoryItem[];
|
26
|
+
}
|
27
|
+
|
28
|
+
export interface Item
|
29
|
+
extends Utils.Entity.General.ICreatable,
|
30
|
+
Utils.Entity.General.IHasSearchMeta {
|
31
|
+
_id: Utils.Common.ID;
|
32
|
+
key: string;
|
33
|
+
project: Utils.Common.ID; // Project._id
|
34
|
+
namespace: string; // Namespace.name
|
35
|
+
comments: {
|
36
|
+
content: string;
|
37
|
+
user: Utils.Entity.Snapshots.Auth.User;
|
38
|
+
date: Date;
|
39
|
+
}[];
|
40
|
+
is_new: boolean;
|
41
|
+
translations: IItemTranslation[];
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
/**
|
6
|
+
* SubDomain Translation
|
7
|
+
*/
|
8
|
+
export namespace Translation {
|
9
|
+
/**
|
10
|
+
* @description Service Entity
|
11
|
+
*/
|
12
|
+
export namespace Entity {
|
13
|
+
export interface Namespace
|
14
|
+
extends Utils.Entity.General.ICreatable,
|
15
|
+
Utils.Entity.General.IHasSearchMeta {
|
16
|
+
_id: Utils.Common.ID;
|
17
|
+
project: Utils.Common.ID; // Project._id
|
18
|
+
name: string;
|
19
|
+
description: string;
|
20
|
+
settings: {
|
21
|
+
can_delete_translation_items: boolean;
|
22
|
+
};
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|