@energycap/energycapid-sdk-angular 1.2112.76-develop-20220203-1706 → 1.2112.77-develop-20220207-1120
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/api/organization.service.d.ts +27 -0
- package/bundles/energycap-energycapid-sdk-angular.umd.js +92 -0
- package/bundles/energycap-energycapid-sdk-angular.umd.js.map +1 -1
- package/bundles/energycap-energycapid-sdk-angular.umd.min.js +1 -1
- package/bundles/energycap-energycapid-sdk-angular.umd.min.js.map +1 -1
- package/energycap-energycapid-sdk-angular.metadata.json +1 -1
- package/esm2015/api/organization.service.js +70 -1
- package/esm2015/model/models.js +2 -1
- package/esm2015/model/organizationJoinRequest.js +17 -0
- package/fesm2015/energycap-energycapid-sdk-angular.js +87 -1
- package/fesm2015/energycap-energycapid-sdk-angular.js.map +1 -1
- package/model/models.d.ts +1 -0
- package/model/organizationJoinRequest.d.ts +20 -0
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ import { CreateOrganizationRequest } from '../model/createOrganizationRequest';
|
|
|
16
16
|
import { HierarchicalOrganizations } from '../model/hierarchicalOrganizations';
|
|
17
17
|
import { OrganizationAccessControlResponse } from '../model/organizationAccessControlResponse';
|
|
18
18
|
import { OrganizationDetailResponse } from '../model/organizationDetailResponse';
|
|
19
|
+
import { OrganizationJoinRequest } from '../model/organizationJoinRequest';
|
|
19
20
|
import { OrganizationResponse } from '../model/organizationResponse';
|
|
20
21
|
import { OrganizationUserResponse } from '../model/organizationUserResponse';
|
|
21
22
|
import { UpdateOrganizationAccessControlRequest } from '../model/updateOrganizationAccessControlRequest';
|
|
@@ -130,6 +131,19 @@ export declare class OrganizationService {
|
|
|
130
131
|
}, extraHttpRequestHeaders?: {
|
|
131
132
|
[header: string]: string | string[];
|
|
132
133
|
}): Observable<Array<OrganizationResponse>>;
|
|
134
|
+
/**
|
|
135
|
+
* Process an organization join request
|
|
136
|
+
*
|
|
137
|
+
* @param organizationId The organization identifier
|
|
138
|
+
* @param body
|
|
139
|
+
*/
|
|
140
|
+
processOrganizationJoinRequest(organizationId: string, body?: OrganizationJoinRequest, extraHttpRequestParams?: {
|
|
141
|
+
search: string | {
|
|
142
|
+
[param: string]: string | string[];
|
|
143
|
+
};
|
|
144
|
+
}, extraHttpRequestHeaders?: {
|
|
145
|
+
[header: string]: string | string[];
|
|
146
|
+
}): Observable<any>;
|
|
133
147
|
/**
|
|
134
148
|
*
|
|
135
149
|
*
|
|
@@ -274,6 +288,19 @@ export declare class OrganizationService {
|
|
|
274
288
|
}, extraHttpRequestHeaders?: {
|
|
275
289
|
[header: string]: string | string[];
|
|
276
290
|
}): Observable<HttpResponse<Array<OrganizationResponse>>>;
|
|
291
|
+
/**
|
|
292
|
+
* Process an organization join request
|
|
293
|
+
*
|
|
294
|
+
* @param organizationId The organization identifier
|
|
295
|
+
* @param body
|
|
296
|
+
*/
|
|
297
|
+
processOrganizationJoinRequestWithHttpInfo(organizationId: string, body?: OrganizationJoinRequest, extraHttpRequestParams?: {
|
|
298
|
+
search: string | {
|
|
299
|
+
[param: string]: string | string[];
|
|
300
|
+
};
|
|
301
|
+
}, extraHttpRequestHeaders?: {
|
|
302
|
+
[header: string]: string | string[];
|
|
303
|
+
}): Observable<HttpResponse<any>>;
|
|
277
304
|
/**
|
|
278
305
|
*
|
|
279
306
|
*
|
|
@@ -2792,6 +2792,23 @@
|
|
|
2792
2792
|
}
|
|
2793
2793
|
}));
|
|
2794
2794
|
};
|
|
2795
|
+
/**
|
|
2796
|
+
* Process an organization join request
|
|
2797
|
+
*
|
|
2798
|
+
* @param organizationId The organization identifier
|
|
2799
|
+
* @param body
|
|
2800
|
+
*/
|
|
2801
|
+
OrganizationService.prototype.processOrganizationJoinRequest = function (organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
2802
|
+
return this.processOrganizationJoinRequestWithHttpInfo(organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
2803
|
+
.pipe(operators.map(function (response) {
|
|
2804
|
+
if (response.status === 204) {
|
|
2805
|
+
return undefined;
|
|
2806
|
+
}
|
|
2807
|
+
else {
|
|
2808
|
+
return response.body;
|
|
2809
|
+
}
|
|
2810
|
+
}));
|
|
2811
|
+
};
|
|
2795
2812
|
/**
|
|
2796
2813
|
*
|
|
2797
2814
|
*
|
|
@@ -3240,6 +3257,60 @@
|
|
|
3240
3257
|
};
|
|
3241
3258
|
return this.http.request(RequestMethod$2.Get, path, requestOptions);
|
|
3242
3259
|
};
|
|
3260
|
+
/**
|
|
3261
|
+
* Process an organization join request
|
|
3262
|
+
*
|
|
3263
|
+
* @param organizationId The organization identifier
|
|
3264
|
+
* @param body
|
|
3265
|
+
*/
|
|
3266
|
+
OrganizationService.prototype.processOrganizationJoinRequestWithHttpInfo = function (organizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
3267
|
+
var _this = this;
|
|
3268
|
+
var path = this.basePath + '/api/v202112/Organization/${organizationId}/join'
|
|
3269
|
+
.replace('${' + 'organizationId' + '}', String(organizationId));
|
|
3270
|
+
var queryParameters;
|
|
3271
|
+
if (extraHttpRequestParams) {
|
|
3272
|
+
if (typeof extraHttpRequestParams.search === 'string') {
|
|
3273
|
+
queryParameters = new http.HttpParams({ fromString: extraHttpRequestParams.search });
|
|
3274
|
+
}
|
|
3275
|
+
else {
|
|
3276
|
+
queryParameters = new http.HttpParams({ fromObject: extraHttpRequestParams.search });
|
|
3277
|
+
}
|
|
3278
|
+
}
|
|
3279
|
+
else {
|
|
3280
|
+
queryParameters = new http.HttpParams();
|
|
3281
|
+
}
|
|
3282
|
+
var headers = new http.HttpHeaders();
|
|
3283
|
+
this.defaultHeaders.keys().forEach(function (key) {
|
|
3284
|
+
headers = headers.set(key, _this.defaultHeaders.getAll(key));
|
|
3285
|
+
});
|
|
3286
|
+
if (extraHttpRequestHeaders) {
|
|
3287
|
+
Object.entries(extraHttpRequestHeaders).forEach(function (_a) {
|
|
3288
|
+
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
3289
|
+
headers = headers.set(key, value);
|
|
3290
|
+
});
|
|
3291
|
+
}
|
|
3292
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3293
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3294
|
+
throw new Error('Required parameter organizationId was null or undefined when calling processOrganizationJoinRequest.');
|
|
3295
|
+
}
|
|
3296
|
+
// to determine the Accept header
|
|
3297
|
+
var produces = [];
|
|
3298
|
+
if (this.configuration.apiKeys["Authorization"]) {
|
|
3299
|
+
headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
|
|
3300
|
+
}
|
|
3301
|
+
var consumes = [
|
|
3302
|
+
'application/json'
|
|
3303
|
+
];
|
|
3304
|
+
headers = headers.set('Content-Type', consumes[0]);
|
|
3305
|
+
var requestOptions = {
|
|
3306
|
+
headers: headers,
|
|
3307
|
+
body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
|
|
3308
|
+
params: queryParameters,
|
|
3309
|
+
withCredentials: this.configuration.withCredentials,
|
|
3310
|
+
observe: 'response'
|
|
3311
|
+
};
|
|
3312
|
+
return this.http.request(RequestMethod$2.Post, path, requestOptions);
|
|
3313
|
+
};
|
|
3243
3314
|
/**
|
|
3244
3315
|
*
|
|
3245
3316
|
*
|
|
@@ -5179,6 +5250,26 @@
|
|
|
5179
5250
|
return OrganizationGatherCustomField;
|
|
5180
5251
|
}());
|
|
5181
5252
|
|
|
5253
|
+
/**
|
|
5254
|
+
* EnergyCAP ID SDK
|
|
5255
|
+
* Document used to generate the EnergyCAP ID SDK
|
|
5256
|
+
*
|
|
5257
|
+
* OpenAPI spec version: 1.2112
|
|
5258
|
+
* Contact: support@energycap.com
|
|
5259
|
+
*
|
|
5260
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
5261
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
5262
|
+
* Do not edit the class manually.
|
|
5263
|
+
*/
|
|
5264
|
+
/**
|
|
5265
|
+
* Request for joining an organization
|
|
5266
|
+
*/
|
|
5267
|
+
var OrganizationJoinRequest = /** @class */ (function () {
|
|
5268
|
+
function OrganizationJoinRequest() {
|
|
5269
|
+
}
|
|
5270
|
+
return OrganizationJoinRequest;
|
|
5271
|
+
}());
|
|
5272
|
+
|
|
5182
5273
|
/**
|
|
5183
5274
|
* EnergyCAP ID SDK
|
|
5184
5275
|
* Document used to generate the EnergyCAP ID SDK
|
|
@@ -5700,6 +5791,7 @@
|
|
|
5700
5791
|
exports.OrganizationAssignedCustomField = OrganizationAssignedCustomField;
|
|
5701
5792
|
exports.OrganizationDetailResponse = OrganizationDetailResponse;
|
|
5702
5793
|
exports.OrganizationGatherCustomField = OrganizationGatherCustomField;
|
|
5794
|
+
exports.OrganizationJoinRequest = OrganizationJoinRequest;
|
|
5703
5795
|
exports.OrganizationResponse = OrganizationResponse;
|
|
5704
5796
|
exports.OrganizationService = OrganizationService;
|
|
5705
5797
|
exports.OrganizationUserResponse = OrganizationUserResponse;
|