@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
|
@@ -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,64 @@
|
|
|
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
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the GroupedPermissionsResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfGroupedPermissionsResponse(value) {
|
|
35
|
+
if (!('group' in value) || value['group'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function GroupedPermissionsResponseFromJSON(json) {
|
|
42
|
+
return GroupedPermissionsResponseFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GroupedPermissionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'group': json['group'],
|
|
50
|
+
'permissions': (json['permissions'].map(PermissionResponse_1.PermissionResponseFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GroupedPermissionsResponseToJSON(json) {
|
|
54
|
+
return GroupedPermissionsResponseToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GroupedPermissionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'group': value['group'],
|
|
62
|
+
'permissions': (value['permissions'].map(PermissionResponse_1.PermissionResponseToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -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,12 @@ 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'
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
33
|
* @export
|
|
@@ -53,7 +54,7 @@ function instanceOfOrganizationSummaryViewResponse(value) {
|
|
|
53
54
|
return false;
|
|
54
55
|
if (!('roleName' in value) || value['roleName'] === undefined)
|
|
55
56
|
return false;
|
|
56
|
-
if (!('
|
|
57
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
57
58
|
return false;
|
|
58
59
|
if (!('status' in value) || value['status'] === undefined)
|
|
59
60
|
return false;
|
|
@@ -74,7 +75,7 @@ function OrganizationSummaryViewResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
74
75
|
'roleId': json['roleId'] == null ? undefined : json['roleId'],
|
|
75
76
|
'memberId': json['memberId'],
|
|
76
77
|
'roleName': json['roleName'],
|
|
77
|
-
'
|
|
78
|
+
'permissions': json['permissions'],
|
|
78
79
|
'status': json['status'],
|
|
79
80
|
};
|
|
80
81
|
}
|
|
@@ -93,7 +94,7 @@ function OrganizationSummaryViewResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
93
94
|
'roleId': value['roleId'],
|
|
94
95
|
'memberId': value['memberId'],
|
|
95
96
|
'roleName': value['roleName'],
|
|
96
|
-
'
|
|
97
|
+
'permissions': value['permissions'],
|
|
97
98
|
'status': value['status'],
|
|
98
99
|
};
|
|
99
100
|
}
|
|
@@ -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,75 @@
|
|
|
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.PermissionResponseImpliedEnum = exports.PermissionResponsePermissionEnum = void 0;
|
|
17
|
+
exports.instanceOfPermissionResponse = instanceOfPermissionResponse;
|
|
18
|
+
exports.PermissionResponseFromJSON = PermissionResponseFromJSON;
|
|
19
|
+
exports.PermissionResponseFromJSONTyped = PermissionResponseFromJSONTyped;
|
|
20
|
+
exports.PermissionResponseToJSON = PermissionResponseToJSON;
|
|
21
|
+
exports.PermissionResponseToJSONTyped = PermissionResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PermissionResponsePermissionEnum = {
|
|
26
|
+
AgencyWrite: 'AGENCY_WRITE',
|
|
27
|
+
InvitationRead: 'INVITATION_READ',
|
|
28
|
+
InvitationWrite: 'INVITATION_WRITE',
|
|
29
|
+
RoleRead: 'ROLE_READ',
|
|
30
|
+
RoleWrite: 'ROLE_WRITE'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.PermissionResponseImpliedEnum = {
|
|
36
|
+
AgencyWrite: 'AGENCY_WRITE',
|
|
37
|
+
InvitationRead: 'INVITATION_READ',
|
|
38
|
+
InvitationWrite: 'INVITATION_WRITE',
|
|
39
|
+
RoleRead: 'ROLE_READ',
|
|
40
|
+
RoleWrite: 'ROLE_WRITE'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PermissionResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfPermissionResponse(value) {
|
|
46
|
+
if (!('permission' in value) || value['permission'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('implied' in value) || value['implied'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function PermissionResponseFromJSON(json) {
|
|
53
|
+
return PermissionResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function PermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'permission': json['permission'],
|
|
61
|
+
'implied': json['implied'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function PermissionResponseToJSON(json) {
|
|
65
|
+
return PermissionResponseToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function PermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'permission': value['permission'],
|
|
73
|
+
'implied': value['implied'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.RolesRequestPermissionsEnum = void 0;
|
|
17
17
|
exports.instanceOfRolesRequest = instanceOfRolesRequest;
|
|
18
18
|
exports.RolesRequestFromJSON = RolesRequestFromJSON;
|
|
19
19
|
exports.RolesRequestFromJSONTyped = RolesRequestFromJSONTyped;
|
|
@@ -22,11 +22,12 @@ exports.RolesRequestToJSONTyped = RolesRequestToJSONTyped;
|
|
|
22
22
|
/**
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
|
-
exports.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
exports.RolesRequestPermissionsEnum = {
|
|
26
|
+
AgencyWrite: 'AGENCY_WRITE',
|
|
27
|
+
InvitationRead: 'INVITATION_READ',
|
|
28
|
+
InvitationWrite: 'INVITATION_WRITE',
|
|
29
|
+
RoleRead: 'ROLE_READ',
|
|
30
|
+
RoleWrite: 'ROLE_WRITE'
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
33
|
* Check if a given object implements the RolesRequest interface.
|
|
@@ -36,7 +37,7 @@ function instanceOfRolesRequest(value) {
|
|
|
36
37
|
return false;
|
|
37
38
|
if (!('description' in value) || value['description'] === undefined)
|
|
38
39
|
return false;
|
|
39
|
-
if (!('
|
|
40
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
40
41
|
return false;
|
|
41
42
|
return true;
|
|
42
43
|
}
|
|
@@ -50,7 +51,7 @@ function RolesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
51
|
return {
|
|
51
52
|
'name': json['name'],
|
|
52
53
|
'description': json['description'],
|
|
53
|
-
'
|
|
54
|
+
'permissions': json['permissions'],
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
function RolesRequestToJSON(json) {
|
|
@@ -63,6 +64,6 @@ function RolesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
64
|
return {
|
|
64
65
|
'name': value['name'],
|
|
65
66
|
'description': value['description'],
|
|
66
|
-
'
|
|
67
|
+
'permissions': value['permissions'],
|
|
67
68
|
};
|
|
68
69
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./AddressViewResponse"), exports);
|
|
|
21
21
|
__exportStar(require("./AgencyPeekViewResponse"), exports);
|
|
22
22
|
__exportStar(require("./AgencyViewResponse"), exports);
|
|
23
23
|
__exportStar(require("./CreateAgencyRequest"), exports);
|
|
24
|
+
__exportStar(require("./GroupedPermissionsResponse"), exports);
|
|
24
25
|
__exportStar(require("./IdResponse"), exports);
|
|
25
26
|
__exportStar(require("./InvitationDetailsRequest"), exports);
|
|
26
27
|
__exportStar(require("./InvitationDetailsResponse"), exports);
|
|
@@ -33,6 +34,7 @@ __exportStar(require("./Pageable"), exports);
|
|
|
33
34
|
__exportStar(require("./PagedModelAgencyPeekViewResponse"), exports);
|
|
34
35
|
__exportStar(require("./PagedModelInvitationViewResponse"), exports);
|
|
35
36
|
__exportStar(require("./PagedModelMemberViewResponse"), exports);
|
|
37
|
+
__exportStar(require("./PermissionResponse"), exports);
|
|
36
38
|
__exportStar(require("./PhotoRequest"), exports);
|
|
37
39
|
__exportStar(require("./PresignedUrlResponse"), exports);
|
|
38
40
|
__exportStar(require("./PresignedUrlsResponse"), exports);
|
|
@@ -7,6 +7,7 @@ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
|
|
|
7
7
|
| [**getAgency**](AgencyQueryControllerApi.md#getagency) | **GET** /agency/{agencyId} | |
|
|
8
8
|
| [**getAgencyBySubdomain**](AgencyQueryControllerApi.md#getagencybysubdomain) | **GET** /agency/subdomain/{subDomain} | |
|
|
9
9
|
| [**getAllAgencies**](AgencyQueryControllerApi.md#getallagencies) | **GET** /agency | |
|
|
10
|
+
| [**getAllPermissions**](AgencyQueryControllerApi.md#getallpermissions) | **GET** /agency/roles/permissions | |
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
@@ -219,3 +220,64 @@ example().catch(console.error);
|
|
|
219
220
|
|
|
220
221
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
221
222
|
|
|
223
|
+
|
|
224
|
+
## getAllPermissions
|
|
225
|
+
|
|
226
|
+
> Array<GroupedPermissionsResponse> getAllPermissions()
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
### Example
|
|
231
|
+
|
|
232
|
+
```ts
|
|
233
|
+
import {
|
|
234
|
+
Configuration,
|
|
235
|
+
AgencyQueryControllerApi,
|
|
236
|
+
} from '@homespot-sdk/api';
|
|
237
|
+
import type { GetAllPermissionsRequest } from '@homespot-sdk/api';
|
|
238
|
+
|
|
239
|
+
async function example() {
|
|
240
|
+
console.log("🚀 Testing @homespot-sdk/api SDK...");
|
|
241
|
+
const config = new Configuration({
|
|
242
|
+
// To configure OAuth2 access token for authorization: keycloak accessCode
|
|
243
|
+
accessToken: "YOUR ACCESS TOKEN",
|
|
244
|
+
});
|
|
245
|
+
const api = new AgencyQueryControllerApi(config);
|
|
246
|
+
|
|
247
|
+
try {
|
|
248
|
+
const data = await api.getAllPermissions();
|
|
249
|
+
console.log(data);
|
|
250
|
+
} catch (error) {
|
|
251
|
+
console.error(error);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// Run the test
|
|
256
|
+
example().catch(console.error);
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Parameters
|
|
260
|
+
|
|
261
|
+
This endpoint does not need any parameter.
|
|
262
|
+
|
|
263
|
+
### Return type
|
|
264
|
+
|
|
265
|
+
[**Array<GroupedPermissionsResponse>**](GroupedPermissionsResponse.md)
|
|
266
|
+
|
|
267
|
+
### Authorization
|
|
268
|
+
|
|
269
|
+
[keycloak accessCode](../README.md#keycloak-accessCode)
|
|
270
|
+
|
|
271
|
+
### HTTP request headers
|
|
272
|
+
|
|
273
|
+
- **Content-Type**: Not defined
|
|
274
|
+
- **Accept**: `*/*`
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
### HTTP response details
|
|
278
|
+
| Status code | Description | Response headers |
|
|
279
|
+
|-------------|-------------|------------------|
|
|
280
|
+
| **200** | OK | - |
|
|
281
|
+
|
|
282
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
283
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# GroupedPermissionsResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`group` | string
|
|
10
|
+
`permissions` | [Array<PermissionResponse>](PermissionResponse.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { GroupedPermissionsResponse } from '@homespot-sdk/api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"group": null,
|
|
20
|
+
"permissions": null,
|
|
21
|
+
} satisfies GroupedPermissionsResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as GroupedPermissionsResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -13,7 +13,7 @@ Name | Type
|
|
|
13
13
|
`roleId` | number
|
|
14
14
|
`memberId` | string
|
|
15
15
|
`roleName` | string
|
|
16
|
-
`
|
|
16
|
+
`permissions` | Array<string>
|
|
17
17
|
`status` | string
|
|
18
18
|
|
|
19
19
|
## Example
|
|
@@ -30,7 +30,7 @@ const example = {
|
|
|
30
30
|
"roleId": null,
|
|
31
31
|
"memberId": null,
|
|
32
32
|
"roleName": null,
|
|
33
|
-
"
|
|
33
|
+
"permissions": null,
|
|
34
34
|
"status": null,
|
|
35
35
|
} satisfies OrganizationSummaryViewResponse
|
|
36
36
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PermissionResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`permission` | string
|
|
10
|
+
`implied` | Array<string>
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PermissionResponse } from '@homespot-sdk/api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"permission": null,
|
|
20
|
+
"implied": null,
|
|
21
|
+
} satisfies PermissionResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PermissionResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/RolesRequest.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
|
-
`
|
|
11
|
+
`permissions` | Array<string>
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ import type { RolesRequest } from '@homespot-sdk/api'
|
|
|
19
19
|
const example = {
|
|
20
20
|
"name": null,
|
|
21
21
|
"description": null,
|
|
22
|
-
"
|
|
22
|
+
"permissions": null,
|
|
23
23
|
} satisfies RolesRequest
|
|
24
24
|
|
|
25
25
|
console.log(example)
|