@homespot-sdk/api 0.0.635 → 0.0.637

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 (160) hide show
  1. package/.openapi-generator/FILES +30 -10
  2. package/README.md +26 -18
  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 -38
  14. package/dist/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +19 -44
  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 -38
  36. package/dist/esm/apis/{AgencyQueryControllerApi.js → PublicAgencyControllerApi.js} +18 -43
  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 +1 -0
  56. package/dist/esm/models/GroupedPermissionsResponse.js +2 -1
  57. package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +2 -0
  58. package/dist/esm/models/OrganizationSummaryViewResponse.js +3 -1
  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 +4 -0
  66. package/dist/esm/models/PermissionResponse.js +6 -2
  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 +2 -0
  70. package/dist/esm/models/RolesRequest.js +3 -1
  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 +9 -4
  74. package/dist/esm/models/index.js +9 -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 +1 -0
  84. package/dist/models/GroupedPermissionsResponse.js +2 -1
  85. package/dist/models/OrganizationSummaryViewResponse.d.ts +2 -0
  86. package/dist/models/OrganizationSummaryViewResponse.js +3 -1
  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 +4 -0
  94. package/dist/models/PermissionResponse.js +6 -2
  95. package/dist/models/RoleResponse.d.ts +63 -0
  96. package/dist/models/RoleResponse.js +75 -0
  97. package/dist/models/RolesRequest.d.ts +2 -0
  98. package/dist/models/RolesRequest.js +3 -1
  99. package/dist/models/SortObject.d.ts +44 -0
  100. package/dist/models/SortObject.js +52 -0
  101. package/dist/models/index.d.ts +9 -4
  102. package/dist/models/index.js +9 -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/InvitationControllerApi.md +12 -12
  109. package/docs/InvitationQueryControllerApi.md +15 -82
  110. package/docs/MemberControllerApi.md +151 -0
  111. package/docs/MemberQueryControllerApi.md +13 -4
  112. package/docs/PageRoleResponse.md +54 -0
  113. package/docs/PageableObject.md +44 -0
  114. package/docs/{PagedModelAgencyPeekViewResponse.md → PagedModelAgencySummaryResponse.md} +5 -5
  115. package/docs/{AgencyQueryControllerApi.md → PublicAgencyControllerApi.md} +25 -81
  116. package/docs/PublicInvitationControllerApi.md +81 -0
  117. package/docs/PublicRoleControllerApi.md +70 -0
  118. package/docs/RoleControllerApi.md +221 -0
  119. package/docs/RoleQueryControllerApi.md +84 -0
  120. package/docs/RoleResponse.md +40 -0
  121. package/docs/SortObject.md +38 -0
  122. package/package.json +1 -1
  123. package/src/apis/AgencyControllerApi.ts +1 -186
  124. package/src/apis/InvitationControllerApi.ts +15 -15
  125. package/src/apis/InvitationQueryControllerApi.ts +20 -91
  126. package/src/apis/MemberControllerApi.ts +168 -0
  127. package/src/apis/MemberQueryControllerApi.ts +22 -14
  128. package/src/apis/{AgencyQueryControllerApi.ts → PublicAgencyControllerApi.ts} +48 -93
  129. package/src/apis/PublicInvitationControllerApi.ts +109 -0
  130. package/src/apis/PublicRoleControllerApi.ts +83 -0
  131. package/src/apis/RoleControllerApi.ts +225 -0
  132. package/src/apis/RoleQueryControllerApi.ts +104 -0
  133. package/src/apis/index.ts +6 -1
  134. package/src/models/{AgencyViewResponse.ts → AgencyProfileResponse.ts} +17 -17
  135. package/src/models/{AgencyPeekViewResponse.ts → AgencySummaryResponse.ts} +24 -24
  136. package/src/models/AssignRoleRequest.ts +66 -0
  137. package/src/models/BatchAssignRoleRequest.ts +75 -0
  138. package/src/models/GroupedPermissionsResponse.ts +2 -1
  139. package/src/models/OrganizationSummaryViewResponse.ts +3 -1
  140. package/src/models/PageRoleResponse.ts +167 -0
  141. package/src/models/PageableObject.ts +113 -0
  142. package/src/models/PagedModelAgencySummaryResponse.ts +88 -0
  143. package/src/models/PermissionResponse.ts +6 -2
  144. package/src/models/RoleResponse.ts +109 -0
  145. package/src/models/RolesRequest.ts +3 -1
  146. package/src/models/SortObject.ts +81 -0
  147. package/src/models/index.ts +9 -4
  148. package/dist/esm/models/AgencyPeekViewResponse.d.ts +0 -102
  149. package/dist/esm/models/AgencyViewResponse.d.ts +0 -69
  150. package/dist/esm/models/Pageable.d.ts +0 -44
  151. package/dist/esm/models/Pageable.js +0 -45
  152. package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
  153. package/dist/models/AgencyPeekViewResponse.d.ts +0 -102
  154. package/dist/models/AgencyViewResponse.d.ts +0 -69
  155. package/dist/models/Pageable.d.ts +0 -44
  156. package/dist/models/Pageable.js +0 -52
  157. package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +0 -40
  158. package/dist/models/PagedModelAgencyPeekViewResponse.js +0 -52
  159. package/src/models/Pageable.ts +0 -81
  160. package/src/models/PagedModelAgencyPeekViewResponse.ts +0 -88
@@ -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
+
@@ -48,7 +48,8 @@ export interface GroupedPermissionsResponse {
48
48
  export const GroupedPermissionsResponseGroupEnum = {
49
49
  Agency: 'AGENCY',
50
50
  Invitation: 'INVITATION',
51
- Role: 'ROLE'
51
+ Role: 'ROLE',
52
+ Member: 'MEMBER'
52
53
  } as const;
53
54
  export type GroupedPermissionsResponseGroupEnum = typeof GroupedPermissionsResponseGroupEnum[keyof typeof GroupedPermissionsResponseGroupEnum];
54
55
 
@@ -84,7 +84,9 @@ export const OrganizationSummaryViewResponsePermissionsEnum = {
84
84
  InvitationRead: 'INVITATION_READ',
85
85
  InvitationWrite: 'INVITATION_WRITE',
86
86
  RoleRead: 'ROLE_READ',
87
- RoleWrite: 'ROLE_WRITE'
87
+ RoleWrite: 'ROLE_WRITE',
88
+ MemberRead: 'MEMBER_READ',
89
+ MemberWrite: 'MEMBER_WRITE'
88
90
  } as const;
89
91
  export type OrganizationSummaryViewResponsePermissionsEnum = typeof OrganizationSummaryViewResponsePermissionsEnum[keyof typeof OrganizationSummaryViewResponsePermissionsEnum];
90
92
 
@@ -0,0 +1,167 @@
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 { PageableObject } from './PageableObject';
17
+ import {
18
+ PageableObjectFromJSON,
19
+ PageableObjectFromJSONTyped,
20
+ PageableObjectToJSON,
21
+ PageableObjectToJSONTyped,
22
+ } from './PageableObject';
23
+ import type { SortObject } from './SortObject';
24
+ import {
25
+ SortObjectFromJSON,
26
+ SortObjectFromJSONTyped,
27
+ SortObjectToJSON,
28
+ SortObjectToJSONTyped,
29
+ } from './SortObject';
30
+ import type { RoleResponse } from './RoleResponse';
31
+ import {
32
+ RoleResponseFromJSON,
33
+ RoleResponseFromJSONTyped,
34
+ RoleResponseToJSON,
35
+ RoleResponseToJSONTyped,
36
+ } from './RoleResponse';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface PageRoleResponse
42
+ */
43
+ export interface PageRoleResponse {
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof PageRoleResponse
48
+ */
49
+ totalElements?: number;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof PageRoleResponse
54
+ */
55
+ totalPages?: number;
56
+ /**
57
+ *
58
+ * @type {number}
59
+ * @memberof PageRoleResponse
60
+ */
61
+ size?: number;
62
+ /**
63
+ *
64
+ * @type {Array<RoleResponse>}
65
+ * @memberof PageRoleResponse
66
+ */
67
+ content?: Array<RoleResponse>;
68
+ /**
69
+ *
70
+ * @type {number}
71
+ * @memberof PageRoleResponse
72
+ */
73
+ number?: number;
74
+ /**
75
+ *
76
+ * @type {boolean}
77
+ * @memberof PageRoleResponse
78
+ */
79
+ first?: boolean;
80
+ /**
81
+ *
82
+ * @type {boolean}
83
+ * @memberof PageRoleResponse
84
+ */
85
+ last?: boolean;
86
+ /**
87
+ *
88
+ * @type {number}
89
+ * @memberof PageRoleResponse
90
+ */
91
+ numberOfElements?: number;
92
+ /**
93
+ *
94
+ * @type {PageableObject}
95
+ * @memberof PageRoleResponse
96
+ */
97
+ pageable?: PageableObject;
98
+ /**
99
+ *
100
+ * @type {SortObject}
101
+ * @memberof PageRoleResponse
102
+ */
103
+ sort?: SortObject;
104
+ /**
105
+ *
106
+ * @type {boolean}
107
+ * @memberof PageRoleResponse
108
+ */
109
+ empty?: boolean;
110
+ }
111
+
112
+ /**
113
+ * Check if a given object implements the PageRoleResponse interface.
114
+ */
115
+ export function instanceOfPageRoleResponse(value: object): value is PageRoleResponse {
116
+ return true;
117
+ }
118
+
119
+ export function PageRoleResponseFromJSON(json: any): PageRoleResponse {
120
+ return PageRoleResponseFromJSONTyped(json, false);
121
+ }
122
+
123
+ export function PageRoleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageRoleResponse {
124
+ if (json == null) {
125
+ return json;
126
+ }
127
+ return {
128
+
129
+ 'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
130
+ 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
131
+ 'size': json['size'] == null ? undefined : json['size'],
132
+ 'content': json['content'] == null ? undefined : ((json['content'] as Array<any>).map(RoleResponseFromJSON)),
133
+ 'number': json['number'] == null ? undefined : json['number'],
134
+ 'first': json['first'] == null ? undefined : json['first'],
135
+ 'last': json['last'] == null ? undefined : json['last'],
136
+ 'numberOfElements': json['numberOfElements'] == null ? undefined : json['numberOfElements'],
137
+ 'pageable': json['pageable'] == null ? undefined : PageableObjectFromJSON(json['pageable']),
138
+ 'sort': json['sort'] == null ? undefined : SortObjectFromJSON(json['sort']),
139
+ 'empty': json['empty'] == null ? undefined : json['empty'],
140
+ };
141
+ }
142
+
143
+ export function PageRoleResponseToJSON(json: any): PageRoleResponse {
144
+ return PageRoleResponseToJSONTyped(json, false);
145
+ }
146
+
147
+ export function PageRoleResponseToJSONTyped(value?: PageRoleResponse | null, ignoreDiscriminator: boolean = false): any {
148
+ if (value == null) {
149
+ return value;
150
+ }
151
+
152
+ return {
153
+
154
+ 'totalElements': value['totalElements'],
155
+ 'totalPages': value['totalPages'],
156
+ 'size': value['size'],
157
+ 'content': value['content'] == null ? undefined : ((value['content'] as Array<any>).map(RoleResponseToJSON)),
158
+ 'number': value['number'],
159
+ 'first': value['first'],
160
+ 'last': value['last'],
161
+ 'numberOfElements': value['numberOfElements'],
162
+ 'pageable': PageableObjectToJSON(value['pageable']),
163
+ 'sort': SortObjectToJSON(value['sort']),
164
+ 'empty': value['empty'],
165
+ };
166
+ }
167
+
@@ -0,0 +1,113 @@
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 { SortObject } from './SortObject';
17
+ import {
18
+ SortObjectFromJSON,
19
+ SortObjectFromJSONTyped,
20
+ SortObjectToJSON,
21
+ SortObjectToJSONTyped,
22
+ } from './SortObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PageableObject
28
+ */
29
+ export interface PageableObject {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PageableObject
34
+ */
35
+ offset?: number;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof PageableObject
40
+ */
41
+ paged?: boolean;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof PageableObject
46
+ */
47
+ pageNumber?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof PageableObject
52
+ */
53
+ pageSize?: number;
54
+ /**
55
+ *
56
+ * @type {SortObject}
57
+ * @memberof PageableObject
58
+ */
59
+ sort?: SortObject;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof PageableObject
64
+ */
65
+ unpaged?: boolean;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the PageableObject interface.
70
+ */
71
+ export function instanceOfPageableObject(value: object): value is PageableObject {
72
+ return true;
73
+ }
74
+
75
+ export function PageableObjectFromJSON(json: any): PageableObject {
76
+ return PageableObjectFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function PageableObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageableObject {
80
+ if (json == null) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'offset': json['offset'] == null ? undefined : json['offset'],
86
+ 'paged': json['paged'] == null ? undefined : json['paged'],
87
+ 'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
88
+ 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
89
+ 'sort': json['sort'] == null ? undefined : SortObjectFromJSON(json['sort']),
90
+ 'unpaged': json['unpaged'] == null ? undefined : json['unpaged'],
91
+ };
92
+ }
93
+
94
+ export function PageableObjectToJSON(json: any): PageableObject {
95
+ return PageableObjectToJSONTyped(json, false);
96
+ }
97
+
98
+ export function PageableObjectToJSONTyped(value?: PageableObject | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'offset': value['offset'],
106
+ 'paged': value['paged'],
107
+ 'pageNumber': value['pageNumber'],
108
+ 'pageSize': value['pageSize'],
109
+ 'sort': SortObjectToJSON(value['sort']),
110
+ 'unpaged': value['unpaged'],
111
+ };
112
+ }
113
+
@@ -0,0 +1,88 @@
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 { PageMetadata } from './PageMetadata';
17
+ import {
18
+ PageMetadataFromJSON,
19
+ PageMetadataFromJSONTyped,
20
+ PageMetadataToJSON,
21
+ PageMetadataToJSONTyped,
22
+ } from './PageMetadata';
23
+ import type { AgencySummaryResponse } from './AgencySummaryResponse';
24
+ import {
25
+ AgencySummaryResponseFromJSON,
26
+ AgencySummaryResponseFromJSONTyped,
27
+ AgencySummaryResponseToJSON,
28
+ AgencySummaryResponseToJSONTyped,
29
+ } from './AgencySummaryResponse';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PagedModelAgencySummaryResponse
35
+ */
36
+ export interface PagedModelAgencySummaryResponse {
37
+ /**
38
+ *
39
+ * @type {Array<AgencySummaryResponse>}
40
+ * @memberof PagedModelAgencySummaryResponse
41
+ */
42
+ content?: Array<AgencySummaryResponse>;
43
+ /**
44
+ *
45
+ * @type {PageMetadata}
46
+ * @memberof PagedModelAgencySummaryResponse
47
+ */
48
+ page?: PageMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PagedModelAgencySummaryResponse interface.
53
+ */
54
+ export function instanceOfPagedModelAgencySummaryResponse(value: object): value is PagedModelAgencySummaryResponse {
55
+ return true;
56
+ }
57
+
58
+ export function PagedModelAgencySummaryResponseFromJSON(json: any): PagedModelAgencySummaryResponse {
59
+ return PagedModelAgencySummaryResponseFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function PagedModelAgencySummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedModelAgencySummaryResponse {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'content': json['content'] == null ? undefined : ((json['content'] as Array<any>).map(AgencySummaryResponseFromJSON)),
69
+ 'page': json['page'] == null ? undefined : PageMetadataFromJSON(json['page']),
70
+ };
71
+ }
72
+
73
+ export function PagedModelAgencySummaryResponseToJSON(json: any): PagedModelAgencySummaryResponse {
74
+ return PagedModelAgencySummaryResponseToJSONTyped(json, false);
75
+ }
76
+
77
+ export function PagedModelAgencySummaryResponseToJSONTyped(value?: PagedModelAgencySummaryResponse | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'content': value['content'] == null ? undefined : ((value['content'] as Array<any>).map(AgencySummaryResponseToJSON)),
85
+ 'page': PageMetadataToJSON(value['page']),
86
+ };
87
+ }
88
+
@@ -42,7 +42,9 @@ export const PermissionResponsePermissionEnum = {
42
42
  InvitationRead: 'INVITATION_READ',
43
43
  InvitationWrite: 'INVITATION_WRITE',
44
44
  RoleRead: 'ROLE_READ',
45
- RoleWrite: 'ROLE_WRITE'
45
+ RoleWrite: 'ROLE_WRITE',
46
+ MemberRead: 'MEMBER_READ',
47
+ MemberWrite: 'MEMBER_WRITE'
46
48
  } as const;
47
49
  export type PermissionResponsePermissionEnum = typeof PermissionResponsePermissionEnum[keyof typeof PermissionResponsePermissionEnum];
48
50
 
@@ -54,7 +56,9 @@ export const PermissionResponseImpliedEnum = {
54
56
  InvitationRead: 'INVITATION_READ',
55
57
  InvitationWrite: 'INVITATION_WRITE',
56
58
  RoleRead: 'ROLE_READ',
57
- RoleWrite: 'ROLE_WRITE'
59
+ RoleWrite: 'ROLE_WRITE',
60
+ MemberRead: 'MEMBER_READ',
61
+ MemberWrite: 'MEMBER_WRITE'
58
62
  } as const;
59
63
  export type PermissionResponseImpliedEnum = typeof PermissionResponseImpliedEnum[keyof typeof PermissionResponseImpliedEnum];
60
64
 
@@ -0,0 +1,109 @@
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 RoleResponse
20
+ */
21
+ export interface RoleResponse {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof RoleResponse
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RoleResponse
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof RoleResponse
38
+ */
39
+ description: string;
40
+ /**
41
+ *
42
+ * @type {Array<string>}
43
+ * @memberof RoleResponse
44
+ */
45
+ permissions: Array<RoleResponsePermissionsEnum>;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const RoleResponsePermissionsEnum = {
53
+ AgencyWrite: 'AGENCY_WRITE',
54
+ InvitationRead: 'INVITATION_READ',
55
+ InvitationWrite: 'INVITATION_WRITE',
56
+ RoleRead: 'ROLE_READ',
57
+ RoleWrite: 'ROLE_WRITE',
58
+ MemberRead: 'MEMBER_READ',
59
+ MemberWrite: 'MEMBER_WRITE'
60
+ } as const;
61
+ export type RoleResponsePermissionsEnum = typeof RoleResponsePermissionsEnum[keyof typeof RoleResponsePermissionsEnum];
62
+
63
+
64
+ /**
65
+ * Check if a given object implements the RoleResponse interface.
66
+ */
67
+ export function instanceOfRoleResponse(value: object): value is RoleResponse {
68
+ if (!('id' in value) || value['id'] === undefined) return false;
69
+ if (!('name' in value) || value['name'] === undefined) return false;
70
+ if (!('description' in value) || value['description'] === undefined) return false;
71
+ if (!('permissions' in value) || value['permissions'] === undefined) return false;
72
+ return true;
73
+ }
74
+
75
+ export function RoleResponseFromJSON(json: any): RoleResponse {
76
+ return RoleResponseFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function RoleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleResponse {
80
+ if (json == null) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'id': json['id'],
86
+ 'name': json['name'],
87
+ 'description': json['description'],
88
+ 'permissions': json['permissions'],
89
+ };
90
+ }
91
+
92
+ export function RoleResponseToJSON(json: any): RoleResponse {
93
+ return RoleResponseToJSONTyped(json, false);
94
+ }
95
+
96
+ export function RoleResponseToJSONTyped(value?: RoleResponse | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'id': value['id'],
104
+ 'name': value['name'],
105
+ 'description': value['description'],
106
+ 'permissions': value['permissions'],
107
+ };
108
+ }
109
+
@@ -48,7 +48,9 @@ export const RolesRequestPermissionsEnum = {
48
48
  InvitationRead: 'INVITATION_READ',
49
49
  InvitationWrite: 'INVITATION_WRITE',
50
50
  RoleRead: 'ROLE_READ',
51
- RoleWrite: 'ROLE_WRITE'
51
+ RoleWrite: 'ROLE_WRITE',
52
+ MemberRead: 'MEMBER_READ',
53
+ MemberWrite: 'MEMBER_WRITE'
52
54
  } as const;
53
55
  export type RolesRequestPermissionsEnum = typeof RolesRequestPermissionsEnum[keyof typeof RolesRequestPermissionsEnum];
54
56
 
@@ -0,0 +1,81 @@
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 SortObject
20
+ */
21
+ export interface SortObject {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof SortObject
26
+ */
27
+ empty?: boolean;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof SortObject
32
+ */
33
+ sorted?: boolean;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof SortObject
38
+ */
39
+ unsorted?: boolean;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SortObject interface.
44
+ */
45
+ export function instanceOfSortObject(value: object): value is SortObject {
46
+ return true;
47
+ }
48
+
49
+ export function SortObjectFromJSON(json: any): SortObject {
50
+ return SortObjectFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function SortObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): SortObject {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'empty': json['empty'] == null ? undefined : json['empty'],
60
+ 'sorted': json['sorted'] == null ? undefined : json['sorted'],
61
+ 'unsorted': json['unsorted'] == null ? undefined : json['unsorted'],
62
+ };
63
+ }
64
+
65
+ export function SortObjectToJSON(json: any): SortObject {
66
+ return SortObjectToJSONTyped(json, false);
67
+ }
68
+
69
+ export function SortObjectToJSONTyped(value?: SortObject | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'empty': value['empty'],
77
+ 'sorted': value['sorted'],
78
+ 'unsorted': value['unsorted'],
79
+ };
80
+ }
81
+