@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
package/.openapi-generator/FILES
CHANGED
|
@@ -11,6 +11,7 @@ docs/InvitationControllerApi.md
|
|
|
11
11
|
docs/InvitationQueryControllerApi.md
|
|
12
12
|
docs/InvitationViewResponse.md
|
|
13
13
|
docs/InviteMemberRequest.md
|
|
14
|
+
docs/OrganizationSummaryViewResponse.md
|
|
14
15
|
docs/PhotoRequest.md
|
|
15
16
|
docs/PresignedUrlResponse.md
|
|
16
17
|
docs/PresignedUrlsResponse.md
|
|
@@ -18,11 +19,15 @@ docs/RolesRequest.md
|
|
|
18
19
|
docs/SocialMediaRequest.md
|
|
19
20
|
docs/SocialMediasRequest.md
|
|
20
21
|
docs/UploadAcknowledgmentResponse.md
|
|
22
|
+
docs/UserContextViewResponse.md
|
|
23
|
+
docs/UserQueryControllerApi.md
|
|
24
|
+
docs/UserSummaryViewResponse.md
|
|
21
25
|
package.json
|
|
22
26
|
src/apis/AgencyControllerApi.ts
|
|
23
27
|
src/apis/AgencyQueryControllerApi.ts
|
|
24
28
|
src/apis/InvitationControllerApi.ts
|
|
25
29
|
src/apis/InvitationQueryControllerApi.ts
|
|
30
|
+
src/apis/UserQueryControllerApi.ts
|
|
26
31
|
src/apis/index.ts
|
|
27
32
|
src/index.ts
|
|
28
33
|
src/models/AddressRequest.ts
|
|
@@ -30,6 +35,7 @@ src/models/CreateAgencyRequest.ts
|
|
|
30
35
|
src/models/IdResponse.ts
|
|
31
36
|
src/models/InvitationViewResponse.ts
|
|
32
37
|
src/models/InviteMemberRequest.ts
|
|
38
|
+
src/models/OrganizationSummaryViewResponse.ts
|
|
33
39
|
src/models/PhotoRequest.ts
|
|
34
40
|
src/models/PresignedUrlResponse.ts
|
|
35
41
|
src/models/PresignedUrlsResponse.ts
|
|
@@ -37,6 +43,8 @@ src/models/RolesRequest.ts
|
|
|
37
43
|
src/models/SocialMediaRequest.ts
|
|
38
44
|
src/models/SocialMediasRequest.ts
|
|
39
45
|
src/models/UploadAcknowledgmentResponse.ts
|
|
46
|
+
src/models/UserContextViewResponse.ts
|
|
47
|
+
src/models/UserSummaryViewResponse.ts
|
|
40
48
|
src/models/index.ts
|
|
41
49
|
src/runtime.ts
|
|
42
50
|
tsconfig.esm.json
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @homespot-sdk/api@0.0.
|
|
1
|
+
# @homespot-sdk/api@0.0.630
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -68,6 +68,7 @@ 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
|
|
@@ -77,6 +78,7 @@ All URIs are relative to *http://localhost:8080*
|
|
|
77
78
|
- [IdResponse](docs/IdResponse.md)
|
|
78
79
|
- [InvitationViewResponse](docs/InvitationViewResponse.md)
|
|
79
80
|
- [InviteMemberRequest](docs/InviteMemberRequest.md)
|
|
81
|
+
- [OrganizationSummaryViewResponse](docs/OrganizationSummaryViewResponse.md)
|
|
80
82
|
- [PhotoRequest](docs/PhotoRequest.md)
|
|
81
83
|
- [PresignedUrlResponse](docs/PresignedUrlResponse.md)
|
|
82
84
|
- [PresignedUrlsResponse](docs/PresignedUrlsResponse.md)
|
|
@@ -84,6 +86,8 @@ All URIs are relative to *http://localhost:8080*
|
|
|
84
86
|
- [SocialMediaRequest](docs/SocialMediaRequest.md)
|
|
85
87
|
- [SocialMediasRequest](docs/SocialMediasRequest.md)
|
|
86
88
|
- [UploadAcknowledgmentResponse](docs/UploadAcknowledgmentResponse.md)
|
|
89
|
+
- [UserContextViewResponse](docs/UserContextViewResponse.md)
|
|
90
|
+
- [UserSummaryViewResponse](docs/UserSummaryViewResponse.md)
|
|
87
91
|
|
|
88
92
|
### Authorization
|
|
89
93
|
|
|
@@ -107,7 +111,7 @@ and is automatically generated by the
|
|
|
107
111
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
108
112
|
|
|
109
113
|
- API version: `v1`
|
|
110
|
-
- Package version: `0.0.
|
|
114
|
+
- Package version: `0.0.630`
|
|
111
115
|
- Generator version: `7.18.0`
|
|
112
116
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
113
117
|
|
|
@@ -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);
|
|
@@ -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
|
@@ -64,7 +64,6 @@ export interface InvitationViewResponse {
|
|
|
64
64
|
export declare const InvitationViewResponseStatusEnum: {
|
|
65
65
|
readonly Pending: "PENDING";
|
|
66
66
|
readonly Accepted: "ACCEPTED";
|
|
67
|
-
readonly Rejected: "REJECTED";
|
|
68
67
|
readonly Cancelled: "CANCELLED";
|
|
69
68
|
readonly Expired: "EXPIRED";
|
|
70
69
|
};
|
|
@@ -0,0 +1,100 @@
|
|
|
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 OrganizationSummaryViewResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface OrganizationSummaryViewResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrganizationSummaryViewResponse
|
|
22
|
+
*/
|
|
23
|
+
agencyId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof OrganizationSummaryViewResponse
|
|
28
|
+
*/
|
|
29
|
+
isOwner: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OrganizationSummaryViewResponse
|
|
34
|
+
*/
|
|
35
|
+
agencyName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OrganizationSummaryViewResponse
|
|
40
|
+
*/
|
|
41
|
+
subDomain: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof OrganizationSummaryViewResponse
|
|
46
|
+
*/
|
|
47
|
+
roleId?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof OrganizationSummaryViewResponse
|
|
52
|
+
*/
|
|
53
|
+
memberId: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof OrganizationSummaryViewResponse
|
|
58
|
+
*/
|
|
59
|
+
roleName: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof OrganizationSummaryViewResponse
|
|
64
|
+
*/
|
|
65
|
+
authorities: Array<OrganizationSummaryViewResponseAuthoritiesEnum>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof OrganizationSummaryViewResponse
|
|
70
|
+
*/
|
|
71
|
+
status: OrganizationSummaryViewResponseStatusEnum;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const OrganizationSummaryViewResponseAuthoritiesEnum: {
|
|
77
|
+
readonly PropertiesRead: "properties_read";
|
|
78
|
+
readonly PropertiesWrite: "properties_write";
|
|
79
|
+
readonly AgentsRead: "agents_read";
|
|
80
|
+
readonly AgentsWrite: "agents_write";
|
|
81
|
+
};
|
|
82
|
+
export type OrganizationSummaryViewResponseAuthoritiesEnum = typeof OrganizationSummaryViewResponseAuthoritiesEnum[keyof typeof OrganizationSummaryViewResponseAuthoritiesEnum];
|
|
83
|
+
/**
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
export declare const OrganizationSummaryViewResponseStatusEnum: {
|
|
87
|
+
readonly New: "NEW";
|
|
88
|
+
readonly Active: "ACTIVE";
|
|
89
|
+
readonly PaymentFailed: "PAYMENT_FAILED";
|
|
90
|
+
readonly Inactive: "INACTIVE";
|
|
91
|
+
};
|
|
92
|
+
export type OrganizationSummaryViewResponseStatusEnum = typeof OrganizationSummaryViewResponseStatusEnum[keyof typeof OrganizationSummaryViewResponseStatusEnum];
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the OrganizationSummaryViewResponse interface.
|
|
95
|
+
*/
|
|
96
|
+
export declare function instanceOfOrganizationSummaryViewResponse(value: object): value is OrganizationSummaryViewResponse;
|
|
97
|
+
export declare function OrganizationSummaryViewResponseFromJSON(json: any): OrganizationSummaryViewResponse;
|
|
98
|
+
export declare function OrganizationSummaryViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationSummaryViewResponse;
|
|
99
|
+
export declare function OrganizationSummaryViewResponseToJSON(json: any): OrganizationSummaryViewResponse;
|
|
100
|
+
export declare function OrganizationSummaryViewResponseToJSONTyped(value?: OrganizationSummaryViewResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const OrganizationSummaryViewResponseAuthoritiesEnum = {
|
|
18
|
+
PropertiesRead: 'properties_read',
|
|
19
|
+
PropertiesWrite: 'properties_write',
|
|
20
|
+
AgentsRead: 'agents_read',
|
|
21
|
+
AgentsWrite: 'agents_write'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const OrganizationSummaryViewResponseStatusEnum = {
|
|
27
|
+
New: 'NEW',
|
|
28
|
+
Active: 'ACTIVE',
|
|
29
|
+
PaymentFailed: 'PAYMENT_FAILED',
|
|
30
|
+
Inactive: 'INACTIVE'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the OrganizationSummaryViewResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfOrganizationSummaryViewResponse(value) {
|
|
36
|
+
if (!('agencyId' in value) || value['agencyId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('isOwner' in value) || value['isOwner'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('agencyName' in value) || value['agencyName'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('subDomain' in value) || value['subDomain'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('memberId' in value) || value['memberId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('roleName' in value) || value['roleName'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('authorities' in value) || value['authorities'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
export function OrganizationSummaryViewResponseFromJSON(json) {
|
|
55
|
+
return OrganizationSummaryViewResponseFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
export function OrganizationSummaryViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'agencyId': json['agencyId'],
|
|
63
|
+
'isOwner': json['isOwner'],
|
|
64
|
+
'agencyName': json['agencyName'],
|
|
65
|
+
'subDomain': json['subDomain'],
|
|
66
|
+
'roleId': json['roleId'] == null ? undefined : json['roleId'],
|
|
67
|
+
'memberId': json['memberId'],
|
|
68
|
+
'roleName': json['roleName'],
|
|
69
|
+
'authorities': json['authorities'],
|
|
70
|
+
'status': json['status'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export function OrganizationSummaryViewResponseToJSON(json) {
|
|
74
|
+
return OrganizationSummaryViewResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
export function OrganizationSummaryViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'agencyId': value['agencyId'],
|
|
82
|
+
'isOwner': value['isOwner'],
|
|
83
|
+
'agencyName': value['agencyName'],
|
|
84
|
+
'subDomain': value['subDomain'],
|
|
85
|
+
'roleId': value['roleId'],
|
|
86
|
+
'memberId': value['memberId'],
|
|
87
|
+
'roleName': value['roleName'],
|
|
88
|
+
'authorities': value['authorities'],
|
|
89
|
+
'status': value['status'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { OrganizationSummaryViewResponse } from './OrganizationSummaryViewResponse';
|
|
13
|
+
import type { UserSummaryViewResponse } from './UserSummaryViewResponse';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UserContextViewResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface UserContextViewResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {UserSummaryViewResponse}
|
|
23
|
+
* @memberof UserContextViewResponse
|
|
24
|
+
*/
|
|
25
|
+
user: UserSummaryViewResponse;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<OrganizationSummaryViewResponse>}
|
|
29
|
+
* @memberof UserContextViewResponse
|
|
30
|
+
*/
|
|
31
|
+
organizations: Array<OrganizationSummaryViewResponse>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the UserContextViewResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfUserContextViewResponse(value: object): value is UserContextViewResponse;
|
|
37
|
+
export declare function UserContextViewResponseFromJSON(json: any): UserContextViewResponse;
|
|
38
|
+
export declare function UserContextViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserContextViewResponse;
|
|
39
|
+
export declare function UserContextViewResponseToJSON(json: any): UserContextViewResponse;
|
|
40
|
+
export declare function UserContextViewResponseToJSONTyped(value?: UserContextViewResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { OrganizationSummaryViewResponseFromJSON, OrganizationSummaryViewResponseToJSON, } from './OrganizationSummaryViewResponse';
|
|
15
|
+
import { UserSummaryViewResponseFromJSON, UserSummaryViewResponseToJSON, } from './UserSummaryViewResponse';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the UserContextViewResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfUserContextViewResponse(value) {
|
|
20
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('organizations' in value) || value['organizations'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function UserContextViewResponseFromJSON(json) {
|
|
27
|
+
return UserContextViewResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function UserContextViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'user': UserSummaryViewResponseFromJSON(json['user']),
|
|
35
|
+
'organizations': (json['organizations'].map(OrganizationSummaryViewResponseFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function UserContextViewResponseToJSON(json) {
|
|
39
|
+
return UserContextViewResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function UserContextViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'user': UserSummaryViewResponseToJSON(value['user']),
|
|
47
|
+
'organizations': (value['organizations'].map(OrganizationSummaryViewResponseToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 UserSummaryViewResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface UserSummaryViewResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserSummaryViewResponse
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserSummaryViewResponse
|
|
28
|
+
*/
|
|
29
|
+
firstName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UserSummaryViewResponse
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UserSummaryViewResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUserSummaryViewResponse(value: object): value is UserSummaryViewResponse;
|
|
41
|
+
export declare function UserSummaryViewResponseFromJSON(json: any): UserSummaryViewResponse;
|
|
42
|
+
export declare function UserSummaryViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSummaryViewResponse;
|
|
43
|
+
export declare function UserSummaryViewResponseToJSON(json: any): UserSummaryViewResponse;
|
|
44
|
+
export declare function UserSummaryViewResponseToJSONTyped(value?: UserSummaryViewResponse | null, ignoreDiscriminator?: boolean): any;
|