@ignos/api-client 20250612.0.11891 → 20250619.0.11931
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 +36 -0
- package/lib/ignosportal-api.js +139 -0
- package/package.json +1 -1
- package/src/ignosportal-api.ts +172 -0
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1206,6 +1206,8 @@ export interface ICncSetupClient {
|
|
|
1206
1206
|
deleteCncMachineToolImage(machineId: string, id: number, filename: string): Promise<void>;
|
|
1207
1207
|
importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
|
|
1208
1208
|
copyTool(command: CopyCncTool): Promise<CncToolDto>;
|
|
1209
|
+
getKeepSettings(): Promise<KeepSettingsDto>;
|
|
1210
|
+
updateKeepSettings(request: UpdateKeepSettings): Promise<KeepSettingsDto>;
|
|
1209
1211
|
}
|
|
1210
1212
|
export declare class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient {
|
|
1211
1213
|
private http;
|
|
@@ -1320,6 +1322,10 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1320
1322
|
protected processImportOperationWithTools(response: Response): Promise<void>;
|
|
1321
1323
|
copyTool(command: CopyCncTool): Promise<CncToolDto>;
|
|
1322
1324
|
protected processCopyTool(response: Response): Promise<CncToolDto>;
|
|
1325
|
+
getKeepSettings(): Promise<KeepSettingsDto>;
|
|
1326
|
+
protected processGetKeepSettings(response: Response): Promise<KeepSettingsDto>;
|
|
1327
|
+
updateKeepSettings(request: UpdateKeepSettings): Promise<KeepSettingsDto>;
|
|
1328
|
+
protected processUpdateKeepSettings(response: Response): Promise<KeepSettingsDto>;
|
|
1323
1329
|
}
|
|
1324
1330
|
export interface ICncSetupFixturesClient {
|
|
1325
1331
|
listFixtures(request: ListFixtures): Promise<FixtureListDto>;
|
|
@@ -8238,6 +8244,36 @@ export interface ICopyCncTool {
|
|
|
8238
8244
|
originType: ToolOriginType;
|
|
8239
8245
|
}
|
|
8240
8246
|
export type ToolOriginType = "Operation" | "Machine";
|
|
8247
|
+
export declare class KeepSettingsDto implements IKeepSettingsDto {
|
|
8248
|
+
autoApproveFixtures?: boolean;
|
|
8249
|
+
created: Date;
|
|
8250
|
+
createdBy: string;
|
|
8251
|
+
createdById: string;
|
|
8252
|
+
updatedBy?: string | null;
|
|
8253
|
+
updatedById?: string | null;
|
|
8254
|
+
constructor(data?: IKeepSettingsDto);
|
|
8255
|
+
init(_data?: any): void;
|
|
8256
|
+
static fromJS(data: any): KeepSettingsDto;
|
|
8257
|
+
toJSON(data?: any): any;
|
|
8258
|
+
}
|
|
8259
|
+
export interface IKeepSettingsDto {
|
|
8260
|
+
autoApproveFixtures?: boolean;
|
|
8261
|
+
created: Date;
|
|
8262
|
+
createdBy: string;
|
|
8263
|
+
createdById: string;
|
|
8264
|
+
updatedBy?: string | null;
|
|
8265
|
+
updatedById?: string | null;
|
|
8266
|
+
}
|
|
8267
|
+
export declare class UpdateKeepSettings implements IUpdateKeepSettings {
|
|
8268
|
+
autoApproveFixtures: boolean;
|
|
8269
|
+
constructor(data?: IUpdateKeepSettings);
|
|
8270
|
+
init(_data?: any): void;
|
|
8271
|
+
static fromJS(data: any): UpdateKeepSettings;
|
|
8272
|
+
toJSON(data?: any): any;
|
|
8273
|
+
}
|
|
8274
|
+
export interface IUpdateKeepSettings {
|
|
8275
|
+
autoApproveFixtures: boolean;
|
|
8276
|
+
}
|
|
8241
8277
|
export declare class FixtureListDto implements IFixtureListDto {
|
|
8242
8278
|
results: FixtureDto[];
|
|
8243
8279
|
continuationToken?: string | null;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11193,6 +11193,83 @@ export class CncSetupClient extends AuthorizedApiBase {
|
|
|
11193
11193
|
}
|
|
11194
11194
|
return Promise.resolve(null);
|
|
11195
11195
|
}
|
|
11196
|
+
getKeepSettings() {
|
|
11197
|
+
let url_ = this.baseUrl + "/cncsetup/settings";
|
|
11198
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11199
|
+
let options_ = {
|
|
11200
|
+
method: "GET",
|
|
11201
|
+
headers: {
|
|
11202
|
+
"Accept": "application/json"
|
|
11203
|
+
}
|
|
11204
|
+
};
|
|
11205
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11206
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11207
|
+
}).then((_response) => {
|
|
11208
|
+
return this.processGetKeepSettings(_response);
|
|
11209
|
+
});
|
|
11210
|
+
}
|
|
11211
|
+
processGetKeepSettings(response) {
|
|
11212
|
+
const status = response.status;
|
|
11213
|
+
let _headers = {};
|
|
11214
|
+
if (response.headers && response.headers.forEach) {
|
|
11215
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11216
|
+
}
|
|
11217
|
+
;
|
|
11218
|
+
if (status === 200) {
|
|
11219
|
+
return response.text().then((_responseText) => {
|
|
11220
|
+
let result200 = null;
|
|
11221
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11222
|
+
result200 = KeepSettingsDto.fromJS(resultData200);
|
|
11223
|
+
return result200;
|
|
11224
|
+
});
|
|
11225
|
+
}
|
|
11226
|
+
else if (status !== 200 && status !== 204) {
|
|
11227
|
+
return response.text().then((_responseText) => {
|
|
11228
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11229
|
+
});
|
|
11230
|
+
}
|
|
11231
|
+
return Promise.resolve(null);
|
|
11232
|
+
}
|
|
11233
|
+
updateKeepSettings(request) {
|
|
11234
|
+
let url_ = this.baseUrl + "/cncsetup/settings";
|
|
11235
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11236
|
+
const content_ = JSON.stringify(request);
|
|
11237
|
+
let options_ = {
|
|
11238
|
+
body: content_,
|
|
11239
|
+
method: "POST",
|
|
11240
|
+
headers: {
|
|
11241
|
+
"Content-Type": "application/json",
|
|
11242
|
+
"Accept": "application/json"
|
|
11243
|
+
}
|
|
11244
|
+
};
|
|
11245
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11246
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11247
|
+
}).then((_response) => {
|
|
11248
|
+
return this.processUpdateKeepSettings(_response);
|
|
11249
|
+
});
|
|
11250
|
+
}
|
|
11251
|
+
processUpdateKeepSettings(response) {
|
|
11252
|
+
const status = response.status;
|
|
11253
|
+
let _headers = {};
|
|
11254
|
+
if (response.headers && response.headers.forEach) {
|
|
11255
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
11256
|
+
}
|
|
11257
|
+
;
|
|
11258
|
+
if (status === 200) {
|
|
11259
|
+
return response.text().then((_responseText) => {
|
|
11260
|
+
let result200 = null;
|
|
11261
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11262
|
+
result200 = KeepSettingsDto.fromJS(resultData200);
|
|
11263
|
+
return result200;
|
|
11264
|
+
});
|
|
11265
|
+
}
|
|
11266
|
+
else if (status !== 200 && status !== 204) {
|
|
11267
|
+
return response.text().then((_responseText) => {
|
|
11268
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11269
|
+
});
|
|
11270
|
+
}
|
|
11271
|
+
return Promise.resolve(null);
|
|
11272
|
+
}
|
|
11196
11273
|
}
|
|
11197
11274
|
export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
11198
11275
|
constructor(configuration, baseUrl, http) {
|
|
@@ -33739,6 +33816,68 @@ export class CopyCncTool {
|
|
|
33739
33816
|
return data;
|
|
33740
33817
|
}
|
|
33741
33818
|
}
|
|
33819
|
+
export class KeepSettingsDto {
|
|
33820
|
+
constructor(data) {
|
|
33821
|
+
if (data) {
|
|
33822
|
+
for (var property in data) {
|
|
33823
|
+
if (data.hasOwnProperty(property))
|
|
33824
|
+
this[property] = data[property];
|
|
33825
|
+
}
|
|
33826
|
+
}
|
|
33827
|
+
}
|
|
33828
|
+
init(_data) {
|
|
33829
|
+
if (_data) {
|
|
33830
|
+
this.autoApproveFixtures = _data["autoApproveFixtures"];
|
|
33831
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : undefined;
|
|
33832
|
+
this.createdBy = _data["createdBy"];
|
|
33833
|
+
this.createdById = _data["createdById"];
|
|
33834
|
+
this.updatedBy = _data["updatedBy"];
|
|
33835
|
+
this.updatedById = _data["updatedById"];
|
|
33836
|
+
}
|
|
33837
|
+
}
|
|
33838
|
+
static fromJS(data) {
|
|
33839
|
+
data = typeof data === 'object' ? data : {};
|
|
33840
|
+
let result = new KeepSettingsDto();
|
|
33841
|
+
result.init(data);
|
|
33842
|
+
return result;
|
|
33843
|
+
}
|
|
33844
|
+
toJSON(data) {
|
|
33845
|
+
data = typeof data === 'object' ? data : {};
|
|
33846
|
+
data["autoApproveFixtures"] = this.autoApproveFixtures;
|
|
33847
|
+
data["created"] = this.created ? this.created.toISOString() : undefined;
|
|
33848
|
+
data["createdBy"] = this.createdBy;
|
|
33849
|
+
data["createdById"] = this.createdById;
|
|
33850
|
+
data["updatedBy"] = this.updatedBy;
|
|
33851
|
+
data["updatedById"] = this.updatedById;
|
|
33852
|
+
return data;
|
|
33853
|
+
}
|
|
33854
|
+
}
|
|
33855
|
+
export class UpdateKeepSettings {
|
|
33856
|
+
constructor(data) {
|
|
33857
|
+
if (data) {
|
|
33858
|
+
for (var property in data) {
|
|
33859
|
+
if (data.hasOwnProperty(property))
|
|
33860
|
+
this[property] = data[property];
|
|
33861
|
+
}
|
|
33862
|
+
}
|
|
33863
|
+
}
|
|
33864
|
+
init(_data) {
|
|
33865
|
+
if (_data) {
|
|
33866
|
+
this.autoApproveFixtures = _data["autoApproveFixtures"];
|
|
33867
|
+
}
|
|
33868
|
+
}
|
|
33869
|
+
static fromJS(data) {
|
|
33870
|
+
data = typeof data === 'object' ? data : {};
|
|
33871
|
+
let result = new UpdateKeepSettings();
|
|
33872
|
+
result.init(data);
|
|
33873
|
+
return result;
|
|
33874
|
+
}
|
|
33875
|
+
toJSON(data) {
|
|
33876
|
+
data = typeof data === 'object' ? data : {};
|
|
33877
|
+
data["autoApproveFixtures"] = this.autoApproveFixtures;
|
|
33878
|
+
return data;
|
|
33879
|
+
}
|
|
33880
|
+
}
|
|
33742
33881
|
export class FixtureListDto {
|
|
33743
33882
|
constructor(data) {
|
|
33744
33883
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -9711,6 +9711,10 @@ export interface ICncSetupClient {
|
|
|
9711
9711
|
importOperationWithTools(request: ImportOperationWithTool): Promise<void>;
|
|
9712
9712
|
|
|
9713
9713
|
copyTool(command: CopyCncTool): Promise<CncToolDto>;
|
|
9714
|
+
|
|
9715
|
+
getKeepSettings(): Promise<KeepSettingsDto>;
|
|
9716
|
+
|
|
9717
|
+
updateKeepSettings(request: UpdateKeepSettings): Promise<KeepSettingsDto>;
|
|
9714
9718
|
}
|
|
9715
9719
|
|
|
9716
9720
|
export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient {
|
|
@@ -11929,6 +11933,82 @@ export class CncSetupClient extends AuthorizedApiBase implements ICncSetupClient
|
|
|
11929
11933
|
}
|
|
11930
11934
|
return Promise.resolve<CncToolDto>(null as any);
|
|
11931
11935
|
}
|
|
11936
|
+
|
|
11937
|
+
getKeepSettings(): Promise<KeepSettingsDto> {
|
|
11938
|
+
let url_ = this.baseUrl + "/cncsetup/settings";
|
|
11939
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11940
|
+
|
|
11941
|
+
let options_: RequestInit = {
|
|
11942
|
+
method: "GET",
|
|
11943
|
+
headers: {
|
|
11944
|
+
"Accept": "application/json"
|
|
11945
|
+
}
|
|
11946
|
+
};
|
|
11947
|
+
|
|
11948
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11949
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11950
|
+
}).then((_response: Response) => {
|
|
11951
|
+
return this.processGetKeepSettings(_response);
|
|
11952
|
+
});
|
|
11953
|
+
}
|
|
11954
|
+
|
|
11955
|
+
protected processGetKeepSettings(response: Response): Promise<KeepSettingsDto> {
|
|
11956
|
+
const status = response.status;
|
|
11957
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
11958
|
+
if (status === 200) {
|
|
11959
|
+
return response.text().then((_responseText) => {
|
|
11960
|
+
let result200: any = null;
|
|
11961
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11962
|
+
result200 = KeepSettingsDto.fromJS(resultData200);
|
|
11963
|
+
return result200;
|
|
11964
|
+
});
|
|
11965
|
+
} else if (status !== 200 && status !== 204) {
|
|
11966
|
+
return response.text().then((_responseText) => {
|
|
11967
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
11968
|
+
});
|
|
11969
|
+
}
|
|
11970
|
+
return Promise.resolve<KeepSettingsDto>(null as any);
|
|
11971
|
+
}
|
|
11972
|
+
|
|
11973
|
+
updateKeepSettings(request: UpdateKeepSettings): Promise<KeepSettingsDto> {
|
|
11974
|
+
let url_ = this.baseUrl + "/cncsetup/settings";
|
|
11975
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
11976
|
+
|
|
11977
|
+
const content_ = JSON.stringify(request);
|
|
11978
|
+
|
|
11979
|
+
let options_: RequestInit = {
|
|
11980
|
+
body: content_,
|
|
11981
|
+
method: "POST",
|
|
11982
|
+
headers: {
|
|
11983
|
+
"Content-Type": "application/json",
|
|
11984
|
+
"Accept": "application/json"
|
|
11985
|
+
}
|
|
11986
|
+
};
|
|
11987
|
+
|
|
11988
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11989
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
11990
|
+
}).then((_response: Response) => {
|
|
11991
|
+
return this.processUpdateKeepSettings(_response);
|
|
11992
|
+
});
|
|
11993
|
+
}
|
|
11994
|
+
|
|
11995
|
+
protected processUpdateKeepSettings(response: Response): Promise<KeepSettingsDto> {
|
|
11996
|
+
const status = response.status;
|
|
11997
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
11998
|
+
if (status === 200) {
|
|
11999
|
+
return response.text().then((_responseText) => {
|
|
12000
|
+
let result200: any = null;
|
|
12001
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12002
|
+
result200 = KeepSettingsDto.fromJS(resultData200);
|
|
12003
|
+
return result200;
|
|
12004
|
+
});
|
|
12005
|
+
} else if (status !== 200 && status !== 204) {
|
|
12006
|
+
return response.text().then((_responseText) => {
|
|
12007
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12008
|
+
});
|
|
12009
|
+
}
|
|
12010
|
+
return Promise.resolve<KeepSettingsDto>(null as any);
|
|
12011
|
+
}
|
|
11932
12012
|
}
|
|
11933
12013
|
|
|
11934
12014
|
export interface ICncSetupFixturesClient {
|
|
@@ -40823,6 +40903,98 @@ export interface ICopyCncTool {
|
|
|
40823
40903
|
|
|
40824
40904
|
export type ToolOriginType = "Operation" | "Machine";
|
|
40825
40905
|
|
|
40906
|
+
export class KeepSettingsDto implements IKeepSettingsDto {
|
|
40907
|
+
autoApproveFixtures?: boolean;
|
|
40908
|
+
created!: Date;
|
|
40909
|
+
createdBy!: string;
|
|
40910
|
+
createdById!: string;
|
|
40911
|
+
updatedBy?: string | null;
|
|
40912
|
+
updatedById?: string | null;
|
|
40913
|
+
|
|
40914
|
+
constructor(data?: IKeepSettingsDto) {
|
|
40915
|
+
if (data) {
|
|
40916
|
+
for (var property in data) {
|
|
40917
|
+
if (data.hasOwnProperty(property))
|
|
40918
|
+
(<any>this)[property] = (<any>data)[property];
|
|
40919
|
+
}
|
|
40920
|
+
}
|
|
40921
|
+
}
|
|
40922
|
+
|
|
40923
|
+
init(_data?: any) {
|
|
40924
|
+
if (_data) {
|
|
40925
|
+
this.autoApproveFixtures = _data["autoApproveFixtures"];
|
|
40926
|
+
this.created = _data["created"] ? new Date(_data["created"].toString()) : <any>undefined;
|
|
40927
|
+
this.createdBy = _data["createdBy"];
|
|
40928
|
+
this.createdById = _data["createdById"];
|
|
40929
|
+
this.updatedBy = _data["updatedBy"];
|
|
40930
|
+
this.updatedById = _data["updatedById"];
|
|
40931
|
+
}
|
|
40932
|
+
}
|
|
40933
|
+
|
|
40934
|
+
static fromJS(data: any): KeepSettingsDto {
|
|
40935
|
+
data = typeof data === 'object' ? data : {};
|
|
40936
|
+
let result = new KeepSettingsDto();
|
|
40937
|
+
result.init(data);
|
|
40938
|
+
return result;
|
|
40939
|
+
}
|
|
40940
|
+
|
|
40941
|
+
toJSON(data?: any) {
|
|
40942
|
+
data = typeof data === 'object' ? data : {};
|
|
40943
|
+
data["autoApproveFixtures"] = this.autoApproveFixtures;
|
|
40944
|
+
data["created"] = this.created ? this.created.toISOString() : <any>undefined;
|
|
40945
|
+
data["createdBy"] = this.createdBy;
|
|
40946
|
+
data["createdById"] = this.createdById;
|
|
40947
|
+
data["updatedBy"] = this.updatedBy;
|
|
40948
|
+
data["updatedById"] = this.updatedById;
|
|
40949
|
+
return data;
|
|
40950
|
+
}
|
|
40951
|
+
}
|
|
40952
|
+
|
|
40953
|
+
export interface IKeepSettingsDto {
|
|
40954
|
+
autoApproveFixtures?: boolean;
|
|
40955
|
+
created: Date;
|
|
40956
|
+
createdBy: string;
|
|
40957
|
+
createdById: string;
|
|
40958
|
+
updatedBy?: string | null;
|
|
40959
|
+
updatedById?: string | null;
|
|
40960
|
+
}
|
|
40961
|
+
|
|
40962
|
+
export class UpdateKeepSettings implements IUpdateKeepSettings {
|
|
40963
|
+
autoApproveFixtures!: boolean;
|
|
40964
|
+
|
|
40965
|
+
constructor(data?: IUpdateKeepSettings) {
|
|
40966
|
+
if (data) {
|
|
40967
|
+
for (var property in data) {
|
|
40968
|
+
if (data.hasOwnProperty(property))
|
|
40969
|
+
(<any>this)[property] = (<any>data)[property];
|
|
40970
|
+
}
|
|
40971
|
+
}
|
|
40972
|
+
}
|
|
40973
|
+
|
|
40974
|
+
init(_data?: any) {
|
|
40975
|
+
if (_data) {
|
|
40976
|
+
this.autoApproveFixtures = _data["autoApproveFixtures"];
|
|
40977
|
+
}
|
|
40978
|
+
}
|
|
40979
|
+
|
|
40980
|
+
static fromJS(data: any): UpdateKeepSettings {
|
|
40981
|
+
data = typeof data === 'object' ? data : {};
|
|
40982
|
+
let result = new UpdateKeepSettings();
|
|
40983
|
+
result.init(data);
|
|
40984
|
+
return result;
|
|
40985
|
+
}
|
|
40986
|
+
|
|
40987
|
+
toJSON(data?: any) {
|
|
40988
|
+
data = typeof data === 'object' ? data : {};
|
|
40989
|
+
data["autoApproveFixtures"] = this.autoApproveFixtures;
|
|
40990
|
+
return data;
|
|
40991
|
+
}
|
|
40992
|
+
}
|
|
40993
|
+
|
|
40994
|
+
export interface IUpdateKeepSettings {
|
|
40995
|
+
autoApproveFixtures: boolean;
|
|
40996
|
+
}
|
|
40997
|
+
|
|
40826
40998
|
export class FixtureListDto implements IFixtureListDto {
|
|
40827
40999
|
results!: FixtureDto[];
|
|
40828
41000
|
continuationToken?: string | null;
|