@ignos/api-client 20240318.0.8999 → 20240319.0.9018
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 +91 -0
- package/lib/ignosportal-api.js +238 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +326 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -645,6 +645,9 @@ export interface IMachinesClient {
|
|
|
645
645
|
getMachineErpData(id: number): Promise<MachineErpDataDto>;
|
|
646
646
|
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
647
647
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
|
|
648
|
+
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
|
|
649
|
+
createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
|
|
650
|
+
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
|
|
648
651
|
}
|
|
649
652
|
export declare class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
650
653
|
private http;
|
|
@@ -677,6 +680,12 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
|
|
|
677
680
|
protected processGetMachineUtilizationSummary(response: Response): Promise<UtilizationSummaryDto>;
|
|
678
681
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
|
|
679
682
|
protected processListCurrentMachineOperators(response: Response): Promise<OperatorAndMachineDto[]>;
|
|
683
|
+
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
|
|
684
|
+
protected processCreateMachineWithoutResource(response: Response): Promise<void>;
|
|
685
|
+
createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
|
|
686
|
+
protected processCreateResourceWithoutMachine(response: Response): Promise<void>;
|
|
687
|
+
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
|
|
688
|
+
protected processCreateResourceWithMachine(response: Response): Promise<void>;
|
|
680
689
|
}
|
|
681
690
|
export interface ILinksClient {
|
|
682
691
|
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
@@ -4907,6 +4916,86 @@ export interface IEmployeeDto {
|
|
|
4907
4916
|
upn?: string | null;
|
|
4908
4917
|
azureAdObjectId?: string | null;
|
|
4909
4918
|
}
|
|
4919
|
+
export declare class CreateMachineWithoutResource implements ICreateMachineWithoutResource {
|
|
4920
|
+
id: string;
|
|
4921
|
+
name: string;
|
|
4922
|
+
description: string;
|
|
4923
|
+
type: string;
|
|
4924
|
+
displayName?: string | null;
|
|
4925
|
+
manufacturer?: string | null;
|
|
4926
|
+
location?: string | null;
|
|
4927
|
+
serialNumber?: string | null;
|
|
4928
|
+
year?: string | null;
|
|
4929
|
+
model?: string | null;
|
|
4930
|
+
constructor(data?: ICreateMachineWithoutResource);
|
|
4931
|
+
init(_data?: any): void;
|
|
4932
|
+
static fromJS(data: any): CreateMachineWithoutResource;
|
|
4933
|
+
toJSON(data?: any): any;
|
|
4934
|
+
}
|
|
4935
|
+
export interface ICreateMachineWithoutResource {
|
|
4936
|
+
id: string;
|
|
4937
|
+
name: string;
|
|
4938
|
+
description: string;
|
|
4939
|
+
type: string;
|
|
4940
|
+
displayName?: string | null;
|
|
4941
|
+
manufacturer?: string | null;
|
|
4942
|
+
location?: string | null;
|
|
4943
|
+
serialNumber?: string | null;
|
|
4944
|
+
year?: string | null;
|
|
4945
|
+
model?: string | null;
|
|
4946
|
+
}
|
|
4947
|
+
export declare class CreateResourceWithoutMachine implements ICreateResourceWithoutMachine {
|
|
4948
|
+
id: string;
|
|
4949
|
+
name: string;
|
|
4950
|
+
type: string;
|
|
4951
|
+
description?: string | null;
|
|
4952
|
+
displayName?: string | null;
|
|
4953
|
+
constructor(data?: ICreateResourceWithoutMachine);
|
|
4954
|
+
init(_data?: any): void;
|
|
4955
|
+
static fromJS(data: any): CreateResourceWithoutMachine;
|
|
4956
|
+
toJSON(data?: any): any;
|
|
4957
|
+
}
|
|
4958
|
+
export interface ICreateResourceWithoutMachine {
|
|
4959
|
+
id: string;
|
|
4960
|
+
name: string;
|
|
4961
|
+
type: string;
|
|
4962
|
+
description?: string | null;
|
|
4963
|
+
displayName?: string | null;
|
|
4964
|
+
}
|
|
4965
|
+
export declare class CreateResourceWithMachine implements ICreateResourceWithMachine {
|
|
4966
|
+
resourceId: string;
|
|
4967
|
+
resourceName: string;
|
|
4968
|
+
resourceDescription?: string | null;
|
|
4969
|
+
displayName?: string | null;
|
|
4970
|
+
machineId: string;
|
|
4971
|
+
machineName: string;
|
|
4972
|
+
machineDescription: string;
|
|
4973
|
+
machineType: string;
|
|
4974
|
+
manufacturer?: string | null;
|
|
4975
|
+
location?: string | null;
|
|
4976
|
+
serialNumber?: string | null;
|
|
4977
|
+
year?: string | null;
|
|
4978
|
+
model?: string | null;
|
|
4979
|
+
constructor(data?: ICreateResourceWithMachine);
|
|
4980
|
+
init(_data?: any): void;
|
|
4981
|
+
static fromJS(data: any): CreateResourceWithMachine;
|
|
4982
|
+
toJSON(data?: any): any;
|
|
4983
|
+
}
|
|
4984
|
+
export interface ICreateResourceWithMachine {
|
|
4985
|
+
resourceId: string;
|
|
4986
|
+
resourceName: string;
|
|
4987
|
+
resourceDescription?: string | null;
|
|
4988
|
+
displayName?: string | null;
|
|
4989
|
+
machineId: string;
|
|
4990
|
+
machineName: string;
|
|
4991
|
+
machineDescription: string;
|
|
4992
|
+
machineType: string;
|
|
4993
|
+
manufacturer?: string | null;
|
|
4994
|
+
location?: string | null;
|
|
4995
|
+
serialNumber?: string | null;
|
|
4996
|
+
year?: string | null;
|
|
4997
|
+
model?: string | null;
|
|
4998
|
+
}
|
|
4910
4999
|
export declare class LinkDto implements ILinkDto {
|
|
4911
5000
|
id: string;
|
|
4912
5001
|
uri: string;
|
|
@@ -7942,6 +8031,7 @@ export interface IActiveWorkDto {
|
|
|
7942
8031
|
operation: ProductionScheduleOperationDto;
|
|
7943
8032
|
}
|
|
7944
8033
|
export declare class CurrentWorkDto implements ICurrentWorkDto {
|
|
8034
|
+
resourceId: string;
|
|
7945
8035
|
upn?: string | null;
|
|
7946
8036
|
personnelNumber: string;
|
|
7947
8037
|
active: boolean;
|
|
@@ -7956,6 +8046,7 @@ export declare class CurrentWorkDto implements ICurrentWorkDto {
|
|
|
7956
8046
|
toJSON(data?: any): any;
|
|
7957
8047
|
}
|
|
7958
8048
|
export interface ICurrentWorkDto {
|
|
8049
|
+
resourceId: string;
|
|
7959
8050
|
upn?: string | null;
|
|
7960
8051
|
personnelNumber: string;
|
|
7961
8052
|
active: boolean;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -5250,6 +5250,114 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
5250
5250
|
}
|
|
5251
5251
|
return Promise.resolve(null);
|
|
5252
5252
|
}
|
|
5253
|
+
createMachineWithoutResource(request) {
|
|
5254
|
+
let url_ = this.baseUrl + "/machines/machine-without-resource";
|
|
5255
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5256
|
+
const content_ = JSON.stringify(request);
|
|
5257
|
+
let options_ = {
|
|
5258
|
+
body: content_,
|
|
5259
|
+
method: "POST",
|
|
5260
|
+
headers: {
|
|
5261
|
+
"Content-Type": "application/json",
|
|
5262
|
+
}
|
|
5263
|
+
};
|
|
5264
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5265
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5266
|
+
}).then((_response) => {
|
|
5267
|
+
return this.processCreateMachineWithoutResource(_response);
|
|
5268
|
+
});
|
|
5269
|
+
}
|
|
5270
|
+
processCreateMachineWithoutResource(response) {
|
|
5271
|
+
const status = response.status;
|
|
5272
|
+
let _headers = {};
|
|
5273
|
+
if (response.headers && response.headers.forEach) {
|
|
5274
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5275
|
+
}
|
|
5276
|
+
;
|
|
5277
|
+
if (status === 204) {
|
|
5278
|
+
return response.text().then((_responseText) => {
|
|
5279
|
+
return;
|
|
5280
|
+
});
|
|
5281
|
+
}
|
|
5282
|
+
else if (status !== 200 && status !== 204) {
|
|
5283
|
+
return response.text().then((_responseText) => {
|
|
5284
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5285
|
+
});
|
|
5286
|
+
}
|
|
5287
|
+
return Promise.resolve(null);
|
|
5288
|
+
}
|
|
5289
|
+
createResourceWithoutMachine(request) {
|
|
5290
|
+
let url_ = this.baseUrl + "/machines/resource-without-machine";
|
|
5291
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5292
|
+
const content_ = JSON.stringify(request);
|
|
5293
|
+
let options_ = {
|
|
5294
|
+
body: content_,
|
|
5295
|
+
method: "POST",
|
|
5296
|
+
headers: {
|
|
5297
|
+
"Content-Type": "application/json",
|
|
5298
|
+
}
|
|
5299
|
+
};
|
|
5300
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5301
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5302
|
+
}).then((_response) => {
|
|
5303
|
+
return this.processCreateResourceWithoutMachine(_response);
|
|
5304
|
+
});
|
|
5305
|
+
}
|
|
5306
|
+
processCreateResourceWithoutMachine(response) {
|
|
5307
|
+
const status = response.status;
|
|
5308
|
+
let _headers = {};
|
|
5309
|
+
if (response.headers && response.headers.forEach) {
|
|
5310
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5311
|
+
}
|
|
5312
|
+
;
|
|
5313
|
+
if (status === 204) {
|
|
5314
|
+
return response.text().then((_responseText) => {
|
|
5315
|
+
return;
|
|
5316
|
+
});
|
|
5317
|
+
}
|
|
5318
|
+
else if (status !== 200 && status !== 204) {
|
|
5319
|
+
return response.text().then((_responseText) => {
|
|
5320
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5321
|
+
});
|
|
5322
|
+
}
|
|
5323
|
+
return Promise.resolve(null);
|
|
5324
|
+
}
|
|
5325
|
+
createResourceWithMachine(request) {
|
|
5326
|
+
let url_ = this.baseUrl + "/machines/resource-with-machine";
|
|
5327
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5328
|
+
const content_ = JSON.stringify(request);
|
|
5329
|
+
let options_ = {
|
|
5330
|
+
body: content_,
|
|
5331
|
+
method: "POST",
|
|
5332
|
+
headers: {
|
|
5333
|
+
"Content-Type": "application/json",
|
|
5334
|
+
}
|
|
5335
|
+
};
|
|
5336
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5337
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5338
|
+
}).then((_response) => {
|
|
5339
|
+
return this.processCreateResourceWithMachine(_response);
|
|
5340
|
+
});
|
|
5341
|
+
}
|
|
5342
|
+
processCreateResourceWithMachine(response) {
|
|
5343
|
+
const status = response.status;
|
|
5344
|
+
let _headers = {};
|
|
5345
|
+
if (response.headers && response.headers.forEach) {
|
|
5346
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
5347
|
+
}
|
|
5348
|
+
;
|
|
5349
|
+
if (status === 204) {
|
|
5350
|
+
return response.text().then((_responseText) => {
|
|
5351
|
+
return;
|
|
5352
|
+
});
|
|
5353
|
+
}
|
|
5354
|
+
else if (status !== 200 && status !== 204) {
|
|
5355
|
+
return response.text().then((_responseText) => {
|
|
5356
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5357
|
+
});
|
|
5358
|
+
}
|
|
5359
|
+
return Promise.resolve(null);
|
|
5360
|
+
}
|
|
5253
5361
|
}
|
|
5254
5362
|
export class LinksClient extends AuthorizedApiBase {
|
|
5255
5363
|
constructor(configuration, baseUrl, http) {
|
|
@@ -23028,6 +23136,134 @@ export class EmployeeDto {
|
|
|
23028
23136
|
return data;
|
|
23029
23137
|
}
|
|
23030
23138
|
}
|
|
23139
|
+
export class CreateMachineWithoutResource {
|
|
23140
|
+
constructor(data) {
|
|
23141
|
+
if (data) {
|
|
23142
|
+
for (var property in data) {
|
|
23143
|
+
if (data.hasOwnProperty(property))
|
|
23144
|
+
this[property] = data[property];
|
|
23145
|
+
}
|
|
23146
|
+
}
|
|
23147
|
+
}
|
|
23148
|
+
init(_data) {
|
|
23149
|
+
if (_data) {
|
|
23150
|
+
this.id = _data["id"];
|
|
23151
|
+
this.name = _data["name"];
|
|
23152
|
+
this.description = _data["description"];
|
|
23153
|
+
this.type = _data["type"];
|
|
23154
|
+
this.displayName = _data["displayName"];
|
|
23155
|
+
this.manufacturer = _data["manufacturer"];
|
|
23156
|
+
this.location = _data["location"];
|
|
23157
|
+
this.serialNumber = _data["serialNumber"];
|
|
23158
|
+
this.year = _data["year"];
|
|
23159
|
+
this.model = _data["model"];
|
|
23160
|
+
}
|
|
23161
|
+
}
|
|
23162
|
+
static fromJS(data) {
|
|
23163
|
+
data = typeof data === 'object' ? data : {};
|
|
23164
|
+
let result = new CreateMachineWithoutResource();
|
|
23165
|
+
result.init(data);
|
|
23166
|
+
return result;
|
|
23167
|
+
}
|
|
23168
|
+
toJSON(data) {
|
|
23169
|
+
data = typeof data === 'object' ? data : {};
|
|
23170
|
+
data["id"] = this.id;
|
|
23171
|
+
data["name"] = this.name;
|
|
23172
|
+
data["description"] = this.description;
|
|
23173
|
+
data["type"] = this.type;
|
|
23174
|
+
data["displayName"] = this.displayName;
|
|
23175
|
+
data["manufacturer"] = this.manufacturer;
|
|
23176
|
+
data["location"] = this.location;
|
|
23177
|
+
data["serialNumber"] = this.serialNumber;
|
|
23178
|
+
data["year"] = this.year;
|
|
23179
|
+
data["model"] = this.model;
|
|
23180
|
+
return data;
|
|
23181
|
+
}
|
|
23182
|
+
}
|
|
23183
|
+
export class CreateResourceWithoutMachine {
|
|
23184
|
+
constructor(data) {
|
|
23185
|
+
if (data) {
|
|
23186
|
+
for (var property in data) {
|
|
23187
|
+
if (data.hasOwnProperty(property))
|
|
23188
|
+
this[property] = data[property];
|
|
23189
|
+
}
|
|
23190
|
+
}
|
|
23191
|
+
}
|
|
23192
|
+
init(_data) {
|
|
23193
|
+
if (_data) {
|
|
23194
|
+
this.id = _data["id"];
|
|
23195
|
+
this.name = _data["name"];
|
|
23196
|
+
this.type = _data["type"];
|
|
23197
|
+
this.description = _data["description"];
|
|
23198
|
+
this.displayName = _data["displayName"];
|
|
23199
|
+
}
|
|
23200
|
+
}
|
|
23201
|
+
static fromJS(data) {
|
|
23202
|
+
data = typeof data === 'object' ? data : {};
|
|
23203
|
+
let result = new CreateResourceWithoutMachine();
|
|
23204
|
+
result.init(data);
|
|
23205
|
+
return result;
|
|
23206
|
+
}
|
|
23207
|
+
toJSON(data) {
|
|
23208
|
+
data = typeof data === 'object' ? data : {};
|
|
23209
|
+
data["id"] = this.id;
|
|
23210
|
+
data["name"] = this.name;
|
|
23211
|
+
data["type"] = this.type;
|
|
23212
|
+
data["description"] = this.description;
|
|
23213
|
+
data["displayName"] = this.displayName;
|
|
23214
|
+
return data;
|
|
23215
|
+
}
|
|
23216
|
+
}
|
|
23217
|
+
export class CreateResourceWithMachine {
|
|
23218
|
+
constructor(data) {
|
|
23219
|
+
if (data) {
|
|
23220
|
+
for (var property in data) {
|
|
23221
|
+
if (data.hasOwnProperty(property))
|
|
23222
|
+
this[property] = data[property];
|
|
23223
|
+
}
|
|
23224
|
+
}
|
|
23225
|
+
}
|
|
23226
|
+
init(_data) {
|
|
23227
|
+
if (_data) {
|
|
23228
|
+
this.resourceId = _data["resourceId"];
|
|
23229
|
+
this.resourceName = _data["resourceName"];
|
|
23230
|
+
this.resourceDescription = _data["resourceDescription"];
|
|
23231
|
+
this.displayName = _data["displayName"];
|
|
23232
|
+
this.machineId = _data["machineId"];
|
|
23233
|
+
this.machineName = _data["machineName"];
|
|
23234
|
+
this.machineDescription = _data["machineDescription"];
|
|
23235
|
+
this.machineType = _data["machineType"];
|
|
23236
|
+
this.manufacturer = _data["manufacturer"];
|
|
23237
|
+
this.location = _data["location"];
|
|
23238
|
+
this.serialNumber = _data["serialNumber"];
|
|
23239
|
+
this.year = _data["year"];
|
|
23240
|
+
this.model = _data["model"];
|
|
23241
|
+
}
|
|
23242
|
+
}
|
|
23243
|
+
static fromJS(data) {
|
|
23244
|
+
data = typeof data === 'object' ? data : {};
|
|
23245
|
+
let result = new CreateResourceWithMachine();
|
|
23246
|
+
result.init(data);
|
|
23247
|
+
return result;
|
|
23248
|
+
}
|
|
23249
|
+
toJSON(data) {
|
|
23250
|
+
data = typeof data === 'object' ? data : {};
|
|
23251
|
+
data["resourceId"] = this.resourceId;
|
|
23252
|
+
data["resourceName"] = this.resourceName;
|
|
23253
|
+
data["resourceDescription"] = this.resourceDescription;
|
|
23254
|
+
data["displayName"] = this.displayName;
|
|
23255
|
+
data["machineId"] = this.machineId;
|
|
23256
|
+
data["machineName"] = this.machineName;
|
|
23257
|
+
data["machineDescription"] = this.machineDescription;
|
|
23258
|
+
data["machineType"] = this.machineType;
|
|
23259
|
+
data["manufacturer"] = this.manufacturer;
|
|
23260
|
+
data["location"] = this.location;
|
|
23261
|
+
data["serialNumber"] = this.serialNumber;
|
|
23262
|
+
data["year"] = this.year;
|
|
23263
|
+
data["model"] = this.model;
|
|
23264
|
+
return data;
|
|
23265
|
+
}
|
|
23266
|
+
}
|
|
23031
23267
|
export class LinkDto {
|
|
23032
23268
|
constructor(data) {
|
|
23033
23269
|
if (data) {
|
|
@@ -28893,6 +29129,7 @@ export class CurrentWorkDto {
|
|
|
28893
29129
|
}
|
|
28894
29130
|
init(_data) {
|
|
28895
29131
|
if (_data) {
|
|
29132
|
+
this.resourceId = _data["resourceId"];
|
|
28896
29133
|
this.upn = _data["upn"];
|
|
28897
29134
|
this.personnelNumber = _data["personnelNumber"];
|
|
28898
29135
|
this.active = _data["active"];
|
|
@@ -28911,6 +29148,7 @@ export class CurrentWorkDto {
|
|
|
28911
29148
|
}
|
|
28912
29149
|
toJSON(data) {
|
|
28913
29150
|
data = typeof data === 'object' ? data : {};
|
|
29151
|
+
data["resourceId"] = this.resourceId;
|
|
28914
29152
|
data["upn"] = this.upn;
|
|
28915
29153
|
data["personnelNumber"] = this.personnelNumber;
|
|
28916
29154
|
data["active"] = this.active;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -5128,6 +5128,12 @@ export interface IMachinesClient {
|
|
|
5128
5128
|
getMachineUtilizationSummary(): Promise<UtilizationSummaryDto>;
|
|
5129
5129
|
|
|
5130
5130
|
listCurrentMachineOperators(machineExternalId: string | null | undefined, operatorNameQuery: string | null | undefined): Promise<OperatorAndMachineDto[]>;
|
|
5131
|
+
|
|
5132
|
+
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
|
|
5133
|
+
|
|
5134
|
+
createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
|
|
5135
|
+
|
|
5136
|
+
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
|
|
5131
5137
|
}
|
|
5132
5138
|
|
|
5133
5139
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -5617,6 +5623,114 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
5617
5623
|
}
|
|
5618
5624
|
return Promise.resolve<OperatorAndMachineDto[]>(null as any);
|
|
5619
5625
|
}
|
|
5626
|
+
|
|
5627
|
+
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void> {
|
|
5628
|
+
let url_ = this.baseUrl + "/machines/machine-without-resource";
|
|
5629
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5630
|
+
|
|
5631
|
+
const content_ = JSON.stringify(request);
|
|
5632
|
+
|
|
5633
|
+
let options_: RequestInit = {
|
|
5634
|
+
body: content_,
|
|
5635
|
+
method: "POST",
|
|
5636
|
+
headers: {
|
|
5637
|
+
"Content-Type": "application/json",
|
|
5638
|
+
}
|
|
5639
|
+
};
|
|
5640
|
+
|
|
5641
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5642
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5643
|
+
}).then((_response: Response) => {
|
|
5644
|
+
return this.processCreateMachineWithoutResource(_response);
|
|
5645
|
+
});
|
|
5646
|
+
}
|
|
5647
|
+
|
|
5648
|
+
protected processCreateMachineWithoutResource(response: Response): Promise<void> {
|
|
5649
|
+
const status = response.status;
|
|
5650
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5651
|
+
if (status === 204) {
|
|
5652
|
+
return response.text().then((_responseText) => {
|
|
5653
|
+
return;
|
|
5654
|
+
});
|
|
5655
|
+
} else if (status !== 200 && status !== 204) {
|
|
5656
|
+
return response.text().then((_responseText) => {
|
|
5657
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5658
|
+
});
|
|
5659
|
+
}
|
|
5660
|
+
return Promise.resolve<void>(null as any);
|
|
5661
|
+
}
|
|
5662
|
+
|
|
5663
|
+
createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void> {
|
|
5664
|
+
let url_ = this.baseUrl + "/machines/resource-without-machine";
|
|
5665
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5666
|
+
|
|
5667
|
+
const content_ = JSON.stringify(request);
|
|
5668
|
+
|
|
5669
|
+
let options_: RequestInit = {
|
|
5670
|
+
body: content_,
|
|
5671
|
+
method: "POST",
|
|
5672
|
+
headers: {
|
|
5673
|
+
"Content-Type": "application/json",
|
|
5674
|
+
}
|
|
5675
|
+
};
|
|
5676
|
+
|
|
5677
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5678
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5679
|
+
}).then((_response: Response) => {
|
|
5680
|
+
return this.processCreateResourceWithoutMachine(_response);
|
|
5681
|
+
});
|
|
5682
|
+
}
|
|
5683
|
+
|
|
5684
|
+
protected processCreateResourceWithoutMachine(response: Response): Promise<void> {
|
|
5685
|
+
const status = response.status;
|
|
5686
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5687
|
+
if (status === 204) {
|
|
5688
|
+
return response.text().then((_responseText) => {
|
|
5689
|
+
return;
|
|
5690
|
+
});
|
|
5691
|
+
} else if (status !== 200 && status !== 204) {
|
|
5692
|
+
return response.text().then((_responseText) => {
|
|
5693
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5694
|
+
});
|
|
5695
|
+
}
|
|
5696
|
+
return Promise.resolve<void>(null as any);
|
|
5697
|
+
}
|
|
5698
|
+
|
|
5699
|
+
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void> {
|
|
5700
|
+
let url_ = this.baseUrl + "/machines/resource-with-machine";
|
|
5701
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
5702
|
+
|
|
5703
|
+
const content_ = JSON.stringify(request);
|
|
5704
|
+
|
|
5705
|
+
let options_: RequestInit = {
|
|
5706
|
+
body: content_,
|
|
5707
|
+
method: "POST",
|
|
5708
|
+
headers: {
|
|
5709
|
+
"Content-Type": "application/json",
|
|
5710
|
+
}
|
|
5711
|
+
};
|
|
5712
|
+
|
|
5713
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
5714
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
5715
|
+
}).then((_response: Response) => {
|
|
5716
|
+
return this.processCreateResourceWithMachine(_response);
|
|
5717
|
+
});
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
protected processCreateResourceWithMachine(response: Response): Promise<void> {
|
|
5721
|
+
const status = response.status;
|
|
5722
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
5723
|
+
if (status === 204) {
|
|
5724
|
+
return response.text().then((_responseText) => {
|
|
5725
|
+
return;
|
|
5726
|
+
});
|
|
5727
|
+
} else if (status !== 200 && status !== 204) {
|
|
5728
|
+
return response.text().then((_responseText) => {
|
|
5729
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
5730
|
+
});
|
|
5731
|
+
}
|
|
5732
|
+
return Promise.resolve<void>(null as any);
|
|
5733
|
+
}
|
|
5620
5734
|
}
|
|
5621
5735
|
|
|
5622
5736
|
export interface ILinksClient {
|
|
@@ -27027,6 +27141,214 @@ export interface IEmployeeDto {
|
|
|
27027
27141
|
azureAdObjectId?: string | null;
|
|
27028
27142
|
}
|
|
27029
27143
|
|
|
27144
|
+
export class CreateMachineWithoutResource implements ICreateMachineWithoutResource {
|
|
27145
|
+
id!: string;
|
|
27146
|
+
name!: string;
|
|
27147
|
+
description!: string;
|
|
27148
|
+
type!: string;
|
|
27149
|
+
displayName?: string | null;
|
|
27150
|
+
manufacturer?: string | null;
|
|
27151
|
+
location?: string | null;
|
|
27152
|
+
serialNumber?: string | null;
|
|
27153
|
+
year?: string | null;
|
|
27154
|
+
model?: string | null;
|
|
27155
|
+
|
|
27156
|
+
constructor(data?: ICreateMachineWithoutResource) {
|
|
27157
|
+
if (data) {
|
|
27158
|
+
for (var property in data) {
|
|
27159
|
+
if (data.hasOwnProperty(property))
|
|
27160
|
+
(<any>this)[property] = (<any>data)[property];
|
|
27161
|
+
}
|
|
27162
|
+
}
|
|
27163
|
+
}
|
|
27164
|
+
|
|
27165
|
+
init(_data?: any) {
|
|
27166
|
+
if (_data) {
|
|
27167
|
+
this.id = _data["id"];
|
|
27168
|
+
this.name = _data["name"];
|
|
27169
|
+
this.description = _data["description"];
|
|
27170
|
+
this.type = _data["type"];
|
|
27171
|
+
this.displayName = _data["displayName"];
|
|
27172
|
+
this.manufacturer = _data["manufacturer"];
|
|
27173
|
+
this.location = _data["location"];
|
|
27174
|
+
this.serialNumber = _data["serialNumber"];
|
|
27175
|
+
this.year = _data["year"];
|
|
27176
|
+
this.model = _data["model"];
|
|
27177
|
+
}
|
|
27178
|
+
}
|
|
27179
|
+
|
|
27180
|
+
static fromJS(data: any): CreateMachineWithoutResource {
|
|
27181
|
+
data = typeof data === 'object' ? data : {};
|
|
27182
|
+
let result = new CreateMachineWithoutResource();
|
|
27183
|
+
result.init(data);
|
|
27184
|
+
return result;
|
|
27185
|
+
}
|
|
27186
|
+
|
|
27187
|
+
toJSON(data?: any) {
|
|
27188
|
+
data = typeof data === 'object' ? data : {};
|
|
27189
|
+
data["id"] = this.id;
|
|
27190
|
+
data["name"] = this.name;
|
|
27191
|
+
data["description"] = this.description;
|
|
27192
|
+
data["type"] = this.type;
|
|
27193
|
+
data["displayName"] = this.displayName;
|
|
27194
|
+
data["manufacturer"] = this.manufacturer;
|
|
27195
|
+
data["location"] = this.location;
|
|
27196
|
+
data["serialNumber"] = this.serialNumber;
|
|
27197
|
+
data["year"] = this.year;
|
|
27198
|
+
data["model"] = this.model;
|
|
27199
|
+
return data;
|
|
27200
|
+
}
|
|
27201
|
+
}
|
|
27202
|
+
|
|
27203
|
+
export interface ICreateMachineWithoutResource {
|
|
27204
|
+
id: string;
|
|
27205
|
+
name: string;
|
|
27206
|
+
description: string;
|
|
27207
|
+
type: string;
|
|
27208
|
+
displayName?: string | null;
|
|
27209
|
+
manufacturer?: string | null;
|
|
27210
|
+
location?: string | null;
|
|
27211
|
+
serialNumber?: string | null;
|
|
27212
|
+
year?: string | null;
|
|
27213
|
+
model?: string | null;
|
|
27214
|
+
}
|
|
27215
|
+
|
|
27216
|
+
export class CreateResourceWithoutMachine implements ICreateResourceWithoutMachine {
|
|
27217
|
+
id!: string;
|
|
27218
|
+
name!: string;
|
|
27219
|
+
type!: string;
|
|
27220
|
+
description?: string | null;
|
|
27221
|
+
displayName?: string | null;
|
|
27222
|
+
|
|
27223
|
+
constructor(data?: ICreateResourceWithoutMachine) {
|
|
27224
|
+
if (data) {
|
|
27225
|
+
for (var property in data) {
|
|
27226
|
+
if (data.hasOwnProperty(property))
|
|
27227
|
+
(<any>this)[property] = (<any>data)[property];
|
|
27228
|
+
}
|
|
27229
|
+
}
|
|
27230
|
+
}
|
|
27231
|
+
|
|
27232
|
+
init(_data?: any) {
|
|
27233
|
+
if (_data) {
|
|
27234
|
+
this.id = _data["id"];
|
|
27235
|
+
this.name = _data["name"];
|
|
27236
|
+
this.type = _data["type"];
|
|
27237
|
+
this.description = _data["description"];
|
|
27238
|
+
this.displayName = _data["displayName"];
|
|
27239
|
+
}
|
|
27240
|
+
}
|
|
27241
|
+
|
|
27242
|
+
static fromJS(data: any): CreateResourceWithoutMachine {
|
|
27243
|
+
data = typeof data === 'object' ? data : {};
|
|
27244
|
+
let result = new CreateResourceWithoutMachine();
|
|
27245
|
+
result.init(data);
|
|
27246
|
+
return result;
|
|
27247
|
+
}
|
|
27248
|
+
|
|
27249
|
+
toJSON(data?: any) {
|
|
27250
|
+
data = typeof data === 'object' ? data : {};
|
|
27251
|
+
data["id"] = this.id;
|
|
27252
|
+
data["name"] = this.name;
|
|
27253
|
+
data["type"] = this.type;
|
|
27254
|
+
data["description"] = this.description;
|
|
27255
|
+
data["displayName"] = this.displayName;
|
|
27256
|
+
return data;
|
|
27257
|
+
}
|
|
27258
|
+
}
|
|
27259
|
+
|
|
27260
|
+
export interface ICreateResourceWithoutMachine {
|
|
27261
|
+
id: string;
|
|
27262
|
+
name: string;
|
|
27263
|
+
type: string;
|
|
27264
|
+
description?: string | null;
|
|
27265
|
+
displayName?: string | null;
|
|
27266
|
+
}
|
|
27267
|
+
|
|
27268
|
+
export class CreateResourceWithMachine implements ICreateResourceWithMachine {
|
|
27269
|
+
resourceId!: string;
|
|
27270
|
+
resourceName!: string;
|
|
27271
|
+
resourceDescription?: string | null;
|
|
27272
|
+
displayName?: string | null;
|
|
27273
|
+
machineId!: string;
|
|
27274
|
+
machineName!: string;
|
|
27275
|
+
machineDescription!: string;
|
|
27276
|
+
machineType!: string;
|
|
27277
|
+
manufacturer?: string | null;
|
|
27278
|
+
location?: string | null;
|
|
27279
|
+
serialNumber?: string | null;
|
|
27280
|
+
year?: string | null;
|
|
27281
|
+
model?: string | null;
|
|
27282
|
+
|
|
27283
|
+
constructor(data?: ICreateResourceWithMachine) {
|
|
27284
|
+
if (data) {
|
|
27285
|
+
for (var property in data) {
|
|
27286
|
+
if (data.hasOwnProperty(property))
|
|
27287
|
+
(<any>this)[property] = (<any>data)[property];
|
|
27288
|
+
}
|
|
27289
|
+
}
|
|
27290
|
+
}
|
|
27291
|
+
|
|
27292
|
+
init(_data?: any) {
|
|
27293
|
+
if (_data) {
|
|
27294
|
+
this.resourceId = _data["resourceId"];
|
|
27295
|
+
this.resourceName = _data["resourceName"];
|
|
27296
|
+
this.resourceDescription = _data["resourceDescription"];
|
|
27297
|
+
this.displayName = _data["displayName"];
|
|
27298
|
+
this.machineId = _data["machineId"];
|
|
27299
|
+
this.machineName = _data["machineName"];
|
|
27300
|
+
this.machineDescription = _data["machineDescription"];
|
|
27301
|
+
this.machineType = _data["machineType"];
|
|
27302
|
+
this.manufacturer = _data["manufacturer"];
|
|
27303
|
+
this.location = _data["location"];
|
|
27304
|
+
this.serialNumber = _data["serialNumber"];
|
|
27305
|
+
this.year = _data["year"];
|
|
27306
|
+
this.model = _data["model"];
|
|
27307
|
+
}
|
|
27308
|
+
}
|
|
27309
|
+
|
|
27310
|
+
static fromJS(data: any): CreateResourceWithMachine {
|
|
27311
|
+
data = typeof data === 'object' ? data : {};
|
|
27312
|
+
let result = new CreateResourceWithMachine();
|
|
27313
|
+
result.init(data);
|
|
27314
|
+
return result;
|
|
27315
|
+
}
|
|
27316
|
+
|
|
27317
|
+
toJSON(data?: any) {
|
|
27318
|
+
data = typeof data === 'object' ? data : {};
|
|
27319
|
+
data["resourceId"] = this.resourceId;
|
|
27320
|
+
data["resourceName"] = this.resourceName;
|
|
27321
|
+
data["resourceDescription"] = this.resourceDescription;
|
|
27322
|
+
data["displayName"] = this.displayName;
|
|
27323
|
+
data["machineId"] = this.machineId;
|
|
27324
|
+
data["machineName"] = this.machineName;
|
|
27325
|
+
data["machineDescription"] = this.machineDescription;
|
|
27326
|
+
data["machineType"] = this.machineType;
|
|
27327
|
+
data["manufacturer"] = this.manufacturer;
|
|
27328
|
+
data["location"] = this.location;
|
|
27329
|
+
data["serialNumber"] = this.serialNumber;
|
|
27330
|
+
data["year"] = this.year;
|
|
27331
|
+
data["model"] = this.model;
|
|
27332
|
+
return data;
|
|
27333
|
+
}
|
|
27334
|
+
}
|
|
27335
|
+
|
|
27336
|
+
export interface ICreateResourceWithMachine {
|
|
27337
|
+
resourceId: string;
|
|
27338
|
+
resourceName: string;
|
|
27339
|
+
resourceDescription?: string | null;
|
|
27340
|
+
displayName?: string | null;
|
|
27341
|
+
machineId: string;
|
|
27342
|
+
machineName: string;
|
|
27343
|
+
machineDescription: string;
|
|
27344
|
+
machineType: string;
|
|
27345
|
+
manufacturer?: string | null;
|
|
27346
|
+
location?: string | null;
|
|
27347
|
+
serialNumber?: string | null;
|
|
27348
|
+
year?: string | null;
|
|
27349
|
+
model?: string | null;
|
|
27350
|
+
}
|
|
27351
|
+
|
|
27030
27352
|
export class LinkDto implements ILinkDto {
|
|
27031
27353
|
id!: string;
|
|
27032
27354
|
uri!: string;
|
|
@@ -35922,6 +36244,7 @@ export interface IActiveWorkDto {
|
|
|
35922
36244
|
}
|
|
35923
36245
|
|
|
35924
36246
|
export class CurrentWorkDto implements ICurrentWorkDto {
|
|
36247
|
+
resourceId!: string;
|
|
35925
36248
|
upn?: string | null;
|
|
35926
36249
|
personnelNumber!: string;
|
|
35927
36250
|
active!: boolean;
|
|
@@ -35942,6 +36265,7 @@ export class CurrentWorkDto implements ICurrentWorkDto {
|
|
|
35942
36265
|
|
|
35943
36266
|
init(_data?: any) {
|
|
35944
36267
|
if (_data) {
|
|
36268
|
+
this.resourceId = _data["resourceId"];
|
|
35945
36269
|
this.upn = _data["upn"];
|
|
35946
36270
|
this.personnelNumber = _data["personnelNumber"];
|
|
35947
36271
|
this.active = _data["active"];
|
|
@@ -35962,6 +36286,7 @@ export class CurrentWorkDto implements ICurrentWorkDto {
|
|
|
35962
36286
|
|
|
35963
36287
|
toJSON(data?: any) {
|
|
35964
36288
|
data = typeof data === 'object' ? data : {};
|
|
36289
|
+
data["resourceId"] = this.resourceId;
|
|
35965
36290
|
data["upn"] = this.upn;
|
|
35966
36291
|
data["personnelNumber"] = this.personnelNumber;
|
|
35967
36292
|
data["active"] = this.active;
|
|
@@ -35975,6 +36300,7 @@ export class CurrentWorkDto implements ICurrentWorkDto {
|
|
|
35975
36300
|
}
|
|
35976
36301
|
|
|
35977
36302
|
export interface ICurrentWorkDto {
|
|
36303
|
+
resourceId: string;
|
|
35978
36304
|
upn?: string | null;
|
|
35979
36305
|
personnelNumber: string;
|
|
35980
36306
|
active: boolean;
|