@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.
Files changed (164) hide show
  1. package/.openapi-generator/FILES +34 -10
  2. package/README.md +28 -17
  3. package/dist/apis/AgencyControllerApi.d.ts +1 -63
  4. package/dist/apis/AgencyControllerApi.js +1 -100
  5. package/dist/apis/InvitationControllerApi.d.ts +10 -10
  6. package/dist/apis/InvitationControllerApi.js +9 -9
  7. package/dist/apis/InvitationQueryControllerApi.d.ts +12 -30
  8. package/dist/apis/InvitationQueryControllerApi.js +12 -47
  9. package/dist/apis/MemberControllerApi.d.ts +68 -0
  10. package/dist/apis/MemberControllerApi.js +101 -0
  11. package/dist/apis/MemberQueryControllerApi.d.ts +10 -4
  12. package/dist/apis/MemberQueryControllerApi.js +13 -7
  13. package/dist/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -22
  14. package/dist/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +19 -16
  15. package/dist/apis/PublicInvitationControllerApi.d.ts +48 -0
  16. package/dist/apis/PublicInvitationControllerApi.js +71 -0
  17. package/dist/apis/PublicRoleControllerApi.d.ts +42 -0
  18. package/dist/apis/PublicRoleControllerApi.js +61 -0
  19. package/dist/apis/RoleControllerApi.d.ts +88 -0
  20. package/dist/apis/RoleControllerApi.js +133 -0
  21. package/dist/apis/RoleQueryControllerApi.d.ts +50 -0
  22. package/dist/apis/RoleQueryControllerApi.js +70 -0
  23. package/dist/apis/index.d.ts +6 -1
  24. package/dist/apis/index.js +6 -1
  25. package/dist/esm/apis/AgencyControllerApi.d.ts +1 -63
  26. package/dist/esm/apis/AgencyControllerApi.js +2 -101
  27. package/dist/esm/apis/InvitationControllerApi.d.ts +10 -10
  28. package/dist/esm/apis/InvitationControllerApi.js +9 -9
  29. package/dist/esm/apis/InvitationQueryControllerApi.d.ts +12 -30
  30. package/dist/esm/apis/InvitationQueryControllerApi.js +13 -48
  31. package/dist/esm/apis/MemberControllerApi.d.ts +68 -0
  32. package/dist/esm/apis/MemberControllerApi.js +97 -0
  33. package/dist/esm/apis/MemberQueryControllerApi.d.ts +10 -4
  34. package/dist/esm/apis/MemberQueryControllerApi.js +13 -7
  35. package/dist/esm/apis/{AgencyQueryControllerApi.d.ts → PublicAgencyControllerApi.d.ts} +26 -22
  36. package/dist/esm/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +18 -15
  37. package/dist/esm/apis/PublicInvitationControllerApi.d.ts +48 -0
  38. package/dist/esm/apis/PublicInvitationControllerApi.js +67 -0
  39. package/dist/esm/apis/PublicRoleControllerApi.d.ts +42 -0
  40. package/dist/esm/apis/PublicRoleControllerApi.js +57 -0
  41. package/dist/esm/apis/RoleControllerApi.d.ts +88 -0
  42. package/dist/esm/apis/RoleControllerApi.js +129 -0
  43. package/dist/esm/apis/RoleQueryControllerApi.d.ts +50 -0
  44. package/dist/esm/apis/RoleQueryControllerApi.js +66 -0
  45. package/dist/esm/apis/index.d.ts +6 -1
  46. package/dist/esm/apis/index.js +6 -1
  47. package/dist/esm/models/AgencyProfileResponse.d.ts +69 -0
  48. package/dist/esm/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +8 -8
  49. package/dist/esm/models/AgencySummaryResponse.d.ts +102 -0
  50. package/dist/esm/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +9 -9
  51. package/dist/esm/models/AssignRoleRequest.d.ts +32 -0
  52. package/dist/esm/models/AssignRoleRequest.js +43 -0
  53. package/dist/esm/models/BatchAssignRoleRequest.d.ts +38 -0
  54. package/dist/esm/models/BatchAssignRoleRequest.js +47 -0
  55. package/dist/esm/models/GroupedPermissionsResponse.d.ts +49 -0
  56. package/dist/esm/models/GroupedPermissionsResponse.js +57 -0
  57. package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +10 -7
  58. package/dist/esm/models/OrganizationSummaryViewResponse.js +11 -8
  59. package/dist/esm/models/PageRoleResponse.d.ts +95 -0
  60. package/dist/esm/models/PageRoleResponse.js +64 -0
  61. package/dist/esm/models/PageableObject.d.ts +63 -0
  62. package/dist/esm/models/PageableObject.js +52 -0
  63. package/dist/esm/models/PagedModelAgencySummaryResponse.d.ts +40 -0
  64. package/dist/esm/models/{PagedModelAgencyPeekViewResponse.js → PagedModelAgencySummaryResponse.js} +11 -11
  65. package/dist/esm/models/PermissionResponse.d.ts +64 -0
  66. package/dist/esm/models/PermissionResponse.js +71 -0
  67. package/dist/esm/models/RoleResponse.d.ts +63 -0
  68. package/dist/esm/models/RoleResponse.js +67 -0
  69. package/dist/esm/models/RolesRequest.d.ts +10 -7
  70. package/dist/esm/models/RolesRequest.js +11 -8
  71. package/dist/esm/models/SortObject.d.ts +44 -0
  72. package/dist/esm/models/SortObject.js +45 -0
  73. package/dist/esm/models/index.d.ts +11 -4
  74. package/dist/esm/models/index.js +11 -4
  75. package/dist/models/AgencyProfileResponse.d.ts +69 -0
  76. package/dist/models/{AgencyViewResponse.js → AgencyProfileResponse.js} +13 -13
  77. package/dist/models/AgencySummaryResponse.d.ts +102 -0
  78. package/dist/models/{AgencyPeekViewResponse.js → AgencySummaryResponse.js} +15 -15
  79. package/dist/models/AssignRoleRequest.d.ts +32 -0
  80. package/dist/models/AssignRoleRequest.js +50 -0
  81. package/dist/models/BatchAssignRoleRequest.d.ts +38 -0
  82. package/dist/models/BatchAssignRoleRequest.js +54 -0
  83. package/dist/models/GroupedPermissionsResponse.d.ts +49 -0
  84. package/dist/models/GroupedPermissionsResponse.js +65 -0
  85. package/dist/models/OrganizationSummaryViewResponse.d.ts +10 -7
  86. package/dist/models/OrganizationSummaryViewResponse.js +12 -9
  87. package/dist/models/PageRoleResponse.d.ts +95 -0
  88. package/dist/models/PageRoleResponse.js +71 -0
  89. package/dist/models/PageableObject.d.ts +63 -0
  90. package/dist/models/PageableObject.js +59 -0
  91. package/dist/models/PagedModelAgencySummaryResponse.d.ts +40 -0
  92. package/dist/models/PagedModelAgencySummaryResponse.js +52 -0
  93. package/dist/models/PermissionResponse.d.ts +64 -0
  94. package/dist/models/PermissionResponse.js +79 -0
  95. package/dist/models/RoleResponse.d.ts +63 -0
  96. package/dist/models/RoleResponse.js +75 -0
  97. package/dist/models/RolesRequest.d.ts +10 -7
  98. package/dist/models/RolesRequest.js +12 -9
  99. package/dist/models/SortObject.d.ts +44 -0
  100. package/dist/models/SortObject.js +52 -0
  101. package/dist/models/index.d.ts +11 -4
  102. package/dist/models/index.js +11 -4
  103. package/docs/AgencyControllerApi.md +1 -214
  104. package/docs/{AgencyViewResponse.md → AgencyProfileResponse.md} +4 -4
  105. package/docs/{AgencyPeekViewResponse.md → AgencySummaryResponse.md} +4 -4
  106. package/docs/{Pageable.md → AssignRoleRequest.md} +6 -10
  107. package/docs/BatchAssignRoleRequest.md +36 -0
  108. package/docs/GroupedPermissionsResponse.md +36 -0
  109. package/docs/InvitationControllerApi.md +12 -12
  110. package/docs/InvitationQueryControllerApi.md +15 -82
  111. package/docs/MemberControllerApi.md +151 -0
  112. package/docs/MemberQueryControllerApi.md +13 -4
  113. package/docs/OrganizationSummaryViewResponse.md +2 -2
  114. package/docs/PageRoleResponse.md +54 -0
  115. package/docs/PageableObject.md +44 -0
  116. package/docs/{PagedModelAgencyPeekViewResponse.md → PagedModelAgencySummaryResponse.md} +5 -5
  117. package/docs/PermissionResponse.md +36 -0
  118. package/docs/{AgencyQueryControllerApi.md → PublicAgencyControllerApi.md} +25 -19
  119. package/docs/PublicInvitationControllerApi.md +81 -0
  120. package/docs/PublicRoleControllerApi.md +70 -0
  121. package/docs/RoleControllerApi.md +221 -0
  122. package/docs/RoleQueryControllerApi.md +84 -0
  123. package/docs/RoleResponse.md +40 -0
  124. package/docs/RolesRequest.md +2 -2
  125. package/docs/SortObject.md +38 -0
  126. package/package.json +1 -1
  127. package/src/apis/AgencyControllerApi.ts +1 -186
  128. package/src/apis/InvitationControllerApi.ts +15 -15
  129. package/src/apis/InvitationQueryControllerApi.ts +20 -91
  130. package/src/apis/MemberControllerApi.ts +168 -0
  131. package/src/apis/MemberQueryControllerApi.ts +22 -14
  132. package/src/apis/{AgencyQueryControllerApi.ts → PublicAgencyControllerApi.ts} +50 -48
  133. package/src/apis/PublicInvitationControllerApi.ts +109 -0
  134. package/src/apis/PublicRoleControllerApi.ts +83 -0
  135. package/src/apis/RoleControllerApi.ts +225 -0
  136. package/src/apis/RoleQueryControllerApi.ts +104 -0
  137. package/src/apis/index.ts +6 -1
  138. package/src/models/{AgencyViewResponse.ts → AgencyProfileResponse.ts} +17 -17
  139. package/src/models/{AgencyPeekViewResponse.ts → AgencySummaryResponse.ts} +24 -24
  140. package/src/models/AssignRoleRequest.ts +66 -0
  141. package/src/models/BatchAssignRoleRequest.ts +75 -0
  142. package/src/models/GroupedPermissionsResponse.ts +96 -0
  143. package/src/models/OrganizationSummaryViewResponse.ts +13 -10
  144. package/src/models/PageRoleResponse.ts +167 -0
  145. package/src/models/PageableObject.ts +113 -0
  146. package/src/models/PagedModelAgencySummaryResponse.ts +88 -0
  147. package/src/models/PermissionResponse.ts +105 -0
  148. package/src/models/RoleResponse.ts +109 -0
  149. package/src/models/RolesRequest.ts +13 -10
  150. package/src/models/SortObject.ts +81 -0
  151. package/src/models/index.ts +11 -4
  152. package/dist/esm/models/AgencyPeekViewResponse.d.ts +0 -102
  153. package/dist/esm/models/AgencyViewResponse.d.ts +0 -69
  154. package/dist/esm/models/Pageable.d.ts +0 -44
  155. package/dist/esm/models/Pageable.js +0 -45
  156. package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
  157. package/dist/models/AgencyPeekViewResponse.d.ts +0 -102
  158. package/dist/models/AgencyViewResponse.d.ts +0 -69
  159. package/dist/models/Pageable.d.ts +0 -44
  160. package/dist/models/Pageable.js +0 -52
  161. package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
  162. package/dist/models/PagedModelAgencyPeekViewResponse.js +0 -52
  163. package/src/models/Pageable.ts +0 -81
  164. package/src/models/PagedModelAgencyPeekViewResponse.ts +0 -88
@@ -0,0 +1,104 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ PageRoleResponse,
19
+ } from '../models/index';
20
+ import {
21
+ PageRoleResponseFromJSON,
22
+ PageRoleResponseToJSON,
23
+ } from '../models/index';
24
+
25
+ export interface ListRolesRequest {
26
+ page?: number;
27
+ size?: number;
28
+ sort?: Array<string>;
29
+ }
30
+
31
+ /**
32
+ * RoleQueryControllerApi - interface
33
+ *
34
+ * @export
35
+ * @interface RoleQueryControllerApiInterface
36
+ */
37
+ export interface RoleQueryControllerApiInterface {
38
+ /**
39
+ *
40
+ * @param {number} [page] Zero-based page index (0..N)
41
+ * @param {number} [size] The size of the page to be returned
42
+ * @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ * @memberof RoleQueryControllerApiInterface
46
+ */
47
+ listRolesRaw(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageRoleResponse>>;
48
+
49
+ /**
50
+ */
51
+ listRoles(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageRoleResponse>;
52
+
53
+ }
54
+
55
+ /**
56
+ *
57
+ */
58
+ export class RoleQueryControllerApi extends runtime.BaseAPI implements RoleQueryControllerApiInterface {
59
+
60
+ /**
61
+ */
62
+ async listRolesRaw(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageRoleResponse>> {
63
+ const queryParameters: any = {};
64
+
65
+ if (requestParameters['page'] != null) {
66
+ queryParameters['page'] = requestParameters['page'];
67
+ }
68
+
69
+ if (requestParameters['size'] != null) {
70
+ queryParameters['size'] = requestParameters['size'];
71
+ }
72
+
73
+ if (requestParameters['sort'] != null) {
74
+ queryParameters['sort'] = requestParameters['sort'];
75
+ }
76
+
77
+ const headerParameters: runtime.HTTPHeaders = {};
78
+
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ // oauth required
81
+ headerParameters["Authorization"] = await this.configuration.accessToken("keycloak", []);
82
+ }
83
+
84
+
85
+ let urlPath = `/roles`;
86
+
87
+ const response = await this.request({
88
+ path: urlPath,
89
+ method: 'GET',
90
+ headers: headerParameters,
91
+ query: queryParameters,
92
+ }, initOverrides);
93
+
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageRoleResponseFromJSON(jsonValue));
95
+ }
96
+
97
+ /**
98
+ */
99
+ async listRoles(requestParameters: ListRolesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageRoleResponse> {
100
+ const response = await this.listRolesRaw(requestParameters, initOverrides);
101
+ return await response.value();
102
+ }
103
+
104
+ }
package/src/apis/index.ts 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';
@@ -24,57 +24,57 @@ import {
24
24
  /**
25
25
  *
26
26
  * @export
27
- * @interface AgencyViewResponse
27
+ * @interface AgencyProfileResponse
28
28
  */
29
- export interface AgencyViewResponse {
29
+ export interface AgencyProfileResponse {
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
- * @memberof AgencyViewResponse
33
+ * @memberof AgencyProfileResponse
34
34
  */
35
35
  name: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
- * @memberof AgencyViewResponse
39
+ * @memberof AgencyProfileResponse
40
40
  */
41
41
  email: string;
42
42
  /**
43
43
  *
44
44
  * @type {number}
45
- * @memberof AgencyViewResponse
45
+ * @memberof AgencyProfileResponse
46
46
  */
47
47
  seats: number;
48
48
  /**
49
49
  *
50
50
  * @type {string}
51
- * @memberof AgencyViewResponse
51
+ * @memberof AgencyProfileResponse
52
52
  */
53
53
  subDomain: string;
54
54
  /**
55
55
  *
56
56
  * @type {string}
57
- * @memberof AgencyViewResponse
57
+ * @memberof AgencyProfileResponse
58
58
  */
59
59
  phone: string;
60
60
  /**
61
61
  *
62
62
  * @type {AddressViewResponse}
63
- * @memberof AgencyViewResponse
63
+ * @memberof AgencyProfileResponse
64
64
  */
65
65
  address: AddressViewResponse;
66
66
  /**
67
67
  *
68
68
  * @type {number}
69
- * @memberof AgencyViewResponse
69
+ * @memberof AgencyProfileResponse
70
70
  */
71
71
  yearSince: number;
72
72
  }
73
73
 
74
74
  /**
75
- * Check if a given object implements the AgencyViewResponse interface.
75
+ * Check if a given object implements the AgencyProfileResponse interface.
76
76
  */
77
- export function instanceOfAgencyViewResponse(value: object): value is AgencyViewResponse {
77
+ export function instanceOfAgencyProfileResponse(value: object): value is AgencyProfileResponse {
78
78
  if (!('name' in value) || value['name'] === undefined) return false;
79
79
  if (!('email' in value) || value['email'] === undefined) return false;
80
80
  if (!('seats' in value) || value['seats'] === undefined) return false;
@@ -85,11 +85,11 @@ export function instanceOfAgencyViewResponse(value: object): value is AgencyView
85
85
  return true;
86
86
  }
87
87
 
88
- export function AgencyViewResponseFromJSON(json: any): AgencyViewResponse {
89
- return AgencyViewResponseFromJSONTyped(json, false);
88
+ export function AgencyProfileResponseFromJSON(json: any): AgencyProfileResponse {
89
+ return AgencyProfileResponseFromJSONTyped(json, false);
90
90
  }
91
91
 
92
- export function AgencyViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyViewResponse {
92
+ export function AgencyProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyProfileResponse {
93
93
  if (json == null) {
94
94
  return json;
95
95
  }
@@ -105,11 +105,11 @@ export function AgencyViewResponseFromJSONTyped(json: any, ignoreDiscriminator:
105
105
  };
106
106
  }
107
107
 
108
- export function AgencyViewResponseToJSON(json: any): AgencyViewResponse {
109
- return AgencyViewResponseToJSONTyped(json, false);
108
+ export function AgencyProfileResponseToJSON(json: any): AgencyProfileResponse {
109
+ return AgencyProfileResponseToJSONTyped(json, false);
110
110
  }
111
111
 
112
- export function AgencyViewResponseToJSONTyped(value?: AgencyViewResponse | null, ignoreDiscriminator: boolean = false): any {
112
+ export function AgencyProfileResponseToJSONTyped(value?: AgencyProfileResponse | null, ignoreDiscriminator: boolean = false): any {
113
113
  if (value == null) {
114
114
  return value;
115
115
  }
@@ -16,73 +16,73 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface AgencyPeekViewResponse
19
+ * @interface AgencySummaryResponse
20
20
  */
21
- export interface AgencyPeekViewResponse {
21
+ export interface AgencySummaryResponse {
22
22
  /**
23
23
  *
24
24
  * @type {string}
25
- * @memberof AgencyPeekViewResponse
25
+ * @memberof AgencySummaryResponse
26
26
  */
27
27
  id: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
- * @memberof AgencyPeekViewResponse
31
+ * @memberof AgencySummaryResponse
32
32
  */
33
33
  owner: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
- * @memberof AgencyPeekViewResponse
37
+ * @memberof AgencySummaryResponse
38
38
  */
39
39
  name: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
- * @memberof AgencyPeekViewResponse
43
+ * @memberof AgencySummaryResponse
44
44
  */
45
45
  email: string;
46
46
  /**
47
47
  *
48
48
  * @type {string}
49
- * @memberof AgencyPeekViewResponse
49
+ * @memberof AgencySummaryResponse
50
50
  */
51
51
  seats: string;
52
52
  /**
53
53
  *
54
54
  * @type {string}
55
- * @memberof AgencyPeekViewResponse
55
+ * @memberof AgencySummaryResponse
56
56
  */
57
57
  subDomain: string;
58
58
  /**
59
59
  *
60
60
  * @type {string}
61
- * @memberof AgencyPeekViewResponse
61
+ * @memberof AgencySummaryResponse
62
62
  */
63
63
  phone: string;
64
64
  /**
65
65
  *
66
66
  * @type {string}
67
- * @memberof AgencyPeekViewResponse
67
+ * @memberof AgencySummaryResponse
68
68
  */
69
69
  website?: string;
70
70
  /**
71
71
  *
72
72
  * @type {string}
73
- * @memberof AgencyPeekViewResponse
73
+ * @memberof AgencySummaryResponse
74
74
  */
75
75
  yearSince: string;
76
76
  /**
77
77
  *
78
78
  * @type {string}
79
- * @memberof AgencyPeekViewResponse
79
+ * @memberof AgencySummaryResponse
80
80
  */
81
- status: AgencyPeekViewResponseStatusEnum;
81
+ status: AgencySummaryResponseStatusEnum;
82
82
  /**
83
83
  *
84
84
  * @type {string}
85
- * @memberof AgencyPeekViewResponse
85
+ * @memberof AgencySummaryResponse
86
86
  */
87
87
  logo?: string;
88
88
  }
@@ -91,19 +91,19 @@ export interface AgencyPeekViewResponse {
91
91
  /**
92
92
  * @export
93
93
  */
94
- export const AgencyPeekViewResponseStatusEnum = {
94
+ export const AgencySummaryResponseStatusEnum = {
95
95
  New: 'NEW',
96
96
  Active: 'ACTIVE',
97
97
  PaymentFailed: 'PAYMENT_FAILED',
98
98
  Inactive: 'INACTIVE'
99
99
  } as const;
100
- export type AgencyPeekViewResponseStatusEnum = typeof AgencyPeekViewResponseStatusEnum[keyof typeof AgencyPeekViewResponseStatusEnum];
100
+ export type AgencySummaryResponseStatusEnum = typeof AgencySummaryResponseStatusEnum[keyof typeof AgencySummaryResponseStatusEnum];
101
101
 
102
102
 
103
103
  /**
104
- * Check if a given object implements the AgencyPeekViewResponse interface.
104
+ * Check if a given object implements the AgencySummaryResponse interface.
105
105
  */
106
- export function instanceOfAgencyPeekViewResponse(value: object): value is AgencyPeekViewResponse {
106
+ export function instanceOfAgencySummaryResponse(value: object): value is AgencySummaryResponse {
107
107
  if (!('id' in value) || value['id'] === undefined) return false;
108
108
  if (!('owner' in value) || value['owner'] === undefined) return false;
109
109
  if (!('name' in value) || value['name'] === undefined) return false;
@@ -116,11 +116,11 @@ export function instanceOfAgencyPeekViewResponse(value: object): value is Agency
116
116
  return true;
117
117
  }
118
118
 
119
- export function AgencyPeekViewResponseFromJSON(json: any): AgencyPeekViewResponse {
120
- return AgencyPeekViewResponseFromJSONTyped(json, false);
119
+ export function AgencySummaryResponseFromJSON(json: any): AgencySummaryResponse {
120
+ return AgencySummaryResponseFromJSONTyped(json, false);
121
121
  }
122
122
 
123
- export function AgencyPeekViewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencyPeekViewResponse {
123
+ export function AgencySummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgencySummaryResponse {
124
124
  if (json == null) {
125
125
  return json;
126
126
  }
@@ -140,11 +140,11 @@ export function AgencyPeekViewResponseFromJSONTyped(json: any, ignoreDiscriminat
140
140
  };
141
141
  }
142
142
 
143
- export function AgencyPeekViewResponseToJSON(json: any): AgencyPeekViewResponse {
144
- return AgencyPeekViewResponseToJSONTyped(json, false);
143
+ export function AgencySummaryResponseToJSON(json: any): AgencySummaryResponse {
144
+ return AgencySummaryResponseToJSONTyped(json, false);
145
145
  }
146
146
 
147
- export function AgencyPeekViewResponseToJSONTyped(value?: AgencyPeekViewResponse | null, ignoreDiscriminator: boolean = false): any {
147
+ export function AgencySummaryResponseToJSONTyped(value?: AgencySummaryResponse | null, ignoreDiscriminator: boolean = false): any {
148
148
  if (value == null) {
149
149
  return value;
150
150
  }
@@ -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
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AssignRoleRequest
20
+ */
21
+ export interface AssignRoleRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AssignRoleRequest
26
+ */
27
+ roleId: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AssignRoleRequest interface.
32
+ */
33
+ export function instanceOfAssignRoleRequest(value: object): value is AssignRoleRequest {
34
+ if (!('roleId' in value) || value['roleId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AssignRoleRequestFromJSON(json: any): AssignRoleRequest {
39
+ return AssignRoleRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AssignRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignRoleRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'roleId': json['roleId'],
49
+ };
50
+ }
51
+
52
+ export function AssignRoleRequestToJSON(json: any): AssignRoleRequest {
53
+ return AssignRoleRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AssignRoleRequestToJSONTyped(value?: AssignRoleRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'roleId': value['roleId'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BatchAssignRoleRequest
20
+ */
21
+ export interface BatchAssignRoleRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof BatchAssignRoleRequest
26
+ */
27
+ roleId: number;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof BatchAssignRoleRequest
32
+ */
33
+ memberIds: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the BatchAssignRoleRequest interface.
38
+ */
39
+ export function instanceOfBatchAssignRoleRequest(value: object): value is BatchAssignRoleRequest {
40
+ if (!('roleId' in value) || value['roleId'] === undefined) return false;
41
+ if (!('memberIds' in value) || value['memberIds'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function BatchAssignRoleRequestFromJSON(json: any): BatchAssignRoleRequest {
46
+ return BatchAssignRoleRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BatchAssignRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchAssignRoleRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'roleId': json['roleId'],
56
+ 'memberIds': json['memberIds'],
57
+ };
58
+ }
59
+
60
+ export function BatchAssignRoleRequestToJSON(json: any): BatchAssignRoleRequest {
61
+ return BatchAssignRoleRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function BatchAssignRoleRequestToJSONTyped(value?: BatchAssignRoleRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'roleId': value['roleId'],
72
+ 'memberIds': value['memberIds'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,96 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { PermissionResponse } from './PermissionResponse';
17
+ import {
18
+ PermissionResponseFromJSON,
19
+ PermissionResponseFromJSONTyped,
20
+ PermissionResponseToJSON,
21
+ PermissionResponseToJSONTyped,
22
+ } from './PermissionResponse';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GroupedPermissionsResponse
28
+ */
29
+ export interface GroupedPermissionsResponse {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GroupedPermissionsResponse
34
+ */
35
+ group: GroupedPermissionsResponseGroupEnum;
36
+ /**
37
+ *
38
+ * @type {Array<PermissionResponse>}
39
+ * @memberof GroupedPermissionsResponse
40
+ */
41
+ permissions: Array<PermissionResponse>;
42
+ }
43
+
44
+
45
+ /**
46
+ * @export
47
+ */
48
+ export const GroupedPermissionsResponseGroupEnum = {
49
+ Agency: 'AGENCY',
50
+ Invitation: 'INVITATION',
51
+ Role: 'ROLE',
52
+ Member: 'MEMBER'
53
+ } as const;
54
+ export type GroupedPermissionsResponseGroupEnum = typeof GroupedPermissionsResponseGroupEnum[keyof typeof GroupedPermissionsResponseGroupEnum];
55
+
56
+
57
+ /**
58
+ * Check if a given object implements the GroupedPermissionsResponse interface.
59
+ */
60
+ export function instanceOfGroupedPermissionsResponse(value: object): value is GroupedPermissionsResponse {
61
+ if (!('group' in value) || value['group'] === undefined) return false;
62
+ if (!('permissions' in value) || value['permissions'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function GroupedPermissionsResponseFromJSON(json: any): GroupedPermissionsResponse {
67
+ return GroupedPermissionsResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function GroupedPermissionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupedPermissionsResponse {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'group': json['group'],
77
+ 'permissions': ((json['permissions'] as Array<any>).map(PermissionResponseFromJSON)),
78
+ };
79
+ }
80
+
81
+ export function GroupedPermissionsResponseToJSON(json: any): GroupedPermissionsResponse {
82
+ return GroupedPermissionsResponseToJSONTyped(json, false);
83
+ }
84
+
85
+ export function GroupedPermissionsResponseToJSONTyped(value?: GroupedPermissionsResponse | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'group': value['group'],
93
+ 'permissions': ((value['permissions'] as Array<any>).map(PermissionResponseToJSON)),
94
+ };
95
+ }
96
+
@@ -66,7 +66,7 @@ export interface OrganizationSummaryViewResponse {
66
66
  * @type {Array<string>}
67
67
  * @memberof OrganizationSummaryViewResponse
68
68
  */
69
- authorities: Array<OrganizationSummaryViewResponseAuthoritiesEnum>;
69
+ permissions: Array<OrganizationSummaryViewResponsePermissionsEnum>;
70
70
  /**
71
71
  *
72
72
  * @type {string}
@@ -79,13 +79,16 @@ export interface OrganizationSummaryViewResponse {
79
79
  /**
80
80
  * @export
81
81
  */
82
- export const OrganizationSummaryViewResponseAuthoritiesEnum = {
83
- PropertiesRead: 'properties_read',
84
- PropertiesWrite: 'properties_write',
85
- AgentsRead: 'agents_read',
86
- AgentsWrite: 'agents_write'
82
+ export const OrganizationSummaryViewResponsePermissionsEnum = {
83
+ AgencyWrite: 'AGENCY_WRITE',
84
+ InvitationRead: 'INVITATION_READ',
85
+ InvitationWrite: 'INVITATION_WRITE',
86
+ RoleRead: 'ROLE_READ',
87
+ RoleWrite: 'ROLE_WRITE',
88
+ MemberRead: 'MEMBER_READ',
89
+ MemberWrite: 'MEMBER_WRITE'
87
90
  } as const;
88
- export type OrganizationSummaryViewResponseAuthoritiesEnum = typeof OrganizationSummaryViewResponseAuthoritiesEnum[keyof typeof OrganizationSummaryViewResponseAuthoritiesEnum];
91
+ export type OrganizationSummaryViewResponsePermissionsEnum = typeof OrganizationSummaryViewResponsePermissionsEnum[keyof typeof OrganizationSummaryViewResponsePermissionsEnum];
89
92
 
90
93
  /**
91
94
  * @export
@@ -109,7 +112,7 @@ export function instanceOfOrganizationSummaryViewResponse(value: object): value
109
112
  if (!('subDomain' in value) || value['subDomain'] === undefined) return false;
110
113
  if (!('memberId' in value) || value['memberId'] === undefined) return false;
111
114
  if (!('roleName' in value) || value['roleName'] === undefined) return false;
112
- if (!('authorities' in value) || value['authorities'] === undefined) return false;
115
+ if (!('permissions' in value) || value['permissions'] === undefined) return false;
113
116
  if (!('status' in value) || value['status'] === undefined) return false;
114
117
  return true;
115
118
  }
@@ -131,7 +134,7 @@ export function OrganizationSummaryViewResponseFromJSONTyped(json: any, ignoreDi
131
134
  'roleId': json['roleId'] == null ? undefined : json['roleId'],
132
135
  'memberId': json['memberId'],
133
136
  'roleName': json['roleName'],
134
- 'authorities': json['authorities'],
137
+ 'permissions': json['permissions'],
135
138
  'status': json['status'],
136
139
  };
137
140
  }
@@ -154,7 +157,7 @@ export function OrganizationSummaryViewResponseToJSONTyped(value?: OrganizationS
154
157
  'roleId': value['roleId'],
155
158
  'memberId': value['memberId'],
156
159
  'roleName': value['roleName'],
157
- 'authorities': value['authorities'],
160
+ 'permissions': value['permissions'],
158
161
  'status': value['status'],
159
162
  };
160
163
  }