@ignos/api-client 20260909.265.1-alpha → 20260910.267.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.
- package/lib/ignosportal-api.d.ts +14 -5
- package/lib/ignosportal-api.js +42 -3
- package/package.json +1 -1
- package/src/ignosportal-api.ts +53 -6
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -3367,11 +3367,12 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
3367
3367
|
}
|
|
3368
3368
|
export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
3369
3369
|
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
3370
|
-
|
|
3370
|
+
editMeasurementFormInstance(id: string, request: EditMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
3371
3371
|
listMeasurementFormsByStatus(status: MeasurementFormInstanceStatus | undefined, statusChangedSince: Date | null | undefined, onlyWithReports: boolean | null | undefined, pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
3372
3372
|
postListMeasurementFormsByStatus(request: ListMeasurementFormsByStatusRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
3373
3373
|
deleteInstancesBulk(request: DeleteMeasurementFormsInstancesBulkRequest): Promise<void>;
|
|
3374
3374
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
3375
|
+
getSerialNumberValueCounts(id: string): Promise<SerialNumberValueCountDto[]>;
|
|
3375
3376
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
3376
3377
|
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
3377
3378
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
@@ -3384,8 +3385,8 @@ export declare class MeasurementFormsInstancesInstanceAdminClient extends Author
|
|
|
3384
3385
|
});
|
|
3385
3386
|
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
3386
3387
|
protected processCreateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
3387
|
-
|
|
3388
|
-
protected
|
|
3388
|
+
editMeasurementFormInstance(id: string, request: EditMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
3389
|
+
protected processEditMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
3389
3390
|
listMeasurementFormsByStatus(status: MeasurementFormInstanceStatus | undefined, statusChangedSince: Date | null | undefined, onlyWithReports: boolean | null | undefined, pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
3390
3391
|
protected processListMeasurementFormsByStatus(response: Response): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
3391
3392
|
postListMeasurementFormsByStatus(request: ListMeasurementFormsByStatusRequest | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
@@ -3394,6 +3395,8 @@ export declare class MeasurementFormsInstancesInstanceAdminClient extends Author
|
|
|
3394
3395
|
protected processDeleteInstancesBulk(response: Response): Promise<void>;
|
|
3395
3396
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
3396
3397
|
protected processCreateMeasurementFormInstance2(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
3398
|
+
getSerialNumberValueCounts(id: string): Promise<SerialNumberValueCountDto[]>;
|
|
3399
|
+
protected processGetSerialNumberValueCounts(response: Response): Promise<SerialNumberValueCountDto[]>;
|
|
3397
3400
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
3398
3401
|
protected processReactivateMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto>;
|
|
3399
3402
|
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
@@ -10309,10 +10312,16 @@ export interface CreateMeasurementFormInstanceRequestSerialNumber {
|
|
|
10309
10312
|
serialNumber: string;
|
|
10310
10313
|
customerSerialNumber?: string | null;
|
|
10311
10314
|
}
|
|
10312
|
-
export interface
|
|
10313
|
-
|
|
10315
|
+
export interface EditMeasurementFormInstanceRequest {
|
|
10316
|
+
customerId: string;
|
|
10317
|
+
customerName: string;
|
|
10314
10318
|
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
10315
10319
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
10320
|
+
discardValuesForSerialNumbers?: string[] | null;
|
|
10321
|
+
}
|
|
10322
|
+
export interface SerialNumberValueCountDto {
|
|
10323
|
+
serialNumber?: string | null;
|
|
10324
|
+
count?: number;
|
|
10316
10325
|
}
|
|
10317
10326
|
export interface ProductionCompanyDto {
|
|
10318
10327
|
id: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -28395,7 +28395,7 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
28395
28395
|
}
|
|
28396
28396
|
return Promise.resolve(null);
|
|
28397
28397
|
}
|
|
28398
|
-
|
|
28398
|
+
editMeasurementFormInstance(id, request) {
|
|
28399
28399
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
28400
28400
|
if (id === undefined || id === null)
|
|
28401
28401
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -28413,10 +28413,10 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
28413
28413
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28414
28414
|
return this.http.fetch(url_, transformedOptions_);
|
|
28415
28415
|
}).then((_response) => {
|
|
28416
|
-
return this.
|
|
28416
|
+
return this.processEditMeasurementFormInstance(_response);
|
|
28417
28417
|
});
|
|
28418
28418
|
}
|
|
28419
|
-
|
|
28419
|
+
processEditMeasurementFormInstance(response) {
|
|
28420
28420
|
const status = response.status;
|
|
28421
28421
|
let _headers = {};
|
|
28422
28422
|
if (response.headers && response.headers.forEach) {
|
|
@@ -28606,6 +28606,45 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
28606
28606
|
}
|
|
28607
28607
|
return Promise.resolve(null);
|
|
28608
28608
|
}
|
|
28609
|
+
getSerialNumberValueCounts(id) {
|
|
28610
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/serial-number-value-counts";
|
|
28611
|
+
if (id === undefined || id === null)
|
|
28612
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
28613
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
28614
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
28615
|
+
let options_ = {
|
|
28616
|
+
method: "GET",
|
|
28617
|
+
headers: {
|
|
28618
|
+
"Accept": "application/json"
|
|
28619
|
+
}
|
|
28620
|
+
};
|
|
28621
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
28622
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
28623
|
+
}).then((_response) => {
|
|
28624
|
+
return this.processGetSerialNumberValueCounts(_response);
|
|
28625
|
+
});
|
|
28626
|
+
}
|
|
28627
|
+
processGetSerialNumberValueCounts(response) {
|
|
28628
|
+
const status = response.status;
|
|
28629
|
+
let _headers = {};
|
|
28630
|
+
if (response.headers && response.headers.forEach) {
|
|
28631
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
28632
|
+
}
|
|
28633
|
+
;
|
|
28634
|
+
if (status === 200) {
|
|
28635
|
+
return response.text().then((_responseText) => {
|
|
28636
|
+
let result200 = null;
|
|
28637
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
28638
|
+
return result200;
|
|
28639
|
+
});
|
|
28640
|
+
}
|
|
28641
|
+
else if (status !== 200 && status !== 204) {
|
|
28642
|
+
return response.text().then((_responseText) => {
|
|
28643
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
28644
|
+
});
|
|
28645
|
+
}
|
|
28646
|
+
return Promise.resolve(null);
|
|
28647
|
+
}
|
|
28609
28648
|
reactivateMeasurementFormInstance(id) {
|
|
28610
28649
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
|
|
28611
28650
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -30278,7 +30278,7 @@ export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
|
30278
30278
|
|
|
30279
30279
|
createMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
30280
30280
|
|
|
30281
|
-
|
|
30281
|
+
editMeasurementFormInstance(id: string, request: EditMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
30282
30282
|
|
|
30283
30283
|
listMeasurementFormsByStatus(status: MeasurementFormInstanceStatus | undefined, statusChangedSince: Date | null | undefined, onlyWithReports: boolean | null | undefined, pageSize: number | undefined, search: string | null | undefined, continuationToken: string | null | undefined): Promise<PagedResultOfMeasurementFormInstanceDto>;
|
|
30284
30284
|
|
|
@@ -30288,6 +30288,8 @@ export interface IMeasurementFormsInstancesInstanceAdminClient {
|
|
|
30288
30288
|
|
|
30289
30289
|
createMeasurementFormInstance2(id: string, request: CreateMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
30290
30290
|
|
|
30291
|
+
getSerialNumberValueCounts(id: string): Promise<SerialNumberValueCountDto[]>;
|
|
30292
|
+
|
|
30291
30293
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
30292
30294
|
|
|
30293
30295
|
cancelMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto>;
|
|
@@ -30343,7 +30345,7 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
30343
30345
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
30344
30346
|
}
|
|
30345
30347
|
|
|
30346
|
-
|
|
30348
|
+
editMeasurementFormInstance(id: string, request: EditMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto> {
|
|
30347
30349
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}";
|
|
30348
30350
|
if (id === undefined || id === null)
|
|
30349
30351
|
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
@@ -30364,11 +30366,11 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
30364
30366
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
30365
30367
|
return this.http.fetch(url_, transformedOptions_);
|
|
30366
30368
|
}).then((_response: Response) => {
|
|
30367
|
-
return this.
|
|
30369
|
+
return this.processEditMeasurementFormInstance(_response);
|
|
30368
30370
|
});
|
|
30369
30371
|
}
|
|
30370
30372
|
|
|
30371
|
-
protected
|
|
30373
|
+
protected processEditMeasurementFormInstance(response: Response): Promise<MeasurementFormInstanceDto> {
|
|
30372
30374
|
const status = response.status;
|
|
30373
30375
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
30374
30376
|
if (status === 200) {
|
|
@@ -30553,6 +30555,44 @@ export class MeasurementFormsInstancesInstanceAdminClient extends AuthorizedApiB
|
|
|
30553
30555
|
return Promise.resolve<MeasurementFormInstanceDto>(null as any);
|
|
30554
30556
|
}
|
|
30555
30557
|
|
|
30558
|
+
getSerialNumberValueCounts(id: string): Promise<SerialNumberValueCountDto[]> {
|
|
30559
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/serial-number-value-counts";
|
|
30560
|
+
if (id === undefined || id === null)
|
|
30561
|
+
throw new globalThis.Error("The parameter 'id' must be defined.");
|
|
30562
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
30563
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
30564
|
+
|
|
30565
|
+
let options_: RequestInit = {
|
|
30566
|
+
method: "GET",
|
|
30567
|
+
headers: {
|
|
30568
|
+
"Accept": "application/json"
|
|
30569
|
+
}
|
|
30570
|
+
};
|
|
30571
|
+
|
|
30572
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
30573
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
30574
|
+
}).then((_response: Response) => {
|
|
30575
|
+
return this.processGetSerialNumberValueCounts(_response);
|
|
30576
|
+
});
|
|
30577
|
+
}
|
|
30578
|
+
|
|
30579
|
+
protected processGetSerialNumberValueCounts(response: Response): Promise<SerialNumberValueCountDto[]> {
|
|
30580
|
+
const status = response.status;
|
|
30581
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
30582
|
+
if (status === 200) {
|
|
30583
|
+
return response.text().then((_responseText) => {
|
|
30584
|
+
let result200: any = null;
|
|
30585
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver) as SerialNumberValueCountDto[];
|
|
30586
|
+
return result200;
|
|
30587
|
+
});
|
|
30588
|
+
} else if (status !== 200 && status !== 204) {
|
|
30589
|
+
return response.text().then((_responseText) => {
|
|
30590
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
30591
|
+
});
|
|
30592
|
+
}
|
|
30593
|
+
return Promise.resolve<SerialNumberValueCountDto[]>(null as any);
|
|
30594
|
+
}
|
|
30595
|
+
|
|
30556
30596
|
reactivateMeasurementFormInstance(id: string): Promise<MeasurementFormInstanceDto> {
|
|
30557
30597
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reactivate";
|
|
30558
30598
|
if (id === undefined || id === null)
|
|
@@ -40127,10 +40167,17 @@ export interface CreateMeasurementFormInstanceRequestSerialNumber {
|
|
|
40127
40167
|
customerSerialNumber?: string | null;
|
|
40128
40168
|
}
|
|
40129
40169
|
|
|
40130
|
-
export interface
|
|
40131
|
-
|
|
40170
|
+
export interface EditMeasurementFormInstanceRequest {
|
|
40171
|
+
customerId: string;
|
|
40172
|
+
customerName: string;
|
|
40132
40173
|
serialNumbers: MeasurementFormWorkorderSerialNumberDto[];
|
|
40133
40174
|
suppliers: MeasurementFormWorkorderSupplierDto[];
|
|
40175
|
+
discardValuesForSerialNumbers?: string[] | null;
|
|
40176
|
+
}
|
|
40177
|
+
|
|
40178
|
+
export interface SerialNumberValueCountDto {
|
|
40179
|
+
serialNumber?: string | null;
|
|
40180
|
+
count?: number;
|
|
40134
40181
|
}
|
|
40135
40182
|
|
|
40136
40183
|
export interface ProductionCompanyDto {
|