@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,48 @@
|
|
|
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 { PermissionResponse } from './PermissionResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GroupedPermissionsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GroupedPermissionsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GroupedPermissionsResponse
|
|
23
|
+
*/
|
|
24
|
+
group: GroupedPermissionsResponseGroupEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<PermissionResponse>}
|
|
28
|
+
* @memberof GroupedPermissionsResponse
|
|
29
|
+
*/
|
|
30
|
+
permissions: Array<PermissionResponse>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const GroupedPermissionsResponseGroupEnum: {
|
|
36
|
+
readonly Agency: "AGENCY";
|
|
37
|
+
readonly Invitation: "INVITATION";
|
|
38
|
+
readonly Role: "ROLE";
|
|
39
|
+
};
|
|
40
|
+
export type GroupedPermissionsResponseGroupEnum = typeof GroupedPermissionsResponseGroupEnum[keyof typeof GroupedPermissionsResponseGroupEnum];
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the GroupedPermissionsResponse interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfGroupedPermissionsResponse(value: object): value is GroupedPermissionsResponse;
|
|
45
|
+
export declare function GroupedPermissionsResponseFromJSON(json: any): GroupedPermissionsResponse;
|
|
46
|
+
export declare function GroupedPermissionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupedPermissionsResponse;
|
|
47
|
+
export declare function GroupedPermissionsResponseToJSON(json: any): GroupedPermissionsResponse;
|
|
48
|
+
export declare function GroupedPermissionsResponseToJSONTyped(value?: GroupedPermissionsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { PermissionResponseFromJSON, PermissionResponseToJSON, } from './PermissionResponse';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const GroupedPermissionsResponseGroupEnum = {
|
|
19
|
+
Agency: 'AGENCY',
|
|
20
|
+
Invitation: 'INVITATION',
|
|
21
|
+
Role: 'ROLE'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GroupedPermissionsResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfGroupedPermissionsResponse(value) {
|
|
27
|
+
if (!('group' in value) || value['group'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function GroupedPermissionsResponseFromJSON(json) {
|
|
34
|
+
return GroupedPermissionsResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GroupedPermissionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'group': json['group'],
|
|
42
|
+
'permissions': (json['permissions'].map(PermissionResponseFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function GroupedPermissionsResponseToJSON(json) {
|
|
46
|
+
return GroupedPermissionsResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function GroupedPermissionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'group': value['group'],
|
|
54
|
+
'permissions': (value['permissions'].map(PermissionResponseToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 InvitationDetailsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface InvitationDetailsRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvitationDetailsRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof InvitationDetailsRequest
|
|
28
|
+
*/
|
|
29
|
+
roleId: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the InvitationDetailsRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfInvitationDetailsRequest(value: object): value is InvitationDetailsRequest;
|
|
35
|
+
export declare function InvitationDetailsRequestFromJSON(json: any): InvitationDetailsRequest;
|
|
36
|
+
export declare function InvitationDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationDetailsRequest;
|
|
37
|
+
export declare function InvitationDetailsRequestToJSON(json: any): InvitationDetailsRequest;
|
|
38
|
+
export declare function InvitationDetailsRequestToJSONTyped(value?: InvitationDetailsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 InvitationDetailsRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfInvitationDetailsRequest(value) {
|
|
18
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('roleId' in value) || value['roleId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function InvitationDetailsRequestFromJSON(json) {
|
|
25
|
+
return InvitationDetailsRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function InvitationDetailsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'email': json['email'],
|
|
33
|
+
'roleId': json['roleId'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function InvitationDetailsRequestToJSON(json) {
|
|
37
|
+
return InvitationDetailsRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function InvitationDetailsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'email': value['email'],
|
|
45
|
+
'roleId': value['roleId'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 InvitationDetailsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface InvitationDetailsResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvitationDetailsResponse
|
|
22
|
+
*/
|
|
23
|
+
invitationId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvitationDetailsResponse
|
|
28
|
+
*/
|
|
29
|
+
agencyId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvitationDetailsResponse
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InvitationDetailsResponse
|
|
40
|
+
*/
|
|
41
|
+
status: InvitationDetailsResponseStatusEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof InvitationDetailsResponse
|
|
46
|
+
*/
|
|
47
|
+
agencyName: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof InvitationDetailsResponse
|
|
52
|
+
*/
|
|
53
|
+
agencyLogo?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const InvitationDetailsResponseStatusEnum: {
|
|
59
|
+
readonly Pending: "PENDING";
|
|
60
|
+
readonly Accepted: "ACCEPTED";
|
|
61
|
+
readonly Cancelled: "CANCELLED";
|
|
62
|
+
readonly Expired: "EXPIRED";
|
|
63
|
+
};
|
|
64
|
+
export type InvitationDetailsResponseStatusEnum = typeof InvitationDetailsResponseStatusEnum[keyof typeof InvitationDetailsResponseStatusEnum];
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the InvitationDetailsResponse interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfInvitationDetailsResponse(value: object): value is InvitationDetailsResponse;
|
|
69
|
+
export declare function InvitationDetailsResponseFromJSON(json: any): InvitationDetailsResponse;
|
|
70
|
+
export declare function InvitationDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvitationDetailsResponse;
|
|
71
|
+
export declare function InvitationDetailsResponseToJSON(json: any): InvitationDetailsResponse;
|
|
72
|
+
export declare function InvitationDetailsResponseToJSONTyped(value?: InvitationDetailsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 InvitationDetailsResponseStatusEnum = {
|
|
18
|
+
Pending: 'PENDING',
|
|
19
|
+
Accepted: 'ACCEPTED',
|
|
20
|
+
Cancelled: 'CANCELLED',
|
|
21
|
+
Expired: 'EXPIRED'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the InvitationDetailsResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfInvitationDetailsResponse(value) {
|
|
27
|
+
if (!('invitationId' in value) || value['invitationId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('agencyId' in value) || value['agencyId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('agencyName' in value) || value['agencyName'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function InvitationDetailsResponseFromJSON(json) {
|
|
40
|
+
return InvitationDetailsResponseFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function InvitationDetailsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'invitationId': json['invitationId'],
|
|
48
|
+
'agencyId': json['agencyId'],
|
|
49
|
+
'email': json['email'],
|
|
50
|
+
'status': json['status'],
|
|
51
|
+
'agencyName': json['agencyName'],
|
|
52
|
+
'agencyLogo': json['agencyLogo'] == null ? undefined : json['agencyLogo'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function InvitationDetailsResponseToJSON(json) {
|
|
56
|
+
return InvitationDetailsResponseToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function InvitationDetailsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'invitationId': value['invitationId'],
|
|
64
|
+
'agencyId': value['agencyId'],
|
|
65
|
+
'email': value['email'],
|
|
66
|
+
'status': value['status'],
|
|
67
|
+
'agencyName': value['agencyName'],
|
|
68
|
+
'agencyLogo': value['agencyLogo'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { InvitationDetailsRequest } from './InvitationDetailsRequest';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,10 +18,10 @@
|
|
|
17
18
|
export interface InviteMemberRequest {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<InvitationDetailsRequest>}
|
|
21
22
|
* @memberof InviteMemberRequest
|
|
22
23
|
*/
|
|
23
|
-
emails: Array<
|
|
24
|
+
emails: Array<InvitationDetailsRequest>;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
27
|
* Check if a given object implements the InviteMemberRequest interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { InvitationDetailsRequestFromJSON, InvitationDetailsRequestToJSON, } from './InvitationDetailsRequest';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the InviteMemberRequest interface.
|
|
16
17
|
*/
|
|
@@ -27,7 +28,7 @@ export function InviteMemberRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
28
|
return json;
|
|
28
29
|
}
|
|
29
30
|
return {
|
|
30
|
-
'emails': json['emails'],
|
|
31
|
+
'emails': (json['emails'].map(InvitationDetailsRequestFromJSON)),
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export function InviteMemberRequestToJSON(json) {
|
|
@@ -38,6 +39,6 @@ export function InviteMemberRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
38
39
|
return value;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
|
-
'emails': value['emails'],
|
|
42
|
+
'emails': (value['emails'].map(InvitationDetailsRequestToJSON)),
|
|
42
43
|
};
|
|
43
44
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 MemberViewResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface MemberViewResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MemberViewResponse
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MemberViewResponse
|
|
28
|
+
*/
|
|
29
|
+
firstName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MemberViewResponse
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MemberViewResponse
|
|
40
|
+
*/
|
|
41
|
+
phone?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof MemberViewResponse
|
|
46
|
+
*/
|
|
47
|
+
email: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof MemberViewResponse
|
|
52
|
+
*/
|
|
53
|
+
roleId: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof MemberViewResponse
|
|
58
|
+
*/
|
|
59
|
+
roleName: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof MemberViewResponse
|
|
64
|
+
*/
|
|
65
|
+
joinedAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the MemberViewResponse interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfMemberViewResponse(value: object): value is MemberViewResponse;
|
|
71
|
+
export declare function MemberViewResponseFromJSON(json: any): MemberViewResponse;
|
|
72
|
+
export declare function MemberViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemberViewResponse;
|
|
73
|
+
export declare function MemberViewResponseToJSON(json: any): MemberViewResponse;
|
|
74
|
+
export declare function MemberViewResponseToJSONTyped(value?: MemberViewResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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 MemberViewResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMemberViewResponse(value) {
|
|
18
|
+
if (!('userId' in value) || value['userId'] === 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
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('roleId' in value) || value['roleId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('roleName' in value) || value['roleName'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('joinedAt' in value) || value['joinedAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function MemberViewResponseFromJSON(json) {
|
|
35
|
+
return MemberViewResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function MemberViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'userId': json['userId'],
|
|
43
|
+
'firstName': json['firstName'],
|
|
44
|
+
'lastName': json['lastName'],
|
|
45
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
46
|
+
'email': json['email'],
|
|
47
|
+
'roleId': json['roleId'],
|
|
48
|
+
'roleName': json['roleName'],
|
|
49
|
+
'joinedAt': (new Date(json['joinedAt'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function MemberViewResponseToJSON(json) {
|
|
53
|
+
return MemberViewResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function MemberViewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'userId': value['userId'],
|
|
61
|
+
'firstName': value['firstName'],
|
|
62
|
+
'lastName': value['lastName'],
|
|
63
|
+
'phone': value['phone'],
|
|
64
|
+
'email': value['email'],
|
|
65
|
+
'roleId': value['roleId'],
|
|
66
|
+
'roleName': value['roleName'],
|
|
67
|
+
'joinedAt': value['joinedAt'].toISOString(),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -62,7 +62,7 @@ export interface OrganizationSummaryViewResponse {
|
|
|
62
62
|
* @type {Array<string>}
|
|
63
63
|
* @memberof OrganizationSummaryViewResponse
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
permissions: Array<OrganizationSummaryViewResponsePermissionsEnum>;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -73,13 +73,14 @@ export interface OrganizationSummaryViewResponse {
|
|
|
73
73
|
/**
|
|
74
74
|
* @export
|
|
75
75
|
*/
|
|
76
|
-
export declare const
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
76
|
+
export declare const OrganizationSummaryViewResponsePermissionsEnum: {
|
|
77
|
+
readonly AgencyWrite: "AGENCY_WRITE";
|
|
78
|
+
readonly InvitationRead: "INVITATION_READ";
|
|
79
|
+
readonly InvitationWrite: "INVITATION_WRITE";
|
|
80
|
+
readonly RoleRead: "ROLE_READ";
|
|
81
|
+
readonly RoleWrite: "ROLE_WRITE";
|
|
81
82
|
};
|
|
82
|
-
export type
|
|
83
|
+
export type OrganizationSummaryViewResponsePermissionsEnum = typeof OrganizationSummaryViewResponsePermissionsEnum[keyof typeof OrganizationSummaryViewResponsePermissionsEnum];
|
|
83
84
|
/**
|
|
84
85
|
* @export
|
|
85
86
|
*/
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
export const OrganizationSummaryViewResponsePermissionsEnum = {
|
|
18
|
+
AgencyWrite: 'AGENCY_WRITE',
|
|
19
|
+
InvitationRead: 'INVITATION_READ',
|
|
20
|
+
InvitationWrite: 'INVITATION_WRITE',
|
|
21
|
+
RoleRead: 'ROLE_READ',
|
|
22
|
+
RoleWrite: 'ROLE_WRITE'
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
@@ -45,7 +46,7 @@ export function instanceOfOrganizationSummaryViewResponse(value) {
|
|
|
45
46
|
return false;
|
|
46
47
|
if (!('roleName' in value) || value['roleName'] === undefined)
|
|
47
48
|
return false;
|
|
48
|
-
if (!('
|
|
49
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
49
50
|
return false;
|
|
50
51
|
if (!('status' in value) || value['status'] === undefined)
|
|
51
52
|
return false;
|
|
@@ -66,7 +67,7 @@ export function OrganizationSummaryViewResponseFromJSONTyped(json, ignoreDiscrim
|
|
|
66
67
|
'roleId': json['roleId'] == null ? undefined : json['roleId'],
|
|
67
68
|
'memberId': json['memberId'],
|
|
68
69
|
'roleName': json['roleName'],
|
|
69
|
-
'
|
|
70
|
+
'permissions': json['permissions'],
|
|
70
71
|
'status': json['status'],
|
|
71
72
|
};
|
|
72
73
|
}
|
|
@@ -85,7 +86,7 @@ export function OrganizationSummaryViewResponseToJSONTyped(value, ignoreDiscrimi
|
|
|
85
86
|
'roleId': value['roleId'],
|
|
86
87
|
'memberId': value['memberId'],
|
|
87
88
|
'roleName': value['roleName'],
|
|
88
|
-
'
|
|
89
|
+
'permissions': value['permissions'],
|
|
89
90
|
'status': value['status'],
|
|
90
91
|
};
|
|
91
92
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PageMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface PageMetadata {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PageMetadata
|
|
22
|
+
*/
|
|
23
|
+
size?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PageMetadata
|
|
28
|
+
*/
|
|
29
|
+
number?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PageMetadata
|
|
34
|
+
*/
|
|
35
|
+
totalElements?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PageMetadata
|
|
40
|
+
*/
|
|
41
|
+
totalPages?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PageMetadata interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPageMetadata(value: object): value is PageMetadata;
|
|
47
|
+
export declare function PageMetadataFromJSON(json: any): PageMetadata;
|
|
48
|
+
export declare function PageMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageMetadata;
|
|
49
|
+
export declare function PageMetadataToJSON(json: any): PageMetadata;
|
|
50
|
+
export declare function PageMetadataToJSONTyped(value?: PageMetadata | null, ignoreDiscriminator?: boolean): any;
|