@teemill/platform 0.31.0 → 0.32.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.31.0
7
+ * The version of the OpenAPI document: 0.32.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -544,6 +544,202 @@ export const ListCustomersGenderEnum = {
544
544
  Male: 'male',
545
545
  Female: 'female'
546
546
  };
547
+ /**
548
+ * DashboardApi - axios parameter creator
549
+ * @export
550
+ */
551
+ export const DashboardApiAxiosParamCreator = function (configuration) {
552
+ return {
553
+ /**
554
+ *
555
+ * @summary Get the platform\'s dashboard
556
+ * @param {string} project Project unique identifier
557
+ * @param {string} platformId The platform identifier
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ getDashboard: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
562
+ // verify required parameter 'project' is not null or undefined
563
+ assertParamExists('getDashboard', 'project', project);
564
+ // verify required parameter 'platformId' is not null or undefined
565
+ assertParamExists('getDashboard', 'platformId', platformId);
566
+ const localVarPath = `/v1/platform/{platformId}/dashboard`
567
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
568
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
569
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
570
+ let baseOptions;
571
+ if (configuration) {
572
+ baseOptions = configuration.baseOptions;
573
+ }
574
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
575
+ const localVarHeaderParameter = {};
576
+ const localVarQueryParameter = {};
577
+ // authentication session-oauth required
578
+ // oauth required
579
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
580
+ // authentication api-key required
581
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
582
+ if (project !== undefined) {
583
+ localVarQueryParameter['project'] = project;
584
+ }
585
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
586
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
587
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
588
+ return {
589
+ url: toPathString(localVarUrlObj),
590
+ options: localVarRequestOptions,
591
+ };
592
+ }),
593
+ /**
594
+ *
595
+ * @summary Save the platform\'s dashboard
596
+ * @param {string} project Project unique identifier
597
+ * @param {string} platformId The platform identifier
598
+ * @param {SaveDashboardRequest} saveDashboardRequest Save dashboard
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ */
602
+ saveDashboard: (project_1, platformId_1, saveDashboardRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, saveDashboardRequest_1, ...args_1], void 0, function* (project, platformId, saveDashboardRequest, options = {}) {
603
+ // verify required parameter 'project' is not null or undefined
604
+ assertParamExists('saveDashboard', 'project', project);
605
+ // verify required parameter 'platformId' is not null or undefined
606
+ assertParamExists('saveDashboard', 'platformId', platformId);
607
+ // verify required parameter 'saveDashboardRequest' is not null or undefined
608
+ assertParamExists('saveDashboard', 'saveDashboardRequest', saveDashboardRequest);
609
+ const localVarPath = `/v1/platform/{platformId}/dashboard`
610
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
612
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
613
+ let baseOptions;
614
+ if (configuration) {
615
+ baseOptions = configuration.baseOptions;
616
+ }
617
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
618
+ const localVarHeaderParameter = {};
619
+ const localVarQueryParameter = {};
620
+ // authentication session-oauth required
621
+ // oauth required
622
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
623
+ // authentication api-key required
624
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
625
+ if (project !== undefined) {
626
+ localVarQueryParameter['project'] = project;
627
+ }
628
+ localVarHeaderParameter['Content-Type'] = 'application/json';
629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
631
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
632
+ localVarRequestOptions.data = serializeDataIfNeeded(saveDashboardRequest, localVarRequestOptions, configuration);
633
+ return {
634
+ url: toPathString(localVarUrlObj),
635
+ options: localVarRequestOptions,
636
+ };
637
+ }),
638
+ };
639
+ };
640
+ /**
641
+ * DashboardApi - functional programming interface
642
+ * @export
643
+ */
644
+ export const DashboardApiFp = function (configuration) {
645
+ const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration);
646
+ return {
647
+ /**
648
+ *
649
+ * @summary Get the platform\'s dashboard
650
+ * @param {string} project Project unique identifier
651
+ * @param {string} platformId The platform identifier
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ */
655
+ getDashboard(project, platformId, options) {
656
+ return __awaiter(this, void 0, void 0, function* () {
657
+ var _a, _b, _c;
658
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDashboard(project, platformId, options);
659
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
660
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DashboardApi.getDashboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
661
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
662
+ });
663
+ },
664
+ /**
665
+ *
666
+ * @summary Save the platform\'s dashboard
667
+ * @param {string} project Project unique identifier
668
+ * @param {string} platformId The platform identifier
669
+ * @param {SaveDashboardRequest} saveDashboardRequest Save dashboard
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ saveDashboard(project, platformId, saveDashboardRequest, options) {
674
+ return __awaiter(this, void 0, void 0, function* () {
675
+ var _a, _b, _c;
676
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.saveDashboard(project, platformId, saveDashboardRequest, options);
677
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
678
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DashboardApi.saveDashboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
679
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
680
+ });
681
+ },
682
+ };
683
+ };
684
+ /**
685
+ * DashboardApi - factory interface
686
+ * @export
687
+ */
688
+ export const DashboardApiFactory = function (configuration, basePath, axios) {
689
+ const localVarFp = DashboardApiFp(configuration);
690
+ return {
691
+ /**
692
+ *
693
+ * @summary Get the platform\'s dashboard
694
+ * @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
695
+ * @param {*} [options] Override http request option.
696
+ * @throws {RequiredError}
697
+ */
698
+ getDashboard(requestParameters, options) {
699
+ return localVarFp.getDashboard(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
700
+ },
701
+ /**
702
+ *
703
+ * @summary Save the platform\'s dashboard
704
+ * @param {DashboardApiSaveDashboardRequest} requestParameters Request parameters.
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ saveDashboard(requestParameters, options) {
709
+ return localVarFp.saveDashboard(requestParameters.project, requestParameters.platformId, requestParameters.saveDashboardRequest, options).then((request) => request(axios, basePath));
710
+ },
711
+ };
712
+ };
713
+ /**
714
+ * DashboardApi - object-oriented interface
715
+ * @export
716
+ * @class DashboardApi
717
+ * @extends {BaseAPI}
718
+ */
719
+ export class DashboardApi extends BaseAPI {
720
+ /**
721
+ *
722
+ * @summary Get the platform\'s dashboard
723
+ * @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
724
+ * @param {*} [options] Override http request option.
725
+ * @throws {RequiredError}
726
+ * @memberof DashboardApi
727
+ */
728
+ getDashboard(requestParameters, options) {
729
+ return DashboardApiFp(this.configuration).getDashboard(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
730
+ }
731
+ /**
732
+ *
733
+ * @summary Save the platform\'s dashboard
734
+ * @param {DashboardApiSaveDashboardRequest} requestParameters Request parameters.
735
+ * @param {*} [options] Override http request option.
736
+ * @throws {RequiredError}
737
+ * @memberof DashboardApi
738
+ */
739
+ saveDashboard(requestParameters, options) {
740
+ return DashboardApiFp(this.configuration).saveDashboard(requestParameters.project, requestParameters.platformId, requestParameters.saveDashboardRequest, options).then((request) => request(this.axios, this.basePath));
741
+ }
742
+ }
547
743
  /**
548
744
  * EnquiriesApi - axios parameter creator
549
745
  * @export
@@ -2,7 +2,7 @@
2
2
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.31.0
5
+ * The version of the OpenAPI document: 0.32.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.31.0
7
+ * The version of the OpenAPI document: 0.32.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
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.31.0
5
+ * The version of the OpenAPI document: 0.32.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.31.0
7
+ * The version of the OpenAPI document: 0.32.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
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.31.0
5
+ * The version of the OpenAPI document: 0.32.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.31.0
7
+ * The version of the OpenAPI document: 0.32.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
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.31.0
5
+ * The version of the OpenAPI document: 0.32.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
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.31.0
7
+ * The version of the OpenAPI document: 0.32.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
  * Platform API
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.31.0
5
+ * The version of the OpenAPI document: 0.32.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
  * Platform API
6
6
  * Manage Your podOS platform
7
7
  *
8
- * The version of the OpenAPI document: 0.31.0
8
+ * The version of the OpenAPI document: 0.32.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,127 @@
1
+ # DashboardApi
2
+
3
+ All URIs are relative to *https://localhost:8080*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getDashboard**](#getdashboard) | **GET** /v1/platform/{platformId}/dashboard | Get the platform\'s dashboard|
8
+ |[**saveDashboard**](#savedashboard) | **PUT** /v1/platform/{platformId}/dashboard | Save the platform\'s dashboard|
9
+
10
+ # **getDashboard**
11
+ > GetDashboardResponse getDashboard()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ DashboardApi,
19
+ Configuration
20
+ } from '@teemill/platform';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new DashboardApi(configuration);
24
+
25
+ let project: string; //Project unique identifier (default to undefined)
26
+ let platformId: string; //The platform identifier (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getDashboard(
29
+ project,
30
+ platformId
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
39
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
40
+
41
+
42
+ ### Return type
43
+
44
+ **GetDashboardResponse**
45
+
46
+ ### Authorization
47
+
48
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Successfully retrieved the dashboard. | - |
60
+ |**401** | Not authorised to access this resource | - |
61
+ |**403** | Refuse to authorize | - |
62
+ |**404** | Resource not found | - |
63
+ |**500** | Unknown server error | - |
64
+
65
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
66
+
67
+ # **saveDashboard**
68
+ > GetDashboardResponse saveDashboard(saveDashboardRequest)
69
+
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ DashboardApi,
76
+ Configuration,
77
+ SaveDashboardRequest
78
+ } from '@teemill/platform';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new DashboardApi(configuration);
82
+
83
+ let project: string; //Project unique identifier (default to undefined)
84
+ let platformId: string; //The platform identifier (default to undefined)
85
+ let saveDashboardRequest: SaveDashboardRequest; //Save dashboard
86
+
87
+ const { status, data } = await apiInstance.saveDashboard(
88
+ project,
89
+ platformId,
90
+ saveDashboardRequest
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **saveDashboardRequest** | **SaveDashboardRequest**| Save dashboard | |
99
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
100
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
101
+
102
+
103
+ ### Return type
104
+
105
+ **GetDashboardResponse**
106
+
107
+ ### Authorization
108
+
109
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
110
+
111
+ ### HTTP request headers
112
+
113
+ - **Content-Type**: application/json
114
+ - **Accept**: application/json
115
+
116
+
117
+ ### HTTP response details
118
+ | Status code | Description | Response headers |
119
+ |-------------|-------------|------------------|
120
+ |**200** | Successfully retrieved the dashboard. | - |
121
+ |**401** | Not authorised to access this resource | - |
122
+ |**403** | Refuse to authorize | - |
123
+ |**404** | Resource not found | - |
124
+ |**500** | Unknown server error | - |
125
+
126
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
127
+
@@ -0,0 +1,30 @@
1
+ # DashboardItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **type** | **string** | | [default to undefined]
10
+ **properties** | **{ [key: string]: any; }** | | [default to undefined]
11
+ **published** | **boolean** | | [default to undefined]
12
+ **sortOrder** | **number** | | [default to undefined]
13
+ **items** | [**Array<DashboardItem>**](DashboardItem.md) | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { DashboardItem } from '@teemill/platform';
19
+
20
+ const instance: DashboardItem = {
21
+ id,
22
+ type,
23
+ properties,
24
+ published,
25
+ sortOrder,
26
+ items,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # GetDashboardResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array<DashboardItem>**](DashboardItem.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetDashboardResponse } from '@teemill/platform';
14
+
15
+ const instance: GetDashboardResponse = {
16
+ items,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # SaveDashboardRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array<DashboardItem>**](DashboardItem.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { SaveDashboardRequest } from '@teemill/platform';
14
+
15
+ const instance: SaveDashboardRequest = {
16
+ items,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Platform API
5
5
  * Manage Your podOS platform
6
6
  *
7
- * The version of the OpenAPI document: 0.31.0
7
+ * The version of the OpenAPI document: 0.32.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/platform",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "OpenAPI client for @teemill/platform",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {