@ignos/api-client 20250922.0.12695 → 20251006.0.12769-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 +10 -29
- package/lib/ignosportal-api.js +52 -66
- package/package.json +1 -1
- package/src/ignosportal-api.ts +59 -94
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -2120,6 +2120,7 @@ export interface IMeasurementFormSchemasClient {
|
|
|
2120
2120
|
getMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
2121
2121
|
updateMeasurementFormSchema(id: string, request: UpdateMeasurementFormSchemaRequest): Promise<MeasurementFormSchemaDto>;
|
|
2122
2122
|
deleteMeasurementForm(id: string): Promise<void>;
|
|
2123
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
2123
2124
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
2124
2125
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
2125
2126
|
updateSchemaRow(id: string, request: UpdateSchemaGroupedElementRowDto): Promise<MeasurementFormSchemaDto>;
|
|
@@ -2203,6 +2204,8 @@ export declare class MeasurementFormSchemasClient extends AuthorizedApiBase impl
|
|
|
2203
2204
|
protected processUpdateMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
2204
2205
|
deleteMeasurementForm(id: string): Promise<void>;
|
|
2205
2206
|
protected processDeleteMeasurementForm(response: Response): Promise<void>;
|
|
2207
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
2208
|
+
protected processGetArchivedMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto>;
|
|
2206
2209
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
2207
2210
|
protected processCopyMeasurementFormSchema(response: Response): Promise<MeasurementFormDto>;
|
|
2208
2211
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
@@ -2368,8 +2371,8 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
2368
2371
|
/**
|
|
2369
2372
|
* @deprecated
|
|
2370
2373
|
*/
|
|
2371
|
-
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
2372
2374
|
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
2375
|
+
exportDimensionReport(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
2373
2376
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
2374
2377
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
2375
2378
|
}
|
|
@@ -2437,10 +2440,10 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
2437
2440
|
/**
|
|
2438
2441
|
* @deprecated
|
|
2439
2442
|
*/
|
|
2440
|
-
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
2441
|
-
protected processExportDimensionReport(response: Response): Promise<DownloadDto>;
|
|
2442
2443
|
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
2443
2444
|
protected processExportDimensionReportV2(response: Response): Promise<DownloadDto>;
|
|
2445
|
+
exportDimensionReport(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
2446
|
+
protected processExportDimensionReport(response: Response): Promise<DownloadDto>;
|
|
2444
2447
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
2445
2448
|
protected processExportDimensionReportValues(response: Response): Promise<DownloadDto>;
|
|
2446
2449
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
@@ -10680,6 +10683,7 @@ export declare class ProductionOrderOperationDto implements IProductionOrderOper
|
|
|
10680
10683
|
quantity: number;
|
|
10681
10684
|
startedQuantity?: number | null;
|
|
10682
10685
|
ongoingQuantity?: number | null;
|
|
10686
|
+
earlierOperationsScrappedQuantity: number;
|
|
10683
10687
|
availableToStartQuantity: number;
|
|
10684
10688
|
workInstructions?: string | null;
|
|
10685
10689
|
note?: string | null;
|
|
@@ -10717,6 +10721,7 @@ export interface IProductionOrderOperationDto {
|
|
|
10717
10721
|
quantity: number;
|
|
10718
10722
|
startedQuantity?: number | null;
|
|
10719
10723
|
ongoingQuantity?: number | null;
|
|
10724
|
+
earlierOperationsScrappedQuantity: number;
|
|
10720
10725
|
availableToStartQuantity: number;
|
|
10721
10726
|
workInstructions?: string | null;
|
|
10722
10727
|
note?: string | null;
|
|
@@ -11140,6 +11145,7 @@ export declare class ProductionScheduleOperationDto implements IProductionSchedu
|
|
|
11140
11145
|
producedQuantity: number;
|
|
11141
11146
|
scrappedQuantity: number;
|
|
11142
11147
|
availableToStartQuantity: number;
|
|
11148
|
+
earlierOperationsScrappedQuantity: number;
|
|
11143
11149
|
startedQuantity?: number | null;
|
|
11144
11150
|
ongoingQuantity?: number | null;
|
|
11145
11151
|
project?: WorkOrderProjectDto | null;
|
|
@@ -11194,6 +11200,7 @@ export interface IProductionScheduleOperationDto {
|
|
|
11194
11200
|
producedQuantity: number;
|
|
11195
11201
|
scrappedQuantity: number;
|
|
11196
11202
|
availableToStartQuantity: number;
|
|
11203
|
+
earlierOperationsScrappedQuantity: number;
|
|
11197
11204
|
startedQuantity?: number | null;
|
|
11198
11205
|
ongoingQuantity?: number | null;
|
|
11199
11206
|
project?: WorkOrderProjectDto | null;
|
|
@@ -13792,32 +13799,6 @@ export interface IUpsertSupplierToMeasurementFormInstanceRequest {
|
|
|
13792
13799
|
procurementLine?: number | null;
|
|
13793
13800
|
externalOrderNumber?: string | null;
|
|
13794
13801
|
}
|
|
13795
|
-
export declare class ExportDimensionReportRequest implements IExportDimensionReportRequest {
|
|
13796
|
-
tenantId?: string | null;
|
|
13797
|
-
supplierEdition?: boolean;
|
|
13798
|
-
includeAllSchemasAndElements?: boolean | null;
|
|
13799
|
-
createBlankReport?: boolean | null;
|
|
13800
|
-
sequences?: string[] | null;
|
|
13801
|
-
serialNumbers?: string[] | null;
|
|
13802
|
-
customerPO?: string | null;
|
|
13803
|
-
workOrder?: string | null;
|
|
13804
|
-
comment?: string | null;
|
|
13805
|
-
constructor(data?: IExportDimensionReportRequest);
|
|
13806
|
-
init(_data?: any): void;
|
|
13807
|
-
static fromJS(data: any): ExportDimensionReportRequest;
|
|
13808
|
-
toJSON(data?: any): any;
|
|
13809
|
-
}
|
|
13810
|
-
export interface IExportDimensionReportRequest {
|
|
13811
|
-
tenantId?: string | null;
|
|
13812
|
-
supplierEdition?: boolean;
|
|
13813
|
-
includeAllSchemasAndElements?: boolean | null;
|
|
13814
|
-
createBlankReport?: boolean | null;
|
|
13815
|
-
sequences?: string[] | null;
|
|
13816
|
-
serialNumbers?: string[] | null;
|
|
13817
|
-
customerPO?: string | null;
|
|
13818
|
-
workOrder?: string | null;
|
|
13819
|
-
comment?: string | null;
|
|
13820
|
-
}
|
|
13821
13802
|
export declare class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
|
|
13822
13803
|
tenantId?: string | null;
|
|
13823
13804
|
type: DimensionReportType;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -17864,6 +17864,46 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase {
|
|
|
17864
17864
|
}
|
|
17865
17865
|
return Promise.resolve(null);
|
|
17866
17866
|
}
|
|
17867
|
+
getArchivedMeasurementFormSchema(id) {
|
|
17868
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
17869
|
+
if (id === undefined || id === null)
|
|
17870
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
17871
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17872
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
17873
|
+
let options_ = {
|
|
17874
|
+
method: "GET",
|
|
17875
|
+
headers: {
|
|
17876
|
+
"Accept": "application/json"
|
|
17877
|
+
}
|
|
17878
|
+
};
|
|
17879
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
17880
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
17881
|
+
}).then((_response) => {
|
|
17882
|
+
return this.processGetArchivedMeasurementFormSchema(_response);
|
|
17883
|
+
});
|
|
17884
|
+
}
|
|
17885
|
+
processGetArchivedMeasurementFormSchema(response) {
|
|
17886
|
+
const status = response.status;
|
|
17887
|
+
let _headers = {};
|
|
17888
|
+
if (response.headers && response.headers.forEach) {
|
|
17889
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
17890
|
+
}
|
|
17891
|
+
;
|
|
17892
|
+
if (status === 200) {
|
|
17893
|
+
return response.text().then((_responseText) => {
|
|
17894
|
+
let result200 = null;
|
|
17895
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17896
|
+
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
17897
|
+
return result200;
|
|
17898
|
+
});
|
|
17899
|
+
}
|
|
17900
|
+
else if (status !== 200 && status !== 204) {
|
|
17901
|
+
return response.text().then((_responseText) => {
|
|
17902
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17903
|
+
});
|
|
17904
|
+
}
|
|
17905
|
+
return Promise.resolve(null);
|
|
17906
|
+
}
|
|
17867
17907
|
copyMeasurementFormSchema(id, request) {
|
|
17868
17908
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
|
|
17869
17909
|
if (id === undefined || id === null)
|
|
@@ -21249,8 +21289,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21249
21289
|
/**
|
|
21250
21290
|
* @deprecated
|
|
21251
21291
|
*/
|
|
21252
|
-
|
|
21253
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21292
|
+
exportDimensionReportV2(id, request) {
|
|
21293
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
21254
21294
|
if (id === undefined || id === null)
|
|
21255
21295
|
throw new Error("The parameter 'id' must be defined.");
|
|
21256
21296
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -21267,10 +21307,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21267
21307
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21268
21308
|
return this.http.fetch(url_, transformedOptions_);
|
|
21269
21309
|
}).then((_response) => {
|
|
21270
|
-
return this.
|
|
21310
|
+
return this.processExportDimensionReportV2(_response);
|
|
21271
21311
|
});
|
|
21272
21312
|
}
|
|
21273
|
-
|
|
21313
|
+
processExportDimensionReportV2(response) {
|
|
21274
21314
|
const status = response.status;
|
|
21275
21315
|
let _headers = {};
|
|
21276
21316
|
if (response.headers && response.headers.forEach) {
|
|
@@ -21292,8 +21332,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21292
21332
|
}
|
|
21293
21333
|
return Promise.resolve(null);
|
|
21294
21334
|
}
|
|
21295
|
-
|
|
21296
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
21335
|
+
exportDimensionReport(id, request) {
|
|
21336
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
21297
21337
|
if (id === undefined || id === null)
|
|
21298
21338
|
throw new Error("The parameter 'id' must be defined.");
|
|
21299
21339
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -21310,10 +21350,10 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
21310
21350
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
21311
21351
|
return this.http.fetch(url_, transformedOptions_);
|
|
21312
21352
|
}).then((_response) => {
|
|
21313
|
-
return this.
|
|
21353
|
+
return this.processExportDimensionReport(_response);
|
|
21314
21354
|
});
|
|
21315
21355
|
}
|
|
21316
|
-
|
|
21356
|
+
processExportDimensionReport(response) {
|
|
21317
21357
|
const status = response.status;
|
|
21318
21358
|
let _headers = {};
|
|
21319
21359
|
if (response.headers && response.headers.forEach) {
|
|
@@ -39727,6 +39767,7 @@ export class ProductionOrderOperationDto {
|
|
|
39727
39767
|
this.quantity = _data["quantity"];
|
|
39728
39768
|
this.startedQuantity = _data["startedQuantity"];
|
|
39729
39769
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
39770
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
39730
39771
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
39731
39772
|
this.workInstructions = _data["workInstructions"];
|
|
39732
39773
|
this.note = _data["note"];
|
|
@@ -39768,6 +39809,7 @@ export class ProductionOrderOperationDto {
|
|
|
39768
39809
|
data["quantity"] = this.quantity;
|
|
39769
39810
|
data["startedQuantity"] = this.startedQuantity;
|
|
39770
39811
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
39812
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
39771
39813
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
39772
39814
|
data["workInstructions"] = this.workInstructions;
|
|
39773
39815
|
data["note"] = this.note;
|
|
@@ -40571,6 +40613,7 @@ export class ProductionScheduleOperationDto {
|
|
|
40571
40613
|
this.producedQuantity = _data["producedQuantity"];
|
|
40572
40614
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
40573
40615
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
40616
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
40574
40617
|
this.startedQuantity = _data["startedQuantity"];
|
|
40575
40618
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
40576
40619
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : undefined;
|
|
@@ -40629,6 +40672,7 @@ export class ProductionScheduleOperationDto {
|
|
|
40629
40672
|
data["producedQuantity"] = this.producedQuantity;
|
|
40630
40673
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
40631
40674
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
40675
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
40632
40676
|
data["startedQuantity"] = this.startedQuantity;
|
|
40633
40677
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
40634
40678
|
data["project"] = this.project ? this.project.toJSON() : undefined;
|
|
@@ -45910,64 +45954,6 @@ export class UpsertSupplierToMeasurementFormInstanceRequest {
|
|
|
45910
45954
|
return data;
|
|
45911
45955
|
}
|
|
45912
45956
|
}
|
|
45913
|
-
export class ExportDimensionReportRequest {
|
|
45914
|
-
constructor(data) {
|
|
45915
|
-
if (data) {
|
|
45916
|
-
for (var property in data) {
|
|
45917
|
-
if (data.hasOwnProperty(property))
|
|
45918
|
-
this[property] = data[property];
|
|
45919
|
-
}
|
|
45920
|
-
}
|
|
45921
|
-
}
|
|
45922
|
-
init(_data) {
|
|
45923
|
-
if (_data) {
|
|
45924
|
-
this.tenantId = _data["tenantId"];
|
|
45925
|
-
this.supplierEdition = _data["supplierEdition"];
|
|
45926
|
-
this.includeAllSchemasAndElements = _data["includeAllSchemasAndElements"];
|
|
45927
|
-
this.createBlankReport = _data["createBlankReport"];
|
|
45928
|
-
if (Array.isArray(_data["sequences"])) {
|
|
45929
|
-
this.sequences = [];
|
|
45930
|
-
for (let item of _data["sequences"])
|
|
45931
|
-
this.sequences.push(item);
|
|
45932
|
-
}
|
|
45933
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
45934
|
-
this.serialNumbers = [];
|
|
45935
|
-
for (let item of _data["serialNumbers"])
|
|
45936
|
-
this.serialNumbers.push(item);
|
|
45937
|
-
}
|
|
45938
|
-
this.customerPO = _data["customerPO"];
|
|
45939
|
-
this.workOrder = _data["workOrder"];
|
|
45940
|
-
this.comment = _data["comment"];
|
|
45941
|
-
}
|
|
45942
|
-
}
|
|
45943
|
-
static fromJS(data) {
|
|
45944
|
-
data = typeof data === 'object' ? data : {};
|
|
45945
|
-
let result = new ExportDimensionReportRequest();
|
|
45946
|
-
result.init(data);
|
|
45947
|
-
return result;
|
|
45948
|
-
}
|
|
45949
|
-
toJSON(data) {
|
|
45950
|
-
data = typeof data === 'object' ? data : {};
|
|
45951
|
-
data["tenantId"] = this.tenantId;
|
|
45952
|
-
data["supplierEdition"] = this.supplierEdition;
|
|
45953
|
-
data["includeAllSchemasAndElements"] = this.includeAllSchemasAndElements;
|
|
45954
|
-
data["createBlankReport"] = this.createBlankReport;
|
|
45955
|
-
if (Array.isArray(this.sequences)) {
|
|
45956
|
-
data["sequences"] = [];
|
|
45957
|
-
for (let item of this.sequences)
|
|
45958
|
-
data["sequences"].push(item);
|
|
45959
|
-
}
|
|
45960
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
45961
|
-
data["serialNumbers"] = [];
|
|
45962
|
-
for (let item of this.serialNumbers)
|
|
45963
|
-
data["serialNumbers"].push(item);
|
|
45964
|
-
}
|
|
45965
|
-
data["customerPO"] = this.customerPO;
|
|
45966
|
-
data["workOrder"] = this.workOrder;
|
|
45967
|
-
data["comment"] = this.comment;
|
|
45968
|
-
return data;
|
|
45969
|
-
}
|
|
45970
|
-
}
|
|
45971
45957
|
export class ExportDimensionReportV2Request {
|
|
45972
45958
|
constructor(data) {
|
|
45973
45959
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -18807,6 +18807,8 @@ export interface IMeasurementFormSchemasClient {
|
|
|
18807
18807
|
|
|
18808
18808
|
deleteMeasurementForm(id: string): Promise<void>;
|
|
18809
18809
|
|
|
18810
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto>;
|
|
18811
|
+
|
|
18810
18812
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto>;
|
|
18811
18813
|
|
|
18812
18814
|
updateSchemaGroupedElements(id: string, request: UpdateSchemaGroupedElementsRequest): Promise<MeasurementFormSchemaDto>;
|
|
@@ -19185,6 +19187,45 @@ export class MeasurementFormSchemasClient extends AuthorizedApiBase implements I
|
|
|
19185
19187
|
return Promise.resolve<void>(null as any);
|
|
19186
19188
|
}
|
|
19187
19189
|
|
|
19190
|
+
getArchivedMeasurementFormSchema(id: string): Promise<MeasurementFormSchemaDto> {
|
|
19191
|
+
let url_ = this.baseUrl + "/measurementforms/schemas/archived/{id}";
|
|
19192
|
+
if (id === undefined || id === null)
|
|
19193
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
19194
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
19195
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
19196
|
+
|
|
19197
|
+
let options_: RequestInit = {
|
|
19198
|
+
method: "GET",
|
|
19199
|
+
headers: {
|
|
19200
|
+
"Accept": "application/json"
|
|
19201
|
+
}
|
|
19202
|
+
};
|
|
19203
|
+
|
|
19204
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
19205
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
19206
|
+
}).then((_response: Response) => {
|
|
19207
|
+
return this.processGetArchivedMeasurementFormSchema(_response);
|
|
19208
|
+
});
|
|
19209
|
+
}
|
|
19210
|
+
|
|
19211
|
+
protected processGetArchivedMeasurementFormSchema(response: Response): Promise<MeasurementFormSchemaDto> {
|
|
19212
|
+
const status = response.status;
|
|
19213
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
19214
|
+
if (status === 200) {
|
|
19215
|
+
return response.text().then((_responseText) => {
|
|
19216
|
+
let result200: any = null;
|
|
19217
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
19218
|
+
result200 = MeasurementFormSchemaDto.fromJS(resultData200);
|
|
19219
|
+
return result200;
|
|
19220
|
+
});
|
|
19221
|
+
} else if (status !== 200 && status !== 204) {
|
|
19222
|
+
return response.text().then((_responseText) => {
|
|
19223
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
19224
|
+
});
|
|
19225
|
+
}
|
|
19226
|
+
return Promise.resolve<MeasurementFormSchemaDto>(null as any);
|
|
19227
|
+
}
|
|
19228
|
+
|
|
19188
19229
|
copyMeasurementFormSchema(id: string, request: CopyMeasurementFormSchema): Promise<MeasurementFormDto> {
|
|
19189
19230
|
let url_ = this.baseUrl + "/measurementforms/schemas/{id}/copy";
|
|
19190
19231
|
if (id === undefined || id === null)
|
|
@@ -21440,10 +21481,10 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
21440
21481
|
/**
|
|
21441
21482
|
* @deprecated
|
|
21442
21483
|
*/
|
|
21443
|
-
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
21444
|
-
|
|
21445
21484
|
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
21446
21485
|
|
|
21486
|
+
exportDimensionReport(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto>;
|
|
21487
|
+
|
|
21447
21488
|
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
21448
21489
|
|
|
21449
21490
|
toggleSchemaInstanceElementDocumentedExternallyOverride(id: string, schemaId: string, elementId: string, tenantId: string | null | undefined): Promise<void>;
|
|
@@ -22620,8 +22661,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22620
22661
|
/**
|
|
22621
22662
|
* @deprecated
|
|
22622
22663
|
*/
|
|
22623
|
-
|
|
22624
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
22664
|
+
exportDimensionReportV2(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto> {
|
|
22665
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/reportv2";
|
|
22625
22666
|
if (id === undefined || id === null)
|
|
22626
22667
|
throw new Error("The parameter 'id' must be defined.");
|
|
22627
22668
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22641,11 +22682,11 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22641
22682
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22642
22683
|
return this.http.fetch(url_, transformedOptions_);
|
|
22643
22684
|
}).then((_response: Response) => {
|
|
22644
|
-
return this.
|
|
22685
|
+
return this.processExportDimensionReportV2(_response);
|
|
22645
22686
|
});
|
|
22646
22687
|
}
|
|
22647
22688
|
|
|
22648
|
-
protected
|
|
22689
|
+
protected processExportDimensionReportV2(response: Response): Promise<DownloadDto> {
|
|
22649
22690
|
const status = response.status;
|
|
22650
22691
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22651
22692
|
if (status === 200) {
|
|
@@ -22663,8 +22704,8 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22663
22704
|
return Promise.resolve<DownloadDto>(null as any);
|
|
22664
22705
|
}
|
|
22665
22706
|
|
|
22666
|
-
|
|
22667
|
-
let url_ = this.baseUrl + "/measurementforms/instances/{id}/
|
|
22707
|
+
exportDimensionReport(id: string, request: ExportDimensionReportV2Request): Promise<DownloadDto> {
|
|
22708
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/report";
|
|
22668
22709
|
if (id === undefined || id === null)
|
|
22669
22710
|
throw new Error("The parameter 'id' must be defined.");
|
|
22670
22711
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
@@ -22684,11 +22725,11 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
22684
22725
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
22685
22726
|
return this.http.fetch(url_, transformedOptions_);
|
|
22686
22727
|
}).then((_response: Response) => {
|
|
22687
|
-
return this.
|
|
22728
|
+
return this.processExportDimensionReport(_response);
|
|
22688
22729
|
});
|
|
22689
22730
|
}
|
|
22690
22731
|
|
|
22691
|
-
protected
|
|
22732
|
+
protected processExportDimensionReport(response: Response): Promise<DownloadDto> {
|
|
22692
22733
|
const status = response.status;
|
|
22693
22734
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
22694
22735
|
if (status === 200) {
|
|
@@ -49157,6 +49198,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49157
49198
|
quantity!: number;
|
|
49158
49199
|
startedQuantity?: number | null;
|
|
49159
49200
|
ongoingQuantity?: number | null;
|
|
49201
|
+
earlierOperationsScrappedQuantity!: number;
|
|
49160
49202
|
availableToStartQuantity!: number;
|
|
49161
49203
|
workInstructions?: string | null;
|
|
49162
49204
|
note?: string | null;
|
|
@@ -49200,6 +49242,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49200
49242
|
this.quantity = _data["quantity"];
|
|
49201
49243
|
this.startedQuantity = _data["startedQuantity"];
|
|
49202
49244
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
49245
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
49203
49246
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
49204
49247
|
this.workInstructions = _data["workInstructions"];
|
|
49205
49248
|
this.note = _data["note"];
|
|
@@ -49243,6 +49286,7 @@ export class ProductionOrderOperationDto implements IProductionOrderOperationDto
|
|
|
49243
49286
|
data["quantity"] = this.quantity;
|
|
49244
49287
|
data["startedQuantity"] = this.startedQuantity;
|
|
49245
49288
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
49289
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
49246
49290
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
49247
49291
|
data["workInstructions"] = this.workInstructions;
|
|
49248
49292
|
data["note"] = this.note;
|
|
@@ -49279,6 +49323,7 @@ export interface IProductionOrderOperationDto {
|
|
|
49279
49323
|
quantity: number;
|
|
49280
49324
|
startedQuantity?: number | null;
|
|
49281
49325
|
ongoingQuantity?: number | null;
|
|
49326
|
+
earlierOperationsScrappedQuantity: number;
|
|
49282
49327
|
availableToStartQuantity: number;
|
|
49283
49328
|
workInstructions?: string | null;
|
|
49284
49329
|
note?: string | null;
|
|
@@ -50464,6 +50509,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50464
50509
|
producedQuantity!: number;
|
|
50465
50510
|
scrappedQuantity!: number;
|
|
50466
50511
|
availableToStartQuantity!: number;
|
|
50512
|
+
earlierOperationsScrappedQuantity!: number;
|
|
50467
50513
|
startedQuantity?: number | null;
|
|
50468
50514
|
ongoingQuantity?: number | null;
|
|
50469
50515
|
project?: WorkOrderProjectDto | null;
|
|
@@ -50527,6 +50573,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50527
50573
|
this.producedQuantity = _data["producedQuantity"];
|
|
50528
50574
|
this.scrappedQuantity = _data["scrappedQuantity"];
|
|
50529
50575
|
this.availableToStartQuantity = _data["availableToStartQuantity"];
|
|
50576
|
+
this.earlierOperationsScrappedQuantity = _data["earlierOperationsScrappedQuantity"];
|
|
50530
50577
|
this.startedQuantity = _data["startedQuantity"];
|
|
50531
50578
|
this.ongoingQuantity = _data["ongoingQuantity"];
|
|
50532
50579
|
this.project = _data["project"] ? WorkOrderProjectDto.fromJS(_data["project"]) : <any>undefined;
|
|
@@ -50587,6 +50634,7 @@ export class ProductionScheduleOperationDto implements IProductionScheduleOperat
|
|
|
50587
50634
|
data["producedQuantity"] = this.producedQuantity;
|
|
50588
50635
|
data["scrappedQuantity"] = this.scrappedQuantity;
|
|
50589
50636
|
data["availableToStartQuantity"] = this.availableToStartQuantity;
|
|
50637
|
+
data["earlierOperationsScrappedQuantity"] = this.earlierOperationsScrappedQuantity;
|
|
50590
50638
|
data["startedQuantity"] = this.startedQuantity;
|
|
50591
50639
|
data["ongoingQuantity"] = this.ongoingQuantity;
|
|
50592
50640
|
data["project"] = this.project ? this.project.toJSON() : <any>undefined;
|
|
@@ -50640,6 +50688,7 @@ export interface IProductionScheduleOperationDto {
|
|
|
50640
50688
|
producedQuantity: number;
|
|
50641
50689
|
scrappedQuantity: number;
|
|
50642
50690
|
availableToStartQuantity: number;
|
|
50691
|
+
earlierOperationsScrappedQuantity: number;
|
|
50643
50692
|
startedQuantity?: number | null;
|
|
50644
50693
|
ongoingQuantity?: number | null;
|
|
50645
50694
|
project?: WorkOrderProjectDto | null;
|
|
@@ -58504,90 +58553,6 @@ export interface IUpsertSupplierToMeasurementFormInstanceRequest {
|
|
|
58504
58553
|
externalOrderNumber?: string | null;
|
|
58505
58554
|
}
|
|
58506
58555
|
|
|
58507
|
-
export class ExportDimensionReportRequest implements IExportDimensionReportRequest {
|
|
58508
|
-
tenantId?: string | null;
|
|
58509
|
-
supplierEdition?: boolean;
|
|
58510
|
-
includeAllSchemasAndElements?: boolean | null;
|
|
58511
|
-
createBlankReport?: boolean | null;
|
|
58512
|
-
sequences?: string[] | null;
|
|
58513
|
-
serialNumbers?: string[] | null;
|
|
58514
|
-
customerPO?: string | null;
|
|
58515
|
-
workOrder?: string | null;
|
|
58516
|
-
comment?: string | null;
|
|
58517
|
-
|
|
58518
|
-
constructor(data?: IExportDimensionReportRequest) {
|
|
58519
|
-
if (data) {
|
|
58520
|
-
for (var property in data) {
|
|
58521
|
-
if (data.hasOwnProperty(property))
|
|
58522
|
-
(<any>this)[property] = (<any>data)[property];
|
|
58523
|
-
}
|
|
58524
|
-
}
|
|
58525
|
-
}
|
|
58526
|
-
|
|
58527
|
-
init(_data?: any) {
|
|
58528
|
-
if (_data) {
|
|
58529
|
-
this.tenantId = _data["tenantId"];
|
|
58530
|
-
this.supplierEdition = _data["supplierEdition"];
|
|
58531
|
-
this.includeAllSchemasAndElements = _data["includeAllSchemasAndElements"];
|
|
58532
|
-
this.createBlankReport = _data["createBlankReport"];
|
|
58533
|
-
if (Array.isArray(_data["sequences"])) {
|
|
58534
|
-
this.sequences = [] as any;
|
|
58535
|
-
for (let item of _data["sequences"])
|
|
58536
|
-
this.sequences!.push(item);
|
|
58537
|
-
}
|
|
58538
|
-
if (Array.isArray(_data["serialNumbers"])) {
|
|
58539
|
-
this.serialNumbers = [] as any;
|
|
58540
|
-
for (let item of _data["serialNumbers"])
|
|
58541
|
-
this.serialNumbers!.push(item);
|
|
58542
|
-
}
|
|
58543
|
-
this.customerPO = _data["customerPO"];
|
|
58544
|
-
this.workOrder = _data["workOrder"];
|
|
58545
|
-
this.comment = _data["comment"];
|
|
58546
|
-
}
|
|
58547
|
-
}
|
|
58548
|
-
|
|
58549
|
-
static fromJS(data: any): ExportDimensionReportRequest {
|
|
58550
|
-
data = typeof data === 'object' ? data : {};
|
|
58551
|
-
let result = new ExportDimensionReportRequest();
|
|
58552
|
-
result.init(data);
|
|
58553
|
-
return result;
|
|
58554
|
-
}
|
|
58555
|
-
|
|
58556
|
-
toJSON(data?: any) {
|
|
58557
|
-
data = typeof data === 'object' ? data : {};
|
|
58558
|
-
data["tenantId"] = this.tenantId;
|
|
58559
|
-
data["supplierEdition"] = this.supplierEdition;
|
|
58560
|
-
data["includeAllSchemasAndElements"] = this.includeAllSchemasAndElements;
|
|
58561
|
-
data["createBlankReport"] = this.createBlankReport;
|
|
58562
|
-
if (Array.isArray(this.sequences)) {
|
|
58563
|
-
data["sequences"] = [];
|
|
58564
|
-
for (let item of this.sequences)
|
|
58565
|
-
data["sequences"].push(item);
|
|
58566
|
-
}
|
|
58567
|
-
if (Array.isArray(this.serialNumbers)) {
|
|
58568
|
-
data["serialNumbers"] = [];
|
|
58569
|
-
for (let item of this.serialNumbers)
|
|
58570
|
-
data["serialNumbers"].push(item);
|
|
58571
|
-
}
|
|
58572
|
-
data["customerPO"] = this.customerPO;
|
|
58573
|
-
data["workOrder"] = this.workOrder;
|
|
58574
|
-
data["comment"] = this.comment;
|
|
58575
|
-
return data;
|
|
58576
|
-
}
|
|
58577
|
-
}
|
|
58578
|
-
|
|
58579
|
-
export interface IExportDimensionReportRequest {
|
|
58580
|
-
tenantId?: string | null;
|
|
58581
|
-
supplierEdition?: boolean;
|
|
58582
|
-
includeAllSchemasAndElements?: boolean | null;
|
|
58583
|
-
createBlankReport?: boolean | null;
|
|
58584
|
-
sequences?: string[] | null;
|
|
58585
|
-
serialNumbers?: string[] | null;
|
|
58586
|
-
customerPO?: string | null;
|
|
58587
|
-
workOrder?: string | null;
|
|
58588
|
-
comment?: string | null;
|
|
58589
|
-
}
|
|
58590
|
-
|
|
58591
58556
|
export class ExportDimensionReportV2Request implements IExportDimensionReportV2Request {
|
|
58592
58557
|
tenantId?: string | null;
|
|
58593
58558
|
type!: DimensionReportType;
|