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,101 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Api {
|
6
|
+
export namespace Taxonomies {
|
7
|
+
/**
|
8
|
+
* --------------------------------------------------------------------------
|
9
|
+
* Create
|
10
|
+
* --------------------------------------------------------------------------
|
11
|
+
* @link https://gateway.com/cm/api/taxonomy
|
12
|
+
* @fires TaxonomyService.create
|
13
|
+
* @param {Levelup.CMS.V1.Api.Taxonomies.Create.Request} body
|
14
|
+
* @returns {Levelup.CMS.V1.Api.Taxonomies.Create.Response}
|
15
|
+
* @method POST
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
export namespace Create {
|
19
|
+
export type Request =
|
20
|
+
Utils.Api.Request.BuildCreateRequest<Entity.Taxonomy>;
|
21
|
+
export type Response =
|
22
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Taxonomy>;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* --------------------------------------------------------------------------
|
26
|
+
* Update
|
27
|
+
* --------------------------------------------------------------------------
|
28
|
+
* @link http://gateway.com/cm/api/taxonomy/:id
|
29
|
+
* @fires TaxonomyService.update
|
30
|
+
* @param {Levelup.CMS.V1.Api.Taxonomies.Update.Request} body
|
31
|
+
* @returns {Levelup.CMS.V1.Api.Taxonomies.Update.Response}
|
32
|
+
* @method PUT
|
33
|
+
*
|
34
|
+
*/
|
35
|
+
export namespace Update {
|
36
|
+
export type Request =
|
37
|
+
Utils.Api.Request.BuildUpdateRequest<Entity.Taxonomy>;
|
38
|
+
export type Response =
|
39
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Taxonomy>;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* --------------------------------------------------------------------------
|
44
|
+
* Delete
|
45
|
+
* --------------------------------------------------------------------------
|
46
|
+
* @link http://gateway.com/cm/api/taxonomy/:id
|
47
|
+
* @fires TaxonomyService.delete
|
48
|
+
* @param {Levelup.CMS.V1.Api.Taxonomies.Delete.Request} query
|
49
|
+
* @returns {Levelup.CMS.V1.Api.Taxonomies.Delete.Response}
|
50
|
+
* @method DELETE
|
51
|
+
*
|
52
|
+
*/
|
53
|
+
export namespace Delete {
|
54
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
55
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
56
|
+
}
|
57
|
+
|
58
|
+
/**
|
59
|
+
* --------------------------------------------------------------------------
|
60
|
+
* One
|
61
|
+
* --------------------------------------------------------------------------
|
62
|
+
* @link http://gateway.com/cm/api/taxonomy/:id
|
63
|
+
* @fires TaxonomyService.getById
|
64
|
+
* @link http://gateway.com/cm/api/taxonomy/by-slug/:id
|
65
|
+
* @fires TaxonomyService.getBySlug
|
66
|
+
* @param {Levelup.CMS.V1.Api.Taxonomies.GetOne.Request} query
|
67
|
+
* @returns {Levelup.CMS.V1.Api.Taxonomies.GetOne.Response}
|
68
|
+
* @method PUT
|
69
|
+
*
|
70
|
+
*/
|
71
|
+
export namespace GetOne {
|
72
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
73
|
+
export type Response =
|
74
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Taxonomy>;
|
75
|
+
}
|
76
|
+
|
77
|
+
/**
|
78
|
+
* --------------------------------------------------------------------------
|
79
|
+
* List
|
80
|
+
* --------------------------------------------------------------------------
|
81
|
+
* @link
|
82
|
+
* @fires TaxonomyService.List
|
83
|
+
* @param {Levelup.CMS.V1.Api.Taxonomies.List.Request} query
|
84
|
+
* @returns {Levelup.CMS.V1.Api.Taxonomies.List.Response}
|
85
|
+
* @method GET
|
86
|
+
*
|
87
|
+
*/
|
88
|
+
export namespace List {
|
89
|
+
type Scope = "listing" | "ids" | "trackings";
|
90
|
+
|
91
|
+
export type Request =
|
92
|
+
Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Taxonomy>;
|
93
|
+
export type Response =
|
94
|
+
Utils.Api.Response.BuildListResponse<Entity.Taxonomy>;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Api {
|
6
|
+
export namespace Terms {
|
7
|
+
/**
|
8
|
+
* --------------------------------------------------------------------------
|
9
|
+
* Create
|
10
|
+
* --------------------------------------------------------------------------
|
11
|
+
* @link https://gateway.com/cm/api/tags
|
12
|
+
* @fires TagsService.create
|
13
|
+
* @param {Levelup.CMS.V1.Api.Terms.Create.Request} body
|
14
|
+
* @returns {Levelup.CMS.V1.Api.Terms.Create.Response}
|
15
|
+
* @method POST
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
export namespace Create {
|
19
|
+
export type Request =
|
20
|
+
Utils.Api.Request.BuildCreateRequest<Entity.Term>;
|
21
|
+
export type Response =
|
22
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Term>;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* --------------------------------------------------------------------------
|
26
|
+
* Update
|
27
|
+
* --------------------------------------------------------------------------
|
28
|
+
* @link http://gateway.com/cm/api/tags/:id
|
29
|
+
* @fires TagsService.update
|
30
|
+
* @param {Levelup.CMS.V1.Api.Terms.Update.Request} body
|
31
|
+
* @returns {Levelup.CMS.V1.Api.Terms.Update.Response}
|
32
|
+
* @method PUT
|
33
|
+
*
|
34
|
+
*/
|
35
|
+
export namespace Update {
|
36
|
+
export type Request =
|
37
|
+
Utils.Api.Request.BuildUpdateRequest<Entity.Term>;
|
38
|
+
export type Response =
|
39
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Term>;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* --------------------------------------------------------------------------
|
44
|
+
* Delete
|
45
|
+
* --------------------------------------------------------------------------
|
46
|
+
* @link http://gateway.com/cm/api/tags/:id
|
47
|
+
* @fires TagsService.delete
|
48
|
+
* @param {Levelup.CMS.V1.Api.Terms.Delete.Request} query
|
49
|
+
* @returns {Levelup.CMS.V1.Api.Terms.Delete.Response}
|
50
|
+
* @method DELETE
|
51
|
+
*
|
52
|
+
*/
|
53
|
+
export namespace Delete {
|
54
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
55
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
56
|
+
}
|
57
|
+
|
58
|
+
/**
|
59
|
+
* --------------------------------------------------------------------------
|
60
|
+
* One
|
61
|
+
* --------------------------------------------------------------------------
|
62
|
+
* @link http://gateway.com/cm/api/tags/:id
|
63
|
+
* @fires TagsService.getById
|
64
|
+
* @link http://gateway.com/cm/api/tags/by-slug/:id
|
65
|
+
* @fires TagsService.getBySlug
|
66
|
+
* @param {Levelup.CMS.V1.Api.Terms.GetOne.Request} query
|
67
|
+
* @returns {Levelup.CMS.V1.Api.Terms.GetOne.Response}
|
68
|
+
* @method PUT
|
69
|
+
*
|
70
|
+
*/
|
71
|
+
export namespace GetOne {
|
72
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
73
|
+
export type Response =
|
74
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Term>;
|
75
|
+
}
|
76
|
+
|
77
|
+
/**
|
78
|
+
* --------------------------------------------------------------------------
|
79
|
+
* List
|
80
|
+
* --------------------------------------------------------------------------
|
81
|
+
* @link
|
82
|
+
* @fires TagsService.List
|
83
|
+
* @param {Levelup.CMS.V1.Api.Terms.List.Request} query
|
84
|
+
* @returns {Levelup.CMS.V1.Api.Terms.List.Response}
|
85
|
+
* @method GET
|
86
|
+
*
|
87
|
+
*/
|
88
|
+
export namespace List {
|
89
|
+
type Scope = "listing" | "ids" | "trackings";
|
90
|
+
|
91
|
+
export type Request =
|
92
|
+
Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Term>;
|
93
|
+
export type Response =
|
94
|
+
Utils.Api.Response.BuildListResponse<Entity.Term>;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
@@ -0,0 +1,195 @@
|
|
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 Items {
|
11
|
+
/* -------------------------------------------------------------------------- */
|
12
|
+
/* InsertI18MissingKey */
|
13
|
+
/* -------------------------------------------------------------------------- */
|
14
|
+
export namespace InsertI18MissingKey {
|
15
|
+
export type Request = Utils.Api.Request.Build<
|
16
|
+
Partial<{
|
17
|
+
project: string;
|
18
|
+
namespace: string;
|
19
|
+
key: string;
|
20
|
+
languages: Entity.TLanguageCode[];
|
21
|
+
default_language: Entity.TLanguageCode;
|
22
|
+
}>
|
23
|
+
>;
|
24
|
+
export type Response =
|
25
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Item>;
|
26
|
+
}
|
27
|
+
|
28
|
+
/* -------------------------------------------------------------------------- */
|
29
|
+
/* GetTranslationObject */
|
30
|
+
/* -------------------------------------------------------------------------- */
|
31
|
+
export namespace GetTranslationObject {
|
32
|
+
export type Request = Utils.Api.Request.Build<
|
33
|
+
Partial<{
|
34
|
+
project_name: string;
|
35
|
+
namespace_name: string;
|
36
|
+
approved_only: boolean;
|
37
|
+
language: Entity.TLanguageCode;
|
38
|
+
}>
|
39
|
+
>;
|
40
|
+
export type Response =
|
41
|
+
Utils.Api.Response.BuildSingleItemResponse<{
|
42
|
+
[key: string]: string;
|
43
|
+
}>;
|
44
|
+
}
|
45
|
+
|
46
|
+
/**
|
47
|
+
* --------------------------------------------------------------------------
|
48
|
+
* Create
|
49
|
+
* --------------------------------------------------------------------------
|
50
|
+
* @link
|
51
|
+
* @fires ItemsService.Create
|
52
|
+
* @param {Levelup.CMS.V1.Translation.Api.Items.Create.Request} query
|
53
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Items.Create.Response}
|
54
|
+
* @method POST
|
55
|
+
*
|
56
|
+
*/
|
57
|
+
export namespace Create {
|
58
|
+
export type Request = Utils.Api.Request.BuildCreateRequest<
|
59
|
+
Entity.Item & {
|
60
|
+
translation_updates: {
|
61
|
+
[Lang in Entity.TLanguageCode]?: {
|
62
|
+
modified: boolean;
|
63
|
+
approvement_modified: boolean;
|
64
|
+
value: string;
|
65
|
+
approved: boolean | null;
|
66
|
+
};
|
67
|
+
};
|
68
|
+
comments: string;
|
69
|
+
}
|
70
|
+
>;
|
71
|
+
export type Response =
|
72
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Item>;
|
73
|
+
}
|
74
|
+
|
75
|
+
/**
|
76
|
+
* --------------------------------------------------------------------------
|
77
|
+
* Update
|
78
|
+
* --------------------------------------------------------------------------
|
79
|
+
* @link
|
80
|
+
* @fires ItemsService.Update
|
81
|
+
* @param {Levelup.CMS.V1.Translation.Api.Items.Update.Request} query
|
82
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Items.Update.Response}
|
83
|
+
* @method PUT
|
84
|
+
*
|
85
|
+
*/
|
86
|
+
export namespace Update {
|
87
|
+
export type Request = Utils.Api.Request.BuildUpdateRequest<
|
88
|
+
Entity.Item & {
|
89
|
+
translation_updates: {
|
90
|
+
[Lang in Entity.TLanguageCode]?: {
|
91
|
+
modified: boolean;
|
92
|
+
approvement_modified: boolean;
|
93
|
+
value: string;
|
94
|
+
approved: boolean | null;
|
95
|
+
};
|
96
|
+
};
|
97
|
+
auto_translated: boolean;
|
98
|
+
comments: string;
|
99
|
+
}
|
100
|
+
>;
|
101
|
+
export type Response =
|
102
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Item>;
|
103
|
+
}
|
104
|
+
|
105
|
+
/**
|
106
|
+
* --------------------------------------------------------------------------
|
107
|
+
* Delete
|
108
|
+
* --------------------------------------------------------------------------
|
109
|
+
* @link
|
110
|
+
* @fires ItemsService.Delete
|
111
|
+
* @param {Levelup.CMS.V1.Translation.Api.Items.Delete.Request} query
|
112
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Items.Delete.Response}
|
113
|
+
* @method DELETE
|
114
|
+
*
|
115
|
+
*/
|
116
|
+
export namespace Delete {
|
117
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
118
|
+
}
|
119
|
+
|
120
|
+
/**
|
121
|
+
* --------------------------------------------------------------------------
|
122
|
+
* BulkDelete
|
123
|
+
* --------------------------------------------------------------------------
|
124
|
+
* @link
|
125
|
+
* @fires ItemsService.BulkDelete
|
126
|
+
* @param {Levelup.CMS.V1.Translation.Api.Items.BulkDelete.Request} query
|
127
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Items.BulkDelete.Response}
|
128
|
+
* @method DELETE
|
129
|
+
*
|
130
|
+
*/
|
131
|
+
export namespace BulkDelete {
|
132
|
+
export type Request = Utils.Api.Request.Build<{
|
133
|
+
data: {
|
134
|
+
id?: string[];
|
135
|
+
tracking_id?: string[];
|
136
|
+
};
|
137
|
+
}>;
|
138
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
139
|
+
}
|
140
|
+
|
141
|
+
/**
|
142
|
+
* --------------------------------------------------------------------------
|
143
|
+
* GetOne
|
144
|
+
* --------------------------------------------------------------------------
|
145
|
+
* @link
|
146
|
+
* @fires ItemsService.GetOne
|
147
|
+
* @param {Levelup.CMS.V1.Translation.Api.Items.GetOne.Request} query
|
148
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Items.GetOne.Response}
|
149
|
+
* @method GET
|
150
|
+
*
|
151
|
+
*/
|
152
|
+
export namespace GetOne {
|
153
|
+
type Scope = "";
|
154
|
+
export type Request = Utils.Api.Request.Build<
|
155
|
+
Record<string, unknown>
|
156
|
+
>;
|
157
|
+
export type Response =
|
158
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Item>;
|
159
|
+
}
|
160
|
+
|
161
|
+
/**
|
162
|
+
* --------------------------------------------------------------------------
|
163
|
+
* List
|
164
|
+
* --------------------------------------------------------------------------
|
165
|
+
* @link
|
166
|
+
* @fires ItemsService.List
|
167
|
+
* @param {Levelup.CMS.V1.Translation.Api.Items.List.Request} query
|
168
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Items.List.Response}
|
169
|
+
* @method GET
|
170
|
+
*
|
171
|
+
*/
|
172
|
+
export namespace List {
|
173
|
+
type Scope = "listing" | "ids" | "trackings";
|
174
|
+
|
175
|
+
export type Request =
|
176
|
+
Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Item> & {
|
177
|
+
updated_by?: string;
|
178
|
+
created_by?: string;
|
179
|
+
scope?: Scope;
|
180
|
+
filters?: {
|
181
|
+
/**
|
182
|
+
* Here will be the custom filters
|
183
|
+
*/
|
184
|
+
};
|
185
|
+
};
|
186
|
+
export type Response =
|
187
|
+
Utils.Api.Response.BuildListResponse<Entity.Item>;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
@@ -0,0 +1,135 @@
|
|
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 Namespaces {
|
11
|
+
/**
|
12
|
+
* --------------------------------------------------------------------------
|
13
|
+
* Create
|
14
|
+
* --------------------------------------------------------------------------
|
15
|
+
* @link
|
16
|
+
* @fires NamespacesService.Create
|
17
|
+
* @param {Levelup.CMS.V1.Translation.Api.Namespaces.Create.Request} query
|
18
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Namespaces.Create.Response}
|
19
|
+
* @method POST
|
20
|
+
*
|
21
|
+
*/
|
22
|
+
export namespace Create {
|
23
|
+
export type Request =
|
24
|
+
Utils.Api.Request.BuildCreateRequest<Entity.Namespace>;
|
25
|
+
export type Response =
|
26
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Namespace>;
|
27
|
+
}
|
28
|
+
|
29
|
+
/**
|
30
|
+
* --------------------------------------------------------------------------
|
31
|
+
* Update
|
32
|
+
* --------------------------------------------------------------------------
|
33
|
+
* @link
|
34
|
+
* @fires NamespacesService.Update
|
35
|
+
* @param {Levelup.CMS.V1.Translation.Api.Namespaces.Update.Request} query
|
36
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Namespaces.Update.Response}
|
37
|
+
* @method PUT
|
38
|
+
*
|
39
|
+
*/
|
40
|
+
export namespace Update {
|
41
|
+
export type Request =
|
42
|
+
Utils.Api.Request.BuildUpdateRequest<Entity.Namespace>;
|
43
|
+
export type Response =
|
44
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Namespace>;
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* --------------------------------------------------------------------------
|
49
|
+
* Delete
|
50
|
+
* --------------------------------------------------------------------------
|
51
|
+
* @link
|
52
|
+
* @fires NamespacesService.Delete
|
53
|
+
* @param {Levelup.CMS.V1.Translation.Api.Namespaces.Delete.Request} query
|
54
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Namespaces.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 NamespacesService.BulkDelete
|
68
|
+
* @param {Levelup.CMS.V1.Translation.Api.Namespaces.BulkDelete.Request} query
|
69
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Namespaces.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 NamespacesService.GetOne
|
89
|
+
* @param {Levelup.CMS.V1.Translation.Api.Namespaces.GetOne.Request} query
|
90
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Namespaces.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.Namespace>;
|
101
|
+
}
|
102
|
+
|
103
|
+
/**
|
104
|
+
* --------------------------------------------------------------------------
|
105
|
+
* List
|
106
|
+
* --------------------------------------------------------------------------
|
107
|
+
* @link
|
108
|
+
* @fires NamespacesService.List
|
109
|
+
* @param {Levelup.CMS.V1.Translation.Api.Namespaces.List.Request} query
|
110
|
+
* @returns {Levelup.CMS.V1.Translation.Api.Namespaces.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.Namespace> & {
|
119
|
+
scope?: Scope;
|
120
|
+
filters?: {
|
121
|
+
/**
|
122
|
+
* Here will be the custom filters
|
123
|
+
*/
|
124
|
+
};
|
125
|
+
};
|
126
|
+
export type Response =
|
127
|
+
Utils.Api.Response.BuildListResponse<Entity.Namespace>;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|