@ignos/api-client 20260129.0.13920-alpha → 20260130.0.13925-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 +40 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +41 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3162,6 +3162,7 @@ export declare class ExternalAccessClient extends AuthorizedApiBase implements I
|
|
|
3162
3162
|
}
|
|
3163
3163
|
export interface IExternalClient {
|
|
3164
3164
|
listCompanies(): Promise<CompanyDto[]>;
|
|
3165
|
+
getCompany(id: string): Promise<CompanyDto>;
|
|
3165
3166
|
getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
|
|
3166
3167
|
acceptSupplierInvite(request: AcceptSupplierInvite): Promise<SupplierInviteDto>;
|
|
3167
3168
|
}
|
|
@@ -3174,6 +3175,8 @@ export declare class ExternalClient extends AuthorizedApiBase implements IExtern
|
|
|
3174
3175
|
});
|
|
3175
3176
|
listCompanies(): Promise<CompanyDto[]>;
|
|
3176
3177
|
protected processListCompanies(response: Response): Promise<CompanyDto[]>;
|
|
3178
|
+
getCompany(id: string): Promise<CompanyDto>;
|
|
3179
|
+
protected processGetCompany(response: Response): Promise<CompanyDto>;
|
|
3177
3180
|
getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
|
|
3178
3181
|
protected processGetCurrentSupplierInvite(response: Response): Promise<SupplierInviteDto>;
|
|
3179
3182
|
acceptSupplierInvite(request: AcceptSupplierInvite): Promise<SupplierInviteDto>;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -26219,6 +26219,46 @@ export class ExternalClient extends AuthorizedApiBase {
|
|
|
26219
26219
|
}
|
|
26220
26220
|
return Promise.resolve(null);
|
|
26221
26221
|
}
|
|
26222
|
+
getCompany(id) {
|
|
26223
|
+
let url_ = this.baseUrl + "/external/company/{id}";
|
|
26224
|
+
if (id === undefined || id === null)
|
|
26225
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26226
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26227
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
26228
|
+
let options_ = {
|
|
26229
|
+
method: "GET",
|
|
26230
|
+
headers: {
|
|
26231
|
+
"Accept": "application/json"
|
|
26232
|
+
}
|
|
26233
|
+
};
|
|
26234
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
26235
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
26236
|
+
}).then((_response) => {
|
|
26237
|
+
return this.processGetCompany(_response);
|
|
26238
|
+
});
|
|
26239
|
+
}
|
|
26240
|
+
processGetCompany(response) {
|
|
26241
|
+
const status = response.status;
|
|
26242
|
+
let _headers = {};
|
|
26243
|
+
if (response.headers && response.headers.forEach) {
|
|
26244
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
26245
|
+
}
|
|
26246
|
+
;
|
|
26247
|
+
if (status === 200) {
|
|
26248
|
+
return response.text().then((_responseText) => {
|
|
26249
|
+
let result200 = null;
|
|
26250
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
26251
|
+
result200 = CompanyDto.fromJS(resultData200);
|
|
26252
|
+
return result200;
|
|
26253
|
+
});
|
|
26254
|
+
}
|
|
26255
|
+
else if (status !== 200 && status !== 204) {
|
|
26256
|
+
return response.text().then((_responseText) => {
|
|
26257
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
26258
|
+
});
|
|
26259
|
+
}
|
|
26260
|
+
return Promise.resolve(null);
|
|
26261
|
+
}
|
|
26222
26262
|
getCurrentSupplierInvite() {
|
|
26223
26263
|
let url_ = this.baseUrl + "/external/invite";
|
|
26224
26264
|
url_ = url_.replace(/[?&]$/, "");
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -27922,6 +27922,8 @@ export interface IExternalClient {
|
|
|
27922
27922
|
|
|
27923
27923
|
listCompanies(): Promise<CompanyDto[]>;
|
|
27924
27924
|
|
|
27925
|
+
getCompany(id: string): Promise<CompanyDto>;
|
|
27926
|
+
|
|
27925
27927
|
getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
|
|
27926
27928
|
|
|
27927
27929
|
acceptSupplierInvite(request: AcceptSupplierInvite): Promise<SupplierInviteDto>;
|
|
@@ -27978,6 +27980,45 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
|
|
|
27978
27980
|
return Promise.resolve<CompanyDto[]>(null as any);
|
|
27979
27981
|
}
|
|
27980
27982
|
|
|
27983
|
+
getCompany(id: string): Promise<CompanyDto> {
|
|
27984
|
+
let url_ = this.baseUrl + "/external/company/{id}";
|
|
27985
|
+
if (id === undefined || id === null)
|
|
27986
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27987
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27988
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27989
|
+
|
|
27990
|
+
let options_: RequestInit = {
|
|
27991
|
+
method: "GET",
|
|
27992
|
+
headers: {
|
|
27993
|
+
"Accept": "application/json"
|
|
27994
|
+
}
|
|
27995
|
+
};
|
|
27996
|
+
|
|
27997
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27998
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27999
|
+
}).then((_response: Response) => {
|
|
28000
|
+
return this.processGetCompany(_response);
|
|
28001
|
+
});
|
|
28002
|
+
}
|
|
28003
|
+
|
|
28004
|
+
protected processGetCompany(response: Response): Promise<CompanyDto> {
|
|
28005
|
+
const status = response.status;
|
|
28006
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
28007
|
+
if (status === 200) {
|
|
28008
|
+
return response.text().then((_responseText) => {
|
|
28009
|
+
let result200: any = null;
|
|
28010
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
28011
|
+
result200 = CompanyDto.fromJS(resultData200);
|
|
28012
|
+
return result200;
|
|
28013
|
+
});
|
|
28014
|
+
} else if (status !== 200 && status !== 204) {
|
|
28015
|
+
return response.text().then((_responseText) => {
|
|
28016
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28017
|
+
});
|
|
28018
|
+
}
|
|
28019
|
+
return Promise.resolve<CompanyDto>(null as any);
|
|
28020
|
+
}
|
|
28021
|
+
|
|
27981
28022
|
getCurrentSupplierInvite(): Promise<SupplierInviteDto> {
|
|
27982
28023
|
let url_ = this.baseUrl + "/external/invite";
|
|
27983
28024
|
url_ = url_.replace(/[?&]$/, "");
|