@ignos/api-client 20240612.0.9521 → 20240613.0.9536
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 -7
- package/lib/ignosportal-api.js +60 -4
- package/package.json +1 -1
- package/src/ignosportal-api.ts +70 -13
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -586,8 +586,8 @@ export interface IMoveTrackingClient {
|
|
|
586
586
|
getTrackingHistory(trackingId: string): Promise<TrackingHistoryDto>;
|
|
587
587
|
getWorkOrderTrackingHistory(workOrderId: string): Promise<TrackingWorkOrderDto>;
|
|
588
588
|
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
589
|
-
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<
|
|
590
|
-
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<
|
|
589
|
+
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
590
|
+
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
591
591
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
592
592
|
createLabel(trackingIds: string[]): Promise<FileResponse>;
|
|
593
593
|
}
|
|
@@ -604,10 +604,10 @@ export declare class MoveTrackingClient extends AuthorizedApiBase implements IMo
|
|
|
604
604
|
protected processGetWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto>;
|
|
605
605
|
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
606
606
|
protected processListWorkOrderTrackingHistory(response: Response): Promise<TrackingWorkOrderDto[]>;
|
|
607
|
-
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<
|
|
608
|
-
protected processCreateTrackingEvents(response: Response): Promise<
|
|
609
|
-
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<
|
|
610
|
-
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[]>;
|
|
611
611
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
612
612
|
protected processDeleteTrackingHistory(response: Response): Promise<void>;
|
|
613
613
|
createLabel(trackingIds: string[]): Promise<FileResponse>;
|
|
@@ -1778,6 +1778,7 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
1778
1778
|
upsertSupplierToMeasurmentFormInstance(id: string, supplierId: string, request: UpsertSupplierToMeasurementFormInstanceRequest): Promise<void>;
|
|
1779
1779
|
removeSupplierFromMeasurmentFormInstance(id: string, supplierId: string): Promise<void>;
|
|
1780
1780
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
1781
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
1781
1782
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
1782
1783
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
1783
1784
|
importMeasurementFormInstance(id: string, request: ImportMeasurementFormInstanceRequest): Promise<MeasurementFormInstanceDto>;
|
|
@@ -1843,6 +1844,8 @@ export declare class MeasurementFormsInstancesClient extends AuthorizedApiBase i
|
|
|
1843
1844
|
protected processRemoveSupplierFromMeasurmentFormInstance(response: Response): Promise<void>;
|
|
1844
1845
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
1845
1846
|
protected processExportDimensionReport(response: Response): Promise<DownloadDto>;
|
|
1847
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
1848
|
+
protected processExportDimensionReportValues(response: Response): Promise<DownloadDto>;
|
|
1846
1849
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
1847
1850
|
protected processUpdateSchemaInstanceElements(response: Response): Promise<void>;
|
|
1848
1851
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
@@ -4123,7 +4126,7 @@ export interface IBookingDto {
|
|
|
4123
4126
|
updatedBy?: string | null;
|
|
4124
4127
|
updatedById?: string | null;
|
|
4125
4128
|
}
|
|
4126
|
-
export type BookingTypeDto = "
|
|
4129
|
+
export type BookingTypeDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
|
|
4127
4130
|
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
|
|
4128
4131
|
export declare class BookingItemDto implements IBookingItemDto {
|
|
4129
4132
|
trackingId: string;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -4073,6 +4073,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4073
4073
|
method: "POST",
|
|
4074
4074
|
headers: {
|
|
4075
4075
|
"Content-Type": "application/json",
|
|
4076
|
+
"Accept": "application/json"
|
|
4076
4077
|
}
|
|
4077
4078
|
};
|
|
4078
4079
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -4088,9 +4089,16 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4088
4089
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4089
4090
|
}
|
|
4090
4091
|
;
|
|
4091
|
-
if (status ===
|
|
4092
|
+
if (status === 200) {
|
|
4092
4093
|
return response.text().then((_responseText) => {
|
|
4093
|
-
|
|
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;
|
|
4094
4102
|
});
|
|
4095
4103
|
}
|
|
4096
4104
|
else if (status !== 200 && status !== 204) {
|
|
@@ -4109,6 +4117,7 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4109
4117
|
method: "POST",
|
|
4110
4118
|
headers: {
|
|
4111
4119
|
"Content-Type": "application/json",
|
|
4120
|
+
"Accept": "application/json"
|
|
4112
4121
|
}
|
|
4113
4122
|
};
|
|
4114
4123
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
@@ -4124,9 +4133,16 @@ export class MoveTrackingClient extends AuthorizedApiBase {
|
|
|
4124
4133
|
response.headers.forEach((v, k) => _headers[k] = v);
|
|
4125
4134
|
}
|
|
4126
4135
|
;
|
|
4127
|
-
if (status ===
|
|
4136
|
+
if (status === 200) {
|
|
4128
4137
|
return response.text().then((_responseText) => {
|
|
4129
|
-
|
|
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;
|
|
4130
4146
|
});
|
|
4131
4147
|
}
|
|
4132
4148
|
else if (status !== 200 && status !== 204) {
|
|
@@ -16325,6 +16341,46 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase {
|
|
|
16325
16341
|
}
|
|
16326
16342
|
return Promise.resolve(null);
|
|
16327
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
|
+
}
|
|
16328
16384
|
updateSchemaInstanceElements(id, schemaId, request) {
|
|
16329
16385
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
|
|
16330
16386
|
if (id === undefined || id === null)
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -4262,9 +4262,9 @@ export interface IMoveTrackingClient {
|
|
|
4262
4262
|
|
|
4263
4263
|
listWorkOrderTrackingHistory(workOrderIds: string[]): Promise<TrackingWorkOrderDto[]>;
|
|
4264
4264
|
|
|
4265
|
-
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<
|
|
4265
|
+
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
4266
4266
|
|
|
4267
|
-
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<
|
|
4267
|
+
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]>;
|
|
4268
4268
|
|
|
4269
4269
|
deleteTrackingHistory(trackingId: string): Promise<void>;
|
|
4270
4270
|
|
|
@@ -4404,7 +4404,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4404
4404
|
return Promise.resolve<TrackingWorkOrderDto[]>(null as any);
|
|
4405
4405
|
}
|
|
4406
4406
|
|
|
4407
|
-
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<
|
|
4407
|
+
createTrackingEvents(trackingUpdates: TrackingUpdateDto[]): Promise<TrackingHistoryDto[]> {
|
|
4408
4408
|
let url_ = this.baseUrl + "/move/tracking/event";
|
|
4409
4409
|
url_ = url_.replace(/[?&]$/, "");
|
|
4410
4410
|
|
|
@@ -4415,6 +4415,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4415
4415
|
method: "POST",
|
|
4416
4416
|
headers: {
|
|
4417
4417
|
"Content-Type": "application/json",
|
|
4418
|
+
"Accept": "application/json"
|
|
4418
4419
|
}
|
|
4419
4420
|
};
|
|
4420
4421
|
|
|
@@ -4425,22 +4426,29 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4425
4426
|
});
|
|
4426
4427
|
}
|
|
4427
4428
|
|
|
4428
|
-
protected processCreateTrackingEvents(response: Response): Promise<
|
|
4429
|
+
protected processCreateTrackingEvents(response: Response): Promise<TrackingHistoryDto[]> {
|
|
4429
4430
|
const status = response.status;
|
|
4430
4431
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4431
|
-
if (status ===
|
|
4432
|
+
if (status === 200) {
|
|
4432
4433
|
return response.text().then((_responseText) => {
|
|
4433
|
-
|
|
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;
|
|
4434
4442
|
});
|
|
4435
4443
|
} else if (status !== 200 && status !== 204) {
|
|
4436
4444
|
return response.text().then((_responseText) => {
|
|
4437
4445
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4438
4446
|
});
|
|
4439
4447
|
}
|
|
4440
|
-
return Promise.resolve<
|
|
4448
|
+
return Promise.resolve<TrackingHistoryDto[]>(null as any);
|
|
4441
4449
|
}
|
|
4442
4450
|
|
|
4443
|
-
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<
|
|
4451
|
+
createTrackingHistory(trackingUpdates: TrackingHistoryUpdateDto[]): Promise<TrackingHistoryDto[]> {
|
|
4444
4452
|
let url_ = this.baseUrl + "/move/tracking/history";
|
|
4445
4453
|
url_ = url_.replace(/[?&]$/, "");
|
|
4446
4454
|
|
|
@@ -4451,6 +4459,7 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4451
4459
|
method: "POST",
|
|
4452
4460
|
headers: {
|
|
4453
4461
|
"Content-Type": "application/json",
|
|
4462
|
+
"Accept": "application/json"
|
|
4454
4463
|
}
|
|
4455
4464
|
};
|
|
4456
4465
|
|
|
@@ -4461,19 +4470,26 @@ export class MoveTrackingClient extends AuthorizedApiBase implements IMoveTracki
|
|
|
4461
4470
|
});
|
|
4462
4471
|
}
|
|
4463
4472
|
|
|
4464
|
-
protected processCreateTrackingHistory(response: Response): Promise<
|
|
4473
|
+
protected processCreateTrackingHistory(response: Response): Promise<TrackingHistoryDto[]> {
|
|
4465
4474
|
const status = response.status;
|
|
4466
4475
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
4467
|
-
if (status ===
|
|
4476
|
+
if (status === 200) {
|
|
4468
4477
|
return response.text().then((_responseText) => {
|
|
4469
|
-
|
|
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;
|
|
4470
4486
|
});
|
|
4471
4487
|
} else if (status !== 200 && status !== 204) {
|
|
4472
4488
|
return response.text().then((_responseText) => {
|
|
4473
4489
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4474
4490
|
});
|
|
4475
4491
|
}
|
|
4476
|
-
return Promise.resolve<
|
|
4492
|
+
return Promise.resolve<TrackingHistoryDto[]>(null as any);
|
|
4477
4493
|
}
|
|
4478
4494
|
|
|
4479
4495
|
deleteTrackingHistory(trackingId: string): Promise<void> {
|
|
@@ -16180,6 +16196,8 @@ export interface IMeasurementFormsInstancesClient {
|
|
|
16180
16196
|
|
|
16181
16197
|
exportDimensionReport(id: string, request: ExportDimensionReportRequest): Promise<DownloadDto>;
|
|
16182
16198
|
|
|
16199
|
+
exportDimensionReportValues(id: string): Promise<DownloadDto>;
|
|
16200
|
+
|
|
16183
16201
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void>;
|
|
16184
16202
|
|
|
16185
16203
|
getSchemaInstanceElements(id: string, schemaId: string): Promise<SchemaInstanceElementDto[]>;
|
|
@@ -17355,6 +17373,45 @@ export class MeasurementFormsInstancesClient extends AuthorizedApiBase implement
|
|
|
17355
17373
|
return Promise.resolve<DownloadDto>(null as any);
|
|
17356
17374
|
}
|
|
17357
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
|
+
|
|
17358
17415
|
updateSchemaInstanceElements(id: string, schemaId: string, request: UpdateSchemaInstanceElementsRequest): Promise<void> {
|
|
17359
17416
|
let url_ = this.baseUrl + "/measurementforms/instances/{id}/schemas/{schemaId}/elements";
|
|
17360
17417
|
if (id === undefined || id === null)
|
|
@@ -25531,7 +25588,7 @@ export interface IBookingDto {
|
|
|
25531
25588
|
updatedById?: string | null;
|
|
25532
25589
|
}
|
|
25533
25590
|
|
|
25534
|
-
export type BookingTypeDto = "
|
|
25591
|
+
export type BookingTypeDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
|
|
25535
25592
|
|
|
25536
25593
|
export type BookingStatusDto = "Pending" | "Cancelled" | "InProgress" | "Delivered";
|
|
25537
25594
|
|