@homespot-sdk/api 0.0.634 → 0.0.636
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 +34 -10
- package/README.md +28 -17
- package/dist/apis/AgencyControllerApi.d.ts +1 -63
- package/dist/apis/AgencyControllerApi.js +1 -100
- package/dist/apis/InvitationControllerApi.d.ts +10 -10
- package/dist/apis/InvitationControllerApi.js +9 -9
- package/dist/apis/InvitationQueryControllerApi.d.ts +12 -30
- package/dist/apis/InvitationQueryControllerApi.js +12 -47
- package/dist/apis/MemberControllerApi.d.ts +68 -0
- package/dist/apis/MemberControllerApi.js +101 -0
- package/dist/apis/MemberQueryControllerApi.d.ts +10 -4
- package/dist/apis/MemberQueryControllerApi.js +13 -7
- package/dist/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -22
- package/dist/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +19 -16
- package/dist/apis/PublicInvitationControllerApi.d.ts +48 -0
- package/dist/apis/PublicInvitationControllerApi.js +71 -0
- package/dist/apis/PublicRoleControllerApi.d.ts +42 -0
- package/dist/apis/PublicRoleControllerApi.js +61 -0
- package/dist/apis/RoleControllerApi.d.ts +88 -0
- package/dist/apis/RoleControllerApi.js +133 -0
- package/dist/apis/RoleQueryControllerApi.d.ts +50 -0
- package/dist/apis/RoleQueryControllerApi.js +70 -0
- package/dist/apis/index.d.ts +6 -1
- package/dist/apis/index.js +6 -1
- package/dist/esm/apis/AgencyControllerApi.d.ts +1 -63
- package/dist/esm/apis/AgencyControllerApi.js +2 -101
- package/dist/esm/apis/InvitationControllerApi.d.ts +10 -10
- package/dist/esm/apis/InvitationControllerApi.js +9 -9
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +12 -30
- package/dist/esm/apis/InvitationQueryControllerApi.js +13 -48
- package/dist/esm/apis/MemberControllerApi.d.ts +68 -0
- package/dist/esm/apis/MemberControllerApi.js +97 -0
- package/dist/esm/apis/MemberQueryControllerApi.d.ts +10 -4
- package/dist/esm/apis/MemberQueryControllerApi.js +13 -7
- package/dist/esm/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -22
- package/dist/esm/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +18 -15
- package/dist/esm/apis/PublicInvitationControllerApi.d.ts +48 -0
- package/dist/esm/apis/PublicInvitationControllerApi.js +67 -0
- package/dist/esm/apis/PublicRoleControllerApi.d.ts +42 -0
- package/dist/esm/apis/PublicRoleControllerApi.js +57 -0
- package/dist/esm/apis/RoleControllerApi.d.ts +88 -0
- package/dist/esm/apis/RoleControllerApi.js +129 -0
- package/dist/esm/apis/RoleQueryControllerApi.d.ts +50 -0
- package/dist/esm/apis/RoleQueryControllerApi.js +66 -0
- package/dist/esm/apis/index.d.ts +6 -1
- package/dist/esm/apis/index.js +6 -1
- package/dist/esm/models/AgencyProfileResponse.d.ts +69 -0
- package/dist/esm/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +8 -8
- package/dist/esm/models/AgencySummaryResponse.d.ts +102 -0
- package/dist/esm/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +9 -9
- package/dist/esm/models/AssignRoleRequest.d.ts +32 -0
- package/dist/esm/models/AssignRoleRequest.js +43 -0
- package/dist/esm/models/BatchAssignRoleRequest.d.ts +38 -0
- package/dist/esm/models/BatchAssignRoleRequest.js +47 -0
- package/dist/esm/models/GroupedPermissionsResponse.d.ts +49 -0
- package/dist/esm/models/GroupedPermissionsResponse.js +57 -0
- package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +10 -7
- package/dist/esm/models/OrganizationSummaryViewResponse.js +11 -8
- package/dist/esm/models/PageRoleResponse.d.ts +95 -0
- package/dist/esm/models/PageRoleResponse.js +64 -0
- package/dist/esm/models/PageableObject.d.ts +63 -0
- package/dist/esm/models/PageableObject.js +52 -0
- package/dist/esm/models/PagedModelAgencySummaryResponse.d.ts +40 -0
- package/dist/esm/models/{PagedModelAgencyPeekViewResponse.js → PagedModelAgencySummaryResponse.js} +11 -11
- package/dist/esm/models/PermissionResponse.d.ts +64 -0
- package/dist/esm/models/PermissionResponse.js +71 -0
- package/dist/esm/models/RoleResponse.d.ts +63 -0
- package/dist/esm/models/RoleResponse.js +67 -0
- package/dist/esm/models/RolesRequest.d.ts +10 -7
- package/dist/esm/models/RolesRequest.js +11 -8
- package/dist/esm/models/SortObject.d.ts +44 -0
- package/dist/esm/models/SortObject.js +45 -0
- package/dist/esm/models/index.d.ts +11 -4
- package/dist/esm/models/index.js +11 -4
- package/dist/models/AgencyProfileResponse.d.ts +69 -0
- package/dist/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +13 -13
- package/dist/models/AgencySummaryResponse.d.ts +102 -0
- package/dist/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +15 -15
- package/dist/models/AssignRoleRequest.d.ts +32 -0
- package/dist/models/AssignRoleRequest.js +50 -0
- package/dist/models/BatchAssignRoleRequest.d.ts +38 -0
- package/dist/models/BatchAssignRoleRequest.js +54 -0
- package/dist/models/GroupedPermissionsResponse.d.ts +49 -0
- package/dist/models/GroupedPermissionsResponse.js +65 -0
- package/dist/models/OrganizationSummaryViewResponse.d.ts +10 -7
- package/dist/models/OrganizationSummaryViewResponse.js +12 -9
- package/dist/models/PageRoleResponse.d.ts +95 -0
- package/dist/models/PageRoleResponse.js +71 -0
- package/dist/models/PageableObject.d.ts +63 -0
- package/dist/models/PageableObject.js +59 -0
- package/dist/models/PagedModelAgencySummaryResponse.d.ts +40 -0
- package/dist/models/PagedModelAgencySummaryResponse.js +52 -0
- package/dist/models/PermissionResponse.d.ts +64 -0
- package/dist/models/PermissionResponse.js +79 -0
- package/dist/models/RoleResponse.d.ts +63 -0
- package/dist/models/RoleResponse.js +75 -0
- package/dist/models/RolesRequest.d.ts +10 -7
- package/dist/models/RolesRequest.js +12 -9
- package/dist/models/SortObject.d.ts +44 -0
- package/dist/models/SortObject.js +52 -0
- package/dist/models/index.d.ts +11 -4
- package/dist/models/index.js +11 -4
- package/docs/AgencyControllerApi.md +1 -214
- package/docs/{AgencyViewResponse.md → AgencyProfileResponse.md} +4 -4
- package/docs/{AgencyPeekViewResponse.md → AgencySummaryResponse.md} +4 -4
- package/docs/{Pageable.md → AssignRoleRequest.md} +6 -10
- package/docs/BatchAssignRoleRequest.md +36 -0
- package/docs/GroupedPermissionsResponse.md +36 -0
- package/docs/InvitationControllerApi.md +12 -12
- package/docs/InvitationQueryControllerApi.md +15 -82
- package/docs/MemberControllerApi.md +151 -0
- package/docs/MemberQueryControllerApi.md +13 -4
- package/docs/OrganizationSummaryViewResponse.md +2 -2
- package/docs/PageRoleResponse.md +54 -0
- package/docs/PageableObject.md +44 -0
- package/docs/{PagedModelAgencyPeekViewResponse.md → PagedModelAgencySummaryResponse.md} +5 -5
- package/docs/PermissionResponse.md +36 -0
- package/docs/{AgencyQueryControllerApi.md → PublicAgencyControllerApi.md} +25 -19
- package/docs/PublicInvitationControllerApi.md +81 -0
- package/docs/PublicRoleControllerApi.md +70 -0
- package/docs/RoleControllerApi.md +221 -0
- package/docs/RoleQueryControllerApi.md +84 -0
- package/docs/RoleResponse.md +40 -0
- package/docs/RolesRequest.md +2 -2
- package/docs/SortObject.md +38 -0
- package/package.json +1 -1
- package/src/apis/AgencyControllerApi.ts +1 -186
- package/src/apis/InvitationControllerApi.ts +15 -15
- package/src/apis/InvitationQueryControllerApi.ts +20 -91
- package/src/apis/MemberControllerApi.ts +168 -0
- package/src/apis/MemberQueryControllerApi.ts +22 -14
- package/src/apis/{AgencyQueryControllerApi.ts → PublicAgencyControllerApi.ts} +50 -48
- package/src/apis/PublicInvitationControllerApi.ts +109 -0
- package/src/apis/PublicRoleControllerApi.ts +83 -0
- package/src/apis/RoleControllerApi.ts +225 -0
- package/src/apis/RoleQueryControllerApi.ts +104 -0
- package/src/apis/index.ts +6 -1
- package/src/models/{AgencyViewResponse.ts → AgencyProfileResponse.ts} +17 -17
- package/src/models/{AgencyPeekViewResponse.ts → AgencySummaryResponse.ts} +24 -24
- package/src/models/AssignRoleRequest.ts +66 -0
- package/src/models/BatchAssignRoleRequest.ts +75 -0
- package/src/models/GroupedPermissionsResponse.ts +96 -0
- package/src/models/OrganizationSummaryViewResponse.ts +13 -10
- package/src/models/PageRoleResponse.ts +167 -0
- package/src/models/PageableObject.ts +113 -0
- package/src/models/PagedModelAgencySummaryResponse.ts +88 -0
- package/src/models/PermissionResponse.ts +105 -0
- package/src/models/RoleResponse.ts +109 -0
- package/src/models/RolesRequest.ts +13 -10
- package/src/models/SortObject.ts +81 -0
- package/src/models/index.ts +11 -4
- package/dist/esm/models/AgencyPeekViewResponse.d.ts +0 -102
- package/dist/esm/models/AgencyViewResponse.d.ts +0 -69
- package/dist/esm/models/Pageable.d.ts +0 -44
- package/dist/esm/models/Pageable.js +0 -45
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
- package/dist/models/AgencyPeekViewResponse.d.ts +0 -102
- package/dist/models/AgencyViewResponse.d.ts +0 -69
- package/dist/models/Pageable.d.ts +0 -44
- package/dist/models/Pageable.js +0 -52
- package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
- package/dist/models/PagedModelAgencyPeekViewResponse.js +0 -52
- package/src/models/Pageable.ts +0 -81
- package/src/models/PagedModelAgencyPeekViewResponse.ts +0 -88
|
@@ -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 BatchAssignRoleRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface BatchAssignRoleRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof BatchAssignRoleRequest
|
|
22
|
+
*/
|
|
23
|
+
roleId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof BatchAssignRoleRequest
|
|
28
|
+
*/
|
|
29
|
+
memberIds: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the BatchAssignRoleRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfBatchAssignRoleRequest(value: object): value is BatchAssignRoleRequest;
|
|
35
|
+
export declare function BatchAssignRoleRequestFromJSON(json: any): BatchAssignRoleRequest;
|
|
36
|
+
export declare function BatchAssignRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchAssignRoleRequest;
|
|
37
|
+
export declare function BatchAssignRoleRequestToJSON(json: any): BatchAssignRoleRequest;
|
|
38
|
+
export declare function BatchAssignRoleRequestToJSONTyped(value?: BatchAssignRoleRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfBatchAssignRoleRequest = instanceOfBatchAssignRoleRequest;
|
|
17
|
+
exports.BatchAssignRoleRequestFromJSON = BatchAssignRoleRequestFromJSON;
|
|
18
|
+
exports.BatchAssignRoleRequestFromJSONTyped = BatchAssignRoleRequestFromJSONTyped;
|
|
19
|
+
exports.BatchAssignRoleRequestToJSON = BatchAssignRoleRequestToJSON;
|
|
20
|
+
exports.BatchAssignRoleRequestToJSONTyped = BatchAssignRoleRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BatchAssignRoleRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBatchAssignRoleRequest(value) {
|
|
25
|
+
if (!('roleId' in value) || value['roleId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('memberIds' in value) || value['memberIds'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function BatchAssignRoleRequestFromJSON(json) {
|
|
32
|
+
return BatchAssignRoleRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function BatchAssignRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'roleId': json['roleId'],
|
|
40
|
+
'memberIds': json['memberIds'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function BatchAssignRoleRequestToJSON(json) {
|
|
44
|
+
return BatchAssignRoleRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function BatchAssignRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'roleId': value['roleId'],
|
|
52
|
+
'memberIds': value['memberIds'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
readonly Member: "MEMBER";
|
|
40
|
+
};
|
|
41
|
+
export type GroupedPermissionsResponseGroupEnum = typeof GroupedPermissionsResponseGroupEnum[keyof typeof GroupedPermissionsResponseGroupEnum];
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GroupedPermissionsResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfGroupedPermissionsResponse(value: object): value is GroupedPermissionsResponse;
|
|
46
|
+
export declare function GroupedPermissionsResponseFromJSON(json: any): GroupedPermissionsResponse;
|
|
47
|
+
export declare function GroupedPermissionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupedPermissionsResponse;
|
|
48
|
+
export declare function GroupedPermissionsResponseToJSON(json: any): GroupedPermissionsResponse;
|
|
49
|
+
export declare function GroupedPermissionsResponseToJSONTyped(value?: GroupedPermissionsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.GroupedPermissionsResponseGroupEnum = void 0;
|
|
17
|
+
exports.instanceOfGroupedPermissionsResponse = instanceOfGroupedPermissionsResponse;
|
|
18
|
+
exports.GroupedPermissionsResponseFromJSON = GroupedPermissionsResponseFromJSON;
|
|
19
|
+
exports.GroupedPermissionsResponseFromJSONTyped = GroupedPermissionsResponseFromJSONTyped;
|
|
20
|
+
exports.GroupedPermissionsResponseToJSON = GroupedPermissionsResponseToJSON;
|
|
21
|
+
exports.GroupedPermissionsResponseToJSONTyped = GroupedPermissionsResponseToJSONTyped;
|
|
22
|
+
const PermissionResponse_1 = require("./PermissionResponse");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GroupedPermissionsResponseGroupEnum = {
|
|
27
|
+
Agency: 'AGENCY',
|
|
28
|
+
Invitation: 'INVITATION',
|
|
29
|
+
Role: 'ROLE',
|
|
30
|
+
Member: 'MEMBER'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the GroupedPermissionsResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfGroupedPermissionsResponse(value) {
|
|
36
|
+
if (!('group' in value) || value['group'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function GroupedPermissionsResponseFromJSON(json) {
|
|
43
|
+
return GroupedPermissionsResponseFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function GroupedPermissionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'group': json['group'],
|
|
51
|
+
'permissions': (json['permissions'].map(PermissionResponse_1.PermissionResponseFromJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function GroupedPermissionsResponseToJSON(json) {
|
|
55
|
+
return GroupedPermissionsResponseToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function GroupedPermissionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'group': value['group'],
|
|
63
|
+
'permissions': (value['permissions'].map(PermissionResponse_1.PermissionResponseToJSON)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -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,16 @@ 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";
|
|
82
|
+
readonly MemberRead: "MEMBER_READ";
|
|
83
|
+
readonly MemberWrite: "MEMBER_WRITE";
|
|
81
84
|
};
|
|
82
|
-
export type
|
|
85
|
+
export type OrganizationSummaryViewResponsePermissionsEnum = typeof OrganizationSummaryViewResponsePermissionsEnum[keyof typeof OrganizationSummaryViewResponsePermissionsEnum];
|
|
83
86
|
/**
|
|
84
87
|
* @export
|
|
85
88
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.OrganizationSummaryViewResponseStatusEnum = exports.
|
|
16
|
+
exports.OrganizationSummaryViewResponseStatusEnum = exports.OrganizationSummaryViewResponsePermissionsEnum = void 0;
|
|
17
17
|
exports.instanceOfOrganizationSummaryViewResponse = instanceOfOrganizationSummaryViewResponse;
|
|
18
18
|
exports.OrganizationSummaryViewResponseFromJSON = OrganizationSummaryViewResponseFromJSON;
|
|
19
19
|
exports.OrganizationSummaryViewResponseFromJSONTyped = OrganizationSummaryViewResponseFromJSONTyped;
|
|
@@ -22,11 +22,14 @@ exports.OrganizationSummaryViewResponseToJSONTyped = OrganizationSummaryViewResp
|
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
exports.OrganizationSummaryViewResponsePermissionsEnum = {
|
|
26
|
+
AgencyWrite: 'AGENCY_WRITE',
|
|
27
|
+
InvitationRead: 'INVITATION_READ',
|
|
28
|
+
InvitationWrite: 'INVITATION_WRITE',
|
|
29
|
+
RoleRead: 'ROLE_READ',
|
|
30
|
+
RoleWrite: 'ROLE_WRITE',
|
|
31
|
+
MemberRead: 'MEMBER_READ',
|
|
32
|
+
MemberWrite: 'MEMBER_WRITE'
|
|
30
33
|
};
|
|
31
34
|
/**
|
|
32
35
|
* @export
|
|
@@ -53,7 +56,7 @@ function instanceOfOrganizationSummaryViewResponse(value) {
|
|
|
53
56
|
return false;
|
|
54
57
|
if (!('roleName' in value) || value['roleName'] === undefined)
|
|
55
58
|
return false;
|
|
56
|
-
if (!('
|
|
59
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
57
60
|
return false;
|
|
58
61
|
if (!('status' in value) || value['status'] === undefined)
|
|
59
62
|
return false;
|
|
@@ -74,7 +77,7 @@ function OrganizationSummaryViewResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
74
77
|
'roleId': json['roleId'] == null ? undefined : json['roleId'],
|
|
75
78
|
'memberId': json['memberId'],
|
|
76
79
|
'roleName': json['roleName'],
|
|
77
|
-
'
|
|
80
|
+
'permissions': json['permissions'],
|
|
78
81
|
'status': json['status'],
|
|
79
82
|
};
|
|
80
83
|
}
|
|
@@ -93,7 +96,7 @@ function OrganizationSummaryViewResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
93
96
|
'roleId': value['roleId'],
|
|
94
97
|
'memberId': value['memberId'],
|
|
95
98
|
'roleName': value['roleName'],
|
|
96
|
-
'
|
|
99
|
+
'permissions': value['permissions'],
|
|
97
100
|
'status': value['status'],
|
|
98
101
|
};
|
|
99
102
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { PageableObject } from './PageableObject';
|
|
13
|
+
import type { SortObject } from './SortObject';
|
|
14
|
+
import type { RoleResponse } from './RoleResponse';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PageRoleResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface PageRoleResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof PageRoleResponse
|
|
25
|
+
*/
|
|
26
|
+
totalElements?: number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof PageRoleResponse
|
|
31
|
+
*/
|
|
32
|
+
totalPages?: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof PageRoleResponse
|
|
37
|
+
*/
|
|
38
|
+
size?: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<RoleResponse>}
|
|
42
|
+
* @memberof PageRoleResponse
|
|
43
|
+
*/
|
|
44
|
+
content?: Array<RoleResponse>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof PageRoleResponse
|
|
49
|
+
*/
|
|
50
|
+
number?: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {boolean}
|
|
54
|
+
* @memberof PageRoleResponse
|
|
55
|
+
*/
|
|
56
|
+
first?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof PageRoleResponse
|
|
61
|
+
*/
|
|
62
|
+
last?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof PageRoleResponse
|
|
67
|
+
*/
|
|
68
|
+
numberOfElements?: number;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {SortObject}
|
|
72
|
+
* @memberof PageRoleResponse
|
|
73
|
+
*/
|
|
74
|
+
sort?: SortObject;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {PageableObject}
|
|
78
|
+
* @memberof PageRoleResponse
|
|
79
|
+
*/
|
|
80
|
+
pageable?: PageableObject;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof PageRoleResponse
|
|
85
|
+
*/
|
|
86
|
+
empty?: boolean;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the PageRoleResponse interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfPageRoleResponse(value: object): value is PageRoleResponse;
|
|
92
|
+
export declare function PageRoleResponseFromJSON(json: any): PageRoleResponse;
|
|
93
|
+
export declare function PageRoleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageRoleResponse;
|
|
94
|
+
export declare function PageRoleResponseToJSON(json: any): PageRoleResponse;
|
|
95
|
+
export declare function PageRoleResponseToJSONTyped(value?: PageRoleResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
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.instanceOfPageRoleResponse = instanceOfPageRoleResponse;
|
|
17
|
+
exports.PageRoleResponseFromJSON = PageRoleResponseFromJSON;
|
|
18
|
+
exports.PageRoleResponseFromJSONTyped = PageRoleResponseFromJSONTyped;
|
|
19
|
+
exports.PageRoleResponseToJSON = PageRoleResponseToJSON;
|
|
20
|
+
exports.PageRoleResponseToJSONTyped = PageRoleResponseToJSONTyped;
|
|
21
|
+
const PageableObject_1 = require("./PageableObject");
|
|
22
|
+
const SortObject_1 = require("./SortObject");
|
|
23
|
+
const RoleResponse_1 = require("./RoleResponse");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the PageRoleResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfPageRoleResponse(value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function PageRoleResponseFromJSON(json) {
|
|
31
|
+
return PageRoleResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function PageRoleResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
|
|
39
|
+
'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
|
|
40
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
41
|
+
'content': json['content'] == null ? undefined : (json['content'].map(RoleResponse_1.RoleResponseFromJSON)),
|
|
42
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
43
|
+
'first': json['first'] == null ? undefined : json['first'],
|
|
44
|
+
'last': json['last'] == null ? undefined : json['last'],
|
|
45
|
+
'numberOfElements': json['numberOfElements'] == null ? undefined : json['numberOfElements'],
|
|
46
|
+
'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
|
|
47
|
+
'pageable': json['pageable'] == null ? undefined : (0, PageableObject_1.PageableObjectFromJSON)(json['pageable']),
|
|
48
|
+
'empty': json['empty'] == null ? undefined : json['empty'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PageRoleResponseToJSON(json) {
|
|
52
|
+
return PageRoleResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PageRoleResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'totalElements': value['totalElements'],
|
|
60
|
+
'totalPages': value['totalPages'],
|
|
61
|
+
'size': value['size'],
|
|
62
|
+
'content': value['content'] == null ? undefined : (value['content'].map(RoleResponse_1.RoleResponseToJSON)),
|
|
63
|
+
'number': value['number'],
|
|
64
|
+
'first': value['first'],
|
|
65
|
+
'last': value['last'],
|
|
66
|
+
'numberOfElements': value['numberOfElements'],
|
|
67
|
+
'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
|
|
68
|
+
'pageable': (0, PageableObject_1.PageableObjectToJSON)(value['pageable']),
|
|
69
|
+
'empty': value['empty'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { SortObject } from './SortObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PageableObject
|
|
17
|
+
*/
|
|
18
|
+
export interface PageableObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof PageableObject
|
|
23
|
+
*/
|
|
24
|
+
offset?: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SortObject}
|
|
28
|
+
* @memberof PageableObject
|
|
29
|
+
*/
|
|
30
|
+
sort?: SortObject;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof PageableObject
|
|
35
|
+
*/
|
|
36
|
+
unpaged?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof PageableObject
|
|
41
|
+
*/
|
|
42
|
+
paged?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof PageableObject
|
|
47
|
+
*/
|
|
48
|
+
pageNumber?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PageableObject
|
|
53
|
+
*/
|
|
54
|
+
pageSize?: number;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PageableObject interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfPageableObject(value: object): value is PageableObject;
|
|
60
|
+
export declare function PageableObjectFromJSON(json: any): PageableObject;
|
|
61
|
+
export declare function PageableObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageableObject;
|
|
62
|
+
export declare function PageableObjectToJSON(json: any): PageableObject;
|
|
63
|
+
export declare function PageableObjectToJSONTyped(value?: PageableObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfPageableObject = instanceOfPageableObject;
|
|
17
|
+
exports.PageableObjectFromJSON = PageableObjectFromJSON;
|
|
18
|
+
exports.PageableObjectFromJSONTyped = PageableObjectFromJSONTyped;
|
|
19
|
+
exports.PageableObjectToJSON = PageableObjectToJSON;
|
|
20
|
+
exports.PageableObjectToJSONTyped = PageableObjectToJSONTyped;
|
|
21
|
+
const SortObject_1 = require("./SortObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PageableObject interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPageableObject(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function PageableObjectFromJSON(json) {
|
|
29
|
+
return PageableObjectFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function PageableObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'offset': json['offset'] == null ? undefined : json['offset'],
|
|
37
|
+
'sort': json['sort'] == null ? undefined : (0, SortObject_1.SortObjectFromJSON)(json['sort']),
|
|
38
|
+
'unpaged': json['unpaged'] == null ? undefined : json['unpaged'],
|
|
39
|
+
'paged': json['paged'] == null ? undefined : json['paged'],
|
|
40
|
+
'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
|
|
41
|
+
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function PageableObjectToJSON(json) {
|
|
45
|
+
return PageableObjectToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PageableObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'offset': value['offset'],
|
|
53
|
+
'sort': (0, SortObject_1.SortObjectToJSON)(value['sort']),
|
|
54
|
+
'unpaged': value['unpaged'],
|
|
55
|
+
'paged': value['paged'],
|
|
56
|
+
'pageNumber': value['pageNumber'],
|
|
57
|
+
'pageSize': value['pageSize'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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 { PageMetadata } from './PageMetadata';
|
|
13
|
+
import type { AgencySummaryResponse } from './AgencySummaryResponse';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PagedModelAgencySummaryResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PagedModelAgencySummaryResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<AgencySummaryResponse>}
|
|
23
|
+
* @memberof PagedModelAgencySummaryResponse
|
|
24
|
+
*/
|
|
25
|
+
content?: Array<AgencySummaryResponse>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PageMetadata}
|
|
29
|
+
* @memberof PagedModelAgencySummaryResponse
|
|
30
|
+
*/
|
|
31
|
+
page?: PageMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PagedModelAgencySummaryResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPagedModelAgencySummaryResponse(value: object): value is PagedModelAgencySummaryResponse;
|
|
37
|
+
export declare function PagedModelAgencySummaryResponseFromJSON(json: any): PagedModelAgencySummaryResponse;
|
|
38
|
+
export declare function PagedModelAgencySummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedModelAgencySummaryResponse;
|
|
39
|
+
export declare function PagedModelAgencySummaryResponseToJSON(json: any): PagedModelAgencySummaryResponse;
|
|
40
|
+
export declare function PagedModelAgencySummaryResponseToJSONTyped(value?: PagedModelAgencySummaryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfPagedModelAgencySummaryResponse = instanceOfPagedModelAgencySummaryResponse;
|
|
17
|
+
exports.PagedModelAgencySummaryResponseFromJSON = PagedModelAgencySummaryResponseFromJSON;
|
|
18
|
+
exports.PagedModelAgencySummaryResponseFromJSONTyped = PagedModelAgencySummaryResponseFromJSONTyped;
|
|
19
|
+
exports.PagedModelAgencySummaryResponseToJSON = PagedModelAgencySummaryResponseToJSON;
|
|
20
|
+
exports.PagedModelAgencySummaryResponseToJSONTyped = PagedModelAgencySummaryResponseToJSONTyped;
|
|
21
|
+
const PageMetadata_1 = require("./PageMetadata");
|
|
22
|
+
const AgencySummaryResponse_1 = require("./AgencySummaryResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PagedModelAgencySummaryResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPagedModelAgencySummaryResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PagedModelAgencySummaryResponseFromJSON(json) {
|
|
30
|
+
return PagedModelAgencySummaryResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PagedModelAgencySummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'content': json['content'] == null ? undefined : (json['content'].map(AgencySummaryResponse_1.AgencySummaryResponseFromJSON)),
|
|
38
|
+
'page': json['page'] == null ? undefined : (0, PageMetadata_1.PageMetadataFromJSON)(json['page']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PagedModelAgencySummaryResponseToJSON(json) {
|
|
42
|
+
return PagedModelAgencySummaryResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PagedModelAgencySummaryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'content': value['content'] == null ? undefined : (value['content'].map(AgencySummaryResponse_1.AgencySummaryResponseToJSON)),
|
|
50
|
+
'page': (0, PageMetadata_1.PageMetadataToJSON)(value['page']),
|
|
51
|
+
};
|
|
52
|
+
}
|