@ignos/api-client 20250911.0.12585 → 20250911.0.12594
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 +40 -0
- package/lib/ignosportal-api.js +116 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +153 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2359,7 +2359,11 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
2359
2359
|
listSupplierMeasurementFormInstances(supplierId: string): Promise<MeasurementFormSupplierAccessInstanceDto[]>;
|
|
2360
2360
|
upsertSupplierToMeasurmentFormInstance(id: string, supplierId: string, request: UpsertSupplierToMeasurementFormInstanceRequest): Promise<void>;
|
|
2361
2361
|
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
2362
|
+
/**
|
|
2363
|
+
* @deprecated
|
|
2364
|
+
*/
|
|
2362
2365
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
2366
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
2363
2367
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
2364
2368
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
2365
2369
|
}
|
|
@@ -2424,8 +2428,13 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
2424
2428
|
protected processUpsertSupplierToMeasurmentFormInstance(response: Response): Promise<void>;
|
|
2425
2429
|
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
2426
2430
|
protected processRemoveSupplierFromMeasurmentFormInstance(response: Response): Promise<void>;
|
|
2431
|
+
/**
|
|
2432
|
+
* @deprecated
|
|
2433
|
+
*/
|
|
2427
2434
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
2428
2435
|
protected processExportDimensionReport(response: Response): Promise<DownloadDto>;
|
|
2436
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
2437
|
+
protected processExportDimensionReportV2(response: Response): Promise<DownloadDto>;
|
|
2429
2438
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
2430
2439
|
protected processExportDimensionReportValues(response: Response): Promise<DownloadDto>;
|
|
2431
2440
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
@@ -13795,6 +13804,37 @@ export interface IExportDimensionReportRequest {
|
|
|
13795
13804
|
workOrder?: string | null;
|
|
13796
13805
|
comment?: string | null;
|
|
13797
13806
|
}
|
|
13807
|
+
export declare class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
|
|
13808
|
+
tenantId?: string | null;
|
|
13809
|
+
type: DimensionReportType;
|
|
13810
|
+
extras?: DimensionReportExtras | null;
|
|
13811
|
+
specificSerialNumbers?: string[] | null;
|
|
13812
|
+
constructor(data?: IExportDimensionReportV2Request);
|
|
13813
|
+
init(_data?: any): void;
|
|
13814
|
+
static fromJS(data: any): ExportDimensionReportV2Request;
|
|
13815
|
+
toJSON(data?: any): any;
|
|
13816
|
+
}
|
|
13817
|
+
export interface IExportDimensionReportV2Request {
|
|
13818
|
+
tenantId?: string | null;
|
|
13819
|
+
type: DimensionReportType;
|
|
13820
|
+
extras?: DimensionReportExtras | null;
|
|
13821
|
+
specificSerialNumbers?: string[] | null;
|
|
13822
|
+
}
|
|
13823
|
+
export type DimensionReportType = "Customer" | "Blank" | "Fair" | "Full";
|
|
13824
|
+
export declare class DimensionReportExtras implements IDimensionReportExtras {
|
|
13825
|
+
customerPO?: string | null;
|
|
13826
|
+
workOrderNumber?: string | null;
|
|
13827
|
+
comment?: string | null;
|
|
13828
|
+
constructor(data?: IDimensionReportExtras);
|
|
13829
|
+
init(_data?: any): void;
|
|
13830
|
+
static fromJS(data: any): DimensionReportExtras;
|
|
13831
|
+
toJSON(data?: any): any;
|
|
13832
|
+
}
|
|
13833
|
+
export interface IDimensionReportExtras {
|
|
13834
|
+
customerPO?: string | null;
|
|
13835
|
+
workOrderNumber?: string | null;
|
|
13836
|
+
comment?: string | null;
|
|
13837
|
+
}
|
|
13798
13838
|
export declare class ProductionCompanyDto implements IProductionCompanyDto {
|
|
13799
13839
|
id: string;
|
|
13800
13840
|
name: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -21158,6 +21158,9 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21158
21158
|
}
|
|
21159
21159
|
return Promise.resolve(null);
|
|
21160
21160
|
}
|
|
21161
|
+
/**
|
|
21162
|
+
* @deprecated
|
|
21163
|
+
*/
|
|
21161
21164
|
exportDimensionReport(id, request) {
|
|
21162
21165
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
21163
21166
|
if (id === undefined || id === null)
|
|
@@ -21201,6 +21204,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21201
21204
|
}
|
|
21202
21205
|
return Promise.resolve(null);
|
|
21203
21206
|
}
|
|
21207
|
+
exportDimensionReportV2(id, request) {
|
|
21208
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
21209
|
+
if (id === undefined || id === null)
|
|
21210
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
21211
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
21212
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
21213
|
+
const content_ = JSON.stringify(request);
|
|
21214
|
+
let options_ = {
|
|
21215
|
+
body: content_,
|
|
21216
|
+
method: "POST",
|
|
21217
|
+
headers: {
|
|
21218
|
+
"Content-Type": "application/json",
|
|
21219
|
+
"Accept": "application/json"
|
|
21220
|
+
}
|
|
21221
|
+
};
|
|
21222
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21223
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
21224
|
+
}).then((_response) => {
|
|
21225
|
+
return this.processExportDimensionReportV2(_response);
|
|
21226
|
+
});
|
|
21227
|
+
}
|
|
21228
|
+
processExportDimensionReportV2(response) {
|
|
21229
|
+
const status = response.status;
|
|
21230
|
+
let _headers = {};
|
|
21231
|
+
if (response.headers && response.headers.forEach) {
|
|
21232
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
21233
|
+
}
|
|
21234
|
+
;
|
|
21235
|
+
if (status === 200) {
|
|
21236
|
+
return response.text().then((_responseText) => {
|
|
21237
|
+
let result200 = null;
|
|
21238
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
21239
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
21240
|
+
return result200;
|
|
21241
|
+
});
|
|
21242
|
+
}
|
|
21243
|
+
else if (status !== 200 && status !== 204) {
|
|
21244
|
+
return response.text().then((_responseText) => {
|
|
21245
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
21246
|
+
});
|
|
21247
|
+
}
|
|
21248
|
+
return Promise.resolve(null);
|
|
21249
|
+
}
|
|
21204
21250
|
exportDimensionReportValues(id) {
|
|
21205
21251
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
21206
21252
|
if (id === undefined || id === null)
|
|
@@ -45826,6 +45872,76 @@ export class ExportDimensionReportRequest {
|
|
|
45826
45872
|
return data;
|
|
45827
45873
|
}
|
|
45828
45874
|
}
|
|
45875
|
+
export class ExportDimensionReportV2Request {
|
|
45876
|
+
constructor(data) {
|
|
45877
|
+
if (data) {
|
|
45878
|
+
for (var property in data) {
|
|
45879
|
+
if (data.hasOwnProperty(property))
|
|
45880
|
+
this[property] = data[property];
|
|
45881
|
+
}
|
|
45882
|
+
}
|
|
45883
|
+
}
|
|
45884
|
+
init(_data) {
|
|
45885
|
+
if (_data) {
|
|
45886
|
+
this.tenantId = _data["tenantId"];
|
|
45887
|
+
this.type = _data["type"];
|
|
45888
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : undefined;
|
|
45889
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
45890
|
+
this.specificSerialNumbers = [];
|
|
45891
|
+
for (let item of _data["specificSerialNumbers"])
|
|
45892
|
+
this.specificSerialNumbers.push(item);
|
|
45893
|
+
}
|
|
45894
|
+
}
|
|
45895
|
+
}
|
|
45896
|
+
static fromJS(data) {
|
|
45897
|
+
data = typeof data === 'object' ? data : {};
|
|
45898
|
+
let result = new ExportDimensionReportV2Request();
|
|
45899
|
+
result.init(data);
|
|
45900
|
+
return result;
|
|
45901
|
+
}
|
|
45902
|
+
toJSON(data) {
|
|
45903
|
+
data = typeof data === 'object' ? data : {};
|
|
45904
|
+
data["tenantId"] = this.tenantId;
|
|
45905
|
+
data["type"] = this.type;
|
|
45906
|
+
data["extras"] = this.extras ? this.extras.toJSON() : undefined;
|
|
45907
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
45908
|
+
data["specificSerialNumbers"] = [];
|
|
45909
|
+
for (let item of this.specificSerialNumbers)
|
|
45910
|
+
data["specificSerialNumbers"].push(item);
|
|
45911
|
+
}
|
|
45912
|
+
return data;
|
|
45913
|
+
}
|
|
45914
|
+
}
|
|
45915
|
+
export class DimensionReportExtras {
|
|
45916
|
+
constructor(data) {
|
|
45917
|
+
if (data) {
|
|
45918
|
+
for (var property in data) {
|
|
45919
|
+
if (data.hasOwnProperty(property))
|
|
45920
|
+
this[property] = data[property];
|
|
45921
|
+
}
|
|
45922
|
+
}
|
|
45923
|
+
}
|
|
45924
|
+
init(_data) {
|
|
45925
|
+
if (_data) {
|
|
45926
|
+
this.customerPO = _data["customerPO"];
|
|
45927
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
45928
|
+
this.comment = _data["comment"];
|
|
45929
|
+
}
|
|
45930
|
+
}
|
|
45931
|
+
static fromJS(data) {
|
|
45932
|
+
data = typeof data === 'object' ? data : {};
|
|
45933
|
+
let result = new DimensionReportExtras();
|
|
45934
|
+
result.init(data);
|
|
45935
|
+
return result;
|
|
45936
|
+
}
|
|
45937
|
+
toJSON(data) {
|
|
45938
|
+
data = typeof data === 'object' ? data : {};
|
|
45939
|
+
data["customerPO"] = this.customerPO;
|
|
45940
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
45941
|
+
data["comment"] = this.comment;
|
|
45942
|
+
return data;
|
|
45943
|
+
}
|
|
45944
|
+
}
|
|
45829
45945
|
export class ProductionCompanyDto {
|
|
45830
45946
|
constructor(data) {
|
|
45831
45947
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -21347,8 +21347,13 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
21347
21347
|
|
|
21348
21348
|
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
21349
21349
|
|
|
21350
|
+
/**
|
|
21351
|
+
* @deprecated
|
|
21352
|
+
*/
|
|
21350
21353
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
21351
21354
|
|
|
21355
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
21356
|
+
|
|
21352
21357
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
21353
21358
|
|
|
21354
21359
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
@@ -22522,6 +22527,9 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22522
22527
|
return Promise.resolve<void>(null as any);
|
|
22523
22528
|
}
|
|
22524
22529
|
|
|
22530
|
+
/**
|
|
22531
|
+
* @deprecated
|
|
22532
|
+
*/
|
|
22525
22533
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto> {
|
|
22526
22534
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
22527
22535
|
if (id === undefined || id === null)
|
|
@@ -22565,6 +22573,49 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22565
22573
|
return Promise.resolve<DownloadDto>(null as any);
|
|
22566
22574
|
}
|
|
22567
22575
|
|
|
22576
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto> {
|
|
22577
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
22578
|
+
if (id === undefined || id === null)
|
|
22579
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
22580
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
22581
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
22582
|
+
|
|
22583
|
+
const content_ = JSON.stringify(request);
|
|
22584
|
+
|
|
22585
|
+
let options_: RequestInit = {
|
|
22586
|
+
body: content_,
|
|
22587
|
+
method: "POST",
|
|
22588
|
+
headers: {
|
|
22589
|
+
"Content-Type": "application/json",
|
|
22590
|
+
"Accept": "application/json"
|
|
22591
|
+
}
|
|
22592
|
+
};
|
|
22593
|
+
|
|
22594
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22595
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
22596
|
+
}).then((_response: Response) => {
|
|
22597
|
+
return this.processExportDimensionReportV2(_response);
|
|
22598
|
+
});
|
|
22599
|
+
}
|
|
22600
|
+
|
|
22601
|
+
protected processExportDimensionReportV2(response: Response): Promise<DownloadDto> {
|
|
22602
|
+
const status = response.status;
|
|
22603
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22604
|
+
if (status === 200) {
|
|
22605
|
+
return response.text().then((_responseText) => {
|
|
22606
|
+
let result200: any = null;
|
|
22607
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
22608
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
22609
|
+
return result200;
|
|
22610
|
+
});
|
|
22611
|
+
} else if (status !== 200 && status !== 204) {
|
|
22612
|
+
return response.text().then((_responseText) => {
|
|
22613
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
22614
|
+
});
|
|
22615
|
+
}
|
|
22616
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
22617
|
+
}
|
|
22618
|
+
|
|
22568
22619
|
exportDimensionReportValues(id: string): Promise<DownloadDto> {
|
|
22569
22620
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
22570
22621
|
if (id === undefined || id === null)
|
|
@@ -58431,6 +58482,108 @@ export interface IExportDimensionReportRequest {
|
|
|
58431
58482
|
comment?: string | null;
|
|
58432
58483
|
}
|
|
58433
58484
|
|
|
58485
|
+
export class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
|
|
58486
|
+
tenantId?: string | null;
|
|
58487
|
+
type!: DimensionReportType;
|
|
58488
|
+
extras?: DimensionReportExtras | null;
|
|
58489
|
+
specificSerialNumbers?: string[] | null;
|
|
58490
|
+
|
|
58491
|
+
constructor(data?: IExportDimensionReportV2Request) {
|
|
58492
|
+
if (data) {
|
|
58493
|
+
for (var property in data) {
|
|
58494
|
+
if (data.hasOwnProperty(property))
|
|
58495
|
+
(<any>this)[property] = (<any>data)[property];
|
|
58496
|
+
}
|
|
58497
|
+
}
|
|
58498
|
+
}
|
|
58499
|
+
|
|
58500
|
+
init(_data?: any) {
|
|
58501
|
+
if (_data) {
|
|
58502
|
+
this.tenantId = _data["tenantId"];
|
|
58503
|
+
this.type = _data["type"];
|
|
58504
|
+
this.extras = _data["extras"] ? DimensionReportExtras.fromJS(_data["extras"]) : <any>undefined;
|
|
58505
|
+
if (Array.isArray(_data["specificSerialNumbers"])) {
|
|
58506
|
+
this.specificSerialNumbers = [] as any;
|
|
58507
|
+
for (let item of _data["specificSerialNumbers"])
|
|
58508
|
+
this.specificSerialNumbers!.push(item);
|
|
58509
|
+
}
|
|
58510
|
+
}
|
|
58511
|
+
}
|
|
58512
|
+
|
|
58513
|
+
static fromJS(data: any): ExportDimensionReportV2Request {
|
|
58514
|
+
data = typeof data === 'object' ? data : {};
|
|
58515
|
+
let result = new ExportDimensionReportV2Request();
|
|
58516
|
+
result.init(data);
|
|
58517
|
+
return result;
|
|
58518
|
+
}
|
|
58519
|
+
|
|
58520
|
+
toJSON(data?: any) {
|
|
58521
|
+
data = typeof data === 'object' ? data : {};
|
|
58522
|
+
data["tenantId"] = this.tenantId;
|
|
58523
|
+
data["type"] = this.type;
|
|
58524
|
+
data["extras"] = this.extras ? this.extras.toJSON() : <any>undefined;
|
|
58525
|
+
if (Array.isArray(this.specificSerialNumbers)) {
|
|
58526
|
+
data["specificSerialNumbers"] = [];
|
|
58527
|
+
for (let item of this.specificSerialNumbers)
|
|
58528
|
+
data["specificSerialNumbers"].push(item);
|
|
58529
|
+
}
|
|
58530
|
+
return data;
|
|
58531
|
+
}
|
|
58532
|
+
}
|
|
58533
|
+
|
|
58534
|
+
export interface IExportDimensionReportV2Request {
|
|
58535
|
+
tenantId?: string | null;
|
|
58536
|
+
type: DimensionReportType;
|
|
58537
|
+
extras?: DimensionReportExtras | null;
|
|
58538
|
+
specificSerialNumbers?: string[] | null;
|
|
58539
|
+
}
|
|
58540
|
+
|
|
58541
|
+
export type DimensionReportType = "Customer" | "Blank" | "Fair" | "Full";
|
|
58542
|
+
|
|
58543
|
+
export class DimensionReportExtras implements IDimensionReportExtras {
|
|
58544
|
+
customerPO?: string | null;
|
|
58545
|
+
workOrderNumber?: string | null;
|
|
58546
|
+
comment?: string | null;
|
|
58547
|
+
|
|
58548
|
+
constructor(data?: IDimensionReportExtras) {
|
|
58549
|
+
if (data) {
|
|
58550
|
+
for (var property in data) {
|
|
58551
|
+
if (data.hasOwnProperty(property))
|
|
58552
|
+
(<any>this)[property] = (<any>data)[property];
|
|
58553
|
+
}
|
|
58554
|
+
}
|
|
58555
|
+
}
|
|
58556
|
+
|
|
58557
|
+
init(_data?: any) {
|
|
58558
|
+
if (_data) {
|
|
58559
|
+
this.customerPO = _data["customerPO"];
|
|
58560
|
+
this.workOrderNumber = _data["workOrderNumber"];
|
|
58561
|
+
this.comment = _data["comment"];
|
|
58562
|
+
}
|
|
58563
|
+
}
|
|
58564
|
+
|
|
58565
|
+
static fromJS(data: any): DimensionReportExtras {
|
|
58566
|
+
data = typeof data === 'object' ? data : {};
|
|
58567
|
+
let result = new DimensionReportExtras();
|
|
58568
|
+
result.init(data);
|
|
58569
|
+
return result;
|
|
58570
|
+
}
|
|
58571
|
+
|
|
58572
|
+
toJSON(data?: any) {
|
|
58573
|
+
data = typeof data === 'object' ? data : {};
|
|
58574
|
+
data["customerPO"] = this.customerPO;
|
|
58575
|
+
data["workOrderNumber"] = this.workOrderNumber;
|
|
58576
|
+
data["comment"] = this.comment;
|
|
58577
|
+
return data;
|
|
58578
|
+
}
|
|
58579
|
+
}
|
|
58580
|
+
|
|
58581
|
+
export interface IDimensionReportExtras {
|
|
58582
|
+
customerPO?: string | null;
|
|
58583
|
+
workOrderNumber?: string | null;
|
|
58584
|
+
comment?: string | null;
|
|
58585
|
+
}
|
|
58586
|
+
|
|
58434
58587
|
export class ProductionCompanyDto implements IProductionCompanyDto {
|
|
58435
58588
|
id!: string;
|
|
58436
58589
|
name!: string;
|