@ignos/api-client 20250312.0.11355 → 20250313.0.11364
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 +32 -4
- package/lib/ignosportal-api.js +76 -8
- package/package.json +1 -1
- package/src/ignosportal-api.ts +108 -11
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2084,7 +2084,7 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
2084
2084
|
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
2085
2085
|
updateMeasurementFormInstance(id: string, request: UpdateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2086
2086
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
2087
|
-
createMeasurementFormInstance2(id: string,
|
|
2087
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2088
2088
|
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
2089
2089
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
2090
2090
|
approveMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
@@ -2132,7 +2132,7 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
2132
2132
|
protected processUpdateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
2133
2133
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
2134
2134
|
protected processListMeasurementFormInstanceFeedback(response: Response): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
2135
|
-
createMeasurementFormInstance2(id: string,
|
|
2135
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
2136
2136
|
protected processCreateMeasurementFormInstance2(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
2137
2137
|
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
2138
2138
|
protected processCompleteMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
@@ -5867,7 +5867,7 @@ export declare class MachineStateDto implements IMachineStateDto {
|
|
|
5867
5867
|
description?: string | null;
|
|
5868
5868
|
state: string;
|
|
5869
5869
|
machineState: MachineState;
|
|
5870
|
-
startTime
|
|
5870
|
+
startTime: Date;
|
|
5871
5871
|
constructor(data?: IMachineStateDto);
|
|
5872
5872
|
init(_data?: any): void;
|
|
5873
5873
|
static fromJS(data: any): MachineStateDto;
|
|
@@ -5879,7 +5879,7 @@ export interface IMachineStateDto {
|
|
|
5879
5879
|
description?: string | null;
|
|
5880
5880
|
state: string;
|
|
5881
5881
|
machineState: MachineState;
|
|
5882
|
-
startTime
|
|
5882
|
+
startTime: Date;
|
|
5883
5883
|
}
|
|
5884
5884
|
export declare class DowntimeMachineStateDto implements IDowntimeMachineStateDto {
|
|
5885
5885
|
datapoint: MachineStateDatapoint;
|
|
@@ -12309,6 +12309,34 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
12309
12309
|
from: string;
|
|
12310
12310
|
created: Date;
|
|
12311
12311
|
}
|
|
12312
|
+
export declare class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
|
|
12313
|
+
schemaId: string;
|
|
12314
|
+
purchaseOrder?: string | null;
|
|
12315
|
+
series: CreateMeasurementFormInstanceRequestSeries[];
|
|
12316
|
+
constructor(data?: ICreateMeasurementFormInstanceRequest);
|
|
12317
|
+
init(_data?: any): void;
|
|
12318
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequest;
|
|
12319
|
+
toJSON(data?: any): any;
|
|
12320
|
+
}
|
|
12321
|
+
export interface ICreateMeasurementFormInstanceRequest {
|
|
12322
|
+
schemaId: string;
|
|
12323
|
+
purchaseOrder?: string | null;
|
|
12324
|
+
series: CreateMeasurementFormInstanceRequestSeries[];
|
|
12325
|
+
}
|
|
12326
|
+
export declare class CreateMeasurementFormInstanceRequestSeries implements ICreateMeasurementFormInstanceRequestSeries {
|
|
12327
|
+
startingSerialNumber?: string | null;
|
|
12328
|
+
startingSequenceNumber?: string | null;
|
|
12329
|
+
qty: number;
|
|
12330
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSeries);
|
|
12331
|
+
init(_data?: any): void;
|
|
12332
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSeries;
|
|
12333
|
+
toJSON(data?: any): any;
|
|
12334
|
+
}
|
|
12335
|
+
export interface ICreateMeasurementFormInstanceRequestSeries {
|
|
12336
|
+
startingSerialNumber?: string | null;
|
|
12337
|
+
startingSequenceNumber?: string | null;
|
|
12338
|
+
qty: number;
|
|
12339
|
+
}
|
|
12312
12340
|
export declare class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
12313
12341
|
sequences: MeasurementFormWorkorderSequenceDto[];
|
|
12314
12342
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -18053,21 +18053,18 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
18053
18053
|
}
|
|
18054
18054
|
return Promise.resolve(null);
|
|
18055
18055
|
}
|
|
18056
|
-
createMeasurementFormInstance2(id,
|
|
18057
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance
|
|
18056
|
+
createMeasurementFormInstance2(id, request) {
|
|
18057
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
18058
18058
|
if (id === undefined || id === null)
|
|
18059
18059
|
throw new Error("The parameter 'id' must be defined.");
|
|
18060
18060
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
18061
|
-
if (schemaId !== undefined && schemaId !== null)
|
|
18062
|
-
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
18063
|
-
if (sequenceCount === null)
|
|
18064
|
-
throw new Error("The parameter 'sequenceCount' cannot be null.");
|
|
18065
|
-
else if (sequenceCount !== undefined)
|
|
18066
|
-
url_ += "sequenceCount=" + encodeURIComponent("" + sequenceCount) + "&";
|
|
18067
18061
|
url_ = url_.replace(/[?&]$/, "");
|
|
18062
|
+
const content_ = JSON.stringify(request);
|
|
18068
18063
|
let options_ = {
|
|
18064
|
+
body: content_,
|
|
18069
18065
|
method: "POST",
|
|
18070
18066
|
headers: {
|
|
18067
|
+
"Content-Type": "application/json",
|
|
18071
18068
|
"Accept": "application/json"
|
|
18072
18069
|
}
|
|
18073
18070
|
};
|
|
@@ -40933,6 +40930,77 @@ export class MeasurementFormInstanceFeedbackDto {
|
|
|
40933
40930
|
return data;
|
|
40934
40931
|
}
|
|
40935
40932
|
}
|
|
40933
|
+
export class CreateMeasurementFormInstanceRequest {
|
|
40934
|
+
constructor(data) {
|
|
40935
|
+
if (data) {
|
|
40936
|
+
for (var property in data) {
|
|
40937
|
+
if (data.hasOwnProperty(property))
|
|
40938
|
+
this[property] = data[property];
|
|
40939
|
+
}
|
|
40940
|
+
}
|
|
40941
|
+
if (!data) {
|
|
40942
|
+
this.series = [];
|
|
40943
|
+
}
|
|
40944
|
+
}
|
|
40945
|
+
init(_data) {
|
|
40946
|
+
if (_data) {
|
|
40947
|
+
this.schemaId = _data["schemaId"];
|
|
40948
|
+
this.purchaseOrder = _data["purchaseOrder"];
|
|
40949
|
+
if (Array.isArray(_data["series"])) {
|
|
40950
|
+
this.series = [];
|
|
40951
|
+
for (let item of _data["series"])
|
|
40952
|
+
this.series.push(CreateMeasurementFormInstanceRequestSeries.fromJS(item));
|
|
40953
|
+
}
|
|
40954
|
+
}
|
|
40955
|
+
}
|
|
40956
|
+
static fromJS(data) {
|
|
40957
|
+
data = typeof data === 'object' ? data : {};
|
|
40958
|
+
let result = new CreateMeasurementFormInstanceRequest();
|
|
40959
|
+
result.init(data);
|
|
40960
|
+
return result;
|
|
40961
|
+
}
|
|
40962
|
+
toJSON(data) {
|
|
40963
|
+
data = typeof data === 'object' ? data : {};
|
|
40964
|
+
data["schemaId"] = this.schemaId;
|
|
40965
|
+
data["purchaseOrder"] = this.purchaseOrder;
|
|
40966
|
+
if (Array.isArray(this.series)) {
|
|
40967
|
+
data["series"] = [];
|
|
40968
|
+
for (let item of this.series)
|
|
40969
|
+
data["series"].push(item.toJSON());
|
|
40970
|
+
}
|
|
40971
|
+
return data;
|
|
40972
|
+
}
|
|
40973
|
+
}
|
|
40974
|
+
export class CreateMeasurementFormInstanceRequestSeries {
|
|
40975
|
+
constructor(data) {
|
|
40976
|
+
if (data) {
|
|
40977
|
+
for (var property in data) {
|
|
40978
|
+
if (data.hasOwnProperty(property))
|
|
40979
|
+
this[property] = data[property];
|
|
40980
|
+
}
|
|
40981
|
+
}
|
|
40982
|
+
}
|
|
40983
|
+
init(_data) {
|
|
40984
|
+
if (_data) {
|
|
40985
|
+
this.startingSerialNumber = _data["startingSerialNumber"];
|
|
40986
|
+
this.startingSequenceNumber = _data["startingSequenceNumber"];
|
|
40987
|
+
this.qty = _data["qty"];
|
|
40988
|
+
}
|
|
40989
|
+
}
|
|
40990
|
+
static fromJS(data) {
|
|
40991
|
+
data = typeof data === 'object' ? data : {};
|
|
40992
|
+
let result = new CreateMeasurementFormInstanceRequestSeries();
|
|
40993
|
+
result.init(data);
|
|
40994
|
+
return result;
|
|
40995
|
+
}
|
|
40996
|
+
toJSON(data) {
|
|
40997
|
+
data = typeof data === 'object' ? data : {};
|
|
40998
|
+
data["startingSerialNumber"] = this.startingSerialNumber;
|
|
40999
|
+
data["startingSequenceNumber"] = this.startingSequenceNumber;
|
|
41000
|
+
data["qty"] = this.qty;
|
|
41001
|
+
return data;
|
|
41002
|
+
}
|
|
41003
|
+
}
|
|
40936
41004
|
export class UpdateMeasurementFormInstanceRequest {
|
|
40937
41005
|
constructor(data) {
|
|
40938
41006
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -18880,7 +18880,7 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
18880
18880
|
|
|
18881
18881
|
listMeasurementFormInstanceFeedback(id: string): Promise<MeasurementFormInstanceFeedbackDto[]>;
|
|
18882
18882
|
|
|
18883
|
-
createMeasurementFormInstance2(id: string,
|
|
18883
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
18884
18884
|
|
|
18885
18885
|
completeMeasurementFormInstance(id: string, tenantId: string | null | undefined): Promise<MeasurementFormInstanceDto>;
|
|
18886
18886
|
|
|
@@ -19288,22 +19288,20 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
19288
19288
|
return Promise.resolve<MeasurementFormInstanceFeedbackDto[]>(null as any);
|
|
19289
19289
|
}
|
|
19290
19290
|
|
|
19291
|
-
createMeasurementFormInstance2(id: string,
|
|
19292
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance
|
|
19291
|
+
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
19292
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/createinstance";
|
|
19293
19293
|
if (id === undefined || id === null)
|
|
19294
19294
|
throw new Error("The parameter 'id' must be defined.");
|
|
19295
19295
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19296
|
-
if (schemaId !== undefined && schemaId !== null)
|
|
19297
|
-
url_ += "schemaId=" + encodeURIComponent("" + schemaId) + "&";
|
|
19298
|
-
if (sequenceCount === null)
|
|
19299
|
-
throw new Error("The parameter 'sequenceCount' cannot be null.");
|
|
19300
|
-
else if (sequenceCount !== undefined)
|
|
19301
|
-
url_ += "sequenceCount=" + encodeURIComponent("" + sequenceCount) + "&";
|
|
19302
19296
|
url_ = url_.replace(/[?&]$/, "");
|
|
19303
19297
|
|
|
19298
|
+
const content_ = JSON.stringify(request);
|
|
19299
|
+
|
|
19304
19300
|
let options_: RequestInit = {
|
|
19301
|
+
body: content_,
|
|
19305
19302
|
method: "POST",
|
|
19306
19303
|
headers: {
|
|
19304
|
+
"Content-Type": "application/json",
|
|
19307
19305
|
"Accept": "application/json"
|
|
19308
19306
|
}
|
|
19309
19307
|
};
|
|
@@ -32949,7 +32947,7 @@ export class MachineStateDto implements IMachineStateDto {
|
|
|
32949
32947
|
description?: string | null;
|
|
32950
32948
|
state!: string;
|
|
32951
32949
|
machineState!: MachineState;
|
|
32952
|
-
startTime
|
|
32950
|
+
startTime!: Date;
|
|
32953
32951
|
|
|
32954
32952
|
constructor(data?: IMachineStateDto) {
|
|
32955
32953
|
if (data) {
|
|
@@ -32996,7 +32994,7 @@ export interface IMachineStateDto {
|
|
|
32996
32994
|
description?: string | null;
|
|
32997
32995
|
state: string;
|
|
32998
32996
|
machineState: MachineState;
|
|
32999
|
-
startTime
|
|
32997
|
+
startTime: Date;
|
|
33000
32998
|
}
|
|
33001
32999
|
|
|
33002
33000
|
export class DowntimeMachineStateDto implements IDowntimeMachineStateDto {
|
|
@@ -52169,6 +52167,105 @@ export interface IMeasurementFormInstanceFeedbackDto {
|
|
|
52169
52167
|
created: Date;
|
|
52170
52168
|
}
|
|
52171
52169
|
|
|
52170
|
+
export class CreateMeasurementFormInstanceRequest implements ICreateMeasurementFormInstanceRequest {
|
|
52171
|
+
schemaId!: string;
|
|
52172
|
+
purchaseOrder?: string | null;
|
|
52173
|
+
series!: CreateMeasurementFormInstanceRequestSeries[];
|
|
52174
|
+
|
|
52175
|
+
constructor(data?: ICreateMeasurementFormInstanceRequest) {
|
|
52176
|
+
if (data) {
|
|
52177
|
+
for (var property in data) {
|
|
52178
|
+
if (data.hasOwnProperty(property))
|
|
52179
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52180
|
+
}
|
|
52181
|
+
}
|
|
52182
|
+
if (!data) {
|
|
52183
|
+
this.series = [];
|
|
52184
|
+
}
|
|
52185
|
+
}
|
|
52186
|
+
|
|
52187
|
+
init(_data?: any) {
|
|
52188
|
+
if (_data) {
|
|
52189
|
+
this.schemaId = _data["schemaId"];
|
|
52190
|
+
this.purchaseOrder = _data["purchaseOrder"];
|
|
52191
|
+
if (Array.isArray(_data["series"])) {
|
|
52192
|
+
this.series = [] as any;
|
|
52193
|
+
for (let item of _data["series"])
|
|
52194
|
+
this.series!.push(CreateMeasurementFormInstanceRequestSeries.fromJS(item));
|
|
52195
|
+
}
|
|
52196
|
+
}
|
|
52197
|
+
}
|
|
52198
|
+
|
|
52199
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequest {
|
|
52200
|
+
data = typeof data === 'object' ? data : {};
|
|
52201
|
+
let result = new CreateMeasurementFormInstanceRequest();
|
|
52202
|
+
result.init(data);
|
|
52203
|
+
return result;
|
|
52204
|
+
}
|
|
52205
|
+
|
|
52206
|
+
toJSON(data?: any) {
|
|
52207
|
+
data = typeof data === 'object' ? data : {};
|
|
52208
|
+
data["schemaId"] = this.schemaId;
|
|
52209
|
+
data["purchaseOrder"] = this.purchaseOrder;
|
|
52210
|
+
if (Array.isArray(this.series)) {
|
|
52211
|
+
data["series"] = [];
|
|
52212
|
+
for (let item of this.series)
|
|
52213
|
+
data["series"].push(item.toJSON());
|
|
52214
|
+
}
|
|
52215
|
+
return data;
|
|
52216
|
+
}
|
|
52217
|
+
}
|
|
52218
|
+
|
|
52219
|
+
export interface ICreateMeasurementFormInstanceRequest {
|
|
52220
|
+
schemaId: string;
|
|
52221
|
+
purchaseOrder?: string | null;
|
|
52222
|
+
series: CreateMeasurementFormInstanceRequestSeries[];
|
|
52223
|
+
}
|
|
52224
|
+
|
|
52225
|
+
export class CreateMeasurementFormInstanceRequestSeries implements ICreateMeasurementFormInstanceRequestSeries {
|
|
52226
|
+
startingSerialNumber?: string | null;
|
|
52227
|
+
startingSequenceNumber?: string | null;
|
|
52228
|
+
qty!: number;
|
|
52229
|
+
|
|
52230
|
+
constructor(data?: ICreateMeasurementFormInstanceRequestSeries) {
|
|
52231
|
+
if (data) {
|
|
52232
|
+
for (var property in data) {
|
|
52233
|
+
if (data.hasOwnProperty(property))
|
|
52234
|
+
(<any>this)[property] = (<any>data)[property];
|
|
52235
|
+
}
|
|
52236
|
+
}
|
|
52237
|
+
}
|
|
52238
|
+
|
|
52239
|
+
init(_data?: any) {
|
|
52240
|
+
if (_data) {
|
|
52241
|
+
this.startingSerialNumber = _data["startingSerialNumber"];
|
|
52242
|
+
this.startingSequenceNumber = _data["startingSequenceNumber"];
|
|
52243
|
+
this.qty = _data["qty"];
|
|
52244
|
+
}
|
|
52245
|
+
}
|
|
52246
|
+
|
|
52247
|
+
static fromJS(data: any): CreateMeasurementFormInstanceRequestSeries {
|
|
52248
|
+
data = typeof data === 'object' ? data : {};
|
|
52249
|
+
let result = new CreateMeasurementFormInstanceRequestSeries();
|
|
52250
|
+
result.init(data);
|
|
52251
|
+
return result;
|
|
52252
|
+
}
|
|
52253
|
+
|
|
52254
|
+
toJSON(data?: any) {
|
|
52255
|
+
data = typeof data === 'object' ? data : {};
|
|
52256
|
+
data["startingSerialNumber"] = this.startingSerialNumber;
|
|
52257
|
+
data["startingSequenceNumber"] = this.startingSequenceNumber;
|
|
52258
|
+
data["qty"] = this.qty;
|
|
52259
|
+
return data;
|
|
52260
|
+
}
|
|
52261
|
+
}
|
|
52262
|
+
|
|
52263
|
+
export interface ICreateMeasurementFormInstanceRequestSeries {
|
|
52264
|
+
startingSerialNumber?: string | null;
|
|
52265
|
+
startingSequenceNumber?: string | null;
|
|
52266
|
+
qty: number;
|
|
52267
|
+
}
|
|
52268
|
+
|
|
52172
52269
|
export class UpdateMeasurementFormInstanceRequest implements IUpdateMeasurementFormInstanceRequest {
|
|
52173
52270
|
sequences!: MeasurementFormWorkorderSequenceDto[];
|
|
52174
52271
|
suppliers!: MeasurementFormWorkorderSupplierDto[];
|