@homespot-sdk/api 0.0.632 → 0.0.634

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 (103) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +27 -13
  3. package/dist/apis/AgencyControllerApi.d.ts +0 -14
  4. package/dist/apis/AgencyControllerApi.js +10 -38
  5. package/dist/apis/AgencyQueryControllerApi.d.ts +53 -1
  6. package/dist/apis/AgencyQueryControllerApi.js +79 -1
  7. package/dist/apis/InvitationControllerApi.d.ts +0 -2
  8. package/dist/apis/InvitationControllerApi.js +5 -7
  9. package/dist/apis/InvitationQueryControllerApi.d.ts +27 -5
  10. package/dist/apis/InvitationQueryControllerApi.js +45 -5
  11. package/dist/apis/MemberQueryControllerApi.d.ts +46 -0
  12. package/dist/apis/MemberQueryControllerApi.js +67 -0
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.js +1 -0
  15. package/dist/esm/apis/AgencyControllerApi.d.ts +0 -14
  16. package/dist/esm/apis/AgencyControllerApi.js +10 -38
  17. package/dist/esm/apis/AgencyQueryControllerApi.d.ts +53 -1
  18. package/dist/esm/apis/AgencyQueryControllerApi.js +79 -1
  19. package/dist/esm/apis/InvitationControllerApi.d.ts +0 -2
  20. package/dist/esm/apis/InvitationControllerApi.js +5 -7
  21. package/dist/esm/apis/InvitationQueryControllerApi.d.ts +27 -5
  22. package/dist/esm/apis/InvitationQueryControllerApi.js +46 -6
  23. package/dist/esm/apis/MemberQueryControllerApi.d.ts +46 -0
  24. package/dist/esm/apis/MemberQueryControllerApi.js +63 -0
  25. package/dist/esm/apis/index.d.ts +1 -0
  26. package/dist/esm/apis/index.js +1 -0
  27. package/dist/esm/models/AgencyPeekViewResponse.d.ts +102 -0
  28. package/dist/esm/models/AgencyPeekViewResponse.js +88 -0
  29. package/dist/esm/models/InvitationDetailsRequest.d.ts +38 -0
  30. package/dist/esm/models/InvitationDetailsRequest.js +47 -0
  31. package/dist/esm/models/InvitationDetailsResponse.d.ts +72 -0
  32. package/dist/esm/models/InvitationDetailsResponse.js +70 -0
  33. package/dist/esm/models/InviteMemberRequest.d.ts +3 -2
  34. package/dist/esm/models/InviteMemberRequest.js +3 -2
  35. package/dist/esm/models/MemberViewResponse.d.ts +74 -0
  36. package/dist/esm/models/MemberViewResponse.js +69 -0
  37. package/dist/esm/models/PageMetadata.d.ts +50 -0
  38. package/dist/esm/models/PageMetadata.js +47 -0
  39. package/dist/esm/models/Pageable.d.ts +44 -0
  40. package/dist/esm/models/Pageable.js +45 -0
  41. package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
  42. package/dist/esm/models/PagedModelAgencyPeekViewResponse.js +45 -0
  43. package/dist/esm/models/PagedModelInvitationViewResponse.d.ts +40 -0
  44. package/dist/esm/models/PagedModelInvitationViewResponse.js +45 -0
  45. package/dist/esm/models/PagedModelMemberViewResponse.d.ts +40 -0
  46. package/dist/esm/models/PagedModelMemberViewResponse.js +45 -0
  47. package/dist/esm/models/index.d.ts +9 -0
  48. package/dist/esm/models/index.js +9 -0
  49. package/dist/models/AgencyPeekViewResponse.d.ts +102 -0
  50. package/dist/models/AgencyPeekViewResponse.js +96 -0
  51. package/dist/models/InvitationDetailsRequest.d.ts +38 -0
  52. package/dist/models/InvitationDetailsRequest.js +54 -0
  53. package/dist/models/InvitationDetailsResponse.d.ts +72 -0
  54. package/dist/models/InvitationDetailsResponse.js +78 -0
  55. package/dist/models/InviteMemberRequest.d.ts +3 -2
  56. package/dist/models/InviteMemberRequest.js +3 -2
  57. package/dist/models/MemberViewResponse.d.ts +74 -0
  58. package/dist/models/MemberViewResponse.js +76 -0
  59. package/dist/models/PageMetadata.d.ts +50 -0
  60. package/dist/models/PageMetadata.js +54 -0
  61. package/dist/models/Pageable.d.ts +44 -0
  62. package/dist/models/Pageable.js +52 -0
  63. package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
  64. package/dist/models/PagedModelAgencyPeekViewResponse.js +52 -0
  65. package/dist/models/PagedModelInvitationViewResponse.d.ts +40 -0
  66. package/dist/models/PagedModelInvitationViewResponse.js +52 -0
  67. package/dist/models/PagedModelMemberViewResponse.d.ts +40 -0
  68. package/dist/models/PagedModelMemberViewResponse.js +52 -0
  69. package/dist/models/index.d.ts +9 -0
  70. package/dist/models/index.js +9 -0
  71. package/docs/AgencyControllerApi.md +20 -41
  72. package/docs/AgencyPeekViewResponse.md +54 -0
  73. package/docs/AgencyQueryControllerApi.md +143 -0
  74. package/docs/InvitationControllerApi.md +3 -6
  75. package/docs/InvitationDetailsRequest.md +36 -0
  76. package/docs/InvitationDetailsResponse.md +44 -0
  77. package/docs/InvitationQueryControllerApi.md +78 -5
  78. package/docs/InviteMemberRequest.md +1 -1
  79. package/docs/MemberQueryControllerApi.md +78 -0
  80. package/docs/MemberViewResponse.md +48 -0
  81. package/docs/PageMetadata.md +40 -0
  82. package/docs/Pageable.md +38 -0
  83. package/docs/PagedModelAgencyPeekViewResponse.md +36 -0
  84. package/docs/PagedModelInvitationViewResponse.md +36 -0
  85. package/docs/PagedModelMemberViewResponse.md +36 -0
  86. package/package.json +1 -1
  87. package/src/apis/AgencyControllerApi.ts +10 -80
  88. package/src/apis/AgencyQueryControllerApi.ts +143 -0
  89. package/src/apis/InvitationControllerApi.ts +6 -13
  90. package/src/apis/InvitationQueryControllerApi.ts +91 -12
  91. package/src/apis/MemberQueryControllerApi.ts +102 -0
  92. package/src/apis/index.ts +1 -0
  93. package/src/models/AgencyPeekViewResponse.ts +167 -0
  94. package/src/models/InvitationDetailsRequest.ts +75 -0
  95. package/src/models/InvitationDetailsResponse.ts +123 -0
  96. package/src/models/InviteMemberRequest.ts +12 -4
  97. package/src/models/MemberViewResponse.ts +128 -0
  98. package/src/models/PageMetadata.ts +89 -0
  99. package/src/models/Pageable.ts +81 -0
  100. package/src/models/PagedModelAgencyPeekViewResponse.ts +88 -0
  101. package/src/models/PagedModelInvitationViewResponse.ts +88 -0
  102. package/src/models/PagedModelMemberViewResponse.ts +88 -0
  103. package/src/models/index.ts +9 -0
@@ -6,7 +6,7 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `emails` | Array<string>
9
+ `emails` | [Array<InvitationDetailsRequest>](InvitationDetailsRequest.md)
10
10
 
11
11
  ## Example
12
12
 
@@ -0,0 +1,78 @@
1
+ # MemberQueryControllerApi
2
+
3
+ All URIs are relative to *https://gateway.dev.homespot.ge/rem*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getAllMembers**](MemberQueryControllerApi.md#getallmembers) | **GET** /member | |
8
+
9
+
10
+
11
+ ## getAllMembers
12
+
13
+ > PagedModelMemberViewResponse getAllMembers(pageable)
14
+
15
+
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ MemberQueryControllerApi,
23
+ } from '@homespot-sdk/api';
24
+ import type { GetAllMembersRequest } from '@homespot-sdk/api';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing @homespot-sdk/api SDK...");
28
+ const config = new Configuration({
29
+ // To configure OAuth2 access token for authorization: keycloak accessCode
30
+ accessToken: "YOUR ACCESS TOKEN",
31
+ });
32
+ const api = new MemberQueryControllerApi(config);
33
+
34
+ const body = {
35
+ // Pageable
36
+ pageable: ...,
37
+ } satisfies GetAllMembersRequest;
38
+
39
+ try {
40
+ const data = await api.getAllMembers(body);
41
+ console.log(data);
42
+ } catch (error) {
43
+ console.error(error);
44
+ }
45
+ }
46
+
47
+ // Run the test
48
+ example().catch(console.error);
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+
54
+ | Name | Type | Description | Notes |
55
+ |------------- | ------------- | ------------- | -------------|
56
+ | **pageable** | [](.md) | | [Defaults to `undefined`] |
57
+
58
+ ### Return type
59
+
60
+ [**PagedModelMemberViewResponse**](PagedModelMemberViewResponse.md)
61
+
62
+ ### Authorization
63
+
64
+ [keycloak accessCode](../README.md#keycloak-accessCode)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: Not defined
69
+ - **Accept**: `*/*`
70
+
71
+
72
+ ### HTTP response details
73
+ | Status code | Description | Response headers |
74
+ |-------------|-------------|------------------|
75
+ | **200** | OK | - |
76
+
77
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
78
+
@@ -0,0 +1,48 @@
1
+
2
+ # MemberViewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `userId` | string
10
+ `firstName` | string
11
+ `lastName` | string
12
+ `phone` | string
13
+ `email` | string
14
+ `roleId` | number
15
+ `roleName` | string
16
+ `joinedAt` | Date
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { MemberViewResponse } from '@homespot-sdk/api'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "userId": null,
26
+ "firstName": null,
27
+ "lastName": null,
28
+ "phone": null,
29
+ "email": null,
30
+ "roleId": null,
31
+ "roleName": null,
32
+ "joinedAt": null,
33
+ } satisfies MemberViewResponse
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as MemberViewResponse
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,40 @@
1
+
2
+ # PageMetadata
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `size` | number
10
+ `number` | number
11
+ `totalElements` | number
12
+ `totalPages` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PageMetadata } from '@homespot-sdk/api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "size": null,
22
+ "number": null,
23
+ "totalElements": null,
24
+ "totalPages": null,
25
+ } satisfies PageMetadata
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PageMetadata
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,38 @@
1
+
2
+ # Pageable
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `page` | number
10
+ `size` | number
11
+ `sort` | Array<string>
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { Pageable } from '@homespot-sdk/api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "page": null,
21
+ "size": null,
22
+ "sort": null,
23
+ } satisfies Pageable
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as Pageable
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,36 @@
1
+
2
+ # PagedModelAgencyPeekViewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `content` | [Array<AgencyPeekViewResponse>](AgencyPeekViewResponse.md)
10
+ `page` | [PageMetadata](PageMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PagedModelAgencyPeekViewResponse } from '@homespot-sdk/api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "content": null,
20
+ "page": null,
21
+ } satisfies PagedModelAgencyPeekViewResponse
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as PagedModelAgencyPeekViewResponse
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,36 @@
1
+
2
+ # PagedModelInvitationViewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `content` | [Array<InvitationViewResponse>](InvitationViewResponse.md)
10
+ `page` | [PageMetadata](PageMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PagedModelInvitationViewResponse } from '@homespot-sdk/api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "content": null,
20
+ "page": null,
21
+ } satisfies PagedModelInvitationViewResponse
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as PagedModelInvitationViewResponse
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,36 @@
1
+
2
+ # PagedModelMemberViewResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `content` | [Array<MemberViewResponse>](MemberViewResponse.md)
10
+ `page` | [PageMetadata](PageMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PagedModelMemberViewResponse } from '@homespot-sdk/api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "content": null,
20
+ "page": null,
21
+ } satisfies PagedModelMemberViewResponse
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as PagedModelMemberViewResponse
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homespot-sdk/api",
3
- "version": "0.0.632",
3
+ "version": "0.0.634",
4
4
  "description": "OpenAPI client for @homespot-sdk/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -45,7 +45,6 @@ export interface ActivateAgencyRequest {
45
45
  }
46
46
 
47
47
  export interface AddRoleRequest {
48
- agencyId: string;
49
48
  rolesRequest: RolesRequest;
50
49
  }
51
50
 
@@ -59,33 +58,27 @@ export interface CreateAgencyOperationRequest {
59
58
  }
60
59
 
61
60
  export interface GeneratePresignedUrlRequest {
62
- agencyId: string;
63
61
  photoRequest: PhotoRequest;
64
62
  }
65
63
 
66
64
  export interface NotifyCoverUploadCompletionRequest {
67
- agencyId: string;
68
65
  photoRequest: PhotoRequest;
69
66
  }
70
67
 
71
68
  export interface NotifyLogoUploadCompletionRequest {
72
- agencyId: string;
73
69
  photoRequest: PhotoRequest;
74
70
  }
75
71
 
76
72
  export interface RemoveRoleRequest {
77
- agencyId: string;
78
73
  roleId: number;
79
74
  }
80
75
 
81
76
  export interface UpdateRoleRequest {
82
- agencyId: string;
83
77
  roleId: number;
84
78
  rolesRequest: RolesRequest;
85
79
  }
86
80
 
87
81
  export interface UpdateSocialUrlsRequest {
88
- agencyId: string;
89
82
  socialMediasRequest: SocialMediasRequest;
90
83
  }
91
84
 
@@ -111,7 +104,6 @@ export interface AgencyControllerApiInterface {
111
104
 
112
105
  /**
113
106
  *
114
- * @param {string} agencyId
115
107
  * @param {RolesRequest} rolesRequest
116
108
  * @param {*} [options] Override http request option.
117
109
  * @throws {RequiredError}
@@ -152,7 +144,6 @@ export interface AgencyControllerApiInterface {
152
144
 
153
145
  /**
154
146
  *
155
- * @param {string} agencyId
156
147
  * @param {PhotoRequest} photoRequest
157
148
  * @param {*} [options] Override http request option.
158
149
  * @throws {RequiredError}
@@ -166,7 +157,6 @@ export interface AgencyControllerApiInterface {
166
157
 
167
158
  /**
168
159
  *
169
- * @param {string} agencyId
170
160
  * @param {PhotoRequest} photoRequest
171
161
  * @param {*} [options] Override http request option.
172
162
  * @throws {RequiredError}
@@ -180,7 +170,6 @@ export interface AgencyControllerApiInterface {
180
170
 
181
171
  /**
182
172
  *
183
- * @param {string} agencyId
184
173
  * @param {PhotoRequest} photoRequest
185
174
  * @param {*} [options] Override http request option.
186
175
  * @throws {RequiredError}
@@ -194,7 +183,6 @@ export interface AgencyControllerApiInterface {
194
183
 
195
184
  /**
196
185
  *
197
- * @param {string} agencyId
198
186
  * @param {number} roleId
199
187
  * @param {*} [options] Override http request option.
200
188
  * @throws {RequiredError}
@@ -208,7 +196,6 @@ export interface AgencyControllerApiInterface {
208
196
 
209
197
  /**
210
198
  *
211
- * @param {string} agencyId
212
199
  * @param {number} roleId
213
200
  * @param {RolesRequest} rolesRequest
214
201
  * @param {*} [options] Override http request option.
@@ -223,7 +210,6 @@ export interface AgencyControllerApiInterface {
223
210
 
224
211
  /**
225
212
  *
226
- * @param {string} agencyId
227
213
  * @param {SocialMediasRequest} socialMediasRequest
228
214
  * @param {*} [options] Override http request option.
229
215
  * @throws {RequiredError}
@@ -284,13 +270,6 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
284
270
  /**
285
271
  */
286
272
  async addRoleRaw(requestParameters: AddRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
287
- if (requestParameters['agencyId'] == null) {
288
- throw new runtime.RequiredError(
289
- 'agencyId',
290
- 'Required parameter "agencyId" was null or undefined when calling addRole().'
291
- );
292
- }
293
-
294
273
  if (requestParameters['rolesRequest'] == null) {
295
274
  throw new runtime.RequiredError(
296
275
  'rolesRequest',
@@ -310,8 +289,7 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
310
289
  }
311
290
 
312
291
 
313
- let urlPath = `/agency/{agencyId}/roles`;
314
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
292
+ let urlPath = `/agency/roles`;
315
293
 
316
294
  const response = await this.request({
317
295
  path: urlPath,
@@ -359,12 +337,12 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
359
337
  }
360
338
 
361
339
 
362
- let urlPath = `/agency/{agencyId}`;
340
+ let urlPath = `/agency/{agencyId}/details`;
363
341
  urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
364
342
 
365
343
  const response = await this.request({
366
344
  path: urlPath,
367
- method: 'POST',
345
+ method: 'PUT',
368
346
  headers: headerParameters,
369
347
  query: queryParameters,
370
348
  body: CreateAgencyRequestToJSON(requestParameters['createAgencyRequest']),
@@ -424,13 +402,6 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
424
402
  /**
425
403
  */
426
404
  async generatePresignedUrlRaw(requestParameters: GeneratePresignedUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PresignedUrlsResponse>> {
427
- if (requestParameters['agencyId'] == null) {
428
- throw new runtime.RequiredError(
429
- 'agencyId',
430
- 'Required parameter "agencyId" was null or undefined when calling generatePresignedUrl().'
431
- );
432
- }
433
-
434
405
  if (requestParameters['photoRequest'] == null) {
435
406
  throw new runtime.RequiredError(
436
407
  'photoRequest',
@@ -450,12 +421,11 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
450
421
  }
451
422
 
452
423
 
453
- let urlPath = `/agency/{agencyId}/presigned-urls`;
454
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
424
+ let urlPath = `/agency/presigned-urls`;
455
425
 
456
426
  const response = await this.request({
457
427
  path: urlPath,
458
- method: 'PUT',
428
+ method: 'POST',
459
429
  headers: headerParameters,
460
430
  query: queryParameters,
461
431
  body: PhotoRequestToJSON(requestParameters['photoRequest']),
@@ -474,13 +444,6 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
474
444
  /**
475
445
  */
476
446
  async notifyCoverUploadCompletionRaw(requestParameters: NotifyCoverUploadCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadAcknowledgmentResponse>> {
477
- if (requestParameters['agencyId'] == null) {
478
- throw new runtime.RequiredError(
479
- 'agencyId',
480
- 'Required parameter "agencyId" was null or undefined when calling notifyCoverUploadCompletion().'
481
- );
482
- }
483
-
484
447
  if (requestParameters['photoRequest'] == null) {
485
448
  throw new runtime.RequiredError(
486
449
  'photoRequest',
@@ -500,8 +463,7 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
500
463
  }
501
464
 
502
465
 
503
- let urlPath = `/agency/{agencyId}/presigned-urls/notify/cover`;
504
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
466
+ let urlPath = `/agency/presigned-urls/notify/cover`;
505
467
 
506
468
  const response = await this.request({
507
469
  path: urlPath,
@@ -524,13 +486,6 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
524
486
  /**
525
487
  */
526
488
  async notifyLogoUploadCompletionRaw(requestParameters: NotifyLogoUploadCompletionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadAcknowledgmentResponse>> {
527
- if (requestParameters['agencyId'] == null) {
528
- throw new runtime.RequiredError(
529
- 'agencyId',
530
- 'Required parameter "agencyId" was null or undefined when calling notifyLogoUploadCompletion().'
531
- );
532
- }
533
-
534
489
  if (requestParameters['photoRequest'] == null) {
535
490
  throw new runtime.RequiredError(
536
491
  'photoRequest',
@@ -550,8 +505,7 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
550
505
  }
551
506
 
552
507
 
553
- let urlPath = `/agency/{agencyId}/presigned-urls/notify/logo`;
554
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
508
+ let urlPath = `/agency/presigned-urls/notify/logo`;
555
509
 
556
510
  const response = await this.request({
557
511
  path: urlPath,
@@ -574,13 +528,6 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
574
528
  /**
575
529
  */
576
530
  async removeRoleRaw(requestParameters: RemoveRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
577
- if (requestParameters['agencyId'] == null) {
578
- throw new runtime.RequiredError(
579
- 'agencyId',
580
- 'Required parameter "agencyId" was null or undefined when calling removeRole().'
581
- );
582
- }
583
-
584
531
  if (requestParameters['roleId'] == null) {
585
532
  throw new runtime.RequiredError(
586
533
  'roleId',
@@ -598,8 +545,7 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
598
545
  }
599
546
 
600
547
 
601
- let urlPath = `/agency/{agencyId}/roles/{roleId}`;
602
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
548
+ let urlPath = `/agency/roles/{roleId}`;
603
549
  urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
604
550
 
605
551
  const response = await this.request({
@@ -621,13 +567,6 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
621
567
  /**
622
568
  */
623
569
  async updateRoleRaw(requestParameters: UpdateRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
624
- if (requestParameters['agencyId'] == null) {
625
- throw new runtime.RequiredError(
626
- 'agencyId',
627
- 'Required parameter "agencyId" was null or undefined when calling updateRole().'
628
- );
629
- }
630
-
631
570
  if (requestParameters['roleId'] == null) {
632
571
  throw new runtime.RequiredError(
633
572
  'roleId',
@@ -654,8 +593,7 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
654
593
  }
655
594
 
656
595
 
657
- let urlPath = `/agency/{agencyId}/roles/{roleId}`;
658
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
596
+ let urlPath = `/agency/roles/{roleId}`;
659
597
  urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
660
598
 
661
599
  const response = await this.request({
@@ -678,13 +616,6 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
678
616
  /**
679
617
  */
680
618
  async updateSocialUrlsRaw(requestParameters: UpdateSocialUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
681
- if (requestParameters['agencyId'] == null) {
682
- throw new runtime.RequiredError(
683
- 'agencyId',
684
- 'Required parameter "agencyId" was null or undefined when calling updateSocialUrls().'
685
- );
686
- }
687
-
688
619
  if (requestParameters['socialMediasRequest'] == null) {
689
620
  throw new runtime.RequiredError(
690
621
  'socialMediasRequest',
@@ -704,8 +635,7 @@ export class AgencyControllerApi extends runtime.BaseAPI implements AgencyContro
704
635
  }
705
636
 
706
637
 
707
- let urlPath = `/agency/{agencyId}/social-media`;
708
- urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
638
+ let urlPath = `/agency/social-media`;
709
639
 
710
640
  const response = await this.request({
711
641
  path: urlPath,