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 @@
|
|
1
|
+
{"version":3,"file":"service-container.d.ts","sourceRoot":"","sources":["../../../src/containers/auth/service-container.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,sBAAsB,MAAM,oCAAoC,CAAC;AACxE,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OAAO,WAAW,MAAM,wBAAwB,CAAC;AAEjD;;GAEG;AACH,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAChC,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,KAAK,WAAW,GACd,MAAM,GACN,SAAS,GACT,OAAO,GACP,aAAa,GACb,mBAAmB,GACnB,OAAO,CAAC;AAEV,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,oBAAoB,CAAC,WAAW,CAAC;gBAErE,GAAG,EAAE,GAAG,CAAC,IAAI;IAIzB,IAAI,IAAI,IAEsB,UAAU,CACvC;IAED,IAAI,KAAK,IAEsB,WAAW,CACzC;IAED,IAAI,OAAO,IAEsB,aAAa,CAC7C;IAED,IAAI,WAAW,IAEsB,iBAAiB,CACrD;IAED,IAAI,KAAK,IAEsB,WAAW,CACzC;IAED,IAAI,iBAAiB,IAEsB,sBAAsB,CAChE;CACF"}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const auth_client_1 = __importDefault(require("./clients/auth.client"));
|
7
|
+
const base_service_container_1 = __importDefault(require("../../base.service-container"));
|
8
|
+
const permissions_client_1 = __importDefault(require("./clients/permissions.client"));
|
9
|
+
const permission_groups_client_1 = __importDefault(require("./clients/permission-groups.client"));
|
10
|
+
const roles_client_1 = __importDefault(require("./clients/roles.client"));
|
11
|
+
const users_client_1 = __importDefault(require("./clients/users.client"));
|
12
|
+
const api_keys_client_1 = __importDefault(require("./clients/api-keys.client"));
|
13
|
+
class AuthServiceContainer extends base_service_container_1.default {
|
14
|
+
constructor(sdk) {
|
15
|
+
super(sdk, '/api/v1/auth');
|
16
|
+
}
|
17
|
+
get auth() {
|
18
|
+
if (!this.clients.auth)
|
19
|
+
this.clients.auth = new auth_client_1.default(this);
|
20
|
+
return this.clients.auth;
|
21
|
+
}
|
22
|
+
get users() {
|
23
|
+
if (!this.clients.users)
|
24
|
+
this.clients.users = new users_client_1.default(this);
|
25
|
+
return this.clients.users;
|
26
|
+
}
|
27
|
+
get apiKeys() {
|
28
|
+
if (!this.clients.apiKeys)
|
29
|
+
this.clients.apiKeys = new api_keys_client_1.default(this);
|
30
|
+
return this.clients.apiKeys;
|
31
|
+
}
|
32
|
+
get permissions() {
|
33
|
+
if (!this.clients.permissions)
|
34
|
+
this.clients.permissions = new permissions_client_1.default(this);
|
35
|
+
return this.clients.permissions;
|
36
|
+
}
|
37
|
+
get roles() {
|
38
|
+
if (!this.clients.roles)
|
39
|
+
this.clients.roles = new roles_client_1.default(this);
|
40
|
+
return this.clients.roles;
|
41
|
+
}
|
42
|
+
get permissionsGroups() {
|
43
|
+
if (!this.clients.permissionsGroups)
|
44
|
+
this.clients.permissionsGroups = new permission_groups_client_1.default(this);
|
45
|
+
return this.clients.permissionsGroups;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
exports.default = AuthServiceContainer;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import BaseClient from '../../../base.client';
|
2
|
+
import SDK = Levelup.CMS.V1.SDK;
|
3
|
+
import ApiAlias = Levelup.CMS.V1.Content.Api.ArticleTypes;
|
4
|
+
export default class ArticleTypesClient extends BaseClient {
|
5
|
+
constructor(container: SDK.IServiceContainer);
|
6
|
+
create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
|
7
|
+
update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
|
8
|
+
delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
9
|
+
restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
10
|
+
list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
|
11
|
+
getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
12
|
+
getByTrackingId(tracking_id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
13
|
+
getByName(name: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=article-types.client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"article-types.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/content/clients/article-types.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;AAG1D,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,UAAU;gBAG5C,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOrI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOtG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOvG,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAOpH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzI,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAO1J,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CAMpJ"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const base_client_1 = __importDefault(require("../../../base.client"));
|
7
|
+
class ArticleTypesClient extends base_client_1.default {
|
8
|
+
constructor(container) {
|
9
|
+
super(container, '/article-types');
|
10
|
+
}
|
11
|
+
// create
|
12
|
+
async create(data, config) {
|
13
|
+
return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
|
14
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
15
|
+
});
|
16
|
+
}
|
17
|
+
// update
|
18
|
+
async update(id, data, config) {
|
19
|
+
return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
|
20
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
21
|
+
});
|
22
|
+
}
|
23
|
+
// delete
|
24
|
+
async delete(id, config) {
|
25
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
|
26
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
27
|
+
});
|
28
|
+
}
|
29
|
+
// restore
|
30
|
+
async restore(id, config) {
|
31
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
|
32
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
33
|
+
});
|
34
|
+
}
|
35
|
+
// list
|
36
|
+
async list(query, config) {
|
37
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
|
38
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
39
|
+
});
|
40
|
+
}
|
41
|
+
// getById
|
42
|
+
async getById(id, params, config) {
|
43
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
|
44
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
45
|
+
});
|
46
|
+
}
|
47
|
+
// getByTrackingId
|
48
|
+
async getByTrackingId(tracking_id, params, config) {
|
49
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/by-tracking-id/:tracking_id", { tracking_id }), params, {
|
50
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
51
|
+
});
|
52
|
+
}
|
53
|
+
// getByName
|
54
|
+
async getByName(name, params, config) {
|
55
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(`/by-name/${name}`), params, {
|
56
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
57
|
+
});
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.default = ArticleTypesClient;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import BaseClient from '../../../base.client';
|
2
|
+
import SDK = Levelup.CMS.V1.SDK;
|
3
|
+
import ApiAlias = Levelup.CMS.V1.Content.Api.Articles;
|
4
|
+
export default class ArticlesClient extends BaseClient {
|
5
|
+
constructor(container: SDK.IServiceContainer);
|
6
|
+
create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
|
7
|
+
update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
|
8
|
+
delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
9
|
+
restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
10
|
+
list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
|
11
|
+
getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
12
|
+
getByTrackingId(tracking_id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
13
|
+
getByName(name: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=articles.client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file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AC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAOpH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzI,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAO1J,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CAMpJ"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const base_client_1 = __importDefault(require("../../../base.client"));
|
7
|
+
class ArticlesClient extends base_client_1.default {
|
8
|
+
constructor(container) {
|
9
|
+
super(container, '/articles');
|
10
|
+
}
|
11
|
+
// create
|
12
|
+
async create(data, config) {
|
13
|
+
return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
|
14
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
15
|
+
});
|
16
|
+
}
|
17
|
+
// update
|
18
|
+
async update(id, data, config) {
|
19
|
+
return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
|
20
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
21
|
+
});
|
22
|
+
}
|
23
|
+
// delete
|
24
|
+
async delete(id, config) {
|
25
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
|
26
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
27
|
+
});
|
28
|
+
}
|
29
|
+
// restore
|
30
|
+
async restore(id, config) {
|
31
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
|
32
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
33
|
+
});
|
34
|
+
}
|
35
|
+
// list
|
36
|
+
async list(query, config) {
|
37
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
|
38
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
39
|
+
});
|
40
|
+
}
|
41
|
+
// getById
|
42
|
+
async getById(id, params, config) {
|
43
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
|
44
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
45
|
+
});
|
46
|
+
}
|
47
|
+
// getByTrackingId
|
48
|
+
async getByTrackingId(tracking_id, params, config) {
|
49
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/by-tracking-id/:tracking_id", { tracking_id }), params, {
|
50
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
51
|
+
});
|
52
|
+
}
|
53
|
+
// getByName
|
54
|
+
async getByName(name, params, config) {
|
55
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(`/by-name/${name}`), params, {
|
56
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
57
|
+
});
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.default = ArticlesClient;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import BaseClient from '../../../base.client';
|
2
|
+
import SDK = Levelup.CMS.V1.SDK;
|
3
|
+
import ApiAlias = Levelup.CMS.V1.Content.Api.Comments;
|
4
|
+
export default class CommentsClient extends BaseClient {
|
5
|
+
constructor(container: SDK.IServiceContainer);
|
6
|
+
create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
|
7
|
+
update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
|
8
|
+
delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
9
|
+
restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
10
|
+
list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
|
11
|
+
getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
12
|
+
getByTrackingId(tracking_id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
13
|
+
getByName(name: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=comments.client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"comments.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/content/clients/comments.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;AA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C,CAAC;IAOzI,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAO1J,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CAMpJ"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const base_client_1 = __importDefault(require("../../../base.client"));
|
7
|
+
class CommentsClient extends base_client_1.default {
|
8
|
+
constructor(container) {
|
9
|
+
super(container, '/comments');
|
10
|
+
}
|
11
|
+
// create
|
12
|
+
async create(data, config) {
|
13
|
+
return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
|
14
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
15
|
+
});
|
16
|
+
}
|
17
|
+
// update
|
18
|
+
async update(id, data, config) {
|
19
|
+
return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
|
20
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
21
|
+
});
|
22
|
+
}
|
23
|
+
// delete
|
24
|
+
async delete(id, config) {
|
25
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
|
26
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
27
|
+
});
|
28
|
+
}
|
29
|
+
// restore
|
30
|
+
async restore(id, config) {
|
31
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
|
32
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
33
|
+
});
|
34
|
+
}
|
35
|
+
// list
|
36
|
+
async list(query, config) {
|
37
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
|
38
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
39
|
+
});
|
40
|
+
}
|
41
|
+
// getById
|
42
|
+
async getById(id, params, config) {
|
43
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
|
44
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
45
|
+
});
|
46
|
+
}
|
47
|
+
// getByTrackingId
|
48
|
+
async getByTrackingId(tracking_id, params, config) {
|
49
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/by-tracking-id/:tracking_id", { tracking_id }), params, {
|
50
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
51
|
+
});
|
52
|
+
}
|
53
|
+
// getByName
|
54
|
+
async getByName(name, params, config) {
|
55
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(`/by-name/${name}`), params, {
|
56
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
57
|
+
});
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.default = CommentsClient;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import BaseClient from '../../../base.client';
|
2
|
+
import SDK = Levelup.CMS.V1.SDK;
|
3
|
+
import ApiAlias = Levelup.CMS.V1.Content.Api.Reviews;
|
4
|
+
export default class ReviewsClient extends BaseClient {
|
5
|
+
constructor(container: SDK.IServiceContainer);
|
6
|
+
create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
|
7
|
+
update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
|
8
|
+
delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
9
|
+
restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
10
|
+
list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
|
11
|
+
getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
12
|
+
getByTrackingId(tracking_id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
13
|
+
getByName(name: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=reviews.client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"reviews.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/content/clients/reviews.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;AAGrD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;gBAGvC,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IA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C,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CAMpJ"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const base_client_1 = __importDefault(require("../../../base.client"));
|
7
|
+
class ReviewsClient extends base_client_1.default {
|
8
|
+
constructor(container) {
|
9
|
+
super(container, '/reviews');
|
10
|
+
}
|
11
|
+
// create
|
12
|
+
async create(data, config) {
|
13
|
+
return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
|
14
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
15
|
+
});
|
16
|
+
}
|
17
|
+
// update
|
18
|
+
async update(id, data, config) {
|
19
|
+
return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
|
20
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
21
|
+
});
|
22
|
+
}
|
23
|
+
// delete
|
24
|
+
async delete(id, config) {
|
25
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
|
26
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
27
|
+
});
|
28
|
+
}
|
29
|
+
// restore
|
30
|
+
async restore(id, config) {
|
31
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
|
32
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
33
|
+
});
|
34
|
+
}
|
35
|
+
// list
|
36
|
+
async list(query, config) {
|
37
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
|
38
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
39
|
+
});
|
40
|
+
}
|
41
|
+
// getById
|
42
|
+
async getById(id, params, config) {
|
43
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
|
44
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
45
|
+
});
|
46
|
+
}
|
47
|
+
// getByTrackingId
|
48
|
+
async getByTrackingId(tracking_id, params, config) {
|
49
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/by-tracking-id/:tracking_id", { tracking_id }), params, {
|
50
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
51
|
+
});
|
52
|
+
}
|
53
|
+
// getByName
|
54
|
+
async getByName(name, params, config) {
|
55
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(`/by-name/${name}`), params, {
|
56
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
57
|
+
});
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.default = ReviewsClient;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import BaseClient from '../../../base.client';
|
2
|
+
import SDK = Levelup.CMS.V1.SDK;
|
3
|
+
import ApiAlias = Levelup.CMS.V1.Content.Api.Taxonomies;
|
4
|
+
export default class TaxonomiesClient extends BaseClient {
|
5
|
+
constructor(container: SDK.IServiceContainer);
|
6
|
+
create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
|
7
|
+
update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
|
8
|
+
delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
9
|
+
restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
10
|
+
list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
|
11
|
+
getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
12
|
+
getByTrackingId(tracking_id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
13
|
+
getByName(name: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=taxonomies.client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"taxonomies.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/content/clients/taxonomies.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;AAGxD,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,UAAU;gBAG1C,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOrI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CA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
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const base_client_1 = __importDefault(require("../../../base.client"));
|
7
|
+
class TaxonomiesClient extends base_client_1.default {
|
8
|
+
constructor(container) {
|
9
|
+
super(container, '/taxonomies');
|
10
|
+
}
|
11
|
+
// create
|
12
|
+
async create(data, config) {
|
13
|
+
return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
|
14
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
15
|
+
});
|
16
|
+
}
|
17
|
+
// update
|
18
|
+
async update(id, data, config) {
|
19
|
+
return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
|
20
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
21
|
+
});
|
22
|
+
}
|
23
|
+
// delete
|
24
|
+
async delete(id, config) {
|
25
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
|
26
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
27
|
+
});
|
28
|
+
}
|
29
|
+
// restore
|
30
|
+
async restore(id, config) {
|
31
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
|
32
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
33
|
+
});
|
34
|
+
}
|
35
|
+
// list
|
36
|
+
async list(query, config) {
|
37
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
|
38
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
39
|
+
});
|
40
|
+
}
|
41
|
+
// getById
|
42
|
+
async getById(id, params, config) {
|
43
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
|
44
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
45
|
+
});
|
46
|
+
}
|
47
|
+
// getByTrackingId
|
48
|
+
async getByTrackingId(tracking_id, params, config) {
|
49
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/by-tracking-id/:tracking_id", { tracking_id }), params, {
|
50
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
51
|
+
});
|
52
|
+
}
|
53
|
+
// getByName
|
54
|
+
async getByName(name, params, config) {
|
55
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(`/by-name/${name}`), params, {
|
56
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
57
|
+
});
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.default = TaxonomiesClient;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import BaseClient from '../../../base.client';
|
2
|
+
import SDK = Levelup.CMS.V1.SDK;
|
3
|
+
import ApiAlias = Levelup.CMS.V1.Content.Api.Terms;
|
4
|
+
export default class TermsClient extends BaseClient {
|
5
|
+
constructor(container: SDK.IServiceContainer);
|
6
|
+
create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
|
7
|
+
update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
|
8
|
+
delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
9
|
+
restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
10
|
+
list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
|
11
|
+
getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
12
|
+
getByTrackingId(tracking_id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
13
|
+
getByName(name: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=terms.client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"terms.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/content/clients/terms.client.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC;AAEhC,OAAO,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;AAGnD,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;gBAGrC,SAAS,EAAE,GAAG,CAAC,iBAAiB;IAKtC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOrI,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOtG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOvG,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAOpH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAOzI,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAO1J,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;CAMpJ"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const base_client_1 = __importDefault(require("../../../base.client"));
|
7
|
+
class TermsClient extends base_client_1.default {
|
8
|
+
constructor(container) {
|
9
|
+
super(container, '/terms');
|
10
|
+
}
|
11
|
+
// create
|
12
|
+
async create(data, config) {
|
13
|
+
return await this.container.sdk.httpClient.post(this.generatePrefix(), data, {
|
14
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
15
|
+
});
|
16
|
+
}
|
17
|
+
// update
|
18
|
+
async update(id, data, config) {
|
19
|
+
return await this.container.sdk.httpClient.put(this.generatePrefix("/:id", { id }), data, {
|
20
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
21
|
+
});
|
22
|
+
}
|
23
|
+
// delete
|
24
|
+
async delete(id, config) {
|
25
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix("/:id", { id }), {}, {
|
26
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
27
|
+
});
|
28
|
+
}
|
29
|
+
// restore
|
30
|
+
async restore(id, config) {
|
31
|
+
return await this.container.sdk.httpClient.delete(this.generatePrefix(`/${id}/restore`), {}, {
|
32
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
33
|
+
});
|
34
|
+
}
|
35
|
+
// list
|
36
|
+
async list(query, config) {
|
37
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(), query, {
|
38
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
39
|
+
});
|
40
|
+
}
|
41
|
+
// getById
|
42
|
+
async getById(id, params, config) {
|
43
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/:id", { id }), params, {
|
44
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
45
|
+
});
|
46
|
+
}
|
47
|
+
// getByTrackingId
|
48
|
+
async getByTrackingId(tracking_id, params, config) {
|
49
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix("/by-tracking-id/:tracking_id", { tracking_id }), params, {
|
50
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
51
|
+
});
|
52
|
+
}
|
53
|
+
// getByName
|
54
|
+
async getByName(name, params, config) {
|
55
|
+
return await this.container.sdk.httpClient.get(this.generatePrefix(`/by-name/${name}`), params, {
|
56
|
+
headers: this.container.sdk.generateHeadersFromRequestConfig(config)
|
57
|
+
});
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.default = TermsClient;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import BaseClient from '../../../base.client';
|
2
|
+
import SDK = Levelup.CMS.V1.SDK;
|
3
|
+
import ApiAlias = Levelup.CMS.V1.Content.Translation.Api.Items;
|
4
|
+
export default class TranslationItemsClient extends BaseClient {
|
5
|
+
constructor(container: SDK.IServiceContainer);
|
6
|
+
create(data: ApiAlias.Create.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Create.Response>>;
|
7
|
+
update(id: string, data: ApiAlias.Update.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Update.Response>>;
|
8
|
+
delete(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
9
|
+
restore(id: string, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.Delete.Response>>;
|
10
|
+
bulkDelete(data: ApiAlias.BulkDelete.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.BulkDelete.Response>>;
|
11
|
+
list(query: ApiAlias.List.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.List.Response>>;
|
12
|
+
getById(id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
13
|
+
getByTrackingId(tracking_id: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
14
|
+
getByName(name: string, params?: ApiAlias.GetOne.Request, config?: SDK.TRequestConfig): Promise<SDK.TResponseDatum<ApiAlias.GetOne.Response>>;
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=translation.items.client.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"translation.items.client.d.ts","sourceRoot":"","sources":["../../../../src/containers/content/clients/translation.items.client.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