@ignos/api-client 20260122.0.13844-alpha → 20260123.0.13855-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 +8 -8
- package/lib/ignosportal-api.js +2 -6
- package/package.json +1 -1
- package/src/ignosportal-api.ts +10 -14
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3130,10 +3130,10 @@ export declare class WorkordersClient extends AuthorizedApiBase implements IWork
|
|
|
3130
3130
|
protected processGenerateContentPartsForDiscussions(response: Response): Promise<WorkorderDiscussionMessageDto[]>;
|
|
3131
3131
|
}
|
|
3132
3132
|
export interface IExternalAccessClient {
|
|
3133
|
-
listUsers(companyId: string | undefined): Promise<CompanyUserDto[]>;
|
|
3133
|
+
listUsers(companyId: string | null | undefined): Promise<CompanyUserDto[]>;
|
|
3134
3134
|
createCompanyUser(request: CreateCompanyUser): Promise<CompanyUserDto>;
|
|
3135
3135
|
updateCompanyUser(id: string, request: UpdateCompanyUserRequest): Promise<CompanyUserDto>;
|
|
3136
|
-
deleteCompanyUser(id: string, companyId: string | undefined): Promise<void>;
|
|
3136
|
+
deleteCompanyUser(id: string, companyId: string | null | undefined): Promise<void>;
|
|
3137
3137
|
listRoles(): Promise<ExternalRoleDto[]>;
|
|
3138
3138
|
listCompanyCustomers(): Promise<CompanyCustomerDto[]>;
|
|
3139
3139
|
deleteCompanyCustomer(tenantId: string): Promise<void>;
|
|
@@ -3145,13 +3145,13 @@ export declare class ExternalAccessClient extends AuthorizedApiBase implements I
|
|
|
3145
3145
|
constructor(configuration: IAccessTokenProvider, baseUrl?: string, http?: {
|
|
3146
3146
|
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
3147
3147
|
});
|
|
3148
|
-
listUsers(companyId: string | undefined): Promise<CompanyUserDto[]>;
|
|
3148
|
+
listUsers(companyId: string | null | undefined): Promise<CompanyUserDto[]>;
|
|
3149
3149
|
protected processListUsers(response: Response): Promise<CompanyUserDto[]>;
|
|
3150
3150
|
createCompanyUser(request: CreateCompanyUser): Promise<CompanyUserDto>;
|
|
3151
3151
|
protected processCreateCompanyUser(response: Response): Promise<CompanyUserDto>;
|
|
3152
3152
|
updateCompanyUser(id: string, request: UpdateCompanyUserRequest): Promise<CompanyUserDto>;
|
|
3153
3153
|
protected processUpdateCompanyUser(response: Response): Promise<CompanyUserDto>;
|
|
3154
|
-
deleteCompanyUser(id: string, companyId: string | undefined): Promise<void>;
|
|
3154
|
+
deleteCompanyUser(id: string, companyId: string | null | undefined): Promise<void>;
|
|
3155
3155
|
protected processDeleteCompanyUser(response: Response): Promise<void>;
|
|
3156
3156
|
listRoles(): Promise<ExternalRoleDto[]>;
|
|
3157
3157
|
protected processListRoles(response: Response): Promise<ExternalRoleDto[]>;
|
|
@@ -15802,7 +15802,7 @@ export declare class CreateCompanyUser implements ICreateCompanyUser {
|
|
|
15802
15802
|
username: string;
|
|
15803
15803
|
name: string;
|
|
15804
15804
|
roles: string[];
|
|
15805
|
-
companyId
|
|
15805
|
+
companyId?: string | null;
|
|
15806
15806
|
constructor(data?: ICreateCompanyUser);
|
|
15807
15807
|
init(_data?: any): void;
|
|
15808
15808
|
static fromJS(data: any): CreateCompanyUser;
|
|
@@ -15812,11 +15812,11 @@ export interface ICreateCompanyUser {
|
|
|
15812
15812
|
username: string;
|
|
15813
15813
|
name: string;
|
|
15814
15814
|
roles: string[];
|
|
15815
|
-
companyId
|
|
15815
|
+
companyId?: string | null;
|
|
15816
15816
|
}
|
|
15817
15817
|
export declare class UpdateCompanyUserRequest implements IUpdateCompanyUserRequest {
|
|
15818
15818
|
roles: string[];
|
|
15819
|
-
companyId
|
|
15819
|
+
companyId?: string | null;
|
|
15820
15820
|
constructor(data?: IUpdateCompanyUserRequest);
|
|
15821
15821
|
init(_data?: any): void;
|
|
15822
15822
|
static fromJS(data: any): UpdateCompanyUserRequest;
|
|
@@ -15824,7 +15824,7 @@ export declare class UpdateCompanyUserRequest implements IUpdateCompanyUserReque
|
|
|
15824
15824
|
}
|
|
15825
15825
|
export interface IUpdateCompanyUserRequest {
|
|
15826
15826
|
roles: string[];
|
|
15827
|
-
companyId
|
|
15827
|
+
companyId?: string | null;
|
|
15828
15828
|
}
|
|
15829
15829
|
export declare class ExternalRoleDto implements IExternalRoleDto {
|
|
15830
15830
|
id: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -25892,9 +25892,7 @@ export class ExternalAccessClient extends AuthorizedApiBase {
|
|
|
25892
25892
|
}
|
|
25893
25893
|
listUsers(companyId) {
|
|
25894
25894
|
let url_ = this.baseUrl + "/externalaccess/users?";
|
|
25895
|
-
if (companyId
|
|
25896
|
-
throw new globalThis.Error("The parameter 'companyId' cannot be null.");
|
|
25897
|
-
else if (companyId !== undefined)
|
|
25895
|
+
if (companyId !== undefined && companyId !== null)
|
|
25898
25896
|
url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
|
|
25899
25897
|
url_ = url_.replace(/[?&]$/, "");
|
|
25900
25898
|
let options_ = {
|
|
@@ -26023,9 +26021,7 @@ export class ExternalAccessClient extends AuthorizedApiBase {
|
|
|
26023
26021
|
if (id === undefined || id === null)
|
|
26024
26022
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
26025
26023
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
26026
|
-
if (companyId
|
|
26027
|
-
throw new globalThis.Error("The parameter 'companyId' cannot be null.");
|
|
26028
|
-
else if (companyId !== undefined)
|
|
26024
|
+
if (companyId !== undefined && companyId !== null)
|
|
26029
26025
|
url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
|
|
26030
26026
|
url_ = url_.replace(/[?&]$/, "");
|
|
26031
26027
|
let options_ = {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -27614,13 +27614,13 @@ export class WorkordersClient extends AuthorizedApiBase implements IWorkordersCl
|
|
|
27614
27614
|
|
|
27615
27615
|
export interface IExternalAccessClient {
|
|
27616
27616
|
|
|
27617
|
-
listUsers(companyId: string | undefined): Promise<CompanyUserDto[]>;
|
|
27617
|
+
listUsers(companyId: string | null | undefined): Promise<CompanyUserDto[]>;
|
|
27618
27618
|
|
|
27619
27619
|
createCompanyUser(request: CreateCompanyUser): Promise<CompanyUserDto>;
|
|
27620
27620
|
|
|
27621
27621
|
updateCompanyUser(id: string, request: UpdateCompanyUserRequest): Promise<CompanyUserDto>;
|
|
27622
27622
|
|
|
27623
|
-
deleteCompanyUser(id: string, companyId: string | undefined): Promise<void>;
|
|
27623
|
+
deleteCompanyUser(id: string, companyId: string | null | undefined): Promise<void>;
|
|
27624
27624
|
|
|
27625
27625
|
listRoles(): Promise<ExternalRoleDto[]>;
|
|
27626
27626
|
|
|
@@ -27640,11 +27640,9 @@ export class ExternalAccessClient extends AuthorizedApiBase implements IExternal
|
|
|
27640
27640
|
this.baseUrl = baseUrl ?? "";
|
|
27641
27641
|
}
|
|
27642
27642
|
|
|
27643
|
-
listUsers(companyId: string | undefined): Promise<CompanyUserDto[]> {
|
|
27643
|
+
listUsers(companyId: string | null | undefined): Promise<CompanyUserDto[]> {
|
|
27644
27644
|
let url_ = this.baseUrl + "/externalaccess/users?";
|
|
27645
|
-
if (companyId
|
|
27646
|
-
throw new globalThis.Error("The parameter 'companyId' cannot be null.");
|
|
27647
|
-
else if (companyId !== undefined)
|
|
27645
|
+
if (companyId !== undefined && companyId !== null)
|
|
27648
27646
|
url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
|
|
27649
27647
|
url_ = url_.replace(/[?&]$/, "");
|
|
27650
27648
|
|
|
@@ -27767,14 +27765,12 @@ export class ExternalAccessClient extends AuthorizedApiBase implements IExternal
|
|
|
27767
27765
|
return Promise.resolve<CompanyUserDto>(null as any);
|
|
27768
27766
|
}
|
|
27769
27767
|
|
|
27770
|
-
deleteCompanyUser(id: string, companyId: string | undefined): Promise<void> {
|
|
27768
|
+
deleteCompanyUser(id: string, companyId: string | null | undefined): Promise<void> {
|
|
27771
27769
|
let url_ = this.baseUrl + "/externalaccess/users/{id}?";
|
|
27772
27770
|
if (id === undefined || id === null)
|
|
27773
27771
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
27774
27772
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
27775
|
-
if (companyId
|
|
27776
|
-
throw new globalThis.Error("The parameter 'companyId' cannot be null.");
|
|
27777
|
-
else if (companyId !== undefined)
|
|
27773
|
+
if (companyId !== undefined && companyId !== null)
|
|
27778
27774
|
url_ += "companyId=" + encodeURIComponent("" + companyId) + "&";
|
|
27779
27775
|
url_ = url_.replace(/[?&]$/, "");
|
|
27780
27776
|
|
|
@@ -66976,7 +66972,7 @@ export class CreateCompanyUser implements ICreateCompanyUser {
|
|
|
66976
66972
|
username!: string;
|
|
66977
66973
|
name!: string;
|
|
66978
66974
|
roles!: string[];
|
|
66979
|
-
companyId
|
|
66975
|
+
companyId?: string | null;
|
|
66980
66976
|
|
|
66981
66977
|
constructor(data?: ICreateCompanyUser) {
|
|
66982
66978
|
if (data) {
|
|
@@ -67028,12 +67024,12 @@ export interface ICreateCompanyUser {
|
|
|
67028
67024
|
username: string;
|
|
67029
67025
|
name: string;
|
|
67030
67026
|
roles: string[];
|
|
67031
|
-
companyId
|
|
67027
|
+
companyId?: string | null;
|
|
67032
67028
|
}
|
|
67033
67029
|
|
|
67034
67030
|
export class UpdateCompanyUserRequest implements IUpdateCompanyUserRequest {
|
|
67035
67031
|
roles!: string[];
|
|
67036
|
-
companyId
|
|
67032
|
+
companyId?: string | null;
|
|
67037
67033
|
|
|
67038
67034
|
constructor(data?: IUpdateCompanyUserRequest) {
|
|
67039
67035
|
if (data) {
|
|
@@ -67079,7 +67075,7 @@ export class UpdateCompanyUserRequest implements IUpdateCompanyUserRequest {
|
|
|
67079
67075
|
|
|
67080
67076
|
export interface IUpdateCompanyUserRequest {
|
|
67081
67077
|
roles: string[];
|
|
67082
|
-
companyId
|
|
67078
|
+
companyId?: string | null;
|
|
67083
67079
|
}
|
|
67084
67080
|
|
|
67085
67081
|
export class ExternalRoleDto implements IExternalRoleDto {
|