@aurigma/ng-backoffice-api-client 2.63.14 → 2.65.1
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/aurigma-ng-backoffice-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-backoffice-api-client.umd.js +1063 -55
- package/bundles/aurigma-ng-backoffice-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-backoffice-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-backoffice-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-backoffice-api-client.js +1 -1
- package/esm2015/lib/backoffice-api-client.js +874 -2
- package/esm2015/lib/backoffice.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-backoffice-api-client.js +874 -2
- package/fesm2015/aurigma-ng-backoffice-api-client.js.map +1 -1
- package/lib/backoffice-api-client.d.ts +261 -2
- package/package.json +1 -1
|
@@ -4023,6 +4023,1005 @@
|
|
|
4023
4023
|
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
4024
4024
|
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
4025
4025
|
]; };
|
|
4026
|
+
var ProjectStatusesManagementApiClient = /** @class */ (function (_super) {
|
|
4027
|
+
__extends(ProjectStatusesManagementApiClient, _super);
|
|
4028
|
+
function ProjectStatusesManagementApiClient(configuration, http, baseUrl) {
|
|
4029
|
+
var _this = _super.call(this, configuration) || this;
|
|
4030
|
+
_this.jsonParseReviver = undefined;
|
|
4031
|
+
_this.http = http;
|
|
4032
|
+
_this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
|
|
4033
|
+
return _this;
|
|
4034
|
+
}
|
|
4035
|
+
/**
|
|
4036
|
+
* Returns a list of all existing project statuses.
|
|
4037
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4038
|
+
* @return Success
|
|
4039
|
+
*/
|
|
4040
|
+
ProjectStatusesManagementApiClient.prototype.getAll = function (tenantId) {
|
|
4041
|
+
var _this = this;
|
|
4042
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses?";
|
|
4043
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4044
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4045
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4046
|
+
var options_ = {
|
|
4047
|
+
observe: "response",
|
|
4048
|
+
responseType: "blob",
|
|
4049
|
+
headers: new i1.HttpHeaders({
|
|
4050
|
+
"Accept": "application/json"
|
|
4051
|
+
})
|
|
4052
|
+
};
|
|
4053
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4054
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
4055
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4056
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
|
|
4057
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4058
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4059
|
+
try {
|
|
4060
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
|
|
4061
|
+
}
|
|
4062
|
+
catch (e) {
|
|
4063
|
+
return rxjs.throwError(e);
|
|
4064
|
+
}
|
|
4065
|
+
}
|
|
4066
|
+
else
|
|
4067
|
+
return rxjs.throwError(response_);
|
|
4068
|
+
}));
|
|
4069
|
+
};
|
|
4070
|
+
ProjectStatusesManagementApiClient.prototype.processGetAll = function (response) {
|
|
4071
|
+
var e_34, _a;
|
|
4072
|
+
var _this = this;
|
|
4073
|
+
var status = response.status;
|
|
4074
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4075
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4076
|
+
var _headers = {};
|
|
4077
|
+
if (response.headers) {
|
|
4078
|
+
try {
|
|
4079
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4080
|
+
var key = _c.value;
|
|
4081
|
+
_headers[key] = response.headers.get(key);
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
4085
|
+
finally {
|
|
4086
|
+
try {
|
|
4087
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4088
|
+
}
|
|
4089
|
+
finally { if (e_34) throw e_34.error; }
|
|
4090
|
+
}
|
|
4091
|
+
}
|
|
4092
|
+
if (status === 200) {
|
|
4093
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4094
|
+
var result200 = null;
|
|
4095
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4096
|
+
return rxjs.of(result200);
|
|
4097
|
+
}));
|
|
4098
|
+
}
|
|
4099
|
+
else if (status === 401) {
|
|
4100
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4101
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4102
|
+
}));
|
|
4103
|
+
}
|
|
4104
|
+
else if (status === 403) {
|
|
4105
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4106
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4107
|
+
}));
|
|
4108
|
+
}
|
|
4109
|
+
else if (status !== 200 && status !== 204) {
|
|
4110
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4111
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4112
|
+
}));
|
|
4113
|
+
}
|
|
4114
|
+
return rxjs.of(null);
|
|
4115
|
+
};
|
|
4116
|
+
/**
|
|
4117
|
+
* Creates a new project status and returns its description.
|
|
4118
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4119
|
+
* @param body (optional) Status creation parameters.
|
|
4120
|
+
* @return Success
|
|
4121
|
+
*/
|
|
4122
|
+
ProjectStatusesManagementApiClient.prototype.create = function (tenantId, body) {
|
|
4123
|
+
var _this = this;
|
|
4124
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses?";
|
|
4125
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4126
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4127
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4128
|
+
var content_ = JSON.stringify(body);
|
|
4129
|
+
var options_ = {
|
|
4130
|
+
body: content_,
|
|
4131
|
+
observe: "response",
|
|
4132
|
+
responseType: "blob",
|
|
4133
|
+
headers: new i1.HttpHeaders({
|
|
4134
|
+
"Content-Type": "application/json",
|
|
4135
|
+
"Accept": "application/json"
|
|
4136
|
+
})
|
|
4137
|
+
};
|
|
4138
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4139
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
4140
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4141
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
|
|
4142
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4143
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4144
|
+
try {
|
|
4145
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
|
|
4146
|
+
}
|
|
4147
|
+
catch (e) {
|
|
4148
|
+
return rxjs.throwError(e);
|
|
4149
|
+
}
|
|
4150
|
+
}
|
|
4151
|
+
else
|
|
4152
|
+
return rxjs.throwError(response_);
|
|
4153
|
+
}));
|
|
4154
|
+
};
|
|
4155
|
+
ProjectStatusesManagementApiClient.prototype.processCreate = function (response) {
|
|
4156
|
+
var e_35, _a;
|
|
4157
|
+
var _this = this;
|
|
4158
|
+
var status = response.status;
|
|
4159
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4160
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4161
|
+
var _headers = {};
|
|
4162
|
+
if (response.headers) {
|
|
4163
|
+
try {
|
|
4164
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4165
|
+
var key = _c.value;
|
|
4166
|
+
_headers[key] = response.headers.get(key);
|
|
4167
|
+
}
|
|
4168
|
+
}
|
|
4169
|
+
catch (e_35_1) { e_35 = { error: e_35_1 }; }
|
|
4170
|
+
finally {
|
|
4171
|
+
try {
|
|
4172
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4173
|
+
}
|
|
4174
|
+
finally { if (e_35) throw e_35.error; }
|
|
4175
|
+
}
|
|
4176
|
+
}
|
|
4177
|
+
if (status === 201) {
|
|
4178
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4179
|
+
var result201 = null;
|
|
4180
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4181
|
+
return rxjs.of(result201);
|
|
4182
|
+
}));
|
|
4183
|
+
}
|
|
4184
|
+
else if (status === 400) {
|
|
4185
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4186
|
+
var result400 = null;
|
|
4187
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4188
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
4189
|
+
}));
|
|
4190
|
+
}
|
|
4191
|
+
else if (status === 409) {
|
|
4192
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4193
|
+
var result409 = null;
|
|
4194
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4195
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
4196
|
+
}));
|
|
4197
|
+
}
|
|
4198
|
+
else if (status === 401) {
|
|
4199
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4200
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4201
|
+
}));
|
|
4202
|
+
}
|
|
4203
|
+
else if (status === 403) {
|
|
4204
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4205
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4206
|
+
}));
|
|
4207
|
+
}
|
|
4208
|
+
else if (status !== 200 && status !== 204) {
|
|
4209
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4210
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4211
|
+
}));
|
|
4212
|
+
}
|
|
4213
|
+
return rxjs.of(null);
|
|
4214
|
+
};
|
|
4215
|
+
/**
|
|
4216
|
+
* Returns a project status by its identifier.
|
|
4217
|
+
* @param id Status identifier.
|
|
4218
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4219
|
+
* @return Success
|
|
4220
|
+
*/
|
|
4221
|
+
ProjectStatusesManagementApiClient.prototype.get = function (id, tenantId) {
|
|
4222
|
+
var _this = this;
|
|
4223
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses/{id}?";
|
|
4224
|
+
if (id === undefined || id === null)
|
|
4225
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4226
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4227
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4228
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4229
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4230
|
+
var options_ = {
|
|
4231
|
+
observe: "response",
|
|
4232
|
+
responseType: "blob",
|
|
4233
|
+
headers: new i1.HttpHeaders({
|
|
4234
|
+
"Accept": "application/json"
|
|
4235
|
+
})
|
|
4236
|
+
};
|
|
4237
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4238
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
4239
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4240
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
|
|
4241
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4242
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4243
|
+
try {
|
|
4244
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
|
|
4245
|
+
}
|
|
4246
|
+
catch (e) {
|
|
4247
|
+
return rxjs.throwError(e);
|
|
4248
|
+
}
|
|
4249
|
+
}
|
|
4250
|
+
else
|
|
4251
|
+
return rxjs.throwError(response_);
|
|
4252
|
+
}));
|
|
4253
|
+
};
|
|
4254
|
+
ProjectStatusesManagementApiClient.prototype.processGet = function (response) {
|
|
4255
|
+
var e_36, _a;
|
|
4256
|
+
var _this = this;
|
|
4257
|
+
var status = response.status;
|
|
4258
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4259
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4260
|
+
var _headers = {};
|
|
4261
|
+
if (response.headers) {
|
|
4262
|
+
try {
|
|
4263
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4264
|
+
var key = _c.value;
|
|
4265
|
+
_headers[key] = response.headers.get(key);
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
catch (e_36_1) { e_36 = { error: e_36_1 }; }
|
|
4269
|
+
finally {
|
|
4270
|
+
try {
|
|
4271
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4272
|
+
}
|
|
4273
|
+
finally { if (e_36) throw e_36.error; }
|
|
4274
|
+
}
|
|
4275
|
+
}
|
|
4276
|
+
if (status === 200) {
|
|
4277
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4278
|
+
var result200 = null;
|
|
4279
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4280
|
+
return rxjs.of(result200);
|
|
4281
|
+
}));
|
|
4282
|
+
}
|
|
4283
|
+
else if (status === 404) {
|
|
4284
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4285
|
+
var result404 = null;
|
|
4286
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4287
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4288
|
+
}));
|
|
4289
|
+
}
|
|
4290
|
+
else if (status === 401) {
|
|
4291
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4292
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4293
|
+
}));
|
|
4294
|
+
}
|
|
4295
|
+
else if (status === 403) {
|
|
4296
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4297
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4298
|
+
}));
|
|
4299
|
+
}
|
|
4300
|
+
else if (status !== 200 && status !== 204) {
|
|
4301
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4302
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4303
|
+
}));
|
|
4304
|
+
}
|
|
4305
|
+
return rxjs.of(null);
|
|
4306
|
+
};
|
|
4307
|
+
/**
|
|
4308
|
+
* Updates an existing project status and returns its description.
|
|
4309
|
+
* @param id Status identifier.
|
|
4310
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4311
|
+
* @param body (optional) Status update parameters.
|
|
4312
|
+
* @return Success
|
|
4313
|
+
*/
|
|
4314
|
+
ProjectStatusesManagementApiClient.prototype.update = function (id, tenantId, body) {
|
|
4315
|
+
var _this = this;
|
|
4316
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses/{id}?";
|
|
4317
|
+
if (id === undefined || id === null)
|
|
4318
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4319
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4320
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4321
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4322
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4323
|
+
var content_ = JSON.stringify(body);
|
|
4324
|
+
var options_ = {
|
|
4325
|
+
body: content_,
|
|
4326
|
+
observe: "response",
|
|
4327
|
+
responseType: "blob",
|
|
4328
|
+
headers: new i1.HttpHeaders({
|
|
4329
|
+
"Content-Type": "application/json",
|
|
4330
|
+
"Accept": "application/json"
|
|
4331
|
+
})
|
|
4332
|
+
};
|
|
4333
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4334
|
+
return _this.http.request("put", url_, transformedOptions_);
|
|
4335
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4336
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdate(r); });
|
|
4337
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4338
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4339
|
+
try {
|
|
4340
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdate(r); });
|
|
4341
|
+
}
|
|
4342
|
+
catch (e) {
|
|
4343
|
+
return rxjs.throwError(e);
|
|
4344
|
+
}
|
|
4345
|
+
}
|
|
4346
|
+
else
|
|
4347
|
+
return rxjs.throwError(response_);
|
|
4348
|
+
}));
|
|
4349
|
+
};
|
|
4350
|
+
ProjectStatusesManagementApiClient.prototype.processUpdate = function (response) {
|
|
4351
|
+
var e_37, _a;
|
|
4352
|
+
var _this = this;
|
|
4353
|
+
var status = response.status;
|
|
4354
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4355
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4356
|
+
var _headers = {};
|
|
4357
|
+
if (response.headers) {
|
|
4358
|
+
try {
|
|
4359
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4360
|
+
var key = _c.value;
|
|
4361
|
+
_headers[key] = response.headers.get(key);
|
|
4362
|
+
}
|
|
4363
|
+
}
|
|
4364
|
+
catch (e_37_1) { e_37 = { error: e_37_1 }; }
|
|
4365
|
+
finally {
|
|
4366
|
+
try {
|
|
4367
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4368
|
+
}
|
|
4369
|
+
finally { if (e_37) throw e_37.error; }
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4372
|
+
if (status === 200) {
|
|
4373
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4374
|
+
var result200 = null;
|
|
4375
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4376
|
+
return rxjs.of(result200);
|
|
4377
|
+
}));
|
|
4378
|
+
}
|
|
4379
|
+
else if (status === 400) {
|
|
4380
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4381
|
+
var result400 = null;
|
|
4382
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4383
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
4384
|
+
}));
|
|
4385
|
+
}
|
|
4386
|
+
else if (status === 404) {
|
|
4387
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4388
|
+
var result404 = null;
|
|
4389
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4390
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4391
|
+
}));
|
|
4392
|
+
}
|
|
4393
|
+
else if (status === 409) {
|
|
4394
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4395
|
+
var result409 = null;
|
|
4396
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4397
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
4398
|
+
}));
|
|
4399
|
+
}
|
|
4400
|
+
else if (status === 401) {
|
|
4401
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4402
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4403
|
+
}));
|
|
4404
|
+
}
|
|
4405
|
+
else if (status === 403) {
|
|
4406
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4407
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4408
|
+
}));
|
|
4409
|
+
}
|
|
4410
|
+
else if (status !== 200 && status !== 204) {
|
|
4411
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4412
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4413
|
+
}));
|
|
4414
|
+
}
|
|
4415
|
+
return rxjs.of(null);
|
|
4416
|
+
};
|
|
4417
|
+
/**
|
|
4418
|
+
* Deletes an existing project status and returns its description.
|
|
4419
|
+
* @param id Status identifier.
|
|
4420
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4421
|
+
* @return Success
|
|
4422
|
+
*/
|
|
4423
|
+
ProjectStatusesManagementApiClient.prototype.delete = function (id, tenantId) {
|
|
4424
|
+
var _this = this;
|
|
4425
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-statuses/{id}?";
|
|
4426
|
+
if (id === undefined || id === null)
|
|
4427
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4428
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4429
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4430
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4431
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4432
|
+
var options_ = {
|
|
4433
|
+
observe: "response",
|
|
4434
|
+
responseType: "blob",
|
|
4435
|
+
headers: new i1.HttpHeaders({
|
|
4436
|
+
"Accept": "application/json"
|
|
4437
|
+
})
|
|
4438
|
+
};
|
|
4439
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4440
|
+
return _this.http.request("delete", url_, transformedOptions_);
|
|
4441
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4442
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
|
|
4443
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4444
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4445
|
+
try {
|
|
4446
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
|
|
4447
|
+
}
|
|
4448
|
+
catch (e) {
|
|
4449
|
+
return rxjs.throwError(e);
|
|
4450
|
+
}
|
|
4451
|
+
}
|
|
4452
|
+
else
|
|
4453
|
+
return rxjs.throwError(response_);
|
|
4454
|
+
}));
|
|
4455
|
+
};
|
|
4456
|
+
ProjectStatusesManagementApiClient.prototype.processDelete = function (response) {
|
|
4457
|
+
var e_38, _a;
|
|
4458
|
+
var _this = this;
|
|
4459
|
+
var status = response.status;
|
|
4460
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4461
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4462
|
+
var _headers = {};
|
|
4463
|
+
if (response.headers) {
|
|
4464
|
+
try {
|
|
4465
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4466
|
+
var key = _c.value;
|
|
4467
|
+
_headers[key] = response.headers.get(key);
|
|
4468
|
+
}
|
|
4469
|
+
}
|
|
4470
|
+
catch (e_38_1) { e_38 = { error: e_38_1 }; }
|
|
4471
|
+
finally {
|
|
4472
|
+
try {
|
|
4473
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4474
|
+
}
|
|
4475
|
+
finally { if (e_38) throw e_38.error; }
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
if (status === 200) {
|
|
4479
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4480
|
+
var result200 = null;
|
|
4481
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4482
|
+
return rxjs.of(result200);
|
|
4483
|
+
}));
|
|
4484
|
+
}
|
|
4485
|
+
else if (status === 404) {
|
|
4486
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4487
|
+
var result404 = null;
|
|
4488
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4489
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4490
|
+
}));
|
|
4491
|
+
}
|
|
4492
|
+
else if (status === 409) {
|
|
4493
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4494
|
+
var result409 = null;
|
|
4495
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4496
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
4497
|
+
}));
|
|
4498
|
+
}
|
|
4499
|
+
else if (status === 401) {
|
|
4500
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4501
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4502
|
+
}));
|
|
4503
|
+
}
|
|
4504
|
+
else if (status === 403) {
|
|
4505
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4506
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4507
|
+
}));
|
|
4508
|
+
}
|
|
4509
|
+
else if (status !== 200 && status !== 204) {
|
|
4510
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4511
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4512
|
+
}));
|
|
4513
|
+
}
|
|
4514
|
+
return rxjs.of(null);
|
|
4515
|
+
};
|
|
4516
|
+
return ProjectStatusesManagementApiClient;
|
|
4517
|
+
}(ApiClientBase));
|
|
4518
|
+
ProjectStatusesManagementApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProjectStatusesManagementApiClient_Factory() { return new ProjectStatusesManagementApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProjectStatusesManagementApiClient, providedIn: "root" });
|
|
4519
|
+
ProjectStatusesManagementApiClient.decorators = [
|
|
4520
|
+
{ type: i0.Injectable, args: [{
|
|
4521
|
+
providedIn: 'root'
|
|
4522
|
+
},] }
|
|
4523
|
+
];
|
|
4524
|
+
ProjectStatusesManagementApiClient.ctorParameters = function () { return [
|
|
4525
|
+
{ type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
|
|
4526
|
+
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
4527
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
4528
|
+
]; };
|
|
4529
|
+
var ProjectStatusTransitionsManagementApiClient = /** @class */ (function (_super) {
|
|
4530
|
+
__extends(ProjectStatusTransitionsManagementApiClient, _super);
|
|
4531
|
+
function ProjectStatusTransitionsManagementApiClient(configuration, http, baseUrl) {
|
|
4532
|
+
var _this = _super.call(this, configuration) || this;
|
|
4533
|
+
_this.jsonParseReviver = undefined;
|
|
4534
|
+
_this.http = http;
|
|
4535
|
+
_this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : _this.getBaseUrl("");
|
|
4536
|
+
return _this;
|
|
4537
|
+
}
|
|
4538
|
+
/**
|
|
4539
|
+
* Returns a list of all existing project status transitions.
|
|
4540
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4541
|
+
* @return Success
|
|
4542
|
+
*/
|
|
4543
|
+
ProjectStatusTransitionsManagementApiClient.prototype.getAll = function (tenantId) {
|
|
4544
|
+
var _this = this;
|
|
4545
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions?";
|
|
4546
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4547
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4548
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4549
|
+
var options_ = {
|
|
4550
|
+
observe: "response",
|
|
4551
|
+
responseType: "blob",
|
|
4552
|
+
headers: new i1.HttpHeaders({
|
|
4553
|
+
"Accept": "application/json"
|
|
4554
|
+
})
|
|
4555
|
+
};
|
|
4556
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4557
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
4558
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4559
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
|
|
4560
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4561
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4562
|
+
try {
|
|
4563
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGetAll(r); });
|
|
4564
|
+
}
|
|
4565
|
+
catch (e) {
|
|
4566
|
+
return rxjs.throwError(e);
|
|
4567
|
+
}
|
|
4568
|
+
}
|
|
4569
|
+
else
|
|
4570
|
+
return rxjs.throwError(response_);
|
|
4571
|
+
}));
|
|
4572
|
+
};
|
|
4573
|
+
ProjectStatusTransitionsManagementApiClient.prototype.processGetAll = function (response) {
|
|
4574
|
+
var e_39, _a;
|
|
4575
|
+
var _this = this;
|
|
4576
|
+
var status = response.status;
|
|
4577
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4578
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4579
|
+
var _headers = {};
|
|
4580
|
+
if (response.headers) {
|
|
4581
|
+
try {
|
|
4582
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4583
|
+
var key = _c.value;
|
|
4584
|
+
_headers[key] = response.headers.get(key);
|
|
4585
|
+
}
|
|
4586
|
+
}
|
|
4587
|
+
catch (e_39_1) { e_39 = { error: e_39_1 }; }
|
|
4588
|
+
finally {
|
|
4589
|
+
try {
|
|
4590
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4591
|
+
}
|
|
4592
|
+
finally { if (e_39) throw e_39.error; }
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
if (status === 200) {
|
|
4596
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4597
|
+
var result200 = null;
|
|
4598
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4599
|
+
return rxjs.of(result200);
|
|
4600
|
+
}));
|
|
4601
|
+
}
|
|
4602
|
+
else if (status === 401) {
|
|
4603
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4604
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4605
|
+
}));
|
|
4606
|
+
}
|
|
4607
|
+
else if (status === 403) {
|
|
4608
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4609
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4610
|
+
}));
|
|
4611
|
+
}
|
|
4612
|
+
else if (status !== 200 && status !== 204) {
|
|
4613
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4614
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4615
|
+
}));
|
|
4616
|
+
}
|
|
4617
|
+
return rxjs.of(null);
|
|
4618
|
+
};
|
|
4619
|
+
/**
|
|
4620
|
+
* Returns a project status transition by its identifier.
|
|
4621
|
+
* @param id Status transition identifier.
|
|
4622
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4623
|
+
* @return Success
|
|
4624
|
+
*/
|
|
4625
|
+
ProjectStatusTransitionsManagementApiClient.prototype.get = function (id, tenantId) {
|
|
4626
|
+
var _this = this;
|
|
4627
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions/{id}?";
|
|
4628
|
+
if (id === undefined || id === null)
|
|
4629
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4630
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4631
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4632
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4633
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4634
|
+
var options_ = {
|
|
4635
|
+
observe: "response",
|
|
4636
|
+
responseType: "blob",
|
|
4637
|
+
headers: new i1.HttpHeaders({
|
|
4638
|
+
"Accept": "application/json"
|
|
4639
|
+
})
|
|
4640
|
+
};
|
|
4641
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4642
|
+
return _this.http.request("get", url_, transformedOptions_);
|
|
4643
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4644
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
|
|
4645
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4646
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4647
|
+
try {
|
|
4648
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processGet(r); });
|
|
4649
|
+
}
|
|
4650
|
+
catch (e) {
|
|
4651
|
+
return rxjs.throwError(e);
|
|
4652
|
+
}
|
|
4653
|
+
}
|
|
4654
|
+
else
|
|
4655
|
+
return rxjs.throwError(response_);
|
|
4656
|
+
}));
|
|
4657
|
+
};
|
|
4658
|
+
ProjectStatusTransitionsManagementApiClient.prototype.processGet = function (response) {
|
|
4659
|
+
var e_40, _a;
|
|
4660
|
+
var _this = this;
|
|
4661
|
+
var status = response.status;
|
|
4662
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4663
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4664
|
+
var _headers = {};
|
|
4665
|
+
if (response.headers) {
|
|
4666
|
+
try {
|
|
4667
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4668
|
+
var key = _c.value;
|
|
4669
|
+
_headers[key] = response.headers.get(key);
|
|
4670
|
+
}
|
|
4671
|
+
}
|
|
4672
|
+
catch (e_40_1) { e_40 = { error: e_40_1 }; }
|
|
4673
|
+
finally {
|
|
4674
|
+
try {
|
|
4675
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4676
|
+
}
|
|
4677
|
+
finally { if (e_40) throw e_40.error; }
|
|
4678
|
+
}
|
|
4679
|
+
}
|
|
4680
|
+
if (status === 200) {
|
|
4681
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4682
|
+
var result200 = null;
|
|
4683
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4684
|
+
return rxjs.of(result200);
|
|
4685
|
+
}));
|
|
4686
|
+
}
|
|
4687
|
+
else if (status === 404) {
|
|
4688
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4689
|
+
var result404 = null;
|
|
4690
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4691
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4692
|
+
}));
|
|
4693
|
+
}
|
|
4694
|
+
else if (status === 401) {
|
|
4695
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4696
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4697
|
+
}));
|
|
4698
|
+
}
|
|
4699
|
+
else if (status === 403) {
|
|
4700
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4701
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4702
|
+
}));
|
|
4703
|
+
}
|
|
4704
|
+
else if (status !== 200 && status !== 204) {
|
|
4705
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4706
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4707
|
+
}));
|
|
4708
|
+
}
|
|
4709
|
+
return rxjs.of(null);
|
|
4710
|
+
};
|
|
4711
|
+
/**
|
|
4712
|
+
* Updates an existing project status transition and returns its description.
|
|
4713
|
+
* @param id Status transition identifier.
|
|
4714
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4715
|
+
* @param body (optional) Status transition update parameters.
|
|
4716
|
+
* @return Success
|
|
4717
|
+
*/
|
|
4718
|
+
ProjectStatusTransitionsManagementApiClient.prototype.update = function (id, tenantId, body) {
|
|
4719
|
+
var _this = this;
|
|
4720
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions/{id}?";
|
|
4721
|
+
if (id === undefined || id === null)
|
|
4722
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4723
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4724
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4725
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4726
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4727
|
+
var content_ = JSON.stringify(body);
|
|
4728
|
+
var options_ = {
|
|
4729
|
+
body: content_,
|
|
4730
|
+
observe: "response",
|
|
4731
|
+
responseType: "blob",
|
|
4732
|
+
headers: new i1.HttpHeaders({
|
|
4733
|
+
"Content-Type": "application/json",
|
|
4734
|
+
"Accept": "application/json"
|
|
4735
|
+
})
|
|
4736
|
+
};
|
|
4737
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4738
|
+
return _this.http.request("put", url_, transformedOptions_);
|
|
4739
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4740
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdate(r); });
|
|
4741
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4742
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4743
|
+
try {
|
|
4744
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processUpdate(r); });
|
|
4745
|
+
}
|
|
4746
|
+
catch (e) {
|
|
4747
|
+
return rxjs.throwError(e);
|
|
4748
|
+
}
|
|
4749
|
+
}
|
|
4750
|
+
else
|
|
4751
|
+
return rxjs.throwError(response_);
|
|
4752
|
+
}));
|
|
4753
|
+
};
|
|
4754
|
+
ProjectStatusTransitionsManagementApiClient.prototype.processUpdate = function (response) {
|
|
4755
|
+
var e_41, _a;
|
|
4756
|
+
var _this = this;
|
|
4757
|
+
var status = response.status;
|
|
4758
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4759
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4760
|
+
var _headers = {};
|
|
4761
|
+
if (response.headers) {
|
|
4762
|
+
try {
|
|
4763
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4764
|
+
var key = _c.value;
|
|
4765
|
+
_headers[key] = response.headers.get(key);
|
|
4766
|
+
}
|
|
4767
|
+
}
|
|
4768
|
+
catch (e_41_1) { e_41 = { error: e_41_1 }; }
|
|
4769
|
+
finally {
|
|
4770
|
+
try {
|
|
4771
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4772
|
+
}
|
|
4773
|
+
finally { if (e_41) throw e_41.error; }
|
|
4774
|
+
}
|
|
4775
|
+
}
|
|
4776
|
+
if (status === 200) {
|
|
4777
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4778
|
+
var result200 = null;
|
|
4779
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4780
|
+
return rxjs.of(result200);
|
|
4781
|
+
}));
|
|
4782
|
+
}
|
|
4783
|
+
else if (status === 400) {
|
|
4784
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4785
|
+
var result400 = null;
|
|
4786
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4787
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
4788
|
+
}));
|
|
4789
|
+
}
|
|
4790
|
+
else if (status === 404) {
|
|
4791
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4792
|
+
var result404 = null;
|
|
4793
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4794
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4795
|
+
}));
|
|
4796
|
+
}
|
|
4797
|
+
else if (status === 409) {
|
|
4798
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4799
|
+
var result409 = null;
|
|
4800
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4801
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
4802
|
+
}));
|
|
4803
|
+
}
|
|
4804
|
+
else if (status === 401) {
|
|
4805
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4806
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4807
|
+
}));
|
|
4808
|
+
}
|
|
4809
|
+
else if (status === 403) {
|
|
4810
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4811
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4812
|
+
}));
|
|
4813
|
+
}
|
|
4814
|
+
else if (status !== 200 && status !== 204) {
|
|
4815
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4816
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4817
|
+
}));
|
|
4818
|
+
}
|
|
4819
|
+
return rxjs.of(null);
|
|
4820
|
+
};
|
|
4821
|
+
/**
|
|
4822
|
+
* Deletes an existing project status transition and returns its description.
|
|
4823
|
+
* @param id Status transition identifier.
|
|
4824
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4825
|
+
* @return Success
|
|
4826
|
+
*/
|
|
4827
|
+
ProjectStatusTransitionsManagementApiClient.prototype.delete = function (id, tenantId) {
|
|
4828
|
+
var _this = this;
|
|
4829
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions/{id}?";
|
|
4830
|
+
if (id === undefined || id === null)
|
|
4831
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
4832
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
4833
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4834
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4835
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4836
|
+
var options_ = {
|
|
4837
|
+
observe: "response",
|
|
4838
|
+
responseType: "blob",
|
|
4839
|
+
headers: new i1.HttpHeaders({
|
|
4840
|
+
"Accept": "application/json"
|
|
4841
|
+
})
|
|
4842
|
+
};
|
|
4843
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4844
|
+
return _this.http.request("delete", url_, transformedOptions_);
|
|
4845
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4846
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
|
|
4847
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4848
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4849
|
+
try {
|
|
4850
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processDelete(r); });
|
|
4851
|
+
}
|
|
4852
|
+
catch (e) {
|
|
4853
|
+
return rxjs.throwError(e);
|
|
4854
|
+
}
|
|
4855
|
+
}
|
|
4856
|
+
else
|
|
4857
|
+
return rxjs.throwError(response_);
|
|
4858
|
+
}));
|
|
4859
|
+
};
|
|
4860
|
+
ProjectStatusTransitionsManagementApiClient.prototype.processDelete = function (response) {
|
|
4861
|
+
var e_42, _a;
|
|
4862
|
+
var _this = this;
|
|
4863
|
+
var status = response.status;
|
|
4864
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4865
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4866
|
+
var _headers = {};
|
|
4867
|
+
if (response.headers) {
|
|
4868
|
+
try {
|
|
4869
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4870
|
+
var key = _c.value;
|
|
4871
|
+
_headers[key] = response.headers.get(key);
|
|
4872
|
+
}
|
|
4873
|
+
}
|
|
4874
|
+
catch (e_42_1) { e_42 = { error: e_42_1 }; }
|
|
4875
|
+
finally {
|
|
4876
|
+
try {
|
|
4877
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4878
|
+
}
|
|
4879
|
+
finally { if (e_42) throw e_42.error; }
|
|
4880
|
+
}
|
|
4881
|
+
}
|
|
4882
|
+
if (status === 200) {
|
|
4883
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4884
|
+
var result200 = null;
|
|
4885
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4886
|
+
return rxjs.of(result200);
|
|
4887
|
+
}));
|
|
4888
|
+
}
|
|
4889
|
+
else if (status === 404) {
|
|
4890
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4891
|
+
var result404 = null;
|
|
4892
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4893
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
4894
|
+
}));
|
|
4895
|
+
}
|
|
4896
|
+
else if (status === 401) {
|
|
4897
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4898
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4899
|
+
}));
|
|
4900
|
+
}
|
|
4901
|
+
else if (status === 403) {
|
|
4902
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4903
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
4904
|
+
}));
|
|
4905
|
+
}
|
|
4906
|
+
else if (status !== 200 && status !== 204) {
|
|
4907
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4908
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4909
|
+
}));
|
|
4910
|
+
}
|
|
4911
|
+
return rxjs.of(null);
|
|
4912
|
+
};
|
|
4913
|
+
/**
|
|
4914
|
+
* Creates a new project status transition and returns its description.
|
|
4915
|
+
* @param tenantId (optional) Tenant identifier.
|
|
4916
|
+
* @param body (optional) Status transition creation parameters.
|
|
4917
|
+
* @return Success
|
|
4918
|
+
*/
|
|
4919
|
+
ProjectStatusTransitionsManagementApiClient.prototype.create = function (tenantId, body) {
|
|
4920
|
+
var _this = this;
|
|
4921
|
+
var url_ = this.baseUrl + "/api/backoffice/v1/projects-transitions/transitions?";
|
|
4922
|
+
if (tenantId !== undefined && tenantId !== null)
|
|
4923
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4924
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4925
|
+
var content_ = JSON.stringify(body);
|
|
4926
|
+
var options_ = {
|
|
4927
|
+
body: content_,
|
|
4928
|
+
observe: "response",
|
|
4929
|
+
responseType: "blob",
|
|
4930
|
+
headers: new i1.HttpHeaders({
|
|
4931
|
+
"Content-Type": "application/json",
|
|
4932
|
+
"Accept": "application/json"
|
|
4933
|
+
})
|
|
4934
|
+
};
|
|
4935
|
+
return rxjs.from(this.transformOptions(options_)).pipe(operators.mergeMap(function (transformedOptions_) {
|
|
4936
|
+
return _this.http.request("post", url_, transformedOptions_);
|
|
4937
|
+
})).pipe(operators.mergeMap(function (response_) {
|
|
4938
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
|
|
4939
|
+
})).pipe(operators.catchError(function (response_) {
|
|
4940
|
+
if (response_ instanceof i1.HttpResponseBase) {
|
|
4941
|
+
try {
|
|
4942
|
+
return _this.transformResult(url_, response_, function (r) { return _this.processCreate(r); });
|
|
4943
|
+
}
|
|
4944
|
+
catch (e) {
|
|
4945
|
+
return rxjs.throwError(e);
|
|
4946
|
+
}
|
|
4947
|
+
}
|
|
4948
|
+
else
|
|
4949
|
+
return rxjs.throwError(response_);
|
|
4950
|
+
}));
|
|
4951
|
+
};
|
|
4952
|
+
ProjectStatusTransitionsManagementApiClient.prototype.processCreate = function (response) {
|
|
4953
|
+
var e_43, _a;
|
|
4954
|
+
var _this = this;
|
|
4955
|
+
var status = response.status;
|
|
4956
|
+
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
4957
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4958
|
+
var _headers = {};
|
|
4959
|
+
if (response.headers) {
|
|
4960
|
+
try {
|
|
4961
|
+
for (var _b = __values(response.headers.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4962
|
+
var key = _c.value;
|
|
4963
|
+
_headers[key] = response.headers.get(key);
|
|
4964
|
+
}
|
|
4965
|
+
}
|
|
4966
|
+
catch (e_43_1) { e_43 = { error: e_43_1 }; }
|
|
4967
|
+
finally {
|
|
4968
|
+
try {
|
|
4969
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4970
|
+
}
|
|
4971
|
+
finally { if (e_43) throw e_43.error; }
|
|
4972
|
+
}
|
|
4973
|
+
}
|
|
4974
|
+
if (status === 201) {
|
|
4975
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4976
|
+
var result201 = null;
|
|
4977
|
+
result201 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4978
|
+
return rxjs.of(result201);
|
|
4979
|
+
}));
|
|
4980
|
+
}
|
|
4981
|
+
else if (status === 400) {
|
|
4982
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4983
|
+
var result400 = null;
|
|
4984
|
+
result400 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4985
|
+
return throwException("Bad Request", status, _responseText, _headers, result400);
|
|
4986
|
+
}));
|
|
4987
|
+
}
|
|
4988
|
+
else if (status === 409) {
|
|
4989
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4990
|
+
var result409 = null;
|
|
4991
|
+
result409 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
|
|
4992
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
4993
|
+
}));
|
|
4994
|
+
}
|
|
4995
|
+
else if (status === 401) {
|
|
4996
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
4997
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
4998
|
+
}));
|
|
4999
|
+
}
|
|
5000
|
+
else if (status === 403) {
|
|
5001
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5002
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
5003
|
+
}));
|
|
5004
|
+
}
|
|
5005
|
+
else if (status !== 200 && status !== 204) {
|
|
5006
|
+
return blobToText(responseBlob).pipe(operators.mergeMap(function (_responseText) {
|
|
5007
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5008
|
+
}));
|
|
5009
|
+
}
|
|
5010
|
+
return rxjs.of(null);
|
|
5011
|
+
};
|
|
5012
|
+
return ProjectStatusTransitionsManagementApiClient;
|
|
5013
|
+
}(ApiClientBase));
|
|
5014
|
+
ProjectStatusTransitionsManagementApiClient.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProjectStatusTransitionsManagementApiClient_Factory() { return new ProjectStatusTransitionsManagementApiClient(i0.ɵɵinject(ApiClientConfiguration), i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(API_BASE_URL, 8)); }, token: ProjectStatusTransitionsManagementApiClient, providedIn: "root" });
|
|
5015
|
+
ProjectStatusTransitionsManagementApiClient.decorators = [
|
|
5016
|
+
{ type: i0.Injectable, args: [{
|
|
5017
|
+
providedIn: 'root'
|
|
5018
|
+
},] }
|
|
5019
|
+
];
|
|
5020
|
+
ProjectStatusTransitionsManagementApiClient.ctorParameters = function () { return [
|
|
5021
|
+
{ type: ApiClientConfiguration, decorators: [{ type: i0.Inject, args: [ApiClientConfiguration,] }] },
|
|
5022
|
+
{ type: i1.HttpClient, decorators: [{ type: i0.Inject, args: [i1.HttpClient,] }] },
|
|
5023
|
+
{ type: String, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [API_BASE_URL,] }] }
|
|
5024
|
+
]; };
|
|
4026
5025
|
var StorefrontsManagementApiClient = /** @class */ (function (_super) {
|
|
4027
5026
|
__extends(StorefrontsManagementApiClient, _super);
|
|
4028
5027
|
function StorefrontsManagementApiClient(configuration, http, baseUrl) {
|
|
@@ -4039,10 +5038,11 @@
|
|
|
4039
5038
|
* @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
|
|
4040
5039
|
* @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
|
|
4041
5040
|
* @param search (optional) Search string for partial match.
|
|
5041
|
+
* @param status (optional) Storefront status.
|
|
4042
5042
|
* @param tenantId (optional) Tenant identifier.
|
|
4043
5043
|
* @return Success
|
|
4044
5044
|
*/
|
|
4045
|
-
StorefrontsManagementApiClient.prototype.getAll = function (types, skip, take, sorting, search, tenantId) {
|
|
5045
|
+
StorefrontsManagementApiClient.prototype.getAll = function (types, skip, take, sorting, search, status, tenantId) {
|
|
4046
5046
|
var _this = this;
|
|
4047
5047
|
var url_ = this.baseUrl + "/api/backoffice/v1/storefronts?";
|
|
4048
5048
|
if (types !== undefined && types !== null)
|
|
@@ -4055,6 +5055,8 @@
|
|
|
4055
5055
|
url_ += "sorting=" + encodeURIComponent("" + sorting) + "&";
|
|
4056
5056
|
if (search !== undefined && search !== null)
|
|
4057
5057
|
url_ += "search=" + encodeURIComponent("" + search) + "&";
|
|
5058
|
+
if (status !== undefined && status !== null)
|
|
5059
|
+
url_ += "status=" + encodeURIComponent("" + status) + "&";
|
|
4058
5060
|
if (tenantId !== undefined && tenantId !== null)
|
|
4059
5061
|
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4060
5062
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -4083,7 +5085,7 @@
|
|
|
4083
5085
|
}));
|
|
4084
5086
|
};
|
|
4085
5087
|
StorefrontsManagementApiClient.prototype.processGetAll = function (response) {
|
|
4086
|
-
var
|
|
5088
|
+
var e_44, _a;
|
|
4087
5089
|
var _this = this;
|
|
4088
5090
|
var status = response.status;
|
|
4089
5091
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4096,12 +5098,12 @@
|
|
|
4096
5098
|
_headers[key] = response.headers.get(key);
|
|
4097
5099
|
}
|
|
4098
5100
|
}
|
|
4099
|
-
catch (
|
|
5101
|
+
catch (e_44_1) { e_44 = { error: e_44_1 }; }
|
|
4100
5102
|
finally {
|
|
4101
5103
|
try {
|
|
4102
5104
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4103
5105
|
}
|
|
4104
|
-
finally { if (
|
|
5106
|
+
finally { if (e_44) throw e_44.error; }
|
|
4105
5107
|
}
|
|
4106
5108
|
}
|
|
4107
5109
|
if (status === 200) {
|
|
@@ -4168,7 +5170,7 @@
|
|
|
4168
5170
|
}));
|
|
4169
5171
|
};
|
|
4170
5172
|
StorefrontsManagementApiClient.prototype.processGet = function (response) {
|
|
4171
|
-
var
|
|
5173
|
+
var e_45, _a;
|
|
4172
5174
|
var _this = this;
|
|
4173
5175
|
var status = response.status;
|
|
4174
5176
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4181,12 +5183,12 @@
|
|
|
4181
5183
|
_headers[key] = response.headers.get(key);
|
|
4182
5184
|
}
|
|
4183
5185
|
}
|
|
4184
|
-
catch (
|
|
5186
|
+
catch (e_45_1) { e_45 = { error: e_45_1 }; }
|
|
4185
5187
|
finally {
|
|
4186
5188
|
try {
|
|
4187
5189
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4188
5190
|
}
|
|
4189
|
-
finally { if (
|
|
5191
|
+
finally { if (e_45) throw e_45.error; }
|
|
4190
5192
|
}
|
|
4191
5193
|
}
|
|
4192
5194
|
if (status === 200) {
|
|
@@ -4260,7 +5262,7 @@
|
|
|
4260
5262
|
}));
|
|
4261
5263
|
};
|
|
4262
5264
|
StorefrontsManagementApiClient.prototype.processDelete = function (response) {
|
|
4263
|
-
var
|
|
5265
|
+
var e_46, _a;
|
|
4264
5266
|
var _this = this;
|
|
4265
5267
|
var status = response.status;
|
|
4266
5268
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4273,12 +5275,12 @@
|
|
|
4273
5275
|
_headers[key] = response.headers.get(key);
|
|
4274
5276
|
}
|
|
4275
5277
|
}
|
|
4276
|
-
catch (
|
|
5278
|
+
catch (e_46_1) { e_46 = { error: e_46_1 }; }
|
|
4277
5279
|
finally {
|
|
4278
5280
|
try {
|
|
4279
5281
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4280
5282
|
}
|
|
4281
|
-
finally { if (
|
|
5283
|
+
finally { if (e_46) throw e_46.error; }
|
|
4282
5284
|
}
|
|
4283
5285
|
}
|
|
4284
5286
|
if (status === 200) {
|
|
@@ -4352,7 +5354,7 @@
|
|
|
4352
5354
|
}));
|
|
4353
5355
|
};
|
|
4354
5356
|
StorefrontsManagementApiClient.prototype.processCreateCustomStorefront = function (response) {
|
|
4355
|
-
var
|
|
5357
|
+
var e_47, _a;
|
|
4356
5358
|
var _this = this;
|
|
4357
5359
|
var status = response.status;
|
|
4358
5360
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4365,12 +5367,12 @@
|
|
|
4365
5367
|
_headers[key] = response.headers.get(key);
|
|
4366
5368
|
}
|
|
4367
5369
|
}
|
|
4368
|
-
catch (
|
|
5370
|
+
catch (e_47_1) { e_47 = { error: e_47_1 }; }
|
|
4369
5371
|
finally {
|
|
4370
5372
|
try {
|
|
4371
5373
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4372
5374
|
}
|
|
4373
|
-
finally { if (
|
|
5375
|
+
finally { if (e_47) throw e_47.error; }
|
|
4374
5376
|
}
|
|
4375
5377
|
}
|
|
4376
5378
|
if (status === 200) {
|
|
@@ -4451,7 +5453,7 @@
|
|
|
4451
5453
|
}));
|
|
4452
5454
|
};
|
|
4453
5455
|
StorefrontsManagementApiClient.prototype.processGetCustomStorefront = function (response) {
|
|
4454
|
-
var
|
|
5456
|
+
var e_48, _a;
|
|
4455
5457
|
var _this = this;
|
|
4456
5458
|
var status = response.status;
|
|
4457
5459
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4464,12 +5466,12 @@
|
|
|
4464
5466
|
_headers[key] = response.headers.get(key);
|
|
4465
5467
|
}
|
|
4466
5468
|
}
|
|
4467
|
-
catch (
|
|
5469
|
+
catch (e_48_1) { e_48 = { error: e_48_1 }; }
|
|
4468
5470
|
finally {
|
|
4469
5471
|
try {
|
|
4470
5472
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4471
5473
|
}
|
|
4472
|
-
finally { if (
|
|
5474
|
+
finally { if (e_48) throw e_48.error; }
|
|
4473
5475
|
}
|
|
4474
5476
|
}
|
|
4475
5477
|
if (status === 200) {
|
|
@@ -4543,7 +5545,7 @@
|
|
|
4543
5545
|
}));
|
|
4544
5546
|
};
|
|
4545
5547
|
StorefrontsManagementApiClient.prototype.processCreateNopCommerceStorefront = function (response) {
|
|
4546
|
-
var
|
|
5548
|
+
var e_49, _a;
|
|
4547
5549
|
var _this = this;
|
|
4548
5550
|
var status = response.status;
|
|
4549
5551
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4556,12 +5558,12 @@
|
|
|
4556
5558
|
_headers[key] = response.headers.get(key);
|
|
4557
5559
|
}
|
|
4558
5560
|
}
|
|
4559
|
-
catch (
|
|
5561
|
+
catch (e_49_1) { e_49 = { error: e_49_1 }; }
|
|
4560
5562
|
finally {
|
|
4561
5563
|
try {
|
|
4562
5564
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4563
5565
|
}
|
|
4564
|
-
finally { if (
|
|
5566
|
+
finally { if (e_49) throw e_49.error; }
|
|
4565
5567
|
}
|
|
4566
5568
|
}
|
|
4567
5569
|
if (status === 200) {
|
|
@@ -4642,7 +5644,7 @@
|
|
|
4642
5644
|
}));
|
|
4643
5645
|
};
|
|
4644
5646
|
StorefrontsManagementApiClient.prototype.processGetNopCommerceStorefront = function (response) {
|
|
4645
|
-
var
|
|
5647
|
+
var e_50, _a;
|
|
4646
5648
|
var _this = this;
|
|
4647
5649
|
var status = response.status;
|
|
4648
5650
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4655,12 +5657,12 @@
|
|
|
4655
5657
|
_headers[key] = response.headers.get(key);
|
|
4656
5658
|
}
|
|
4657
5659
|
}
|
|
4658
|
-
catch (
|
|
5660
|
+
catch (e_50_1) { e_50 = { error: e_50_1 }; }
|
|
4659
5661
|
finally {
|
|
4660
5662
|
try {
|
|
4661
5663
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4662
5664
|
}
|
|
4663
|
-
finally { if (
|
|
5665
|
+
finally { if (e_50) throw e_50.error; }
|
|
4664
5666
|
}
|
|
4665
5667
|
}
|
|
4666
5668
|
if (status === 200) {
|
|
@@ -4734,7 +5736,7 @@
|
|
|
4734
5736
|
}));
|
|
4735
5737
|
};
|
|
4736
5738
|
StorefrontsManagementApiClient.prototype.processCreateWooCommerceStorefront = function (response) {
|
|
4737
|
-
var
|
|
5739
|
+
var e_51, _a;
|
|
4738
5740
|
var _this = this;
|
|
4739
5741
|
var status = response.status;
|
|
4740
5742
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4747,12 +5749,12 @@
|
|
|
4747
5749
|
_headers[key] = response.headers.get(key);
|
|
4748
5750
|
}
|
|
4749
5751
|
}
|
|
4750
|
-
catch (
|
|
5752
|
+
catch (e_51_1) { e_51 = { error: e_51_1 }; }
|
|
4751
5753
|
finally {
|
|
4752
5754
|
try {
|
|
4753
5755
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4754
5756
|
}
|
|
4755
|
-
finally { if (
|
|
5757
|
+
finally { if (e_51) throw e_51.error; }
|
|
4756
5758
|
}
|
|
4757
5759
|
}
|
|
4758
5760
|
if (status === 200) {
|
|
@@ -4833,7 +5835,7 @@
|
|
|
4833
5835
|
}));
|
|
4834
5836
|
};
|
|
4835
5837
|
StorefrontsManagementApiClient.prototype.processGetWooCommerceStorefront = function (response) {
|
|
4836
|
-
var
|
|
5838
|
+
var e_52, _a;
|
|
4837
5839
|
var _this = this;
|
|
4838
5840
|
var status = response.status;
|
|
4839
5841
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4846,12 +5848,12 @@
|
|
|
4846
5848
|
_headers[key] = response.headers.get(key);
|
|
4847
5849
|
}
|
|
4848
5850
|
}
|
|
4849
|
-
catch (
|
|
5851
|
+
catch (e_52_1) { e_52 = { error: e_52_1 }; }
|
|
4850
5852
|
finally {
|
|
4851
5853
|
try {
|
|
4852
5854
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4853
5855
|
}
|
|
4854
|
-
finally { if (
|
|
5856
|
+
finally { if (e_52) throw e_52.error; }
|
|
4855
5857
|
}
|
|
4856
5858
|
}
|
|
4857
5859
|
if (status === 200) {
|
|
@@ -4925,7 +5927,7 @@
|
|
|
4925
5927
|
}));
|
|
4926
5928
|
};
|
|
4927
5929
|
StorefrontsManagementApiClient.prototype.processCreateMagentoStorefront = function (response) {
|
|
4928
|
-
var
|
|
5930
|
+
var e_53, _a;
|
|
4929
5931
|
var _this = this;
|
|
4930
5932
|
var status = response.status;
|
|
4931
5933
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -4938,12 +5940,12 @@
|
|
|
4938
5940
|
_headers[key] = response.headers.get(key);
|
|
4939
5941
|
}
|
|
4940
5942
|
}
|
|
4941
|
-
catch (
|
|
5943
|
+
catch (e_53_1) { e_53 = { error: e_53_1 }; }
|
|
4942
5944
|
finally {
|
|
4943
5945
|
try {
|
|
4944
5946
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4945
5947
|
}
|
|
4946
|
-
finally { if (
|
|
5948
|
+
finally { if (e_53) throw e_53.error; }
|
|
4947
5949
|
}
|
|
4948
5950
|
}
|
|
4949
5951
|
if (status === 200) {
|
|
@@ -5024,7 +6026,7 @@
|
|
|
5024
6026
|
}));
|
|
5025
6027
|
};
|
|
5026
6028
|
StorefrontsManagementApiClient.prototype.processGetMagentoStorefront = function (response) {
|
|
5027
|
-
var
|
|
6029
|
+
var e_54, _a;
|
|
5028
6030
|
var _this = this;
|
|
5029
6031
|
var status = response.status;
|
|
5030
6032
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5037,12 +6039,12 @@
|
|
|
5037
6039
|
_headers[key] = response.headers.get(key);
|
|
5038
6040
|
}
|
|
5039
6041
|
}
|
|
5040
|
-
catch (
|
|
6042
|
+
catch (e_54_1) { e_54 = { error: e_54_1 }; }
|
|
5041
6043
|
finally {
|
|
5042
6044
|
try {
|
|
5043
6045
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5044
6046
|
}
|
|
5045
|
-
finally { if (
|
|
6047
|
+
finally { if (e_54) throw e_54.error; }
|
|
5046
6048
|
}
|
|
5047
6049
|
}
|
|
5048
6050
|
if (status === 200) {
|
|
@@ -5116,7 +6118,7 @@
|
|
|
5116
6118
|
}));
|
|
5117
6119
|
};
|
|
5118
6120
|
StorefrontsManagementApiClient.prototype.processCreateBigCommerceStorefront = function (response) {
|
|
5119
|
-
var
|
|
6121
|
+
var e_55, _a;
|
|
5120
6122
|
var _this = this;
|
|
5121
6123
|
var status = response.status;
|
|
5122
6124
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5129,12 +6131,12 @@
|
|
|
5129
6131
|
_headers[key] = response.headers.get(key);
|
|
5130
6132
|
}
|
|
5131
6133
|
}
|
|
5132
|
-
catch (
|
|
6134
|
+
catch (e_55_1) { e_55 = { error: e_55_1 }; }
|
|
5133
6135
|
finally {
|
|
5134
6136
|
try {
|
|
5135
6137
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5136
6138
|
}
|
|
5137
|
-
finally { if (
|
|
6139
|
+
finally { if (e_55) throw e_55.error; }
|
|
5138
6140
|
}
|
|
5139
6141
|
}
|
|
5140
6142
|
if (status === 200) {
|
|
@@ -5215,7 +6217,7 @@
|
|
|
5215
6217
|
}));
|
|
5216
6218
|
};
|
|
5217
6219
|
StorefrontsManagementApiClient.prototype.processGetBigCommerceStorefront = function (response) {
|
|
5218
|
-
var
|
|
6220
|
+
var e_56, _a;
|
|
5219
6221
|
var _this = this;
|
|
5220
6222
|
var status = response.status;
|
|
5221
6223
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5228,12 +6230,12 @@
|
|
|
5228
6230
|
_headers[key] = response.headers.get(key);
|
|
5229
6231
|
}
|
|
5230
6232
|
}
|
|
5231
|
-
catch (
|
|
6233
|
+
catch (e_56_1) { e_56 = { error: e_56_1 }; }
|
|
5232
6234
|
finally {
|
|
5233
6235
|
try {
|
|
5234
6236
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5235
6237
|
}
|
|
5236
|
-
finally { if (
|
|
6238
|
+
finally { if (e_56) throw e_56.error; }
|
|
5237
6239
|
}
|
|
5238
6240
|
}
|
|
5239
6241
|
if (status === 200) {
|
|
@@ -5325,7 +6327,7 @@
|
|
|
5325
6327
|
}));
|
|
5326
6328
|
};
|
|
5327
6329
|
UsersManagementApiClient.prototype.processGetAll = function (response) {
|
|
5328
|
-
var
|
|
6330
|
+
var e_57, _a;
|
|
5329
6331
|
var _this = this;
|
|
5330
6332
|
var status = response.status;
|
|
5331
6333
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5338,12 +6340,12 @@
|
|
|
5338
6340
|
_headers[key] = response.headers.get(key);
|
|
5339
6341
|
}
|
|
5340
6342
|
}
|
|
5341
|
-
catch (
|
|
6343
|
+
catch (e_57_1) { e_57 = { error: e_57_1 }; }
|
|
5342
6344
|
finally {
|
|
5343
6345
|
try {
|
|
5344
6346
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5345
6347
|
}
|
|
5346
|
-
finally { if (
|
|
6348
|
+
finally { if (e_57) throw e_57.error; }
|
|
5347
6349
|
}
|
|
5348
6350
|
}
|
|
5349
6351
|
if (status === 200) {
|
|
@@ -5410,7 +6412,7 @@
|
|
|
5410
6412
|
}));
|
|
5411
6413
|
};
|
|
5412
6414
|
UsersManagementApiClient.prototype.processCreate = function (response) {
|
|
5413
|
-
var
|
|
6415
|
+
var e_58, _a;
|
|
5414
6416
|
var _this = this;
|
|
5415
6417
|
var status = response.status;
|
|
5416
6418
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5423,12 +6425,12 @@
|
|
|
5423
6425
|
_headers[key] = response.headers.get(key);
|
|
5424
6426
|
}
|
|
5425
6427
|
}
|
|
5426
|
-
catch (
|
|
6428
|
+
catch (e_58_1) { e_58 = { error: e_58_1 }; }
|
|
5427
6429
|
finally {
|
|
5428
6430
|
try {
|
|
5429
6431
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5430
6432
|
}
|
|
5431
|
-
finally { if (
|
|
6433
|
+
finally { if (e_58) throw e_58.error; }
|
|
5432
6434
|
}
|
|
5433
6435
|
}
|
|
5434
6436
|
if (status === 200) {
|
|
@@ -5502,7 +6504,7 @@
|
|
|
5502
6504
|
}));
|
|
5503
6505
|
};
|
|
5504
6506
|
UsersManagementApiClient.prototype.processGet = function (response) {
|
|
5505
|
-
var
|
|
6507
|
+
var e_59, _a;
|
|
5506
6508
|
var _this = this;
|
|
5507
6509
|
var status = response.status;
|
|
5508
6510
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5515,12 +6517,12 @@
|
|
|
5515
6517
|
_headers[key] = response.headers.get(key);
|
|
5516
6518
|
}
|
|
5517
6519
|
}
|
|
5518
|
-
catch (
|
|
6520
|
+
catch (e_59_1) { e_59 = { error: e_59_1 }; }
|
|
5519
6521
|
finally {
|
|
5520
6522
|
try {
|
|
5521
6523
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5522
6524
|
}
|
|
5523
|
-
finally { if (
|
|
6525
|
+
finally { if (e_59) throw e_59.error; }
|
|
5524
6526
|
}
|
|
5525
6527
|
}
|
|
5526
6528
|
if (status === 200) {
|
|
@@ -5592,7 +6594,7 @@
|
|
|
5592
6594
|
}));
|
|
5593
6595
|
};
|
|
5594
6596
|
UsersManagementApiClient.prototype.processDelete = function (response) {
|
|
5595
|
-
var
|
|
6597
|
+
var e_60, _a;
|
|
5596
6598
|
var status = response.status;
|
|
5597
6599
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
5598
6600
|
response.error instanceof Blob ? response.error : undefined;
|
|
@@ -5604,12 +6606,12 @@
|
|
|
5604
6606
|
_headers[key] = response.headers.get(key);
|
|
5605
6607
|
}
|
|
5606
6608
|
}
|
|
5607
|
-
catch (
|
|
6609
|
+
catch (e_60_1) { e_60 = { error: e_60_1 }; }
|
|
5608
6610
|
finally {
|
|
5609
6611
|
try {
|
|
5610
6612
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5611
6613
|
}
|
|
5612
|
-
finally { if (
|
|
6614
|
+
finally { if (e_60) throw e_60.error; }
|
|
5613
6615
|
}
|
|
5614
6616
|
}
|
|
5615
6617
|
if (status === 200) {
|
|
@@ -5682,7 +6684,7 @@
|
|
|
5682
6684
|
}));
|
|
5683
6685
|
};
|
|
5684
6686
|
UsersManagementApiClient.prototype.processGetAllRoles = function (response) {
|
|
5685
|
-
var
|
|
6687
|
+
var e_61, _a;
|
|
5686
6688
|
var _this = this;
|
|
5687
6689
|
var status = response.status;
|
|
5688
6690
|
var responseBlob = response instanceof i1.HttpResponse ? response.body :
|
|
@@ -5695,12 +6697,12 @@
|
|
|
5695
6697
|
_headers[key] = response.headers.get(key);
|
|
5696
6698
|
}
|
|
5697
6699
|
}
|
|
5698
|
-
catch (
|
|
6700
|
+
catch (e_61_1) { e_61 = { error: e_61_1 }; }
|
|
5699
6701
|
finally {
|
|
5700
6702
|
try {
|
|
5701
6703
|
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
5702
6704
|
}
|
|
5703
|
-
finally { if (
|
|
6705
|
+
finally { if (e_61) throw e_61.error; }
|
|
5704
6706
|
}
|
|
5705
6707
|
}
|
|
5706
6708
|
if (status === 200) {
|
|
@@ -5804,6 +6806,10 @@
|
|
|
5804
6806
|
StorefrontType["Shopify"] = "Shopify";
|
|
5805
6807
|
StorefrontType["ShopifyCustom"] = "ShopifyCustom";
|
|
5806
6808
|
})(exports.StorefrontType || (exports.StorefrontType = {}));
|
|
6809
|
+
(function (StorefrontStatus) {
|
|
6810
|
+
StorefrontStatus["Dev"] = "Dev";
|
|
6811
|
+
StorefrontStatus["Prod"] = "Prod";
|
|
6812
|
+
})(exports.StorefrontStatus || (exports.StorefrontStatus = {}));
|
|
5807
6813
|
var ApiException = /** @class */ (function (_super) {
|
|
5808
6814
|
__extends(ApiException, _super);
|
|
5809
6815
|
function ApiException(message, status, response, headers, result) {
|
|
@@ -5896,6 +6902,8 @@
|
|
|
5896
6902
|
exports.CreateApiClientConfiguration = CreateApiClientConfiguration;
|
|
5897
6903
|
exports.ProductReferencesManagementApiClient = ProductReferencesManagementApiClient;
|
|
5898
6904
|
exports.ProductsManagementApiClient = ProductsManagementApiClient;
|
|
6905
|
+
exports.ProjectStatusTransitionsManagementApiClient = ProjectStatusTransitionsManagementApiClient;
|
|
6906
|
+
exports.ProjectStatusesManagementApiClient = ProjectStatusesManagementApiClient;
|
|
5899
6907
|
exports.StorefrontsManagementApiClient = StorefrontsManagementApiClient;
|
|
5900
6908
|
exports.UsersManagementApiClient = UsersManagementApiClient;
|
|
5901
6909
|
|