@ignos/api-client 20260416.108.1-alpha → 20260416.109.1-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 +11 -6
- package/lib/ignosportal-api.js +43 -4
- package/package.json +1 -1
- package/src/ignosportal-api.ts +52 -8
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3349,7 +3349,8 @@ export interface IExternalClient {
|
|
|
3349
3349
|
listCompanies(): Promise<CompanyDto[]>;
|
|
3350
3350
|
getCompany(id: string): Promise<CompanyDto>;
|
|
3351
3351
|
getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
|
|
3352
|
-
|
|
3352
|
+
acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
|
|
3353
|
+
acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
|
|
3353
3354
|
}
|
|
3354
3355
|
export declare class ExternalClient extends AuthorizedApiBase implements IExternalClient {
|
|
3355
3356
|
private http;
|
|
@@ -3363,8 +3364,10 @@ export declare class ExternalClient extends AuthorizedApiBase implements IExtern
|
|
|
3363
3364
|
protected processGetCompany(response: Response): Promise<CompanyDto>;
|
|
3364
3365
|
getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
|
|
3365
3366
|
protected processGetCurrentSupplierInvite(response: Response): Promise<SupplierInviteDto>;
|
|
3366
|
-
|
|
3367
|
-
protected
|
|
3367
|
+
acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
|
|
3368
|
+
protected processAcceptSupplierInviteNewCompany(response: Response): Promise<SupplierInviteDto>;
|
|
3369
|
+
acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
|
|
3370
|
+
protected processAcceptSupplierInviteExistingCompany(response: Response): Promise<SupplierInviteDto>;
|
|
3368
3371
|
}
|
|
3369
3372
|
export interface ISuppliersClient {
|
|
3370
3373
|
listSupplierInvites(): Promise<SupplierInviteDto[]>;
|
|
@@ -9383,12 +9386,14 @@ export interface SupplierInviteDto {
|
|
|
9383
9386
|
createdTime: Date;
|
|
9384
9387
|
createdBy: string;
|
|
9385
9388
|
}
|
|
9386
|
-
export interface
|
|
9387
|
-
companyName?: string
|
|
9388
|
-
companyId?: string | null;
|
|
9389
|
+
export interface AcceptSupplierInviteNewCompany {
|
|
9390
|
+
companyName?: string;
|
|
9389
9391
|
organizationNumber?: string;
|
|
9390
9392
|
threeLetterIsoCountry?: string;
|
|
9391
9393
|
}
|
|
9394
|
+
export interface AcceptSupplierInviteExistingCompany {
|
|
9395
|
+
companyId?: string;
|
|
9396
|
+
}
|
|
9392
9397
|
export interface CreateSupplierInvite {
|
|
9393
9398
|
supplierId: string;
|
|
9394
9399
|
supplierName?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -27382,8 +27382,47 @@ export class ExternalClient extends AuthorizedApiBase {
|
|
|
27382
27382
|
}
|
|
27383
27383
|
return Promise.resolve(null);
|
|
27384
27384
|
}
|
|
27385
|
-
|
|
27386
|
-
let url_ = this.baseUrl + "/external/invite";
|
|
27385
|
+
acceptSupplierInviteNewCompany(request) {
|
|
27386
|
+
let url_ = this.baseUrl + "/external/invite/new";
|
|
27387
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
27388
|
+
const content_ = JSON.stringify(request);
|
|
27389
|
+
let options_ = {
|
|
27390
|
+
body: content_,
|
|
27391
|
+
method: "POST",
|
|
27392
|
+
headers: {
|
|
27393
|
+
"Content-Type": "application/json",
|
|
27394
|
+
"Accept": "application/json"
|
|
27395
|
+
}
|
|
27396
|
+
};
|
|
27397
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27398
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
27399
|
+
}).then((_response) => {
|
|
27400
|
+
return this.processAcceptSupplierInviteNewCompany(_response);
|
|
27401
|
+
});
|
|
27402
|
+
}
|
|
27403
|
+
processAcceptSupplierInviteNewCompany(response) {
|
|
27404
|
+
const status = response.status;
|
|
27405
|
+
let _headers = {};
|
|
27406
|
+
if (response.headers && response.headers.forEach) {
|
|
27407
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
27408
|
+
}
|
|
27409
|
+
;
|
|
27410
|
+
if (status === 200) {
|
|
27411
|
+
return response.text().then((_responseText) => {
|
|
27412
|
+
let result200 = null;
|
|
27413
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
27414
|
+
return result200;
|
|
27415
|
+
});
|
|
27416
|
+
}
|
|
27417
|
+
else if (status !== 200 && status !== 204) {
|
|
27418
|
+
return response.text().then((_responseText) => {
|
|
27419
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
27420
|
+
});
|
|
27421
|
+
}
|
|
27422
|
+
return Promise.resolve(null);
|
|
27423
|
+
}
|
|
27424
|
+
acceptSupplierInviteExistingCompany(request) {
|
|
27425
|
+
let url_ = this.baseUrl + "/external/invite/existing";
|
|
27387
27426
|
url_ = url_.replace(/[?&]$/, "");
|
|
27388
27427
|
const content_ = JSON.stringify(request);
|
|
27389
27428
|
let options_ = {
|
|
@@ -27397,10 +27436,10 @@ export class ExternalClient extends AuthorizedApiBase {
|
|
|
27397
27436
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
27398
27437
|
return this.http.fetch(url_, transformedOptions_);
|
|
27399
27438
|
}).then((_response) => {
|
|
27400
|
-
return this.
|
|
27439
|
+
return this.processAcceptSupplierInviteExistingCompany(_response);
|
|
27401
27440
|
});
|
|
27402
27441
|
}
|
|
27403
|
-
|
|
27442
|
+
processAcceptSupplierInviteExistingCompany(response) {
|
|
27404
27443
|
const status = response.status;
|
|
27405
27444
|
let _headers = {};
|
|
27406
27445
|
if (response.headers && response.headers.forEach) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -29175,7 +29175,9 @@ export interface IExternalClient {
|
|
|
29175
29175
|
|
|
29176
29176
|
getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
|
|
29177
29177
|
|
|
29178
|
-
|
|
29178
|
+
acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
|
|
29179
|
+
|
|
29180
|
+
acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
|
|
29179
29181
|
}
|
|
29180
29182
|
|
|
29181
29183
|
export class ExternalClient extends AuthorizedApiBase implements IExternalClient {
|
|
@@ -29296,8 +29298,8 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
|
|
|
29296
29298
|
return Promise.resolve<SupplierInviteDto>(null as any);
|
|
29297
29299
|
}
|
|
29298
29300
|
|
|
29299
|
-
|
|
29300
|
-
let url_ = this.baseUrl + "/external/invite";
|
|
29301
|
+
acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto> {
|
|
29302
|
+
let url_ = this.baseUrl + "/external/invite/new";
|
|
29301
29303
|
url_ = url_.replace(/[?&]$/, "");
|
|
29302
29304
|
|
|
29303
29305
|
const content_ = JSON.stringify(request);
|
|
@@ -29314,11 +29316,50 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
|
|
|
29314
29316
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29315
29317
|
return this.http.fetch(url_, transformedOptions_);
|
|
29316
29318
|
}).then((_response: Response) => {
|
|
29317
|
-
return this.
|
|
29319
|
+
return this.processAcceptSupplierInviteNewCompany(_response);
|
|
29318
29320
|
});
|
|
29319
29321
|
}
|
|
29320
29322
|
|
|
29321
|
-
protected
|
|
29323
|
+
protected processAcceptSupplierInviteNewCompany(response: Response): Promise<SupplierInviteDto> {
|
|
29324
|
+
const status = response.status;
|
|
29325
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29326
|
+
if (status === 200) {
|
|
29327
|
+
return response.text().then((_responseText) => {
|
|
29328
|
+
let result200: any = null;
|
|
29329
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SupplierInviteDto;
|
|
29330
|
+
return result200;
|
|
29331
|
+
});
|
|
29332
|
+
} else if (status !== 200 && status !== 204) {
|
|
29333
|
+
return response.text().then((_responseText) => {
|
|
29334
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
29335
|
+
});
|
|
29336
|
+
}
|
|
29337
|
+
return Promise.resolve<SupplierInviteDto>(null as any);
|
|
29338
|
+
}
|
|
29339
|
+
|
|
29340
|
+
acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto> {
|
|
29341
|
+
let url_ = this.baseUrl + "/external/invite/existing";
|
|
29342
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
29343
|
+
|
|
29344
|
+
const content_ = JSON.stringify(request);
|
|
29345
|
+
|
|
29346
|
+
let options_: RequestInit = {
|
|
29347
|
+
body: content_,
|
|
29348
|
+
method: "POST",
|
|
29349
|
+
headers: {
|
|
29350
|
+
"Content-Type": "application/json",
|
|
29351
|
+
"Accept": "application/json"
|
|
29352
|
+
}
|
|
29353
|
+
};
|
|
29354
|
+
|
|
29355
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
29356
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
29357
|
+
}).then((_response: Response) => {
|
|
29358
|
+
return this.processAcceptSupplierInviteExistingCompany(_response);
|
|
29359
|
+
});
|
|
29360
|
+
}
|
|
29361
|
+
|
|
29362
|
+
protected processAcceptSupplierInviteExistingCompany(response: Response): Promise<SupplierInviteDto> {
|
|
29322
29363
|
const status = response.status;
|
|
29323
29364
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
29324
29365
|
if (status === 200) {
|
|
@@ -36429,13 +36470,16 @@ export interface SupplierInviteDto {
|
|
|
36429
36470
|
createdBy: string;
|
|
36430
36471
|
}
|
|
36431
36472
|
|
|
36432
|
-
export interface
|
|
36433
|
-
companyName?: string
|
|
36434
|
-
companyId?: string | null;
|
|
36473
|
+
export interface AcceptSupplierInviteNewCompany {
|
|
36474
|
+
companyName?: string;
|
|
36435
36475
|
organizationNumber?: string;
|
|
36436
36476
|
threeLetterIsoCountry?: string;
|
|
36437
36477
|
}
|
|
36438
36478
|
|
|
36479
|
+
export interface AcceptSupplierInviteExistingCompany {
|
|
36480
|
+
companyId?: string;
|
|
36481
|
+
}
|
|
36482
|
+
|
|
36439
36483
|
export interface CreateSupplierInvite {
|
|
36440
36484
|
supplierId: string;
|
|
36441
36485
|
supplierName?: string | null;
|