@ignos/api-client 20250604.0.11868 → 20250604.0.11870
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 +3 -0
- package/lib/ignosportal-api.js +36 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +38 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1325,6 +1325,7 @@ export interface ICncSetupFixturesClient {
|
|
|
1325
1325
|
listFixtures(request: ListFixtures): Promise<FixtureListDto>;
|
|
1326
1326
|
getFixture(fixtureId: string): Promise<FixtureDto>;
|
|
1327
1327
|
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
1328
|
+
deleteFixture(fixtureIds: string[]): Promise<void>;
|
|
1328
1329
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
1329
1330
|
getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
|
1330
1331
|
getFixtureLocationSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
|
@@ -1350,6 +1351,8 @@ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements
|
|
|
1350
1351
|
protected processGetFixture(response: Response): Promise<FixtureDto>;
|
|
1351
1352
|
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
1352
1353
|
protected processCreateFixture(response: Response): Promise<FixtureDto>;
|
|
1354
|
+
deleteFixture(fixtureIds: string[]): Promise<void>;
|
|
1355
|
+
protected processDeleteFixture(response: Response): Promise<void>;
|
|
1353
1356
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
1354
1357
|
protected processUpdateFixtures(response: Response): Promise<FixtureDto[]>;
|
|
1355
1358
|
getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11321,6 +11321,42 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11321
11321
|
}
|
|
11322
11322
|
return Promise.resolve(null);
|
|
11323
11323
|
}
|
|
11324
|
+
deleteFixture(fixtureIds) {
|
|
11325
|
+
let url_ = this.baseUrl + "/fixtures";
|
|
11326
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11327
|
+
const content_ = JSON.stringify(fixtureIds);
|
|
11328
|
+
let options_ = {
|
|
11329
|
+
body: content_,
|
|
11330
|
+
method: "DELETE",
|
|
11331
|
+
headers: {
|
|
11332
|
+
"Content-Type": "application/json",
|
|
11333
|
+
}
|
|
11334
|
+
};
|
|
11335
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11336
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11337
|
+
}).then((_response) => {
|
|
11338
|
+
return this.processDeleteFixture(_response);
|
|
11339
|
+
});
|
|
11340
|
+
}
|
|
11341
|
+
processDeleteFixture(response) {
|
|
11342
|
+
const status = response.status;
|
|
11343
|
+
let _headers = {};
|
|
11344
|
+
if (response.headers && response.headers.forEach) {
|
|
11345
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11346
|
+
}
|
|
11347
|
+
;
|
|
11348
|
+
if (status === 204) {
|
|
11349
|
+
return response.text().then((_responseText) => {
|
|
11350
|
+
return;
|
|
11351
|
+
});
|
|
11352
|
+
}
|
|
11353
|
+
else if (status !== 200 && status !== 204) {
|
|
11354
|
+
return response.text().then((_responseText) => {
|
|
11355
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11356
|
+
});
|
|
11357
|
+
}
|
|
11358
|
+
return Promise.resolve(null);
|
|
11359
|
+
}
|
|
11324
11360
|
updateFixtures(update) {
|
|
11325
11361
|
let url_ = this.baseUrl + "/fixtures";
|
|
11326
11362
|
url_ = url_.replace(/[?&]$/, "");
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -11939,6 +11939,8 @@ export interface ICncSetupFixturesClient {
|
|
|
11939
11939
|
|
|
11940
11940
|
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
11941
11941
|
|
|
11942
|
+
deleteFixture(fixtureIds: string[]): Promise<void>;
|
|
11943
|
+
|
|
11942
11944
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
11943
11945
|
|
|
11944
11946
|
getFixtureInterfaceSuggestions(input: string | undefined, fixtureType: FixtureTypeDto | undefined): Promise<FixtureSuggestionDto[]>;
|
|
@@ -12092,6 +12094,42 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12092
12094
|
return Promise.resolve<FixtureDto>(null as any);
|
|
12093
12095
|
}
|
|
12094
12096
|
|
|
12097
|
+
deleteFixture(fixtureIds: string[]): Promise<void> {
|
|
12098
|
+
let url_ = this.baseUrl + "/fixtures";
|
|
12099
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12100
|
+
|
|
12101
|
+
const content_ = JSON.stringify(fixtureIds);
|
|
12102
|
+
|
|
12103
|
+
let options_: RequestInit = {
|
|
12104
|
+
body: content_,
|
|
12105
|
+
method: "DELETE",
|
|
12106
|
+
headers: {
|
|
12107
|
+
"Content-Type": "application/json",
|
|
12108
|
+
}
|
|
12109
|
+
};
|
|
12110
|
+
|
|
12111
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12112
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12113
|
+
}).then((_response: Response) => {
|
|
12114
|
+
return this.processDeleteFixture(_response);
|
|
12115
|
+
});
|
|
12116
|
+
}
|
|
12117
|
+
|
|
12118
|
+
protected processDeleteFixture(response: Response): Promise<void> {
|
|
12119
|
+
const status = response.status;
|
|
12120
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12121
|
+
if (status === 204) {
|
|
12122
|
+
return response.text().then((_responseText) => {
|
|
12123
|
+
return;
|
|
12124
|
+
});
|
|
12125
|
+
} else if (status !== 200 && status !== 204) {
|
|
12126
|
+
return response.text().then((_responseText) => {
|
|
12127
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12128
|
+
});
|
|
12129
|
+
}
|
|
12130
|
+
return Promise.resolve<void>(null as any);
|
|
12131
|
+
}
|
|
12132
|
+
|
|
12095
12133
|
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]> {
|
|
12096
12134
|
let url_ = this.baseUrl + "/fixtures";
|
|
12097
12135
|
url_ = url_.replace(/[?&]$/, "");
|