@ignos/api-client 20250603.0.11863 → 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 +19 -0
- package/lib/ignosportal-api.js +77 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +95 -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[]>;
|
|
@@ -8253,6 +8256,7 @@ export declare class FixtureDto implements IFixtureDto {
|
|
|
8253
8256
|
fullName: string;
|
|
8254
8257
|
fullNameWithId: string;
|
|
8255
8258
|
fixtureGroupId: string;
|
|
8259
|
+
otherInstances: FixtureInstanceDto[];
|
|
8256
8260
|
deleted?: boolean;
|
|
8257
8261
|
approved?: boolean;
|
|
8258
8262
|
drawing?: string | null;
|
|
@@ -8282,6 +8286,7 @@ export interface IFixtureDto {
|
|
|
8282
8286
|
fullName: string;
|
|
8283
8287
|
fullNameWithId: string;
|
|
8284
8288
|
fixtureGroupId: string;
|
|
8289
|
+
otherInstances: FixtureInstanceDto[];
|
|
8285
8290
|
deleted?: boolean;
|
|
8286
8291
|
approved?: boolean;
|
|
8287
8292
|
drawing?: string | null;
|
|
@@ -8301,6 +8306,20 @@ export interface IFixtureDto {
|
|
|
8301
8306
|
gripSide?: GripSideDto | null;
|
|
8302
8307
|
description?: string | null;
|
|
8303
8308
|
}
|
|
8309
|
+
export declare class FixtureInstanceDto implements IFixtureInstanceDto {
|
|
8310
|
+
fixtureId: string;
|
|
8311
|
+
fullName: string;
|
|
8312
|
+
fullNameWithId: string;
|
|
8313
|
+
constructor(data?: IFixtureInstanceDto);
|
|
8314
|
+
init(_data?: any): void;
|
|
8315
|
+
static fromJS(data: any): FixtureInstanceDto;
|
|
8316
|
+
toJSON(data?: any): any;
|
|
8317
|
+
}
|
|
8318
|
+
export interface IFixtureInstanceDto {
|
|
8319
|
+
fixtureId: string;
|
|
8320
|
+
fullName: string;
|
|
8321
|
+
fullNameWithId: string;
|
|
8322
|
+
}
|
|
8304
8323
|
export type FixtureTypeDto = "Bungs" | "Jaws" | "Jigs" | "Centers";
|
|
8305
8324
|
export declare class FixtureLastUsedOperationDto implements IFixtureLastUsedOperationDto {
|
|
8306
8325
|
operationId: string;
|
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(/[?&]$/, "");
|
|
@@ -33741,6 +33777,7 @@ export class FixtureDto {
|
|
|
33741
33777
|
}
|
|
33742
33778
|
}
|
|
33743
33779
|
if (!data) {
|
|
33780
|
+
this.otherInstances = [];
|
|
33744
33781
|
this.lastUsedOperations = [];
|
|
33745
33782
|
}
|
|
33746
33783
|
}
|
|
@@ -33751,6 +33788,11 @@ export class FixtureDto {
|
|
|
33751
33788
|
this.fullName = _data["fullName"];
|
|
33752
33789
|
this.fullNameWithId = _data["fullNameWithId"];
|
|
33753
33790
|
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
33791
|
+
if (Array.isArray(_data["otherInstances"])) {
|
|
33792
|
+
this.otherInstances = [];
|
|
33793
|
+
for (let item of _data["otherInstances"])
|
|
33794
|
+
this.otherInstances.push(FixtureInstanceDto.fromJS(item));
|
|
33795
|
+
}
|
|
33754
33796
|
this.deleted = _data["deleted"];
|
|
33755
33797
|
this.approved = _data["approved"];
|
|
33756
33798
|
this.drawing = _data["drawing"];
|
|
@@ -33788,6 +33830,11 @@ export class FixtureDto {
|
|
|
33788
33830
|
data["fullName"] = this.fullName;
|
|
33789
33831
|
data["fullNameWithId"] = this.fullNameWithId;
|
|
33790
33832
|
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
33833
|
+
if (Array.isArray(this.otherInstances)) {
|
|
33834
|
+
data["otherInstances"] = [];
|
|
33835
|
+
for (let item of this.otherInstances)
|
|
33836
|
+
data["otherInstances"].push(item.toJSON());
|
|
33837
|
+
}
|
|
33791
33838
|
data["deleted"] = this.deleted;
|
|
33792
33839
|
data["approved"] = this.approved;
|
|
33793
33840
|
data["drawing"] = this.drawing;
|
|
@@ -33813,6 +33860,36 @@ export class FixtureDto {
|
|
|
33813
33860
|
return data;
|
|
33814
33861
|
}
|
|
33815
33862
|
}
|
|
33863
|
+
export class FixtureInstanceDto {
|
|
33864
|
+
constructor(data) {
|
|
33865
|
+
if (data) {
|
|
33866
|
+
for (var property in data) {
|
|
33867
|
+
if (data.hasOwnProperty(property))
|
|
33868
|
+
this[property] = data[property];
|
|
33869
|
+
}
|
|
33870
|
+
}
|
|
33871
|
+
}
|
|
33872
|
+
init(_data) {
|
|
33873
|
+
if (_data) {
|
|
33874
|
+
this.fixtureId = _data["fixtureId"];
|
|
33875
|
+
this.fullName = _data["fullName"];
|
|
33876
|
+
this.fullNameWithId = _data["fullNameWithId"];
|
|
33877
|
+
}
|
|
33878
|
+
}
|
|
33879
|
+
static fromJS(data) {
|
|
33880
|
+
data = typeof data === 'object' ? data : {};
|
|
33881
|
+
let result = new FixtureInstanceDto();
|
|
33882
|
+
result.init(data);
|
|
33883
|
+
return result;
|
|
33884
|
+
}
|
|
33885
|
+
toJSON(data) {
|
|
33886
|
+
data = typeof data === 'object' ? data : {};
|
|
33887
|
+
data["fixtureId"] = this.fixtureId;
|
|
33888
|
+
data["fullName"] = this.fullName;
|
|
33889
|
+
data["fullNameWithId"] = this.fullNameWithId;
|
|
33890
|
+
return data;
|
|
33891
|
+
}
|
|
33892
|
+
}
|
|
33816
33893
|
export class FixtureLastUsedOperationDto {
|
|
33817
33894
|
constructor(data) {
|
|
33818
33895
|
if (data) {
|
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(/[?&]$/, "");
|
|
@@ -40832,6 +40870,7 @@ export class FixtureDto implements IFixtureDto {
|
|
|
40832
40870
|
fullName!: string;
|
|
40833
40871
|
fullNameWithId!: string;
|
|
40834
40872
|
fixtureGroupId!: string;
|
|
40873
|
+
otherInstances!: FixtureInstanceDto[];
|
|
40835
40874
|
deleted?: boolean;
|
|
40836
40875
|
approved?: boolean;
|
|
40837
40876
|
drawing?: string | null;
|
|
@@ -40859,6 +40898,7 @@ export class FixtureDto implements IFixtureDto {
|
|
|
40859
40898
|
}
|
|
40860
40899
|
}
|
|
40861
40900
|
if (!data) {
|
|
40901
|
+
this.otherInstances = [];
|
|
40862
40902
|
this.lastUsedOperations = [];
|
|
40863
40903
|
}
|
|
40864
40904
|
}
|
|
@@ -40870,6 +40910,11 @@ export class FixtureDto implements IFixtureDto {
|
|
|
40870
40910
|
this.fullName = _data["fullName"];
|
|
40871
40911
|
this.fullNameWithId = _data["fullNameWithId"];
|
|
40872
40912
|
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
40913
|
+
if (Array.isArray(_data["otherInstances"])) {
|
|
40914
|
+
this.otherInstances = [] as any;
|
|
40915
|
+
for (let item of _data["otherInstances"])
|
|
40916
|
+
this.otherInstances!.push(FixtureInstanceDto.fromJS(item));
|
|
40917
|
+
}
|
|
40873
40918
|
this.deleted = _data["deleted"];
|
|
40874
40919
|
this.approved = _data["approved"];
|
|
40875
40920
|
this.drawing = _data["drawing"];
|
|
@@ -40909,6 +40954,11 @@ export class FixtureDto implements IFixtureDto {
|
|
|
40909
40954
|
data["fullName"] = this.fullName;
|
|
40910
40955
|
data["fullNameWithId"] = this.fullNameWithId;
|
|
40911
40956
|
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
40957
|
+
if (Array.isArray(this.otherInstances)) {
|
|
40958
|
+
data["otherInstances"] = [];
|
|
40959
|
+
for (let item of this.otherInstances)
|
|
40960
|
+
data["otherInstances"].push(item.toJSON());
|
|
40961
|
+
}
|
|
40912
40962
|
data["deleted"] = this.deleted;
|
|
40913
40963
|
data["approved"] = this.approved;
|
|
40914
40964
|
data["drawing"] = this.drawing;
|
|
@@ -40941,6 +40991,7 @@ export interface IFixtureDto {
|
|
|
40941
40991
|
fullName: string;
|
|
40942
40992
|
fullNameWithId: string;
|
|
40943
40993
|
fixtureGroupId: string;
|
|
40994
|
+
otherInstances: FixtureInstanceDto[];
|
|
40944
40995
|
deleted?: boolean;
|
|
40945
40996
|
approved?: boolean;
|
|
40946
40997
|
drawing?: string | null;
|
|
@@ -40961,6 +41012,50 @@ export interface IFixtureDto {
|
|
|
40961
41012
|
description?: string | null;
|
|
40962
41013
|
}
|
|
40963
41014
|
|
|
41015
|
+
export class FixtureInstanceDto implements IFixtureInstanceDto {
|
|
41016
|
+
fixtureId!: string;
|
|
41017
|
+
fullName!: string;
|
|
41018
|
+
fullNameWithId!: string;
|
|
41019
|
+
|
|
41020
|
+
constructor(data?: IFixtureInstanceDto) {
|
|
41021
|
+
if (data) {
|
|
41022
|
+
for (var property in data) {
|
|
41023
|
+
if (data.hasOwnProperty(property))
|
|
41024
|
+
(<any>this)[property] = (<any>data)[property];
|
|
41025
|
+
}
|
|
41026
|
+
}
|
|
41027
|
+
}
|
|
41028
|
+
|
|
41029
|
+
init(_data?: any) {
|
|
41030
|
+
if (_data) {
|
|
41031
|
+
this.fixtureId = _data["fixtureId"];
|
|
41032
|
+
this.fullName = _data["fullName"];
|
|
41033
|
+
this.fullNameWithId = _data["fullNameWithId"];
|
|
41034
|
+
}
|
|
41035
|
+
}
|
|
41036
|
+
|
|
41037
|
+
static fromJS(data: any): FixtureInstanceDto {
|
|
41038
|
+
data = typeof data === 'object' ? data : {};
|
|
41039
|
+
let result = new FixtureInstanceDto();
|
|
41040
|
+
result.init(data);
|
|
41041
|
+
return result;
|
|
41042
|
+
}
|
|
41043
|
+
|
|
41044
|
+
toJSON(data?: any) {
|
|
41045
|
+
data = typeof data === 'object' ? data : {};
|
|
41046
|
+
data["fixtureId"] = this.fixtureId;
|
|
41047
|
+
data["fullName"] = this.fullName;
|
|
41048
|
+
data["fullNameWithId"] = this.fullNameWithId;
|
|
41049
|
+
return data;
|
|
41050
|
+
}
|
|
41051
|
+
}
|
|
41052
|
+
|
|
41053
|
+
export interface IFixtureInstanceDto {
|
|
41054
|
+
fixtureId: string;
|
|
41055
|
+
fullName: string;
|
|
41056
|
+
fullNameWithId: string;
|
|
41057
|
+
}
|
|
41058
|
+
|
|
40964
41059
|
export type FixtureTypeDto = "Bungs" | "Jaws" | "Jigs" | "Centers";
|
|
40965
41060
|
|
|
40966
41061
|
export class FixtureLastUsedOperationDto implements IFixtureLastUsedOperationDto {
|