@homespot-sdk/api 0.0.633 → 0.0.635
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 +24 -0
- package/README.md +30 -13
- package/dist/apis/AgencyControllerApi.d.ts +0 -14
- package/dist/apis/AgencyControllerApi.js +10 -38
- package/dist/apis/AgencyQueryControllerApi.d.ts +69 -1
- package/dist/apis/AgencyQueryControllerApi.js +107 -1
- package/dist/apis/InvitationControllerApi.d.ts +0 -2
- package/dist/apis/InvitationControllerApi.js +5 -7
- package/dist/apis/InvitationQueryControllerApi.d.ts +27 -5
- package/dist/apis/InvitationQueryControllerApi.js +45 -5
- package/dist/apis/MemberQueryControllerApi.d.ts +46 -0
- package/dist/apis/MemberQueryControllerApi.js +67 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AgencyControllerApi.d.ts +0 -14
- package/dist/esm/apis/AgencyControllerApi.js +10 -38
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +69 -1
- package/dist/esm/apis/AgencyQueryControllerApi.js +107 -1
- package/dist/esm/apis/InvitationControllerApi.d.ts +0 -2
- package/dist/esm/apis/InvitationControllerApi.js +5 -7
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +27 -5
- package/dist/esm/apis/InvitationQueryControllerApi.js +46 -6
- package/dist/esm/apis/MemberQueryControllerApi.d.ts +46 -0
- package/dist/esm/apis/MemberQueryControllerApi.js +63 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgencyPeekViewResponse.d.ts +102 -0
- package/dist/esm/models/AgencyPeekViewResponse.js +88 -0
- package/dist/esm/models/GroupedPermissionsResponse.d.ts +48 -0
- package/dist/esm/models/GroupedPermissionsResponse.js +56 -0
- package/dist/esm/models/InvitationDetailsRequest.d.ts +38 -0
- package/dist/esm/models/InvitationDetailsRequest.js +47 -0
- package/dist/esm/models/InvitationDetailsResponse.d.ts +72 -0
- package/dist/esm/models/InvitationDetailsResponse.js +70 -0
- package/dist/esm/models/InviteMemberRequest.d.ts +3 -2
- package/dist/esm/models/InviteMemberRequest.js +3 -2
- package/dist/esm/models/MemberViewResponse.d.ts +74 -0
- package/dist/esm/models/MemberViewResponse.js +69 -0
- package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +8 -7
- package/dist/esm/models/OrganizationSummaryViewResponse.js +9 -8
- package/dist/esm/models/PageMetadata.d.ts +50 -0
- package/dist/esm/models/PageMetadata.js +47 -0
- package/dist/esm/models/Pageable.d.ts +44 -0
- package/dist/esm/models/Pageable.js +45 -0
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.js +45 -0
- package/dist/esm/models/PagedModelInvitationViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelInvitationViewResponse.js +45 -0
- package/dist/esm/models/PagedModelMemberViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelMemberViewResponse.js +45 -0
- package/dist/esm/models/PermissionResponse.d.ts +60 -0
- package/dist/esm/models/PermissionResponse.js +67 -0
- package/dist/esm/models/RolesRequest.d.ts +8 -7
- package/dist/esm/models/RolesRequest.js +9 -8
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AgencyPeekViewResponse.d.ts +102 -0
- package/dist/models/AgencyPeekViewResponse.js +96 -0
- package/dist/models/GroupedPermissionsResponse.d.ts +48 -0
- package/dist/models/GroupedPermissionsResponse.js +64 -0
- package/dist/models/InvitationDetailsRequest.d.ts +38 -0
- package/dist/models/InvitationDetailsRequest.js +54 -0
- package/dist/models/InvitationDetailsResponse.d.ts +72 -0
- package/dist/models/InvitationDetailsResponse.js +78 -0
- package/dist/models/InviteMemberRequest.d.ts +3 -2
- package/dist/models/InviteMemberRequest.js +3 -2
- package/dist/models/MemberViewResponse.d.ts +74 -0
- package/dist/models/MemberViewResponse.js +76 -0
- package/dist/models/OrganizationSummaryViewResponse.d.ts +8 -7
- package/dist/models/OrganizationSummaryViewResponse.js +10 -9
- package/dist/models/PageMetadata.d.ts +50 -0
- package/dist/models/PageMetadata.js +54 -0
- package/dist/models/Pageable.d.ts +44 -0
- package/dist/models/Pageable.js +52 -0
- package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
- package/dist/models/PagedModelAgencyPeekViewResponse.js +52 -0
- package/dist/models/PagedModelInvitationViewResponse.d.ts +40 -0
- package/dist/models/PagedModelInvitationViewResponse.js +52 -0
- package/dist/models/PagedModelMemberViewResponse.d.ts +40 -0
- package/dist/models/PagedModelMemberViewResponse.js +52 -0
- package/dist/models/PermissionResponse.d.ts +60 -0
- package/dist/models/PermissionResponse.js +75 -0
- package/dist/models/RolesRequest.d.ts +8 -7
- package/dist/models/RolesRequest.js +10 -9
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AgencyControllerApi.md +20 -41
- package/docs/AgencyPeekViewResponse.md +54 -0
- package/docs/AgencyQueryControllerApi.md +205 -0
- package/docs/GroupedPermissionsResponse.md +36 -0
- package/docs/InvitationControllerApi.md +3 -6
- package/docs/InvitationDetailsRequest.md +36 -0
- package/docs/InvitationDetailsResponse.md +44 -0
- package/docs/InvitationQueryControllerApi.md +78 -5
- package/docs/InviteMemberRequest.md +1 -1
- package/docs/MemberQueryControllerApi.md +78 -0
- package/docs/MemberViewResponse.md +48 -0
- package/docs/OrganizationSummaryViewResponse.md +2 -2
- package/docs/PageMetadata.md +40 -0
- package/docs/Pageable.md +38 -0
- package/docs/PagedModelAgencyPeekViewResponse.md +36 -0
- package/docs/PagedModelInvitationViewResponse.md +36 -0
- package/docs/PagedModelMemberViewResponse.md +36 -0
- package/docs/PermissionResponse.md +36 -0
- package/docs/RolesRequest.md +2 -2
- package/package.json +1 -1
- package/src/apis/AgencyControllerApi.ts +10 -80
- package/src/apis/AgencyQueryControllerApi.ts +190 -0
- package/src/apis/InvitationControllerApi.ts +6 -13
- package/src/apis/InvitationQueryControllerApi.ts +91 -12
- package/src/apis/MemberQueryControllerApi.ts +102 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AgencyPeekViewResponse.ts +167 -0
- package/src/models/GroupedPermissionsResponse.ts +95 -0
- package/src/models/InvitationDetailsRequest.ts +75 -0
- package/src/models/InvitationDetailsResponse.ts +123 -0
- package/src/models/InviteMemberRequest.ts +12 -4
- package/src/models/MemberViewResponse.ts +128 -0
- package/src/models/OrganizationSummaryViewResponse.ts +11 -10
- package/src/models/PageMetadata.ts +89 -0
- package/src/models/Pageable.ts +81 -0
- package/src/models/PagedModelAgencyPeekViewResponse.ts +88 -0
- package/src/models/PagedModelInvitationViewResponse.ts +88 -0
- package/src/models/PagedModelMemberViewResponse.ts +88 -0
- package/src/models/PermissionResponse.ts +101 -0
- package/src/models/RolesRequest.ts +11 -10
- package/src/models/index.ts +11 -0
|
@@ -0,0 +1,167 @@
|
|
|
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 AgencyPeekViewResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface AgencyPeekViewResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgencyPeekViewResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AgencyPeekViewResponse
|
|
32
|
+
*/
|
|
33
|
+
owner: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AgencyPeekViewResponse
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AgencyPeekViewResponse
|
|
44
|
+
*/
|
|
45
|
+
email: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AgencyPeekViewResponse
|
|
50
|
+
*/
|
|
51
|
+
seats: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AgencyPeekViewResponse
|
|
56
|
+
*/
|
|
57
|
+
subDomain: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AgencyPeekViewResponse
|
|
62
|
+
*/
|
|
63
|
+
phone: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof AgencyPeekViewResponse
|
|
68
|
+
*/
|
|
69
|
+
website?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof AgencyPeekViewResponse
|
|
74
|
+
*/
|
|
75
|
+
yearSince: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof AgencyPeekViewResponse
|
|
80
|
+
*/
|
|
81
|
+
status: AgencyPeekViewResponseStatusEnum;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof AgencyPeekViewResponse
|
|
86
|
+
*/
|
|
87
|
+
logo?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const AgencyPeekViewResponseStatusEnum = {
|
|
95
|
+
New: 'NEW',
|
|
96
|
+
Active: 'ACTIVE',
|
|
97
|
+
PaymentFailed: 'PAYMENT_FAILED',
|
|
98
|
+
Inactive: 'INACTIVE'
|
|
99
|
+
} as const;
|
|
100
|
+
export type AgencyPeekViewResponseStatusEnum = typeof AgencyPeekViewResponseStatusEnum[keyof typeof AgencyPeekViewResponseStatusEnum];
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the AgencyPeekViewResponse interface.
|
|
105
|
+
*/
|
|
106
|
+
export function instanceOfAgencyPeekViewResponse(value: object): value is AgencyPeekViewResponse {
|
|
107
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
108
|
+
if (!('owner' in value) || value['owner'] === undefined) return false;
|
|
109
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
110
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
111
|
+
if (!('seats' in value) || value['seats'] === undefined) return false;
|
|
112
|
+
if (!('subDomain' in value) || value['subDomain'] === undefined) return false;
|
|
113
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
114
|
+
if (!('yearSince' in value) || value['yearSince'] === undefined) return false;
|
|
115
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function AgencyPeekViewResponseFromJSON(json: any): AgencyPeekViewResponse {
|
|
120
|
+
return AgencyPeekViewResponseFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function AgencyPeekViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyPeekViewResponse {
|
|
124
|
+
if (json == null) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': json['id'],
|
|
130
|
+
'owner': json['owner'],
|
|
131
|
+
'name': json['name'],
|
|
132
|
+
'email': json['email'],
|
|
133
|
+
'seats': json['seats'],
|
|
134
|
+
'subDomain': json['subDomain'],
|
|
135
|
+
'phone': json['phone'],
|
|
136
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
137
|
+
'yearSince': json['yearSince'],
|
|
138
|
+
'status': json['status'],
|
|
139
|
+
'logo': json['logo'] == null ? undefined : json['logo'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function AgencyPeekViewResponseToJSON(json: any): AgencyPeekViewResponse {
|
|
144
|
+
return AgencyPeekViewResponseToJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function AgencyPeekViewResponseToJSONTyped(value?: AgencyPeekViewResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
148
|
+
if (value == null) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'id': value['id'],
|
|
155
|
+
'owner': value['owner'],
|
|
156
|
+
'name': value['name'],
|
|
157
|
+
'email': value['email'],
|
|
158
|
+
'seats': value['seats'],
|
|
159
|
+
'subDomain': value['subDomain'],
|
|
160
|
+
'phone': value['phone'],
|
|
161
|
+
'website': value['website'],
|
|
162
|
+
'yearSince': value['yearSince'],
|
|
163
|
+
'status': value['status'],
|
|
164
|
+
'logo': value['logo'],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { PermissionResponse } from './PermissionResponse';
|
|
17
|
+
import {
|
|
18
|
+
PermissionResponseFromJSON,
|
|
19
|
+
PermissionResponseFromJSONTyped,
|
|
20
|
+
PermissionResponseToJSON,
|
|
21
|
+
PermissionResponseToJSONTyped,
|
|
22
|
+
} from './PermissionResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GroupedPermissionsResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface GroupedPermissionsResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GroupedPermissionsResponse
|
|
34
|
+
*/
|
|
35
|
+
group: GroupedPermissionsResponseGroupEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<PermissionResponse>}
|
|
39
|
+
* @memberof GroupedPermissionsResponse
|
|
40
|
+
*/
|
|
41
|
+
permissions: Array<PermissionResponse>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export const GroupedPermissionsResponseGroupEnum = {
|
|
49
|
+
Agency: 'AGENCY',
|
|
50
|
+
Invitation: 'INVITATION',
|
|
51
|
+
Role: 'ROLE'
|
|
52
|
+
} as const;
|
|
53
|
+
export type GroupedPermissionsResponseGroupEnum = typeof GroupedPermissionsResponseGroupEnum[keyof typeof GroupedPermissionsResponseGroupEnum];
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the GroupedPermissionsResponse interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfGroupedPermissionsResponse(value: object): value is GroupedPermissionsResponse {
|
|
60
|
+
if (!('group' in value) || value['group'] === undefined) return false;
|
|
61
|
+
if (!('permissions' in value) || value['permissions'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function GroupedPermissionsResponseFromJSON(json: any): GroupedPermissionsResponse {
|
|
66
|
+
return GroupedPermissionsResponseFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function GroupedPermissionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupedPermissionsResponse {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'group': json['group'],
|
|
76
|
+
'permissions': ((json['permissions'] as Array<any>).map(PermissionResponseFromJSON)),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function GroupedPermissionsResponseToJSON(json: any): GroupedPermissionsResponse {
|
|
81
|
+
return GroupedPermissionsResponseToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function GroupedPermissionsResponseToJSONTyped(value?: GroupedPermissionsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'group': value['group'],
|
|
92
|
+
'permissions': ((value['permissions'] as Array<any>).map(PermissionResponseToJSON)),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 InvitationDetailsRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface InvitationDetailsRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InvitationDetailsRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof InvitationDetailsRequest
|
|
32
|
+
*/
|
|
33
|
+
roleId: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the InvitationDetailsRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfInvitationDetailsRequest(value: object): value is InvitationDetailsRequest {
|
|
40
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
+
if (!('roleId' in value) || value['roleId'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function InvitationDetailsRequestFromJSON(json: any): InvitationDetailsRequest {
|
|
46
|
+
return InvitationDetailsRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function InvitationDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationDetailsRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'email': json['email'],
|
|
56
|
+
'roleId': json['roleId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function InvitationDetailsRequestToJSON(json: any): InvitationDetailsRequest {
|
|
61
|
+
return InvitationDetailsRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function InvitationDetailsRequestToJSONTyped(value?: InvitationDetailsRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'email': value['email'],
|
|
72
|
+
'roleId': value['roleId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,123 @@
|
|
|
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 InvitationDetailsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface InvitationDetailsResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InvitationDetailsResponse
|
|
26
|
+
*/
|
|
27
|
+
invitationId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof InvitationDetailsResponse
|
|
32
|
+
*/
|
|
33
|
+
agencyId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof InvitationDetailsResponse
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof InvitationDetailsResponse
|
|
44
|
+
*/
|
|
45
|
+
status: InvitationDetailsResponseStatusEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof InvitationDetailsResponse
|
|
50
|
+
*/
|
|
51
|
+
agencyName: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof InvitationDetailsResponse
|
|
56
|
+
*/
|
|
57
|
+
agencyLogo?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const InvitationDetailsResponseStatusEnum = {
|
|
65
|
+
Pending: 'PENDING',
|
|
66
|
+
Accepted: 'ACCEPTED',
|
|
67
|
+
Cancelled: 'CANCELLED',
|
|
68
|
+
Expired: 'EXPIRED'
|
|
69
|
+
} as const;
|
|
70
|
+
export type InvitationDetailsResponseStatusEnum = typeof InvitationDetailsResponseStatusEnum[keyof typeof InvitationDetailsResponseStatusEnum];
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the InvitationDetailsResponse interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfInvitationDetailsResponse(value: object): value is InvitationDetailsResponse {
|
|
77
|
+
if (!('invitationId' in value) || value['invitationId'] === undefined) return false;
|
|
78
|
+
if (!('agencyId' in value) || value['agencyId'] === undefined) return false;
|
|
79
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
80
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
81
|
+
if (!('agencyName' in value) || value['agencyName'] === undefined) return false;
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function InvitationDetailsResponseFromJSON(json: any): InvitationDetailsResponse {
|
|
86
|
+
return InvitationDetailsResponseFromJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function InvitationDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationDetailsResponse {
|
|
90
|
+
if (json == null) {
|
|
91
|
+
return json;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'invitationId': json['invitationId'],
|
|
96
|
+
'agencyId': json['agencyId'],
|
|
97
|
+
'email': json['email'],
|
|
98
|
+
'status': json['status'],
|
|
99
|
+
'agencyName': json['agencyName'],
|
|
100
|
+
'agencyLogo': json['agencyLogo'] == null ? undefined : json['agencyLogo'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function InvitationDetailsResponseToJSON(json: any): InvitationDetailsResponse {
|
|
105
|
+
return InvitationDetailsResponseToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function InvitationDetailsResponseToJSONTyped(value?: InvitationDetailsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'invitationId': value['invitationId'],
|
|
116
|
+
'agencyId': value['agencyId'],
|
|
117
|
+
'email': value['email'],
|
|
118
|
+
'status': value['status'],
|
|
119
|
+
'agencyName': value['agencyName'],
|
|
120
|
+
'agencyLogo': value['agencyLogo'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { InvitationDetailsRequest } from './InvitationDetailsRequest';
|
|
17
|
+
import {
|
|
18
|
+
InvitationDetailsRequestFromJSON,
|
|
19
|
+
InvitationDetailsRequestFromJSONTyped,
|
|
20
|
+
InvitationDetailsRequestToJSON,
|
|
21
|
+
InvitationDetailsRequestToJSONTyped,
|
|
22
|
+
} from './InvitationDetailsRequest';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -21,10 +29,10 @@ import { mapValues } from '../runtime';
|
|
|
21
29
|
export interface InviteMemberRequest {
|
|
22
30
|
/**
|
|
23
31
|
*
|
|
24
|
-
* @type {Array<
|
|
32
|
+
* @type {Array<InvitationDetailsRequest>}
|
|
25
33
|
* @memberof InviteMemberRequest
|
|
26
34
|
*/
|
|
27
|
-
emails: Array<
|
|
35
|
+
emails: Array<InvitationDetailsRequest>;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
/**
|
|
@@ -45,7 +53,7 @@ export function InviteMemberRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
45
53
|
}
|
|
46
54
|
return {
|
|
47
55
|
|
|
48
|
-
'emails': json['emails'],
|
|
56
|
+
'emails': ((json['emails'] as Array<any>).map(InvitationDetailsRequestFromJSON)),
|
|
49
57
|
};
|
|
50
58
|
}
|
|
51
59
|
|
|
@@ -60,7 +68,7 @@ export function InviteMemberRequestToJSONTyped(value?: InviteMemberRequest | nul
|
|
|
60
68
|
|
|
61
69
|
return {
|
|
62
70
|
|
|
63
|
-
'emails': value['emails'],
|
|
71
|
+
'emails': ((value['emails'] as Array<any>).map(InvitationDetailsRequestToJSON)),
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
|
|
@@ -0,0 +1,128 @@
|
|
|
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 MemberViewResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface MemberViewResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MemberViewResponse
|
|
26
|
+
*/
|
|
27
|
+
userId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MemberViewResponse
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MemberViewResponse
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MemberViewResponse
|
|
44
|
+
*/
|
|
45
|
+
phone?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof MemberViewResponse
|
|
50
|
+
*/
|
|
51
|
+
email: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof MemberViewResponse
|
|
56
|
+
*/
|
|
57
|
+
roleId: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof MemberViewResponse
|
|
62
|
+
*/
|
|
63
|
+
roleName: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof MemberViewResponse
|
|
68
|
+
*/
|
|
69
|
+
joinedAt: Date;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the MemberViewResponse interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfMemberViewResponse(value: object): value is MemberViewResponse {
|
|
76
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
77
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
78
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
79
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
80
|
+
if (!('roleId' in value) || value['roleId'] === undefined) return false;
|
|
81
|
+
if (!('roleName' in value) || value['roleName'] === undefined) return false;
|
|
82
|
+
if (!('joinedAt' in value) || value['joinedAt'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function MemberViewResponseFromJSON(json: any): MemberViewResponse {
|
|
87
|
+
return MemberViewResponseFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function MemberViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberViewResponse {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'userId': json['userId'],
|
|
97
|
+
'firstName': json['firstName'],
|
|
98
|
+
'lastName': json['lastName'],
|
|
99
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
100
|
+
'email': json['email'],
|
|
101
|
+
'roleId': json['roleId'],
|
|
102
|
+
'roleName': json['roleName'],
|
|
103
|
+
'joinedAt': (new Date(json['joinedAt'])),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function MemberViewResponseToJSON(json: any): MemberViewResponse {
|
|
108
|
+
return MemberViewResponseToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function MemberViewResponseToJSONTyped(value?: MemberViewResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'userId': value['userId'],
|
|
119
|
+
'firstName': value['firstName'],
|
|
120
|
+
'lastName': value['lastName'],
|
|
121
|
+
'phone': value['phone'],
|
|
122
|
+
'email': value['email'],
|
|
123
|
+
'roleId': value['roleId'],
|
|
124
|
+
'roleName': value['roleName'],
|
|
125
|
+
'joinedAt': value['joinedAt'].toISOString(),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -66,7 +66,7 @@ export interface OrganizationSummaryViewResponse {
|
|
|
66
66
|
* @type {Array<string>}
|
|
67
67
|
* @memberof OrganizationSummaryViewResponse
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
permissions: Array<OrganizationSummaryViewResponsePermissionsEnum>;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {string}
|
|
@@ -79,13 +79,14 @@ export interface OrganizationSummaryViewResponse {
|
|
|
79
79
|
/**
|
|
80
80
|
* @export
|
|
81
81
|
*/
|
|
82
|
-
export const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
export const OrganizationSummaryViewResponsePermissionsEnum = {
|
|
83
|
+
AgencyWrite: 'AGENCY_WRITE',
|
|
84
|
+
InvitationRead: 'INVITATION_READ',
|
|
85
|
+
InvitationWrite: 'INVITATION_WRITE',
|
|
86
|
+
RoleRead: 'ROLE_READ',
|
|
87
|
+
RoleWrite: 'ROLE_WRITE'
|
|
87
88
|
} as const;
|
|
88
|
-
export type
|
|
89
|
+
export type OrganizationSummaryViewResponsePermissionsEnum = typeof OrganizationSummaryViewResponsePermissionsEnum[keyof typeof OrganizationSummaryViewResponsePermissionsEnum];
|
|
89
90
|
|
|
90
91
|
/**
|
|
91
92
|
* @export
|
|
@@ -109,7 +110,7 @@ export function instanceOfOrganizationSummaryViewResponse(value: object): value
|
|
|
109
110
|
if (!('subDomain' in value) || value['subDomain'] === undefined) return false;
|
|
110
111
|
if (!('memberId' in value) || value['memberId'] === undefined) return false;
|
|
111
112
|
if (!('roleName' in value) || value['roleName'] === undefined) return false;
|
|
112
|
-
if (!('
|
|
113
|
+
if (!('permissions' in value) || value['permissions'] === undefined) return false;
|
|
113
114
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
114
115
|
return true;
|
|
115
116
|
}
|
|
@@ -131,7 +132,7 @@ export function OrganizationSummaryViewResponseFromJSONTyped(json: any, ignoreDi
|
|
|
131
132
|
'roleId': json['roleId'] == null ? undefined : json['roleId'],
|
|
132
133
|
'memberId': json['memberId'],
|
|
133
134
|
'roleName': json['roleName'],
|
|
134
|
-
'
|
|
135
|
+
'permissions': json['permissions'],
|
|
135
136
|
'status': json['status'],
|
|
136
137
|
};
|
|
137
138
|
}
|
|
@@ -154,7 +155,7 @@ export function OrganizationSummaryViewResponseToJSONTyped(value?: OrganizationS
|
|
|
154
155
|
'roleId': value['roleId'],
|
|
155
156
|
'memberId': value['memberId'],
|
|
156
157
|
'roleName': value['roleName'],
|
|
157
|
-
'
|
|
158
|
+
'permissions': value['permissions'],
|
|
158
159
|
'status': value['status'],
|
|
159
160
|
};
|
|
160
161
|
}
|