@homespot-sdk/api 0.0.6
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 +43 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +149 -0
- package/dist/apis/AgencyControllerApi.d.ts +222 -0
- package/dist/apis/AgencyControllerApi.js +356 -0
- package/dist/apis/AgencyQueryControllerApi.d.ts +45 -0
- package/dist/apis/AgencyQueryControllerApi.js +63 -0
- package/dist/apis/InvitationControllerApi.d.ts +70 -0
- package/dist/apis/InvitationControllerApi.js +104 -0
- package/dist/apis/InvitationQueryControllerApi.d.ts +46 -0
- package/dist/apis/InvitationQueryControllerApi.js +65 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +22 -0
- package/dist/esm/apis/AgencyControllerApi.d.ts +222 -0
- package/dist/esm/apis/AgencyControllerApi.js +352 -0
- package/dist/esm/apis/AgencyQueryControllerApi.d.ts +45 -0
- package/dist/esm/apis/AgencyQueryControllerApi.js +59 -0
- package/dist/esm/apis/InvitationControllerApi.d.ts +70 -0
- package/dist/esm/apis/InvitationControllerApi.js +100 -0
- package/dist/esm/apis/InvitationQueryControllerApi.d.ts +46 -0
- package/dist/esm/apis/InvitationQueryControllerApi.js +61 -0
- package/dist/esm/apis/index.d.ts +4 -0
- package/dist/esm/apis/index.js +6 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AddressRequest.d.ts +56 -0
- package/dist/esm/models/AddressRequest.js +59 -0
- package/dist/esm/models/CreateAgencyRequest.d.ts +69 -0
- package/dist/esm/models/CreateAgencyRequest.js +68 -0
- package/dist/esm/models/IdResponse.d.ts +32 -0
- package/dist/esm/models/IdResponse.js +43 -0
- package/dist/esm/models/InvitationViewResponse.d.ts +79 -0
- package/dist/esm/models/InvitationViewResponse.js +73 -0
- package/dist/esm/models/InviteMemberRequest.d.ts +32 -0
- package/dist/esm/models/InviteMemberRequest.js +43 -0
- package/dist/esm/models/PhotoRequest.d.ts +60 -0
- package/dist/esm/models/PhotoRequest.js +62 -0
- package/dist/esm/models/PresignedUrlResponse.d.ts +44 -0
- package/dist/esm/models/PresignedUrlResponse.js +51 -0
- package/dist/esm/models/PresignedUrlsResponse.d.ts +33 -0
- package/dist/esm/models/PresignedUrlsResponse.js +44 -0
- package/dist/esm/models/RolesRequest.d.ts +54 -0
- package/dist/esm/models/RolesRequest.js +60 -0
- package/dist/esm/models/SocialMediaRequest.d.ts +49 -0
- package/dist/esm/models/SocialMediaRequest.js +55 -0
- package/dist/esm/models/SocialMediasRequest.d.ts +33 -0
- package/dist/esm/models/SocialMediasRequest.js +44 -0
- package/dist/esm/models/UploadAcknowledgmentResponse.d.ts +38 -0
- package/dist/esm/models/UploadAcknowledgmentResponse.js +47 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AddressRequest.d.ts +56 -0
- package/dist/models/AddressRequest.js +66 -0
- package/dist/models/CreateAgencyRequest.d.ts +69 -0
- package/dist/models/CreateAgencyRequest.js +75 -0
- package/dist/models/IdResponse.d.ts +32 -0
- package/dist/models/IdResponse.js +50 -0
- package/dist/models/InvitationViewResponse.d.ts +79 -0
- package/dist/models/InvitationViewResponse.js +81 -0
- package/dist/models/InviteMemberRequest.d.ts +32 -0
- package/dist/models/InviteMemberRequest.js +50 -0
- package/dist/models/PhotoRequest.d.ts +60 -0
- package/dist/models/PhotoRequest.js +70 -0
- package/dist/models/PresignedUrlResponse.d.ts +44 -0
- package/dist/models/PresignedUrlResponse.js +58 -0
- package/dist/models/PresignedUrlsResponse.d.ts +33 -0
- package/dist/models/PresignedUrlsResponse.js +51 -0
- package/dist/models/RolesRequest.d.ts +54 -0
- package/dist/models/RolesRequest.js +68 -0
- package/dist/models/SocialMediaRequest.d.ts +49 -0
- package/dist/models/SocialMediaRequest.js +63 -0
- package/dist/models/SocialMediasRequest.d.ts +33 -0
- package/dist/models/SocialMediasRequest.js +51 -0
- package/dist/models/UploadAcknowledgmentResponse.d.ts +38 -0
- package/dist/models/UploadAcknowledgmentResponse.js +54 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +30 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/docs/AddressRequest.md +42 -0
- package/docs/AgencyControllerApi.md +662 -0
- package/docs/AgencyQueryControllerApi.md +78 -0
- package/docs/CreateAgencyRequest.md +46 -0
- package/docs/IdResponse.md +34 -0
- package/docs/InvitationControllerApi.md +154 -0
- package/docs/InvitationQueryControllerApi.md +78 -0
- package/docs/InvitationViewResponse.md +46 -0
- package/docs/InviteMemberRequest.md +34 -0
- package/docs/PhotoRequest.md +40 -0
- package/docs/PresignedUrlResponse.md +38 -0
- package/docs/PresignedUrlsResponse.md +34 -0
- package/docs/RolesRequest.md +38 -0
- package/docs/SocialMediaRequest.md +36 -0
- package/docs/SocialMediasRequest.md +34 -0
- package/docs/UploadAcknowledgmentResponse.md +36 -0
- package/package.json +21 -0
- package/src/apis/AgencyControllerApi.ts +660 -0
- package/src/apis/AgencyQueryControllerApi.ts +88 -0
- package/src/apis/InvitationControllerApi.ts +173 -0
- package/src/apis/InvitationQueryControllerApi.ts +96 -0
- package/src/apis/index.ts +6 -0
- package/src/index.ts +5 -0
- package/src/models/AddressRequest.ts +102 -0
- package/src/models/CreateAgencyRequest.ts +128 -0
- package/src/models/IdResponse.ts +66 -0
- package/src/models/InvitationViewResponse.ts +132 -0
- package/src/models/InviteMemberRequest.ts +66 -0
- package/src/models/PhotoRequest.ts +105 -0
- package/src/models/PresignedUrlResponse.ts +84 -0
- package/src/models/PresignedUrlsResponse.ts +74 -0
- package/src/models/RolesRequest.ts +97 -0
- package/src/models/SocialMediaRequest.ts +88 -0
- package/src/models/SocialMediasRequest.ts +74 -0
- package/src/models/UploadAcknowledgmentResponse.ts +75 -0
- package/src/models/index.ts +14 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Service API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AgencyControllerApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class AgencyControllerApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
activateAgencyRaw(requestParameters, initOverrides) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (requestParameters['agencyId'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling activateAgency().');
|
|
38
|
+
}
|
|
39
|
+
const queryParameters = {};
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
42
|
+
// oauth required
|
|
43
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
44
|
+
}
|
|
45
|
+
let urlPath = `/agency/{agencyId}/activate`;
|
|
46
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IdResponseFromJSON)(jsonValue));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*/
|
|
58
|
+
activateAgency(requestParameters, initOverrides) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const response = yield this.activateAgencyRaw(requestParameters, initOverrides);
|
|
61
|
+
return yield response.value();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
*/
|
|
66
|
+
addRoleRaw(requestParameters, initOverrides) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
if (requestParameters['agencyId'] == null) {
|
|
69
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling addRole().');
|
|
70
|
+
}
|
|
71
|
+
if (requestParameters['rolesRequest'] == null) {
|
|
72
|
+
throw new runtime.RequiredError('rolesRequest', 'Required parameter "rolesRequest" was null or undefined when calling addRole().');
|
|
73
|
+
}
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
// oauth required
|
|
79
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
80
|
+
}
|
|
81
|
+
let urlPath = `/agency/{agencyId}/roles`;
|
|
82
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
83
|
+
const response = yield this.request({
|
|
84
|
+
path: urlPath,
|
|
85
|
+
method: 'POST',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
body: (0, index_1.RolesRequestToJSON)(requestParameters['rolesRequest']),
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
return new runtime.VoidApiResponse(response);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
*/
|
|
95
|
+
addRole(requestParameters, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
yield this.addRoleRaw(requestParameters, initOverrides);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
*/
|
|
102
|
+
createAgencyRaw(requestParameters, initOverrides) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
if (requestParameters['createAgencyRequest'] == null) {
|
|
105
|
+
throw new runtime.RequiredError('createAgencyRequest', 'Required parameter "createAgencyRequest" was null or undefined when calling createAgency().');
|
|
106
|
+
}
|
|
107
|
+
const queryParameters = {};
|
|
108
|
+
const headerParameters = {};
|
|
109
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
110
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
111
|
+
// oauth required
|
|
112
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
113
|
+
}
|
|
114
|
+
let urlPath = `/agency`;
|
|
115
|
+
const response = yield this.request({
|
|
116
|
+
path: urlPath,
|
|
117
|
+
method: 'POST',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
body: (0, index_1.CreateAgencyRequestToJSON)(requestParameters['createAgencyRequest']),
|
|
121
|
+
}, initOverrides);
|
|
122
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IdResponseFromJSON)(jsonValue));
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
*/
|
|
127
|
+
createAgency(requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
const response = yield this.createAgencyRaw(requestParameters, initOverrides);
|
|
130
|
+
return yield response.value();
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
*/
|
|
135
|
+
generatePresignedUrlRaw(requestParameters, initOverrides) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
if (requestParameters['agencyId'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling generatePresignedUrl().');
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['photoRequest'] == null) {
|
|
141
|
+
throw new runtime.RequiredError('photoRequest', 'Required parameter "photoRequest" was null or undefined when calling generatePresignedUrl().');
|
|
142
|
+
}
|
|
143
|
+
const queryParameters = {};
|
|
144
|
+
const headerParameters = {};
|
|
145
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
146
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
147
|
+
// oauth required
|
|
148
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
149
|
+
}
|
|
150
|
+
let urlPath = `/agency/{agencyId}/presigned-urls`;
|
|
151
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
152
|
+
const response = yield this.request({
|
|
153
|
+
path: urlPath,
|
|
154
|
+
method: 'PUT',
|
|
155
|
+
headers: headerParameters,
|
|
156
|
+
query: queryParameters,
|
|
157
|
+
body: (0, index_1.PhotoRequestToJSON)(requestParameters['photoRequest']),
|
|
158
|
+
}, initOverrides);
|
|
159
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PresignedUrlsResponseFromJSON)(jsonValue));
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
*/
|
|
164
|
+
generatePresignedUrl(requestParameters, initOverrides) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
const response = yield this.generatePresignedUrlRaw(requestParameters, initOverrides);
|
|
167
|
+
return yield response.value();
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
*/
|
|
172
|
+
notifyCoverUploadCompletionRaw(requestParameters, initOverrides) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
if (requestParameters['agencyId'] == null) {
|
|
175
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling notifyCoverUploadCompletion().');
|
|
176
|
+
}
|
|
177
|
+
if (requestParameters['photoRequest'] == null) {
|
|
178
|
+
throw new runtime.RequiredError('photoRequest', 'Required parameter "photoRequest" was null or undefined when calling notifyCoverUploadCompletion().');
|
|
179
|
+
}
|
|
180
|
+
const queryParameters = {};
|
|
181
|
+
const headerParameters = {};
|
|
182
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
183
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
184
|
+
// oauth required
|
|
185
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
186
|
+
}
|
|
187
|
+
let urlPath = `/agency/{agencyId}/presigned-urls/notify/cover`;
|
|
188
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
189
|
+
const response = yield this.request({
|
|
190
|
+
path: urlPath,
|
|
191
|
+
method: 'POST',
|
|
192
|
+
headers: headerParameters,
|
|
193
|
+
query: queryParameters,
|
|
194
|
+
body: (0, index_1.PhotoRequestToJSON)(requestParameters['photoRequest']),
|
|
195
|
+
}, initOverrides);
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UploadAcknowledgmentResponseFromJSON)(jsonValue));
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
*/
|
|
201
|
+
notifyCoverUploadCompletion(requestParameters, initOverrides) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
const response = yield this.notifyCoverUploadCompletionRaw(requestParameters, initOverrides);
|
|
204
|
+
return yield response.value();
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
*/
|
|
209
|
+
notifyLogoUploadCompletionRaw(requestParameters, initOverrides) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
if (requestParameters['agencyId'] == null) {
|
|
212
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling notifyLogoUploadCompletion().');
|
|
213
|
+
}
|
|
214
|
+
if (requestParameters['photoRequest'] == null) {
|
|
215
|
+
throw new runtime.RequiredError('photoRequest', 'Required parameter "photoRequest" was null or undefined when calling notifyLogoUploadCompletion().');
|
|
216
|
+
}
|
|
217
|
+
const queryParameters = {};
|
|
218
|
+
const headerParameters = {};
|
|
219
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
220
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
221
|
+
// oauth required
|
|
222
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
223
|
+
}
|
|
224
|
+
let urlPath = `/agency/{agencyId}/presigned-urls/notify/logo`;
|
|
225
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
226
|
+
const response = yield this.request({
|
|
227
|
+
path: urlPath,
|
|
228
|
+
method: 'POST',
|
|
229
|
+
headers: headerParameters,
|
|
230
|
+
query: queryParameters,
|
|
231
|
+
body: (0, index_1.PhotoRequestToJSON)(requestParameters['photoRequest']),
|
|
232
|
+
}, initOverrides);
|
|
233
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UploadAcknowledgmentResponseFromJSON)(jsonValue));
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
*/
|
|
238
|
+
notifyLogoUploadCompletion(requestParameters, initOverrides) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
const response = yield this.notifyLogoUploadCompletionRaw(requestParameters, initOverrides);
|
|
241
|
+
return yield response.value();
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
*/
|
|
246
|
+
removeRoleRaw(requestParameters, initOverrides) {
|
|
247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
+
if (requestParameters['agencyId'] == null) {
|
|
249
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling removeRole().');
|
|
250
|
+
}
|
|
251
|
+
if (requestParameters['roleId'] == null) {
|
|
252
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling removeRole().');
|
|
253
|
+
}
|
|
254
|
+
const queryParameters = {};
|
|
255
|
+
const headerParameters = {};
|
|
256
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
257
|
+
// oauth required
|
|
258
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
259
|
+
}
|
|
260
|
+
let urlPath = `/agency/{agencyId}/roles/{roleId}`;
|
|
261
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
262
|
+
urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
|
|
263
|
+
const response = yield this.request({
|
|
264
|
+
path: urlPath,
|
|
265
|
+
method: 'DELETE',
|
|
266
|
+
headers: headerParameters,
|
|
267
|
+
query: queryParameters,
|
|
268
|
+
}, initOverrides);
|
|
269
|
+
return new runtime.VoidApiResponse(response);
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
*/
|
|
274
|
+
removeRole(requestParameters, initOverrides) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
yield this.removeRoleRaw(requestParameters, initOverrides);
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
*/
|
|
281
|
+
updateRoleRaw(requestParameters, initOverrides) {
|
|
282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
if (requestParameters['agencyId'] == null) {
|
|
284
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling updateRole().');
|
|
285
|
+
}
|
|
286
|
+
if (requestParameters['roleId'] == null) {
|
|
287
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling updateRole().');
|
|
288
|
+
}
|
|
289
|
+
if (requestParameters['rolesRequest'] == null) {
|
|
290
|
+
throw new runtime.RequiredError('rolesRequest', 'Required parameter "rolesRequest" was null or undefined when calling updateRole().');
|
|
291
|
+
}
|
|
292
|
+
const queryParameters = {};
|
|
293
|
+
const headerParameters = {};
|
|
294
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
295
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
296
|
+
// oauth required
|
|
297
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
298
|
+
}
|
|
299
|
+
let urlPath = `/agency/{agencyId}/roles/{roleId}`;
|
|
300
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
301
|
+
urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
|
|
302
|
+
const response = yield this.request({
|
|
303
|
+
path: urlPath,
|
|
304
|
+
method: 'PUT',
|
|
305
|
+
headers: headerParameters,
|
|
306
|
+
query: queryParameters,
|
|
307
|
+
body: (0, index_1.RolesRequestToJSON)(requestParameters['rolesRequest']),
|
|
308
|
+
}, initOverrides);
|
|
309
|
+
return new runtime.VoidApiResponse(response);
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
*/
|
|
314
|
+
updateRole(requestParameters, initOverrides) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
316
|
+
yield this.updateRoleRaw(requestParameters, initOverrides);
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
*/
|
|
321
|
+
updateSocialUrlsRaw(requestParameters, initOverrides) {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
+
if (requestParameters['agencyId'] == null) {
|
|
324
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling updateSocialUrls().');
|
|
325
|
+
}
|
|
326
|
+
if (requestParameters['socialMediasRequest'] == null) {
|
|
327
|
+
throw new runtime.RequiredError('socialMediasRequest', 'Required parameter "socialMediasRequest" was null or undefined when calling updateSocialUrls().');
|
|
328
|
+
}
|
|
329
|
+
const queryParameters = {};
|
|
330
|
+
const headerParameters = {};
|
|
331
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
332
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
333
|
+
// oauth required
|
|
334
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
335
|
+
}
|
|
336
|
+
let urlPath = `/agency/{agencyId}/social-media`;
|
|
337
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
338
|
+
const response = yield this.request({
|
|
339
|
+
path: urlPath,
|
|
340
|
+
method: 'PUT',
|
|
341
|
+
headers: headerParameters,
|
|
342
|
+
query: queryParameters,
|
|
343
|
+
body: (0, index_1.SocialMediasRequestToJSON)(requestParameters['socialMediasRequest']),
|
|
344
|
+
}, initOverrides);
|
|
345
|
+
return new runtime.VoidApiResponse(response);
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
*/
|
|
350
|
+
updateSocialUrls(requestParameters, initOverrides) {
|
|
351
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
352
|
+
yield this.updateSocialUrlsRaw(requestParameters, initOverrides);
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
exports.AgencyControllerApi = AgencyControllerApi;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
export interface GetAgencyRequest {
|
|
14
|
+
agencyId: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* AgencyQueryControllerApi - interface
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface AgencyQueryControllerApiInterface
|
|
21
|
+
*/
|
|
22
|
+
export interface AgencyQueryControllerApiInterface {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param {string} agencyId
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
* @memberof AgencyQueryControllerApiInterface
|
|
29
|
+
*/
|
|
30
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
31
|
+
/**
|
|
32
|
+
*/
|
|
33
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare class AgencyQueryControllerApi extends runtime.BaseAPI implements AgencyQueryControllerApiInterface {
|
|
39
|
+
/**
|
|
40
|
+
*/
|
|
41
|
+
getAgencyRaw(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
42
|
+
/**
|
|
43
|
+
*/
|
|
44
|
+
getAgency(requestParameters: GetAgencyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Service API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AgencyQueryControllerApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
class AgencyQueryControllerApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
*/
|
|
33
|
+
getAgencyRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['agencyId'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling getAgency().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
// oauth required
|
|
42
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
43
|
+
}
|
|
44
|
+
let urlPath = `/agency/{agencyId}`;
|
|
45
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
46
|
+
const response = yield this.request({
|
|
47
|
+
path: urlPath,
|
|
48
|
+
method: 'GET',
|
|
49
|
+
headers: headerParameters,
|
|
50
|
+
query: queryParameters,
|
|
51
|
+
}, initOverrides);
|
|
52
|
+
return new runtime.VoidApiResponse(response);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
*/
|
|
57
|
+
getAgency(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
yield this.getAgencyRaw(requestParameters, initOverrides);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.AgencyQueryControllerApi = AgencyQueryControllerApi;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { InviteMemberRequest } from '../models/index';
|
|
14
|
+
export interface InviteAcceptedRequest {
|
|
15
|
+
agencyId: string;
|
|
16
|
+
invitationId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface InviteMemberOperationRequest {
|
|
19
|
+
agencyId: string;
|
|
20
|
+
inviteMemberRequest: InviteMemberRequest;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* InvitationControllerApi - interface
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface InvitationControllerApiInterface
|
|
27
|
+
*/
|
|
28
|
+
export interface InvitationControllerApiInterface {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param {string} agencyId
|
|
32
|
+
* @param {string} invitationId
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
* @memberof InvitationControllerApiInterface
|
|
36
|
+
*/
|
|
37
|
+
inviteAcceptedRaw(requestParameters: InviteAcceptedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
38
|
+
/**
|
|
39
|
+
*/
|
|
40
|
+
inviteAccepted(requestParameters: InviteAcceptedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {string} agencyId
|
|
44
|
+
* @param {InviteMemberRequest} inviteMemberRequest
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
* @memberof InvitationControllerApiInterface
|
|
48
|
+
*/
|
|
49
|
+
inviteMemberRaw(requestParameters: InviteMemberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
50
|
+
/**
|
|
51
|
+
*/
|
|
52
|
+
inviteMember(requestParameters: InviteMemberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
export declare class InvitationControllerApi extends runtime.BaseAPI implements InvitationControllerApiInterface {
|
|
58
|
+
/**
|
|
59
|
+
*/
|
|
60
|
+
inviteAcceptedRaw(requestParameters: InviteAcceptedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
61
|
+
/**
|
|
62
|
+
*/
|
|
63
|
+
inviteAccepted(requestParameters: InviteAcceptedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
*/
|
|
66
|
+
inviteMemberRaw(requestParameters: InviteMemberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
67
|
+
/**
|
|
68
|
+
*/
|
|
69
|
+
inviteMember(requestParameters: InviteMemberOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Service API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.InvitationControllerApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class InvitationControllerApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
inviteAcceptedRaw(requestParameters, initOverrides) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (requestParameters['agencyId'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling inviteAccepted().');
|
|
38
|
+
}
|
|
39
|
+
if (requestParameters['invitationId'] == null) {
|
|
40
|
+
throw new runtime.RequiredError('invitationId', 'Required parameter "invitationId" was null or undefined when calling inviteAccepted().');
|
|
41
|
+
}
|
|
42
|
+
const queryParameters = {};
|
|
43
|
+
const headerParameters = {};
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
// oauth required
|
|
46
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
47
|
+
}
|
|
48
|
+
let urlPath = `/agency/{agencyId}/invitation/{invitationId}`;
|
|
49
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
50
|
+
urlPath = urlPath.replace(`{${"invitationId"}}`, encodeURIComponent(String(requestParameters['invitationId'])));
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: urlPath,
|
|
53
|
+
method: 'POST',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
}, initOverrides);
|
|
57
|
+
return new runtime.VoidApiResponse(response);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*/
|
|
62
|
+
inviteAccepted(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
yield this.inviteAcceptedRaw(requestParameters, initOverrides);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
*/
|
|
69
|
+
inviteMemberRaw(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (requestParameters['agencyId'] == null) {
|
|
72
|
+
throw new runtime.RequiredError('agencyId', 'Required parameter "agencyId" was null or undefined when calling inviteMember().');
|
|
73
|
+
}
|
|
74
|
+
if (requestParameters['inviteMemberRequest'] == null) {
|
|
75
|
+
throw new runtime.RequiredError('inviteMemberRequest', 'Required parameter "inviteMemberRequest" was null or undefined when calling inviteMember().');
|
|
76
|
+
}
|
|
77
|
+
const queryParameters = {};
|
|
78
|
+
const headerParameters = {};
|
|
79
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
// oauth required
|
|
82
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("keycloak", []);
|
|
83
|
+
}
|
|
84
|
+
let urlPath = `/agency/{agencyId}/invitation`;
|
|
85
|
+
urlPath = urlPath.replace(`{${"agencyId"}}`, encodeURIComponent(String(requestParameters['agencyId'])));
|
|
86
|
+
const response = yield this.request({
|
|
87
|
+
path: urlPath,
|
|
88
|
+
method: 'POST',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
body: (0, index_1.InviteMemberRequestToJSON)(requestParameters['inviteMemberRequest']),
|
|
92
|
+
}, initOverrides);
|
|
93
|
+
return new runtime.VoidApiResponse(response);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
*/
|
|
98
|
+
inviteMember(requestParameters, initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
yield this.inviteMemberRaw(requestParameters, initOverrides);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.InvitationControllerApi = InvitationControllerApi;
|