@ignos/api-client 20260706.170.1-alpha → 20260706.171.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
+ acceptSupplierInviteExistingCompany(): 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>;
3484
+ acceptSupplierInviteExistingCompany(): Promise<SupplierInviteDto>;
3489
3485
  protected processAcceptSupplierInviteExistingCompany(response: Response): Promise<SupplierInviteDto>;
3490
- acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
3491
- protected processAcceptSupplierInviteCustomer(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,54 +28543,12 @@ 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
+ acceptSupplierInviteExistingCompany() {
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
28550
  method: "POST",
28553
28551
  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
- method: "POST",
28592
- headers: {
28593
- "Content-Type": "application/json",
28594
28552
  "Accept": "application/json"
28595
28553
  }
28596
28554
  };
@@ -28621,45 +28579,6 @@ export class ExternalClient extends AuthorizedApiBase {
28621
28579
  }
28622
28580
  return Promise.resolve(null);
28623
28581
  }
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
- "Accept": "application/json"
28634
- }
28635
- };
28636
- return this.transformOptions(options_).then(transformedOptions_ => {
28637
- return this.http.fetch(url_, transformedOptions_);
28638
- }).then((_response) => {
28639
- return this.processAcceptSupplierInviteCustomer(_response);
28640
- });
28641
- }
28642
- processAcceptSupplierInviteCustomer(response) {
28643
- const status = response.status;
28644
- let _headers = {};
28645
- if (response.headers && response.headers.forEach) {
28646
- response.headers.forEach((v, k) => _headers[k] = v);
28647
- }
28648
- ;
28649
- if (status === 200) {
28650
- return response.text().then((_responseText) => {
28651
- let result200 = null;
28652
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
28653
- return result200;
28654
- });
28655
- }
28656
- else if (status !== 200 && status !== 204) {
28657
- return response.text().then((_responseText) => {
28658
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
28659
- });
28660
- }
28661
- return Promise.resolve(null);
28662
- }
28663
28582
  listTenantsWithSuppliers() {
28664
28583
  let url_ = this.baseUrl + "/external/tenantswithsuppliers";
28665
28584
  url_ = url_.replace(/[?&]$/, "");
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.171.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
+ acceptSupplierInviteExistingCompany(): 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
+ acceptSupplierInviteExistingCompany(): 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
  };
@@ -30611,45 +30564,6 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
30611
30564
  return Promise.resolve<SupplierInviteDto>(null as any);
30612
30565
  }
30613
30566
 
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> {
30637
- const status = response.status;
30638
- let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
30639
- if (status === 200) {
30640
- return response.text().then((_responseText) => {
30641
- let result200: any = null;
30642
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SupplierInviteDto;
30643
- return result200;
30644
- });
30645
- } else if (status !== 200 && status !== 204) {
30646
- return response.text().then((_responseText) => {
30647
- return throwException("An unexpected server error occurred.", status, _responseText, _headers);
30648
- });
30649
- }
30650
- return Promise.resolve<SupplierInviteDto>(null as any);
30651
- }
30652
-
30653
30567
  listTenantsWithSuppliers(): Promise<TenantWithSupplierDto[]> {
30654
30568
  let url_ = this.baseUrl + "/external/tenantswithsuppliers";
30655
30569
  url_ = url_.replace(/[?&]$/, "");
@@ -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;