@ominity/api-typescript 1.1.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/funcs/cms/contentCreate.d.ts +11 -0
- package/dist/commonjs/funcs/cms/contentCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/contentCreate.js +110 -0
- package/dist/commonjs/funcs/cms/contentCreate.js.map +1 -0
- package/dist/commonjs/funcs/cms/contentDelete.d.ts +10 -0
- package/dist/commonjs/funcs/cms/contentDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/contentDelete.js +110 -0
- package/dist/commonjs/funcs/cms/contentDelete.js.map +1 -0
- package/dist/commonjs/funcs/cms/contentGet.d.ts +11 -0
- package/dist/commonjs/funcs/cms/contentGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/contentGet.js +110 -0
- package/dist/commonjs/funcs/cms/contentGet.js.map +1 -0
- package/dist/commonjs/funcs/cms/contentList.d.ts +11 -0
- package/dist/commonjs/funcs/cms/contentList.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/contentList.js +117 -0
- package/dist/commonjs/funcs/cms/contentList.js.map +1 -0
- package/dist/commonjs/funcs/cms/contentTypesGet.d.ts +10 -0
- package/dist/commonjs/funcs/cms/contentTypesGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/contentTypesGet.js +114 -0
- package/dist/commonjs/funcs/cms/contentTypesGet.js.map +1 -0
- package/dist/commonjs/funcs/cms/contentTypesList.d.ts +10 -0
- package/dist/commonjs/funcs/cms/contentTypesList.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/contentTypesList.js +121 -0
- package/dist/commonjs/funcs/cms/contentTypesList.js.map +1 -0
- package/dist/commonjs/funcs/cms/contentUpdate.d.ts +11 -0
- package/dist/commonjs/funcs/cms/contentUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/cms/contentUpdate.js +111 -0
- package/dist/commonjs/funcs/cms/contentUpdate.js.map +1 -0
- package/dist/commonjs/funcs/cms/index.d.ts +7 -0
- package/dist/commonjs/funcs/cms/index.d.ts.map +1 -1
- package/dist/commonjs/funcs/cms/index.js +7 -0
- package/dist/commonjs/funcs/cms/index.js.map +1 -1
- package/dist/commonjs/funcs/index.d.ts +1 -0
- package/dist/commonjs/funcs/index.d.ts.map +1 -1
- package/dist/commonjs/funcs/index.js +1 -0
- package/dist/commonjs/funcs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +1 -1
- package/dist/commonjs/models/cms/content-entry.d.ts +14 -0
- package/dist/commonjs/models/cms/content-entry.d.ts.map +1 -0
- package/dist/commonjs/models/cms/content-entry.js +57 -0
- package/dist/commonjs/models/cms/content-entry.js.map +1 -0
- package/dist/commonjs/models/cms/content-type-field.d.ts +27 -0
- package/dist/commonjs/models/cms/content-type-field.d.ts.map +1 -0
- package/dist/commonjs/models/cms/content-type-field.js +65 -0
- package/dist/commonjs/models/cms/content-type-field.js.map +1 -0
- package/dist/commonjs/models/cms/content-type.d.ts +32 -0
- package/dist/commonjs/models/cms/content-type.d.ts.map +1 -0
- package/dist/commonjs/models/cms/content-type.js +78 -0
- package/dist/commonjs/models/cms/content-type.js.map +1 -0
- package/dist/commonjs/models/cms/index.d.ts +3 -0
- package/dist/commonjs/models/cms/index.d.ts.map +1 -1
- package/dist/commonjs/models/cms/index.js +3 -0
- package/dist/commonjs/models/cms/index.js.map +1 -1
- package/dist/commonjs/models/commerce/route.d.ts +2 -2
- package/dist/commonjs/models/commerce/route.d.ts.map +1 -1
- package/dist/commonjs/models/commerce/route.js +2 -2
- package/dist/commonjs/models/commerce/route.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/cms-content-types.d.ts +29 -0
- package/dist/commonjs/models/operations/cms-content-types.d.ts.map +1 -0
- package/dist/commonjs/models/operations/cms-content-types.js +71 -0
- package/dist/commonjs/models/operations/cms-content-types.js.map +1 -0
- package/dist/commonjs/models/operations/cms-content.d.ts +55 -0
- package/dist/commonjs/models/operations/cms-content.d.ts.map +1 -0
- package/dist/commonjs/models/operations/cms-content.js +92 -0
- package/dist/commonjs/models/operations/cms-content.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/cms/content-types.d.ts +7 -0
- package/dist/commonjs/sdk/cms/content-types.d.ts.map +1 -0
- package/dist/commonjs/sdk/cms/content-types.js +20 -0
- package/dist/commonjs/sdk/cms/content-types.js.map +1 -0
- package/dist/commonjs/sdk/cms/content.d.ts +11 -0
- package/dist/commonjs/sdk/cms/content.d.ts.map +1 -0
- package/dist/commonjs/sdk/cms/content.js +32 -0
- package/dist/commonjs/sdk/cms/content.js.map +1 -0
- package/dist/commonjs/sdk/cms/index.d.ts +8 -0
- package/dist/commonjs/sdk/cms/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/cms/index.js +13 -1
- package/dist/commonjs/sdk/cms/index.js.map +1 -1
- package/dist/esm/funcs/cms/contentCreate.d.ts +11 -0
- package/dist/esm/funcs/cms/contentCreate.d.ts.map +1 -0
- package/dist/esm/funcs/cms/contentCreate.js +74 -0
- package/dist/esm/funcs/cms/contentCreate.js.map +1 -0
- package/dist/esm/funcs/cms/contentDelete.d.ts +10 -0
- package/dist/esm/funcs/cms/contentDelete.d.ts.map +1 -0
- package/dist/esm/funcs/cms/contentDelete.js +74 -0
- package/dist/esm/funcs/cms/contentDelete.js.map +1 -0
- package/dist/esm/funcs/cms/contentGet.d.ts +11 -0
- package/dist/esm/funcs/cms/contentGet.d.ts.map +1 -0
- package/dist/esm/funcs/cms/contentGet.js +74 -0
- package/dist/esm/funcs/cms/contentGet.js.map +1 -0
- package/dist/esm/funcs/cms/contentList.d.ts +11 -0
- package/dist/esm/funcs/cms/contentList.d.ts.map +1 -0
- package/dist/esm/funcs/cms/contentList.js +81 -0
- package/dist/esm/funcs/cms/contentList.js.map +1 -0
- package/dist/esm/funcs/cms/contentTypesGet.d.ts +10 -0
- package/dist/esm/funcs/cms/contentTypesGet.d.ts.map +1 -0
- package/dist/esm/funcs/cms/contentTypesGet.js +78 -0
- package/dist/esm/funcs/cms/contentTypesGet.js.map +1 -0
- package/dist/esm/funcs/cms/contentTypesList.d.ts +10 -0
- package/dist/esm/funcs/cms/contentTypesList.d.ts.map +1 -0
- package/dist/esm/funcs/cms/contentTypesList.js +85 -0
- package/dist/esm/funcs/cms/contentTypesList.js.map +1 -0
- package/dist/esm/funcs/cms/contentUpdate.d.ts +11 -0
- package/dist/esm/funcs/cms/contentUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/cms/contentUpdate.js +75 -0
- package/dist/esm/funcs/cms/contentUpdate.js.map +1 -0
- package/dist/esm/funcs/cms/index.d.ts +7 -0
- package/dist/esm/funcs/cms/index.d.ts.map +1 -1
- package/dist/esm/funcs/cms/index.js +7 -0
- package/dist/esm/funcs/cms/index.js.map +1 -1
- package/dist/esm/funcs/index.d.ts +1 -0
- package/dist/esm/funcs/index.d.ts.map +1 -1
- package/dist/esm/funcs/index.js +1 -0
- package/dist/esm/funcs/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +1 -1
- package/dist/esm/models/cms/content-entry.d.ts +14 -0
- package/dist/esm/models/cms/content-entry.d.ts.map +1 -0
- package/dist/esm/models/cms/content-entry.js +21 -0
- package/dist/esm/models/cms/content-entry.js.map +1 -0
- package/dist/esm/models/cms/content-type-field.d.ts +27 -0
- package/dist/esm/models/cms/content-type-field.d.ts.map +1 -0
- package/dist/esm/models/cms/content-type-field.js +29 -0
- package/dist/esm/models/cms/content-type-field.js.map +1 -0
- package/dist/esm/models/cms/content-type.d.ts +32 -0
- package/dist/esm/models/cms/content-type.d.ts.map +1 -0
- package/dist/esm/models/cms/content-type.js +42 -0
- package/dist/esm/models/cms/content-type.js.map +1 -0
- package/dist/esm/models/cms/index.d.ts +3 -0
- package/dist/esm/models/cms/index.d.ts.map +1 -1
- package/dist/esm/models/cms/index.js +3 -0
- package/dist/esm/models/cms/index.js.map +1 -1
- package/dist/esm/models/commerce/route.d.ts +2 -2
- package/dist/esm/models/commerce/route.d.ts.map +1 -1
- package/dist/esm/models/commerce/route.js +2 -2
- package/dist/esm/models/commerce/route.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/cms-content-types.d.ts +29 -0
- package/dist/esm/models/operations/cms-content-types.d.ts.map +1 -0
- package/dist/esm/models/operations/cms-content-types.js +35 -0
- package/dist/esm/models/operations/cms-content-types.js.map +1 -0
- package/dist/esm/models/operations/cms-content.d.ts +55 -0
- package/dist/esm/models/operations/cms-content.d.ts.map +1 -0
- package/dist/esm/models/operations/cms-content.js +56 -0
- package/dist/esm/models/operations/cms-content.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/cms/content-types.d.ts +7 -0
- package/dist/esm/sdk/cms/content-types.d.ts.map +1 -0
- package/dist/esm/sdk/cms/content-types.js +16 -0
- package/dist/esm/sdk/cms/content-types.js.map +1 -0
- package/dist/esm/sdk/cms/content.d.ts +11 -0
- package/dist/esm/sdk/cms/content.d.ts.map +1 -0
- package/dist/esm/sdk/cms/content.js +28 -0
- package/dist/esm/sdk/cms/content.js.map +1 -0
- package/dist/esm/sdk/cms/index.d.ts +8 -0
- package/dist/esm/sdk/cms/index.d.ts.map +1 -1
- package/dist/esm/sdk/cms/index.js +10 -0
- package/dist/esm/sdk/cms/index.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/cms/contentCreate.ts +171 -0
- package/src/funcs/cms/contentDelete.ts +157 -0
- package/src/funcs/cms/contentGet.ts +171 -0
- package/src/funcs/cms/contentList.ts +179 -0
- package/src/funcs/cms/contentTypesGet.ts +162 -0
- package/src/funcs/cms/contentTypesList.ts +169 -0
- package/src/funcs/cms/contentUpdate.ts +172 -0
- package/src/funcs/cms/index.ts +7 -0
- package/src/funcs/index.ts +1 -0
- package/src/lib/config.ts +1 -1
- package/src/models/cms/content-entry.ts +31 -0
- package/src/models/cms/content-type-field.ts +54 -0
- package/src/models/cms/content-type.ts +75 -0
- package/src/models/cms/index.ts +3 -3
- package/src/models/commerce/route.ts +4 -4
- package/src/models/index.ts +1 -0
- package/src/models/operations/cms-content-types.ts +74 -0
- package/src/models/operations/cms-content.ts +132 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/cms/content-types.ts +25 -0
- package/src/sdk/cms/content.ts +50 -0
- package/src/sdk/cms/index.ts +14 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-types.js","sourceRoot":"","sources":["../../../../src/sdk/cms/content-types.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,6EAAuE;AACvE,2EAAqE;AACrE,+CAA8D;AAE9D,6CAAgD;AAEhD,MAAa,YAAa,SAAQ,mBAAS;IACvC,KAAK,CAAC,IAAI,CACN,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,GAAG,CACL,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAChE,CAAC;CACJ;AAdD,oCAcC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import { ContentEntry } from "../../models/cms/content-entry.js";
|
|
3
|
+
import * as operations from "../../models/operations/index.js";
|
|
4
|
+
export declare class Content extends ClientSDK {
|
|
5
|
+
list<TEntry extends ContentEntry = ContentEntry>(request: operations.ListContentRequest, options?: RequestOptions): Promise<operations.ListContentResponse<TEntry>>;
|
|
6
|
+
get<TEntry extends ContentEntry = ContentEntry>(request: operations.GetContentRequest, options?: RequestOptions): Promise<operations.GetContentResponse<TEntry>>;
|
|
7
|
+
create<TEntry extends ContentEntry = ContentEntry>(request: operations.CreateContentRequest, options?: RequestOptions): Promise<operations.CreateContentResponse<TEntry>>;
|
|
8
|
+
update<TEntry extends ContentEntry = ContentEntry>(request: operations.UpdateContentRequest, options?: RequestOptions): Promise<operations.UpdateContentResponse<TEntry>>;
|
|
9
|
+
delete(request: operations.DeleteContentRequest, options?: RequestOptions): Promise<operations.DeleteContentResponse>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../src/sdk/cms/content.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAG/D,qBAAa,OAAQ,SAAQ,SAAS;IAC5B,IAAI,CAAC,MAAM,SAAS,YAAY,GAAG,YAAY,EACjD,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAI5C,GAAG,CAAC,MAAM,SAAS,YAAY,GAAG,YAAY,EAChD,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAI3C,MAAM,CAAC,MAAM,SAAS,YAAY,GAAG,YAAY,EACnD,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAI9C,MAAM,CAAC,MAAM,SAAS,YAAY,GAAG,YAAY,EACnD,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAI9C,MAAM,CACR,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAG/C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* CMS Content SDK.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Content = void 0;
|
|
7
|
+
const contentList_js_1 = require("../../funcs/cms/contentList.js");
|
|
8
|
+
const contentGet_js_1 = require("../../funcs/cms/contentGet.js");
|
|
9
|
+
const contentCreate_js_1 = require("../../funcs/cms/contentCreate.js");
|
|
10
|
+
const contentUpdate_js_1 = require("../../funcs/cms/contentUpdate.js");
|
|
11
|
+
const contentDelete_js_1 = require("../../funcs/cms/contentDelete.js");
|
|
12
|
+
const sdks_js_1 = require("../../lib/sdks.js");
|
|
13
|
+
const fp_js_1 = require("../../types/fp.js");
|
|
14
|
+
class Content extends sdks_js_1.ClientSDK {
|
|
15
|
+
async list(request, options) {
|
|
16
|
+
return (0, fp_js_1.unwrapAsync)((0, contentList_js_1.contentList)(this, request, options));
|
|
17
|
+
}
|
|
18
|
+
async get(request, options) {
|
|
19
|
+
return (0, fp_js_1.unwrapAsync)((0, contentGet_js_1.contentGet)(this, request, options));
|
|
20
|
+
}
|
|
21
|
+
async create(request, options) {
|
|
22
|
+
return (0, fp_js_1.unwrapAsync)((0, contentCreate_js_1.contentCreate)(this, request, options));
|
|
23
|
+
}
|
|
24
|
+
async update(request, options) {
|
|
25
|
+
return (0, fp_js_1.unwrapAsync)((0, contentUpdate_js_1.contentUpdate)(this, request, options));
|
|
26
|
+
}
|
|
27
|
+
async delete(request, options) {
|
|
28
|
+
return (0, fp_js_1.unwrapAsync)((0, contentDelete_js_1.contentDelete)(this, request, options));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Content = Content;
|
|
32
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../../src/sdk/cms/content.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,mEAA6D;AAC7D,iEAA2D;AAC3D,uEAAiE;AACjE,uEAAiE;AACjE,uEAAiE;AACjE,+CAA8D;AAG9D,6CAAgD;AAEhD,MAAa,OAAQ,SAAQ,mBAAS;IAClC,KAAK,CAAC,IAAI,CACN,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4BAAW,EAAS,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,GAAG,CACL,OAAqC,EACrC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0BAAU,EAAS,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,MAAM,CACR,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAAS,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,MAAM,CACR,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAAS,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,MAAM,CACR,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC9D,CAAC;CACJ;AAnCD,0BAmCC"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import { ClientSDK } from "../../lib/sdks.js";
|
|
2
2
|
import { Components } from "./components.js";
|
|
3
|
+
import { Content } from "./content.js";
|
|
4
|
+
import { ContentTypes } from "./content-types.js";
|
|
3
5
|
import { Layouts } from "./layouts.js";
|
|
4
6
|
import { Pages } from "./pages.js";
|
|
5
7
|
import { Menus } from "./menus.js";
|
|
6
8
|
export { Components } from "./components.js";
|
|
9
|
+
export { Content } from "./content.js";
|
|
10
|
+
export { ContentTypes } from "./content-types.js";
|
|
7
11
|
export { Layouts } from "./layouts.js";
|
|
8
12
|
export { Pages } from "./pages.js";
|
|
9
13
|
export { Menus } from "./menus.js";
|
|
10
14
|
export declare class Cms extends ClientSDK {
|
|
11
15
|
private _components?;
|
|
16
|
+
private _content?;
|
|
17
|
+
private _contentTypes?;
|
|
12
18
|
private _layouts?;
|
|
13
19
|
private _pages?;
|
|
14
20
|
private _menus?;
|
|
15
21
|
get components(): Components;
|
|
22
|
+
get content(): Content;
|
|
23
|
+
get contentTypes(): ContentTypes;
|
|
16
24
|
get layouts(): Layouts;
|
|
17
25
|
get pages(): Pages;
|
|
18
26
|
get menus(): Menus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/cms/index.ts"],"names":[],"mappings":"A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UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,qBAAa,GAAI,SAAQ,SAAS;IAC9B,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,OAAO,CAAC,MAAM,CAAC,CAAQ;IAEvB,IAAI,UAAU,IAAI,UAAU,CAE3B;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,YAAY,IAAI,YAAY,CAE/B;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,IAAI,KAAK,IAAI,KAAK,CAEjB;CACJ"}
|
|
@@ -3,14 +3,20 @@
|
|
|
3
3
|
* SDK module: CMS
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Cms = exports.Menus = exports.Pages = exports.Layouts = exports.Components = void 0;
|
|
6
|
+
exports.Cms = exports.Menus = exports.Pages = exports.Layouts = exports.ContentTypes = exports.Content = exports.Components = void 0;
|
|
7
7
|
const sdks_js_1 = require("../../lib/sdks.js");
|
|
8
8
|
const components_js_1 = require("./components.js");
|
|
9
|
+
const content_js_1 = require("./content.js");
|
|
10
|
+
const content_types_js_1 = require("./content-types.js");
|
|
9
11
|
const layouts_js_1 = require("./layouts.js");
|
|
10
12
|
const pages_js_1 = require("./pages.js");
|
|
11
13
|
const menus_js_1 = require("./menus.js");
|
|
12
14
|
var components_js_2 = require("./components.js");
|
|
13
15
|
Object.defineProperty(exports, "Components", { enumerable: true, get: function () { return components_js_2.Components; } });
|
|
16
|
+
var content_js_2 = require("./content.js");
|
|
17
|
+
Object.defineProperty(exports, "Content", { enumerable: true, get: function () { return content_js_2.Content; } });
|
|
18
|
+
var content_types_js_2 = require("./content-types.js");
|
|
19
|
+
Object.defineProperty(exports, "ContentTypes", { enumerable: true, get: function () { return content_types_js_2.ContentTypes; } });
|
|
14
20
|
var layouts_js_2 = require("./layouts.js");
|
|
15
21
|
Object.defineProperty(exports, "Layouts", { enumerable: true, get: function () { return layouts_js_2.Layouts; } });
|
|
16
22
|
var pages_js_2 = require("./pages.js");
|
|
@@ -21,6 +27,12 @@ class Cms extends sdks_js_1.ClientSDK {
|
|
|
21
27
|
get components() {
|
|
22
28
|
return (this._components ?? (this._components = new components_js_1.Components(this._options)));
|
|
23
29
|
}
|
|
30
|
+
get content() {
|
|
31
|
+
return (this._content ?? (this._content = new content_js_1.Content(this._options)));
|
|
32
|
+
}
|
|
33
|
+
get contentTypes() {
|
|
34
|
+
return (this._contentTypes ?? (this._contentTypes = new content_types_js_1.ContentTypes(this._options)));
|
|
35
|
+
}
|
|
24
36
|
get layouts() {
|
|
25
37
|
return (this._layouts ?? (this._layouts = new layouts_js_1.Layouts(this._options)));
|
|
26
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/cms/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,+CAA8C;AAC9C,mDAA6C;AAC7C,6CAAuC;AACvC,yCAAmC;AACnC,yCAAmC;AAEnC,iDAA6C;AAApC,2GAAA,UAAU,OAAA;AACnB,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,uCAAmC;AAA1B,iGAAA,KAAK,OAAA;AACd,uCAAmC;AAA1B,iGAAA,KAAK,OAAA;AAEd,MAAa,GAAI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AC,EAAC,CAAC;IACtD,CAAC;IAED,IAAI,KAAK;QACL,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,gBAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;CACJ;AA/BD,kBA+BC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as errors from "../../models/errors/index.js";
|
|
3
|
+
import { ResponseValidationError } from "../../models/errors/response-validation-error.js";
|
|
4
|
+
import { SDKValidationError } from "../../models/errors/sdk-validation-error.js";
|
|
5
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../../models/errors/http-client-errors.js";
|
|
6
|
+
import { ContentEntry } from "../../models/cms/content-entry.js";
|
|
7
|
+
import * as operations from "../../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../../types/async.js";
|
|
9
|
+
import { Result } from "../../types/fp.js";
|
|
10
|
+
export declare function contentCreate<TEntry extends ContentEntry = ContentEntry>(client: ClientSDK, request: operations.CreateContentRequest, options?: RequestOptions): APIPromise<Result<operations.CreateContentResponse<TEntry>, errors.ErrorResponse | errors.OminityDefaultError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
11
|
+
//# sourceMappingURL=contentCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentCreate.d.ts","sourceRoot":"","sources":["../../../../src/funcs/cms/contentCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAK9D,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAM,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE/C,wBAAgB,aAAa,CAAC,MAAM,SAAS,YAAY,GAAG,YAAY,EACpE,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACzB,UAAU,CACT,MAAM,CACF,UAAU,CAAC,qBAAqB,CAAC,MAAM,CAAC,EACtC,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,mBAAmB,GAC1B,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACvB,CACJ,CAmBA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Create CMS content entry.
|
|
3
|
+
*/
|
|
4
|
+
import * as M from "../../lib/matchers.js";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
import { extractSecurity, resolveGlobalSecurity } from "../../lib/security.js";
|
|
7
|
+
import * as errors from "../../models/errors/index.js";
|
|
8
|
+
import * as operations from "../../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../../types/async.js";
|
|
10
|
+
import { OK } from "../../types/fp.js";
|
|
11
|
+
export function contentCreate(client, request, options) {
|
|
12
|
+
return new APIPromise($do(client, request, options));
|
|
13
|
+
}
|
|
14
|
+
async function $do(client, request, options) {
|
|
15
|
+
const parsed = safeParse(request, (value) => operations.CreateContentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
16
|
+
if (!parsed.ok) {
|
|
17
|
+
return [parsed, { status: "invalid" }];
|
|
18
|
+
}
|
|
19
|
+
const payload = parsed.value;
|
|
20
|
+
const safeSlug = encodeURIComponent(payload.slug);
|
|
21
|
+
const path = `/cms/content/${safeSlug}`;
|
|
22
|
+
const headers = new Headers({
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
});
|
|
25
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
26
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
27
|
+
const context = {
|
|
28
|
+
options: client._options,
|
|
29
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
30
|
+
operationID: "cms.content.create",
|
|
31
|
+
oAuth2Scopes: null,
|
|
32
|
+
resolvedSecurity: requestSecurity,
|
|
33
|
+
securitySource: client._options.security,
|
|
34
|
+
retryConfig: options?.retries
|
|
35
|
+
|| client._options.retryConfig
|
|
36
|
+
|| { strategy: "none" },
|
|
37
|
+
retryCodes: options?.retryCodes || ["429", "5XX"],
|
|
38
|
+
};
|
|
39
|
+
const requestRes = client._createRequest(context, {
|
|
40
|
+
security: requestSecurity,
|
|
41
|
+
method: "POST",
|
|
42
|
+
baseURL: options?.serverURL,
|
|
43
|
+
path,
|
|
44
|
+
headers,
|
|
45
|
+
body: JSON.stringify(payload.data),
|
|
46
|
+
userAgent: client._options.userAgent,
|
|
47
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
48
|
+
}, options);
|
|
49
|
+
if (!requestRes.ok) {
|
|
50
|
+
return [requestRes, { status: "invalid" }];
|
|
51
|
+
}
|
|
52
|
+
const req = requestRes.value;
|
|
53
|
+
const doResult = await client._do(req, {
|
|
54
|
+
context,
|
|
55
|
+
errorCodes: ["4XX", "5XX"],
|
|
56
|
+
retryConfig: context.retryConfig,
|
|
57
|
+
retryCodes: context.retryCodes,
|
|
58
|
+
});
|
|
59
|
+
if (!doResult.ok) {
|
|
60
|
+
return [doResult, { status: "request-error", request: req }];
|
|
61
|
+
}
|
|
62
|
+
const response = doResult.value;
|
|
63
|
+
const responseFields = {
|
|
64
|
+
HttpMeta: { Response: response, Request: req },
|
|
65
|
+
};
|
|
66
|
+
const [result] = await M.match(M.json(200, operations.CreateContentResponse$inboundSchema, { ctype: "application/hal+json" }), M.json(201, operations.CreateContentResponse$inboundSchema, { ctype: "application/hal+json" }), M.jsonErr("4XX", errors.ErrorResponse$inboundSchema, {
|
|
67
|
+
ctype: "application/hal+json",
|
|
68
|
+
}), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
69
|
+
if (!result.ok) {
|
|
70
|
+
return [result, { status: "complete", request: req, response }];
|
|
71
|
+
}
|
|
72
|
+
return [OK(result.value), { status: "complete", request: req, response }];
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=contentCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentCreate.js","sourceRoot":"","sources":["../../../../src/funcs/cms/contentCreate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AAWvD,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAU,MAAM,mBAAmB,CAAC;AAE/C,MAAM,UAAU,aAAa,CACzB,MAAiB,EACjB,OAAwC,EACxC,OAAwB;IAexB,OAAO,IAAI,UAAU,CAAC,GAAG,CACrB,MAAM,EACN,OAAO,EACP,OAAO,CACV,CAaA,CAAC;AACN,CAAC;AAED,KAAK,UAAU,GAAG,CACd,MAAiB,EACjB,OAAwC,EACxC,OAAwB;IAkBxB,MA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AAG,EAAE,UAAU,CAAC,mCAAmC,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC,EAC9F,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,2BAA2B,EAAE;QACjD,KAAK,EAAE,sBAAsB;KAChC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAChB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACb,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as errors from "../../models/errors/index.js";
|
|
3
|
+
import { ResponseValidationError } from "../../models/errors/response-validation-error.js";
|
|
4
|
+
import { SDKValidationError } from "../../models/errors/sdk-validation-error.js";
|
|
5
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../../models/errors/http-client-errors.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { APIPromise } from "../../types/async.js";
|
|
8
|
+
import { Result } from "../../types/fp.js";
|
|
9
|
+
export declare function contentDelete(client: ClientSDK, request: operations.DeleteContentRequest, options?: RequestOptions): APIPromise<Result<operations.DeleteContentResponse, errors.ErrorResponse | errors.OminityDefaultError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
10
|
+
//# sourceMappingURL=contentDelete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentDelete.d.ts","sourceRoot":"","sources":["../../../../src/funcs/cms/contentDelete.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAK9D,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAM,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE/C,wBAAgB,aAAa,CACzB,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACzB,UAAU,CACT,MAAM,CACF,UAAU,CAAC,qBAAqB,EAC9B,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,mBAAmB,GAC1B,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACvB,CACJ,CAMA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Delete CMS content entry.
|
|
3
|
+
*/
|
|
4
|
+
import * as M from "../../lib/matchers.js";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
import { extractSecurity, resolveGlobalSecurity } from "../../lib/security.js";
|
|
7
|
+
import * as errors from "../../models/errors/index.js";
|
|
8
|
+
import * as operations from "../../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../../types/async.js";
|
|
10
|
+
import { OK } from "../../types/fp.js";
|
|
11
|
+
export function contentDelete(client, request, options) {
|
|
12
|
+
return new APIPromise($do(client, request, options));
|
|
13
|
+
}
|
|
14
|
+
async function $do(client, request, options) {
|
|
15
|
+
const parsed = safeParse(request, (value) => operations.DeleteContentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
16
|
+
if (!parsed.ok) {
|
|
17
|
+
return [parsed, { status: "invalid" }];
|
|
18
|
+
}
|
|
19
|
+
const payload = parsed.value;
|
|
20
|
+
const body = null;
|
|
21
|
+
const safeSlug = encodeURIComponent(payload.slug);
|
|
22
|
+
const safeId = encodeURIComponent(payload.id);
|
|
23
|
+
const path = `/cms/content/${safeSlug}/${safeId}`;
|
|
24
|
+
const headers = new Headers();
|
|
25
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
26
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
27
|
+
const context = {
|
|
28
|
+
options: client._options,
|
|
29
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
30
|
+
operationID: "cms.content.delete",
|
|
31
|
+
oAuth2Scopes: null,
|
|
32
|
+
resolvedSecurity: requestSecurity,
|
|
33
|
+
securitySource: client._options.security,
|
|
34
|
+
retryConfig: options?.retries
|
|
35
|
+
|| client._options.retryConfig
|
|
36
|
+
|| { strategy: "none" },
|
|
37
|
+
retryCodes: options?.retryCodes || ["429", "5XX"],
|
|
38
|
+
};
|
|
39
|
+
const requestRes = client._createRequest(context, {
|
|
40
|
+
security: requestSecurity,
|
|
41
|
+
method: "DELETE",
|
|
42
|
+
baseURL: options?.serverURL,
|
|
43
|
+
path,
|
|
44
|
+
headers,
|
|
45
|
+
body,
|
|
46
|
+
userAgent: client._options.userAgent,
|
|
47
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
48
|
+
}, options);
|
|
49
|
+
if (!requestRes.ok) {
|
|
50
|
+
return [requestRes, { status: "invalid" }];
|
|
51
|
+
}
|
|
52
|
+
const req = requestRes.value;
|
|
53
|
+
const doResult = await client._do(req, {
|
|
54
|
+
context,
|
|
55
|
+
errorCodes: ["4XX", "5XX"],
|
|
56
|
+
retryConfig: context.retryConfig,
|
|
57
|
+
retryCodes: context.retryCodes,
|
|
58
|
+
});
|
|
59
|
+
if (!doResult.ok) {
|
|
60
|
+
return [doResult, { status: "request-error", request: req }];
|
|
61
|
+
}
|
|
62
|
+
const response = doResult.value;
|
|
63
|
+
const responseFields = {
|
|
64
|
+
HttpMeta: { Response: response, Request: req },
|
|
65
|
+
};
|
|
66
|
+
const [result] = await M.match(M.json(200, operations.DeleteContentResponse$inboundSchema), M.jsonErr("4XX", errors.ErrorResponse$inboundSchema, {
|
|
67
|
+
ctype: "application/hal+json",
|
|
68
|
+
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
69
|
+
if (!result.ok) {
|
|
70
|
+
return [result, { status: "complete", request: req, response }];
|
|
71
|
+
}
|
|
72
|
+
return [OK(result.value), { status: "complete", request: req, response }];
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=contentDelete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentDelete.js","sourceRoot":"","sources":["../../../../src/funcs/cms/contentDelete.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AAUvD,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAU,MAAM,mBAAmB,CAAC;AAE/C,MAAM,UAAU,aAAa,CACzB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O,EAAE,GAAG,EAAE;KACjD,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY1B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,mCAAmC,CAAC,EAC3D,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,2BAA2B,EAAE;QACjD,KAAK,EAAE,sBAAsB;KAChC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAChB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACb,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as errors from "../../models/errors/index.js";
|
|
3
|
+
import { ResponseValidationError } from "../../models/errors/response-validation-error.js";
|
|
4
|
+
import { SDKValidationError } from "../../models/errors/sdk-validation-error.js";
|
|
5
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../../models/errors/http-client-errors.js";
|
|
6
|
+
import { ContentEntry } from "../../models/cms/content-entry.js";
|
|
7
|
+
import * as operations from "../../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../../types/async.js";
|
|
9
|
+
import { Result } from "../../types/fp.js";
|
|
10
|
+
export declare function contentGet<TEntry extends ContentEntry = ContentEntry>(client: ClientSDK, request: operations.GetContentRequest, options?: RequestOptions): APIPromise<Result<operations.GetContentResponse<TEntry>, errors.ErrorResponse | errors.OminityDefaultError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
11
|
+
//# sourceMappingURL=contentGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentGet.d.ts","sourceRoot":"","sources":["../../../../src/funcs/cms/contentGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAK9D,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAM,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE/C,wBAAgB,UAAU,CAAC,MAAM,SAAS,YAAY,GAAG,YAAY,EACjE,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACzB,UAAU,CACT,MAAM,CACF,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,EACnC,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,mBAAmB,GAC1B,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACvB,CACJ,CAmBA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Get CMS content entry.
|
|
3
|
+
*/
|
|
4
|
+
import * as M from "../../lib/matchers.js";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
import { extractSecurity, resolveGlobalSecurity } from "../../lib/security.js";
|
|
7
|
+
import * as errors from "../../models/errors/index.js";
|
|
8
|
+
import * as operations from "../../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../../types/async.js";
|
|
10
|
+
import { OK } from "../../types/fp.js";
|
|
11
|
+
export function contentGet(client, request, options) {
|
|
12
|
+
return new APIPromise($do(client, request, options));
|
|
13
|
+
}
|
|
14
|
+
async function $do(client, request, options) {
|
|
15
|
+
const parsed = safeParse(request, (value) => operations.GetContentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
16
|
+
if (!parsed.ok) {
|
|
17
|
+
return [parsed, { status: "invalid" }];
|
|
18
|
+
}
|
|
19
|
+
const payload = parsed.value;
|
|
20
|
+
const body = null;
|
|
21
|
+
const safeSlug = encodeURIComponent(payload.slug);
|
|
22
|
+
const safeId = encodeURIComponent(payload.id);
|
|
23
|
+
const path = `/cms/content/${safeSlug}/${safeId}`;
|
|
24
|
+
const headers = new Headers();
|
|
25
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
26
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
27
|
+
const context = {
|
|
28
|
+
options: client._options,
|
|
29
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
30
|
+
operationID: "cms.content.get",
|
|
31
|
+
oAuth2Scopes: null,
|
|
32
|
+
resolvedSecurity: requestSecurity,
|
|
33
|
+
securitySource: client._options.security,
|
|
34
|
+
retryConfig: options?.retries
|
|
35
|
+
|| client._options.retryConfig
|
|
36
|
+
|| { strategy: "none" },
|
|
37
|
+
retryCodes: options?.retryCodes || ["429", "5XX"],
|
|
38
|
+
};
|
|
39
|
+
const requestRes = client._createRequest(context, {
|
|
40
|
+
security: requestSecurity,
|
|
41
|
+
method: "GET",
|
|
42
|
+
baseURL: options?.serverURL,
|
|
43
|
+
path,
|
|
44
|
+
headers,
|
|
45
|
+
body,
|
|
46
|
+
userAgent: client._options.userAgent,
|
|
47
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
48
|
+
}, options);
|
|
49
|
+
if (!requestRes.ok) {
|
|
50
|
+
return [requestRes, { status: "invalid" }];
|
|
51
|
+
}
|
|
52
|
+
const req = requestRes.value;
|
|
53
|
+
const doResult = await client._do(req, {
|
|
54
|
+
context,
|
|
55
|
+
errorCodes: ["4XX", "5XX"],
|
|
56
|
+
retryConfig: context.retryConfig,
|
|
57
|
+
retryCodes: context.retryCodes,
|
|
58
|
+
});
|
|
59
|
+
if (!doResult.ok) {
|
|
60
|
+
return [doResult, { status: "request-error", request: req }];
|
|
61
|
+
}
|
|
62
|
+
const response = doResult.value;
|
|
63
|
+
const responseFields = {
|
|
64
|
+
HttpMeta: { Response: response, Request: req },
|
|
65
|
+
};
|
|
66
|
+
const [result] = await M.match(M.json(200, operations.GetContentResponse$inboundSchema, { ctype: "application/hal+json" }), M.jsonErr("4XX", errors.ErrorResponse$inboundSchema, {
|
|
67
|
+
ctype: "application/hal+json",
|
|
68
|
+
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
69
|
+
if (!result.ok) {
|
|
70
|
+
return [result, { status: "complete", request: req, response }];
|
|
71
|
+
}
|
|
72
|
+
return [OK(result.value), { status: "complete", request: req, response }];
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=contentGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentGet.js","sourceRoot":"","sources":["../../../../src/funcs/cms/contentGet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,sB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C,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IACjE,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACnB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KACjD,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY1B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,gCAAgC,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC,EAC3F,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,2BAA2B,EAAE;QACjD,KAAK,EAAE,sBAAsB;KAChC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAChB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACb,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as errors from "../../models/errors/index.js";
|
|
3
|
+
import { ResponseValidationError } from "../../models/errors/response-validation-error.js";
|
|
4
|
+
import { SDKValidationError } from "../../models/errors/sdk-validation-error.js";
|
|
5
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../../models/errors/http-client-errors.js";
|
|
6
|
+
import { ContentEntry } from "../../models/cms/content-entry.js";
|
|
7
|
+
import * as operations from "../../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../../types/async.js";
|
|
9
|
+
import { Result } from "../../types/fp.js";
|
|
10
|
+
export declare function contentList<TEntry extends ContentEntry = ContentEntry>(client: ClientSDK, request: operations.ListContentRequest, options?: RequestOptions): APIPromise<Result<operations.ListContentResponse<TEntry>, errors.ErrorResponse | errors.OminityDefaultError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
11
|
+
//# sourceMappingURL=contentList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentList.d.ts","sourceRoot":"","sources":["../../../../src/funcs/cms/contentList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAM9D,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAM,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE/C,wBAAgB,WAAW,CAAC,MAAM,SAAS,YAAY,GAAG,YAAY,EAClE,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACzB,UAAU,CACT,MAAM,CACF,UAAU,CAAC,mBAAmB,CAAC,MAAM,CAAC,EACpC,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,mBAAmB,GAC1B,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACvB,CACJ,CAmBA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* List CMS content.
|
|
3
|
+
*/
|
|
4
|
+
import { encodeFormQuery } from "../../lib/encodings.js";
|
|
5
|
+
import * as M from "../../lib/matchers.js";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { extractSecurity, resolveGlobalSecurity } from "../../lib/security.js";
|
|
8
|
+
import * as errors from "../../models/errors/index.js";
|
|
9
|
+
import * as operations from "../../models/operations/index.js";
|
|
10
|
+
import { APIPromise } from "../../types/async.js";
|
|
11
|
+
import { OK } from "../../types/fp.js";
|
|
12
|
+
export function contentList(client, request, options) {
|
|
13
|
+
return new APIPromise($do(client, request, options));
|
|
14
|
+
}
|
|
15
|
+
async function $do(client, request, options) {
|
|
16
|
+
const parsed = safeParse(request, (value) => operations.ListContentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
17
|
+
if (!parsed.ok) {
|
|
18
|
+
return [parsed, { status: "invalid" }];
|
|
19
|
+
}
|
|
20
|
+
const payload = parsed.value;
|
|
21
|
+
const body = null;
|
|
22
|
+
const safeSlug = encodeURIComponent(payload.slug);
|
|
23
|
+
const path = `/cms/content/${safeSlug}`;
|
|
24
|
+
const query = encodeFormQuery({
|
|
25
|
+
"filter[id]": payload.filterId,
|
|
26
|
+
sort: payload.sort,
|
|
27
|
+
page: payload.page,
|
|
28
|
+
limit: payload.limit,
|
|
29
|
+
});
|
|
30
|
+
const headers = new Headers();
|
|
31
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
32
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
33
|
+
const context = {
|
|
34
|
+
options: client._options,
|
|
35
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
36
|
+
operationID: "cms.content.list",
|
|
37
|
+
oAuth2Scopes: null,
|
|
38
|
+
resolvedSecurity: requestSecurity,
|
|
39
|
+
securitySource: client._options.security,
|
|
40
|
+
retryConfig: options?.retries
|
|
41
|
+
|| client._options.retryConfig
|
|
42
|
+
|| { strategy: "none" },
|
|
43
|
+
retryCodes: options?.retryCodes || ["429", "5XX"],
|
|
44
|
+
};
|
|
45
|
+
const requestRes = client._createRequest(context, {
|
|
46
|
+
security: requestSecurity,
|
|
47
|
+
method: "GET",
|
|
48
|
+
baseURL: options?.serverURL,
|
|
49
|
+
path,
|
|
50
|
+
headers,
|
|
51
|
+
query,
|
|
52
|
+
body,
|
|
53
|
+
userAgent: client._options.userAgent,
|
|
54
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
55
|
+
}, options);
|
|
56
|
+
if (!requestRes.ok) {
|
|
57
|
+
return [requestRes, { status: "invalid" }];
|
|
58
|
+
}
|
|
59
|
+
const req = requestRes.value;
|
|
60
|
+
const doResult = await client._do(req, {
|
|
61
|
+
context,
|
|
62
|
+
errorCodes: ["4XX", "5XX"],
|
|
63
|
+
retryConfig: context.retryConfig,
|
|
64
|
+
retryCodes: context.retryCodes,
|
|
65
|
+
});
|
|
66
|
+
if (!doResult.ok) {
|
|
67
|
+
return [doResult, { status: "request-error", request: req }];
|
|
68
|
+
}
|
|
69
|
+
const response = doResult.value;
|
|
70
|
+
const responseFields = {
|
|
71
|
+
HttpMeta: { Response: response, Request: req },
|
|
72
|
+
};
|
|
73
|
+
const [result] = await M.match(M.json(200, operations.ListContentResponse$inboundSchema, { ctype: "application/hal+json" }), M.jsonErr("4XX", errors.ErrorResponse$inboundSchema, {
|
|
74
|
+
ctype: "application/hal+json",
|
|
75
|
+
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
76
|
+
if (!result.ok) {
|
|
77
|
+
return [result, { status: "complete", request: req, response }];
|
|
78
|
+
}
|
|
79
|
+
return [OK(result.value), { status: "complete", request: req, response }];
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=contentList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentList.js","sourceRoot":"","sources":["../../../../src/funcs/cms/contentList.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AAWvD,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAU,MAAM,mBAAmB,CAAC;AAE/C,MAAM,UAAU,WAAW,CACvB,MAAiB,EACjB,OAAsC,EACtC,OAAwB;IAexB,OAAO,IAAI,UAAU,CAAC,GAAG,CACrB,MAAM,EACN,OAAO,EACP,OAAO,CACV,CAaA,CAAC;AACN,CAAC;AAED,KAAK,UAAU,GAAG,CACd,MAAiB,EACjB,OAAsC,EACtC,OAAwB;IAkBxB,MAAM,MAAM,GAAG,SAAS,CACpB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,iCAAiC,CAAC,KAAK,CAAC,KAAK,CAAC,EACpE,yBAAyB,CAC5B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAA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AAE;QACjD,KAAK,EAAE,sBAAsB;KAChC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAChB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACb,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../../lib/sdks.js";
|
|
2
|
+
import * as errors from "../../models/errors/index.js";
|
|
3
|
+
import { ResponseValidationError } from "../../models/errors/response-validation-error.js";
|
|
4
|
+
import { SDKValidationError } from "../../models/errors/sdk-validation-error.js";
|
|
5
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../../models/errors/http-client-errors.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { APIPromise } from "../../types/async.js";
|
|
8
|
+
import { Result } from "../../types/fp.js";
|
|
9
|
+
export declare function contentTypesGet(client: ClientSDK, request: operations.GetContentTypeRequest, options?: RequestOptions): APIPromise<Result<operations.GetContentTypeResponse, errors.ErrorResponse | errors.OminityDefaultError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
10
|
+
//# sourceMappingURL=contentTypesGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentTypesGet.d.ts","sourceRoot":"","sources":["../../../../src/funcs/cms/contentTypesGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAM9D,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAW,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAM,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE/C,wBAAgB,eAAe,CAC3B,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACzB,UAAU,CACT,MAAM,CACF,UAAU,CAAC,sBAAsB,EAC/B,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,mBAAmB,GAC1B,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACvB,CACJ,CAMA"}
|