@ignos/api-client 20260129.0.13916-alpha → 20260129.0.13920-alpha
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/lib/ignosportal-api.d.ts +6 -0
- package/lib/ignosportal-api.js +75 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +78 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3182,6 +3182,7 @@ export declare class ExternalClient extends AuthorizedApiBase implements IExtern
|
|
|
3182
3182
|
export interface ISuppliersClient {
|
|
3183
3183
|
listSupplierInvites(): Promise<SupplierInviteDto[]>;
|
|
3184
3184
|
createSupplierInvite(request: CreateSupplierInvite): Promise<SupplierInviteDto>;
|
|
3185
|
+
deleteSupplierInvite(id: string): Promise<void>;
|
|
3185
3186
|
listSuppliers(): Promise<ExternalSupplierDto[]>;
|
|
3186
3187
|
deleteSupplier(id: string): Promise<void>;
|
|
3187
3188
|
/**
|
|
@@ -3192,6 +3193,7 @@ export interface ISuppliersClient {
|
|
|
3192
3193
|
* Delete all supplier mappings between old supplier ids and new supplier ids.
|
|
3193
3194
|
*/
|
|
3194
3195
|
deleteSupplierMappings(): Promise<void>;
|
|
3196
|
+
getSupplierCompany(id: string): Promise<CompanyDto>;
|
|
3195
3197
|
}
|
|
3196
3198
|
export declare class SuppliersClient extends AuthorizedApiBase implements ISuppliersClient {
|
|
3197
3199
|
private http;
|
|
@@ -3204,6 +3206,8 @@ export declare class SuppliersClient extends AuthorizedApiBase implements ISuppl
|
|
|
3204
3206
|
protected processListSupplierInvites(response: Response): Promise<SupplierInviteDto[]>;
|
|
3205
3207
|
createSupplierInvite(request: CreateSupplierInvite): Promise<SupplierInviteDto>;
|
|
3206
3208
|
protected processCreateSupplierInvite(response: Response): Promise<SupplierInviteDto>;
|
|
3209
|
+
deleteSupplierInvite(id: string): Promise<void>;
|
|
3210
|
+
protected processDeleteSupplierInvite(response: Response): Promise<void>;
|
|
3207
3211
|
listSuppliers(): Promise<ExternalSupplierDto[]>;
|
|
3208
3212
|
protected processListSuppliers(response: Response): Promise<ExternalSupplierDto[]>;
|
|
3209
3213
|
deleteSupplier(id: string): Promise<void>;
|
|
@@ -3218,6 +3222,8 @@ export declare class SuppliersClient extends AuthorizedApiBase implements ISuppl
|
|
|
3218
3222
|
*/
|
|
3219
3223
|
deleteSupplierMappings(): Promise<void>;
|
|
3220
3224
|
protected processDeleteSupplierMappings(response: Response): Promise<void>;
|
|
3225
|
+
getSupplierCompany(id: string): Promise<CompanyDto>;
|
|
3226
|
+
protected processGetSupplierCompany(response: Response): Promise<CompanyDto>;
|
|
3221
3227
|
}
|
|
3222
3228
|
export declare class AzureRegionDto implements IAzureRegionDto {
|
|
3223
3229
|
displayName: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -26385,6 +26385,41 @@ export class SuppliersClient extends AuthorizedApiBase {
|
|
|
26385
26385
|
}
|
|
26386
26386
|
return Promise.resolve(null);
|
|
26387
26387
|
}
|
|
26388
|
+
deleteSupplierInvite(id) {
|
|
26389
|
+
let url_ = this.baseUrl + "/suppliers/supplierinvites/{id}";
|
|
26390
|
+
if (id === undefined || id === null)
|
|
26391
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26392
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26393
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
26394
|
+
let options_ = {
|
|
26395
|
+
method: "DELETE",
|
|
26396
|
+
headers: {}
|
|
26397
|
+
};
|
|
26398
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26399
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
26400
|
+
}).then((_response) => {
|
|
26401
|
+
return this.processDeleteSupplierInvite(_response);
|
|
26402
|
+
});
|
|
26403
|
+
}
|
|
26404
|
+
processDeleteSupplierInvite(response) {
|
|
26405
|
+
const status = response.status;
|
|
26406
|
+
let _headers = {};
|
|
26407
|
+
if (response.headers && response.headers.forEach) {
|
|
26408
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
26409
|
+
}
|
|
26410
|
+
;
|
|
26411
|
+
if (status === 204) {
|
|
26412
|
+
return response.text().then((_responseText) => {
|
|
26413
|
+
return;
|
|
26414
|
+
});
|
|
26415
|
+
}
|
|
26416
|
+
else if (status !== 200 && status !== 204) {
|
|
26417
|
+
return response.text().then((_responseText) => {
|
|
26418
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26419
|
+
});
|
|
26420
|
+
}
|
|
26421
|
+
return Promise.resolve(null);
|
|
26422
|
+
}
|
|
26388
26423
|
listSuppliers() {
|
|
26389
26424
|
let url_ = this.baseUrl + "/suppliers";
|
|
26390
26425
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -26535,6 +26570,46 @@ export class SuppliersClient extends AuthorizedApiBase {
|
|
|
26535
26570
|
}
|
|
26536
26571
|
return Promise.resolve(null);
|
|
26537
26572
|
}
|
|
26573
|
+
getSupplierCompany(id) {
|
|
26574
|
+
let url_ = this.baseUrl + "/suppliers/suppliercompany/{id}";
|
|
26575
|
+
if (id === undefined || id === null)
|
|
26576
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26577
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26578
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
26579
|
+
let options_ = {
|
|
26580
|
+
method: "GET",
|
|
26581
|
+
headers: {
|
|
26582
|
+
"Accept": "application/json"
|
|
26583
|
+
}
|
|
26584
|
+
};
|
|
26585
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26586
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
26587
|
+
}).then((_response) => {
|
|
26588
|
+
return this.processGetSupplierCompany(_response);
|
|
26589
|
+
});
|
|
26590
|
+
}
|
|
26591
|
+
processGetSupplierCompany(response) {
|
|
26592
|
+
const status = response.status;
|
|
26593
|
+
let _headers = {};
|
|
26594
|
+
if (response.headers && response.headers.forEach) {
|
|
26595
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
26596
|
+
}
|
|
26597
|
+
;
|
|
26598
|
+
if (status === 200) {
|
|
26599
|
+
return response.text().then((_responseText) => {
|
|
26600
|
+
let result200 = null;
|
|
26601
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26602
|
+
result200 = CompanyDto.fromJS(resultData200);
|
|
26603
|
+
return result200;
|
|
26604
|
+
});
|
|
26605
|
+
}
|
|
26606
|
+
else if (status !== 200 && status !== 204) {
|
|
26607
|
+
return response.text().then((_responseText) => {
|
|
26608
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26609
|
+
});
|
|
26610
|
+
}
|
|
26611
|
+
return Promise.resolve(null);
|
|
26612
|
+
}
|
|
26538
26613
|
}
|
|
26539
26614
|
export class AzureRegionDto {
|
|
26540
26615
|
constructor(data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -28061,6 +28061,8 @@ export interface ISuppliersClient {
|
|
|
28061
28061
|
|
|
28062
28062
|
createSupplierInvite(request: CreateSupplierInvite): Promise<SupplierInviteDto>;
|
|
28063
28063
|
|
|
28064
|
+
deleteSupplierInvite(id: string): Promise<void>;
|
|
28065
|
+
|
|
28064
28066
|
listSuppliers(): Promise<ExternalSupplierDto[]>;
|
|
28065
28067
|
|
|
28066
28068
|
deleteSupplier(id: string): Promise<void>;
|
|
@@ -28074,6 +28076,8 @@ export interface ISuppliersClient {
|
|
|
28074
28076
|
* Delete all supplier mappings between old supplier ids and new supplier ids.
|
|
28075
28077
|
*/
|
|
28076
28078
|
deleteSupplierMappings(): Promise<void>;
|
|
28079
|
+
|
|
28080
|
+
getSupplierCompany(id: string): Promise<CompanyDto>;
|
|
28077
28081
|
}
|
|
28078
28082
|
|
|
28079
28083
|
export class SuppliersClient extends AuthorizedApiBase implements ISuppliersClient {
|
|
@@ -28167,6 +28171,41 @@ export class SuppliersClient extends AuthorizedApiBase implements ISuppliersClie
|
|
|
28167
28171
|
return Promise.resolve<SupplierInviteDto>(null as any);
|
|
28168
28172
|
}
|
|
28169
28173
|
|
|
28174
|
+
deleteSupplierInvite(id: string): Promise<void> {
|
|
28175
|
+
let url_ = this.baseUrl + "/suppliers/supplierinvites/{id}";
|
|
28176
|
+
if (id === undefined || id === null)
|
|
28177
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
28178
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
28179
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
28180
|
+
|
|
28181
|
+
let options_: RequestInit = {
|
|
28182
|
+
method: "DELETE",
|
|
28183
|
+
headers: {
|
|
28184
|
+
}
|
|
28185
|
+
};
|
|
28186
|
+
|
|
28187
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28188
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
28189
|
+
}).then((_response: Response) => {
|
|
28190
|
+
return this.processDeleteSupplierInvite(_response);
|
|
28191
|
+
});
|
|
28192
|
+
}
|
|
28193
|
+
|
|
28194
|
+
protected processDeleteSupplierInvite(response: Response): Promise<void> {
|
|
28195
|
+
const status = response.status;
|
|
28196
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
28197
|
+
if (status === 204) {
|
|
28198
|
+
return response.text().then((_responseText) => {
|
|
28199
|
+
return;
|
|
28200
|
+
});
|
|
28201
|
+
} else if (status !== 200 && status !== 204) {
|
|
28202
|
+
return response.text().then((_responseText) => {
|
|
28203
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28204
|
+
});
|
|
28205
|
+
}
|
|
28206
|
+
return Promise.resolve<void>(null as any);
|
|
28207
|
+
}
|
|
28208
|
+
|
|
28170
28209
|
listSuppliers(): Promise<ExternalSupplierDto[]> {
|
|
28171
28210
|
let url_ = this.baseUrl + "/suppliers";
|
|
28172
28211
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -28315,6 +28354,45 @@ export class SuppliersClient extends AuthorizedApiBase implements ISuppliersClie
|
|
|
28315
28354
|
}
|
|
28316
28355
|
return Promise.resolve<void>(null as any);
|
|
28317
28356
|
}
|
|
28357
|
+
|
|
28358
|
+
getSupplierCompany(id: string): Promise<CompanyDto> {
|
|
28359
|
+
let url_ = this.baseUrl + "/suppliers/suppliercompany/{id}";
|
|
28360
|
+
if (id === undefined || id === null)
|
|
28361
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
28362
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
28363
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
28364
|
+
|
|
28365
|
+
let options_: RequestInit = {
|
|
28366
|
+
method: "GET",
|
|
28367
|
+
headers: {
|
|
28368
|
+
"Accept": "application/json"
|
|
28369
|
+
}
|
|
28370
|
+
};
|
|
28371
|
+
|
|
28372
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28373
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
28374
|
+
}).then((_response: Response) => {
|
|
28375
|
+
return this.processGetSupplierCompany(_response);
|
|
28376
|
+
});
|
|
28377
|
+
}
|
|
28378
|
+
|
|
28379
|
+
protected processGetSupplierCompany(response: Response): Promise<CompanyDto> {
|
|
28380
|
+
const status = response.status;
|
|
28381
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
28382
|
+
if (status === 200) {
|
|
28383
|
+
return response.text().then((_responseText) => {
|
|
28384
|
+
let result200: any = null;
|
|
28385
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
28386
|
+
result200 = CompanyDto.fromJS(resultData200);
|
|
28387
|
+
return result200;
|
|
28388
|
+
});
|
|
28389
|
+
} else if (status !== 200 && status !== 204) {
|
|
28390
|
+
return response.text().then((_responseText) => {
|
|
28391
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28392
|
+
});
|
|
28393
|
+
}
|
|
28394
|
+
return Promise.resolve<CompanyDto>(null as any);
|
|
28395
|
+
}
|
|
28318
28396
|
}
|
|
28319
28397
|
|
|
28320
28398
|
export class AzureRegionDto implements IAzureRegionDto {
|