@ignos/api-client 20260129.0.13916-alpha → 20260129.0.13918-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 +3 -0
- package/lib/ignosportal-api.js +35 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +37 -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
|
/**
|
|
@@ -3204,6 +3205,8 @@ export declare class SuppliersClient extends AuthorizedApiBase implements ISuppl
|
|
|
3204
3205
|
protected processListSupplierInvites(response: Response): Promise<SupplierInviteDto[]>;
|
|
3205
3206
|
createSupplierInvite(request: CreateSupplierInvite): Promise<SupplierInviteDto>;
|
|
3206
3207
|
protected processCreateSupplierInvite(response: Response): Promise<SupplierInviteDto>;
|
|
3208
|
+
deleteSupplierInvite(id: string): Promise<void>;
|
|
3209
|
+
protected processDeleteSupplierInvite(response: Response): Promise<void>;
|
|
3207
3210
|
listSuppliers(): Promise<ExternalSupplierDto[]>;
|
|
3208
3211
|
protected processListSuppliers(response: Response): Promise<ExternalSupplierDto[]>;
|
|
3209
3212
|
deleteSupplier(id: string): Promise<void>;
|
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(/[?&]$/, "");
|
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>;
|
|
@@ -28167,6 +28169,41 @@ export class SuppliersClient extends AuthorizedApiBase implements ISuppliersClie
|
|
|
28167
28169
|
return Promise.resolve<SupplierInviteDto>(null as any);
|
|
28168
28170
|
}
|
|
28169
28171
|
|
|
28172
|
+
deleteSupplierInvite(id: string): Promise<void> {
|
|
28173
|
+
let url_ = this.baseUrl + "/suppliers/supplierinvites/{id}";
|
|
28174
|
+
if (id === undefined || id === null)
|
|
28175
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
28176
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
28177
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
28178
|
+
|
|
28179
|
+
let options_: RequestInit = {
|
|
28180
|
+
method: "DELETE",
|
|
28181
|
+
headers: {
|
|
28182
|
+
}
|
|
28183
|
+
};
|
|
28184
|
+
|
|
28185
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28186
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
28187
|
+
}).then((_response: Response) => {
|
|
28188
|
+
return this.processDeleteSupplierInvite(_response);
|
|
28189
|
+
});
|
|
28190
|
+
}
|
|
28191
|
+
|
|
28192
|
+
protected processDeleteSupplierInvite(response: Response): Promise<void> {
|
|
28193
|
+
const status = response.status;
|
|
28194
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
28195
|
+
if (status === 204) {
|
|
28196
|
+
return response.text().then((_responseText) => {
|
|
28197
|
+
return;
|
|
28198
|
+
});
|
|
28199
|
+
} else if (status !== 200 && status !== 204) {
|
|
28200
|
+
return response.text().then((_responseText) => {
|
|
28201
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28202
|
+
});
|
|
28203
|
+
}
|
|
28204
|
+
return Promise.resolve<void>(null as any);
|
|
28205
|
+
}
|
|
28206
|
+
|
|
28170
28207
|
listSuppliers(): Promise<ExternalSupplierDto[]> {
|
|
28171
28208
|
let url_ = this.baseUrl + "/suppliers";
|
|
28172
28209
|
url_ = url_.replace(/[?&]$/, "");
|