@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,51 @@
|
|
|
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 UserSummaryViewResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUserSummaryViewResponse(value) {
|
|
18
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function UserSummaryViewResponseFromJSON(json) {
|
|
27
|
+
return UserSummaryViewResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function UserSummaryViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'email': json['email'],
|
|
35
|
+
'firstName': json['firstName'],
|
|
36
|
+
'lastName': json['lastName'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function UserSummaryViewResponseToJSON(json) {
|
|
40
|
+
return UserSummaryViewResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function UserSummaryViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'email': value['email'],
|
|
48
|
+
'firstName': value['firstName'],
|
|
49
|
+
'lastName': value['lastName'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from './CreateAgencyRequest';
|
|
|
3
3
|
export * from './IdResponse';
|
|
4
4
|
export * from './InvitationViewResponse';
|
|
5
5
|
export * from './InviteMemberRequest';
|
|
6
|
+
export * from './OrganizationSummaryViewResponse';
|
|
6
7
|
export * from './PhotoRequest';
|
|
7
8
|
export * from './PresignedUrlResponse';
|
|
8
9
|
export * from './PresignedUrlsResponse';
|
|
@@ -10,3 +11,5 @@ export * from './RolesRequest';
|
|
|
10
11
|
export * from './SocialMediaRequest';
|
|
11
12
|
export * from './SocialMediasRequest';
|
|
12
13
|
export * from './UploadAcknowledgmentResponse';
|
|
14
|
+
export * from './UserContextViewResponse';
|
|
15
|
+
export * from './UserSummaryViewResponse';
|
package/dist/esm/models/index.js
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';
|
|
@@ -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,99 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OrganizationSummaryViewResponseStatusEnum = exports.OrganizationSummaryViewResponseAuthoritiesEnum = void 0;
|
|
17
|
+
exports.instanceOfOrganizationSummaryViewResponse = instanceOfOrganizationSummaryViewResponse;
|
|
18
|
+
exports.OrganizationSummaryViewResponseFromJSON = OrganizationSummaryViewResponseFromJSON;
|
|
19
|
+
exports.OrganizationSummaryViewResponseFromJSONTyped = OrganizationSummaryViewResponseFromJSONTyped;
|
|
20
|
+
exports.OrganizationSummaryViewResponseToJSON = OrganizationSummaryViewResponseToJSON;
|
|
21
|
+
exports.OrganizationSummaryViewResponseToJSONTyped = OrganizationSummaryViewResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.OrganizationSummaryViewResponseAuthoritiesEnum = {
|
|
26
|
+
PropertiesRead: 'properties_read',
|
|
27
|
+
PropertiesWrite: 'properties_write',
|
|
28
|
+
AgentsRead: 'agents_read',
|
|
29
|
+
AgentsWrite: 'agents_write'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.OrganizationSummaryViewResponseStatusEnum = {
|
|
35
|
+
New: 'NEW',
|
|
36
|
+
Active: 'ACTIVE',
|
|
37
|
+
PaymentFailed: 'PAYMENT_FAILED',
|
|
38
|
+
Inactive: 'INACTIVE'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the OrganizationSummaryViewResponse interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfOrganizationSummaryViewResponse(value) {
|
|
44
|
+
if (!('agencyId' in value) || value['agencyId'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('isOwner' in value) || value['isOwner'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('agencyName' in value) || value['agencyName'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('subDomain' in value) || value['subDomain'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('memberId' in value) || value['memberId'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('roleName' in value) || value['roleName'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('authorities' in value) || value['authorities'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
function OrganizationSummaryViewResponseFromJSON(json) {
|
|
63
|
+
return OrganizationSummaryViewResponseFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function OrganizationSummaryViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'agencyId': json['agencyId'],
|
|
71
|
+
'isOwner': json['isOwner'],
|
|
72
|
+
'agencyName': json['agencyName'],
|
|
73
|
+
'subDomain': json['subDomain'],
|
|
74
|
+
'roleId': json['roleId'] == null ? undefined : json['roleId'],
|
|
75
|
+
'memberId': json['memberId'],
|
|
76
|
+
'roleName': json['roleName'],
|
|
77
|
+
'authorities': json['authorities'],
|
|
78
|
+
'status': json['status'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function OrganizationSummaryViewResponseToJSON(json) {
|
|
82
|
+
return OrganizationSummaryViewResponseToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
function OrganizationSummaryViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'agencyId': value['agencyId'],
|
|
90
|
+
'isOwner': value['isOwner'],
|
|
91
|
+
'agencyName': value['agencyName'],
|
|
92
|
+
'subDomain': value['subDomain'],
|
|
93
|
+
'roleId': value['roleId'],
|
|
94
|
+
'memberId': value['memberId'],
|
|
95
|
+
'roleName': value['roleName'],
|
|
96
|
+
'authorities': value['authorities'],
|
|
97
|
+
'status': value['status'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -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,56 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUserContextViewResponse = instanceOfUserContextViewResponse;
|
|
17
|
+
exports.UserContextViewResponseFromJSON = UserContextViewResponseFromJSON;
|
|
18
|
+
exports.UserContextViewResponseFromJSONTyped = UserContextViewResponseFromJSONTyped;
|
|
19
|
+
exports.UserContextViewResponseToJSON = UserContextViewResponseToJSON;
|
|
20
|
+
exports.UserContextViewResponseToJSONTyped = UserContextViewResponseToJSONTyped;
|
|
21
|
+
const OrganizationSummaryViewResponse_1 = require("./OrganizationSummaryViewResponse");
|
|
22
|
+
const UserSummaryViewResponse_1 = require("./UserSummaryViewResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UserContextViewResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUserContextViewResponse(value) {
|
|
27
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('organizations' in value) || value['organizations'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function UserContextViewResponseFromJSON(json) {
|
|
34
|
+
return UserContextViewResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function UserContextViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'user': (0, UserSummaryViewResponse_1.UserSummaryViewResponseFromJSON)(json['user']),
|
|
42
|
+
'organizations': (json['organizations'].map(OrganizationSummaryViewResponse_1.OrganizationSummaryViewResponseFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function UserContextViewResponseToJSON(json) {
|
|
46
|
+
return UserContextViewResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function UserContextViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'user': (0, UserSummaryViewResponse_1.UserSummaryViewResponseToJSON)(value['user']),
|
|
54
|
+
'organizations': (value['organizations'].map(OrganizationSummaryViewResponse_1.OrganizationSummaryViewResponseToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUserSummaryViewResponse = instanceOfUserSummaryViewResponse;
|
|
17
|
+
exports.UserSummaryViewResponseFromJSON = UserSummaryViewResponseFromJSON;
|
|
18
|
+
exports.UserSummaryViewResponseFromJSONTyped = UserSummaryViewResponseFromJSONTyped;
|
|
19
|
+
exports.UserSummaryViewResponseToJSON = UserSummaryViewResponseToJSON;
|
|
20
|
+
exports.UserSummaryViewResponseToJSONTyped = UserSummaryViewResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UserSummaryViewResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUserSummaryViewResponse(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function UserSummaryViewResponseFromJSON(json) {
|
|
34
|
+
return UserSummaryViewResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function UserSummaryViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'email': json['email'],
|
|
42
|
+
'firstName': json['firstName'],
|
|
43
|
+
'lastName': json['lastName'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function UserSummaryViewResponseToJSON(json) {
|
|
47
|
+
return UserSummaryViewResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function UserSummaryViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'email': value['email'],
|
|
55
|
+
'firstName': value['firstName'],
|
|
56
|
+
'lastName': value['lastName'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './CreateAgencyRequest';
|
|
|
3
3
|
export * from './IdResponse';
|
|
4
4
|
export * from './InvitationViewResponse';
|
|
5
5
|
export * from './InviteMemberRequest';
|
|
6
|
+
export * from './OrganizationSummaryViewResponse';
|
|
6
7
|
export * from './PhotoRequest';
|
|
7
8
|
export * from './PresignedUrlResponse';
|
|
8
9
|
export * from './PresignedUrlsResponse';
|
|
@@ -10,3 +11,5 @@ export * from './RolesRequest';
|
|
|
10
11
|
export * from './SocialMediaRequest';
|
|
11
12
|
export * from './SocialMediasRequest';
|
|
12
13
|
export * from './UploadAcknowledgmentResponse';
|
|
14
|
+
export * from './UserContextViewResponse';
|
|
15
|
+
export * from './UserSummaryViewResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./CreateAgencyRequest"), exports);
|
|
|
21
21
|
__exportStar(require("./IdResponse"), exports);
|
|
22
22
|
__exportStar(require("./InvitationViewResponse"), exports);
|
|
23
23
|
__exportStar(require("./InviteMemberRequest"), exports);
|
|
24
|
+
__exportStar(require("./OrganizationSummaryViewResponse"), exports);
|
|
24
25
|
__exportStar(require("./PhotoRequest"), exports);
|
|
25
26
|
__exportStar(require("./PresignedUrlResponse"), exports);
|
|
26
27
|
__exportStar(require("./PresignedUrlsResponse"), exports);
|
|
@@ -28,3 +29,5 @@ __exportStar(require("./RolesRequest"), exports);
|
|
|
28
29
|
__exportStar(require("./SocialMediaRequest"), exports);
|
|
29
30
|
__exportStar(require("./SocialMediasRequest"), exports);
|
|
30
31
|
__exportStar(require("./UploadAcknowledgmentResponse"), exports);
|
|
32
|
+
__exportStar(require("./UserContextViewResponse"), exports);
|
|
33
|
+
__exportStar(require("./UserSummaryViewResponse"), exports);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# OrganizationSummaryViewResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`agencyId` | string
|
|
10
|
+
`isOwner` | boolean
|
|
11
|
+
`agencyName` | string
|
|
12
|
+
`subDomain` | string
|
|
13
|
+
`roleId` | number
|
|
14
|
+
`memberId` | string
|
|
15
|
+
`roleName` | string
|
|
16
|
+
`authorities` | Array<string>
|
|
17
|
+
`status` | string
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { OrganizationSummaryViewResponse } from '@homespot-sdk/api'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"agencyId": null,
|
|
27
|
+
"isOwner": null,
|
|
28
|
+
"agencyName": null,
|
|
29
|
+
"subDomain": null,
|
|
30
|
+
"roleId": null,
|
|
31
|
+
"memberId": null,
|
|
32
|
+
"roleName": null,
|
|
33
|
+
"authorities": null,
|
|
34
|
+
"status": null,
|
|
35
|
+
} satisfies OrganizationSummaryViewResponse
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as OrganizationSummaryViewResponse
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# UserContextViewResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`user` | [UserSummaryViewResponse](UserSummaryViewResponse.md)
|
|
10
|
+
`organizations` | [Array<OrganizationSummaryViewResponse>](OrganizationSummaryViewResponse.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { UserContextViewResponse } from '@homespot-sdk/api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"user": null,
|
|
20
|
+
"organizations": null,
|
|
21
|
+
} satisfies UserContextViewResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as UserContextViewResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|