@ignos/api-client 20240605.0.9431 → 20240612.0.9521
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 +7 -0
- package/lib/ignosportal-api.js +44 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +50 -0
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>;
|
|
@@ -9437,6 +9440,7 @@ export declare class MeasurementFormSettingsDto implements IMeasurementFormSetti
|
|
|
9437
9440
|
autoCompleteSchemaInstances: boolean;
|
|
9438
9441
|
generateReportForApprovedInstances: boolean;
|
|
9439
9442
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
9443
|
+
requireCustomerOnWorkOrders: boolean;
|
|
9440
9444
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
9441
9445
|
constructor(data?: IMeasurementFormSettingsDto);
|
|
9442
9446
|
init(_data?: any): void;
|
|
@@ -9452,6 +9456,7 @@ export interface IMeasurementFormSettingsDto {
|
|
|
9452
9456
|
autoCompleteSchemaInstances: boolean;
|
|
9453
9457
|
generateReportForApprovedInstances: boolean;
|
|
9454
9458
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
9459
|
+
requireCustomerOnWorkOrders: boolean;
|
|
9455
9460
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
9456
9461
|
}
|
|
9457
9462
|
export declare class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSettings {
|
|
@@ -9463,6 +9468,7 @@ export declare class UpdateMeasurementFormSettings implements IUpdateMeasurement
|
|
|
9463
9468
|
autoCompleteSchemaInstances: boolean;
|
|
9464
9469
|
generateReportForApprovedInstances: boolean;
|
|
9465
9470
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
9471
|
+
requireCustomerOnWorkOrders: boolean;
|
|
9466
9472
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
9467
9473
|
constructor(data?: IUpdateMeasurementFormSettings);
|
|
9468
9474
|
init(_data?: any): void;
|
|
@@ -9478,6 +9484,7 @@ export interface IUpdateMeasurementFormSettings {
|
|
|
9478
9484
|
autoCompleteSchemaInstances: boolean;
|
|
9479
9485
|
generateReportForApprovedInstances: boolean;
|
|
9480
9486
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
9487
|
+
requireCustomerOnWorkOrders: boolean;
|
|
9481
9488
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
9482
9489
|
}
|
|
9483
9490
|
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(/[?&]$/, "");
|
|
@@ -32682,6 +32722,7 @@ export class MeasurementFormSettingsDto {
|
|
|
32682
32722
|
this.autoCompleteSchemaInstances = _data["autoCompleteSchemaInstances"];
|
|
32683
32723
|
this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
|
|
32684
32724
|
this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
|
|
32725
|
+
this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
|
|
32685
32726
|
if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
|
|
32686
32727
|
this.resourceTypesBlockingAutoWorkflow = [];
|
|
32687
32728
|
for (let item of _data["resourceTypesBlockingAutoWorkflow"])
|
|
@@ -32705,6 +32746,7 @@ export class MeasurementFormSettingsDto {
|
|
|
32705
32746
|
data["autoCompleteSchemaInstances"] = this.autoCompleteSchemaInstances;
|
|
32706
32747
|
data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
|
|
32707
32748
|
data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
|
|
32749
|
+
data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
|
|
32708
32750
|
if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
|
|
32709
32751
|
data["resourceTypesBlockingAutoWorkflow"] = [];
|
|
32710
32752
|
for (let item of this.resourceTypesBlockingAutoWorkflow)
|
|
@@ -32732,6 +32774,7 @@ export class UpdateMeasurementFormSettings {
|
|
|
32732
32774
|
this.autoCompleteSchemaInstances = _data["autoCompleteSchemaInstances"];
|
|
32733
32775
|
this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
|
|
32734
32776
|
this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
|
|
32777
|
+
this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
|
|
32735
32778
|
if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
|
|
32736
32779
|
this.resourceTypesBlockingAutoWorkflow = [];
|
|
32737
32780
|
for (let item of _data["resourceTypesBlockingAutoWorkflow"])
|
|
@@ -32755,6 +32798,7 @@ export class UpdateMeasurementFormSettings {
|
|
|
32755
32798
|
data["autoCompleteSchemaInstances"] = this.autoCompleteSchemaInstances;
|
|
32756
32799
|
data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
|
|
32757
32800
|
data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
|
|
32801
|
+
data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
|
|
32758
32802
|
if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
|
|
32759
32803
|
data["resourceTypesBlockingAutoWorkflow"] = [];
|
|
32760
32804
|
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(/[?&]$/, "");
|
|
@@ -41161,6 +41203,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
41161
41203
|
autoCompleteSchemaInstances!: boolean;
|
|
41162
41204
|
generateReportForApprovedInstances!: boolean;
|
|
41163
41205
|
includeMeasuringToolsInReportAsDefault!: boolean;
|
|
41206
|
+
requireCustomerOnWorkOrders!: boolean;
|
|
41164
41207
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
41165
41208
|
|
|
41166
41209
|
constructor(data?: IMeasurementFormSettingsDto) {
|
|
@@ -41182,6 +41225,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
41182
41225
|
this.autoCompleteSchemaInstances = _data["autoCompleteSchemaInstances"];
|
|
41183
41226
|
this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
|
|
41184
41227
|
this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
|
|
41228
|
+
this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
|
|
41185
41229
|
if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
|
|
41186
41230
|
this.resourceTypesBlockingAutoWorkflow = [] as any;
|
|
41187
41231
|
for (let item of _data["resourceTypesBlockingAutoWorkflow"])
|
|
@@ -41207,6 +41251,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
41207
41251
|
data["autoCompleteSchemaInstances"] = this.autoCompleteSchemaInstances;
|
|
41208
41252
|
data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
|
|
41209
41253
|
data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
|
|
41254
|
+
data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
|
|
41210
41255
|
if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
|
|
41211
41256
|
data["resourceTypesBlockingAutoWorkflow"] = [];
|
|
41212
41257
|
for (let item of this.resourceTypesBlockingAutoWorkflow)
|
|
@@ -41225,6 +41270,7 @@ export interface IMeasurementFormSettingsDto {
|
|
|
41225
41270
|
autoCompleteSchemaInstances: boolean;
|
|
41226
41271
|
generateReportForApprovedInstances: boolean;
|
|
41227
41272
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
41273
|
+
requireCustomerOnWorkOrders: boolean;
|
|
41228
41274
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
41229
41275
|
}
|
|
41230
41276
|
|
|
@@ -41237,6 +41283,7 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
|
|
|
41237
41283
|
autoCompleteSchemaInstances!: boolean;
|
|
41238
41284
|
generateReportForApprovedInstances!: boolean;
|
|
41239
41285
|
includeMeasuringToolsInReportAsDefault!: boolean;
|
|
41286
|
+
requireCustomerOnWorkOrders!: boolean;
|
|
41240
41287
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
41241
41288
|
|
|
41242
41289
|
constructor(data?: IUpdateMeasurementFormSettings) {
|
|
@@ -41258,6 +41305,7 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
|
|
|
41258
41305
|
this.autoCompleteSchemaInstances = _data["autoCompleteSchemaInstances"];
|
|
41259
41306
|
this.generateReportForApprovedInstances = _data["generateReportForApprovedInstances"];
|
|
41260
41307
|
this.includeMeasuringToolsInReportAsDefault = _data["includeMeasuringToolsInReportAsDefault"];
|
|
41308
|
+
this.requireCustomerOnWorkOrders = _data["requireCustomerOnWorkOrders"];
|
|
41261
41309
|
if (Array.isArray(_data["resourceTypesBlockingAutoWorkflow"])) {
|
|
41262
41310
|
this.resourceTypesBlockingAutoWorkflow = [] as any;
|
|
41263
41311
|
for (let item of _data["resourceTypesBlockingAutoWorkflow"])
|
|
@@ -41283,6 +41331,7 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
|
|
|
41283
41331
|
data["autoCompleteSchemaInstances"] = this.autoCompleteSchemaInstances;
|
|
41284
41332
|
data["generateReportForApprovedInstances"] = this.generateReportForApprovedInstances;
|
|
41285
41333
|
data["includeMeasuringToolsInReportAsDefault"] = this.includeMeasuringToolsInReportAsDefault;
|
|
41334
|
+
data["requireCustomerOnWorkOrders"] = this.requireCustomerOnWorkOrders;
|
|
41286
41335
|
if (Array.isArray(this.resourceTypesBlockingAutoWorkflow)) {
|
|
41287
41336
|
data["resourceTypesBlockingAutoWorkflow"] = [];
|
|
41288
41337
|
for (let item of this.resourceTypesBlockingAutoWorkflow)
|
|
@@ -41301,6 +41350,7 @@ export interface IUpdateMeasurementFormSettings {
|
|
|
41301
41350
|
autoCompleteSchemaInstances: boolean;
|
|
41302
41351
|
generateReportForApprovedInstances: boolean;
|
|
41303
41352
|
includeMeasuringToolsInReportAsDefault: boolean;
|
|
41353
|
+
requireCustomerOnWorkOrders: boolean;
|
|
41304
41354
|
resourceTypesBlockingAutoWorkflow?: string[] | null;
|
|
41305
41355
|
}
|
|
41306
41356
|
|