@ignos/api-client 20240910.0.10304 → 20240911.0.10316
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 +10 -16
- package/lib/ignosportal-api.js +5 -11
- package/package.json +1 -1
- package/src/ignosportal-api.ts +12 -24
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ export declare class MachineUtilizationClient extends AuthorizedApiBase implemen
|
|
|
208
208
|
export interface IMeClient {
|
|
209
209
|
getMyApps(): Promise<UserAppDto[]>;
|
|
210
210
|
getCurrentUser(): Promise<UserDetailsDto>;
|
|
211
|
-
|
|
211
|
+
setIsBetaTester(request: SetIsBetaTesterRequest): Promise<UserDto>;
|
|
212
212
|
updateCurrentUserLastSeen(): Promise<void>;
|
|
213
213
|
}
|
|
214
214
|
export declare class MeClient extends AuthorizedApiBase implements IMeClient {
|
|
@@ -222,8 +222,8 @@ export declare class MeClient extends AuthorizedApiBase implements IMeClient {
|
|
|
222
222
|
protected processGetMyApps(response: Response): Promise<UserAppDto[]>;
|
|
223
223
|
getCurrentUser(): Promise<UserDetailsDto>;
|
|
224
224
|
protected processGetCurrentUser(response: Response): Promise<UserDetailsDto>;
|
|
225
|
-
|
|
226
|
-
protected
|
|
225
|
+
setIsBetaTester(request: SetIsBetaTesterRequest): Promise<UserDto>;
|
|
226
|
+
protected processSetIsBetaTester(response: Response): Promise<UserDto>;
|
|
227
227
|
updateCurrentUserLastSeen(): Promise<void>;
|
|
228
228
|
protected processUpdateCurrentUserLastSeen(response: Response): Promise<void>;
|
|
229
229
|
}
|
|
@@ -2751,7 +2751,6 @@ export declare class UserDetailsDto implements IUserDetailsDto {
|
|
|
2751
2751
|
customerId?: string | null;
|
|
2752
2752
|
isExternalUser?: boolean;
|
|
2753
2753
|
isBetaTester?: boolean | null;
|
|
2754
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2755
2754
|
hasAccessToIgnos?: boolean;
|
|
2756
2755
|
constructor(data?: IUserDetailsDto);
|
|
2757
2756
|
init(_data?: any): void;
|
|
@@ -2769,7 +2768,6 @@ export interface IUserDetailsDto {
|
|
|
2769
2768
|
customerId?: string | null;
|
|
2770
2769
|
isExternalUser?: boolean;
|
|
2771
2770
|
isBetaTester?: boolean | null;
|
|
2772
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2773
2771
|
hasAccessToIgnos?: boolean;
|
|
2774
2772
|
}
|
|
2775
2773
|
export declare class UserDto implements IUserDto {
|
|
@@ -2778,7 +2776,6 @@ export declare class UserDto implements IUserDto {
|
|
|
2778
2776
|
upn?: string | null;
|
|
2779
2777
|
email?: string | null;
|
|
2780
2778
|
isBetaTester?: boolean | null;
|
|
2781
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2782
2779
|
constructor(data?: IUserDto);
|
|
2783
2780
|
init(_data?: any): void;
|
|
2784
2781
|
static fromJS(data: any): UserDto;
|
|
@@ -2790,19 +2787,16 @@ export interface IUserDto {
|
|
|
2790
2787
|
upn?: string | null;
|
|
2791
2788
|
email?: string | null;
|
|
2792
2789
|
isBetaTester?: boolean | null;
|
|
2793
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2794
2790
|
}
|
|
2795
|
-
export declare class
|
|
2796
|
-
isBetaTester
|
|
2797
|
-
|
|
2798
|
-
constructor(data?: ISetUserConfigurationRequest);
|
|
2791
|
+
export declare class SetIsBetaTesterRequest implements ISetIsBetaTesterRequest {
|
|
2792
|
+
isBetaTester: boolean;
|
|
2793
|
+
constructor(data?: ISetIsBetaTesterRequest);
|
|
2799
2794
|
init(_data?: any): void;
|
|
2800
|
-
static fromJS(data: any):
|
|
2795
|
+
static fromJS(data: any): SetIsBetaTesterRequest;
|
|
2801
2796
|
toJSON(data?: any): any;
|
|
2802
2797
|
}
|
|
2803
|
-
export interface
|
|
2804
|
-
isBetaTester
|
|
2805
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
2798
|
+
export interface ISetIsBetaTesterRequest {
|
|
2799
|
+
isBetaTester: boolean;
|
|
2806
2800
|
}
|
|
2807
2801
|
export declare class PagedResultOfUserDto implements IPagedResultOfUserDto {
|
|
2808
2802
|
results: UserDto[];
|
|
@@ -11000,7 +10994,7 @@ export interface IMeasurementFormInstanceOverviewDto {
|
|
|
11000
10994
|
supplierData?: MeasurementFormInstanceSupplierDto | null;
|
|
11001
10995
|
progress: MeasurementFormProgressDto;
|
|
11002
10996
|
}
|
|
11003
|
-
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved";
|
|
10997
|
+
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|
|
11004
10998
|
export declare class MeasurementFormInstanceSchemaOverviewDto implements IMeasurementFormInstanceSchemaOverviewDto {
|
|
11005
10999
|
id: string;
|
|
11006
11000
|
constructor(data?: IMeasurementFormInstanceSchemaOverviewDto);
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -1007,7 +1007,7 @@ export class MeClient extends AuthorizedApiBase {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
return Promise.resolve(null);
|
|
1009
1009
|
}
|
|
1010
|
-
|
|
1010
|
+
setIsBetaTester(request) {
|
|
1011
1011
|
let url_ = this.baseUrl + "/me";
|
|
1012
1012
|
url_ = url_.replace(/[?&]$/, "");
|
|
1013
1013
|
const content_ = JSON.stringify(request);
|
|
@@ -1022,10 +1022,10 @@ export class MeClient extends AuthorizedApiBase {
|
|
|
1022
1022
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1023
1023
|
return this.http.fetch(url_, transformedOptions_);
|
|
1024
1024
|
}).then((_response) => {
|
|
1025
|
-
return this.
|
|
1025
|
+
return this.processSetIsBetaTester(_response);
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
|
|
1028
|
+
processSetIsBetaTester(response) {
|
|
1029
1029
|
const status = response.status;
|
|
1030
1030
|
let _headers = {};
|
|
1031
1031
|
if (response.headers && response.headers.forEach) {
|
|
@@ -20426,7 +20426,6 @@ export class UserDetailsDto {
|
|
|
20426
20426
|
this.customerId = _data["customerId"];
|
|
20427
20427
|
this.isExternalUser = _data["isExternalUser"];
|
|
20428
20428
|
this.isBetaTester = _data["isBetaTester"];
|
|
20429
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20430
20429
|
this.hasAccessToIgnos = _data["hasAccessToIgnos"];
|
|
20431
20430
|
}
|
|
20432
20431
|
}
|
|
@@ -20452,7 +20451,6 @@ export class UserDetailsDto {
|
|
|
20452
20451
|
data["customerId"] = this.customerId;
|
|
20453
20452
|
data["isExternalUser"] = this.isExternalUser;
|
|
20454
20453
|
data["isBetaTester"] = this.isBetaTester;
|
|
20455
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20456
20454
|
data["hasAccessToIgnos"] = this.hasAccessToIgnos;
|
|
20457
20455
|
return data;
|
|
20458
20456
|
}
|
|
@@ -20473,7 +20471,6 @@ export class UserDto {
|
|
|
20473
20471
|
this.upn = _data["upn"];
|
|
20474
20472
|
this.email = _data["email"];
|
|
20475
20473
|
this.isBetaTester = _data["isBetaTester"];
|
|
20476
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20477
20474
|
}
|
|
20478
20475
|
}
|
|
20479
20476
|
static fromJS(data) {
|
|
@@ -20489,11 +20486,10 @@ export class UserDto {
|
|
|
20489
20486
|
data["upn"] = this.upn;
|
|
20490
20487
|
data["email"] = this.email;
|
|
20491
20488
|
data["isBetaTester"] = this.isBetaTester;
|
|
20492
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20493
20489
|
return data;
|
|
20494
20490
|
}
|
|
20495
20491
|
}
|
|
20496
|
-
export class
|
|
20492
|
+
export class SetIsBetaTesterRequest {
|
|
20497
20493
|
constructor(data) {
|
|
20498
20494
|
if (data) {
|
|
20499
20495
|
for (var property in data) {
|
|
@@ -20505,19 +20501,17 @@ export class SetUserConfigurationRequest {
|
|
|
20505
20501
|
init(_data) {
|
|
20506
20502
|
if (_data) {
|
|
20507
20503
|
this.isBetaTester = _data["isBetaTester"];
|
|
20508
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
20509
20504
|
}
|
|
20510
20505
|
}
|
|
20511
20506
|
static fromJS(data) {
|
|
20512
20507
|
data = typeof data === 'object' ? data : {};
|
|
20513
|
-
let result = new
|
|
20508
|
+
let result = new SetIsBetaTesterRequest();
|
|
20514
20509
|
result.init(data);
|
|
20515
20510
|
return result;
|
|
20516
20511
|
}
|
|
20517
20512
|
toJSON(data) {
|
|
20518
20513
|
data = typeof data === 'object' ? data : {};
|
|
20519
20514
|
data["isBetaTester"] = this.isBetaTester;
|
|
20520
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
20521
20515
|
return data;
|
|
20522
20516
|
}
|
|
20523
20517
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -1042,7 +1042,7 @@ export interface IMeClient {
|
|
|
1042
1042
|
|
|
1043
1043
|
getCurrentUser(): Promise<UserDetailsDto>;
|
|
1044
1044
|
|
|
1045
|
-
|
|
1045
|
+
setIsBetaTester(request: SetIsBetaTesterRequest): Promise<UserDto>;
|
|
1046
1046
|
|
|
1047
1047
|
updateCurrentUserLastSeen(): Promise<void>;
|
|
1048
1048
|
}
|
|
@@ -1134,7 +1134,7 @@ export class MeClient extends AuthorizedApiBase implements IMeClient {
|
|
|
1134
1134
|
return Promise.resolve<UserDetailsDto>(null as any);
|
|
1135
1135
|
}
|
|
1136
1136
|
|
|
1137
|
-
|
|
1137
|
+
setIsBetaTester(request: SetIsBetaTesterRequest): Promise<UserDto> {
|
|
1138
1138
|
let url_ = this.baseUrl + "/me";
|
|
1139
1139
|
url_ = url_.replace(/[?&]$/, "");
|
|
1140
1140
|
|
|
@@ -1152,11 +1152,11 @@ export class MeClient extends AuthorizedApiBase implements IMeClient {
|
|
|
1152
1152
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
1153
1153
|
return this.http.fetch(url_, transformedOptions_);
|
|
1154
1154
|
}).then((_response: Response) => {
|
|
1155
|
-
return this.
|
|
1155
|
+
return this.processSetIsBetaTester(_response);
|
|
1156
1156
|
});
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
|
-
protected
|
|
1159
|
+
protected processSetIsBetaTester(response: Response): Promise<UserDto> {
|
|
1160
1160
|
const status = response.status;
|
|
1161
1161
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
1162
1162
|
if (status === 200) {
|
|
@@ -22105,7 +22105,6 @@ export class UserDetailsDto implements IUserDetailsDto {
|
|
|
22105
22105
|
customerId?: string | null;
|
|
22106
22106
|
isExternalUser?: boolean;
|
|
22107
22107
|
isBetaTester?: boolean | null;
|
|
22108
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22109
22108
|
hasAccessToIgnos?: boolean;
|
|
22110
22109
|
|
|
22111
22110
|
constructor(data?: IUserDetailsDto) {
|
|
@@ -22133,7 +22132,6 @@ export class UserDetailsDto implements IUserDetailsDto {
|
|
|
22133
22132
|
this.customerId = _data["customerId"];
|
|
22134
22133
|
this.isExternalUser = _data["isExternalUser"];
|
|
22135
22134
|
this.isBetaTester = _data["isBetaTester"];
|
|
22136
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
22137
22135
|
this.hasAccessToIgnos = _data["hasAccessToIgnos"];
|
|
22138
22136
|
}
|
|
22139
22137
|
}
|
|
@@ -22161,7 +22159,6 @@ export class UserDetailsDto implements IUserDetailsDto {
|
|
|
22161
22159
|
data["customerId"] = this.customerId;
|
|
22162
22160
|
data["isExternalUser"] = this.isExternalUser;
|
|
22163
22161
|
data["isBetaTester"] = this.isBetaTester;
|
|
22164
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
22165
22162
|
data["hasAccessToIgnos"] = this.hasAccessToIgnos;
|
|
22166
22163
|
return data;
|
|
22167
22164
|
}
|
|
@@ -22178,7 +22175,6 @@ export interface IUserDetailsDto {
|
|
|
22178
22175
|
customerId?: string | null;
|
|
22179
22176
|
isExternalUser?: boolean;
|
|
22180
22177
|
isBetaTester?: boolean | null;
|
|
22181
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22182
22178
|
hasAccessToIgnos?: boolean;
|
|
22183
22179
|
}
|
|
22184
22180
|
|
|
@@ -22188,7 +22184,6 @@ export class UserDto implements IUserDto {
|
|
|
22188
22184
|
upn?: string | null;
|
|
22189
22185
|
email?: string | null;
|
|
22190
22186
|
isBetaTester?: boolean | null;
|
|
22191
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22192
22187
|
|
|
22193
22188
|
constructor(data?: IUserDto) {
|
|
22194
22189
|
if (data) {
|
|
@@ -22206,7 +22201,6 @@ export class UserDto implements IUserDto {
|
|
|
22206
22201
|
this.upn = _data["upn"];
|
|
22207
22202
|
this.email = _data["email"];
|
|
22208
22203
|
this.isBetaTester = _data["isBetaTester"];
|
|
22209
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
22210
22204
|
}
|
|
22211
22205
|
}
|
|
22212
22206
|
|
|
@@ -22224,7 +22218,6 @@ export class UserDto implements IUserDto {
|
|
|
22224
22218
|
data["upn"] = this.upn;
|
|
22225
22219
|
data["email"] = this.email;
|
|
22226
22220
|
data["isBetaTester"] = this.isBetaTester;
|
|
22227
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
22228
22221
|
return data;
|
|
22229
22222
|
}
|
|
22230
22223
|
}
|
|
@@ -22235,14 +22228,12 @@ export interface IUserDto {
|
|
|
22235
22228
|
upn?: string | null;
|
|
22236
22229
|
email?: string | null;
|
|
22237
22230
|
isBetaTester?: boolean | null;
|
|
22238
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22239
22231
|
}
|
|
22240
22232
|
|
|
22241
|
-
export class
|
|
22242
|
-
isBetaTester
|
|
22243
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22233
|
+
export class SetIsBetaTesterRequest implements ISetIsBetaTesterRequest {
|
|
22234
|
+
isBetaTester!: boolean;
|
|
22244
22235
|
|
|
22245
|
-
constructor(data?:
|
|
22236
|
+
constructor(data?: ISetIsBetaTesterRequest) {
|
|
22246
22237
|
if (data) {
|
|
22247
22238
|
for (var property in data) {
|
|
22248
22239
|
if (data.hasOwnProperty(property))
|
|
@@ -22254,13 +22245,12 @@ export class SetUserConfigurationRequest implements ISetUserConfigurationRequest
|
|
|
22254
22245
|
init(_data?: any) {
|
|
22255
22246
|
if (_data) {
|
|
22256
22247
|
this.isBetaTester = _data["isBetaTester"];
|
|
22257
|
-
this.engageMoveAutoPrompt = _data["engageMoveAutoPrompt"];
|
|
22258
22248
|
}
|
|
22259
22249
|
}
|
|
22260
22250
|
|
|
22261
|
-
static fromJS(data: any):
|
|
22251
|
+
static fromJS(data: any): SetIsBetaTesterRequest {
|
|
22262
22252
|
data = typeof data === 'object' ? data : {};
|
|
22263
|
-
let result = new
|
|
22253
|
+
let result = new SetIsBetaTesterRequest();
|
|
22264
22254
|
result.init(data);
|
|
22265
22255
|
return result;
|
|
22266
22256
|
}
|
|
@@ -22268,14 +22258,12 @@ export class SetUserConfigurationRequest implements ISetUserConfigurationRequest
|
|
|
22268
22258
|
toJSON(data?: any) {
|
|
22269
22259
|
data = typeof data === 'object' ? data : {};
|
|
22270
22260
|
data["isBetaTester"] = this.isBetaTester;
|
|
22271
|
-
data["engageMoveAutoPrompt"] = this.engageMoveAutoPrompt;
|
|
22272
22261
|
return data;
|
|
22273
22262
|
}
|
|
22274
22263
|
}
|
|
22275
22264
|
|
|
22276
|
-
export interface
|
|
22277
|
-
isBetaTester
|
|
22278
|
-
engageMoveAutoPrompt?: boolean | null;
|
|
22265
|
+
export interface ISetIsBetaTesterRequest {
|
|
22266
|
+
isBetaTester: boolean;
|
|
22279
22267
|
}
|
|
22280
22268
|
|
|
22281
22269
|
export class PagedResultOfUserDto implements IPagedResultOfUserDto {
|
|
@@ -47009,7 +46997,7 @@ export interface IMeasurementFormInstanceOverviewDto {
|
|
|
47009
46997
|
progress: MeasurementFormProgressDto;
|
|
47010
46998
|
}
|
|
47011
46999
|
|
|
47012
|
-
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved";
|
|
47000
|
+
export type MeasurementFormInstanceStatus = "Active" | "Cancelled" | "Completed" | "Approved" | "MissingCompletion";
|
|
47013
47001
|
|
|
47014
47002
|
export class MeasurementFormInstanceSchemaOverviewDto implements IMeasurementFormInstanceSchemaOverviewDto {
|
|
47015
47003
|
id!: string;
|