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
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Document, Model as MongooseModel } from "mongoose";
|
2
|
+
|
3
|
+
declare global {
|
4
|
+
namespace Levelup {
|
5
|
+
namespace CMS {
|
6
|
+
namespace V1 {
|
7
|
+
namespace Auth {
|
8
|
+
/**
|
9
|
+
* @description service models
|
10
|
+
*/
|
11
|
+
namespace Model {
|
12
|
+
export type ApiKeyDocument = Entity.ApiKey & Document;
|
13
|
+
export type ApiKey = MongooseModel<ApiKeyDocument>;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Document, Model as MongooseModel } from "mongoose";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @description global here is very important because we have imported from another module
|
5
|
+
*/
|
6
|
+
declare global {
|
7
|
+
namespace Levelup {
|
8
|
+
namespace CMS {
|
9
|
+
namespace V1 {
|
10
|
+
namespace Auth {
|
11
|
+
/**
|
12
|
+
* @description Service Model
|
13
|
+
*/
|
14
|
+
export namespace Model {
|
15
|
+
export type FederatedCredentialDocument =
|
16
|
+
Entity.FederatedCredential & Document;
|
17
|
+
export type FederatedCredential =
|
18
|
+
MongooseModel<FederatedCredentialDocument>;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
'generated by levelup';
|
2
|
+
|
3
|
+
export * from "./user.d.ts";
|
4
|
+
export * from "./role.d.ts";
|
5
|
+
export * from "./permission.d.ts";
|
6
|
+
export * from "./permission-group.d.ts";
|
7
|
+
export * from "./api-key.model.d.ts";
|
8
|
+
export * from "./api-key.d.ts";
|
9
|
+
export * from "./federated-credential.d.ts";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { Document, Model as MongooseModel } from "mongoose";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @description global here is very important because we have imported from another module
|
5
|
+
*/
|
6
|
+
declare global {
|
7
|
+
namespace Levelup {
|
8
|
+
namespace CMS {
|
9
|
+
namespace V1 {
|
10
|
+
namespace Auth {
|
11
|
+
/**
|
12
|
+
* @description Service Model
|
13
|
+
*/
|
14
|
+
export namespace Model {
|
15
|
+
export type PermissionGroupDocument = Entity.PermissionGroup &
|
16
|
+
Document;
|
17
|
+
export type PermissionGroup =
|
18
|
+
MongooseModel<PermissionGroupDocument>;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Document, Model as MongooseModel } from "mongoose";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @description global here is very important because we have imported from another module
|
5
|
+
*/
|
6
|
+
declare global {
|
7
|
+
namespace Levelup {
|
8
|
+
namespace CMS {
|
9
|
+
namespace V1 {
|
10
|
+
namespace Auth {
|
11
|
+
/**
|
12
|
+
* @description Service Model
|
13
|
+
*/
|
14
|
+
export namespace Model {
|
15
|
+
export type PermissionDocument = Entity.Permission & Document;
|
16
|
+
export type Permission = MongooseModel<PermissionDocument>;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Document, Model as MongooseModel } from "mongoose";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @description global here is very important because we have imported from another module
|
5
|
+
*/
|
6
|
+
declare global {
|
7
|
+
namespace Levelup {
|
8
|
+
namespace CMS {
|
9
|
+
namespace V1 {
|
10
|
+
namespace Auth {
|
11
|
+
/**
|
12
|
+
* @description Service Model
|
13
|
+
*/
|
14
|
+
export namespace Model {
|
15
|
+
export type RoleDocument = Entity.Role & Document;
|
16
|
+
export type Role = MongooseModel<RoleDocument>;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Document, Model as MongooseModel } from "mongoose";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @description global here is very important because we have imported from another module
|
5
|
+
*/
|
6
|
+
declare global {
|
7
|
+
namespace Levelup {
|
8
|
+
namespace CMS {
|
9
|
+
namespace V1 {
|
10
|
+
namespace Users {
|
11
|
+
/**
|
12
|
+
* @description Service Model
|
13
|
+
*/
|
14
|
+
export namespace Model {
|
15
|
+
export type UserDocument = Entity.User & Document;
|
16
|
+
export type User = MongooseModel<UserDocument>;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,160 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Api {
|
6
|
+
export namespace ArticleTypes {
|
7
|
+
/**
|
8
|
+
* --------------------------------------------------------------------------
|
9
|
+
* Create
|
10
|
+
* --------------------------------------------------------------------------
|
11
|
+
* @link https://gateway.com/cm/api/article-types
|
12
|
+
* @fires TypesService.create
|
13
|
+
* @param {Levelup.CMS.V1.Api.ArticleTypes.Create.Request} body
|
14
|
+
* @returns {Levelup.CMS.V1.Api.ArticleTypes.Create.Response}
|
15
|
+
* @method POST
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
export namespace Create {
|
19
|
+
export type Request = Utils.Api.Request.Build<{
|
20
|
+
data: Partial<Entity.ArticleType>;
|
21
|
+
}>;
|
22
|
+
export type Response =
|
23
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.ArticleType>;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* --------------------------------------------------------------------------
|
27
|
+
* Update
|
28
|
+
* --------------------------------------------------------------------------
|
29
|
+
* @link http://gateway.com/cm/api/article-types/:id
|
30
|
+
* @fires TypesService.update
|
31
|
+
* @param {Levelup.CMS.V1.Api.ArticleTypes.Update.Request} body
|
32
|
+
* @returns {Levelup.CMS.V1.Api.ArticleTypes.Update.Response}
|
33
|
+
* @method PUT
|
34
|
+
*
|
35
|
+
*/
|
36
|
+
export namespace Update {
|
37
|
+
export type Request = Utils.Api.Request.Build<{
|
38
|
+
data: Partial<Entity.ArticleType>;
|
39
|
+
}>;
|
40
|
+
export type Response =
|
41
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.ArticleType>;
|
42
|
+
}
|
43
|
+
|
44
|
+
/**
|
45
|
+
* --------------------------------------------------------------------------
|
46
|
+
* Delete
|
47
|
+
* --------------------------------------------------------------------------
|
48
|
+
* @link http://gateway.com/cm/api/article-types/:id
|
49
|
+
* @fires TypesService.delete
|
50
|
+
* @param {Levelup.CMS.V1.Api.ArticleTypes.Delete.Request} query
|
51
|
+
* @returns {Levelup.CMS.V1.Api.ArticleTypes.Delete.Response}
|
52
|
+
* @method DELETE
|
53
|
+
*
|
54
|
+
*/
|
55
|
+
export namespace Delete {
|
56
|
+
export type Request = Utils.Api.Request.Build<never>;
|
57
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
58
|
+
}
|
59
|
+
|
60
|
+
/**
|
61
|
+
* --------------------------------------------------------------------------
|
62
|
+
* One
|
63
|
+
* --------------------------------------------------------------------------
|
64
|
+
* @link http://gateway.com/cm/api/article-types/:id
|
65
|
+
* @fires TypesService.getById
|
66
|
+
* @link http://gateway.com/cm/api/article-types/by-slug/:id
|
67
|
+
* @fires TypesService.getBySlug
|
68
|
+
* @param {Levelup.CMS.V1.Api.ArticleTypes.GetOne.Request} query
|
69
|
+
* @returns {Levelup.CMS.V1.Api.ArticleTypes.GetOne.Response}
|
70
|
+
* @method PUT
|
71
|
+
*
|
72
|
+
*/
|
73
|
+
export namespace GetOne {
|
74
|
+
export type Request = Utils.Api.Request.Build<never>;
|
75
|
+
export type Response =
|
76
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.ArticleType>;
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* --------------------------------------------------------------------------
|
81
|
+
* List
|
82
|
+
* --------------------------------------------------------------------------
|
83
|
+
* @link
|
84
|
+
* @fires TypesService.List
|
85
|
+
* @param {Levelup.CMS.V1.Api.ArticleTypes.List.Request} query
|
86
|
+
* @returns {Levelup.CMS.V1.Api.ArticleTypes.List.Response}
|
87
|
+
* @method GET
|
88
|
+
*
|
89
|
+
*/
|
90
|
+
export namespace List {
|
91
|
+
type Scope = "listing" | "ids" | "trackings";
|
92
|
+
|
93
|
+
export type Request =
|
94
|
+
Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.ArticleType>;
|
95
|
+
export type Response =
|
96
|
+
Utils.Api.Response.BuildListResponse<Entity.ArticleType>;
|
97
|
+
}
|
98
|
+
|
99
|
+
/**
|
100
|
+
* --------------------------------------------------------------------------
|
101
|
+
* CreateCustomMetaField
|
102
|
+
* --------------------------------------------------------------------------
|
103
|
+
* @link http://gateway.com/cm/api/article-types/:id/custom-meta-fields
|
104
|
+
* @fires TypesService.createCustomMetaField
|
105
|
+
* @param {Levelup.CMS.V1.Api.ArticleTypes.CreateCustomMetaField.Request} body
|
106
|
+
* @returns {Levelup.CMS.V1.Api.ArticleTypes.CreateCustomMetaField.Response}
|
107
|
+
* @method POST
|
108
|
+
*
|
109
|
+
*/
|
110
|
+
export namespace CreateCustomMetaField {
|
111
|
+
export type Request = Utils.Api.Request.Build<{
|
112
|
+
data: Partial<Entity.CustomMetaField>;
|
113
|
+
}>;
|
114
|
+
export type Response =
|
115
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.ArticleType>;
|
116
|
+
}
|
117
|
+
|
118
|
+
/**
|
119
|
+
* --------------------------------------------------------------------------
|
120
|
+
* UpdateCustomMetaField
|
121
|
+
* --------------------------------------------------------------------------
|
122
|
+
* @link http://gateway.com/cm/api/article-types/:id/custom-meta-fields
|
123
|
+
* @fires TypesService.updateCustomMetaField
|
124
|
+
* @param {Levelup.CMS.V1.Api.ArticleTypes.UpdateCustomMetaField.Request} body
|
125
|
+
* @returns {Levelup.CMS.V1.Api.ArticleTypes.UpdateCustomMetaField.Response}
|
126
|
+
* @method PUT
|
127
|
+
*
|
128
|
+
*/
|
129
|
+
export namespace UpdateCustomMetaField {
|
130
|
+
export type Request = Utils.Api.Request.Build<{
|
131
|
+
data: Partial<Entity.CustomMetaField>;
|
132
|
+
}>;
|
133
|
+
export type Response =
|
134
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.ArticleType>;
|
135
|
+
}
|
136
|
+
|
137
|
+
/**
|
138
|
+
* --------------------------------------------------------------------------
|
139
|
+
* DeleteCustomMetaField
|
140
|
+
* --------------------------------------------------------------------------
|
141
|
+
* @link http://gateway.com/cm/api/article-types/:id/custom-meta-fields
|
142
|
+
* @fires TypesService.deleteCustomMetaField
|
143
|
+
* @param {Levelup.CMS.V1.Api.ArticleTypes.DeleteCustomMetaField.Request} query
|
144
|
+
* @returns {Levelup.CMS.V1.Api.ArticleTypes.DeleteCustomMetaField.Response}
|
145
|
+
* @method DELETE
|
146
|
+
*
|
147
|
+
*/
|
148
|
+
export namespace DeleteCustomMetaField {
|
149
|
+
export type Request = Utils.Api.Request.Build<{
|
150
|
+
field_key: string;
|
151
|
+
}>;
|
152
|
+
export type Response =
|
153
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.ArticleType>;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Api {
|
6
|
+
export namespace Articles {
|
7
|
+
/**
|
8
|
+
* --------------------------------------------------------------------------
|
9
|
+
* Create
|
10
|
+
* --------------------------------------------------------------------------
|
11
|
+
* @link https://gateway.com/cm/api/articles
|
12
|
+
* @fires ArticlesService.create
|
13
|
+
* @param {Levelup.CMS.V1.Api.Articles.Create.Request} body
|
14
|
+
* @returns {Levelup.CMS.V1.Api.Articles.Create.Response}
|
15
|
+
* @method POST
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
export namespace Create {
|
19
|
+
export type Request = Utils.Api.Request.Build<{
|
20
|
+
data: Partial<Entity.Article>;
|
21
|
+
}>;
|
22
|
+
export type Response<T extends Entity.Article = Entity.Article> =
|
23
|
+
Utils.Api.Response.BuildSingleItemResponse<T>;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* --------------------------------------------------------------------------
|
27
|
+
* Update
|
28
|
+
* --------------------------------------------------------------------------
|
29
|
+
* @link http://gateway.com/cm/api/articles/:id
|
30
|
+
* @fires ArticlesService.update
|
31
|
+
* @param {Levelup.CMS.V1.Api.Articles.Update.Request} body
|
32
|
+
* @returns {Levelup.CMS.V1.Api.Articles.Update.Response}
|
33
|
+
* @method PUT
|
34
|
+
*
|
35
|
+
*/
|
36
|
+
export namespace Update {
|
37
|
+
export type Request = Utils.Api.Request.Build<{
|
38
|
+
data: Partial<Entity.Article>;
|
39
|
+
}>;
|
40
|
+
export type Response<T extends Entity.Article = Entity.Article> =
|
41
|
+
Utils.Api.Response.BuildSingleItemResponse<T>;
|
42
|
+
}
|
43
|
+
|
44
|
+
/**
|
45
|
+
* --------------------------------------------------------------------------
|
46
|
+
* Delete
|
47
|
+
* --------------------------------------------------------------------------
|
48
|
+
* @link http://gateway.com/cm/api/articles/:id
|
49
|
+
* @fires ArticlesService.delete
|
50
|
+
* @param {Levelup.CMS.V1.Api.Articles.Delete.Request} query
|
51
|
+
* @returns {Levelup.CMS.V1.Api.Articles.Delete.Response}
|
52
|
+
* @method DELETE
|
53
|
+
*
|
54
|
+
*/
|
55
|
+
export namespace Delete {
|
56
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
57
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
58
|
+
}
|
59
|
+
|
60
|
+
/**
|
61
|
+
* --------------------------------------------------------------------------
|
62
|
+
* One
|
63
|
+
* --------------------------------------------------------------------------
|
64
|
+
* @link http://gateway.com/cm/api/articles/:id
|
65
|
+
* @fires ArticlesService.getById
|
66
|
+
* @link http://gateway.com/cm/api/articles/by-slug/:id
|
67
|
+
* @fires ArticlesService.getBySlug
|
68
|
+
* @param {Levelup.CMS.V1.Api.Articles.GetOne.Request} query
|
69
|
+
* @returns {Levelup.CMS.V1.Api.Articles.GetOne.Response}
|
70
|
+
* @method PUT
|
71
|
+
*
|
72
|
+
*/
|
73
|
+
export namespace GetOne {
|
74
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
75
|
+
export type Response<T extends Entity.Article = Entity.Article> =
|
76
|
+
Utils.Api.Response.BuildSingleItemResponse<T>;
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* --------------------------------------------------------------------------
|
81
|
+
* List
|
82
|
+
* --------------------------------------------------------------------------
|
83
|
+
* @link
|
84
|
+
* @fires ArticlesService.List
|
85
|
+
* @param {Levelup.CMS.V1.Api.Articles.List.Request} query
|
86
|
+
* @returns {Levelup.CMS.V1.Api.Articles.List.Response}
|
87
|
+
* @method GET
|
88
|
+
*
|
89
|
+
*/
|
90
|
+
export namespace List {
|
91
|
+
type Scope = "listing" | "ids" | "trackings";
|
92
|
+
|
93
|
+
export type Request =
|
94
|
+
Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<
|
95
|
+
Entity.Article & {
|
96
|
+
tag: any;
|
97
|
+
tag_slug: any;
|
98
|
+
}
|
99
|
+
>;
|
100
|
+
export type Response<T extends Entity.Article = Entity.Article> =
|
101
|
+
Utils.Api.Response.BuildListResponse<T>;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Api {
|
6
|
+
export namespace Comments {
|
7
|
+
/**
|
8
|
+
* --------------------------------------------------------------------------
|
9
|
+
* Create
|
10
|
+
* --------------------------------------------------------------------------
|
11
|
+
* @link https://gateway.com/cm/api/comments
|
12
|
+
* @fires CommentsService.create
|
13
|
+
* @param {Levelup.CMS.V1.Api.Comments.Create.Request} body
|
14
|
+
* @returns {Levelup.CMS.V1.Api.Comments.Create.Response}
|
15
|
+
* @method POST
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
export namespace Create {
|
19
|
+
export type Request = Utils.Api.Request.Build<{
|
20
|
+
data: Partial<Entity.Comment>;
|
21
|
+
}>;
|
22
|
+
export type Response =
|
23
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Comment>;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* --------------------------------------------------------------------------
|
27
|
+
* Update
|
28
|
+
* --------------------------------------------------------------------------
|
29
|
+
* @link http://gateway.com/cm/api/comments/:id
|
30
|
+
* @fires CommentsService.update
|
31
|
+
* @param {Levelup.CMS.V1.Api.Comments.Update.Request} body
|
32
|
+
* @returns {Levelup.CMS.V1.Api.Comments.Update.Response}
|
33
|
+
* @method PUT
|
34
|
+
*
|
35
|
+
*/
|
36
|
+
export namespace Update {
|
37
|
+
export type Request = Utils.Api.Request.Build<{
|
38
|
+
data: Partial<Entity.Comment>;
|
39
|
+
}>;
|
40
|
+
export type Response =
|
41
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Comment>;
|
42
|
+
}
|
43
|
+
|
44
|
+
/**
|
45
|
+
* --------------------------------------------------------------------------
|
46
|
+
* Delete
|
47
|
+
* --------------------------------------------------------------------------
|
48
|
+
* @link http://gateway.com/cm/api/comments/:id
|
49
|
+
* @fires CommentsService.delete
|
50
|
+
* @param {Levelup.CMS.V1.Api.Comments.Delete.Request} query
|
51
|
+
* @returns {Levelup.CMS.V1.Api.Comments.Delete.Response}
|
52
|
+
* @method DELETE
|
53
|
+
*
|
54
|
+
*/
|
55
|
+
export namespace Delete {
|
56
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
57
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
58
|
+
}
|
59
|
+
|
60
|
+
/**
|
61
|
+
* --------------------------------------------------------------------------
|
62
|
+
* One
|
63
|
+
* --------------------------------------------------------------------------
|
64
|
+
* @link http://gateway.com/cm/api/comments/:id
|
65
|
+
* @fires CommentsService.getById
|
66
|
+
* @link http://gateway.com/cm/api/comments/by-slug/:id
|
67
|
+
* @fires CommentsService.getBySlug
|
68
|
+
* @param {Levelup.CMS.V1.Api.Comments.GetOne.Request} query
|
69
|
+
* @returns {Levelup.CMS.V1.Api.Comments.GetOne.Response}
|
70
|
+
* @method PUT
|
71
|
+
*
|
72
|
+
*/
|
73
|
+
export namespace GetOne {
|
74
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
75
|
+
export type Response =
|
76
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Comment>;
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* --------------------------------------------------------------------------
|
81
|
+
* List
|
82
|
+
* --------------------------------------------------------------------------
|
83
|
+
* @link
|
84
|
+
* @fires CommentsService.List
|
85
|
+
* @param {Levelup.CMS.V1.Api.Comments.List.Request} query
|
86
|
+
* @returns {Levelup.CMS.V1.Api.Comments.List.Response}
|
87
|
+
* @method GET
|
88
|
+
*
|
89
|
+
*/
|
90
|
+
export namespace List {
|
91
|
+
type Scope = "listing" | "ids" | "trackings";
|
92
|
+
|
93
|
+
export type Request =
|
94
|
+
Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Comment> & {
|
95
|
+
scope?: Scope;
|
96
|
+
};
|
97
|
+
|
98
|
+
export type Response =
|
99
|
+
Utils.Api.Response.BuildListResponse<Entity.Comment>;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
'generated by levelup';
|
2
|
+
|
3
|
+
export * from "./translation.tools.d.ts";
|
4
|
+
export * from "./translation.project.d.ts";
|
5
|
+
export * from "./translation.namespace.d.ts";
|
6
|
+
export * from "./translation.item.d.ts";
|
7
|
+
export * from "./taxonomy.d.ts";
|
8
|
+
export * from "./term.d.ts";
|
9
|
+
export * from "./review.d.ts";
|
10
|
+
export * from "./comment.d.ts";
|
11
|
+
export * from "./article.d.ts";
|
12
|
+
export * from "./article-type.d.ts";
|
@@ -0,0 +1,105 @@
|
|
1
|
+
declare module Levelup {
|
2
|
+
namespace CMS {
|
3
|
+
namespace V1 {
|
4
|
+
namespace Content {
|
5
|
+
export namespace Api {
|
6
|
+
export namespace Reviews {
|
7
|
+
/**
|
8
|
+
* --------------------------------------------------------------------------
|
9
|
+
* Create
|
10
|
+
* --------------------------------------------------------------------------
|
11
|
+
* @link https://gateway.com/cm/api/reviews
|
12
|
+
* @fires ReviewsService.create
|
13
|
+
* @param {Levelup.CMS.V1.Api.Review.Create.Request} body
|
14
|
+
* @returns {Levelup.CMS.V1.Api.Review.Create.Response}
|
15
|
+
* @method POST
|
16
|
+
*
|
17
|
+
*/
|
18
|
+
export namespace Create {
|
19
|
+
export type Request = Utils.Api.Request.Build<{
|
20
|
+
data: Partial<Entity.Review>;
|
21
|
+
}>;
|
22
|
+
export type Response =
|
23
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Review>;
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* --------------------------------------------------------------------------
|
27
|
+
* Update
|
28
|
+
* --------------------------------------------------------------------------
|
29
|
+
* @link http://gateway.com/cm/api/reviews/:id
|
30
|
+
* @fires ReviewsService.update
|
31
|
+
* @param {Levelup.CMS.V1.Api.Review.Update.Request} body
|
32
|
+
* @returns {Levelup.CMS.V1.Api.Review.Update.Response}
|
33
|
+
* @method PUT
|
34
|
+
*
|
35
|
+
*/
|
36
|
+
export namespace Update {
|
37
|
+
export type Request = Utils.Api.Request.Build<{
|
38
|
+
data: Partial<Entity.Review>;
|
39
|
+
}>;
|
40
|
+
export type Response =
|
41
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Review>;
|
42
|
+
}
|
43
|
+
|
44
|
+
/**
|
45
|
+
* --------------------------------------------------------------------------
|
46
|
+
* Delete
|
47
|
+
* --------------------------------------------------------------------------
|
48
|
+
* @link http://gateway.com/cm/api/reviews/:id
|
49
|
+
* @fires ReviewsService.delete
|
50
|
+
* @param {Levelup.CMS.V1.Api.Review.Delete.Request} query
|
51
|
+
* @returns {Levelup.CMS.V1.Api.Review.Delete.Response}
|
52
|
+
* @method DELETE
|
53
|
+
*
|
54
|
+
*/
|
55
|
+
export namespace Delete {
|
56
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
57
|
+
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
58
|
+
}
|
59
|
+
|
60
|
+
/**
|
61
|
+
* --------------------------------------------------------------------------
|
62
|
+
* One
|
63
|
+
* --------------------------------------------------------------------------
|
64
|
+
* @link http://gateway.com/cm/api/reviews/:id
|
65
|
+
* @fires ReviewsService.getById
|
66
|
+
* @link http://gateway.com/cm/api/reviews/by-slug/:id
|
67
|
+
* @fires ReviewsService.getBySlug
|
68
|
+
* @param {Levelup.CMS.V1.Api.Review.GetOne.Request} query
|
69
|
+
* @returns {Levelup.CMS.V1.Api.Review.GetOne.Response}
|
70
|
+
* @method PUT
|
71
|
+
*
|
72
|
+
*/
|
73
|
+
export namespace GetOne {
|
74
|
+
export type Request = Utils.Api.Request.Build<{}>;
|
75
|
+
export type Response =
|
76
|
+
Utils.Api.Response.BuildSingleItemResponse<Entity.Review>;
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* --------------------------------------------------------------------------
|
81
|
+
* List
|
82
|
+
* --------------------------------------------------------------------------
|
83
|
+
* @link
|
84
|
+
* @fires ReviewsService.List
|
85
|
+
* @param {Levelup.CMS.V1.Api.Review.List.Request} query
|
86
|
+
* @returns {Levelup.CMS.V1.Api.Review.List.Response}
|
87
|
+
* @method GET
|
88
|
+
*
|
89
|
+
*/
|
90
|
+
export namespace List {
|
91
|
+
type Scope = "listing" | "ids" | "trackings";
|
92
|
+
|
93
|
+
export type Request =
|
94
|
+
Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Review> & {
|
95
|
+
scope?: Scope;
|
96
|
+
};
|
97
|
+
export type Response =
|
98
|
+
Utils.Api.Response.BuildListResponse<Entity.Review>;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|