@ignos/api-client 20260706.168.1-alpha → 20260706.170.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.
@@ -3465,7 +3465,7 @@ export declare class ExternalAccessClient extends AuthorizedApiBase implements I
3465
3465
  export interface IExternalClient {
3466
3466
  listCompanies(): Promise<CompanyDto[]>;
3467
3467
  getCompany(id: string): Promise<CompanyDto>;
3468
- getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
3468
+ getCurrentSupplierInvite(): Promise<CurrentSupplierInviteDto>;
3469
3469
  acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
3470
3470
  acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
3471
3471
  acceptSupplierInviteCustomer(request: AcceptSupplierInviteCustomer): Promise<SupplierInviteDto>;
@@ -3481,8 +3481,8 @@ export declare class ExternalClient extends AuthorizedApiBase implements IExtern
3481
3481
  protected processListCompanies(response: Response): Promise<CompanyDto[]>;
3482
3482
  getCompany(id: string): Promise<CompanyDto>;
3483
3483
  protected processGetCompany(response: Response): Promise<CompanyDto>;
3484
- getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
3485
- protected processGetCurrentSupplierInvite(response: Response): Promise<SupplierInviteDto>;
3484
+ getCurrentSupplierInvite(): Promise<CurrentSupplierInviteDto>;
3485
+ protected processGetCurrentSupplierInvite(response: Response): Promise<CurrentSupplierInviteDto>;
3486
3486
  acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
3487
3487
  protected processAcceptSupplierInviteNewCompany(response: Response): Promise<SupplierInviteDto>;
3488
3488
  acceptSupplierInviteExistingCompany(request: AcceptSupplierInviteExistingCompany): Promise<SupplierInviteDto>;
@@ -9779,6 +9779,27 @@ export interface SupplierInviteDto {
9779
9779
  createdTime: Date;
9780
9780
  createdBy: string;
9781
9781
  }
9782
+ export interface CurrentSupplierInviteDto extends SupplierInviteDto {
9783
+ matchingCustomerOrCompany?: MatchingCustomerOrCompany | null;
9784
+ }
9785
+ export interface MatchingCustomerOrCompany {
9786
+ customer?: IgnosCustomerDto | null;
9787
+ company?: CompanyDto | null;
9788
+ companyCustomers?: CompanyCustomerDto[];
9789
+ }
9790
+ export interface IgnosCustomerDto {
9791
+ id: string;
9792
+ name: string;
9793
+ contactPerson: ContactPersonDto;
9794
+ threeLetterIsoCountry: string;
9795
+ organizationNumber: string;
9796
+ country: string;
9797
+ }
9798
+ export interface ContactPersonDto {
9799
+ name: string;
9800
+ phone: string;
9801
+ email: string;
9802
+ }
9782
9803
  export interface AcceptSupplierInviteNewCompany {
9783
9804
  companyName?: string;
9784
9805
  organizationNumber?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20260706.168.1-alpha",
3
+ "version": "20260706.170.1-alpha",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -30404,7 +30404,7 @@ export interface IExternalClient {
30404
30404
 
30405
30405
  getCompany(id: string): Promise<CompanyDto>;
30406
30406
 
30407
- getCurrentSupplierInvite(): Promise<SupplierInviteDto>;
30407
+ getCurrentSupplierInvite(): Promise<CurrentSupplierInviteDto>;
30408
30408
 
30409
30409
  acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto>;
30410
30410
 
@@ -30498,7 +30498,7 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
30498
30498
  return Promise.resolve<CompanyDto>(null as any);
30499
30499
  }
30500
30500
 
30501
- getCurrentSupplierInvite(): Promise<SupplierInviteDto> {
30501
+ getCurrentSupplierInvite(): Promise<CurrentSupplierInviteDto> {
30502
30502
  let url_ = this.baseUrl + "/external/invite";
30503
30503
  url_ = url_.replace(/[?&]$/, "");
30504
30504
 
@@ -30516,13 +30516,13 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
30516
30516
  });
30517
30517
  }
30518
30518
 
30519
- protected processGetCurrentSupplierInvite(response: Response): Promise<SupplierInviteDto> {
30519
+ protected processGetCurrentSupplierInvite(response: Response): Promise<CurrentSupplierInviteDto> {
30520
30520
  const status = response.status;
30521
30521
  let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
30522
30522
  if (status === 200) {
30523
30523
  return response.text().then((_responseText) => {
30524
30524
  let result200: any = null;
30525
- result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SupplierInviteDto;
30525
+ result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as CurrentSupplierInviteDto;
30526
30526
  return result200;
30527
30527
  });
30528
30528
  } else if (status !== 200 && status !== 204) {
@@ -30530,7 +30530,7 @@ export class ExternalClient extends AuthorizedApiBase implements IExternalClient
30530
30530
  return throwException("An unexpected server error occurred.", status, _responseText, _headers);
30531
30531
  });
30532
30532
  }
30533
- return Promise.resolve<SupplierInviteDto>(null as any);
30533
+ return Promise.resolve<CurrentSupplierInviteDto>(null as any);
30534
30534
  }
30535
30535
 
30536
30536
  acceptSupplierInviteNewCompany(request: AcceptSupplierInviteNewCompany): Promise<SupplierInviteDto> {
@@ -38156,6 +38156,31 @@ export interface SupplierInviteDto {
38156
38156
  createdBy: string;
38157
38157
  }
38158
38158
 
38159
+ export interface CurrentSupplierInviteDto extends SupplierInviteDto {
38160
+ matchingCustomerOrCompany?: MatchingCustomerOrCompany | null;
38161
+ }
38162
+
38163
+ export interface MatchingCustomerOrCompany {
38164
+ customer?: IgnosCustomerDto | null;
38165
+ company?: CompanyDto | null;
38166
+ companyCustomers?: CompanyCustomerDto[];
38167
+ }
38168
+
38169
+ export interface IgnosCustomerDto {
38170
+ id: string;
38171
+ name: string;
38172
+ contactPerson: ContactPersonDto;
38173
+ threeLetterIsoCountry: string;
38174
+ organizationNumber: string;
38175
+ country: string;
38176
+ }
38177
+
38178
+ export interface ContactPersonDto {
38179
+ name: string;
38180
+ phone: string;
38181
+ email: string;
38182
+ }
38183
+
38159
38184
  export interface AcceptSupplierInviteNewCompany {
38160
38185
  companyName?: string;
38161
38186
  organizationNumber?: string;