@ignos/api-client 20250605.0.11876 → 20250612.0.11891
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 +20 -12
- package/lib/ignosportal-api.js +44 -26
- package/package.json +1 -1
- package/src/ignosportal-api.ts +56 -30
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1330,11 +1330,11 @@ export interface ICncSetupFixturesClient {
|
|
|
1330
1330
|
getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
|
1331
1331
|
getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
|
1332
1332
|
listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
|
|
1333
|
-
|
|
1334
|
-
|
|
1333
|
+
uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]>;
|
|
1334
|
+
deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void>;
|
|
1335
1335
|
listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
|
|
1336
|
-
|
|
1337
|
-
|
|
1336
|
+
uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]>;
|
|
1337
|
+
deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void>;
|
|
1338
1338
|
operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
1339
1339
|
operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
1340
1340
|
}
|
|
@@ -1361,16 +1361,16 @@ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements
|
|
|
1361
1361
|
protected processGetFixtureLocationSuggestions(response: Response): Promise<FixtureSuggestionDto[]>;
|
|
1362
1362
|
listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
|
|
1363
1363
|
protected processListFixtureAttachments(response: Response): Promise<FileDto[]>;
|
|
1364
|
-
|
|
1365
|
-
protected
|
|
1366
|
-
|
|
1367
|
-
protected
|
|
1364
|
+
uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]>;
|
|
1365
|
+
protected processUploadFixtureAttachments(response: Response): Promise<FileDto[]>;
|
|
1366
|
+
deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void>;
|
|
1367
|
+
protected processDeleteFixtureAttachments(response: Response): Promise<void>;
|
|
1368
1368
|
listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
|
|
1369
1369
|
protected processListFixtureImages(response: Response): Promise<ListFixtureImagesDto[]>;
|
|
1370
|
-
|
|
1371
|
-
protected
|
|
1372
|
-
|
|
1373
|
-
protected
|
|
1370
|
+
uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]>;
|
|
1371
|
+
protected processUploadFixtureImages(response: Response): Promise<ListFixtureImagesDto[]>;
|
|
1372
|
+
deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void>;
|
|
1373
|
+
protected processDeleteFixtureImages(response: Response): Promise<void>;
|
|
1374
1374
|
operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
1375
1375
|
protected processOperationAddFixture(response: Response): Promise<CncMachineOperationDto>;
|
|
1376
1376
|
operationRemoveFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
@@ -9189,7 +9189,11 @@ export declare class BookingDto implements IBookingDto {
|
|
|
9189
9189
|
driver?: string | null;
|
|
9190
9190
|
driverId?: string | null;
|
|
9191
9191
|
claimed?: Date | null;
|
|
9192
|
+
claimedBy?: string | null;
|
|
9193
|
+
claimedById?: string | null;
|
|
9192
9194
|
completed?: Date | null;
|
|
9195
|
+
completedBy?: string | null;
|
|
9196
|
+
completedById?: string | null;
|
|
9193
9197
|
constructor(data?: IBookingDto);
|
|
9194
9198
|
init(_data?: any): void;
|
|
9195
9199
|
static fromJS(data: any): BookingDto;
|
|
@@ -9211,7 +9215,11 @@ export interface IBookingDto {
|
|
|
9211
9215
|
driver?: string | null;
|
|
9212
9216
|
driverId?: string | null;
|
|
9213
9217
|
claimed?: Date | null;
|
|
9218
|
+
claimedBy?: string | null;
|
|
9219
|
+
claimedById?: string | null;
|
|
9214
9220
|
completed?: Date | null;
|
|
9221
|
+
completedBy?: string | null;
|
|
9222
|
+
completedById?: string | null;
|
|
9215
9223
|
}
|
|
9216
9224
|
export type ParcelKindDto = "Standard" | "Other" | "Chip" | "Garbage" | "Material";
|
|
9217
9225
|
export type TransportKindDto = "NormalForklift" | "LargeForklift" | "SideLoadingForklift";
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11543,13 +11543,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11543
11543
|
}
|
|
11544
11544
|
return Promise.resolve(null);
|
|
11545
11545
|
}
|
|
11546
|
-
|
|
11546
|
+
uploadFixtureAttachments(fixtureId, attachments) {
|
|
11547
11547
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
|
|
11548
11548
|
if (fixtureId === undefined || fixtureId === null)
|
|
11549
11549
|
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
11550
11550
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
11551
11551
|
url_ = url_.replace(/[?&]$/, "");
|
|
11552
|
-
const content_ = JSON.stringify(
|
|
11552
|
+
const content_ = JSON.stringify(attachments);
|
|
11553
11553
|
let options_ = {
|
|
11554
11554
|
body: content_,
|
|
11555
11555
|
method: "POST",
|
|
@@ -11561,10 +11561,10 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11561
11561
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11562
11562
|
return this.http.fetch(url_, transformedOptions_);
|
|
11563
11563
|
}).then((_response) => {
|
|
11564
|
-
return this.
|
|
11564
|
+
return this.processUploadFixtureAttachments(_response);
|
|
11565
11565
|
});
|
|
11566
11566
|
}
|
|
11567
|
-
|
|
11567
|
+
processUploadFixtureAttachments(response) {
|
|
11568
11568
|
const status = response.status;
|
|
11569
11569
|
let _headers = {};
|
|
11570
11570
|
if (response.headers && response.headers.forEach) {
|
|
@@ -11575,7 +11575,11 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11575
11575
|
return response.text().then((_responseText) => {
|
|
11576
11576
|
let result200 = null;
|
|
11577
11577
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11578
|
-
|
|
11578
|
+
if (Array.isArray(resultData200)) {
|
|
11579
|
+
result200 = [];
|
|
11580
|
+
for (let item of resultData200)
|
|
11581
|
+
result200.push(FileDto.fromJS(item));
|
|
11582
|
+
}
|
|
11579
11583
|
return result200;
|
|
11580
11584
|
});
|
|
11581
11585
|
}
|
|
@@ -11586,26 +11590,27 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11586
11590
|
}
|
|
11587
11591
|
return Promise.resolve(null);
|
|
11588
11592
|
}
|
|
11589
|
-
|
|
11590
|
-
let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments
|
|
11593
|
+
deleteFixtureAttachments(fixtureId, filenames) {
|
|
11594
|
+
let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
|
|
11591
11595
|
if (fixtureId === undefined || fixtureId === null)
|
|
11592
11596
|
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
11593
11597
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
11594
|
-
if (filename === undefined || filename === null)
|
|
11595
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
11596
|
-
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
11597
11598
|
url_ = url_.replace(/[?&]$/, "");
|
|
11599
|
+
const content_ = JSON.stringify(filenames);
|
|
11598
11600
|
let options_ = {
|
|
11601
|
+
body: content_,
|
|
11599
11602
|
method: "DELETE",
|
|
11600
|
-
headers: {
|
|
11603
|
+
headers: {
|
|
11604
|
+
"Content-Type": "application/json",
|
|
11605
|
+
}
|
|
11601
11606
|
};
|
|
11602
11607
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11603
11608
|
return this.http.fetch(url_, transformedOptions_);
|
|
11604
11609
|
}).then((_response) => {
|
|
11605
|
-
return this.
|
|
11610
|
+
return this.processDeleteFixtureAttachments(_response);
|
|
11606
11611
|
});
|
|
11607
11612
|
}
|
|
11608
|
-
|
|
11613
|
+
processDeleteFixtureAttachments(response) {
|
|
11609
11614
|
const status = response.status;
|
|
11610
11615
|
let _headers = {};
|
|
11611
11616
|
if (response.headers && response.headers.forEach) {
|
|
@@ -11668,13 +11673,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11668
11673
|
}
|
|
11669
11674
|
return Promise.resolve(null);
|
|
11670
11675
|
}
|
|
11671
|
-
|
|
11676
|
+
uploadFixtureImages(fixtureId, attachments) {
|
|
11672
11677
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
|
|
11673
11678
|
if (fixtureId === undefined || fixtureId === null)
|
|
11674
11679
|
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
11675
11680
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
11676
11681
|
url_ = url_.replace(/[?&]$/, "");
|
|
11677
|
-
const content_ = JSON.stringify(
|
|
11682
|
+
const content_ = JSON.stringify(attachments);
|
|
11678
11683
|
let options_ = {
|
|
11679
11684
|
body: content_,
|
|
11680
11685
|
method: "POST",
|
|
@@ -11686,10 +11691,10 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11686
11691
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11687
11692
|
return this.http.fetch(url_, transformedOptions_);
|
|
11688
11693
|
}).then((_response) => {
|
|
11689
|
-
return this.
|
|
11694
|
+
return this.processUploadFixtureImages(_response);
|
|
11690
11695
|
});
|
|
11691
11696
|
}
|
|
11692
|
-
|
|
11697
|
+
processUploadFixtureImages(response) {
|
|
11693
11698
|
const status = response.status;
|
|
11694
11699
|
let _headers = {};
|
|
11695
11700
|
if (response.headers && response.headers.forEach) {
|
|
@@ -11700,7 +11705,11 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11700
11705
|
return response.text().then((_responseText) => {
|
|
11701
11706
|
let result200 = null;
|
|
11702
11707
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11703
|
-
|
|
11708
|
+
if (Array.isArray(resultData200)) {
|
|
11709
|
+
result200 = [];
|
|
11710
|
+
for (let item of resultData200)
|
|
11711
|
+
result200.push(ListFixtureImagesDto.fromJS(item));
|
|
11712
|
+
}
|
|
11704
11713
|
return result200;
|
|
11705
11714
|
});
|
|
11706
11715
|
}
|
|
@@ -11711,26 +11720,27 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11711
11720
|
}
|
|
11712
11721
|
return Promise.resolve(null);
|
|
11713
11722
|
}
|
|
11714
|
-
|
|
11715
|
-
let url_ = this.baseUrl + "/fixtures/{fixtureId}/images
|
|
11723
|
+
deleteFixtureImages(fixtureId, filenames) {
|
|
11724
|
+
let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
|
|
11716
11725
|
if (fixtureId === undefined || fixtureId === null)
|
|
11717
11726
|
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
11718
11727
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
11719
|
-
if (filename === undefined || filename === null)
|
|
11720
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
11721
|
-
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
11722
11728
|
url_ = url_.replace(/[?&]$/, "");
|
|
11729
|
+
const content_ = JSON.stringify(filenames);
|
|
11723
11730
|
let options_ = {
|
|
11731
|
+
body: content_,
|
|
11724
11732
|
method: "DELETE",
|
|
11725
|
-
headers: {
|
|
11733
|
+
headers: {
|
|
11734
|
+
"Content-Type": "application/json",
|
|
11735
|
+
}
|
|
11726
11736
|
};
|
|
11727
11737
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11728
11738
|
return this.http.fetch(url_, transformedOptions_);
|
|
11729
11739
|
}).then((_response) => {
|
|
11730
|
-
return this.
|
|
11740
|
+
return this.processDeleteFixtureImages(_response);
|
|
11731
11741
|
});
|
|
11732
11742
|
}
|
|
11733
|
-
|
|
11743
|
+
processDeleteFixtureImages(response) {
|
|
11734
11744
|
const status = response.status;
|
|
11735
11745
|
let _headers = {};
|
|
11736
11746
|
if (response.headers && response.headers.forEach) {
|
|
@@ -35623,7 +35633,11 @@ export class BookingDto {
|
|
|
35623
35633
|
this.driver = _data["driver"];
|
|
35624
35634
|
this.driverId = _data["driverId"];
|
|
35625
35635
|
this.claimed = _data["claimed"] ? new Date(_data["claimed"].toString()) : undefined;
|
|
35636
|
+
this.claimedBy = _data["claimedBy"];
|
|
35637
|
+
this.claimedById = _data["claimedById"];
|
|
35626
35638
|
this.completed = _data["completed"] ? new Date(_data["completed"].toString()) : undefined;
|
|
35639
|
+
this.completedBy = _data["completedBy"];
|
|
35640
|
+
this.completedById = _data["completedById"];
|
|
35627
35641
|
}
|
|
35628
35642
|
}
|
|
35629
35643
|
static fromJS(data) {
|
|
@@ -35649,7 +35663,11 @@ export class BookingDto {
|
|
|
35649
35663
|
data["driver"] = this.driver;
|
|
35650
35664
|
data["driverId"] = this.driverId;
|
|
35651
35665
|
data["claimed"] = this.claimed ? this.claimed.toISOString() : undefined;
|
|
35666
|
+
data["claimedBy"] = this.claimedBy;
|
|
35667
|
+
data["claimedById"] = this.claimedById;
|
|
35652
35668
|
data["completed"] = this.completed ? this.completed.toISOString() : undefined;
|
|
35669
|
+
data["completedBy"] = this.completedBy;
|
|
35670
|
+
data["completedById"] = this.completedById;
|
|
35653
35671
|
return data;
|
|
35654
35672
|
}
|
|
35655
35673
|
}
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -11949,15 +11949,15 @@ export interface ICncSetupFixturesClient {
|
|
|
11949
11949
|
|
|
11950
11950
|
listFixtureAttachments(fixtureId: string): Promise<FileDto[]>;
|
|
11951
11951
|
|
|
11952
|
-
|
|
11952
|
+
uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]>;
|
|
11953
11953
|
|
|
11954
|
-
|
|
11954
|
+
deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void>;
|
|
11955
11955
|
|
|
11956
11956
|
listFixtureImages(fixtureId: string): Promise<ListFixtureImagesDto[]>;
|
|
11957
11957
|
|
|
11958
|
-
|
|
11958
|
+
uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]>;
|
|
11959
11959
|
|
|
11960
|
-
|
|
11960
|
+
deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void>;
|
|
11961
11961
|
|
|
11962
11962
|
operationAddFixture(operationId: string, fixtureIds: string[]): Promise<CncMachineOperationDto>;
|
|
11963
11963
|
|
|
@@ -12313,14 +12313,14 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12313
12313
|
return Promise.resolve<FileDto[]>(null as any);
|
|
12314
12314
|
}
|
|
12315
12315
|
|
|
12316
|
-
|
|
12316
|
+
uploadFixtureAttachments(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<FileDto[]> {
|
|
12317
12317
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
|
|
12318
12318
|
if (fixtureId === undefined || fixtureId === null)
|
|
12319
12319
|
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12320
12320
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12321
12321
|
url_ = url_.replace(/[?&]$/, "");
|
|
12322
12322
|
|
|
12323
|
-
const content_ = JSON.stringify(
|
|
12323
|
+
const content_ = JSON.stringify(attachments);
|
|
12324
12324
|
|
|
12325
12325
|
let options_: RequestInit = {
|
|
12326
12326
|
body: content_,
|
|
@@ -12334,18 +12334,22 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12334
12334
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12335
12335
|
return this.http.fetch(url_, transformedOptions_);
|
|
12336
12336
|
}).then((_response: Response) => {
|
|
12337
|
-
return this.
|
|
12337
|
+
return this.processUploadFixtureAttachments(_response);
|
|
12338
12338
|
});
|
|
12339
12339
|
}
|
|
12340
12340
|
|
|
12341
|
-
protected
|
|
12341
|
+
protected processUploadFixtureAttachments(response: Response): Promise<FileDto[]> {
|
|
12342
12342
|
const status = response.status;
|
|
12343
12343
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12344
12344
|
if (status === 200) {
|
|
12345
12345
|
return response.text().then((_responseText) => {
|
|
12346
12346
|
let result200: any = null;
|
|
12347
12347
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12348
|
-
|
|
12348
|
+
if (Array.isArray(resultData200)) {
|
|
12349
|
+
result200 = [] as any;
|
|
12350
|
+
for (let item of resultData200)
|
|
12351
|
+
result200!.push(FileDto.fromJS(item));
|
|
12352
|
+
}
|
|
12349
12353
|
return result200;
|
|
12350
12354
|
});
|
|
12351
12355
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -12353,33 +12357,34 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12353
12357
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12354
12358
|
});
|
|
12355
12359
|
}
|
|
12356
|
-
return Promise.resolve<FileDto>(null as any);
|
|
12360
|
+
return Promise.resolve<FileDto[]>(null as any);
|
|
12357
12361
|
}
|
|
12358
12362
|
|
|
12359
|
-
|
|
12360
|
-
let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments
|
|
12363
|
+
deleteFixtureAttachments(fixtureId: string, filenames: string[]): Promise<void> {
|
|
12364
|
+
let url_ = this.baseUrl + "/fixtures/{fixtureId}/attachments";
|
|
12361
12365
|
if (fixtureId === undefined || fixtureId === null)
|
|
12362
12366
|
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12363
12367
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12364
|
-
if (filename === undefined || filename === null)
|
|
12365
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
12366
|
-
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
12367
12368
|
url_ = url_.replace(/[?&]$/, "");
|
|
12368
12369
|
|
|
12370
|
+
const content_ = JSON.stringify(filenames);
|
|
12371
|
+
|
|
12369
12372
|
let options_: RequestInit = {
|
|
12373
|
+
body: content_,
|
|
12370
12374
|
method: "DELETE",
|
|
12371
12375
|
headers: {
|
|
12376
|
+
"Content-Type": "application/json",
|
|
12372
12377
|
}
|
|
12373
12378
|
};
|
|
12374
12379
|
|
|
12375
12380
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12376
12381
|
return this.http.fetch(url_, transformedOptions_);
|
|
12377
12382
|
}).then((_response: Response) => {
|
|
12378
|
-
return this.
|
|
12383
|
+
return this.processDeleteFixtureAttachments(_response);
|
|
12379
12384
|
});
|
|
12380
12385
|
}
|
|
12381
12386
|
|
|
12382
|
-
protected
|
|
12387
|
+
protected processDeleteFixtureAttachments(response: Response): Promise<void> {
|
|
12383
12388
|
const status = response.status;
|
|
12384
12389
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12385
12390
|
if (status === 204) {
|
|
@@ -12437,14 +12442,14 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12437
12442
|
return Promise.resolve<ListFixtureImagesDto[]>(null as any);
|
|
12438
12443
|
}
|
|
12439
12444
|
|
|
12440
|
-
|
|
12445
|
+
uploadFixtureImages(fixtureId: string, attachments: UploadFixtureAttachmentDto[]): Promise<ListFixtureImagesDto[]> {
|
|
12441
12446
|
let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
|
|
12442
12447
|
if (fixtureId === undefined || fixtureId === null)
|
|
12443
12448
|
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12444
12449
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12445
12450
|
url_ = url_.replace(/[?&]$/, "");
|
|
12446
12451
|
|
|
12447
|
-
const content_ = JSON.stringify(
|
|
12452
|
+
const content_ = JSON.stringify(attachments);
|
|
12448
12453
|
|
|
12449
12454
|
let options_: RequestInit = {
|
|
12450
12455
|
body: content_,
|
|
@@ -12458,18 +12463,22 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12458
12463
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12459
12464
|
return this.http.fetch(url_, transformedOptions_);
|
|
12460
12465
|
}).then((_response: Response) => {
|
|
12461
|
-
return this.
|
|
12466
|
+
return this.processUploadFixtureImages(_response);
|
|
12462
12467
|
});
|
|
12463
12468
|
}
|
|
12464
12469
|
|
|
12465
|
-
protected
|
|
12470
|
+
protected processUploadFixtureImages(response: Response): Promise<ListFixtureImagesDto[]> {
|
|
12466
12471
|
const status = response.status;
|
|
12467
12472
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12468
12473
|
if (status === 200) {
|
|
12469
12474
|
return response.text().then((_responseText) => {
|
|
12470
12475
|
let result200: any = null;
|
|
12471
12476
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12472
|
-
|
|
12477
|
+
if (Array.isArray(resultData200)) {
|
|
12478
|
+
result200 = [] as any;
|
|
12479
|
+
for (let item of resultData200)
|
|
12480
|
+
result200!.push(ListFixtureImagesDto.fromJS(item));
|
|
12481
|
+
}
|
|
12473
12482
|
return result200;
|
|
12474
12483
|
});
|
|
12475
12484
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -12477,33 +12486,34 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12477
12486
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12478
12487
|
});
|
|
12479
12488
|
}
|
|
12480
|
-
return Promise.resolve<ListFixtureImagesDto>(null as any);
|
|
12489
|
+
return Promise.resolve<ListFixtureImagesDto[]>(null as any);
|
|
12481
12490
|
}
|
|
12482
12491
|
|
|
12483
|
-
|
|
12484
|
-
let url_ = this.baseUrl + "/fixtures/{fixtureId}/images
|
|
12492
|
+
deleteFixtureImages(fixtureId: string, filenames: string[]): Promise<void> {
|
|
12493
|
+
let url_ = this.baseUrl + "/fixtures/{fixtureId}/images";
|
|
12485
12494
|
if (fixtureId === undefined || fixtureId === null)
|
|
12486
12495
|
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12487
12496
|
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12488
|
-
if (filename === undefined || filename === null)
|
|
12489
|
-
throw new Error("The parameter 'filename' must be defined.");
|
|
12490
|
-
url_ = url_.replace("{filename}", encodeURIComponent("" + filename));
|
|
12491
12497
|
url_ = url_.replace(/[?&]$/, "");
|
|
12492
12498
|
|
|
12499
|
+
const content_ = JSON.stringify(filenames);
|
|
12500
|
+
|
|
12493
12501
|
let options_: RequestInit = {
|
|
12502
|
+
body: content_,
|
|
12494
12503
|
method: "DELETE",
|
|
12495
12504
|
headers: {
|
|
12505
|
+
"Content-Type": "application/json",
|
|
12496
12506
|
}
|
|
12497
12507
|
};
|
|
12498
12508
|
|
|
12499
12509
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12500
12510
|
return this.http.fetch(url_, transformedOptions_);
|
|
12501
12511
|
}).then((_response: Response) => {
|
|
12502
|
-
return this.
|
|
12512
|
+
return this.processDeleteFixtureImages(_response);
|
|
12503
12513
|
});
|
|
12504
12514
|
}
|
|
12505
12515
|
|
|
12506
|
-
protected
|
|
12516
|
+
protected processDeleteFixtureImages(response: Response): Promise<void> {
|
|
12507
12517
|
const status = response.status;
|
|
12508
12518
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12509
12519
|
if (status === 204) {
|
|
@@ -43620,7 +43630,11 @@ export class BookingDto implements IBookingDto {
|
|
|
43620
43630
|
driver?: string | null;
|
|
43621
43631
|
driverId?: string | null;
|
|
43622
43632
|
claimed?: Date | null;
|
|
43633
|
+
claimedBy?: string | null;
|
|
43634
|
+
claimedById?: string | null;
|
|
43623
43635
|
completed?: Date | null;
|
|
43636
|
+
completedBy?: string | null;
|
|
43637
|
+
completedById?: string | null;
|
|
43624
43638
|
|
|
43625
43639
|
constructor(data?: IBookingDto) {
|
|
43626
43640
|
if (data) {
|
|
@@ -43653,7 +43667,11 @@ export class BookingDto implements IBookingDto {
|
|
|
43653
43667
|
this.driver = _data["driver"];
|
|
43654
43668
|
this.driverId = _data["driverId"];
|
|
43655
43669
|
this.claimed = _data["claimed"] ? new Date(_data["claimed"].toString()) : <any>undefined;
|
|
43670
|
+
this.claimedBy = _data["claimedBy"];
|
|
43671
|
+
this.claimedById = _data["claimedById"];
|
|
43656
43672
|
this.completed = _data["completed"] ? new Date(_data["completed"].toString()) : <any>undefined;
|
|
43673
|
+
this.completedBy = _data["completedBy"];
|
|
43674
|
+
this.completedById = _data["completedById"];
|
|
43657
43675
|
}
|
|
43658
43676
|
}
|
|
43659
43677
|
|
|
@@ -43681,7 +43699,11 @@ export class BookingDto implements IBookingDto {
|
|
|
43681
43699
|
data["driver"] = this.driver;
|
|
43682
43700
|
data["driverId"] = this.driverId;
|
|
43683
43701
|
data["claimed"] = this.claimed ? this.claimed.toISOString() : <any>undefined;
|
|
43702
|
+
data["claimedBy"] = this.claimedBy;
|
|
43703
|
+
data["claimedById"] = this.claimedById;
|
|
43684
43704
|
data["completed"] = this.completed ? this.completed.toISOString() : <any>undefined;
|
|
43705
|
+
data["completedBy"] = this.completedBy;
|
|
43706
|
+
data["completedById"] = this.completedById;
|
|
43685
43707
|
return data;
|
|
43686
43708
|
}
|
|
43687
43709
|
}
|
|
@@ -43702,7 +43724,11 @@ export interface IBookingDto {
|
|
|
43702
43724
|
driver?: string | null;
|
|
43703
43725
|
driverId?: string | null;
|
|
43704
43726
|
claimed?: Date | null;
|
|
43727
|
+
claimedBy?: string | null;
|
|
43728
|
+
claimedById?: string | null;
|
|
43705
43729
|
completed?: Date | null;
|
|
43730
|
+
completedBy?: string | null;
|
|
43731
|
+
completedById?: string | null;
|
|
43706
43732
|
}
|
|
43707
43733
|
|
|
43708
43734
|
export type ParcelKindDto = "Standard" | "Other" | "Chip" | "Garbage" | "Material";
|