@ignos/api-client 20240605.0.9431 → 20240613.0.9531
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 +16 -6
- package/lib/ignosportal-api.js +104 -4
- package/package.json +1 -1
- package/src/ignosportal-api.ts +119 -12
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -536,6 +536,7 @@ export interface IMoveBookingClient {
|
|
|
536
536
|
getWorkOrderBooking(workOrderId: string): Promise<BookingDto[]>;
|
|
537
537
|
createBooking(bookingRequest: BookingRequestDto): Promise<BookingDto>;
|
|
538
538
|
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
539
|
+
revertBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
539
540
|
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
540
541
|
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
|
|
541
542
|
}
|
|
@@ -558,6 +559,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
558
559
|
protected processCreateBooking(response: Response): Promise<BookingDto>;
|
|
559
560
|
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
560
561
|
protected processCancelBooking(response: Response): Promise<BookingDto>;
|
|
562
|
+
revertBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
563
|
+
protected processRevertBooking(response: Response): Promise<BookingDto>;
|
|
561
564
|
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
562
565
|
protected processStartDelivery(response: Response): Promise<BookingDto>;
|
|
563
566
|
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
|
|
@@ -583,8 +586,8 @@ export interface IMoveTrackingClient {
|
|
|
583
586
|
getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
|
|
584
587
|
getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
|
|
585
588
|
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
586
|
-
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<
|
|
587
|
-
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<
|
|
589
|
+
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
590
|
+
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
588
591
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
589
592
|
createLabel(trackingIds: string[]): Promise<FileResponse>;
|
|
590
593
|
}
|
|
@@ -601,10 +604,10 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
601
604
|
protected processGetWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto>;
|
|
602
605
|
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
603
606
|
protected processListWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto[]>;
|
|
604
|
-
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<
|
|
605
|
-
protected processCreateTrackingEvents(response: Response): Promise<
|
|
606
|
-
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<
|
|
607
|
-
protected processCreateTrackingHistory(response: Response): Promise<
|
|
607
|
+
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
608
|
+
protected processCreateTrackingEvents(response: Response): Promise<TrackingHistoryDto[]>;
|
|
609
|
+
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
610
|
+
protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]>;
|
|
608
611
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
609
612
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
610
613
|
createLabel(trackingIds: string[]): Promise<FileResponse>;
|
|
@@ -1775,6 +1778,7 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
1775
1778
|
upsertSupplierToMeasurmentFormInstance(id: string, supplierId: string, request: UpsertSupplierToMeasurementFormInstanceRequest): Promise<void>;
|
|
1776
1779
|
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
1777
1780
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
1781
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
1778
1782
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
1779
1783
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
1780
1784
|
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
@@ -1840,6 +1844,8 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
1840
1844
|
protected processRemoveSupplierFromMeasurmentFormInstance(response: Response): Promise<void>;
|
|
1841
1845
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
1842
1846
|
protected processExportDimensionReport(response: Response): Promise<DownloadDto>;
|
|
1847
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
1848
|
+
protected processExportDimensionReportValues(response: Response): Promise<DownloadDto>;
|
|
1843
1849
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
1844
1850
|
protected processUpdateSchemaInstanceElements(response: Response): Promise<void>;
|
|
1845
1851
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
@@ -9437,6 +9443,7 @@ export declare class MeasurementFormSettingsDto implements IMeasurementFormSetti
|
|
|
9437
9443
|
autoCompleteSchemaInstances: boolean;
|
|
9438
9444
|
generateReportForApprovedInstances: boolean;
|
|
9439
9445
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
9446
|
+
requireCustomerOnWorkOrders: boolean;
|
|
9440
9447
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
9441
9448
|
constructor(data?: IMeasurementFormSettingsDto);
|
|
9442
9449
|
init(_data?: any): void;
|
|
@@ -9452,6 +9459,7 @@ export interface IMeasurementFormSettingsDto {
|
|
|
9452
9459
|
autoCompleteSchemaInstances: boolean;
|
|
9453
9460
|
generateReportForApprovedInstances: boolean;
|
|
9454
9461
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
9462
|
+
requireCustomerOnWorkOrders: boolean;
|
|
9455
9463
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
9456
9464
|
}
|
|
9457
9465
|
export declare class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSettings {
|
|
@@ -9463,6 +9471,7 @@ export declare class UpdateMeasurementFormSettings implements IUpdateMeasurement
|
|
|
9463
9471
|
autoCompleteSchemaInstances: boolean;
|
|
9464
9472
|
generateReportForApprovedInstances: boolean;
|
|
9465
9473
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
9474
|
+
requireCustomerOnWorkOrders: boolean;
|
|
9466
9475
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
9467
9476
|
constructor(data?: IUpdateMeasurementFormSettings);
|
|
9468
9477
|
init(_data?: any): void;
|
|
@@ -9478,6 +9487,7 @@ export interface IUpdateMeasurementFormSettings {
|
|
|
9478
9487
|
autoCompleteSchemaInstances: boolean;
|
|
9479
9488
|
generateReportForApprovedInstances: boolean;
|
|
9480
9489
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
9490
|
+
requireCustomerOnWorkOrders: boolean;
|
|
9481
9491
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
9482
9492
|
}
|
|
9483
9493
|
export declare class MeasurementFormCustomerSettingsDto implements IMeasurementFormCustomerSettingsDto {
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -3710,6 +3710,46 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
3710
3710
|
}
|
|
3711
3711
|
return Promise.resolve(null);
|
|
3712
3712
|
}
|
|
3713
|
+
revertBooking(bookingUpdate) {
|
|
3714
|
+
let url_ = this.baseUrl + "/move/booking/revert";
|
|
3715
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3716
|
+
const content_ = JSON.stringify(bookingUpdate);
|
|
3717
|
+
let options_ = {
|
|
3718
|
+
body: content_,
|
|
3719
|
+
method: "POST",
|
|
3720
|
+
headers: {
|
|
3721
|
+
"Content-Type": "application/json",
|
|
3722
|
+
"Accept": "application/json"
|
|
3723
|
+
}
|
|
3724
|
+
};
|
|
3725
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3726
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
3727
|
+
}).then((_response) => {
|
|
3728
|
+
return this.processRevertBooking(_response);
|
|
3729
|
+
});
|
|
3730
|
+
}
|
|
3731
|
+
processRevertBooking(response) {
|
|
3732
|
+
const status = response.status;
|
|
3733
|
+
let _headers = {};
|
|
3734
|
+
if (response.headers && response.headers.forEach) {
|
|
3735
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
3736
|
+
}
|
|
3737
|
+
;
|
|
3738
|
+
if (status === 200) {
|
|
3739
|
+
return response.text().then((_responseText) => {
|
|
3740
|
+
let result200 = null;
|
|
3741
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3742
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
3743
|
+
return result200;
|
|
3744
|
+
});
|
|
3745
|
+
}
|
|
3746
|
+
else if (status !== 200 && status !== 204) {
|
|
3747
|
+
return response.text().then((_responseText) => {
|
|
3748
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3749
|
+
});
|
|
3750
|
+
}
|
|
3751
|
+
return Promise.resolve(null);
|
|
3752
|
+
}
|
|
3713
3753
|
startDelivery(bookingUpdate) {
|
|
3714
3754
|
let url_ = this.baseUrl + "/move/booking/startdelivery";
|
|
3715
3755
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -4033,6 +4073,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4033
4073
|
method: "POST",
|
|
4034
4074
|
headers: {
|
|
4035
4075
|
"Content-Type": "application/json",
|
|
4076
|
+
"Accept": "application/json"
|
|
4036
4077
|
}
|
|
4037
4078
|
};
|
|
4038
4079
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -4048,9 +4089,16 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4048
4089
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4049
4090
|
}
|
|
4050
4091
|
;
|
|
4051
|
-
if (status ===
|
|
4092
|
+
if (status === 200) {
|
|
4052
4093
|
return response.text().then((_responseText) => {
|
|
4053
|
-
|
|
4094
|
+
let result200 = null;
|
|
4095
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4096
|
+
if (Array.isArray(resultData200)) {
|
|
4097
|
+
result200 = [];
|
|
4098
|
+
for (let item of resultData200)
|
|
4099
|
+
result200.push(TrackingHistoryDto.fromJS(item));
|
|
4100
|
+
}
|
|
4101
|
+
return result200;
|
|
4054
4102
|
});
|
|
4055
4103
|
}
|
|
4056
4104
|
else if (status !== 200 && status !== 204) {
|
|
@@ -4069,6 +4117,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4069
4117
|
method: "POST",
|
|
4070
4118
|
headers: {
|
|
4071
4119
|
"Content-Type": "application/json",
|
|
4120
|
+
"Accept": "application/json"
|
|
4072
4121
|
}
|
|
4073
4122
|
};
|
|
4074
4123
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -4084,9 +4133,16 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4084
4133
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4085
4134
|
}
|
|
4086
4135
|
;
|
|
4087
|
-
if (status ===
|
|
4136
|
+
if (status === 200) {
|
|
4088
4137
|
return response.text().then((_responseText) => {
|
|
4089
|
-
|
|
4138
|
+
let result200 = null;
|
|
4139
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4140
|
+
if (Array.isArray(resultData200)) {
|
|
4141
|
+
result200 = [];
|
|
4142
|
+
for (let item of resultData200)
|
|
4143
|
+
result200.push(TrackingHistoryDto.fromJS(item));
|
|
4144
|
+
}
|
|
4145
|
+
return result200;
|
|
4090
4146
|
});
|
|
4091
4147
|
}
|
|
4092
4148
|
else if (status !== 200 && status !== 204) {
|
|
@@ -16285,6 +16341,46 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
16285
16341
|
}
|
|
16286
16342
|
return Promise.resolve(null);
|
|
16287
16343
|
}
|
|
16344
|
+
exportDimensionReportValues(id) {
|
|
16345
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
16346
|
+
if (id === undefined || id === null)
|
|
16347
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
16348
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
16349
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
16350
|
+
let options_ = {
|
|
16351
|
+
method: "POST",
|
|
16352
|
+
headers: {
|
|
16353
|
+
"Accept": "application/json"
|
|
16354
|
+
}
|
|
16355
|
+
};
|
|
16356
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
16357
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
16358
|
+
}).then((_response) => {
|
|
16359
|
+
return this.processExportDimensionReportValues(_response);
|
|
16360
|
+
});
|
|
16361
|
+
}
|
|
16362
|
+
processExportDimensionReportValues(response) {
|
|
16363
|
+
const status = response.status;
|
|
16364
|
+
let _headers = {};
|
|
16365
|
+
if (response.headers && response.headers.forEach) {
|
|
16366
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
16367
|
+
}
|
|
16368
|
+
;
|
|
16369
|
+
if (status === 200) {
|
|
16370
|
+
return response.text().then((_responseText) => {
|
|
16371
|
+
let result200 = null;
|
|
16372
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
16373
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
16374
|
+
return result200;
|
|
16375
|
+
});
|
|
16376
|
+
}
|
|
16377
|
+
else if (status !== 200 && status !== 204) {
|
|
16378
|
+
return response.text().then((_responseText) => {
|
|
16379
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
16380
|
+
});
|
|
16381
|
+
}
|
|
16382
|
+
return Promise.resolve(null);
|
|
16383
|
+
}
|
|
16288
16384
|
updateSchemaInstanceElements(id, schemaId, request) {
|
|
16289
16385
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
|
|
16290
16386
|
if (id === undefined || id === null)
|
|
@@ -32682,6 +32778,7 @@ export class MeasurementFormSettingsDto {
|
|
|
32682
32778
|
this.autoCompleteSchemaInstances = _data["autoCompleteSchemaInstances"];
|
|
32683
32779
|
this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
|
|
32684
32780
|
this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
|
|
32781
|
+
this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
|
|
32685
32782
|
if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
|
|
32686
32783
|
this.resourceTypesBlockingAutoWorkflow = [];
|
|
32687
32784
|
for (let item of _data["resourceTypesBlockingAutoWorkflow"])
|
|
@@ -32705,6 +32802,7 @@ export class MeasurementFormSettingsDto {
|
|
|
32705
32802
|
data["autoCompleteSchemaInstances"] = this.autoCompleteSchemaInstances;
|
|
32706
32803
|
data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
|
|
32707
32804
|
data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
|
|
32805
|
+
data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
|
|
32708
32806
|
if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
|
|
32709
32807
|
data["resourceTypesBlockingAutoWorkflow"] = [];
|
|
32710
32808
|
for (let item of this.resourceTypesBlockingAutoWorkflow)
|
|
@@ -32732,6 +32830,7 @@ export class UpdateMeasurementFormSettings {
|
|
|
32732
32830
|
this.autoCompleteSchemaInstances = _data["autoCompleteSchemaInstances"];
|
|
32733
32831
|
this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
|
|
32734
32832
|
this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
|
|
32833
|
+
this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
|
|
32735
32834
|
if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
|
|
32736
32835
|
this.resourceTypesBlockingAutoWorkflow = [];
|
|
32737
32836
|
for (let item of _data["resourceTypesBlockingAutoWorkflow"])
|
|
@@ -32755,6 +32854,7 @@ export class UpdateMeasurementFormSettings {
|
|
|
32755
32854
|
data["autoCompleteSchemaInstances"] = this.autoCompleteSchemaInstances;
|
|
32756
32855
|
data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
|
|
32757
32856
|
data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
|
|
32857
|
+
data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
|
|
32758
32858
|
if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
|
|
32759
32859
|
data["resourceTypesBlockingAutoWorkflow"] = [];
|
|
32760
32860
|
for (let item of this.resourceTypesBlockingAutoWorkflow)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -3759,6 +3759,8 @@ export interface IMoveBookingClient {
|
|
|
3759
3759
|
|
|
3760
3760
|
cancelBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
3761
3761
|
|
|
3762
|
+
revertBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
3763
|
+
|
|
3762
3764
|
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto>;
|
|
3763
3765
|
|
|
3764
3766
|
finishDelivery(bookingUpdate: BookingDeliveryUpdateDto): Promise<BookingDto>;
|
|
@@ -4020,6 +4022,46 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
4020
4022
|
return Promise.resolve<BookingDto>(null as any);
|
|
4021
4023
|
}
|
|
4022
4024
|
|
|
4025
|
+
revertBooking(bookingUpdate: BookingUpdateDto): Promise<BookingDto> {
|
|
4026
|
+
let url_ = this.baseUrl + "/move/booking/revert";
|
|
4027
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4028
|
+
|
|
4029
|
+
const content_ = JSON.stringify(bookingUpdate);
|
|
4030
|
+
|
|
4031
|
+
let options_: RequestInit = {
|
|
4032
|
+
body: content_,
|
|
4033
|
+
method: "POST",
|
|
4034
|
+
headers: {
|
|
4035
|
+
"Content-Type": "application/json",
|
|
4036
|
+
"Accept": "application/json"
|
|
4037
|
+
}
|
|
4038
|
+
};
|
|
4039
|
+
|
|
4040
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
4041
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
4042
|
+
}).then((_response: Response) => {
|
|
4043
|
+
return this.processRevertBooking(_response);
|
|
4044
|
+
});
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
protected processRevertBooking(response: Response): Promise<BookingDto> {
|
|
4048
|
+
const status = response.status;
|
|
4049
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4050
|
+
if (status === 200) {
|
|
4051
|
+
return response.text().then((_responseText) => {
|
|
4052
|
+
let result200: any = null;
|
|
4053
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4054
|
+
result200 = BookingDto.fromJS(resultData200);
|
|
4055
|
+
return result200;
|
|
4056
|
+
});
|
|
4057
|
+
} else if (status !== 200 && status !== 204) {
|
|
4058
|
+
return response.text().then((_responseText) => {
|
|
4059
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4060
|
+
});
|
|
4061
|
+
}
|
|
4062
|
+
return Promise.resolve<BookingDto>(null as any);
|
|
4063
|
+
}
|
|
4064
|
+
|
|
4023
4065
|
startDelivery(bookingUpdate: BookingUpdateDto): Promise<BookingDto> {
|
|
4024
4066
|
let url_ = this.baseUrl + "/move/booking/startdelivery";
|
|
4025
4067
|
url_ = url_.replace(/[?&]$/, "");
|
|
@@ -4220,9 +4262,9 @@ export interface IMoveTrackingClient {
|
|
|
4220
4262
|
|
|
4221
4263
|
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
4222
4264
|
|
|
4223
|
-
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<
|
|
4265
|
+
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
4224
4266
|
|
|
4225
|
-
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<
|
|
4267
|
+
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
4226
4268
|
|
|
4227
4269
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
4228
4270
|
|
|
@@ -4362,7 +4404,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4362
4404
|
return Promise.resolve<TrackingWorkOrderDto[]>(null as any);
|
|
4363
4405
|
}
|
|
4364
4406
|
|
|
4365
|
-
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<
|
|
4407
|
+
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]> {
|
|
4366
4408
|
let url_ = this.baseUrl + "/move/tracking/event";
|
|
4367
4409
|
url_ = url_.replace(/[?&]$/, "");
|
|
4368
4410
|
|
|
@@ -4373,6 +4415,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4373
4415
|
method: "POST",
|
|
4374
4416
|
headers: {
|
|
4375
4417
|
"Content-Type": "application/json",
|
|
4418
|
+
"Accept": "application/json"
|
|
4376
4419
|
}
|
|
4377
4420
|
};
|
|
4378
4421
|
|
|
@@ -4383,22 +4426,29 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4383
4426
|
});
|
|
4384
4427
|
}
|
|
4385
4428
|
|
|
4386
|
-
protected processCreateTrackingEvents(response: Response): Promise<
|
|
4429
|
+
protected processCreateTrackingEvents(response: Response): Promise<TrackingHistoryDto[]> {
|
|
4387
4430
|
const status = response.status;
|
|
4388
4431
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4389
|
-
if (status ===
|
|
4432
|
+
if (status === 200) {
|
|
4390
4433
|
return response.text().then((_responseText) => {
|
|
4391
|
-
|
|
4434
|
+
let result200: any = null;
|
|
4435
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4436
|
+
if (Array.isArray(resultData200)) {
|
|
4437
|
+
result200 = [] as any;
|
|
4438
|
+
for (let item of resultData200)
|
|
4439
|
+
result200!.push(TrackingHistoryDto.fromJS(item));
|
|
4440
|
+
}
|
|
4441
|
+
return result200;
|
|
4392
4442
|
});
|
|
4393
4443
|
} else if (status !== 200 && status !== 204) {
|
|
4394
4444
|
return response.text().then((_responseText) => {
|
|
4395
4445
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4396
4446
|
});
|
|
4397
4447
|
}
|
|
4398
|
-
return Promise.resolve<
|
|
4448
|
+
return Promise.resolve<TrackingHistoryDto[]>(null as any);
|
|
4399
4449
|
}
|
|
4400
4450
|
|
|
4401
|
-
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<
|
|
4451
|
+
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]> {
|
|
4402
4452
|
let url_ = this.baseUrl + "/move/tracking/history";
|
|
4403
4453
|
url_ = url_.replace(/[?&]$/, "");
|
|
4404
4454
|
|
|
@@ -4409,6 +4459,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4409
4459
|
method: "POST",
|
|
4410
4460
|
headers: {
|
|
4411
4461
|
"Content-Type": "application/json",
|
|
4462
|
+
"Accept": "application/json"
|
|
4412
4463
|
}
|
|
4413
4464
|
};
|
|
4414
4465
|
|
|
@@ -4419,19 +4470,26 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4419
4470
|
});
|
|
4420
4471
|
}
|
|
4421
4472
|
|
|
4422
|
-
protected processCreateTrackingHistory(response: Response): Promise<
|
|
4473
|
+
protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]> {
|
|
4423
4474
|
const status = response.status;
|
|
4424
4475
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4425
|
-
if (status ===
|
|
4476
|
+
if (status === 200) {
|
|
4426
4477
|
return response.text().then((_responseText) => {
|
|
4427
|
-
|
|
4478
|
+
let result200: any = null;
|
|
4479
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4480
|
+
if (Array.isArray(resultData200)) {
|
|
4481
|
+
result200 = [] as any;
|
|
4482
|
+
for (let item of resultData200)
|
|
4483
|
+
result200!.push(TrackingHistoryDto.fromJS(item));
|
|
4484
|
+
}
|
|
4485
|
+
return result200;
|
|
4428
4486
|
});
|
|
4429
4487
|
} else if (status !== 200 && status !== 204) {
|
|
4430
4488
|
return response.text().then((_responseText) => {
|
|
4431
4489
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4432
4490
|
});
|
|
4433
4491
|
}
|
|
4434
|
-
return Promise.resolve<
|
|
4492
|
+
return Promise.resolve<TrackingHistoryDto[]>(null as any);
|
|
4435
4493
|
}
|
|
4436
4494
|
|
|
4437
4495
|
deleteTrackingHistory(trackingId: string): Promise<void> {
|
|
@@ -16138,6 +16196,8 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
16138
16196
|
|
|
16139
16197
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
16140
16198
|
|
|
16199
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
16200
|
+
|
|
16141
16201
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
16142
16202
|
|
|
16143
16203
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
@@ -17313,6 +17373,45 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
17313
17373
|
return Promise.resolve<DownloadDto>(null as any);
|
|
17314
17374
|
}
|
|
17315
17375
|
|
|
17376
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto> {
|
|
17377
|
+
let url_ = this.baseUrl + "/measurementforms/instances/{id}/exportvalues";
|
|
17378
|
+
if (id === undefined || id === null)
|
|
17379
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
17380
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
17381
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
17382
|
+
|
|
17383
|
+
let options_: RequestInit = {
|
|
17384
|
+
method: "POST",
|
|
17385
|
+
headers: {
|
|
17386
|
+
"Accept": "application/json"
|
|
17387
|
+
}
|
|
17388
|
+
};
|
|
17389
|
+
|
|
17390
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
17391
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
17392
|
+
}).then((_response: Response) => {
|
|
17393
|
+
return this.processExportDimensionReportValues(_response);
|
|
17394
|
+
});
|
|
17395
|
+
}
|
|
17396
|
+
|
|
17397
|
+
protected processExportDimensionReportValues(response: Response): Promise<DownloadDto> {
|
|
17398
|
+
const status = response.status;
|
|
17399
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
17400
|
+
if (status === 200) {
|
|
17401
|
+
return response.text().then((_responseText) => {
|
|
17402
|
+
let result200: any = null;
|
|
17403
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
17404
|
+
result200 = DownloadDto.fromJS(resultData200);
|
|
17405
|
+
return result200;
|
|
17406
|
+
});
|
|
17407
|
+
} else if (status !== 200 && status !== 204) {
|
|
17408
|
+
return response.text().then((_responseText) => {
|
|
17409
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
17410
|
+
});
|
|
17411
|
+
}
|
|
17412
|
+
return Promise.resolve<DownloadDto>(null as any);
|
|
17413
|
+
}
|
|
17414
|
+
|
|
17316
17415
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void> {
|
|
17317
17416
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
|
|
17318
17417
|
if (id === undefined || id === null)
|
|
@@ -41161,6 +41260,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
41161
41260
|
autoCompleteSchemaInstances!: boolean;
|
|
41162
41261
|
generateReportForApprovedInstances!: boolean;
|
|
41163
41262
|
includeMeasuringToolsInReportAsDefault!: boolean;
|
|
41263
|
+
requireCustomerOnWorkOrders!: boolean;
|
|
41164
41264
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
41165
41265
|
|
|
41166
41266
|
constructor(data?: IMeasurementFormSettingsDto) {
|
|
@@ -41182,6 +41282,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
41182
41282
|
this.autoCompleteSchemaInstances = _data["autoCompleteSchemaInstances"];
|
|
41183
41283
|
this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
|
|
41184
41284
|
this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
|
|
41285
|
+
this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
|
|
41185
41286
|
if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
|
|
41186
41287
|
this.resourceTypesBlockingAutoWorkflow = [] as any;
|
|
41187
41288
|
for (let item of _data["resourceTypesBlockingAutoWorkflow"])
|
|
@@ -41207,6 +41308,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
41207
41308
|
data["autoCompleteSchemaInstances"] = this.autoCompleteSchemaInstances;
|
|
41208
41309
|
data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
|
|
41209
41310
|
data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
|
|
41311
|
+
data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
|
|
41210
41312
|
if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
|
|
41211
41313
|
data["resourceTypesBlockingAutoWorkflow"] = [];
|
|
41212
41314
|
for (let item of this.resourceTypesBlockingAutoWorkflow)
|
|
@@ -41225,6 +41327,7 @@ export interface IMeasurementFormSettingsDto {
|
|
|
41225
41327
|
autoCompleteSchemaInstances: boolean;
|
|
41226
41328
|
generateReportForApprovedInstances: boolean;
|
|
41227
41329
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
41330
|
+
requireCustomerOnWorkOrders: boolean;
|
|
41228
41331
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
41229
41332
|
}
|
|
41230
41333
|
|
|
@@ -41237,6 +41340,7 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
|
|
|
41237
41340
|
autoCompleteSchemaInstances!: boolean;
|
|
41238
41341
|
generateReportForApprovedInstances!: boolean;
|
|
41239
41342
|
includeMeasuringToolsInReportAsDefault!: boolean;
|
|
41343
|
+
requireCustomerOnWorkOrders!: boolean;
|
|
41240
41344
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
41241
41345
|
|
|
41242
41346
|
constructor(data?: IUpdateMeasurementFormSettings) {
|
|
@@ -41258,6 +41362,7 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
|
|
|
41258
41362
|
this.autoCompleteSchemaInstances = _data["autoCompleteSchemaInstances"];
|
|
41259
41363
|
this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
|
|
41260
41364
|
this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
|
|
41365
|
+
this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
|
|
41261
41366
|
if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
|
|
41262
41367
|
this.resourceTypesBlockingAutoWorkflow = [] as any;
|
|
41263
41368
|
for (let item of _data["resourceTypesBlockingAutoWorkflow"])
|
|
@@ -41283,6 +41388,7 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
|
|
|
41283
41388
|
data["autoCompleteSchemaInstances"] = this.autoCompleteSchemaInstances;
|
|
41284
41389
|
data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
|
|
41285
41390
|
data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
|
|
41391
|
+
data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
|
|
41286
41392
|
if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
|
|
41287
41393
|
data["resourceTypesBlockingAutoWorkflow"] = [];
|
|
41288
41394
|
for (let item of this.resourceTypesBlockingAutoWorkflow)
|
|
@@ -41301,6 +41407,7 @@ export interface IUpdateMeasurementFormSettings {
|
|
|
41301
41407
|
autoCompleteSchemaInstances: boolean;
|
|
41302
41408
|
generateReportForApprovedInstances: boolean;
|
|
41303
41409
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
41410
|
+
requireCustomerOnWorkOrders: boolean;
|
|
41304
41411
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
41305
41412
|
}
|
|
41306
41413
|
|