@teemill/website 0.15.0 → 0.17.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/api.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.15.0
8
+ * The version of the OpenAPI document: 0.17.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -121,6 +121,46 @@ exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = {
121
121
  */
122
122
  const BlogsApiAxiosParamCreator = function (configuration) {
123
123
  return {
124
+ /**
125
+ *
126
+ * @summary Get website blog post
127
+ * @param {string} project What project it is
128
+ * @param {string} blogId Blog\'s unique identifier
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ getBlog: (project_1, blogId_1, ...args_1) => __awaiter(this, [project_1, blogId_1, ...args_1], void 0, function* (project, blogId, options = {}) {
133
+ // verify required parameter 'project' is not null or undefined
134
+ (0, common_1.assertParamExists)('getBlog', 'project', project);
135
+ // verify required parameter 'blogId' is not null or undefined
136
+ (0, common_1.assertParamExists)('getBlog', 'blogId', blogId);
137
+ const localVarPath = `/v1/website/blogs/{blogId}`
138
+ .replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
139
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
140
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
141
+ let baseOptions;
142
+ if (configuration) {
143
+ baseOptions = configuration.baseOptions;
144
+ }
145
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
146
+ const localVarHeaderParameter = {};
147
+ const localVarQueryParameter = {};
148
+ // authentication session-oauth required
149
+ // oauth required
150
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
151
+ // authentication api-key required
152
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
153
+ if (project !== undefined) {
154
+ localVarQueryParameter['project'] = project;
155
+ }
156
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
159
+ return {
160
+ url: (0, common_1.toPathString)(localVarUrlObj),
161
+ options: localVarRequestOptions,
162
+ };
163
+ }),
124
164
  /**
125
165
  *
126
166
  * @summary List website blog posts
@@ -273,6 +313,23 @@ exports.BlogsApiAxiosParamCreator = BlogsApiAxiosParamCreator;
273
313
  const BlogsApiFp = function (configuration) {
274
314
  const localVarAxiosParamCreator = (0, exports.BlogsApiAxiosParamCreator)(configuration);
275
315
  return {
316
+ /**
317
+ *
318
+ * @summary Get website blog post
319
+ * @param {string} project What project it is
320
+ * @param {string} blogId Blog\'s unique identifier
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ getBlog(project, blogId, options) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ var _a, _b, _c;
327
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBlog(project, blogId, options);
328
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
329
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BlogsApi.getBlog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
330
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
331
+ });
332
+ },
276
333
  /**
277
334
  *
278
335
  * @summary List website blog posts
@@ -340,6 +397,16 @@ exports.BlogsApiFp = BlogsApiFp;
340
397
  const BlogsApiFactory = function (configuration, basePath, axios) {
341
398
  const localVarFp = (0, exports.BlogsApiFp)(configuration);
342
399
  return {
400
+ /**
401
+ *
402
+ * @summary Get website blog post
403
+ * @param {BlogsApiGetBlogRequest} requestParameters Request parameters.
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ getBlog(requestParameters, options) {
408
+ return localVarFp.getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(axios, basePath));
409
+ },
343
410
  /**
344
411
  *
345
412
  * @summary List website blog posts
@@ -380,6 +447,17 @@ exports.BlogsApiFactory = BlogsApiFactory;
380
447
  * @extends {BaseAPI}
381
448
  */
382
449
  class BlogsApi extends base_1.BaseAPI {
450
+ /**
451
+ *
452
+ * @summary Get website blog post
453
+ * @param {BlogsApiGetBlogRequest} requestParameters Request parameters.
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ * @memberof BlogsApi
457
+ */
458
+ getBlog(requestParameters, options) {
459
+ return (0, exports.BlogsApiFp)(this.configuration).getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(this.axios, this.basePath));
460
+ }
383
461
  /**
384
462
  *
385
463
  * @summary List website blog posts
@@ -421,6 +499,46 @@ exports.BlogsApi = BlogsApi;
421
499
  */
422
500
  const CollectionsApiAxiosParamCreator = function (configuration) {
423
501
  return {
502
+ /**
503
+ *
504
+ * @summary Get website collection
505
+ * @param {string} project What project it is
506
+ * @param {string} collectionId Collection\'s unique identifier
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ getCollection: (project_1, collectionId_1, ...args_1) => __awaiter(this, [project_1, collectionId_1, ...args_1], void 0, function* (project, collectionId, options = {}) {
511
+ // verify required parameter 'project' is not null or undefined
512
+ (0, common_1.assertParamExists)('getCollection', 'project', project);
513
+ // verify required parameter 'collectionId' is not null or undefined
514
+ (0, common_1.assertParamExists)('getCollection', 'collectionId', collectionId);
515
+ const localVarPath = `/v1/website/collections/{collectionId}`
516
+ .replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
517
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
518
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
519
+ let baseOptions;
520
+ if (configuration) {
521
+ baseOptions = configuration.baseOptions;
522
+ }
523
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
524
+ const localVarHeaderParameter = {};
525
+ const localVarQueryParameter = {};
526
+ // authentication session-oauth required
527
+ // oauth required
528
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
529
+ // authentication api-key required
530
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
531
+ if (project !== undefined) {
532
+ localVarQueryParameter['project'] = project;
533
+ }
534
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
536
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
537
+ return {
538
+ url: (0, common_1.toPathString)(localVarUrlObj),
539
+ options: localVarRequestOptions,
540
+ };
541
+ }),
424
542
  /**
425
543
  *
426
544
  * @summary List website collections
@@ -612,6 +730,23 @@ exports.CollectionsApiAxiosParamCreator = CollectionsApiAxiosParamCreator;
612
730
  const CollectionsApiFp = function (configuration) {
613
731
  const localVarAxiosParamCreator = (0, exports.CollectionsApiAxiosParamCreator)(configuration);
614
732
  return {
733
+ /**
734
+ *
735
+ * @summary Get website collection
736
+ * @param {string} project What project it is
737
+ * @param {string} collectionId Collection\'s unique identifier
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ getCollection(project, collectionId, options) {
742
+ return __awaiter(this, void 0, void 0, function* () {
743
+ var _a, _b, _c;
744
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollection(project, collectionId, options);
745
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
746
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollectionsApi.getCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
747
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
748
+ });
749
+ },
615
750
  /**
616
751
  *
617
752
  * @summary List website collections
@@ -696,6 +831,16 @@ exports.CollectionsApiFp = CollectionsApiFp;
696
831
  const CollectionsApiFactory = function (configuration, basePath, axios) {
697
832
  const localVarFp = (0, exports.CollectionsApiFp)(configuration);
698
833
  return {
834
+ /**
835
+ *
836
+ * @summary Get website collection
837
+ * @param {CollectionsApiGetCollectionRequest} requestParameters Request parameters.
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ getCollection(requestParameters, options) {
842
+ return localVarFp.getCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(axios, basePath));
843
+ },
699
844
  /**
700
845
  *
701
846
  * @summary List website collections
@@ -746,6 +891,17 @@ exports.CollectionsApiFactory = CollectionsApiFactory;
746
891
  * @extends {BaseAPI}
747
892
  */
748
893
  class CollectionsApi extends base_1.BaseAPI {
894
+ /**
895
+ *
896
+ * @summary Get website collection
897
+ * @param {CollectionsApiGetCollectionRequest} requestParameters Request parameters.
898
+ * @param {*} [options] Override http request option.
899
+ * @throws {RequiredError}
900
+ * @memberof CollectionsApi
901
+ */
902
+ getCollection(requestParameters, options) {
903
+ return (0, exports.CollectionsApiFp)(this.configuration).getCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(this.axios, this.basePath));
904
+ }
749
905
  /**
750
906
  *
751
907
  * @summary List website collections
@@ -1184,6 +1340,46 @@ exports.MenuApi = MenuApi;
1184
1340
  */
1185
1341
  const PagesApiAxiosParamCreator = function (configuration) {
1186
1342
  return {
1343
+ /**
1344
+ *
1345
+ * @summary Get website page
1346
+ * @param {string} project What project it is
1347
+ * @param {string} pageId Page\'s unique identifier
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ getPage: (project_1, pageId_1, ...args_1) => __awaiter(this, [project_1, pageId_1, ...args_1], void 0, function* (project, pageId, options = {}) {
1352
+ // verify required parameter 'project' is not null or undefined
1353
+ (0, common_1.assertParamExists)('getPage', 'project', project);
1354
+ // verify required parameter 'pageId' is not null or undefined
1355
+ (0, common_1.assertParamExists)('getPage', 'pageId', pageId);
1356
+ const localVarPath = `/v1/website/pages/{pageId}`
1357
+ .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId)));
1358
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1359
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1360
+ let baseOptions;
1361
+ if (configuration) {
1362
+ baseOptions = configuration.baseOptions;
1363
+ }
1364
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1365
+ const localVarHeaderParameter = {};
1366
+ const localVarQueryParameter = {};
1367
+ // authentication session-oauth required
1368
+ // oauth required
1369
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1370
+ // authentication api-key required
1371
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1372
+ if (project !== undefined) {
1373
+ localVarQueryParameter['project'] = project;
1374
+ }
1375
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1376
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1377
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1378
+ return {
1379
+ url: (0, common_1.toPathString)(localVarUrlObj),
1380
+ options: localVarRequestOptions,
1381
+ };
1382
+ }),
1187
1383
  /**
1188
1384
  *
1189
1385
  * @summary List website pages
@@ -1375,6 +1571,23 @@ exports.PagesApiAxiosParamCreator = PagesApiAxiosParamCreator;
1375
1571
  const PagesApiFp = function (configuration) {
1376
1572
  const localVarAxiosParamCreator = (0, exports.PagesApiAxiosParamCreator)(configuration);
1377
1573
  return {
1574
+ /**
1575
+ *
1576
+ * @summary Get website page
1577
+ * @param {string} project What project it is
1578
+ * @param {string} pageId Page\'s unique identifier
1579
+ * @param {*} [options] Override http request option.
1580
+ * @throws {RequiredError}
1581
+ */
1582
+ getPage(project, pageId, options) {
1583
+ return __awaiter(this, void 0, void 0, function* () {
1584
+ var _a, _b, _c;
1585
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPage(project, pageId, options);
1586
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1587
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PagesApi.getPage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1588
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1589
+ });
1590
+ },
1378
1591
  /**
1379
1592
  *
1380
1593
  * @summary List website pages
@@ -1459,6 +1672,16 @@ exports.PagesApiFp = PagesApiFp;
1459
1672
  const PagesApiFactory = function (configuration, basePath, axios) {
1460
1673
  const localVarFp = (0, exports.PagesApiFp)(configuration);
1461
1674
  return {
1675
+ /**
1676
+ *
1677
+ * @summary Get website page
1678
+ * @param {PagesApiGetPageRequest} requestParameters Request parameters.
1679
+ * @param {*} [options] Override http request option.
1680
+ * @throws {RequiredError}
1681
+ */
1682
+ getPage(requestParameters, options) {
1683
+ return localVarFp.getPage(requestParameters.project, requestParameters.pageId, options).then((request) => request(axios, basePath));
1684
+ },
1462
1685
  /**
1463
1686
  *
1464
1687
  * @summary List website pages
@@ -1509,6 +1732,17 @@ exports.PagesApiFactory = PagesApiFactory;
1509
1732
  * @extends {BaseAPI}
1510
1733
  */
1511
1734
  class PagesApi extends base_1.BaseAPI {
1735
+ /**
1736
+ *
1737
+ * @summary Get website page
1738
+ * @param {PagesApiGetPageRequest} requestParameters Request parameters.
1739
+ * @param {*} [options] Override http request option.
1740
+ * @throws {RequiredError}
1741
+ * @memberof PagesApi
1742
+ */
1743
+ getPage(requestParameters, options) {
1744
+ return (0, exports.PagesApiFp)(this.configuration).getPage(requestParameters.project, requestParameters.pageId, options).then((request) => request(this.axios, this.basePath));
1745
+ }
1512
1746
  /**
1513
1747
  *
1514
1748
  * @summary List website pages
package/dist/base.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.15.0
5
+ * The version of the OpenAPI document: 0.17.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.15.0
8
+ * The version of the OpenAPI document: 0.17.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.15.0
5
+ * The version of the OpenAPI document: 0.17.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.15.0
8
+ * The version of the OpenAPI document: 0.17.0
9
9
  *
10
10
  *
11
11
  * 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.15.0
5
+ * The version of the OpenAPI document: 0.17.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.15.0
8
+ * The version of the OpenAPI document: 0.17.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).