@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,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { PageRoleResponse } from '../models/index';
|
|
14
|
+
export interface ListRolesRequest {
|
|
15
|
+
page?: number;
|
|
16
|
+
size?: number;
|
|
17
|
+
sort?: Array<string>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* RoleQueryControllerApi - interface
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface RoleQueryControllerApiInterface
|
|
24
|
+
*/
|
|
25
|
+
export interface RoleQueryControllerApiInterface {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @param {number} [page] Zero-based page index (0..N)
|
|
29
|
+
* @param {number} [size] The size of the page to be returned
|
|
30
|
+
* @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
* @memberof RoleQueryControllerApiInterface
|
|
34
|
+
*/
|
|
35
|
+
listRolesRaw(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageRoleResponse>>;
|
|
36
|
+
/**
|
|
37
|
+
*/
|
|
38
|
+
listRoles(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageRoleResponse>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export declare class RoleQueryControllerApi extends runtime.BaseAPI implements RoleQueryControllerApiInterface {
|
|
44
|
+
/**
|
|
45
|
+
*/
|
|
46
|
+
listRolesRaw(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageRoleResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
*/
|
|
49
|
+
listRoles(requestParameters?: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageRoleResponse>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { PageRoleResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class RoleQueryControllerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
*/
|
|
31
|
+
listRolesRaw(requestParameters, initOverrides) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const queryParameters = {};
|
|
34
|
+
if (requestParameters['page'] != null) {
|
|
35
|
+
queryParameters['page'] = requestParameters['page'];
|
|
36
|
+
}
|
|
37
|
+
if (requestParameters['size'] != null) {
|
|
38
|
+
queryParameters['size'] = requestParameters['size'];
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['sort'] != null) {
|
|
41
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
42
|
+
}
|
|
43
|
+
const headerParameters = {};
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
// oauth required
|
|
46
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
47
|
+
}
|
|
48
|
+
let urlPath = `/roles`;
|
|
49
|
+
const response = yield this.request({
|
|
50
|
+
path: urlPath,
|
|
51
|
+
method: 'GET',
|
|
52
|
+
headers: headerParameters,
|
|
53
|
+
query: queryParameters,
|
|
54
|
+
}, initOverrides);
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PageRoleResponseFromJSON(jsonValue));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
*/
|
|
60
|
+
listRoles() {
|
|
61
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
62
|
+
const response = yield this.listRolesRaw(requestParameters, initOverrides);
|
|
63
|
+
return yield response.value();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export * from './AgencyControllerApi';
|
|
2
|
-
export * from './AgencyQueryControllerApi';
|
|
3
2
|
export * from './InvitationControllerApi';
|
|
4
3
|
export * from './InvitationQueryControllerApi';
|
|
4
|
+
export * from './MemberControllerApi';
|
|
5
5
|
export * from './MemberQueryControllerApi';
|
|
6
|
+
export * from './PublicAgencyControllerApi';
|
|
7
|
+
export * from './PublicInvitationControllerApi';
|
|
8
|
+
export * from './PublicRoleControllerApi';
|
|
9
|
+
export * from './RoleControllerApi';
|
|
10
|
+
export * from './RoleQueryControllerApi';
|
|
6
11
|
export * from './UserQueryControllerApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AgencyControllerApi';
|
|
4
|
-
export * from './AgencyQueryControllerApi';
|
|
5
4
|
export * from './InvitationControllerApi';
|
|
6
5
|
export * from './InvitationQueryControllerApi';
|
|
6
|
+
export * from './MemberControllerApi';
|
|
7
7
|
export * from './MemberQueryControllerApi';
|
|
8
|
+
export * from './PublicAgencyControllerApi';
|
|
9
|
+
export * from './PublicInvitationControllerApi';
|
|
10
|
+
export * from './PublicRoleControllerApi';
|
|
11
|
+
export * from './RoleControllerApi';
|
|
12
|
+
export * from './RoleQueryControllerApi';
|
|
8
13
|
export * from './UserQueryControllerApi';
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { AddressViewResponse } from './AddressViewResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgencyProfileResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AgencyProfileResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AgencyProfileResponse
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AgencyProfileResponse
|
|
29
|
+
*/
|
|
30
|
+
email: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AgencyProfileResponse
|
|
35
|
+
*/
|
|
36
|
+
seats: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AgencyProfileResponse
|
|
41
|
+
*/
|
|
42
|
+
subDomain: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AgencyProfileResponse
|
|
47
|
+
*/
|
|
48
|
+
phone: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {AddressViewResponse}
|
|
52
|
+
* @memberof AgencyProfileResponse
|
|
53
|
+
*/
|
|
54
|
+
address: AddressViewResponse;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof AgencyProfileResponse
|
|
59
|
+
*/
|
|
60
|
+
yearSince: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the AgencyProfileResponse interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfAgencyProfileResponse(value: object): value is AgencyProfileResponse;
|
|
66
|
+
export declare function AgencyProfileResponseFromJSON(json: any): AgencyProfileResponse;
|
|
67
|
+
export declare function AgencyProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyProfileResponse;
|
|
68
|
+
export declare function AgencyProfileResponseToJSON(json: any): AgencyProfileResponse;
|
|
69
|
+
export declare function AgencyProfileResponseToJSONTyped(value?: AgencyProfileResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { AddressViewResponseFromJSON, AddressViewResponseToJSON, } from './AddressViewResponse';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the AgencyProfileResponse interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfAgencyProfileResponse(value) {
|
|
19
19
|
if (!('name' in value) || value['name'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('email' in value) || value['email'] === undefined)
|
|
@@ -32,10 +32,10 @@ export function instanceOfAgencyViewResponse(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
return true;
|
|
34
34
|
}
|
|
35
|
-
export function
|
|
36
|
-
return
|
|
35
|
+
export function AgencyProfileResponseFromJSON(json) {
|
|
36
|
+
return AgencyProfileResponseFromJSONTyped(json, false);
|
|
37
37
|
}
|
|
38
|
-
export function
|
|
38
|
+
export function AgencyProfileResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
39
|
if (json == null) {
|
|
40
40
|
return json;
|
|
41
41
|
}
|
|
@@ -49,10 +49,10 @@ export function AgencyViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'yearSince': json['yearSince'],
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
export function
|
|
53
|
-
return
|
|
52
|
+
export function AgencyProfileResponseToJSON(json) {
|
|
53
|
+
return AgencyProfileResponseToJSONTyped(json, false);
|
|
54
54
|
}
|
|
55
|
-
export function
|
|
55
|
+
export function AgencyProfileResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
56
|
if (value == null) {
|
|
57
57
|
return value;
|
|
58
58
|
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 AgencySummaryResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AgencySummaryResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgencySummaryResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgencySummaryResponse
|
|
28
|
+
*/
|
|
29
|
+
owner: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AgencySummaryResponse
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AgencySummaryResponse
|
|
40
|
+
*/
|
|
41
|
+
email: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AgencySummaryResponse
|
|
46
|
+
*/
|
|
47
|
+
seats: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AgencySummaryResponse
|
|
52
|
+
*/
|
|
53
|
+
subDomain: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AgencySummaryResponse
|
|
58
|
+
*/
|
|
59
|
+
phone: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AgencySummaryResponse
|
|
64
|
+
*/
|
|
65
|
+
website?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AgencySummaryResponse
|
|
70
|
+
*/
|
|
71
|
+
yearSince: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AgencySummaryResponse
|
|
76
|
+
*/
|
|
77
|
+
status: AgencySummaryResponseStatusEnum;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof AgencySummaryResponse
|
|
82
|
+
*/
|
|
83
|
+
logo?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const AgencySummaryResponseStatusEnum: {
|
|
89
|
+
readonly New: "NEW";
|
|
90
|
+
readonly Active: "ACTIVE";
|
|
91
|
+
readonly PaymentFailed: "PAYMENT_FAILED";
|
|
92
|
+
readonly Inactive: "INACTIVE";
|
|
93
|
+
};
|
|
94
|
+
export type AgencySummaryResponseStatusEnum = typeof AgencySummaryResponseStatusEnum[keyof typeof AgencySummaryResponseStatusEnum];
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the AgencySummaryResponse interface.
|
|
97
|
+
*/
|
|
98
|
+
export declare function instanceOfAgencySummaryResponse(value: object): value is AgencySummaryResponse;
|
|
99
|
+
export declare function AgencySummaryResponseFromJSON(json: any): AgencySummaryResponse;
|
|
100
|
+
export declare function AgencySummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencySummaryResponse;
|
|
101
|
+
export declare function AgencySummaryResponseToJSON(json: any): AgencySummaryResponse;
|
|
102
|
+
export declare function AgencySummaryResponseToJSONTyped(value?: AgencySummaryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* @export
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
17
|
+
export const AgencySummaryResponseStatusEnum = {
|
|
18
18
|
New: 'NEW',
|
|
19
19
|
Active: 'ACTIVE',
|
|
20
20
|
PaymentFailed: 'PAYMENT_FAILED',
|
|
21
21
|
Inactive: 'INACTIVE'
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the AgencySummaryResponse interface.
|
|
25
25
|
*/
|
|
26
|
-
export function
|
|
26
|
+
export function instanceOfAgencySummaryResponse(value) {
|
|
27
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('owner' in value) || value['owner'] === undefined)
|
|
@@ -44,10 +44,10 @@ export function instanceOfAgencyPeekViewResponse(value) {
|
|
|
44
44
|
return false;
|
|
45
45
|
return true;
|
|
46
46
|
}
|
|
47
|
-
export function
|
|
48
|
-
return
|
|
47
|
+
export function AgencySummaryResponseFromJSON(json) {
|
|
48
|
+
return AgencySummaryResponseFromJSONTyped(json, false);
|
|
49
49
|
}
|
|
50
|
-
export function
|
|
50
|
+
export function AgencySummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
51
|
if (json == null) {
|
|
52
52
|
return json;
|
|
53
53
|
}
|
|
@@ -65,10 +65,10 @@ export function AgencyPeekViewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'logo': json['logo'] == null ? undefined : json['logo'],
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
export function
|
|
69
|
-
return
|
|
68
|
+
export function AgencySummaryResponseToJSON(json) {
|
|
69
|
+
return AgencySummaryResponseToJSONTyped(json, false);
|
|
70
70
|
}
|
|
71
|
-
export function
|
|
71
|
+
export function AgencySummaryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
72
|
if (value == null) {
|
|
73
73
|
return value;
|
|
74
74
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AssignRoleRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AssignRoleRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AssignRoleRequest
|
|
22
|
+
*/
|
|
23
|
+
roleId: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AssignRoleRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAssignRoleRequest(value: object): value is AssignRoleRequest;
|
|
29
|
+
export declare function AssignRoleRequestFromJSON(json: any): AssignRoleRequest;
|
|
30
|
+
export declare function AssignRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignRoleRequest;
|
|
31
|
+
export declare function AssignRoleRequestToJSON(json: any): AssignRoleRequest;
|
|
32
|
+
export declare function AssignRoleRequestToJSONTyped(value?: AssignRoleRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AssignRoleRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAssignRoleRequest(value) {
|
|
18
|
+
if (!('roleId' in value) || value['roleId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AssignRoleRequestFromJSON(json) {
|
|
23
|
+
return AssignRoleRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AssignRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'roleId': json['roleId'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function AssignRoleRequestToJSON(json) {
|
|
34
|
+
return AssignRoleRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AssignRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'roleId': value['roleId'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Service API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the BatchAssignRoleRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfBatchAssignRoleRequest(value) {
|
|
18
|
+
if (!('roleId' in value) || value['roleId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('memberIds' in value) || value['memberIds'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function BatchAssignRoleRequestFromJSON(json) {
|
|
25
|
+
return BatchAssignRoleRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function BatchAssignRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'roleId': json['roleId'],
|
|
33
|
+
'memberIds': json['memberIds'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function BatchAssignRoleRequestToJSON(json) {
|
|
37
|
+
return BatchAssignRoleRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function BatchAssignRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'roleId': value['roleId'],
|
|
45
|
+
'memberIds': value['memberIds'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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,57 @@
|
|
|
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
|
+
Member: 'MEMBER'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GroupedPermissionsResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfGroupedPermissionsResponse(value) {
|
|
28
|
+
if (!('group' in value) || value['group'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('permissions' in value) || value['permissions'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function GroupedPermissionsResponseFromJSON(json) {
|
|
35
|
+
return GroupedPermissionsResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function GroupedPermissionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'group': json['group'],
|
|
43
|
+
'permissions': (json['permissions'].map(PermissionResponseFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GroupedPermissionsResponseToJSON(json) {
|
|
47
|
+
return GroupedPermissionsResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GroupedPermissionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'group': value['group'],
|
|
55
|
+
'permissions': (value['permissions'].map(PermissionResponseToJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|