@homespot-sdk/api 0.0.633 → 0.0.635
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +24 -0
- package/README.md +30 -13
- package/dist/apis/AgencyControllerApi.d.ts +0 -14
- package/dist/apis/AgencyControllerApi.js +10 -38
- package/dist/apis/AgencyQueryControllerApi.d.ts +69 -1
- package/dist/apis/AgencyQueryControllerApi.js +107 -1
- package/dist/apis/InvitationControllerApi.d.ts +0 -2
- package/dist/apis/InvitationControllerApi.js +5 -7
- package/dist/apis/InvitationQueryControllerApi.d.ts +27 -5
- package/dist/apis/InvitationQueryControllerApi.js +45 -5
- package/dist/apis/MemberQueryControllerApi.d.ts +46 -0
- package/dist/apis/MemberQueryControllerApi.js +67 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AgencyControllerApi.d.ts +0 -14
- package/dist/esm/apis/AgencyControllerApi.js +10 -38
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +69 -1
- package/dist/esm/apis/AgencyQueryControllerApi.js +107 -1
- package/dist/esm/apis/InvitationControllerApi.d.ts +0 -2
- package/dist/esm/apis/InvitationControllerApi.js +5 -7
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +27 -5
- package/dist/esm/apis/InvitationQueryControllerApi.js +46 -6
- package/dist/esm/apis/MemberQueryControllerApi.d.ts +46 -0
- package/dist/esm/apis/MemberQueryControllerApi.js +63 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgencyPeekViewResponse.d.ts +102 -0
- package/dist/esm/models/AgencyPeekViewResponse.js +88 -0
- package/dist/esm/models/GroupedPermissionsResponse.d.ts +48 -0
- package/dist/esm/models/GroupedPermissionsResponse.js +56 -0
- package/dist/esm/models/InvitationDetailsRequest.d.ts +38 -0
- package/dist/esm/models/InvitationDetailsRequest.js +47 -0
- package/dist/esm/models/InvitationDetailsResponse.d.ts +72 -0
- package/dist/esm/models/InvitationDetailsResponse.js +70 -0
- package/dist/esm/models/InviteMemberRequest.d.ts +3 -2
- package/dist/esm/models/InviteMemberRequest.js +3 -2
- package/dist/esm/models/MemberViewResponse.d.ts +74 -0
- package/dist/esm/models/MemberViewResponse.js +69 -0
- package/dist/esm/models/OrganizationSummaryViewResponse.d.ts +8 -7
- package/dist/esm/models/OrganizationSummaryViewResponse.js +9 -8
- package/dist/esm/models/PageMetadata.d.ts +50 -0
- package/dist/esm/models/PageMetadata.js +47 -0
- package/dist/esm/models/Pageable.d.ts +44 -0
- package/dist/esm/models/Pageable.js +45 -0
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelAgencyPeekViewResponse.js +45 -0
- package/dist/esm/models/PagedModelInvitationViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelInvitationViewResponse.js +45 -0
- package/dist/esm/models/PagedModelMemberViewResponse.d.ts +40 -0
- package/dist/esm/models/PagedModelMemberViewResponse.js +45 -0
- package/dist/esm/models/PermissionResponse.d.ts +60 -0
- package/dist/esm/models/PermissionResponse.js +67 -0
- package/dist/esm/models/RolesRequest.d.ts +8 -7
- package/dist/esm/models/RolesRequest.js +9 -8
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/AgencyPeekViewResponse.d.ts +102 -0
- package/dist/models/AgencyPeekViewResponse.js +96 -0
- package/dist/models/GroupedPermissionsResponse.d.ts +48 -0
- package/dist/models/GroupedPermissionsResponse.js +64 -0
- package/dist/models/InvitationDetailsRequest.d.ts +38 -0
- package/dist/models/InvitationDetailsRequest.js +54 -0
- package/dist/models/InvitationDetailsResponse.d.ts +72 -0
- package/dist/models/InvitationDetailsResponse.js +78 -0
- package/dist/models/InviteMemberRequest.d.ts +3 -2
- package/dist/models/InviteMemberRequest.js +3 -2
- package/dist/models/MemberViewResponse.d.ts +74 -0
- package/dist/models/MemberViewResponse.js +76 -0
- package/dist/models/OrganizationSummaryViewResponse.d.ts +8 -7
- package/dist/models/OrganizationSummaryViewResponse.js +10 -9
- package/dist/models/PageMetadata.d.ts +50 -0
- package/dist/models/PageMetadata.js +54 -0
- package/dist/models/Pageable.d.ts +44 -0
- package/dist/models/Pageable.js +52 -0
- package/dist/models/PagedModelAgencyPeekViewResponse.d.ts +40 -0
- package/dist/models/PagedModelAgencyPeekViewResponse.js +52 -0
- package/dist/models/PagedModelInvitationViewResponse.d.ts +40 -0
- package/dist/models/PagedModelInvitationViewResponse.js +52 -0
- package/dist/models/PagedModelMemberViewResponse.d.ts +40 -0
- package/dist/models/PagedModelMemberViewResponse.js +52 -0
- package/dist/models/PermissionResponse.d.ts +60 -0
- package/dist/models/PermissionResponse.js +75 -0
- package/dist/models/RolesRequest.d.ts +8 -7
- package/dist/models/RolesRequest.js +10 -9
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/AgencyControllerApi.md +20 -41
- package/docs/AgencyPeekViewResponse.md +54 -0
- package/docs/AgencyQueryControllerApi.md +205 -0
- package/docs/GroupedPermissionsResponse.md +36 -0
- package/docs/InvitationControllerApi.md +3 -6
- package/docs/InvitationDetailsRequest.md +36 -0
- package/docs/InvitationDetailsResponse.md +44 -0
- package/docs/InvitationQueryControllerApi.md +78 -5
- package/docs/InviteMemberRequest.md +1 -1
- package/docs/MemberQueryControllerApi.md +78 -0
- package/docs/MemberViewResponse.md +48 -0
- package/docs/OrganizationSummaryViewResponse.md +2 -2
- package/docs/PageMetadata.md +40 -0
- package/docs/Pageable.md +38 -0
- package/docs/PagedModelAgencyPeekViewResponse.md +36 -0
- package/docs/PagedModelInvitationViewResponse.md +36 -0
- package/docs/PagedModelMemberViewResponse.md +36 -0
- package/docs/PermissionResponse.md +36 -0
- package/docs/RolesRequest.md +2 -2
- package/package.json +1 -1
- package/src/apis/AgencyControllerApi.ts +10 -80
- package/src/apis/AgencyQueryControllerApi.ts +190 -0
- package/src/apis/InvitationControllerApi.ts +6 -13
- package/src/apis/InvitationQueryControllerApi.ts +91 -12
- package/src/apis/MemberQueryControllerApi.ts +102 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AgencyPeekViewResponse.ts +167 -0
- package/src/models/GroupedPermissionsResponse.ts +95 -0
- package/src/models/InvitationDetailsRequest.ts +75 -0
- package/src/models/InvitationDetailsResponse.ts +123 -0
- package/src/models/InviteMemberRequest.ts +12 -4
- package/src/models/MemberViewResponse.ts +128 -0
- package/src/models/OrganizationSummaryViewResponse.ts +11 -10
- package/src/models/PageMetadata.ts +89 -0
- package/src/models/Pageable.ts +81 -0
- package/src/models/PagedModelAgencyPeekViewResponse.ts +88 -0
- package/src/models/PagedModelInvitationViewResponse.ts +88 -0
- package/src/models/PagedModelMemberViewResponse.ts +88 -0
- package/src/models/PermissionResponse.ts +101 -0
- package/src/models/RolesRequest.ts +11 -10
- package/src/models/index.ts +11 -0
package/docs/Pageable.md
ADDED
|
@@ -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
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PermissionResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`permission` | string
|
|
10
|
+
`implied` | Array<string>
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PermissionResponse } from '@homespot-sdk/api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"permission": null,
|
|
20
|
+
"implied": null,
|
|
21
|
+
} satisfies PermissionResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PermissionResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/RolesRequest.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
|
-
`
|
|
11
|
+
`permissions` | Array<string>
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ import type { RolesRequest } from '@homespot-sdk/api'
|
|
|
19
19
|
const example = {
|
|
20
20
|
"name": null,
|
|
21
21
|
"description": null,
|
|
22
|
-
"
|
|
22
|
+
"permissions": null,
|
|
23
23
|
} satisfies RolesRequest
|
|
24
24
|
|
|
25
25
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -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/
|
|
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: '
|
|
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/
|
|
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: '
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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,
|