@ignos/api-client 20241112.0.10697 → 20241125.0.10760
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 +25 -31
- package/lib/ignosportal-api.js +81 -95
- package/package.json +1 -1
- package/src/ignosportal-api.ts +104 -121
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -754,6 +754,7 @@ export interface IMachinesClient {
|
|
|
754
754
|
createMachineWithoutResource(request: CreateMachineWithoutResource): Promise<void>;
|
|
755
755
|
createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
|
|
756
756
|
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
|
|
757
|
+
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
757
758
|
}
|
|
758
759
|
export declare class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
759
760
|
private http;
|
|
@@ -794,6 +795,8 @@ export declare class MachinesClient extends AuthorizedApiBase implements IMachin
|
|
|
794
795
|
protected processCreateResourceWithoutMachine(response: Response): Promise<void>;
|
|
795
796
|
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
|
|
796
797
|
protected processCreateResourceWithMachine(response: Response): Promise<void>;
|
|
798
|
+
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
799
|
+
protected processCreateResourceInResourceGroup(response: Response): Promise<void>;
|
|
797
800
|
}
|
|
798
801
|
export interface ILinksClient {
|
|
799
802
|
getAllLinks(scope: string | null | undefined): Promise<LinkDto[]>;
|
|
@@ -1471,10 +1474,6 @@ export interface IMoveBookingClient {
|
|
|
1471
1474
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
1472
1475
|
getParcelBooking(parcelId: string): Promise<BookingDto[]>;
|
|
1473
1476
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
1474
|
-
/**
|
|
1475
|
-
* @deprecated
|
|
1476
|
-
*/
|
|
1477
|
-
createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]>;
|
|
1478
1477
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1479
1478
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
1480
1479
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
@@ -1494,11 +1493,6 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1494
1493
|
protected processGetParcelBooking(response: Response): Promise<BookingDto[]>;
|
|
1495
1494
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
1496
1495
|
protected processUpdateBooking(response: Response): Promise<BookingDto>;
|
|
1497
|
-
/**
|
|
1498
|
-
* @deprecated
|
|
1499
|
-
*/
|
|
1500
|
-
createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]>;
|
|
1501
|
-
protected processCreateBookingTransportOld(response: Response): Promise<BookingDto[]>;
|
|
1502
1496
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1503
1497
|
protected processCreateBookingTransport(response: Response): Promise<BookingDto[]>;
|
|
1504
1498
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
@@ -5167,7 +5161,7 @@ export declare class MachineDto implements IMachineDto {
|
|
|
5167
5161
|
name: string;
|
|
5168
5162
|
description?: string | null;
|
|
5169
5163
|
type?: string | null;
|
|
5170
|
-
|
|
5164
|
+
workOrderAssetExternalIds?: string[];
|
|
5171
5165
|
hasLiveMachineState: boolean;
|
|
5172
5166
|
companyId?: string | null;
|
|
5173
5167
|
resourceId: string;
|
|
@@ -5182,7 +5176,7 @@ export interface IMachineDto {
|
|
|
5182
5176
|
name: string;
|
|
5183
5177
|
description?: string | null;
|
|
5184
5178
|
type?: string | null;
|
|
5185
|
-
|
|
5179
|
+
workOrderAssetExternalIds?: string[];
|
|
5186
5180
|
hasLiveMachineState: boolean;
|
|
5187
5181
|
companyId?: string | null;
|
|
5188
5182
|
resourceId: string;
|
|
@@ -5625,6 +5619,22 @@ export interface ICreateResourceWithMachine {
|
|
|
5625
5619
|
year?: string | null;
|
|
5626
5620
|
model?: string | null;
|
|
5627
5621
|
}
|
|
5622
|
+
export declare class CreateResourceInResourceGroup implements ICreateResourceInResourceGroup {
|
|
5623
|
+
id: string;
|
|
5624
|
+
resourceGroupId: string;
|
|
5625
|
+
name: string;
|
|
5626
|
+
description?: string | null;
|
|
5627
|
+
constructor(data?: ICreateResourceInResourceGroup);
|
|
5628
|
+
init(_data?: any): void;
|
|
5629
|
+
static fromJS(data: any): CreateResourceInResourceGroup;
|
|
5630
|
+
toJSON(data?: any): any;
|
|
5631
|
+
}
|
|
5632
|
+
export interface ICreateResourceInResourceGroup {
|
|
5633
|
+
id: string;
|
|
5634
|
+
resourceGroupId: string;
|
|
5635
|
+
name: string;
|
|
5636
|
+
description?: string | null;
|
|
5637
|
+
}
|
|
5628
5638
|
export declare class LinkDto implements ILinkDto {
|
|
5629
5639
|
id: string;
|
|
5630
5640
|
uri: string;
|
|
@@ -8195,21 +8205,15 @@ export interface IBookingUpdateDto {
|
|
|
8195
8205
|
fromLocationId: string;
|
|
8196
8206
|
toLocationId: string;
|
|
8197
8207
|
}
|
|
8198
|
-
export declare class
|
|
8199
|
-
transportKind: TransportKindDto;
|
|
8208
|
+
export declare class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
8200
8209
|
items: BookingItemRequestDto[];
|
|
8201
|
-
|
|
8202
|
-
toLocationId: string;
|
|
8203
|
-
constructor(data?: IBookingTransportRequestOldDto);
|
|
8210
|
+
constructor(data?: IBookingTransportRequestDto);
|
|
8204
8211
|
init(_data?: any): void;
|
|
8205
|
-
static fromJS(data: any):
|
|
8212
|
+
static fromJS(data: any): BookingTransportRequestDto;
|
|
8206
8213
|
toJSON(data?: any): any;
|
|
8207
8214
|
}
|
|
8208
|
-
export interface
|
|
8209
|
-
transportKind: TransportKindDto;
|
|
8215
|
+
export interface IBookingTransportRequestDto {
|
|
8210
8216
|
items: BookingItemRequestDto[];
|
|
8211
|
-
fromLocationId: string;
|
|
8212
|
-
toLocationId: string;
|
|
8213
8217
|
}
|
|
8214
8218
|
export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
8215
8219
|
parcelId: string;
|
|
@@ -8231,16 +8235,6 @@ export interface IBookingItemRequestDto {
|
|
|
8231
8235
|
transportKind: TransportKindDto;
|
|
8232
8236
|
comment?: string | null;
|
|
8233
8237
|
}
|
|
8234
|
-
export declare class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
8235
|
-
items: BookingItemRequestDto[];
|
|
8236
|
-
constructor(data?: IBookingTransportRequestDto);
|
|
8237
|
-
init(_data?: any): void;
|
|
8238
|
-
static fromJS(data: any): BookingTransportRequestDto;
|
|
8239
|
-
toJSON(data?: any): any;
|
|
8240
|
-
}
|
|
8241
|
-
export interface IBookingTransportRequestDto {
|
|
8242
|
-
items: BookingItemRequestDto[];
|
|
8243
|
-
}
|
|
8244
8238
|
export declare class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
8245
8239
|
parcelKind: ParcelKindDto;
|
|
8246
8240
|
transportKind: TransportKindDto;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -6176,6 +6176,42 @@ export class MachinesClient extends AuthorizedApiBase {
|
|
|
6176
6176
|
}
|
|
6177
6177
|
return Promise.resolve(null);
|
|
6178
6178
|
}
|
|
6179
|
+
createResourceInResourceGroup(request) {
|
|
6180
|
+
let url_ = this.baseUrl + "/machines/resource-in-resource-group";
|
|
6181
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6182
|
+
const content_ = JSON.stringify(request);
|
|
6183
|
+
let options_ = {
|
|
6184
|
+
body: content_,
|
|
6185
|
+
method: "POST",
|
|
6186
|
+
headers: {
|
|
6187
|
+
"Content-Type": "application/json",
|
|
6188
|
+
}
|
|
6189
|
+
};
|
|
6190
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6191
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6192
|
+
}).then((_response) => {
|
|
6193
|
+
return this.processCreateResourceInResourceGroup(_response);
|
|
6194
|
+
});
|
|
6195
|
+
}
|
|
6196
|
+
processCreateResourceInResourceGroup(response) {
|
|
6197
|
+
const status = response.status;
|
|
6198
|
+
let _headers = {};
|
|
6199
|
+
if (response.headers && response.headers.forEach) {
|
|
6200
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
6201
|
+
}
|
|
6202
|
+
;
|
|
6203
|
+
if (status === 204) {
|
|
6204
|
+
return response.text().then((_responseText) => {
|
|
6205
|
+
return;
|
|
6206
|
+
});
|
|
6207
|
+
}
|
|
6208
|
+
else if (status !== 200 && status !== 204) {
|
|
6209
|
+
return response.text().then((_responseText) => {
|
|
6210
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6211
|
+
});
|
|
6212
|
+
}
|
|
6213
|
+
return Promise.resolve(null);
|
|
6214
|
+
}
|
|
6179
6215
|
}
|
|
6180
6216
|
export class LinksClient extends AuthorizedApiBase {
|
|
6181
6217
|
constructor(configuration, baseUrl, http) {
|
|
@@ -12135,55 +12171,8 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
12135
12171
|
}
|
|
12136
12172
|
return Promise.resolve(null);
|
|
12137
12173
|
}
|
|
12138
|
-
/**
|
|
12139
|
-
* @deprecated
|
|
12140
|
-
*/
|
|
12141
|
-
createBookingTransportOld(bookingRequest) {
|
|
12142
|
-
let url_ = this.baseUrl + "/move/booking/transport";
|
|
12143
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
12144
|
-
const content_ = JSON.stringify(bookingRequest);
|
|
12145
|
-
let options_ = {
|
|
12146
|
-
body: content_,
|
|
12147
|
-
method: "POST",
|
|
12148
|
-
headers: {
|
|
12149
|
-
"Content-Type": "application/json",
|
|
12150
|
-
"Accept": "application/json"
|
|
12151
|
-
}
|
|
12152
|
-
};
|
|
12153
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12154
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
12155
|
-
}).then((_response) => {
|
|
12156
|
-
return this.processCreateBookingTransportOld(_response);
|
|
12157
|
-
});
|
|
12158
|
-
}
|
|
12159
|
-
processCreateBookingTransportOld(response) {
|
|
12160
|
-
const status = response.status;
|
|
12161
|
-
let _headers = {};
|
|
12162
|
-
if (response.headers && response.headers.forEach) {
|
|
12163
|
-
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12164
|
-
}
|
|
12165
|
-
;
|
|
12166
|
-
if (status === 200) {
|
|
12167
|
-
return response.text().then((_responseText) => {
|
|
12168
|
-
let result200 = null;
|
|
12169
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12170
|
-
if (Array.isArray(resultData200)) {
|
|
12171
|
-
result200 = [];
|
|
12172
|
-
for (let item of resultData200)
|
|
12173
|
-
result200.push(BookingDto.fromJS(item));
|
|
12174
|
-
}
|
|
12175
|
-
return result200;
|
|
12176
|
-
});
|
|
12177
|
-
}
|
|
12178
|
-
else if (status !== 200 && status !== 204) {
|
|
12179
|
-
return response.text().then((_responseText) => {
|
|
12180
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12181
|
-
});
|
|
12182
|
-
}
|
|
12183
|
-
return Promise.resolve(null);
|
|
12184
|
-
}
|
|
12185
12174
|
createBookingTransport(bookingRequest) {
|
|
12186
|
-
let url_ = this.baseUrl + "/move/booking/
|
|
12175
|
+
let url_ = this.baseUrl + "/move/booking/transport";
|
|
12187
12176
|
url_ = url_.replace(/[?&]$/, "");
|
|
12188
12177
|
const content_ = JSON.stringify(bookingRequest);
|
|
12189
12178
|
let options_ = {
|
|
@@ -25628,7 +25617,11 @@ export class MachineDto {
|
|
|
25628
25617
|
this.name = _data["name"];
|
|
25629
25618
|
this.description = _data["description"];
|
|
25630
25619
|
this.type = _data["type"];
|
|
25631
|
-
|
|
25620
|
+
if (Array.isArray(_data["workOrderAssetExternalIds"])) {
|
|
25621
|
+
this.workOrderAssetExternalIds = [];
|
|
25622
|
+
for (let item of _data["workOrderAssetExternalIds"])
|
|
25623
|
+
this.workOrderAssetExternalIds.push(item);
|
|
25624
|
+
}
|
|
25632
25625
|
this.hasLiveMachineState = _data["hasLiveMachineState"];
|
|
25633
25626
|
this.companyId = _data["companyId"];
|
|
25634
25627
|
this.resourceId = _data["resourceId"];
|
|
@@ -25647,7 +25640,11 @@ export class MachineDto {
|
|
|
25647
25640
|
data["name"] = this.name;
|
|
25648
25641
|
data["description"] = this.description;
|
|
25649
25642
|
data["type"] = this.type;
|
|
25650
|
-
|
|
25643
|
+
if (Array.isArray(this.workOrderAssetExternalIds)) {
|
|
25644
|
+
data["workOrderAssetExternalIds"] = [];
|
|
25645
|
+
for (let item of this.workOrderAssetExternalIds)
|
|
25646
|
+
data["workOrderAssetExternalIds"].push(item);
|
|
25647
|
+
}
|
|
25651
25648
|
data["hasLiveMachineState"] = this.hasLiveMachineState;
|
|
25652
25649
|
data["companyId"] = this.companyId;
|
|
25653
25650
|
data["resourceId"] = this.resourceId;
|
|
@@ -26622,6 +26619,38 @@ export class CreateResourceWithMachine {
|
|
|
26622
26619
|
return data;
|
|
26623
26620
|
}
|
|
26624
26621
|
}
|
|
26622
|
+
export class CreateResourceInResourceGroup {
|
|
26623
|
+
constructor(data) {
|
|
26624
|
+
if (data) {
|
|
26625
|
+
for (var property in data) {
|
|
26626
|
+
if (data.hasOwnProperty(property))
|
|
26627
|
+
this[property] = data[property];
|
|
26628
|
+
}
|
|
26629
|
+
}
|
|
26630
|
+
}
|
|
26631
|
+
init(_data) {
|
|
26632
|
+
if (_data) {
|
|
26633
|
+
this.id = _data["id"];
|
|
26634
|
+
this.resourceGroupId = _data["resourceGroupId"];
|
|
26635
|
+
this.name = _data["name"];
|
|
26636
|
+
this.description = _data["description"];
|
|
26637
|
+
}
|
|
26638
|
+
}
|
|
26639
|
+
static fromJS(data) {
|
|
26640
|
+
data = typeof data === 'object' ? data : {};
|
|
26641
|
+
let result = new CreateResourceInResourceGroup();
|
|
26642
|
+
result.init(data);
|
|
26643
|
+
return result;
|
|
26644
|
+
}
|
|
26645
|
+
toJSON(data) {
|
|
26646
|
+
data = typeof data === 'object' ? data : {};
|
|
26647
|
+
data["id"] = this.id;
|
|
26648
|
+
data["resourceGroupId"] = this.resourceGroupId;
|
|
26649
|
+
data["name"] = this.name;
|
|
26650
|
+
data["description"] = this.description;
|
|
26651
|
+
return data;
|
|
26652
|
+
}
|
|
26653
|
+
}
|
|
26625
26654
|
export class LinkDto {
|
|
26626
26655
|
constructor(data) {
|
|
26627
26656
|
if (data) {
|
|
@@ -31561,7 +31590,7 @@ export class BookingUpdateDto {
|
|
|
31561
31590
|
return data;
|
|
31562
31591
|
}
|
|
31563
31592
|
}
|
|
31564
|
-
export class
|
|
31593
|
+
export class BookingTransportRequestDto {
|
|
31565
31594
|
constructor(data) {
|
|
31566
31595
|
if (data) {
|
|
31567
31596
|
for (var property in data) {
|
|
@@ -31575,32 +31604,26 @@ export class BookingTransportRequestOldDto {
|
|
|
31575
31604
|
}
|
|
31576
31605
|
init(_data) {
|
|
31577
31606
|
if (_data) {
|
|
31578
|
-
this.transportKind = _data["transportKind"];
|
|
31579
31607
|
if (Array.isArray(_data["items"])) {
|
|
31580
31608
|
this.items = [];
|
|
31581
31609
|
for (let item of _data["items"])
|
|
31582
31610
|
this.items.push(BookingItemRequestDto.fromJS(item));
|
|
31583
31611
|
}
|
|
31584
|
-
this.fromLocationId = _data["fromLocationId"];
|
|
31585
|
-
this.toLocationId = _data["toLocationId"];
|
|
31586
31612
|
}
|
|
31587
31613
|
}
|
|
31588
31614
|
static fromJS(data) {
|
|
31589
31615
|
data = typeof data === 'object' ? data : {};
|
|
31590
|
-
let result = new
|
|
31616
|
+
let result = new BookingTransportRequestDto();
|
|
31591
31617
|
result.init(data);
|
|
31592
31618
|
return result;
|
|
31593
31619
|
}
|
|
31594
31620
|
toJSON(data) {
|
|
31595
31621
|
data = typeof data === 'object' ? data : {};
|
|
31596
|
-
data["transportKind"] = this.transportKind;
|
|
31597
31622
|
if (Array.isArray(this.items)) {
|
|
31598
31623
|
data["items"] = [];
|
|
31599
31624
|
for (let item of this.items)
|
|
31600
31625
|
data["items"].push(item.toJSON());
|
|
31601
31626
|
}
|
|
31602
|
-
data["fromLocationId"] = this.fromLocationId;
|
|
31603
|
-
data["toLocationId"] = this.toLocationId;
|
|
31604
31627
|
return data;
|
|
31605
31628
|
}
|
|
31606
31629
|
}
|
|
@@ -31640,43 +31663,6 @@ export class BookingItemRequestDto {
|
|
|
31640
31663
|
return data;
|
|
31641
31664
|
}
|
|
31642
31665
|
}
|
|
31643
|
-
export class BookingTransportRequestDto {
|
|
31644
|
-
constructor(data) {
|
|
31645
|
-
if (data) {
|
|
31646
|
-
for (var property in data) {
|
|
31647
|
-
if (data.hasOwnProperty(property))
|
|
31648
|
-
this[property] = data[property];
|
|
31649
|
-
}
|
|
31650
|
-
}
|
|
31651
|
-
if (!data) {
|
|
31652
|
-
this.items = [];
|
|
31653
|
-
}
|
|
31654
|
-
}
|
|
31655
|
-
init(_data) {
|
|
31656
|
-
if (_data) {
|
|
31657
|
-
if (Array.isArray(_data["items"])) {
|
|
31658
|
-
this.items = [];
|
|
31659
|
-
for (let item of _data["items"])
|
|
31660
|
-
this.items.push(BookingItemRequestDto.fromJS(item));
|
|
31661
|
-
}
|
|
31662
|
-
}
|
|
31663
|
-
}
|
|
31664
|
-
static fromJS(data) {
|
|
31665
|
-
data = typeof data === 'object' ? data : {};
|
|
31666
|
-
let result = new BookingTransportRequestDto();
|
|
31667
|
-
result.init(data);
|
|
31668
|
-
return result;
|
|
31669
|
-
}
|
|
31670
|
-
toJSON(data) {
|
|
31671
|
-
data = typeof data === 'object' ? data : {};
|
|
31672
|
-
if (Array.isArray(this.items)) {
|
|
31673
|
-
data["items"] = [];
|
|
31674
|
-
for (let item of this.items)
|
|
31675
|
-
data["items"].push(item.toJSON());
|
|
31676
|
-
}
|
|
31677
|
-
return data;
|
|
31678
|
-
}
|
|
31679
|
-
}
|
|
31680
31666
|
export class BookingGeneralRequestDto {
|
|
31681
31667
|
constructor(data) {
|
|
31682
31668
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -5976,6 +5976,8 @@ export interface IMachinesClient {
|
|
|
5976
5976
|
createResourceWithoutMachine(request: CreateResourceWithoutMachine): Promise<void>;
|
|
5977
5977
|
|
|
5978
5978
|
createResourceWithMachine(request: CreateResourceWithMachine): Promise<void>;
|
|
5979
|
+
|
|
5980
|
+
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void>;
|
|
5979
5981
|
}
|
|
5980
5982
|
|
|
5981
5983
|
export class MachinesClient extends AuthorizedApiBase implements IMachinesClient {
|
|
@@ -6613,6 +6615,42 @@ export class MachinesClient extends AuthorizedApiBase implements IMachinesClient
|
|
|
6613
6615
|
}
|
|
6614
6616
|
return Promise.resolve<void>(null as any);
|
|
6615
6617
|
}
|
|
6618
|
+
|
|
6619
|
+
createResourceInResourceGroup(request: CreateResourceInResourceGroup): Promise<void> {
|
|
6620
|
+
let url_ = this.baseUrl + "/machines/resource-in-resource-group";
|
|
6621
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
6622
|
+
|
|
6623
|
+
const content_ = JSON.stringify(request);
|
|
6624
|
+
|
|
6625
|
+
let options_: RequestInit = {
|
|
6626
|
+
body: content_,
|
|
6627
|
+
method: "POST",
|
|
6628
|
+
headers: {
|
|
6629
|
+
"Content-Type": "application/json",
|
|
6630
|
+
}
|
|
6631
|
+
};
|
|
6632
|
+
|
|
6633
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
6634
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
6635
|
+
}).then((_response: Response) => {
|
|
6636
|
+
return this.processCreateResourceInResourceGroup(_response);
|
|
6637
|
+
});
|
|
6638
|
+
}
|
|
6639
|
+
|
|
6640
|
+
protected processCreateResourceInResourceGroup(response: Response): Promise<void> {
|
|
6641
|
+
const status = response.status;
|
|
6642
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
6643
|
+
if (status === 204) {
|
|
6644
|
+
return response.text().then((_responseText) => {
|
|
6645
|
+
return;
|
|
6646
|
+
});
|
|
6647
|
+
} else if (status !== 200 && status !== 204) {
|
|
6648
|
+
return response.text().then((_responseText) => {
|
|
6649
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
6650
|
+
});
|
|
6651
|
+
}
|
|
6652
|
+
return Promise.resolve<void>(null as any);
|
|
6653
|
+
}
|
|
6616
6654
|
}
|
|
6617
6655
|
|
|
6618
6656
|
export interface ILinksClient {
|
|
@@ -12796,11 +12834,6 @@ export interface IMoveBookingClient {
|
|
|
12796
12834
|
|
|
12797
12835
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
12798
12836
|
|
|
12799
|
-
/**
|
|
12800
|
-
* @deprecated
|
|
12801
|
-
*/
|
|
12802
|
-
createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]>;
|
|
12803
|
-
|
|
12804
12837
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
12805
12838
|
|
|
12806
12839
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
@@ -12981,55 +13014,8 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12981
13014
|
return Promise.resolve<BookingDto>(null as any);
|
|
12982
13015
|
}
|
|
12983
13016
|
|
|
12984
|
-
/**
|
|
12985
|
-
* @deprecated
|
|
12986
|
-
*/
|
|
12987
|
-
createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]> {
|
|
12988
|
-
let url_ = this.baseUrl + "/move/booking/transport";
|
|
12989
|
-
url_ = url_.replace(/[?&]$/, "");
|
|
12990
|
-
|
|
12991
|
-
const content_ = JSON.stringify(bookingRequest);
|
|
12992
|
-
|
|
12993
|
-
let options_: RequestInit = {
|
|
12994
|
-
body: content_,
|
|
12995
|
-
method: "POST",
|
|
12996
|
-
headers: {
|
|
12997
|
-
"Content-Type": "application/json",
|
|
12998
|
-
"Accept": "application/json"
|
|
12999
|
-
}
|
|
13000
|
-
};
|
|
13001
|
-
|
|
13002
|
-
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
13003
|
-
return this.http.fetch(url_, transformedOptions_);
|
|
13004
|
-
}).then((_response: Response) => {
|
|
13005
|
-
return this.processCreateBookingTransportOld(_response);
|
|
13006
|
-
});
|
|
13007
|
-
}
|
|
13008
|
-
|
|
13009
|
-
protected processCreateBookingTransportOld(response: Response): Promise<BookingDto[]> {
|
|
13010
|
-
const status = response.status;
|
|
13011
|
-
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
13012
|
-
if (status === 200) {
|
|
13013
|
-
return response.text().then((_responseText) => {
|
|
13014
|
-
let result200: any = null;
|
|
13015
|
-
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
13016
|
-
if (Array.isArray(resultData200)) {
|
|
13017
|
-
result200 = [] as any;
|
|
13018
|
-
for (let item of resultData200)
|
|
13019
|
-
result200!.push(BookingDto.fromJS(item));
|
|
13020
|
-
}
|
|
13021
|
-
return result200;
|
|
13022
|
-
});
|
|
13023
|
-
} else if (status !== 200 && status !== 204) {
|
|
13024
|
-
return response.text().then((_responseText) => {
|
|
13025
|
-
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
13026
|
-
});
|
|
13027
|
-
}
|
|
13028
|
-
return Promise.resolve<BookingDto[]>(null as any);
|
|
13029
|
-
}
|
|
13030
|
-
|
|
13031
13017
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]> {
|
|
13032
|
-
let url_ = this.baseUrl + "/move/booking/
|
|
13018
|
+
let url_ = this.baseUrl + "/move/booking/transport";
|
|
13033
13019
|
url_ = url_.replace(/[?&]$/, "");
|
|
13034
13020
|
|
|
13035
13021
|
const content_ = JSON.stringify(bookingRequest);
|
|
@@ -29728,7 +29714,7 @@ export class MachineDto implements IMachineDto {
|
|
|
29728
29714
|
name!: string;
|
|
29729
29715
|
description?: string | null;
|
|
29730
29716
|
type?: string | null;
|
|
29731
|
-
|
|
29717
|
+
workOrderAssetExternalIds?: string[];
|
|
29732
29718
|
hasLiveMachineState!: boolean;
|
|
29733
29719
|
companyId?: string | null;
|
|
29734
29720
|
resourceId!: string;
|
|
@@ -29749,7 +29735,11 @@ export class MachineDto implements IMachineDto {
|
|
|
29749
29735
|
this.name = _data["name"];
|
|
29750
29736
|
this.description = _data["description"];
|
|
29751
29737
|
this.type = _data["type"];
|
|
29752
|
-
|
|
29738
|
+
if (Array.isArray(_data["workOrderAssetExternalIds"])) {
|
|
29739
|
+
this.workOrderAssetExternalIds = [] as any;
|
|
29740
|
+
for (let item of _data["workOrderAssetExternalIds"])
|
|
29741
|
+
this.workOrderAssetExternalIds!.push(item);
|
|
29742
|
+
}
|
|
29753
29743
|
this.hasLiveMachineState = _data["hasLiveMachineState"];
|
|
29754
29744
|
this.companyId = _data["companyId"];
|
|
29755
29745
|
this.resourceId = _data["resourceId"];
|
|
@@ -29770,7 +29760,11 @@ export class MachineDto implements IMachineDto {
|
|
|
29770
29760
|
data["name"] = this.name;
|
|
29771
29761
|
data["description"] = this.description;
|
|
29772
29762
|
data["type"] = this.type;
|
|
29773
|
-
|
|
29763
|
+
if (Array.isArray(this.workOrderAssetExternalIds)) {
|
|
29764
|
+
data["workOrderAssetExternalIds"] = [];
|
|
29765
|
+
for (let item of this.workOrderAssetExternalIds)
|
|
29766
|
+
data["workOrderAssetExternalIds"].push(item);
|
|
29767
|
+
}
|
|
29774
29768
|
data["hasLiveMachineState"] = this.hasLiveMachineState;
|
|
29775
29769
|
data["companyId"] = this.companyId;
|
|
29776
29770
|
data["resourceId"] = this.resourceId;
|
|
@@ -29784,7 +29778,7 @@ export interface IMachineDto {
|
|
|
29784
29778
|
name: string;
|
|
29785
29779
|
description?: string | null;
|
|
29786
29780
|
type?: string | null;
|
|
29787
|
-
|
|
29781
|
+
workOrderAssetExternalIds?: string[];
|
|
29788
29782
|
hasLiveMachineState: boolean;
|
|
29789
29783
|
companyId?: string | null;
|
|
29790
29784
|
resourceId: string;
|
|
@@ -31196,6 +31190,54 @@ export interface ICreateResourceWithMachine {
|
|
|
31196
31190
|
model?: string | null;
|
|
31197
31191
|
}
|
|
31198
31192
|
|
|
31193
|
+
export class CreateResourceInResourceGroup implements ICreateResourceInResourceGroup {
|
|
31194
|
+
id!: string;
|
|
31195
|
+
resourceGroupId!: string;
|
|
31196
|
+
name!: string;
|
|
31197
|
+
description?: string | null;
|
|
31198
|
+
|
|
31199
|
+
constructor(data?: ICreateResourceInResourceGroup) {
|
|
31200
|
+
if (data) {
|
|
31201
|
+
for (var property in data) {
|
|
31202
|
+
if (data.hasOwnProperty(property))
|
|
31203
|
+
(<any>this)[property] = (<any>data)[property];
|
|
31204
|
+
}
|
|
31205
|
+
}
|
|
31206
|
+
}
|
|
31207
|
+
|
|
31208
|
+
init(_data?: any) {
|
|
31209
|
+
if (_data) {
|
|
31210
|
+
this.id = _data["id"];
|
|
31211
|
+
this.resourceGroupId = _data["resourceGroupId"];
|
|
31212
|
+
this.name = _data["name"];
|
|
31213
|
+
this.description = _data["description"];
|
|
31214
|
+
}
|
|
31215
|
+
}
|
|
31216
|
+
|
|
31217
|
+
static fromJS(data: any): CreateResourceInResourceGroup {
|
|
31218
|
+
data = typeof data === 'object' ? data : {};
|
|
31219
|
+
let result = new CreateResourceInResourceGroup();
|
|
31220
|
+
result.init(data);
|
|
31221
|
+
return result;
|
|
31222
|
+
}
|
|
31223
|
+
|
|
31224
|
+
toJSON(data?: any) {
|
|
31225
|
+
data = typeof data === 'object' ? data : {};
|
|
31226
|
+
data["id"] = this.id;
|
|
31227
|
+
data["resourceGroupId"] = this.resourceGroupId;
|
|
31228
|
+
data["name"] = this.name;
|
|
31229
|
+
data["description"] = this.description;
|
|
31230
|
+
return data;
|
|
31231
|
+
}
|
|
31232
|
+
}
|
|
31233
|
+
|
|
31234
|
+
export interface ICreateResourceInResourceGroup {
|
|
31235
|
+
id: string;
|
|
31236
|
+
resourceGroupId: string;
|
|
31237
|
+
name: string;
|
|
31238
|
+
description?: string | null;
|
|
31239
|
+
}
|
|
31240
|
+
|
|
31199
31241
|
export class LinkDto implements ILinkDto {
|
|
31200
31242
|
id!: string;
|
|
31201
31243
|
uri!: string;
|
|
@@ -38715,13 +38757,10 @@ export interface IBookingUpdateDto {
|
|
|
38715
38757
|
toLocationId: string;
|
|
38716
38758
|
}
|
|
38717
38759
|
|
|
38718
|
-
export class
|
|
38719
|
-
transportKind!: TransportKindDto;
|
|
38760
|
+
export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
38720
38761
|
items!: BookingItemRequestDto[];
|
|
38721
|
-
fromLocationId!: string;
|
|
38722
|
-
toLocationId!: string;
|
|
38723
38762
|
|
|
38724
|
-
constructor(data?:
|
|
38763
|
+
constructor(data?: IBookingTransportRequestDto) {
|
|
38725
38764
|
if (data) {
|
|
38726
38765
|
for (var property in data) {
|
|
38727
38766
|
if (data.hasOwnProperty(property))
|
|
@@ -38735,43 +38774,34 @@ export class BookingTransportRequestOldDto implements IBookingTransportRequestOl
|
|
|
38735
38774
|
|
|
38736
38775
|
init(_data?: any) {
|
|
38737
38776
|
if (_data) {
|
|
38738
|
-
this.transportKind = _data["transportKind"];
|
|
38739
38777
|
if (Array.isArray(_data["items"])) {
|
|
38740
38778
|
this.items = [] as any;
|
|
38741
38779
|
for (let item of _data["items"])
|
|
38742
38780
|
this.items!.push(BookingItemRequestDto.fromJS(item));
|
|
38743
38781
|
}
|
|
38744
|
-
this.fromLocationId = _data["fromLocationId"];
|
|
38745
|
-
this.toLocationId = _data["toLocationId"];
|
|
38746
38782
|
}
|
|
38747
38783
|
}
|
|
38748
38784
|
|
|
38749
|
-
static fromJS(data: any):
|
|
38785
|
+
static fromJS(data: any): BookingTransportRequestDto {
|
|
38750
38786
|
data = typeof data === 'object' ? data : {};
|
|
38751
|
-
let result = new
|
|
38787
|
+
let result = new BookingTransportRequestDto();
|
|
38752
38788
|
result.init(data);
|
|
38753
38789
|
return result;
|
|
38754
38790
|
}
|
|
38755
38791
|
|
|
38756
38792
|
toJSON(data?: any) {
|
|
38757
38793
|
data = typeof data === 'object' ? data : {};
|
|
38758
|
-
data["transportKind"] = this.transportKind;
|
|
38759
38794
|
if (Array.isArray(this.items)) {
|
|
38760
38795
|
data["items"] = [];
|
|
38761
38796
|
for (let item of this.items)
|
|
38762
38797
|
data["items"].push(item.toJSON());
|
|
38763
38798
|
}
|
|
38764
|
-
data["fromLocationId"] = this.fromLocationId;
|
|
38765
|
-
data["toLocationId"] = this.toLocationId;
|
|
38766
38799
|
return data;
|
|
38767
38800
|
}
|
|
38768
38801
|
}
|
|
38769
38802
|
|
|
38770
|
-
export interface
|
|
38771
|
-
transportKind: TransportKindDto;
|
|
38803
|
+
export interface IBookingTransportRequestDto {
|
|
38772
38804
|
items: BookingItemRequestDto[];
|
|
38773
|
-
fromLocationId: string;
|
|
38774
|
-
toLocationId: string;
|
|
38775
38805
|
}
|
|
38776
38806
|
|
|
38777
38807
|
export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
@@ -38830,53 +38860,6 @@ export interface IBookingItemRequestDto {
|
|
|
38830
38860
|
comment?: string | null;
|
|
38831
38861
|
}
|
|
38832
38862
|
|
|
38833
|
-
export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
38834
|
-
items!: BookingItemRequestDto[];
|
|
38835
|
-
|
|
38836
|
-
constructor(data?: IBookingTransportRequestDto) {
|
|
38837
|
-
if (data) {
|
|
38838
|
-
for (var property in data) {
|
|
38839
|
-
if (data.hasOwnProperty(property))
|
|
38840
|
-
(<any>this)[property] = (<any>data)[property];
|
|
38841
|
-
}
|
|
38842
|
-
}
|
|
38843
|
-
if (!data) {
|
|
38844
|
-
this.items = [];
|
|
38845
|
-
}
|
|
38846
|
-
}
|
|
38847
|
-
|
|
38848
|
-
init(_data?: any) {
|
|
38849
|
-
if (_data) {
|
|
38850
|
-
if (Array.isArray(_data["items"])) {
|
|
38851
|
-
this.items = [] as any;
|
|
38852
|
-
for (let item of _data["items"])
|
|
38853
|
-
this.items!.push(BookingItemRequestDto.fromJS(item));
|
|
38854
|
-
}
|
|
38855
|
-
}
|
|
38856
|
-
}
|
|
38857
|
-
|
|
38858
|
-
static fromJS(data: any): BookingTransportRequestDto {
|
|
38859
|
-
data = typeof data === 'object' ? data : {};
|
|
38860
|
-
let result = new BookingTransportRequestDto();
|
|
38861
|
-
result.init(data);
|
|
38862
|
-
return result;
|
|
38863
|
-
}
|
|
38864
|
-
|
|
38865
|
-
toJSON(data?: any) {
|
|
38866
|
-
data = typeof data === 'object' ? data : {};
|
|
38867
|
-
if (Array.isArray(this.items)) {
|
|
38868
|
-
data["items"] = [];
|
|
38869
|
-
for (let item of this.items)
|
|
38870
|
-
data["items"].push(item.toJSON());
|
|
38871
|
-
}
|
|
38872
|
-
return data;
|
|
38873
|
-
}
|
|
38874
|
-
}
|
|
38875
|
-
|
|
38876
|
-
export interface IBookingTransportRequestDto {
|
|
38877
|
-
items: BookingItemRequestDto[];
|
|
38878
|
-
}
|
|
38879
|
-
|
|
38880
38863
|
export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
38881
38864
|
parcelKind!: ParcelKindDto;
|
|
38882
38865
|
transportKind!: TransportKindDto;
|