@ignos/api-client 20260706.170.1-alpha → 20260706.172.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.
@@ -3466,9 +3466,7 @@ export interface IExternalClient {
3466
3466
  listCompanies(): Promise<CompanyDto[]>;
3467
3467
  getCompany(id: string): Promise<CompanyDto>;
3468
3468
  getCurrentSupplierInvite(): Promise<CurrentSupplierInviteDto>;
3469
- acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
3470
- acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
3471
- acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
3469
+ acceptSupplierInvite(): Promise<SupplierInviteDto>;
3472
3470
  listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]>;
3473
3471
  }
3474
3472
  export declare class ExternalClient extends AuthorizedApiBase implements IExternalClient {
@@ -3483,12 +3481,8 @@ export declare class ExternalClient extends AuthorizedApiBase implements IExtern
3483
3481
  protected processGetCompany(response: Response): Promise<CompanyDto>;
3484
3482
  getCurrentSupplierInvite(): Promise<CurrentSupplierInviteDto>;
3485
3483
  protected processGetCurrentSupplierInvite(response: Response): Promise<CurrentSupplierInviteDto>;
3486
- acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
3487
- protected processAcceptSupplierInviteNewCompany(response: Response): Promise<SupplierInviteDto>;
3488
- acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
3489
- protected processAcceptSupplierInviteExistingCompany(response: Response): Promise<SupplierInviteDto>;
3490
- acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
3491
- protected processAcceptSupplierInviteCustomer(response: Response): Promise<SupplierInviteDto>;
3484
+ acceptSupplierInvite(): Promise<SupplierInviteDto>;
3485
+ protected processAcceptSupplierInvite(response: Response): Promise<SupplierInviteDto>;
3492
3486
  listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]>;
3493
3487
  protected processListTenantsWithSuppliers(response: Response): Promise<TenantWithSupplierDto[]>;
3494
3488
  }
@@ -9800,18 +9794,6 @@ export interface ContactPersonDto {
9800
9794
  phone: string;
9801
9795
  email: string;
9802
9796
  }
9803
- export interface AcceptSupplierInviteNewCompany {
9804
- companyName?: string;
9805
- organizationNumber?: string;
9806
- threeLetterIsoCountry?: string;
9807
- }
9808
- export interface AcceptSupplierInviteExistingCompany {
9809
- companyId?: string;
9810
- }
9811
- export interface AcceptSupplierInviteCustomer {
9812
- tenantId?: string;
9813
- organizationNumber?: string;
9814
- }
9815
9797
  export interface TenantWithSupplierDto {
9816
9798
  tenantId: string;
9817
9799
  customerName: string;
@@ -28543,103 +28543,22 @@ export class ExternalClient extends AuthorizedApiBase {
28543
28543
  }
28544
28544
  return Promise.resolve(null);
28545
28545
  }
28546
- acceptSupplierInviteNewCompany(request) {
28547
- let url_ = this.baseUrl + "/external/invite/new";
28546
+ acceptSupplierInvite() {
28547
+ let url_ = this.baseUrl + "/external/invite/accept";
28548
28548
  url_ = url_.replace(/[?&]$/, "");
28549
- const content_ = JSON.stringify(request);
28550
28549
  let options_ = {
28551
- body: content_,
28552
- method: "POST",
28553
- headers: {
28554
- "Content-Type": "application/json",
28555
- "Accept": "application/json"
28556
- }
28557
- };
28558
- return this.transformOptions(options_).then(transformedOptions_ => {
28559
- return this.http.fetch(url_, transformedOptions_);
28560
- }).then((_response) => {
28561
- return this.processAcceptSupplierInviteNewCompany(_response);
28562
- });
28563
- }
28564
- processAcceptSupplierInviteNewCompany(response) {
28565
- const status = response.status;
28566
- let _headers = {};
28567
- if (response.headers && response.headers.forEach) {
28568
- response.headers.forEach((v, k) => _headers[k] = v);
28569
- }
28570
- ;
28571
- if (status === 200) {
28572
- return response.text().then((_responseText) => {
28573
- let result200 = null;
28574
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
28575
- return result200;
28576
- });
28577
- }
28578
- else if (status !== 200 && status !== 204) {
28579
- return response.text().then((_responseText) => {
28580
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
28581
- });
28582
- }
28583
- return Promise.resolve(null);
28584
- }
28585
- acceptSupplierInviteExistingCompany(request) {
28586
- let url_ = this.baseUrl + "/external/invite/existing";
28587
- url_ = url_.replace(/[?&]$/, "");
28588
- const content_ = JSON.stringify(request);
28589
- let options_ = {
28590
- body: content_,
28591
28550
  method: "POST",
28592
28551
  headers: {
28593
- "Content-Type": "application/json",
28594
- "Accept": "application/json"
28595
- }
28596
- };
28597
- return this.transformOptions(options_).then(transformedOptions_ => {
28598
- return this.http.fetch(url_, transformedOptions_);
28599
- }).then((_response) => {
28600
- return this.processAcceptSupplierInviteExistingCompany(_response);
28601
- });
28602
- }
28603
- processAcceptSupplierInviteExistingCompany(response) {
28604
- const status = response.status;
28605
- let _headers = {};
28606
- if (response.headers && response.headers.forEach) {
28607
- response.headers.forEach((v, k) => _headers[k] = v);
28608
- }
28609
- ;
28610
- if (status === 200) {
28611
- return response.text().then((_responseText) => {
28612
- let result200 = null;
28613
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
28614
- return result200;
28615
- });
28616
- }
28617
- else if (status !== 200 && status !== 204) {
28618
- return response.text().then((_responseText) => {
28619
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
28620
- });
28621
- }
28622
- return Promise.resolve(null);
28623
- }
28624
- acceptSupplierInviteCustomer(request) {
28625
- let url_ = this.baseUrl + "/external/invite/customer";
28626
- url_ = url_.replace(/[?&]$/, "");
28627
- const content_ = JSON.stringify(request);
28628
- let options_ = {
28629
- body: content_,
28630
- method: "POST",
28631
- headers: {
28632
- "Content-Type": "application/json",
28633
28552
  "Accept": "application/json"
28634
28553
  }
28635
28554
  };
28636
28555
  return this.transformOptions(options_).then(transformedOptions_ => {
28637
28556
  return this.http.fetch(url_, transformedOptions_);
28638
28557
  }).then((_response) => {
28639
- return this.processAcceptSupplierInviteCustomer(_response);
28558
+ return this.processAcceptSupplierInvite(_response);
28640
28559
  });
28641
28560
  }
28642
- processAcceptSupplierInviteCustomer(response) {
28561
+ processAcceptSupplierInvite(response) {
28643
28562
  const status = response.status;
28644
28563
  let _headers = {};
28645
28564
  if (response.headers && response.headers.forEach) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260706.170.1-alpha",
3
+ "version": "20260706.172.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -30406,11 +30406,7 @@ export interface IExternalClient {
30406
30406
 
30407
30407
  getCurrentSupplierInvite(): Promise<CurrentSupplierInviteDto>;
30408
30408
 
30409
- acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
30410
-
30411
- acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
30412
-
30413
- acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
30409
+ acceptSupplierInvite(): Promise<SupplierInviteDto>;
30414
30410
 
30415
30411
  listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]>;
30416
30412
  }
@@ -30533,56 +30529,13 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
30533
30529
  return Promise.resolve<CurrentSupplierInviteDto>(null as any);
30534
30530
  }
30535
30531
 
30536
- acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto> {
30537
- let url_ = this.baseUrl + "/external/invite/new";
30538
- url_ = url_.replace(/[?&]$/, "");
30539
-
30540
- const content_ = JSON.stringify(request);
30541
-
30542
- let options_: RequestInit = {
30543
- body: content_,
30544
- method: "POST",
30545
- headers: {
30546
- "Content-Type": "application/json",
30547
- "Accept": "application/json"
30548
- }
30549
- };
30550
-
30551
- return this.transformOptions(options_).then(transformedOptions_ => {
30552
- return this.http.fetch(url_, transformedOptions_);
30553
- }).then((_response: Response) => {
30554
- return this.processAcceptSupplierInviteNewCompany(_response);
30555
- });
30556
- }
30557
-
30558
- protected processAcceptSupplierInviteNewCompany(response: Response): Promise<SupplierInviteDto> {
30559
- const status = response.status;
30560
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
30561
- if (status === 200) {
30562
- return response.text().then((_responseText) => {
30563
- let result200: any = null;
30564
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SupplierInviteDto;
30565
- return result200;
30566
- });
30567
- } else if (status !== 200 && status !== 204) {
30568
- return response.text().then((_responseText) => {
30569
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
30570
- });
30571
- }
30572
- return Promise.resolve<SupplierInviteDto>(null as any);
30573
- }
30574
-
30575
- acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto> {
30576
- let url_ = this.baseUrl + "/external/invite/existing";
30532
+ acceptSupplierInvite(): Promise<SupplierInviteDto> {
30533
+ let url_ = this.baseUrl + "/external/invite/accept";
30577
30534
  url_ = url_.replace(/[?&]$/, "");
30578
30535
 
30579
- const content_ = JSON.stringify(request);
30580
-
30581
30536
  let options_: RequestInit = {
30582
- body: content_,
30583
30537
  method: "POST",
30584
30538
  headers: {
30585
- "Content-Type": "application/json",
30586
30539
  "Accept": "application/json"
30587
30540
  }
30588
30541
  };
@@ -30590,50 +30543,11 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
30590
30543
  return this.transformOptions(options_).then(transformedOptions_ => {
30591
30544
  return this.http.fetch(url_, transformedOptions_);
30592
30545
  }).then((_response: Response) => {
30593
- return this.processAcceptSupplierInviteExistingCompany(_response);
30546
+ return this.processAcceptSupplierInvite(_response);
30594
30547
  });
30595
30548
  }
30596
30549
 
30597
- protected processAcceptSupplierInviteExistingCompany(response: Response): Promise<SupplierInviteDto> {
30598
- const status = response.status;
30599
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
30600
- if (status === 200) {
30601
- return response.text().then((_responseText) => {
30602
- let result200: any = null;
30603
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SupplierInviteDto;
30604
- return result200;
30605
- });
30606
- } else if (status !== 200 && status !== 204) {
30607
- return response.text().then((_responseText) => {
30608
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
30609
- });
30610
- }
30611
- return Promise.resolve<SupplierInviteDto>(null as any);
30612
- }
30613
-
30614
- acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto> {
30615
- let url_ = this.baseUrl + "/external/invite/customer";
30616
- url_ = url_.replace(/[?&]$/, "");
30617
-
30618
- const content_ = JSON.stringify(request);
30619
-
30620
- let options_: RequestInit = {
30621
- body: content_,
30622
- method: "POST",
30623
- headers: {
30624
- "Content-Type": "application/json",
30625
- "Accept": "application/json"
30626
- }
30627
- };
30628
-
30629
- return this.transformOptions(options_).then(transformedOptions_ => {
30630
- return this.http.fetch(url_, transformedOptions_);
30631
- }).then((_response: Response) => {
30632
- return this.processAcceptSupplierInviteCustomer(_response);
30633
- });
30634
- }
30635
-
30636
- protected processAcceptSupplierInviteCustomer(response: Response): Promise<SupplierInviteDto> {
30550
+ protected processAcceptSupplierInvite(response: Response): Promise<SupplierInviteDto> {
30637
30551
  const status = response.status;
30638
30552
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
30639
30553
  if (status === 200) {
@@ -38181,21 +38095,6 @@ export interface ContactPersonDto {
38181
38095
  email: string;
38182
38096
  }
38183
38097
 
38184
- export interface AcceptSupplierInviteNewCompany {
38185
- companyName?: string;
38186
- organizationNumber?: string;
38187
- threeLetterIsoCountry?: string;
38188
- }
38189
-
38190
- export interface AcceptSupplierInviteExistingCompany {
38191
- companyId?: string;
38192
- }
38193
-
38194
- export interface AcceptSupplierInviteCustomer {
38195
- tenantId?: string;
38196
- organizationNumber?: string;
38197
- }
38198
-
38199
38098
  export interface TenantWithSupplierDto {
38200
38099
  tenantId: string;
38201
38100
  customerName: string;