@homespot-sdk/api 0.0.628 → 0.0.630
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 +8 -0
- package/README.md +6 -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/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/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 +3 -0
- package/dist/esm/models/index.js +3 -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 +3 -0
- package/dist/models/index.js +3 -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/UserQueryControllerApi.ts +83 -0
- package/src/apis/index.ts +1 -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 +3 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# UserQueryControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8080*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getMe**](UserQueryControllerApi.md#getme) | **GET** /user/me | |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getMe
|
|
12
|
+
|
|
13
|
+
> UserContextViewResponse getMe()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
UserQueryControllerApi,
|
|
23
|
+
} from '@homespot-sdk/api';
|
|
24
|
+
import type { GetMeRequest } from '@homespot-sdk/api';
|
|
25
|
+
|
|
26
|
+
async function example() {
|
|
27
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
28
|
+
const config = new Configuration({
|
|
29
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
30
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
31
|
+
});
|
|
32
|
+
const api = new UserQueryControllerApi(config);
|
|
33
|
+
|
|
34
|
+
try {
|
|
35
|
+
const data = await api.getMe();
|
|
36
|
+
console.log(data);
|
|
37
|
+
} catch (error) {
|
|
38
|
+
console.error(error);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Run the test
|
|
43
|
+
example().catch(console.error);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
This endpoint does not need any parameter.
|
|
49
|
+
|
|
50
|
+
### Return type
|
|
51
|
+
|
|
52
|
+
[**UserContextViewResponse**](UserContextViewResponse.md)
|
|
53
|
+
|
|
54
|
+
### Authorization
|
|
55
|
+
|
|
56
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
57
|
+
|
|
58
|
+
### HTTP request headers
|
|
59
|
+
|
|
60
|
+
- **Content-Type**: Not defined
|
|
61
|
+
- **Accept**: `*/*`
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### HTTP response details
|
|
65
|
+
| Status code | Description | Response headers |
|
|
66
|
+
|-------------|-------------|------------------|
|
|
67
|
+
| **200** | OK | - |
|
|
68
|
+
|
|
69
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
70
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# UserSummaryViewResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`email` | string
|
|
10
|
+
`firstName` | string
|
|
11
|
+
`lastName` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { UserSummaryViewResponse } from '@homespot-sdk/api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"email": null,
|
|
21
|
+
"firstName": null,
|
|
22
|
+
"lastName": null,
|
|
23
|
+
} satisfies UserSummaryViewResponse
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as UserSummaryViewResponse
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
UserContextViewResponse,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
import {
|
|
21
|
+
UserContextViewResponseFromJSON,
|
|
22
|
+
UserContextViewResponseToJSON,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* UserQueryControllerApi - interface
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface UserQueryControllerApiInterface
|
|
30
|
+
*/
|
|
31
|
+
export interface UserQueryControllerApiInterface {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
* @memberof UserQueryControllerApiInterface
|
|
37
|
+
*/
|
|
38
|
+
getMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserContextViewResponse>>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*/
|
|
42
|
+
getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserContextViewResponse>;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export class UserQueryControllerApi extends runtime.BaseAPI implements UserQueryControllerApiInterface {
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*/
|
|
53
|
+
async getMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserContextViewResponse>> {
|
|
54
|
+
const queryParameters: any = {};
|
|
55
|
+
|
|
56
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
57
|
+
|
|
58
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
59
|
+
// oauth required
|
|
60
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
let urlPath = `/user/me`;
|
|
65
|
+
|
|
66
|
+
const response = await this.request({
|
|
67
|
+
path: urlPath,
|
|
68
|
+
method: 'GET',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
query: queryParameters,
|
|
71
|
+
}, initOverrides);
|
|
72
|
+
|
|
73
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserContextViewResponseFromJSON(jsonValue));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
*/
|
|
78
|
+
async getMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserContextViewResponse> {
|
|
79
|
+
const response = await this.getMeRaw(initOverrides);
|
|
80
|
+
return await response.value();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrganizationSummaryViewResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface OrganizationSummaryViewResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrganizationSummaryViewResponse
|
|
26
|
+
*/
|
|
27
|
+
agencyId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof OrganizationSummaryViewResponse
|
|
32
|
+
*/
|
|
33
|
+
isOwner: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OrganizationSummaryViewResponse
|
|
38
|
+
*/
|
|
39
|
+
agencyName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof OrganizationSummaryViewResponse
|
|
44
|
+
*/
|
|
45
|
+
subDomain: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof OrganizationSummaryViewResponse
|
|
50
|
+
*/
|
|
51
|
+
roleId?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof OrganizationSummaryViewResponse
|
|
56
|
+
*/
|
|
57
|
+
memberId: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof OrganizationSummaryViewResponse
|
|
62
|
+
*/
|
|
63
|
+
roleName: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof OrganizationSummaryViewResponse
|
|
68
|
+
*/
|
|
69
|
+
authorities: Array<OrganizationSummaryViewResponseAuthoritiesEnum>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof OrganizationSummaryViewResponse
|
|
74
|
+
*/
|
|
75
|
+
status: OrganizationSummaryViewResponseStatusEnum;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const OrganizationSummaryViewResponseAuthoritiesEnum = {
|
|
83
|
+
PropertiesRead: 'properties_read',
|
|
84
|
+
PropertiesWrite: 'properties_write',
|
|
85
|
+
AgentsRead: 'agents_read',
|
|
86
|
+
AgentsWrite: 'agents_write'
|
|
87
|
+
} as const;
|
|
88
|
+
export type OrganizationSummaryViewResponseAuthoritiesEnum = typeof OrganizationSummaryViewResponseAuthoritiesEnum[keyof typeof OrganizationSummaryViewResponseAuthoritiesEnum];
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export const OrganizationSummaryViewResponseStatusEnum = {
|
|
94
|
+
New: 'NEW',
|
|
95
|
+
Active: 'ACTIVE',
|
|
96
|
+
PaymentFailed: 'PAYMENT_FAILED',
|
|
97
|
+
Inactive: 'INACTIVE'
|
|
98
|
+
} as const;
|
|
99
|
+
export type OrganizationSummaryViewResponseStatusEnum = typeof OrganizationSummaryViewResponseStatusEnum[keyof typeof OrganizationSummaryViewResponseStatusEnum];
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the OrganizationSummaryViewResponse interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfOrganizationSummaryViewResponse(value: object): value is OrganizationSummaryViewResponse {
|
|
106
|
+
if (!('agencyId' in value) || value['agencyId'] === undefined) return false;
|
|
107
|
+
if (!('isOwner' in value) || value['isOwner'] === undefined) return false;
|
|
108
|
+
if (!('agencyName' in value) || value['agencyName'] === undefined) return false;
|
|
109
|
+
if (!('subDomain' in value) || value['subDomain'] === undefined) return false;
|
|
110
|
+
if (!('memberId' in value) || value['memberId'] === undefined) return false;
|
|
111
|
+
if (!('roleName' in value) || value['roleName'] === undefined) return false;
|
|
112
|
+
if (!('authorities' in value) || value['authorities'] === undefined) return false;
|
|
113
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function OrganizationSummaryViewResponseFromJSON(json: any): OrganizationSummaryViewResponse {
|
|
118
|
+
return OrganizationSummaryViewResponseFromJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function OrganizationSummaryViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationSummaryViewResponse {
|
|
122
|
+
if (json == null) {
|
|
123
|
+
return json;
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'agencyId': json['agencyId'],
|
|
128
|
+
'isOwner': json['isOwner'],
|
|
129
|
+
'agencyName': json['agencyName'],
|
|
130
|
+
'subDomain': json['subDomain'],
|
|
131
|
+
'roleId': json['roleId'] == null ? undefined : json['roleId'],
|
|
132
|
+
'memberId': json['memberId'],
|
|
133
|
+
'roleName': json['roleName'],
|
|
134
|
+
'authorities': json['authorities'],
|
|
135
|
+
'status': json['status'],
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function OrganizationSummaryViewResponseToJSON(json: any): OrganizationSummaryViewResponse {
|
|
140
|
+
return OrganizationSummaryViewResponseToJSONTyped(json, false);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function OrganizationSummaryViewResponseToJSONTyped(value?: OrganizationSummaryViewResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
144
|
+
if (value == null) {
|
|
145
|
+
return value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
|
|
150
|
+
'agencyId': value['agencyId'],
|
|
151
|
+
'isOwner': value['isOwner'],
|
|
152
|
+
'agencyName': value['agencyName'],
|
|
153
|
+
'subDomain': value['subDomain'],
|
|
154
|
+
'roleId': value['roleId'],
|
|
155
|
+
'memberId': value['memberId'],
|
|
156
|
+
'roleName': value['roleName'],
|
|
157
|
+
'authorities': value['authorities'],
|
|
158
|
+
'status': value['status'],
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { OrganizationSummaryViewResponse } from './OrganizationSummaryViewResponse';
|
|
17
|
+
import {
|
|
18
|
+
OrganizationSummaryViewResponseFromJSON,
|
|
19
|
+
OrganizationSummaryViewResponseFromJSONTyped,
|
|
20
|
+
OrganizationSummaryViewResponseToJSON,
|
|
21
|
+
OrganizationSummaryViewResponseToJSONTyped,
|
|
22
|
+
} from './OrganizationSummaryViewResponse';
|
|
23
|
+
import type { UserSummaryViewResponse } from './UserSummaryViewResponse';
|
|
24
|
+
import {
|
|
25
|
+
UserSummaryViewResponseFromJSON,
|
|
26
|
+
UserSummaryViewResponseFromJSONTyped,
|
|
27
|
+
UserSummaryViewResponseToJSON,
|
|
28
|
+
UserSummaryViewResponseToJSONTyped,
|
|
29
|
+
} from './UserSummaryViewResponse';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface UserContextViewResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface UserContextViewResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {UserSummaryViewResponse}
|
|
40
|
+
* @memberof UserContextViewResponse
|
|
41
|
+
*/
|
|
42
|
+
user: UserSummaryViewResponse;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<OrganizationSummaryViewResponse>}
|
|
46
|
+
* @memberof UserContextViewResponse
|
|
47
|
+
*/
|
|
48
|
+
organizations: Array<OrganizationSummaryViewResponse>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the UserContextViewResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfUserContextViewResponse(value: object): value is UserContextViewResponse {
|
|
55
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
56
|
+
if (!('organizations' in value) || value['organizations'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UserContextViewResponseFromJSON(json: any): UserContextViewResponse {
|
|
61
|
+
return UserContextViewResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UserContextViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserContextViewResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'user': UserSummaryViewResponseFromJSON(json['user']),
|
|
71
|
+
'organizations': ((json['organizations'] as Array<any>).map(OrganizationSummaryViewResponseFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function UserContextViewResponseToJSON(json: any): UserContextViewResponse {
|
|
76
|
+
return UserContextViewResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function UserContextViewResponseToJSONTyped(value?: UserContextViewResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'user': UserSummaryViewResponseToJSON(value['user']),
|
|
87
|
+
'organizations': ((value['organizations'] as Array<any>).map(OrganizationSummaryViewResponseToJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserSummaryViewResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface UserSummaryViewResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UserSummaryViewResponse
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserSummaryViewResponse
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UserSummaryViewResponse
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UserSummaryViewResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUserSummaryViewResponse(value: object): value is UserSummaryViewResponse {
|
|
46
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
47
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
48
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UserSummaryViewResponseFromJSON(json: any): UserSummaryViewResponse {
|
|
53
|
+
return UserSummaryViewResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UserSummaryViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSummaryViewResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'email': json['email'],
|
|
63
|
+
'firstName': json['firstName'],
|
|
64
|
+
'lastName': json['lastName'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function UserSummaryViewResponseToJSON(json: any): UserSummaryViewResponse {
|
|
69
|
+
return UserSummaryViewResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function UserSummaryViewResponseToJSONTyped(value?: UserSummaryViewResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'email': value['email'],
|
|
80
|
+
'firstName': value['firstName'],
|
|
81
|
+
'lastName': value['lastName'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './CreateAgencyRequest';
|
|
|
5
5
|
export * from './IdResponse';
|
|
6
6
|
export * from './InvitationViewResponse';
|
|
7
7
|
export * from './InviteMemberRequest';
|
|
8
|
+
export * from './OrganizationSummaryViewResponse';
|
|
8
9
|
export * from './PhotoRequest';
|
|
9
10
|
export * from './PresignedUrlResponse';
|
|
10
11
|
export * from './PresignedUrlsResponse';
|
|
@@ -12,3 +13,5 @@ export * from './RolesRequest';
|
|
|
12
13
|
export * from './SocialMediaRequest';
|
|
13
14
|
export * from './SocialMediasRequest';
|
|
14
15
|
export * from './UploadAcknowledgmentResponse';
|
|
16
|
+
export * from './UserContextViewResponse';
|
|
17
|
+
export * from './UserSummaryViewResponse';
|