@energycap/energycapid-sdk-angular 1.2112.74-develop-20220202-1329 → 1.2112.78-develop-20220207-1810
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 +36 -9
- package/bundles/energycap-energycapid-sdk-angular.umd.js +148 -32
- 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 +84 -15
- package/esm2015/model/models.js +4 -2
- package/esm2015/model/organizationCustomFieldRequest.js +17 -0
- package/esm2015/model/organizationJoinRequest.js +17 -0
- package/esm2015/model/organizationRequest.js +17 -0
- package/fesm2015/energycap-energycapid-sdk-angular.js +135 -29
- package/fesm2015/energycap-energycapid-sdk-angular.js.map +1 -1
- package/model/models.d.ts +3 -1
- package/model/organizationCustomFieldRequest.d.ts +24 -0
- package/model/{createOrganizationRequest.d.ts → organizationJoinRequest.d.ts} +8 -1
- package/model/organizationRequest.d.ts +33 -0
- package/package.json +1 -1
- package/esm2015/model/createOrganizationRequest.js +0 -14
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
13
13
|
import { HttpResponse } from '@angular/common/http';
|
|
14
14
|
import { Observable } from 'rxjs';
|
|
15
|
-
import { CreateOrganizationRequest } from '../model/createOrganizationRequest';
|
|
16
15
|
import { HierarchicalOrganizations } from '../model/hierarchicalOrganizations';
|
|
17
16
|
import { OrganizationAccessControlResponse } from '../model/organizationAccessControlResponse';
|
|
18
17
|
import { OrganizationDetailResponse } from '../model/organizationDetailResponse';
|
|
18
|
+
import { OrganizationJoinRequest } from '../model/organizationJoinRequest';
|
|
19
|
+
import { OrganizationRequest } from '../model/organizationRequest';
|
|
19
20
|
import { OrganizationResponse } from '../model/organizationResponse';
|
|
20
21
|
import { OrganizationUserResponse } from '../model/organizationUserResponse';
|
|
21
22
|
import { UpdateOrganizationAccessControlRequest } from '../model/updateOrganizationAccessControlRequest';
|
|
@@ -41,12 +42,12 @@ export declare class OrganizationService {
|
|
|
41
42
|
*/
|
|
42
43
|
private canConsumeForm;
|
|
43
44
|
/**
|
|
44
|
-
* Create a new organization
|
|
45
|
+
* Create a new child organization
|
|
45
46
|
*
|
|
46
|
-
* @param
|
|
47
|
-
* @param body
|
|
47
|
+
* @param parentOrganizationId The parent of the new organization
|
|
48
|
+
* @param body Details about the new organization
|
|
48
49
|
*/
|
|
49
|
-
createOrganization(
|
|
50
|
+
createOrganization(parentOrganizationId: string, body?: OrganizationRequest, extraHttpRequestParams?: {
|
|
50
51
|
search: string | {
|
|
51
52
|
[param: string]: string | string[];
|
|
52
53
|
};
|
|
@@ -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
|
*
|
|
@@ -185,12 +199,12 @@ export declare class OrganizationService {
|
|
|
185
199
|
[header: string]: string | string[];
|
|
186
200
|
}): Observable<any>;
|
|
187
201
|
/**
|
|
188
|
-
* Create a new organization
|
|
202
|
+
* Create a new child organization
|
|
189
203
|
*
|
|
190
|
-
* @param
|
|
191
|
-
* @param body
|
|
204
|
+
* @param parentOrganizationId The parent of the new organization
|
|
205
|
+
* @param body Details about the new organization
|
|
192
206
|
*/
|
|
193
|
-
createOrganizationWithHttpInfo(
|
|
207
|
+
createOrganizationWithHttpInfo(parentOrganizationId: string, body?: OrganizationRequest, extraHttpRequestParams?: {
|
|
194
208
|
search: string | {
|
|
195
209
|
[param: string]: string | string[];
|
|
196
210
|
};
|
|
@@ -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
|
*
|
|
@@ -2675,13 +2675,13 @@
|
|
|
2675
2675
|
return false;
|
|
2676
2676
|
};
|
|
2677
2677
|
/**
|
|
2678
|
-
* Create a new organization
|
|
2678
|
+
* Create a new child organization
|
|
2679
2679
|
*
|
|
2680
|
-
* @param
|
|
2681
|
-
* @param body
|
|
2680
|
+
* @param parentOrganizationId The parent of the new organization
|
|
2681
|
+
* @param body Details about the new organization
|
|
2682
2682
|
*/
|
|
2683
|
-
OrganizationService.prototype.createOrganization = function (
|
|
2684
|
-
return this.createOrganizationWithHttpInfo(
|
|
2683
|
+
OrganizationService.prototype.createOrganization = function (parentOrganizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
2684
|
+
return this.createOrganizationWithHttpInfo(parentOrganizationId, body, extraHttpRequestParams, extraHttpRequestHeaders)
|
|
2685
2685
|
.pipe(operators.map(function (response) {
|
|
2686
2686
|
if (response.status === 204) {
|
|
2687
2687
|
return undefined;
|
|
@@ -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
|
*
|
|
@@ -2863,15 +2880,15 @@
|
|
|
2863
2880
|
}));
|
|
2864
2881
|
};
|
|
2865
2882
|
/**
|
|
2866
|
-
* Create a new organization
|
|
2883
|
+
* Create a new child organization
|
|
2867
2884
|
*
|
|
2868
|
-
* @param
|
|
2869
|
-
* @param body
|
|
2885
|
+
* @param parentOrganizationId The parent of the new organization
|
|
2886
|
+
* @param body Details about the new organization
|
|
2870
2887
|
*/
|
|
2871
|
-
OrganizationService.prototype.createOrganizationWithHttpInfo = function (
|
|
2888
|
+
OrganizationService.prototype.createOrganizationWithHttpInfo = function (parentOrganizationId, body, extraHttpRequestParams, extraHttpRequestHeaders) {
|
|
2872
2889
|
var _this = this;
|
|
2873
|
-
var path = this.basePath + '/api/v202112/Organization/${
|
|
2874
|
-
.replace('${' + '
|
|
2890
|
+
var path = this.basePath + '/api/v202112/Organization/${parentOrganizationId}'
|
|
2891
|
+
.replace('${' + 'parentOrganizationId' + '}', String(parentOrganizationId));
|
|
2875
2892
|
var queryParameters;
|
|
2876
2893
|
if (extraHttpRequestParams) {
|
|
2877
2894
|
if (typeof extraHttpRequestParams.search === 'string') {
|
|
@@ -2894,9 +2911,9 @@
|
|
|
2894
2911
|
headers = headers.set(key, value);
|
|
2895
2912
|
});
|
|
2896
2913
|
}
|
|
2897
|
-
// verify required parameter '
|
|
2898
|
-
if (
|
|
2899
|
-
throw new Error('Required parameter
|
|
2914
|
+
// verify required parameter 'parentOrganizationId' is not null or undefined
|
|
2915
|
+
if (parentOrganizationId === null || parentOrganizationId === undefined) {
|
|
2916
|
+
throw new Error('Required parameter parentOrganizationId was null or undefined when calling createOrganization.');
|
|
2900
2917
|
}
|
|
2901
2918
|
// to determine the Accept header
|
|
2902
2919
|
var produces = [
|
|
@@ -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
|
*
|
|
@@ -4666,23 +4737,6 @@
|
|
|
4666
4737
|
return ChangePasswordRequest;
|
|
4667
4738
|
}());
|
|
4668
4739
|
|
|
4669
|
-
/**
|
|
4670
|
-
* EnergyCAP ID SDK
|
|
4671
|
-
* Document used to generate the EnergyCAP ID SDK
|
|
4672
|
-
*
|
|
4673
|
-
* OpenAPI spec version: 1.2112
|
|
4674
|
-
* Contact: support@energycap.com
|
|
4675
|
-
*
|
|
4676
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
4677
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
4678
|
-
* Do not edit the class manually.
|
|
4679
|
-
*/
|
|
4680
|
-
var CreateOrganizationRequest = /** @class */ (function () {
|
|
4681
|
-
function CreateOrganizationRequest() {
|
|
4682
|
-
}
|
|
4683
|
-
return CreateOrganizationRequest;
|
|
4684
|
-
}());
|
|
4685
|
-
|
|
4686
4740
|
/**
|
|
4687
4741
|
* EnergyCAP ID SDK
|
|
4688
4742
|
* Document used to generate the EnergyCAP ID SDK
|
|
@@ -5139,6 +5193,26 @@
|
|
|
5139
5193
|
return OrganizationAssignedCustomField;
|
|
5140
5194
|
}());
|
|
5141
5195
|
|
|
5196
|
+
/**
|
|
5197
|
+
* EnergyCAP ID SDK
|
|
5198
|
+
* Document used to generate the EnergyCAP ID SDK
|
|
5199
|
+
*
|
|
5200
|
+
* OpenAPI spec version: 1.2112
|
|
5201
|
+
* Contact: support@energycap.com
|
|
5202
|
+
*
|
|
5203
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
5204
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
5205
|
+
* Do not edit the class manually.
|
|
5206
|
+
*/
|
|
5207
|
+
/**
|
|
5208
|
+
* Use this model to create or update a custom field on an Organization
|
|
5209
|
+
*/
|
|
5210
|
+
var OrganizationCustomFieldRequest = /** @class */ (function () {
|
|
5211
|
+
function OrganizationCustomFieldRequest() {
|
|
5212
|
+
}
|
|
5213
|
+
return OrganizationCustomFieldRequest;
|
|
5214
|
+
}());
|
|
5215
|
+
|
|
5142
5216
|
/**
|
|
5143
5217
|
* EnergyCAP ID SDK
|
|
5144
5218
|
* Document used to generate the EnergyCAP ID SDK
|
|
@@ -5179,6 +5253,46 @@
|
|
|
5179
5253
|
return OrganizationGatherCustomField;
|
|
5180
5254
|
}());
|
|
5181
5255
|
|
|
5256
|
+
/**
|
|
5257
|
+
* EnergyCAP ID SDK
|
|
5258
|
+
* Document used to generate the EnergyCAP ID SDK
|
|
5259
|
+
*
|
|
5260
|
+
* OpenAPI spec version: 1.2112
|
|
5261
|
+
* Contact: support@energycap.com
|
|
5262
|
+
*
|
|
5263
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
5264
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
5265
|
+
* Do not edit the class manually.
|
|
5266
|
+
*/
|
|
5267
|
+
/**
|
|
5268
|
+
* Request for joining an organization
|
|
5269
|
+
*/
|
|
5270
|
+
var OrganizationJoinRequest = /** @class */ (function () {
|
|
5271
|
+
function OrganizationJoinRequest() {
|
|
5272
|
+
}
|
|
5273
|
+
return OrganizationJoinRequest;
|
|
5274
|
+
}());
|
|
5275
|
+
|
|
5276
|
+
/**
|
|
5277
|
+
* EnergyCAP ID SDK
|
|
5278
|
+
* Document used to generate the EnergyCAP ID SDK
|
|
5279
|
+
*
|
|
5280
|
+
* OpenAPI spec version: 1.2112
|
|
5281
|
+
* Contact: support@energycap.com
|
|
5282
|
+
*
|
|
5283
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
5284
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
5285
|
+
* Do not edit the class manually.
|
|
5286
|
+
*/
|
|
5287
|
+
/**
|
|
5288
|
+
* Use this model to create an organization
|
|
5289
|
+
*/
|
|
5290
|
+
var OrganizationRequest = /** @class */ (function () {
|
|
5291
|
+
function OrganizationRequest() {
|
|
5292
|
+
}
|
|
5293
|
+
return OrganizationRequest;
|
|
5294
|
+
}());
|
|
5295
|
+
|
|
5182
5296
|
/**
|
|
5183
5297
|
* EnergyCAP ID SDK
|
|
5184
5298
|
* Document used to generate the EnergyCAP ID SDK
|
|
@@ -5666,7 +5780,6 @@
|
|
|
5666
5780
|
exports.COLLECTION_FORMATS = COLLECTION_FORMATS;
|
|
5667
5781
|
exports.ChangePasswordRequest = ChangePasswordRequest;
|
|
5668
5782
|
exports.Configuration = Configuration;
|
|
5669
|
-
exports.CreateOrganizationRequest = CreateOrganizationRequest;
|
|
5670
5783
|
exports.DataSourceResponse = DataSourceResponse;
|
|
5671
5784
|
exports.DataSourceService = DataSourceService;
|
|
5672
5785
|
exports.DataSourceUpdateRequest = DataSourceUpdateRequest;
|
|
@@ -5698,8 +5811,11 @@
|
|
|
5698
5811
|
exports.OrganizationApplicationResponse = OrganizationApplicationResponse;
|
|
5699
5812
|
exports.OrganizationApplicationService = OrganizationApplicationService;
|
|
5700
5813
|
exports.OrganizationAssignedCustomField = OrganizationAssignedCustomField;
|
|
5814
|
+
exports.OrganizationCustomFieldRequest = OrganizationCustomFieldRequest;
|
|
5701
5815
|
exports.OrganizationDetailResponse = OrganizationDetailResponse;
|
|
5702
5816
|
exports.OrganizationGatherCustomField = OrganizationGatherCustomField;
|
|
5817
|
+
exports.OrganizationJoinRequest = OrganizationJoinRequest;
|
|
5818
|
+
exports.OrganizationRequest = OrganizationRequest;
|
|
5703
5819
|
exports.OrganizationResponse = OrganizationResponse;
|
|
5704
5820
|
exports.OrganizationService = OrganizationService;
|
|
5705
5821
|
exports.OrganizationUserResponse = OrganizationUserResponse;
|