@homespot-sdk/api 0.0.629 → 0.0.631
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/.openapi-generator/FILES +12 -0
- package/README.md +9 -3
- package/dist/apis/AgencyQueryControllerApi.d.ts +5 -4
- package/dist/apis/AgencyQueryControllerApi.js +4 -2
- package/dist/apis/UserQueryControllerApi.d.ts +42 -0
- package/dist/apis/UserQueryControllerApi.js +61 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +5 -4
- package/dist/esm/apis/AgencyQueryControllerApi.js +4 -2
- package/dist/esm/apis/UserQueryControllerApi.d.ts +42 -0
- package/dist/esm/apis/UserQueryControllerApi.js +57 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AddressViewResponse.d.ts +56 -0
- package/dist/esm/models/AddressViewResponse.js +59 -0
- package/dist/esm/models/AgencyViewResponse.d.ts +69 -0
- package/dist/esm/models/AgencyViewResponse.js +68 -0
- package/dist/esm/models/InvitationViewResponse.d.ts +0 -1
- package/dist/esm/models/InvitationViewResponse.js +0 -1
- package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +100 -0
- package/dist/esm/models/OrganizationSummaryViewResponse.js +91 -0
- package/dist/esm/models/UserContextViewResponse.d.ts +40 -0
- package/dist/esm/models/UserContextViewResponse.js +49 -0
- package/dist/esm/models/UserSummaryViewResponse.d.ts +44 -0
- package/dist/esm/models/UserSummaryViewResponse.js +51 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/AddressViewResponse.d.ts +56 -0
- package/dist/models/AddressViewResponse.js +66 -0
- package/dist/models/AgencyViewResponse.d.ts +69 -0
- package/dist/models/AgencyViewResponse.js +75 -0
- package/dist/models/InvitationViewResponse.d.ts +0 -1
- package/dist/models/InvitationViewResponse.js +0 -1
- package/dist/models/OrganizationSummaryViewResponse.d.ts +100 -0
- package/dist/models/OrganizationSummaryViewResponse.js +99 -0
- package/dist/models/UserContextViewResponse.d.ts +40 -0
- package/dist/models/UserContextViewResponse.js +56 -0
- package/dist/models/UserSummaryViewResponse.d.ts +44 -0
- package/dist/models/UserSummaryViewResponse.js +58 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AddressViewResponse.md +42 -0
- package/docs/AgencyQueryControllerApi.md +3 -3
- package/docs/AgencyViewResponse.md +46 -0
- package/docs/OrganizationSummaryViewResponse.md +50 -0
- package/docs/UserContextViewResponse.md +36 -0
- package/docs/UserQueryControllerApi.md +70 -0
- package/docs/UserSummaryViewResponse.md +38 -0
- package/package.json +1 -1
- package/src/apis/AgencyQueryControllerApi.ts +14 -6
- package/src/apis/UserQueryControllerApi.ts +83 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressViewResponse.ts +102 -0
- package/src/models/AgencyViewResponse.ts +128 -0
- package/src/models/InvitationViewResponse.ts +0 -1
- package/src/models/OrganizationSummaryViewResponse.ts +161 -0
- package/src/models/UserContextViewResponse.ts +90 -0
- package/src/models/UserSummaryViewResponse.ts +84 -0
- package/src/models/index.ts +5 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -3,14 +3,17 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
docs/AddressRequest.md
|
|
6
|
+
docs/AddressViewResponse.md
|
|
6
7
|
docs/AgencyControllerApi.md
|
|
7
8
|
docs/AgencyQueryControllerApi.md
|
|
9
|
+
docs/AgencyViewResponse.md
|
|
8
10
|
docs/CreateAgencyRequest.md
|
|
9
11
|
docs/IdResponse.md
|
|
10
12
|
docs/InvitationControllerApi.md
|
|
11
13
|
docs/InvitationQueryControllerApi.md
|
|
12
14
|
docs/InvitationViewResponse.md
|
|
13
15
|
docs/InviteMemberRequest.md
|
|
16
|
+
docs/OrganizationSummaryViewResponse.md
|
|
14
17
|
docs/PhotoRequest.md
|
|
15
18
|
docs/PresignedUrlResponse.md
|
|
16
19
|
docs/PresignedUrlsResponse.md
|
|
@@ -18,18 +21,25 @@ docs/RolesRequest.md
|
|
|
18
21
|
docs/SocialMediaRequest.md
|
|
19
22
|
docs/SocialMediasRequest.md
|
|
20
23
|
docs/UploadAcknowledgmentResponse.md
|
|
24
|
+
docs/UserContextViewResponse.md
|
|
25
|
+
docs/UserQueryControllerApi.md
|
|
26
|
+
docs/UserSummaryViewResponse.md
|
|
21
27
|
package.json
|
|
22
28
|
src/apis/AgencyControllerApi.ts
|
|
23
29
|
src/apis/AgencyQueryControllerApi.ts
|
|
24
30
|
src/apis/InvitationControllerApi.ts
|
|
25
31
|
src/apis/InvitationQueryControllerApi.ts
|
|
32
|
+
src/apis/UserQueryControllerApi.ts
|
|
26
33
|
src/apis/index.ts
|
|
27
34
|
src/index.ts
|
|
28
35
|
src/models/AddressRequest.ts
|
|
36
|
+
src/models/AddressViewResponse.ts
|
|
37
|
+
src/models/AgencyViewResponse.ts
|
|
29
38
|
src/models/CreateAgencyRequest.ts
|
|
30
39
|
src/models/IdResponse.ts
|
|
31
40
|
src/models/InvitationViewResponse.ts
|
|
32
41
|
src/models/InviteMemberRequest.ts
|
|
42
|
+
src/models/OrganizationSummaryViewResponse.ts
|
|
33
43
|
src/models/PhotoRequest.ts
|
|
34
44
|
src/models/PresignedUrlResponse.ts
|
|
35
45
|
src/models/PresignedUrlsResponse.ts
|
|
@@ -37,6 +47,8 @@ src/models/RolesRequest.ts
|
|
|
37
47
|
src/models/SocialMediaRequest.ts
|
|
38
48
|
src/models/SocialMediasRequest.ts
|
|
39
49
|
src/models/UploadAcknowledgmentResponse.ts
|
|
50
|
+
src/models/UserContextViewResponse.ts
|
|
51
|
+
src/models/UserSummaryViewResponse.ts
|
|
40
52
|
src/models/index.ts
|
|
41
53
|
src/runtime.ts
|
|
42
54
|
tsconfig.esm.json
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @homespot-sdk/api@0.0.
|
|
1
|
+
# @homespot-sdk/api@0.0.631
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -68,15 +68,19 @@ All URIs are relative to *http://localhost:8080*
|
|
|
68
68
|
*InvitationControllerApi* | [**inviteAccepted**](docs/InvitationControllerApi.md#inviteaccepted) | **POST** /agency/{agencyId}/invitation/{invitationId} |
|
|
69
69
|
*InvitationControllerApi* | [**inviteMember**](docs/InvitationControllerApi.md#invitememberoperation) | **POST** /agency/{agencyId}/invitation |
|
|
70
70
|
*InvitationQueryControllerApi* | [**getAllInvitations**](docs/InvitationQueryControllerApi.md#getallinvitations) | **GET** /agency/{agencyId}/invitation |
|
|
71
|
+
*UserQueryControllerApi* | [**getMe**](docs/UserQueryControllerApi.md#getme) | **GET** /user/me |
|
|
71
72
|
|
|
72
73
|
|
|
73
74
|
### Models
|
|
74
75
|
|
|
75
76
|
- [AddressRequest](docs/AddressRequest.md)
|
|
77
|
+
- [AddressViewResponse](docs/AddressViewResponse.md)
|
|
78
|
+
- [AgencyViewResponse](docs/AgencyViewResponse.md)
|
|
76
79
|
- [CreateAgencyRequest](docs/CreateAgencyRequest.md)
|
|
77
80
|
- [IdResponse](docs/IdResponse.md)
|
|
78
81
|
- [InvitationViewResponse](docs/InvitationViewResponse.md)
|
|
79
82
|
- [InviteMemberRequest](docs/InviteMemberRequest.md)
|
|
83
|
+
- [OrganizationSummaryViewResponse](docs/OrganizationSummaryViewResponse.md)
|
|
80
84
|
- [PhotoRequest](docs/PhotoRequest.md)
|
|
81
85
|
- [PresignedUrlResponse](docs/PresignedUrlResponse.md)
|
|
82
86
|
- [PresignedUrlsResponse](docs/PresignedUrlsResponse.md)
|
|
@@ -84,6 +88,8 @@ All URIs are relative to *http://localhost:8080*
|
|
|
84
88
|
- [SocialMediaRequest](docs/SocialMediaRequest.md)
|
|
85
89
|
- [SocialMediasRequest](docs/SocialMediasRequest.md)
|
|
86
90
|
- [UploadAcknowledgmentResponse](docs/UploadAcknowledgmentResponse.md)
|
|
91
|
+
- [UserContextViewResponse](docs/UserContextViewResponse.md)
|
|
92
|
+
- [UserSummaryViewResponse](docs/UserSummaryViewResponse.md)
|
|
87
93
|
|
|
88
94
|
### Authorization
|
|
89
95
|
|
|
@@ -95,7 +101,7 @@ Authentication schemes defined for the API:
|
|
|
95
101
|
|
|
96
102
|
- **Type**: OAuth
|
|
97
103
|
- **Flow**: accessCode
|
|
98
|
-
- **Authorization URL**: http://
|
|
104
|
+
- **Authorization URL**: http://localhost:8088/realms/homespot/protocol/openid-connect/auth
|
|
99
105
|
- **Scopes**:
|
|
100
106
|
- `openid`: OpenID Connect
|
|
101
107
|
- `profile`: User profile
|
|
@@ -107,7 +113,7 @@ and is automatically generated by the
|
|
|
107
113
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
108
114
|
|
|
109
115
|
- API version: `v1`
|
|
110
|
-
- Package version: `0.0.
|
|
116
|
+
- Package version: `0.0.631`
|
|
111
117
|
- Generator version: `7.18.0`
|
|
112
118
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
113
119
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import type { AgencyViewResponse } from '../models/index';
|
|
13
14
|
export interface GetAgencyRequest {
|
|
14
15
|
agencyId: string;
|
|
15
16
|
}
|
|
@@ -27,10 +28,10 @@ export interface AgencyQueryControllerApiInterface {
|
|
|
27
28
|
* @throws {RequiredError}
|
|
28
29
|
* @memberof AgencyQueryControllerApiInterface
|
|
29
30
|
*/
|
|
30
|
-
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
31
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>>;
|
|
31
32
|
/**
|
|
32
33
|
*/
|
|
33
|
-
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
34
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
*
|
|
@@ -38,8 +39,8 @@ export interface AgencyQueryControllerApiInterface {
|
|
|
38
39
|
export declare class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQueryControllerApiInterface {
|
|
39
40
|
/**
|
|
40
41
|
*/
|
|
41
|
-
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
42
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>>;
|
|
42
43
|
/**
|
|
43
44
|
*/
|
|
44
|
-
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
45
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
|
|
45
46
|
}
|
|
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.AgencyQueryControllerApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
27
28
|
/**
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
@@ -49,14 +50,15 @@ class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
|
49
50
|
headers: headerParameters,
|
|
50
51
|
query: queryParameters,
|
|
51
52
|
}, initOverrides);
|
|
52
|
-
return new runtime.
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgencyViewResponseFromJSON)(jsonValue));
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
57
|
*/
|
|
57
58
|
getAgency(requestParameters, initOverrides) {
|
|
58
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
yield this.getAgencyRaw(requestParameters, initOverrides);
|
|
60
|
+
const response = yield this.getAgencyRaw(requestParameters, initOverrides);
|
|
61
|
+
return yield response.value();
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
64
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { UserContextViewResponse } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* UserQueryControllerApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface UserQueryControllerApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface UserQueryControllerApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
* @memberof UserQueryControllerApiInterface
|
|
26
|
+
*/
|
|
27
|
+
getMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserContextViewResponse>>;
|
|
28
|
+
/**
|
|
29
|
+
*/
|
|
30
|
+
getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserContextViewResponse>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class UserQueryControllerApi extends runtime.BaseAPI implements UserQueryControllerApiInterface {
|
|
36
|
+
/**
|
|
37
|
+
*/
|
|
38
|
+
getMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserContextViewResponse>>;
|
|
39
|
+
/**
|
|
40
|
+
*/
|
|
41
|
+
getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserContextViewResponse>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Service API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.UserQueryControllerApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class UserQueryControllerApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
getMeRaw(initOverrides) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
39
|
+
// oauth required
|
|
40
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
41
|
+
}
|
|
42
|
+
let urlPath = `/user/me`;
|
|
43
|
+
const response = yield this.request({
|
|
44
|
+
path: urlPath,
|
|
45
|
+
method: 'GET',
|
|
46
|
+
headers: headerParameters,
|
|
47
|
+
query: queryParameters,
|
|
48
|
+
}, initOverrides);
|
|
49
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserContextViewResponseFromJSON)(jsonValue));
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*/
|
|
54
|
+
getMe(initOverrides) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const response = yield this.getMeRaw(initOverrides);
|
|
57
|
+
return yield response.value();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.UserQueryControllerApi = UserQueryControllerApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -20,3 +20,4 @@ __exportStar(require("./AgencyControllerApi"), exports);
|
|
|
20
20
|
__exportStar(require("./AgencyQueryControllerApi"), exports);
|
|
21
21
|
__exportStar(require("./InvitationControllerApi"), exports);
|
|
22
22
|
__exportStar(require("./InvitationQueryControllerApi"), exports);
|
|
23
|
+
__exportStar(require("./UserQueryControllerApi"), exports);
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import type { AgencyViewResponse } from '../models/index';
|
|
13
14
|
export interface GetAgencyRequest {
|
|
14
15
|
agencyId: string;
|
|
15
16
|
}
|
|
@@ -27,10 +28,10 @@ export interface AgencyQueryControllerApiInterface {
|
|
|
27
28
|
* @throws {RequiredError}
|
|
28
29
|
* @memberof AgencyQueryControllerApiInterface
|
|
29
30
|
*/
|
|
30
|
-
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
31
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>>;
|
|
31
32
|
/**
|
|
32
33
|
*/
|
|
33
|
-
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
34
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
*
|
|
@@ -38,8 +39,8 @@ export interface AgencyQueryControllerApiInterface {
|
|
|
38
39
|
export declare class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQueryControllerApiInterface {
|
|
39
40
|
/**
|
|
40
41
|
*/
|
|
41
|
-
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
42
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgencyViewResponse>>;
|
|
42
43
|
/**
|
|
43
44
|
*/
|
|
44
|
-
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
45
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgencyViewResponse>;
|
|
45
46
|
}
|
|
@@ -21,6 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
+
import { AgencyViewResponseFromJSON, } from '../models/index';
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
*/
|
|
@@ -46,14 +47,15 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
|
46
47
|
headers: headerParameters,
|
|
47
48
|
query: queryParameters,
|
|
48
49
|
}, initOverrides);
|
|
49
|
-
return new runtime.
|
|
50
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AgencyViewResponseFromJSON(jsonValue));
|
|
50
51
|
});
|
|
51
52
|
}
|
|
52
53
|
/**
|
|
53
54
|
*/
|
|
54
55
|
getAgency(requestParameters, initOverrides) {
|
|
55
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
yield this.getAgencyRaw(requestParameters, initOverrides);
|
|
57
|
+
const response = yield this.getAgencyRaw(requestParameters, initOverrides);
|
|
58
|
+
return yield response.value();
|
|
57
59
|
});
|
|
58
60
|
}
|
|
59
61
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { UserContextViewResponse } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* UserQueryControllerApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface UserQueryControllerApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface UserQueryControllerApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
* @memberof UserQueryControllerApiInterface
|
|
26
|
+
*/
|
|
27
|
+
getMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserContextViewResponse>>;
|
|
28
|
+
/**
|
|
29
|
+
*/
|
|
30
|
+
getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserContextViewResponse>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class UserQueryControllerApi extends runtime.BaseAPI implements UserQueryControllerApiInterface {
|
|
36
|
+
/**
|
|
37
|
+
*/
|
|
38
|
+
getMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserContextViewResponse>>;
|
|
39
|
+
/**
|
|
40
|
+
*/
|
|
41
|
+
getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserContextViewResponse>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { UserContextViewResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class UserQueryControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
*/
|
|
31
|
+
getMeRaw(initOverrides) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const queryParameters = {};
|
|
34
|
+
const headerParameters = {};
|
|
35
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
36
|
+
// oauth required
|
|
37
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
38
|
+
}
|
|
39
|
+
let urlPath = `/user/me`;
|
|
40
|
+
const response = yield this.request({
|
|
41
|
+
path: urlPath,
|
|
42
|
+
method: 'GET',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
}, initOverrides);
|
|
46
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserContextViewResponseFromJSON(jsonValue));
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
*/
|
|
51
|
+
getMe(initOverrides) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const response = yield this.getMeRaw(initOverrides);
|
|
54
|
+
return yield response.value();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AddressViewResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AddressViewResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AddressViewResponse
|
|
22
|
+
*/
|
|
23
|
+
country: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AddressViewResponse
|
|
28
|
+
*/
|
|
29
|
+
city: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AddressViewResponse
|
|
34
|
+
*/
|
|
35
|
+
district: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AddressViewResponse
|
|
40
|
+
*/
|
|
41
|
+
subdistrict: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AddressViewResponse
|
|
46
|
+
*/
|
|
47
|
+
street: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AddressViewResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAddressViewResponse(value: object): value is AddressViewResponse;
|
|
53
|
+
export declare function AddressViewResponseFromJSON(json: any): AddressViewResponse;
|
|
54
|
+
export declare function AddressViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressViewResponse;
|
|
55
|
+
export declare function AddressViewResponseToJSON(json: any): AddressViewResponse;
|
|
56
|
+
export declare function AddressViewResponseToJSONTyped(value?: AddressViewResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AddressViewResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAddressViewResponse(value) {
|
|
18
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('district' in value) || value['district'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('subdistrict' in value) || value['subdistrict'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('street' in value) || value['street'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function AddressViewResponseFromJSON(json) {
|
|
31
|
+
return AddressViewResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function AddressViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'country': json['country'],
|
|
39
|
+
'city': json['city'],
|
|
40
|
+
'district': json['district'],
|
|
41
|
+
'subdistrict': json['subdistrict'],
|
|
42
|
+
'street': json['street'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function AddressViewResponseToJSON(json) {
|
|
46
|
+
return AddressViewResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function AddressViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'country': value['country'],
|
|
54
|
+
'city': value['city'],
|
|
55
|
+
'district': value['district'],
|
|
56
|
+
'subdistrict': value['subdistrict'],
|
|
57
|
+
'street': value['street'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AddressViewResponse } from './AddressViewResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgencyViewResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AgencyViewResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AgencyViewResponse
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AgencyViewResponse
|
|
29
|
+
*/
|
|
30
|
+
email: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AgencyViewResponse
|
|
35
|
+
*/
|
|
36
|
+
seats: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AgencyViewResponse
|
|
41
|
+
*/
|
|
42
|
+
subDomain: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AgencyViewResponse
|
|
47
|
+
*/
|
|
48
|
+
phone: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {AddressViewResponse}
|
|
52
|
+
* @memberof AgencyViewResponse
|
|
53
|
+
*/
|
|
54
|
+
address: AddressViewResponse;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof AgencyViewResponse
|
|
59
|
+
*/
|
|
60
|
+
yearSince: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the AgencyViewResponse interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfAgencyViewResponse(value: object): value is AgencyViewResponse;
|
|
66
|
+
export declare function AgencyViewResponseFromJSON(json: any): AgencyViewResponse;
|
|
67
|
+
export declare function AgencyViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyViewResponse;
|
|
68
|
+
export declare function AgencyViewResponseToJSON(json: any): AgencyViewResponse;
|
|
69
|
+
export declare function AgencyViewResponseToJSONTyped(value?: AgencyViewResponse | null, ignoreDiscriminator?: boolean): any;
|