@teemill/website 0.14.0 → 0.16.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/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.14.0
7
+ * The version of the OpenAPI document: 0.16.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -118,6 +118,46 @@ export const UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = {
118
118
  */
119
119
  export const BlogsApiAxiosParamCreator = function (configuration) {
120
120
  return {
121
+ /**
122
+ *
123
+ * @summary Get website blog post
124
+ * @param {string} project What project it is
125
+ * @param {string} blogId Blog\'s unique identifier
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ getBlog: (project_1, blogId_1, ...args_1) => __awaiter(this, [project_1, blogId_1, ...args_1], void 0, function* (project, blogId, options = {}) {
130
+ // verify required parameter 'project' is not null or undefined
131
+ assertParamExists('getBlog', 'project', project);
132
+ // verify required parameter 'blogId' is not null or undefined
133
+ assertParamExists('getBlog', 'blogId', blogId);
134
+ const localVarPath = `/v1/website/blogs/{blogId}`
135
+ .replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
136
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
137
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
138
+ let baseOptions;
139
+ if (configuration) {
140
+ baseOptions = configuration.baseOptions;
141
+ }
142
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
143
+ const localVarHeaderParameter = {};
144
+ const localVarQueryParameter = {};
145
+ // authentication session-oauth required
146
+ // oauth required
147
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
148
+ // authentication api-key required
149
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
150
+ if (project !== undefined) {
151
+ localVarQueryParameter['project'] = project;
152
+ }
153
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
155
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
156
+ return {
157
+ url: toPathString(localVarUrlObj),
158
+ options: localVarRequestOptions,
159
+ };
160
+ }),
121
161
  /**
122
162
  *
123
163
  * @summary List website blog posts
@@ -269,6 +309,23 @@ export const BlogsApiAxiosParamCreator = function (configuration) {
269
309
  export const BlogsApiFp = function (configuration) {
270
310
  const localVarAxiosParamCreator = BlogsApiAxiosParamCreator(configuration);
271
311
  return {
312
+ /**
313
+ *
314
+ * @summary Get website blog post
315
+ * @param {string} project What project it is
316
+ * @param {string} blogId Blog\'s unique identifier
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ getBlog(project, blogId, options) {
321
+ return __awaiter(this, void 0, void 0, function* () {
322
+ var _a, _b, _c;
323
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBlog(project, blogId, options);
324
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
325
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogsApi.getBlog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
326
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
327
+ });
328
+ },
272
329
  /**
273
330
  *
274
331
  * @summary List website blog posts
@@ -335,6 +392,16 @@ export const BlogsApiFp = function (configuration) {
335
392
  export const BlogsApiFactory = function (configuration, basePath, axios) {
336
393
  const localVarFp = BlogsApiFp(configuration);
337
394
  return {
395
+ /**
396
+ *
397
+ * @summary Get website blog post
398
+ * @param {BlogsApiGetBlogRequest} requestParameters Request parameters.
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ getBlog(requestParameters, options) {
403
+ return localVarFp.getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(axios, basePath));
404
+ },
338
405
  /**
339
406
  *
340
407
  * @summary List website blog posts
@@ -374,6 +441,17 @@ export const BlogsApiFactory = function (configuration, basePath, axios) {
374
441
  * @extends {BaseAPI}
375
442
  */
376
443
  export class BlogsApi extends BaseAPI {
444
+ /**
445
+ *
446
+ * @summary Get website blog post
447
+ * @param {BlogsApiGetBlogRequest} requestParameters Request parameters.
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ * @memberof BlogsApi
451
+ */
452
+ getBlog(requestParameters, options) {
453
+ return BlogsApiFp(this.configuration).getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(this.axios, this.basePath));
454
+ }
377
455
  /**
378
456
  *
379
457
  * @summary List website blog posts
@@ -414,6 +492,46 @@ export class BlogsApi extends BaseAPI {
414
492
  */
415
493
  export const CollectionsApiAxiosParamCreator = function (configuration) {
416
494
  return {
495
+ /**
496
+ *
497
+ * @summary Get website collection
498
+ * @param {string} project What project it is
499
+ * @param {string} collectionId Collection\'s unique identifier
500
+ * @param {*} [options] Override http request option.
501
+ * @throws {RequiredError}
502
+ */
503
+ getCollection: (project_1, collectionId_1, ...args_1) => __awaiter(this, [project_1, collectionId_1, ...args_1], void 0, function* (project, collectionId, options = {}) {
504
+ // verify required parameter 'project' is not null or undefined
505
+ assertParamExists('getCollection', 'project', project);
506
+ // verify required parameter 'collectionId' is not null or undefined
507
+ assertParamExists('getCollection', 'collectionId', collectionId);
508
+ const localVarPath = `/v1/website/collections/{collectionId}`
509
+ .replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
510
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
511
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
512
+ let baseOptions;
513
+ if (configuration) {
514
+ baseOptions = configuration.baseOptions;
515
+ }
516
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
517
+ const localVarHeaderParameter = {};
518
+ const localVarQueryParameter = {};
519
+ // authentication session-oauth required
520
+ // oauth required
521
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
522
+ // authentication api-key required
523
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
524
+ if (project !== undefined) {
525
+ localVarQueryParameter['project'] = project;
526
+ }
527
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
528
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
529
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
530
+ return {
531
+ url: toPathString(localVarUrlObj),
532
+ options: localVarRequestOptions,
533
+ };
534
+ }),
417
535
  /**
418
536
  *
419
537
  * @summary List website collections
@@ -604,6 +722,23 @@ export const CollectionsApiAxiosParamCreator = function (configuration) {
604
722
  export const CollectionsApiFp = function (configuration) {
605
723
  const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration);
606
724
  return {
725
+ /**
726
+ *
727
+ * @summary Get website collection
728
+ * @param {string} project What project it is
729
+ * @param {string} collectionId Collection\'s unique identifier
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ getCollection(project, collectionId, options) {
734
+ return __awaiter(this, void 0, void 0, function* () {
735
+ var _a, _b, _c;
736
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollection(project, collectionId, options);
737
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
738
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.getCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
739
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
740
+ });
741
+ },
607
742
  /**
608
743
  *
609
744
  * @summary List website collections
@@ -687,6 +822,16 @@ export const CollectionsApiFp = function (configuration) {
687
822
  export const CollectionsApiFactory = function (configuration, basePath, axios) {
688
823
  const localVarFp = CollectionsApiFp(configuration);
689
824
  return {
825
+ /**
826
+ *
827
+ * @summary Get website collection
828
+ * @param {CollectionsApiGetCollectionRequest} requestParameters Request parameters.
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ */
832
+ getCollection(requestParameters, options) {
833
+ return localVarFp.getCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(axios, basePath));
834
+ },
690
835
  /**
691
836
  *
692
837
  * @summary List website collections
@@ -736,6 +881,17 @@ export const CollectionsApiFactory = function (configuration, basePath, axios) {
736
881
  * @extends {BaseAPI}
737
882
  */
738
883
  export class CollectionsApi extends BaseAPI {
884
+ /**
885
+ *
886
+ * @summary Get website collection
887
+ * @param {CollectionsApiGetCollectionRequest} requestParameters Request parameters.
888
+ * @param {*} [options] Override http request option.
889
+ * @throws {RequiredError}
890
+ * @memberof CollectionsApi
891
+ */
892
+ getCollection(requestParameters, options) {
893
+ return CollectionsApiFp(this.configuration).getCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(this.axios, this.basePath));
894
+ }
739
895
  /**
740
896
  *
741
897
  * @summary List website collections
@@ -1165,6 +1321,46 @@ export class MenuApi extends BaseAPI {
1165
1321
  */
1166
1322
  export const PagesApiAxiosParamCreator = function (configuration) {
1167
1323
  return {
1324
+ /**
1325
+ *
1326
+ * @summary Get website page
1327
+ * @param {string} project What project it is
1328
+ * @param {string} pageId Page\'s unique identifier
1329
+ * @param {*} [options] Override http request option.
1330
+ * @throws {RequiredError}
1331
+ */
1332
+ getPage: (project_1, pageId_1, ...args_1) => __awaiter(this, [project_1, pageId_1, ...args_1], void 0, function* (project, pageId, options = {}) {
1333
+ // verify required parameter 'project' is not null or undefined
1334
+ assertParamExists('getPage', 'project', project);
1335
+ // verify required parameter 'pageId' is not null or undefined
1336
+ assertParamExists('getPage', 'pageId', pageId);
1337
+ const localVarPath = `/v1/website/pages/{pageId}`
1338
+ .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId)));
1339
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1340
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1341
+ let baseOptions;
1342
+ if (configuration) {
1343
+ baseOptions = configuration.baseOptions;
1344
+ }
1345
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1346
+ const localVarHeaderParameter = {};
1347
+ const localVarQueryParameter = {};
1348
+ // authentication session-oauth required
1349
+ // oauth required
1350
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1351
+ // authentication api-key required
1352
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1353
+ if (project !== undefined) {
1354
+ localVarQueryParameter['project'] = project;
1355
+ }
1356
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1357
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1358
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1359
+ return {
1360
+ url: toPathString(localVarUrlObj),
1361
+ options: localVarRequestOptions,
1362
+ };
1363
+ }),
1168
1364
  /**
1169
1365
  *
1170
1366
  * @summary List website pages
@@ -1355,6 +1551,23 @@ export const PagesApiAxiosParamCreator = function (configuration) {
1355
1551
  export const PagesApiFp = function (configuration) {
1356
1552
  const localVarAxiosParamCreator = PagesApiAxiosParamCreator(configuration);
1357
1553
  return {
1554
+ /**
1555
+ *
1556
+ * @summary Get website page
1557
+ * @param {string} project What project it is
1558
+ * @param {string} pageId Page\'s unique identifier
1559
+ * @param {*} [options] Override http request option.
1560
+ * @throws {RequiredError}
1561
+ */
1562
+ getPage(project, pageId, options) {
1563
+ return __awaiter(this, void 0, void 0, function* () {
1564
+ var _a, _b, _c;
1565
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPage(project, pageId, options);
1566
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1567
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.getPage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1568
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1569
+ });
1570
+ },
1358
1571
  /**
1359
1572
  *
1360
1573
  * @summary List website pages
@@ -1438,6 +1651,16 @@ export const PagesApiFp = function (configuration) {
1438
1651
  export const PagesApiFactory = function (configuration, basePath, axios) {
1439
1652
  const localVarFp = PagesApiFp(configuration);
1440
1653
  return {
1654
+ /**
1655
+ *
1656
+ * @summary Get website page
1657
+ * @param {PagesApiGetPageRequest} requestParameters Request parameters.
1658
+ * @param {*} [options] Override http request option.
1659
+ * @throws {RequiredError}
1660
+ */
1661
+ getPage(requestParameters, options) {
1662
+ return localVarFp.getPage(requestParameters.project, requestParameters.pageId, options).then((request) => request(axios, basePath));
1663
+ },
1441
1664
  /**
1442
1665
  *
1443
1666
  * @summary List website pages
@@ -1487,6 +1710,17 @@ export const PagesApiFactory = function (configuration, basePath, axios) {
1487
1710
  * @extends {BaseAPI}
1488
1711
  */
1489
1712
  export class PagesApi extends BaseAPI {
1713
+ /**
1714
+ *
1715
+ * @summary Get website page
1716
+ * @param {PagesApiGetPageRequest} requestParameters Request parameters.
1717
+ * @param {*} [options] Override http request option.
1718
+ * @throws {RequiredError}
1719
+ * @memberof PagesApi
1720
+ */
1721
+ getPage(requestParameters, options) {
1722
+ return PagesApiFp(this.configuration).getPage(requestParameters.project, requestParameters.pageId, options).then((request) => request(this.axios, this.basePath));
1723
+ }
1490
1724
  /**
1491
1725
  *
1492
1726
  * @summary List website pages
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.14.0
5
+ * The version of the OpenAPI document: 0.16.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.14.0
7
+ * The version of the OpenAPI document: 0.16.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.14.0
5
+ * The version of the OpenAPI document: 0.16.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.14.0
7
+ * The version of the OpenAPI document: 0.16.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.14.0
5
+ * The version of the OpenAPI document: 0.16.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.14.0
7
+ * The version of the OpenAPI document: 0.16.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.14.0
5
+ * The version of the OpenAPI document: 0.16.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.14.0
7
+ * The version of the OpenAPI document: 0.16.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.14.0
5
+ * The version of the OpenAPI document: 0.16.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.14.0
8
+ * The version of the OpenAPI document: 0.16.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.14.0
7
+ * The version of the OpenAPI document: 0.16.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/website",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "OpenAPI client for @teemill/website",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {