@ignos/api-client 20250506.0.11660 → 20250508.0.11681
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 +67 -29
- package/lib/ignosportal-api.js +93 -54
- package/package.json +1 -1
- package/src/ignosportal-api.ts +158 -81
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1324,8 +1324,8 @@ export declare class CncSetupClient extends AuthorizedApiBase implements ICncSet
|
|
|
1324
1324
|
export interface ICncSetupFixturesClient {
|
|
1325
1325
|
listFixtures(request: ListFixtures): Promise<FixtureListDto>;
|
|
1326
1326
|
getFixture(fixtureId: string): Promise<FixtureDto>;
|
|
1327
|
-
|
|
1328
|
-
|
|
1327
|
+
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
1328
|
+
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
1329
1329
|
operationAddFixture(fixtureId: string, operationId: string): Promise<CncMachineOperationDto>;
|
|
1330
1330
|
}
|
|
1331
1331
|
export declare class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSetupFixturesClient {
|
|
@@ -1339,10 +1339,10 @@ export declare class CncSetupFixturesClient extends AuthorizedApiBase implements
|
|
|
1339
1339
|
protected processListFixtures(response: Response): Promise<FixtureListDto>;
|
|
1340
1340
|
getFixture(fixtureId: string): Promise<FixtureDto>;
|
|
1341
1341
|
protected processGetFixture(response: Response): Promise<FixtureDto>;
|
|
1342
|
-
|
|
1343
|
-
protected processUpdateFixture(response: Response): Promise<FixtureDto>;
|
|
1344
|
-
createFixture(update: FixtureUpdateDto): Promise<FixtureDto>;
|
|
1342
|
+
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
1345
1343
|
protected processCreateFixture(response: Response): Promise<FixtureDto>;
|
|
1344
|
+
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
1345
|
+
protected processUpdateFixtures(response: Response): Promise<FixtureDto[]>;
|
|
1346
1346
|
operationAddFixture(fixtureId: string, operationId: string): Promise<CncMachineOperationDto>;
|
|
1347
1347
|
protected processOperationAddFixture(response: Response): Promise<CncMachineOperationDto>;
|
|
1348
1348
|
}
|
|
@@ -7392,7 +7392,7 @@ export declare class CncMachineOperationDto implements ICncMachineOperationDto {
|
|
|
7392
7392
|
tailstock?: string | null;
|
|
7393
7393
|
tailstockPressure?: string | null;
|
|
7394
7394
|
fixture?: string | null;
|
|
7395
|
-
fixtures:
|
|
7395
|
+
fixtures: string[];
|
|
7396
7396
|
status: CncOperationStatus;
|
|
7397
7397
|
deleted: boolean;
|
|
7398
7398
|
auditInfo: CncSetupAuditDto;
|
|
@@ -7414,27 +7414,11 @@ export interface ICncMachineOperationDto {
|
|
|
7414
7414
|
tailstock?: string | null;
|
|
7415
7415
|
tailstockPressure?: string | null;
|
|
7416
7416
|
fixture?: string | null;
|
|
7417
|
-
fixtures:
|
|
7417
|
+
fixtures: string[];
|
|
7418
7418
|
status: CncOperationStatus;
|
|
7419
7419
|
deleted: boolean;
|
|
7420
7420
|
auditInfo: CncSetupAuditDto;
|
|
7421
7421
|
}
|
|
7422
|
-
export declare class FixtureLiteDto implements IFixtureLiteDto {
|
|
7423
|
-
id: string;
|
|
7424
|
-
name: string;
|
|
7425
|
-
instance: number;
|
|
7426
|
-
fixtureGroupId: string;
|
|
7427
|
-
constructor(data?: IFixtureLiteDto);
|
|
7428
|
-
init(_data?: any): void;
|
|
7429
|
-
static fromJS(data: any): FixtureLiteDto;
|
|
7430
|
-
toJSON(data?: any): any;
|
|
7431
|
-
}
|
|
7432
|
-
export interface IFixtureLiteDto {
|
|
7433
|
-
id: string;
|
|
7434
|
-
name: string;
|
|
7435
|
-
instance: number;
|
|
7436
|
-
fixtureGroupId: string;
|
|
7437
|
-
}
|
|
7438
7422
|
export type CncOperationStatus = "Draft" | "Ready" | "Verified" | "Archived";
|
|
7439
7423
|
export declare class CncSetupAuditDto implements ICncSetupAuditDto {
|
|
7440
7424
|
created: Date;
|
|
@@ -8155,12 +8139,12 @@ export interface IFixtureListDto {
|
|
|
8155
8139
|
continuationToken?: string | null;
|
|
8156
8140
|
}
|
|
8157
8141
|
export declare class FixtureDto implements IFixtureDto {
|
|
8158
|
-
|
|
8159
|
-
deleted?: boolean;
|
|
8160
|
-
approved?: boolean;
|
|
8142
|
+
fixtureId: string;
|
|
8161
8143
|
name: string;
|
|
8162
8144
|
instance: number;
|
|
8163
8145
|
fixtureGroupId: string;
|
|
8146
|
+
deleted?: boolean;
|
|
8147
|
+
approved?: boolean;
|
|
8164
8148
|
drawing?: string | null;
|
|
8165
8149
|
drawingRev?: string | null;
|
|
8166
8150
|
sourceMachine?: string | null;
|
|
@@ -8183,12 +8167,12 @@ export declare class FixtureDto implements IFixtureDto {
|
|
|
8183
8167
|
toJSON(data?: any): any;
|
|
8184
8168
|
}
|
|
8185
8169
|
export interface IFixtureDto {
|
|
8186
|
-
|
|
8187
|
-
deleted?: boolean;
|
|
8188
|
-
approved?: boolean;
|
|
8170
|
+
fixtureId: string;
|
|
8189
8171
|
name: string;
|
|
8190
8172
|
instance: number;
|
|
8191
8173
|
fixtureGroupId: string;
|
|
8174
|
+
deleted?: boolean;
|
|
8175
|
+
approved?: boolean;
|
|
8192
8176
|
drawing?: string | null;
|
|
8193
8177
|
drawingRev?: string | null;
|
|
8194
8178
|
sourceMachine?: string | null;
|
|
@@ -8209,6 +8193,7 @@ export interface IFixtureDto {
|
|
|
8209
8193
|
export type FixtureTypeDto = "Bungs" | "Jaws" | "Jigs" | "Centers";
|
|
8210
8194
|
export declare class FixtureLastUsedOperationDto implements IFixtureLastUsedOperationDto {
|
|
8211
8195
|
operationId: string;
|
|
8196
|
+
cncPartId: string;
|
|
8212
8197
|
lastUsedBy?: string | null;
|
|
8213
8198
|
lastUsedById?: string | null;
|
|
8214
8199
|
lastUsed?: Date | null;
|
|
@@ -8219,6 +8204,7 @@ export declare class FixtureLastUsedOperationDto implements IFixtureLastUsedOper
|
|
|
8219
8204
|
}
|
|
8220
8205
|
export interface IFixtureLastUsedOperationDto {
|
|
8221
8206
|
operationId: string;
|
|
8207
|
+
cncPartId: string;
|
|
8222
8208
|
lastUsedBy?: string | null;
|
|
8223
8209
|
lastUsedById?: string | null;
|
|
8224
8210
|
lastUsed?: Date | null;
|
|
@@ -8244,7 +8230,54 @@ export interface IListFixtures {
|
|
|
8244
8230
|
}
|
|
8245
8231
|
export type FixtureDeletedDto = "NotDeleted" | "Deleted";
|
|
8246
8232
|
export type FixtureApprovedDto = "NotApproved" | "Approved";
|
|
8233
|
+
export declare class FixtureCreateDto implements IFixtureCreateDto {
|
|
8234
|
+
name: string;
|
|
8235
|
+
fixtureGroupId?: string | null;
|
|
8236
|
+
deleted?: boolean;
|
|
8237
|
+
approved?: boolean;
|
|
8238
|
+
drawing?: string | null;
|
|
8239
|
+
drawingRev?: string | null;
|
|
8240
|
+
sourceMachine?: string | null;
|
|
8241
|
+
location?: string | null;
|
|
8242
|
+
type?: FixtureTypeDto;
|
|
8243
|
+
interface?: string | null;
|
|
8244
|
+
diameter?: number | null;
|
|
8245
|
+
outerDiameter?: number | null;
|
|
8246
|
+
innerDiameter?: number | null;
|
|
8247
|
+
depth?: number | null;
|
|
8248
|
+
totalHeight?: number | null;
|
|
8249
|
+
width?: number | null;
|
|
8250
|
+
totalLength?: number | null;
|
|
8251
|
+
gripSide?: GripSideDto;
|
|
8252
|
+
description?: string | null;
|
|
8253
|
+
constructor(data?: IFixtureCreateDto);
|
|
8254
|
+
init(_data?: any): void;
|
|
8255
|
+
static fromJS(data: any): FixtureCreateDto;
|
|
8256
|
+
toJSON(data?: any): any;
|
|
8257
|
+
}
|
|
8258
|
+
export interface IFixtureCreateDto {
|
|
8259
|
+
name: string;
|
|
8260
|
+
fixtureGroupId?: string | null;
|
|
8261
|
+
deleted?: boolean;
|
|
8262
|
+
approved?: boolean;
|
|
8263
|
+
drawing?: string | null;
|
|
8264
|
+
drawingRev?: string | null;
|
|
8265
|
+
sourceMachine?: string | null;
|
|
8266
|
+
location?: string | null;
|
|
8267
|
+
type?: FixtureTypeDto;
|
|
8268
|
+
interface?: string | null;
|
|
8269
|
+
diameter?: number | null;
|
|
8270
|
+
outerDiameter?: number | null;
|
|
8271
|
+
innerDiameter?: number | null;
|
|
8272
|
+
depth?: number | null;
|
|
8273
|
+
totalHeight?: number | null;
|
|
8274
|
+
width?: number | null;
|
|
8275
|
+
totalLength?: number | null;
|
|
8276
|
+
gripSide?: GripSideDto;
|
|
8277
|
+
description?: string | null;
|
|
8278
|
+
}
|
|
8247
8279
|
export declare class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
8280
|
+
fixtureId: string;
|
|
8248
8281
|
name: string;
|
|
8249
8282
|
fixtureGroupId?: string | null;
|
|
8250
8283
|
deleted?: boolean;
|
|
@@ -8270,6 +8303,7 @@ export declare class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
|
8270
8303
|
toJSON(data?: any): any;
|
|
8271
8304
|
}
|
|
8272
8305
|
export interface IFixtureUpdateDto {
|
|
8306
|
+
fixtureId: string;
|
|
8273
8307
|
name: string;
|
|
8274
8308
|
fixtureGroupId?: string | null;
|
|
8275
8309
|
deleted?: boolean;
|
|
@@ -11529,6 +11563,7 @@ export interface ICreateMeasurementFormSchemaLinkRequest {
|
|
|
11529
11563
|
}
|
|
11530
11564
|
export declare class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
11531
11565
|
convertInchToMm: boolean;
|
|
11566
|
+
convertMicroInchToMicroMeter: boolean;
|
|
11532
11567
|
validateMeasuringTools: boolean;
|
|
11533
11568
|
validateMeasuringToolsForSuppliers: boolean;
|
|
11534
11569
|
generateSchemaRequirements: boolean;
|
|
@@ -11548,6 +11583,7 @@ export declare class MeasurementFormSettingsDto implements IMeasurementFormSetti
|
|
|
11548
11583
|
}
|
|
11549
11584
|
export interface IMeasurementFormSettingsDto {
|
|
11550
11585
|
convertInchToMm: boolean;
|
|
11586
|
+
convertMicroInchToMicroMeter: boolean;
|
|
11551
11587
|
validateMeasuringTools: boolean;
|
|
11552
11588
|
validateMeasuringToolsForSuppliers: boolean;
|
|
11553
11589
|
generateSchemaRequirements: boolean;
|
|
@@ -11563,6 +11599,7 @@ export interface IMeasurementFormSettingsDto {
|
|
|
11563
11599
|
}
|
|
11564
11600
|
export declare class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSettings {
|
|
11565
11601
|
convertInchToMm: boolean;
|
|
11602
|
+
convertMicroInchToMicroMeter: boolean;
|
|
11566
11603
|
validateMeasuringTools: boolean;
|
|
11567
11604
|
validateMeasuringToolsForSuppliers: boolean;
|
|
11568
11605
|
generateSchemaRequirements: boolean;
|
|
@@ -11582,6 +11619,7 @@ export declare class UpdateMeasurementFormSettings implements IUpdateMeasurement
|
|
|
11582
11619
|
}
|
|
11583
11620
|
export interface IUpdateMeasurementFormSettings {
|
|
11584
11621
|
convertInchToMm: boolean;
|
|
11622
|
+
convertMicroInchToMicroMeter: boolean;
|
|
11585
11623
|
validateMeasuringTools: boolean;
|
|
11586
11624
|
validateMeasuringToolsForSuppliers: boolean;
|
|
11587
11625
|
generateSchemaRequirements: boolean;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -11281,16 +11281,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11281
11281
|
}
|
|
11282
11282
|
return Promise.resolve(null);
|
|
11283
11283
|
}
|
|
11284
|
-
|
|
11285
|
-
let url_ = this.baseUrl + "/fixtures
|
|
11286
|
-
if (fixtureId === undefined || fixtureId === null)
|
|
11287
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
11288
|
-
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
11284
|
+
createFixture(update) {
|
|
11285
|
+
let url_ = this.baseUrl + "/fixtures";
|
|
11289
11286
|
url_ = url_.replace(/[?&]$/, "");
|
|
11290
11287
|
const content_ = JSON.stringify(update);
|
|
11291
11288
|
let options_ = {
|
|
11292
11289
|
body: content_,
|
|
11293
|
-
method: "
|
|
11290
|
+
method: "POST",
|
|
11294
11291
|
headers: {
|
|
11295
11292
|
"Content-Type": "application/json",
|
|
11296
11293
|
"Accept": "application/json"
|
|
@@ -11299,10 +11296,10 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11299
11296
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11300
11297
|
return this.http.fetch(url_, transformedOptions_);
|
|
11301
11298
|
}).then((_response) => {
|
|
11302
|
-
return this.
|
|
11299
|
+
return this.processCreateFixture(_response);
|
|
11303
11300
|
});
|
|
11304
11301
|
}
|
|
11305
|
-
|
|
11302
|
+
processCreateFixture(response) {
|
|
11306
11303
|
const status = response.status;
|
|
11307
11304
|
let _headers = {};
|
|
11308
11305
|
if (response.headers && response.headers.forEach) {
|
|
@@ -11324,13 +11321,13 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11324
11321
|
}
|
|
11325
11322
|
return Promise.resolve(null);
|
|
11326
11323
|
}
|
|
11327
|
-
|
|
11324
|
+
updateFixtures(update) {
|
|
11328
11325
|
let url_ = this.baseUrl + "/fixtures";
|
|
11329
11326
|
url_ = url_.replace(/[?&]$/, "");
|
|
11330
11327
|
const content_ = JSON.stringify(update);
|
|
11331
11328
|
let options_ = {
|
|
11332
11329
|
body: content_,
|
|
11333
|
-
method: "
|
|
11330
|
+
method: "PUT",
|
|
11334
11331
|
headers: {
|
|
11335
11332
|
"Content-Type": "application/json",
|
|
11336
11333
|
"Accept": "application/json"
|
|
@@ -11339,10 +11336,10 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11339
11336
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
11340
11337
|
return this.http.fetch(url_, transformedOptions_);
|
|
11341
11338
|
}).then((_response) => {
|
|
11342
|
-
return this.
|
|
11339
|
+
return this.processUpdateFixtures(_response);
|
|
11343
11340
|
});
|
|
11344
11341
|
}
|
|
11345
|
-
|
|
11342
|
+
processUpdateFixtures(response) {
|
|
11346
11343
|
const status = response.status;
|
|
11347
11344
|
let _headers = {};
|
|
11348
11345
|
if (response.headers && response.headers.forEach) {
|
|
@@ -11353,7 +11350,11 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11353
11350
|
return response.text().then((_responseText) => {
|
|
11354
11351
|
let result200 = null;
|
|
11355
11352
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
11356
|
-
|
|
11353
|
+
if (Array.isArray(resultData200)) {
|
|
11354
|
+
result200 = [];
|
|
11355
|
+
for (let item of resultData200)
|
|
11356
|
+
result200.push(FixtureDto.fromJS(item));
|
|
11357
|
+
}
|
|
11357
11358
|
return result200;
|
|
11358
11359
|
});
|
|
11359
11360
|
}
|
|
@@ -11374,7 +11375,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase {
|
|
|
11374
11375
|
url_ = url_.replace("{operationId}", encodeURIComponent("" + operationId));
|
|
11375
11376
|
url_ = url_.replace(/[?&]$/, "");
|
|
11376
11377
|
let options_ = {
|
|
11377
|
-
method: "
|
|
11378
|
+
method: "POST",
|
|
11378
11379
|
headers: {
|
|
11379
11380
|
"Accept": "application/json"
|
|
11380
11381
|
}
|
|
@@ -31588,7 +31589,7 @@ export class CncMachineOperationDto {
|
|
|
31588
31589
|
if (Array.isArray(_data["fixtures"])) {
|
|
31589
31590
|
this.fixtures = [];
|
|
31590
31591
|
for (let item of _data["fixtures"])
|
|
31591
|
-
this.fixtures.push(
|
|
31592
|
+
this.fixtures.push(item);
|
|
31592
31593
|
}
|
|
31593
31594
|
this.status = _data["status"];
|
|
31594
31595
|
this.deleted = _data["deleted"];
|
|
@@ -31618,7 +31619,7 @@ export class CncMachineOperationDto {
|
|
|
31618
31619
|
if (Array.isArray(this.fixtures)) {
|
|
31619
31620
|
data["fixtures"] = [];
|
|
31620
31621
|
for (let item of this.fixtures)
|
|
31621
|
-
data["fixtures"].push(item
|
|
31622
|
+
data["fixtures"].push(item);
|
|
31622
31623
|
}
|
|
31623
31624
|
data["status"] = this.status;
|
|
31624
31625
|
data["deleted"] = this.deleted;
|
|
@@ -31626,38 +31627,6 @@ export class CncMachineOperationDto {
|
|
|
31626
31627
|
return data;
|
|
31627
31628
|
}
|
|
31628
31629
|
}
|
|
31629
|
-
export class FixtureLiteDto {
|
|
31630
|
-
constructor(data) {
|
|
31631
|
-
if (data) {
|
|
31632
|
-
for (var property in data) {
|
|
31633
|
-
if (data.hasOwnProperty(property))
|
|
31634
|
-
this[property] = data[property];
|
|
31635
|
-
}
|
|
31636
|
-
}
|
|
31637
|
-
}
|
|
31638
|
-
init(_data) {
|
|
31639
|
-
if (_data) {
|
|
31640
|
-
this.id = _data["id"];
|
|
31641
|
-
this.name = _data["name"];
|
|
31642
|
-
this.instance = _data["instance"];
|
|
31643
|
-
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
31644
|
-
}
|
|
31645
|
-
}
|
|
31646
|
-
static fromJS(data) {
|
|
31647
|
-
data = typeof data === 'object' ? data : {};
|
|
31648
|
-
let result = new FixtureLiteDto();
|
|
31649
|
-
result.init(data);
|
|
31650
|
-
return result;
|
|
31651
|
-
}
|
|
31652
|
-
toJSON(data) {
|
|
31653
|
-
data = typeof data === 'object' ? data : {};
|
|
31654
|
-
data["id"] = this.id;
|
|
31655
|
-
data["name"] = this.name;
|
|
31656
|
-
data["instance"] = this.instance;
|
|
31657
|
-
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
31658
|
-
return data;
|
|
31659
|
-
}
|
|
31660
|
-
}
|
|
31661
31630
|
export class CncSetupAuditDto {
|
|
31662
31631
|
constructor(data) {
|
|
31663
31632
|
if (data) {
|
|
@@ -32865,12 +32834,12 @@ export class FixtureDto {
|
|
|
32865
32834
|
}
|
|
32866
32835
|
init(_data) {
|
|
32867
32836
|
if (_data) {
|
|
32868
|
-
this.
|
|
32869
|
-
this.deleted = _data["deleted"];
|
|
32870
|
-
this.approved = _data["approved"];
|
|
32837
|
+
this.fixtureId = _data["fixtureId"];
|
|
32871
32838
|
this.name = _data["name"];
|
|
32872
32839
|
this.instance = _data["instance"];
|
|
32873
32840
|
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
32841
|
+
this.deleted = _data["deleted"];
|
|
32842
|
+
this.approved = _data["approved"];
|
|
32874
32843
|
this.drawing = _data["drawing"];
|
|
32875
32844
|
this.drawingRev = _data["drawingRev"];
|
|
32876
32845
|
this.sourceMachine = _data["sourceMachine"];
|
|
@@ -32901,12 +32870,12 @@ export class FixtureDto {
|
|
|
32901
32870
|
}
|
|
32902
32871
|
toJSON(data) {
|
|
32903
32872
|
data = typeof data === 'object' ? data : {};
|
|
32904
|
-
data["
|
|
32905
|
-
data["deleted"] = this.deleted;
|
|
32906
|
-
data["approved"] = this.approved;
|
|
32873
|
+
data["fixtureId"] = this.fixtureId;
|
|
32907
32874
|
data["name"] = this.name;
|
|
32908
32875
|
data["instance"] = this.instance;
|
|
32909
32876
|
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
32877
|
+
data["deleted"] = this.deleted;
|
|
32878
|
+
data["approved"] = this.approved;
|
|
32910
32879
|
data["drawing"] = this.drawing;
|
|
32911
32880
|
data["drawingRev"] = this.drawingRev;
|
|
32912
32881
|
data["sourceMachine"] = this.sourceMachine;
|
|
@@ -32942,6 +32911,7 @@ export class FixtureLastUsedOperationDto {
|
|
|
32942
32911
|
init(_data) {
|
|
32943
32912
|
if (_data) {
|
|
32944
32913
|
this.operationId = _data["operationId"];
|
|
32914
|
+
this.cncPartId = _data["cncPartId"];
|
|
32945
32915
|
this.lastUsedBy = _data["lastUsedBy"];
|
|
32946
32916
|
this.lastUsedById = _data["lastUsedById"];
|
|
32947
32917
|
this.lastUsed = _data["lastUsed"] ? new Date(_data["lastUsed"].toString()) : undefined;
|
|
@@ -32956,6 +32926,7 @@ export class FixtureLastUsedOperationDto {
|
|
|
32956
32926
|
toJSON(data) {
|
|
32957
32927
|
data = typeof data === 'object' ? data : {};
|
|
32958
32928
|
data["operationId"] = this.operationId;
|
|
32929
|
+
data["cncPartId"] = this.cncPartId;
|
|
32959
32930
|
data["lastUsedBy"] = this.lastUsedBy;
|
|
32960
32931
|
data["lastUsedById"] = this.lastUsedById;
|
|
32961
32932
|
data["lastUsed"] = this.lastUsed ? this.lastUsed.toISOString() : undefined;
|
|
@@ -33004,6 +32975,68 @@ export class ListFixtures {
|
|
|
33004
32975
|
return data;
|
|
33005
32976
|
}
|
|
33006
32977
|
}
|
|
32978
|
+
export class FixtureCreateDto {
|
|
32979
|
+
constructor(data) {
|
|
32980
|
+
if (data) {
|
|
32981
|
+
for (var property in data) {
|
|
32982
|
+
if (data.hasOwnProperty(property))
|
|
32983
|
+
this[property] = data[property];
|
|
32984
|
+
}
|
|
32985
|
+
}
|
|
32986
|
+
}
|
|
32987
|
+
init(_data) {
|
|
32988
|
+
if (_data) {
|
|
32989
|
+
this.name = _data["name"];
|
|
32990
|
+
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
32991
|
+
this.deleted = _data["deleted"];
|
|
32992
|
+
this.approved = _data["approved"];
|
|
32993
|
+
this.drawing = _data["drawing"];
|
|
32994
|
+
this.drawingRev = _data["drawingRev"];
|
|
32995
|
+
this.sourceMachine = _data["sourceMachine"];
|
|
32996
|
+
this.location = _data["location"];
|
|
32997
|
+
this.type = _data["type"];
|
|
32998
|
+
this.interface = _data["interface"];
|
|
32999
|
+
this.diameter = _data["diameter"];
|
|
33000
|
+
this.outerDiameter = _data["outerDiameter"];
|
|
33001
|
+
this.innerDiameter = _data["innerDiameter"];
|
|
33002
|
+
this.depth = _data["depth"];
|
|
33003
|
+
this.totalHeight = _data["totalHeight"];
|
|
33004
|
+
this.width = _data["width"];
|
|
33005
|
+
this.totalLength = _data["totalLength"];
|
|
33006
|
+
this.gripSide = _data["gripSide"];
|
|
33007
|
+
this.description = _data["description"];
|
|
33008
|
+
}
|
|
33009
|
+
}
|
|
33010
|
+
static fromJS(data) {
|
|
33011
|
+
data = typeof data === 'object' ? data : {};
|
|
33012
|
+
let result = new FixtureCreateDto();
|
|
33013
|
+
result.init(data);
|
|
33014
|
+
return result;
|
|
33015
|
+
}
|
|
33016
|
+
toJSON(data) {
|
|
33017
|
+
data = typeof data === 'object' ? data : {};
|
|
33018
|
+
data["name"] = this.name;
|
|
33019
|
+
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
33020
|
+
data["deleted"] = this.deleted;
|
|
33021
|
+
data["approved"] = this.approved;
|
|
33022
|
+
data["drawing"] = this.drawing;
|
|
33023
|
+
data["drawingRev"] = this.drawingRev;
|
|
33024
|
+
data["sourceMachine"] = this.sourceMachine;
|
|
33025
|
+
data["location"] = this.location;
|
|
33026
|
+
data["type"] = this.type;
|
|
33027
|
+
data["interface"] = this.interface;
|
|
33028
|
+
data["diameter"] = this.diameter;
|
|
33029
|
+
data["outerDiameter"] = this.outerDiameter;
|
|
33030
|
+
data["innerDiameter"] = this.innerDiameter;
|
|
33031
|
+
data["depth"] = this.depth;
|
|
33032
|
+
data["totalHeight"] = this.totalHeight;
|
|
33033
|
+
data["width"] = this.width;
|
|
33034
|
+
data["totalLength"] = this.totalLength;
|
|
33035
|
+
data["gripSide"] = this.gripSide;
|
|
33036
|
+
data["description"] = this.description;
|
|
33037
|
+
return data;
|
|
33038
|
+
}
|
|
33039
|
+
}
|
|
33007
33040
|
export class FixtureUpdateDto {
|
|
33008
33041
|
constructor(data) {
|
|
33009
33042
|
if (data) {
|
|
@@ -33015,6 +33048,7 @@ export class FixtureUpdateDto {
|
|
|
33015
33048
|
}
|
|
33016
33049
|
init(_data) {
|
|
33017
33050
|
if (_data) {
|
|
33051
|
+
this.fixtureId = _data["fixtureId"];
|
|
33018
33052
|
this.name = _data["name"];
|
|
33019
33053
|
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
33020
33054
|
this.deleted = _data["deleted"];
|
|
@@ -33044,6 +33078,7 @@ export class FixtureUpdateDto {
|
|
|
33044
33078
|
}
|
|
33045
33079
|
toJSON(data) {
|
|
33046
33080
|
data = typeof data === 'object' ? data : {};
|
|
33081
|
+
data["fixtureId"] = this.fixtureId;
|
|
33047
33082
|
data["name"] = this.name;
|
|
33048
33083
|
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
33049
33084
|
data["deleted"] = this.deleted;
|
|
@@ -39769,6 +39804,7 @@ export class MeasurementFormSettingsDto {
|
|
|
39769
39804
|
init(_data) {
|
|
39770
39805
|
if (_data) {
|
|
39771
39806
|
this.convertInchToMm = _data["convertInchToMm"];
|
|
39807
|
+
this.convertMicroInchToMicroMeter = _data["convertMicroInchToMicroMeter"];
|
|
39772
39808
|
this.validateMeasuringTools = _data["validateMeasuringTools"];
|
|
39773
39809
|
this.validateMeasuringToolsForSuppliers = _data["validateMeasuringToolsForSuppliers"];
|
|
39774
39810
|
this.generateSchemaRequirements = _data["generateSchemaRequirements"];
|
|
@@ -39796,6 +39832,7 @@ export class MeasurementFormSettingsDto {
|
|
|
39796
39832
|
toJSON(data) {
|
|
39797
39833
|
data = typeof data === 'object' ? data : {};
|
|
39798
39834
|
data["convertInchToMm"] = this.convertInchToMm;
|
|
39835
|
+
data["convertMicroInchToMicroMeter"] = this.convertMicroInchToMicroMeter;
|
|
39799
39836
|
data["validateMeasuringTools"] = this.validateMeasuringTools;
|
|
39800
39837
|
data["validateMeasuringToolsForSuppliers"] = this.validateMeasuringToolsForSuppliers;
|
|
39801
39838
|
data["generateSchemaRequirements"] = this.generateSchemaRequirements;
|
|
@@ -39830,6 +39867,7 @@ export class UpdateMeasurementFormSettings {
|
|
|
39830
39867
|
init(_data) {
|
|
39831
39868
|
if (_data) {
|
|
39832
39869
|
this.convertInchToMm = _data["convertInchToMm"];
|
|
39870
|
+
this.convertMicroInchToMicroMeter = _data["convertMicroInchToMicroMeter"];
|
|
39833
39871
|
this.validateMeasuringTools = _data["validateMeasuringTools"];
|
|
39834
39872
|
this.validateMeasuringToolsForSuppliers = _data["validateMeasuringToolsForSuppliers"];
|
|
39835
39873
|
this.generateSchemaRequirements = _data["generateSchemaRequirements"];
|
|
@@ -39857,6 +39895,7 @@ export class UpdateMeasurementFormSettings {
|
|
|
39857
39895
|
toJSON(data) {
|
|
39858
39896
|
data = typeof data === 'object' ? data : {};
|
|
39859
39897
|
data["convertInchToMm"] = this.convertInchToMm;
|
|
39898
|
+
data["convertMicroInchToMicroMeter"] = this.convertMicroInchToMicroMeter;
|
|
39860
39899
|
data["validateMeasuringTools"] = this.validateMeasuringTools;
|
|
39861
39900
|
data["validateMeasuringToolsForSuppliers"] = this.validateMeasuringToolsForSuppliers;
|
|
39862
39901
|
data["generateSchemaRequirements"] = this.generateSchemaRequirements;
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -11937,9 +11937,9 @@ export interface ICncSetupFixturesClient {
|
|
|
11937
11937
|
|
|
11938
11938
|
getFixture(fixtureId: string): Promise<FixtureDto>;
|
|
11939
11939
|
|
|
11940
|
-
|
|
11940
|
+
createFixture(update: FixtureCreateDto): Promise<FixtureDto>;
|
|
11941
11941
|
|
|
11942
|
-
|
|
11942
|
+
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]>;
|
|
11943
11943
|
|
|
11944
11944
|
operationAddFixture(fixtureId: string, operationId: string): Promise<CncMachineOperationDto>;
|
|
11945
11945
|
}
|
|
@@ -12034,18 +12034,15 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12034
12034
|
return Promise.resolve<FixtureDto>(null as any);
|
|
12035
12035
|
}
|
|
12036
12036
|
|
|
12037
|
-
|
|
12038
|
-
let url_ = this.baseUrl + "/fixtures
|
|
12039
|
-
if (fixtureId === undefined || fixtureId === null)
|
|
12040
|
-
throw new Error("The parameter 'fixtureId' must be defined.");
|
|
12041
|
-
url_ = url_.replace("{fixtureId}", encodeURIComponent("" + fixtureId));
|
|
12037
|
+
createFixture(update: FixtureCreateDto): Promise<FixtureDto> {
|
|
12038
|
+
let url_ = this.baseUrl + "/fixtures";
|
|
12042
12039
|
url_ = url_.replace(/[?&]$/, "");
|
|
12043
12040
|
|
|
12044
12041
|
const content_ = JSON.stringify(update);
|
|
12045
12042
|
|
|
12046
12043
|
let options_: RequestInit = {
|
|
12047
12044
|
body: content_,
|
|
12048
|
-
method: "
|
|
12045
|
+
method: "POST",
|
|
12049
12046
|
headers: {
|
|
12050
12047
|
"Content-Type": "application/json",
|
|
12051
12048
|
"Accept": "application/json"
|
|
@@ -12055,11 +12052,11 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12055
12052
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12056
12053
|
return this.http.fetch(url_, transformedOptions_);
|
|
12057
12054
|
}).then((_response: Response) => {
|
|
12058
|
-
return this.
|
|
12055
|
+
return this.processCreateFixture(_response);
|
|
12059
12056
|
});
|
|
12060
12057
|
}
|
|
12061
12058
|
|
|
12062
|
-
protected
|
|
12059
|
+
protected processCreateFixture(response: Response): Promise<FixtureDto> {
|
|
12063
12060
|
const status = response.status;
|
|
12064
12061
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12065
12062
|
if (status === 200) {
|
|
@@ -12077,7 +12074,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12077
12074
|
return Promise.resolve<FixtureDto>(null as any);
|
|
12078
12075
|
}
|
|
12079
12076
|
|
|
12080
|
-
|
|
12077
|
+
updateFixtures(update: FixtureUpdateDto[]): Promise<FixtureDto[]> {
|
|
12081
12078
|
let url_ = this.baseUrl + "/fixtures";
|
|
12082
12079
|
url_ = url_.replace(/[?&]$/, "");
|
|
12083
12080
|
|
|
@@ -12085,7 +12082,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12085
12082
|
|
|
12086
12083
|
let options_: RequestInit = {
|
|
12087
12084
|
body: content_,
|
|
12088
|
-
method: "
|
|
12085
|
+
method: "PUT",
|
|
12089
12086
|
headers: {
|
|
12090
12087
|
"Content-Type": "application/json",
|
|
12091
12088
|
"Accept": "application/json"
|
|
@@ -12095,18 +12092,22 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12095
12092
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12096
12093
|
return this.http.fetch(url_, transformedOptions_);
|
|
12097
12094
|
}).then((_response: Response) => {
|
|
12098
|
-
return this.
|
|
12095
|
+
return this.processUpdateFixtures(_response);
|
|
12099
12096
|
});
|
|
12100
12097
|
}
|
|
12101
12098
|
|
|
12102
|
-
protected
|
|
12099
|
+
protected processUpdateFixtures(response: Response): Promise<FixtureDto[]> {
|
|
12103
12100
|
const status = response.status;
|
|
12104
12101
|
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12105
12102
|
if (status === 200) {
|
|
12106
12103
|
return response.text().then((_responseText) => {
|
|
12107
12104
|
let result200: any = null;
|
|
12108
12105
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12109
|
-
|
|
12106
|
+
if (Array.isArray(resultData200)) {
|
|
12107
|
+
result200 = [] as any;
|
|
12108
|
+
for (let item of resultData200)
|
|
12109
|
+
result200!.push(FixtureDto.fromJS(item));
|
|
12110
|
+
}
|
|
12110
12111
|
return result200;
|
|
12111
12112
|
});
|
|
12112
12113
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -12114,7 +12115,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12114
12115
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12115
12116
|
});
|
|
12116
12117
|
}
|
|
12117
|
-
return Promise.resolve<FixtureDto>(null as any);
|
|
12118
|
+
return Promise.resolve<FixtureDto[]>(null as any);
|
|
12118
12119
|
}
|
|
12119
12120
|
|
|
12120
12121
|
operationAddFixture(fixtureId: string, operationId: string): Promise<CncMachineOperationDto> {
|
|
@@ -12128,7 +12129,7 @@ export class CncSetupFixturesClient extends AuthorizedApiBase implements ICncSet
|
|
|
12128
12129
|
url_ = url_.replace(/[?&]$/, "");
|
|
12129
12130
|
|
|
12130
12131
|
let options_: RequestInit = {
|
|
12131
|
-
method: "
|
|
12132
|
+
method: "POST",
|
|
12132
12133
|
headers: {
|
|
12133
12134
|
"Accept": "application/json"
|
|
12134
12135
|
}
|
|
@@ -37843,7 +37844,7 @@ export class CncMachineOperationDto implements ICncMachineOperationDto {
|
|
|
37843
37844
|
tailstock?: string | null;
|
|
37844
37845
|
tailstockPressure?: string | null;
|
|
37845
37846
|
fixture?: string | null;
|
|
37846
|
-
fixtures!:
|
|
37847
|
+
fixtures!: string[];
|
|
37847
37848
|
status!: CncOperationStatus;
|
|
37848
37849
|
deleted!: boolean;
|
|
37849
37850
|
auditInfo!: CncSetupAuditDto;
|
|
@@ -37878,7 +37879,7 @@ export class CncMachineOperationDto implements ICncMachineOperationDto {
|
|
|
37878
37879
|
if (Array.isArray(_data["fixtures"])) {
|
|
37879
37880
|
this.fixtures = [] as any;
|
|
37880
37881
|
for (let item of _data["fixtures"])
|
|
37881
|
-
this.fixtures!.push(
|
|
37882
|
+
this.fixtures!.push(item);
|
|
37882
37883
|
}
|
|
37883
37884
|
this.status = _data["status"];
|
|
37884
37885
|
this.deleted = _data["deleted"];
|
|
@@ -37910,7 +37911,7 @@ export class CncMachineOperationDto implements ICncMachineOperationDto {
|
|
|
37910
37911
|
if (Array.isArray(this.fixtures)) {
|
|
37911
37912
|
data["fixtures"] = [];
|
|
37912
37913
|
for (let item of this.fixtures)
|
|
37913
|
-
data["fixtures"].push(item
|
|
37914
|
+
data["fixtures"].push(item);
|
|
37914
37915
|
}
|
|
37915
37916
|
data["status"] = this.status;
|
|
37916
37917
|
data["deleted"] = this.deleted;
|
|
@@ -37932,60 +37933,12 @@ export interface ICncMachineOperationDto {
|
|
|
37932
37933
|
tailstock?: string | null;
|
|
37933
37934
|
tailstockPressure?: string | null;
|
|
37934
37935
|
fixture?: string | null;
|
|
37935
|
-
fixtures:
|
|
37936
|
+
fixtures: string[];
|
|
37936
37937
|
status: CncOperationStatus;
|
|
37937
37938
|
deleted: boolean;
|
|
37938
37939
|
auditInfo: CncSetupAuditDto;
|
|
37939
37940
|
}
|
|
37940
37941
|
|
|
37941
|
-
export class FixtureLiteDto implements IFixtureLiteDto {
|
|
37942
|
-
id!: string;
|
|
37943
|
-
name!: string;
|
|
37944
|
-
instance!: number;
|
|
37945
|
-
fixtureGroupId!: string;
|
|
37946
|
-
|
|
37947
|
-
constructor(data?: IFixtureLiteDto) {
|
|
37948
|
-
if (data) {
|
|
37949
|
-
for (var property in data) {
|
|
37950
|
-
if (data.hasOwnProperty(property))
|
|
37951
|
-
(<any>this)[property] = (<any>data)[property];
|
|
37952
|
-
}
|
|
37953
|
-
}
|
|
37954
|
-
}
|
|
37955
|
-
|
|
37956
|
-
init(_data?: any) {
|
|
37957
|
-
if (_data) {
|
|
37958
|
-
this.id = _data["id"];
|
|
37959
|
-
this.name = _data["name"];
|
|
37960
|
-
this.instance = _data["instance"];
|
|
37961
|
-
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
37962
|
-
}
|
|
37963
|
-
}
|
|
37964
|
-
|
|
37965
|
-
static fromJS(data: any): FixtureLiteDto {
|
|
37966
|
-
data = typeof data === 'object' ? data : {};
|
|
37967
|
-
let result = new FixtureLiteDto();
|
|
37968
|
-
result.init(data);
|
|
37969
|
-
return result;
|
|
37970
|
-
}
|
|
37971
|
-
|
|
37972
|
-
toJSON(data?: any) {
|
|
37973
|
-
data = typeof data === 'object' ? data : {};
|
|
37974
|
-
data["id"] = this.id;
|
|
37975
|
-
data["name"] = this.name;
|
|
37976
|
-
data["instance"] = this.instance;
|
|
37977
|
-
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
37978
|
-
return data;
|
|
37979
|
-
}
|
|
37980
|
-
}
|
|
37981
|
-
|
|
37982
|
-
export interface IFixtureLiteDto {
|
|
37983
|
-
id: string;
|
|
37984
|
-
name: string;
|
|
37985
|
-
instance: number;
|
|
37986
|
-
fixtureGroupId: string;
|
|
37987
|
-
}
|
|
37988
|
-
|
|
37989
37942
|
export type CncOperationStatus = "Draft" | "Ready" | "Verified" | "Archived";
|
|
37990
37943
|
|
|
37991
37944
|
export class CncSetupAuditDto implements ICncSetupAuditDto {
|
|
@@ -39902,12 +39855,12 @@ export interface IFixtureListDto {
|
|
|
39902
39855
|
}
|
|
39903
39856
|
|
|
39904
39857
|
export class FixtureDto implements IFixtureDto {
|
|
39905
|
-
|
|
39906
|
-
deleted?: boolean;
|
|
39907
|
-
approved?: boolean;
|
|
39858
|
+
fixtureId!: string;
|
|
39908
39859
|
name!: string;
|
|
39909
39860
|
instance!: number;
|
|
39910
39861
|
fixtureGroupId!: string;
|
|
39862
|
+
deleted?: boolean;
|
|
39863
|
+
approved?: boolean;
|
|
39911
39864
|
drawing?: string | null;
|
|
39912
39865
|
drawingRev?: string | null;
|
|
39913
39866
|
sourceMachine?: string | null;
|
|
@@ -39939,12 +39892,12 @@ export class FixtureDto implements IFixtureDto {
|
|
|
39939
39892
|
|
|
39940
39893
|
init(_data?: any) {
|
|
39941
39894
|
if (_data) {
|
|
39942
|
-
this.
|
|
39943
|
-
this.deleted = _data["deleted"];
|
|
39944
|
-
this.approved = _data["approved"];
|
|
39895
|
+
this.fixtureId = _data["fixtureId"];
|
|
39945
39896
|
this.name = _data["name"];
|
|
39946
39897
|
this.instance = _data["instance"];
|
|
39947
39898
|
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
39899
|
+
this.deleted = _data["deleted"];
|
|
39900
|
+
this.approved = _data["approved"];
|
|
39948
39901
|
this.drawing = _data["drawing"];
|
|
39949
39902
|
this.drawingRev = _data["drawingRev"];
|
|
39950
39903
|
this.sourceMachine = _data["sourceMachine"];
|
|
@@ -39977,12 +39930,12 @@ export class FixtureDto implements IFixtureDto {
|
|
|
39977
39930
|
|
|
39978
39931
|
toJSON(data?: any) {
|
|
39979
39932
|
data = typeof data === 'object' ? data : {};
|
|
39980
|
-
data["
|
|
39981
|
-
data["deleted"] = this.deleted;
|
|
39982
|
-
data["approved"] = this.approved;
|
|
39933
|
+
data["fixtureId"] = this.fixtureId;
|
|
39983
39934
|
data["name"] = this.name;
|
|
39984
39935
|
data["instance"] = this.instance;
|
|
39985
39936
|
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
39937
|
+
data["deleted"] = this.deleted;
|
|
39938
|
+
data["approved"] = this.approved;
|
|
39986
39939
|
data["drawing"] = this.drawing;
|
|
39987
39940
|
data["drawingRev"] = this.drawingRev;
|
|
39988
39941
|
data["sourceMachine"] = this.sourceMachine;
|
|
@@ -40008,12 +39961,12 @@ export class FixtureDto implements IFixtureDto {
|
|
|
40008
39961
|
}
|
|
40009
39962
|
|
|
40010
39963
|
export interface IFixtureDto {
|
|
40011
|
-
|
|
40012
|
-
deleted?: boolean;
|
|
40013
|
-
approved?: boolean;
|
|
39964
|
+
fixtureId: string;
|
|
40014
39965
|
name: string;
|
|
40015
39966
|
instance: number;
|
|
40016
39967
|
fixtureGroupId: string;
|
|
39968
|
+
deleted?: boolean;
|
|
39969
|
+
approved?: boolean;
|
|
40017
39970
|
drawing?: string | null;
|
|
40018
39971
|
drawingRev?: string | null;
|
|
40019
39972
|
sourceMachine?: string | null;
|
|
@@ -40036,6 +39989,7 @@ export type FixtureTypeDto = "Bungs" | "Jaws" | "Jigs" | "Centers";
|
|
|
40036
39989
|
|
|
40037
39990
|
export class FixtureLastUsedOperationDto implements IFixtureLastUsedOperationDto {
|
|
40038
39991
|
operationId!: string;
|
|
39992
|
+
cncPartId!: string;
|
|
40039
39993
|
lastUsedBy?: string | null;
|
|
40040
39994
|
lastUsedById?: string | null;
|
|
40041
39995
|
lastUsed?: Date | null;
|
|
@@ -40052,6 +40006,7 @@ export class FixtureLastUsedOperationDto implements IFixtureLastUsedOperationDto
|
|
|
40052
40006
|
init(_data?: any) {
|
|
40053
40007
|
if (_data) {
|
|
40054
40008
|
this.operationId = _data["operationId"];
|
|
40009
|
+
this.cncPartId = _data["cncPartId"];
|
|
40055
40010
|
this.lastUsedBy = _data["lastUsedBy"];
|
|
40056
40011
|
this.lastUsedById = _data["lastUsedById"];
|
|
40057
40012
|
this.lastUsed = _data["lastUsed"] ? new Date(_data["lastUsed"].toString()) : <any>undefined;
|
|
@@ -40068,6 +40023,7 @@ export class FixtureLastUsedOperationDto implements IFixtureLastUsedOperationDto
|
|
|
40068
40023
|
toJSON(data?: any) {
|
|
40069
40024
|
data = typeof data === 'object' ? data : {};
|
|
40070
40025
|
data["operationId"] = this.operationId;
|
|
40026
|
+
data["cncPartId"] = this.cncPartId;
|
|
40071
40027
|
data["lastUsedBy"] = this.lastUsedBy;
|
|
40072
40028
|
data["lastUsedById"] = this.lastUsedById;
|
|
40073
40029
|
data["lastUsed"] = this.lastUsed ? this.lastUsed.toISOString() : <any>undefined;
|
|
@@ -40077,6 +40033,7 @@ export class FixtureLastUsedOperationDto implements IFixtureLastUsedOperationDto
|
|
|
40077
40033
|
|
|
40078
40034
|
export interface IFixtureLastUsedOperationDto {
|
|
40079
40035
|
operationId: string;
|
|
40036
|
+
cncPartId: string;
|
|
40080
40037
|
lastUsedBy?: string | null;
|
|
40081
40038
|
lastUsedById?: string | null;
|
|
40082
40039
|
lastUsed?: Date | null;
|
|
@@ -40148,7 +40105,116 @@ export type FixtureDeletedDto = "NotDeleted" | "Deleted";
|
|
|
40148
40105
|
|
|
40149
40106
|
export type FixtureApprovedDto = "NotApproved" | "Approved";
|
|
40150
40107
|
|
|
40108
|
+
export class FixtureCreateDto implements IFixtureCreateDto {
|
|
40109
|
+
name!: string;
|
|
40110
|
+
fixtureGroupId?: string | null;
|
|
40111
|
+
deleted?: boolean;
|
|
40112
|
+
approved?: boolean;
|
|
40113
|
+
drawing?: string | null;
|
|
40114
|
+
drawingRev?: string | null;
|
|
40115
|
+
sourceMachine?: string | null;
|
|
40116
|
+
location?: string | null;
|
|
40117
|
+
type?: FixtureTypeDto;
|
|
40118
|
+
interface?: string | null;
|
|
40119
|
+
diameter?: number | null;
|
|
40120
|
+
outerDiameter?: number | null;
|
|
40121
|
+
innerDiameter?: number | null;
|
|
40122
|
+
depth?: number | null;
|
|
40123
|
+
totalHeight?: number | null;
|
|
40124
|
+
width?: number | null;
|
|
40125
|
+
totalLength?: number | null;
|
|
40126
|
+
gripSide?: GripSideDto;
|
|
40127
|
+
description?: string | null;
|
|
40128
|
+
|
|
40129
|
+
constructor(data?: IFixtureCreateDto) {
|
|
40130
|
+
if (data) {
|
|
40131
|
+
for (var property in data) {
|
|
40132
|
+
if (data.hasOwnProperty(property))
|
|
40133
|
+
(<any>this)[property] = (<any>data)[property];
|
|
40134
|
+
}
|
|
40135
|
+
}
|
|
40136
|
+
}
|
|
40137
|
+
|
|
40138
|
+
init(_data?: any) {
|
|
40139
|
+
if (_data) {
|
|
40140
|
+
this.name = _data["name"];
|
|
40141
|
+
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
40142
|
+
this.deleted = _data["deleted"];
|
|
40143
|
+
this.approved = _data["approved"];
|
|
40144
|
+
this.drawing = _data["drawing"];
|
|
40145
|
+
this.drawingRev = _data["drawingRev"];
|
|
40146
|
+
this.sourceMachine = _data["sourceMachine"];
|
|
40147
|
+
this.location = _data["location"];
|
|
40148
|
+
this.type = _data["type"];
|
|
40149
|
+
this.interface = _data["interface"];
|
|
40150
|
+
this.diameter = _data["diameter"];
|
|
40151
|
+
this.outerDiameter = _data["outerDiameter"];
|
|
40152
|
+
this.innerDiameter = _data["innerDiameter"];
|
|
40153
|
+
this.depth = _data["depth"];
|
|
40154
|
+
this.totalHeight = _data["totalHeight"];
|
|
40155
|
+
this.width = _data["width"];
|
|
40156
|
+
this.totalLength = _data["totalLength"];
|
|
40157
|
+
this.gripSide = _data["gripSide"];
|
|
40158
|
+
this.description = _data["description"];
|
|
40159
|
+
}
|
|
40160
|
+
}
|
|
40161
|
+
|
|
40162
|
+
static fromJS(data: any): FixtureCreateDto {
|
|
40163
|
+
data = typeof data === 'object' ? data : {};
|
|
40164
|
+
let result = new FixtureCreateDto();
|
|
40165
|
+
result.init(data);
|
|
40166
|
+
return result;
|
|
40167
|
+
}
|
|
40168
|
+
|
|
40169
|
+
toJSON(data?: any) {
|
|
40170
|
+
data = typeof data === 'object' ? data : {};
|
|
40171
|
+
data["name"] = this.name;
|
|
40172
|
+
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
40173
|
+
data["deleted"] = this.deleted;
|
|
40174
|
+
data["approved"] = this.approved;
|
|
40175
|
+
data["drawing"] = this.drawing;
|
|
40176
|
+
data["drawingRev"] = this.drawingRev;
|
|
40177
|
+
data["sourceMachine"] = this.sourceMachine;
|
|
40178
|
+
data["location"] = this.location;
|
|
40179
|
+
data["type"] = this.type;
|
|
40180
|
+
data["interface"] = this.interface;
|
|
40181
|
+
data["diameter"] = this.diameter;
|
|
40182
|
+
data["outerDiameter"] = this.outerDiameter;
|
|
40183
|
+
data["innerDiameter"] = this.innerDiameter;
|
|
40184
|
+
data["depth"] = this.depth;
|
|
40185
|
+
data["totalHeight"] = this.totalHeight;
|
|
40186
|
+
data["width"] = this.width;
|
|
40187
|
+
data["totalLength"] = this.totalLength;
|
|
40188
|
+
data["gripSide"] = this.gripSide;
|
|
40189
|
+
data["description"] = this.description;
|
|
40190
|
+
return data;
|
|
40191
|
+
}
|
|
40192
|
+
}
|
|
40193
|
+
|
|
40194
|
+
export interface IFixtureCreateDto {
|
|
40195
|
+
name: string;
|
|
40196
|
+
fixtureGroupId?: string | null;
|
|
40197
|
+
deleted?: boolean;
|
|
40198
|
+
approved?: boolean;
|
|
40199
|
+
drawing?: string | null;
|
|
40200
|
+
drawingRev?: string | null;
|
|
40201
|
+
sourceMachine?: string | null;
|
|
40202
|
+
location?: string | null;
|
|
40203
|
+
type?: FixtureTypeDto;
|
|
40204
|
+
interface?: string | null;
|
|
40205
|
+
diameter?: number | null;
|
|
40206
|
+
outerDiameter?: number | null;
|
|
40207
|
+
innerDiameter?: number | null;
|
|
40208
|
+
depth?: number | null;
|
|
40209
|
+
totalHeight?: number | null;
|
|
40210
|
+
width?: number | null;
|
|
40211
|
+
totalLength?: number | null;
|
|
40212
|
+
gripSide?: GripSideDto;
|
|
40213
|
+
description?: string | null;
|
|
40214
|
+
}
|
|
40215
|
+
|
|
40151
40216
|
export class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
40217
|
+
fixtureId!: string;
|
|
40152
40218
|
name!: string;
|
|
40153
40219
|
fixtureGroupId?: string | null;
|
|
40154
40220
|
deleted?: boolean;
|
|
@@ -40180,6 +40246,7 @@ export class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
|
40180
40246
|
|
|
40181
40247
|
init(_data?: any) {
|
|
40182
40248
|
if (_data) {
|
|
40249
|
+
this.fixtureId = _data["fixtureId"];
|
|
40183
40250
|
this.name = _data["name"];
|
|
40184
40251
|
this.fixtureGroupId = _data["fixtureGroupId"];
|
|
40185
40252
|
this.deleted = _data["deleted"];
|
|
@@ -40211,6 +40278,7 @@ export class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
|
40211
40278
|
|
|
40212
40279
|
toJSON(data?: any) {
|
|
40213
40280
|
data = typeof data === 'object' ? data : {};
|
|
40281
|
+
data["fixtureId"] = this.fixtureId;
|
|
40214
40282
|
data["name"] = this.name;
|
|
40215
40283
|
data["fixtureGroupId"] = this.fixtureGroupId;
|
|
40216
40284
|
data["deleted"] = this.deleted;
|
|
@@ -40235,6 +40303,7 @@ export class FixtureUpdateDto implements IFixtureUpdateDto {
|
|
|
40235
40303
|
}
|
|
40236
40304
|
|
|
40237
40305
|
export interface IFixtureUpdateDto {
|
|
40306
|
+
fixtureId: string;
|
|
40238
40307
|
name: string;
|
|
40239
40308
|
fixtureGroupId?: string | null;
|
|
40240
40309
|
deleted?: boolean;
|
|
@@ -50203,6 +50272,7 @@ export interface ICreateMeasurementFormSchemaLinkRequest {
|
|
|
50203
50272
|
|
|
50204
50273
|
export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
50205
50274
|
convertInchToMm!: boolean;
|
|
50275
|
+
convertMicroInchToMicroMeter!: boolean;
|
|
50206
50276
|
validateMeasuringTools!: boolean;
|
|
50207
50277
|
validateMeasuringToolsForSuppliers!: boolean;
|
|
50208
50278
|
generateSchemaRequirements!: boolean;
|
|
@@ -50228,6 +50298,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
50228
50298
|
init(_data?: any) {
|
|
50229
50299
|
if (_data) {
|
|
50230
50300
|
this.convertInchToMm = _data["convertInchToMm"];
|
|
50301
|
+
this.convertMicroInchToMicroMeter = _data["convertMicroInchToMicroMeter"];
|
|
50231
50302
|
this.validateMeasuringTools = _data["validateMeasuringTools"];
|
|
50232
50303
|
this.validateMeasuringToolsForSuppliers = _data["validateMeasuringToolsForSuppliers"];
|
|
50233
50304
|
this.generateSchemaRequirements = _data["generateSchemaRequirements"];
|
|
@@ -50257,6 +50328,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
50257
50328
|
toJSON(data?: any) {
|
|
50258
50329
|
data = typeof data === 'object' ? data : {};
|
|
50259
50330
|
data["convertInchToMm"] = this.convertInchToMm;
|
|
50331
|
+
data["convertMicroInchToMicroMeter"] = this.convertMicroInchToMicroMeter;
|
|
50260
50332
|
data["validateMeasuringTools"] = this.validateMeasuringTools;
|
|
50261
50333
|
data["validateMeasuringToolsForSuppliers"] = this.validateMeasuringToolsForSuppliers;
|
|
50262
50334
|
data["generateSchemaRequirements"] = this.generateSchemaRequirements;
|
|
@@ -50279,6 +50351,7 @@ export class MeasurementFormSettingsDto implements IMeasurementFormSettingsDto {
|
|
|
50279
50351
|
|
|
50280
50352
|
export interface IMeasurementFormSettingsDto {
|
|
50281
50353
|
convertInchToMm: boolean;
|
|
50354
|
+
convertMicroInchToMicroMeter: boolean;
|
|
50282
50355
|
validateMeasuringTools: boolean;
|
|
50283
50356
|
validateMeasuringToolsForSuppliers: boolean;
|
|
50284
50357
|
generateSchemaRequirements: boolean;
|
|
@@ -50295,6 +50368,7 @@ export interface IMeasurementFormSettingsDto {
|
|
|
50295
50368
|
|
|
50296
50369
|
export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSettings {
|
|
50297
50370
|
convertInchToMm!: boolean;
|
|
50371
|
+
convertMicroInchToMicroMeter!: boolean;
|
|
50298
50372
|
validateMeasuringTools!: boolean;
|
|
50299
50373
|
validateMeasuringToolsForSuppliers!: boolean;
|
|
50300
50374
|
generateSchemaRequirements!: boolean;
|
|
@@ -50323,6 +50397,7 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
|
|
|
50323
50397
|
init(_data?: any) {
|
|
50324
50398
|
if (_data) {
|
|
50325
50399
|
this.convertInchToMm = _data["convertInchToMm"];
|
|
50400
|
+
this.convertMicroInchToMicroMeter = _data["convertMicroInchToMicroMeter"];
|
|
50326
50401
|
this.validateMeasuringTools = _data["validateMeasuringTools"];
|
|
50327
50402
|
this.validateMeasuringToolsForSuppliers = _data["validateMeasuringToolsForSuppliers"];
|
|
50328
50403
|
this.generateSchemaRequirements = _data["generateSchemaRequirements"];
|
|
@@ -50352,6 +50427,7 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
|
|
|
50352
50427
|
toJSON(data?: any) {
|
|
50353
50428
|
data = typeof data === 'object' ? data : {};
|
|
50354
50429
|
data["convertInchToMm"] = this.convertInchToMm;
|
|
50430
|
+
data["convertMicroInchToMicroMeter"] = this.convertMicroInchToMicroMeter;
|
|
50355
50431
|
data["validateMeasuringTools"] = this.validateMeasuringTools;
|
|
50356
50432
|
data["validateMeasuringToolsForSuppliers"] = this.validateMeasuringToolsForSuppliers;
|
|
50357
50433
|
data["generateSchemaRequirements"] = this.generateSchemaRequirements;
|
|
@@ -50374,6 +50450,7 @@ export class UpdateMeasurementFormSettings implements IUpdateMeasurementFormSett
|
|
|
50374
50450
|
|
|
50375
50451
|
export interface IUpdateMeasurementFormSettings {
|
|
50376
50452
|
convertInchToMm: boolean;
|
|
50453
|
+
convertMicroInchToMicroMeter: boolean;
|
|
50377
50454
|
validateMeasuringTools: boolean;
|
|
50378
50455
|
validateMeasuringToolsForSuppliers: boolean;
|
|
50379
50456
|
generateSchemaRequirements: boolean;
|