@homespot-sdk/api 0.0.634 → 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 +4 -0
- package/README.md +5 -2
- package/dist/apis/AgencyQueryControllerApi.d.ts +17 -1
- package/dist/apis/AgencyQueryControllerApi.js +28 -0
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +17 -1
- package/dist/esm/apis/AgencyQueryControllerApi.js +29 -1
- package/dist/esm/models/GroupedPermissionsResponse.d.ts +48 -0
- package/dist/esm/models/GroupedPermissionsResponse.js +56 -0
- package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +8 -7
- package/dist/esm/models/OrganizationSummaryViewResponse.js +9 -8
- 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 +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/GroupedPermissionsResponse.d.ts +48 -0
- package/dist/models/GroupedPermissionsResponse.js +64 -0
- package/dist/models/OrganizationSummaryViewResponse.d.ts +8 -7
- package/dist/models/OrganizationSummaryViewResponse.js +10 -9
- 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 +2 -0
- package/dist/models/index.js +2 -0
- package/docs/AgencyQueryControllerApi.md +62 -0
- package/docs/GroupedPermissionsResponse.md +36 -0
- package/docs/OrganizationSummaryViewResponse.md +2 -2
- package/docs/PermissionResponse.md +36 -0
- package/docs/RolesRequest.md +2 -2
- package/package.json +1 -1
- package/src/apis/AgencyQueryControllerApi.ts +47 -0
- package/src/models/GroupedPermissionsResponse.ts +95 -0
- package/src/models/OrganizationSummaryViewResponse.ts +11 -10
- package/src/models/PermissionResponse.ts +101 -0
- package/src/models/RolesRequest.ts +11 -10
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,7 @@ docs/AgencyPeekViewResponse.md
|
|
|
9
9
|
docs/AgencyQueryControllerApi.md
|
|
10
10
|
docs/AgencyViewResponse.md
|
|
11
11
|
docs/CreateAgencyRequest.md
|
|
12
|
+
docs/GroupedPermissionsResponse.md
|
|
12
13
|
docs/IdResponse.md
|
|
13
14
|
docs/InvitationControllerApi.md
|
|
14
15
|
docs/InvitationDetailsRequest.md
|
|
@@ -24,6 +25,7 @@ docs/Pageable.md
|
|
|
24
25
|
docs/PagedModelAgencyPeekViewResponse.md
|
|
25
26
|
docs/PagedModelInvitationViewResponse.md
|
|
26
27
|
docs/PagedModelMemberViewResponse.md
|
|
28
|
+
docs/PermissionResponse.md
|
|
27
29
|
docs/PhotoRequest.md
|
|
28
30
|
docs/PresignedUrlResponse.md
|
|
29
31
|
docs/PresignedUrlsResponse.md
|
|
@@ -48,6 +50,7 @@ src/models/AddressViewResponse.ts
|
|
|
48
50
|
src/models/AgencyPeekViewResponse.ts
|
|
49
51
|
src/models/AgencyViewResponse.ts
|
|
50
52
|
src/models/CreateAgencyRequest.ts
|
|
53
|
+
src/models/GroupedPermissionsResponse.ts
|
|
51
54
|
src/models/IdResponse.ts
|
|
52
55
|
src/models/InvitationDetailsRequest.ts
|
|
53
56
|
src/models/InvitationDetailsResponse.ts
|
|
@@ -60,6 +63,7 @@ src/models/Pageable.ts
|
|
|
60
63
|
src/models/PagedModelAgencyPeekViewResponse.ts
|
|
61
64
|
src/models/PagedModelInvitationViewResponse.ts
|
|
62
65
|
src/models/PagedModelMemberViewResponse.ts
|
|
66
|
+
src/models/PermissionResponse.ts
|
|
63
67
|
src/models/PhotoRequest.ts
|
|
64
68
|
src/models/PresignedUrlResponse.ts
|
|
65
69
|
src/models/PresignedUrlsResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @homespot-sdk/api@0.0.
|
|
1
|
+
# @homespot-sdk/api@0.0.635
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the gateway.dev.homespot.ge API.
|
|
4
4
|
|
|
@@ -67,6 +67,7 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
67
67
|
*AgencyQueryControllerApi* | [**getAgency**](docs/AgencyQueryControllerApi.md#getagency) | **GET** /agency/{agencyId} |
|
|
68
68
|
*AgencyQueryControllerApi* | [**getAgencyBySubdomain**](docs/AgencyQueryControllerApi.md#getagencybysubdomain) | **GET** /agency/subdomain/{subDomain} |
|
|
69
69
|
*AgencyQueryControllerApi* | [**getAllAgencies**](docs/AgencyQueryControllerApi.md#getallagencies) | **GET** /agency |
|
|
70
|
+
*AgencyQueryControllerApi* | [**getAllPermissions**](docs/AgencyQueryControllerApi.md#getallpermissions) | **GET** /agency/roles/permissions |
|
|
70
71
|
*InvitationControllerApi* | [**inviteAccepted**](docs/InvitationControllerApi.md#inviteaccepted) | **POST** /invitation/{invitationId} |
|
|
71
72
|
*InvitationControllerApi* | [**inviteMember**](docs/InvitationControllerApi.md#invitememberoperation) | **POST** /invitation |
|
|
72
73
|
*InvitationQueryControllerApi* | [**getAllInvitations**](docs/InvitationQueryControllerApi.md#getallinvitations) | **GET** /invitation |
|
|
@@ -82,6 +83,7 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
82
83
|
- [AgencyPeekViewResponse](docs/AgencyPeekViewResponse.md)
|
|
83
84
|
- [AgencyViewResponse](docs/AgencyViewResponse.md)
|
|
84
85
|
- [CreateAgencyRequest](docs/CreateAgencyRequest.md)
|
|
86
|
+
- [GroupedPermissionsResponse](docs/GroupedPermissionsResponse.md)
|
|
85
87
|
- [IdResponse](docs/IdResponse.md)
|
|
86
88
|
- [InvitationDetailsRequest](docs/InvitationDetailsRequest.md)
|
|
87
89
|
- [InvitationDetailsResponse](docs/InvitationDetailsResponse.md)
|
|
@@ -94,6 +96,7 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
94
96
|
- [PagedModelAgencyPeekViewResponse](docs/PagedModelAgencyPeekViewResponse.md)
|
|
95
97
|
- [PagedModelInvitationViewResponse](docs/PagedModelInvitationViewResponse.md)
|
|
96
98
|
- [PagedModelMemberViewResponse](docs/PagedModelMemberViewResponse.md)
|
|
99
|
+
- [PermissionResponse](docs/PermissionResponse.md)
|
|
97
100
|
- [PhotoRequest](docs/PhotoRequest.md)
|
|
98
101
|
- [PresignedUrlResponse](docs/PresignedUrlResponse.md)
|
|
99
102
|
- [PresignedUrlsResponse](docs/PresignedUrlsResponse.md)
|
|
@@ -127,7 +130,7 @@ and is automatically generated by the
|
|
|
127
130
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
128
131
|
|
|
129
132
|
- API version: `v1`
|
|
130
|
-
- Package version: `0.0.
|
|
133
|
+
- Package version: `0.0.635`
|
|
131
134
|
- Generator version: `7.18.0`
|
|
132
135
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
133
136
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgencyPeekViewResponse, AgencyViewResponse, Pageable, PagedModelAgencyPeekViewResponse } from '../models/index';
|
|
13
|
+
import type { AgencyPeekViewResponse, AgencyViewResponse, GroupedPermissionsResponse, Pageable, PagedModelAgencyPeekViewResponse } from '../models/index';
|
|
14
14
|
export interface GetAgencyRequest {
|
|
15
15
|
agencyId: string;
|
|
16
16
|
}
|
|
@@ -62,6 +62,16 @@ export interface AgencyQueryControllerApiInterface {
|
|
|
62
62
|
/**
|
|
63
63
|
*/
|
|
64
64
|
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencyPeekViewResponse>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
* @memberof AgencyQueryControllerApiInterface
|
|
70
|
+
*/
|
|
71
|
+
getAllPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>>;
|
|
72
|
+
/**
|
|
73
|
+
*/
|
|
74
|
+
getAllPermissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GroupedPermissionsResponse>>;
|
|
65
75
|
}
|
|
66
76
|
/**
|
|
67
77
|
*
|
|
@@ -85,6 +95,12 @@ export declare class AgencyQueryControllerApi extends runtime.BaseAPI implements
|
|
|
85
95
|
/**
|
|
86
96
|
*/
|
|
87
97
|
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencyPeekViewResponse>;
|
|
98
|
+
/**
|
|
99
|
+
*/
|
|
100
|
+
getAllPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>>;
|
|
101
|
+
/**
|
|
102
|
+
*/
|
|
103
|
+
getAllPermissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GroupedPermissionsResponse>>;
|
|
88
104
|
}
|
|
89
105
|
/**
|
|
90
106
|
* @export
|
|
@@ -130,6 +130,34 @@ class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
|
130
130
|
return yield response.value();
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
*/
|
|
135
|
+
getAllPermissionsRaw(initOverrides) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
const queryParameters = {};
|
|
138
|
+
const headerParameters = {};
|
|
139
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
140
|
+
// oauth required
|
|
141
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
142
|
+
}
|
|
143
|
+
let urlPath = `/agency/roles/permissions`;
|
|
144
|
+
const response = yield this.request({
|
|
145
|
+
path: urlPath,
|
|
146
|
+
method: 'GET',
|
|
147
|
+
headers: headerParameters,
|
|
148
|
+
query: queryParameters,
|
|
149
|
+
}, initOverrides);
|
|
150
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GroupedPermissionsResponseFromJSON));
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
*/
|
|
155
|
+
getAllPermissions(initOverrides) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const response = yield this.getAllPermissionsRaw(initOverrides);
|
|
158
|
+
return yield response.value();
|
|
159
|
+
});
|
|
160
|
+
}
|
|
133
161
|
}
|
|
134
162
|
exports.AgencyQueryControllerApi = AgencyQueryControllerApi;
|
|
135
163
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AgencyPeekViewResponse, AgencyViewResponse, Pageable, PagedModelAgencyPeekViewResponse } from '../models/index';
|
|
13
|
+
import type { AgencyPeekViewResponse, AgencyViewResponse, GroupedPermissionsResponse, Pageable, PagedModelAgencyPeekViewResponse } from '../models/index';
|
|
14
14
|
export interface GetAgencyRequest {
|
|
15
15
|
agencyId: string;
|
|
16
16
|
}
|
|
@@ -62,6 +62,16 @@ export interface AgencyQueryControllerApiInterface {
|
|
|
62
62
|
/**
|
|
63
63
|
*/
|
|
64
64
|
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencyPeekViewResponse>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
* @memberof AgencyQueryControllerApiInterface
|
|
70
|
+
*/
|
|
71
|
+
getAllPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>>;
|
|
72
|
+
/**
|
|
73
|
+
*/
|
|
74
|
+
getAllPermissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GroupedPermissionsResponse>>;
|
|
65
75
|
}
|
|
66
76
|
/**
|
|
67
77
|
*
|
|
@@ -85,6 +95,12 @@ export declare class AgencyQueryControllerApi extends runtime.BaseAPI implements
|
|
|
85
95
|
/**
|
|
86
96
|
*/
|
|
87
97
|
getAllAgencies(requestParameters: GetAllAgenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedModelAgencyPeekViewResponse>;
|
|
98
|
+
/**
|
|
99
|
+
*/
|
|
100
|
+
getAllPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<GroupedPermissionsResponse>>>;
|
|
101
|
+
/**
|
|
102
|
+
*/
|
|
103
|
+
getAllPermissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<GroupedPermissionsResponse>>;
|
|
88
104
|
}
|
|
89
105
|
/**
|
|
90
106
|
* @export
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { AgencyPeekViewResponseFromJSON, AgencyViewResponseFromJSON, PagedModelAgencyPeekViewResponseFromJSON, } from '../models/index';
|
|
24
|
+
import { AgencyPeekViewResponseFromJSON, AgencyViewResponseFromJSON, GroupedPermissionsResponseFromJSON, PagedModelAgencyPeekViewResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -127,6 +127,34 @@ export class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
|
127
127
|
return yield response.value();
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
*/
|
|
132
|
+
getAllPermissionsRaw(initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
const queryParameters = {};
|
|
135
|
+
const headerParameters = {};
|
|
136
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
137
|
+
// oauth required
|
|
138
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
139
|
+
}
|
|
140
|
+
let urlPath = `/agency/roles/permissions`;
|
|
141
|
+
const response = yield this.request({
|
|
142
|
+
path: urlPath,
|
|
143
|
+
method: 'GET',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GroupedPermissionsResponseFromJSON));
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
*/
|
|
152
|
+
getAllPermissions(initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
const response = yield this.getAllPermissionsRaw(initOverrides);
|
|
155
|
+
return yield response.value();
|
|
156
|
+
});
|
|
157
|
+
}
|
|
130
158
|
}
|
|
131
159
|
/**
|
|
132
160
|
* @export
|
|
@@ -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
|
+
}
|
|
@@ -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,60 @@
|
|
|
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 PermissionResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface PermissionResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PermissionResponse
|
|
22
|
+
*/
|
|
23
|
+
permission: PermissionResponsePermissionEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof PermissionResponse
|
|
28
|
+
*/
|
|
29
|
+
implied: Array<PermissionResponseImpliedEnum>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const PermissionResponsePermissionEnum: {
|
|
35
|
+
readonly AgencyWrite: "AGENCY_WRITE";
|
|
36
|
+
readonly InvitationRead: "INVITATION_READ";
|
|
37
|
+
readonly InvitationWrite: "INVITATION_WRITE";
|
|
38
|
+
readonly RoleRead: "ROLE_READ";
|
|
39
|
+
readonly RoleWrite: "ROLE_WRITE";
|
|
40
|
+
};
|
|
41
|
+
export type PermissionResponsePermissionEnum = typeof PermissionResponsePermissionEnum[keyof typeof PermissionResponsePermissionEnum];
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const PermissionResponseImpliedEnum: {
|
|
46
|
+
readonly AgencyWrite: "AGENCY_WRITE";
|
|
47
|
+
readonly InvitationRead: "INVITATION_READ";
|
|
48
|
+
readonly InvitationWrite: "INVITATION_WRITE";
|
|
49
|
+
readonly RoleRead: "ROLE_READ";
|
|
50
|
+
readonly RoleWrite: "ROLE_WRITE";
|
|
51
|
+
};
|
|
52
|
+
export type PermissionResponseImpliedEnum = typeof PermissionResponseImpliedEnum[keyof typeof PermissionResponseImpliedEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the PermissionResponse interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfPermissionResponse(value: object): value is PermissionResponse;
|
|
57
|
+
export declare function PermissionResponseFromJSON(json: any): PermissionResponse;
|
|
58
|
+
export declare function PermissionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionResponse;
|
|
59
|
+
export declare function PermissionResponseToJSON(json: any): PermissionResponse;
|
|
60
|
+
export declare function PermissionResponseToJSONTyped(value?: PermissionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 PermissionResponsePermissionEnum = {
|
|
18
|
+
AgencyWrite: 'AGENCY_WRITE',
|
|
19
|
+
InvitationRead: 'INVITATION_READ',
|
|
20
|
+
InvitationWrite: 'INVITATION_WRITE',
|
|
21
|
+
RoleRead: 'ROLE_READ',
|
|
22
|
+
RoleWrite: 'ROLE_WRITE'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const PermissionResponseImpliedEnum = {
|
|
28
|
+
AgencyWrite: 'AGENCY_WRITE',
|
|
29
|
+
InvitationRead: 'INVITATION_READ',
|
|
30
|
+
InvitationWrite: 'INVITATION_WRITE',
|
|
31
|
+
RoleRead: 'ROLE_READ',
|
|
32
|
+
RoleWrite: 'ROLE_WRITE'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the PermissionResponse interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfPermissionResponse(value) {
|
|
38
|
+
if (!('permission' in value) || value['permission'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('implied' in value) || value['implied'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function PermissionResponseFromJSON(json) {
|
|
45
|
+
return PermissionResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function PermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'permission': json['permission'],
|
|
53
|
+
'implied': json['implied'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function PermissionResponseToJSON(json) {
|
|
57
|
+
return PermissionResponseToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function PermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'permission': value['permission'],
|
|
65
|
+
'implied': value['implied'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -32,18 +32,19 @@ export interface RolesRequest {
|
|
|
32
32
|
* @type {Array<string>}
|
|
33
33
|
* @memberof RolesRequest
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
permissions: Array<RolesRequestPermissionsEnum>;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
|
-
export declare const
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
40
|
+
export declare const RolesRequestPermissionsEnum: {
|
|
41
|
+
readonly AgencyWrite: "AGENCY_WRITE";
|
|
42
|
+
readonly InvitationRead: "INVITATION_READ";
|
|
43
|
+
readonly InvitationWrite: "INVITATION_WRITE";
|
|
44
|
+
readonly RoleRead: "ROLE_READ";
|
|
45
|
+
readonly RoleWrite: "ROLE_WRITE";
|
|
45
46
|
};
|
|
46
|
-
export type
|
|
47
|
+
export type RolesRequestPermissionsEnum = typeof RolesRequestPermissionsEnum[keyof typeof RolesRequestPermissionsEnum];
|
|
47
48
|
/**
|
|
48
49
|
* Check if a given object implements the RolesRequest interface.
|
|
49
50
|
*/
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
export const RolesRequestPermissionsEnum = {
|
|
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
|
* Check if a given object implements the RolesRequest interface.
|
|
@@ -28,7 +29,7 @@ export function instanceOfRolesRequest(value) {
|
|
|
28
29
|
return false;
|
|
29
30
|
if (!('description' in value) || value['description'] === undefined)
|
|
30
31
|
return false;
|
|
31
|
-
if (!('
|
|
32
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
32
33
|
return false;
|
|
33
34
|
return true;
|
|
34
35
|
}
|
|
@@ -42,7 +43,7 @@ export function RolesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
return {
|
|
43
44
|
'name': json['name'],
|
|
44
45
|
'description': json['description'],
|
|
45
|
-
'
|
|
46
|
+
'permissions': json['permissions'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
export function RolesRequestToJSON(json) {
|
|
@@ -55,6 +56,6 @@ export function RolesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
56
|
return {
|
|
56
57
|
'name': value['name'],
|
|
57
58
|
'description': value['description'],
|
|
58
|
-
'
|
|
59
|
+
'permissions': value['permissions'],
|
|
59
60
|
};
|
|
60
61
|
}
|
|
@@ -3,6 +3,7 @@ export * from './AddressViewResponse';
|
|
|
3
3
|
export * from './AgencyPeekViewResponse';
|
|
4
4
|
export * from './AgencyViewResponse';
|
|
5
5
|
export * from './CreateAgencyRequest';
|
|
6
|
+
export * from './GroupedPermissionsResponse';
|
|
6
7
|
export * from './IdResponse';
|
|
7
8
|
export * from './InvitationDetailsRequest';
|
|
8
9
|
export * from './InvitationDetailsResponse';
|
|
@@ -15,6 +16,7 @@ export * from './Pageable';
|
|
|
15
16
|
export * from './PagedModelAgencyPeekViewResponse';
|
|
16
17
|
export * from './PagedModelInvitationViewResponse';
|
|
17
18
|
export * from './PagedModelMemberViewResponse';
|
|
19
|
+
export * from './PermissionResponse';
|
|
18
20
|
export * from './PhotoRequest';
|
|
19
21
|
export * from './PresignedUrlResponse';
|
|
20
22
|
export * from './PresignedUrlsResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export * from './AddressViewResponse';
|
|
|
5
5
|
export * from './AgencyPeekViewResponse';
|
|
6
6
|
export * from './AgencyViewResponse';
|
|
7
7
|
export * from './CreateAgencyRequest';
|
|
8
|
+
export * from './GroupedPermissionsResponse';
|
|
8
9
|
export * from './IdResponse';
|
|
9
10
|
export * from './InvitationDetailsRequest';
|
|
10
11
|
export * from './InvitationDetailsResponse';
|
|
@@ -17,6 +18,7 @@ export * from './Pageable';
|
|
|
17
18
|
export * from './PagedModelAgencyPeekViewResponse';
|
|
18
19
|
export * from './PagedModelInvitationViewResponse';
|
|
19
20
|
export * from './PagedModelMemberViewResponse';
|
|
21
|
+
export * from './PermissionResponse';
|
|
20
22
|
export * from './PhotoRequest';
|
|
21
23
|
export * from './PresignedUrlResponse';
|
|
22
24
|
export * from './PresignedUrlsResponse';
|