@toolpath/api 0.1.0 → 0.2.2

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.
Files changed (114) hide show
  1. package/README.md +1 -1
  2. package/dist/generated/apis/FeaturesApi.d.ts +22 -20
  3. package/dist/generated/apis/FeaturesApi.js +41 -33
  4. package/dist/generated/apis/JobsApi.d.ts +1 -1
  5. package/dist/generated/apis/JobsApi.js +1 -1
  6. package/dist/generated/apis/KeysApi.d.ts +1 -1
  7. package/dist/generated/apis/KeysApi.js +1 -1
  8. package/dist/generated/apis/PartsApi.d.ts +28 -28
  9. package/dist/generated/apis/PartsApi.js +49 -49
  10. package/dist/generated/apis/ServiceApi.d.ts +1 -1
  11. package/dist/generated/apis/ServiceApi.js +1 -1
  12. package/dist/generated/models/BevelFacts.d.ts +62 -0
  13. package/dist/generated/models/BevelFacts.js +58 -0
  14. package/dist/generated/models/BossFacts.d.ts +64 -0
  15. package/dist/generated/models/BossFacts.js +68 -0
  16. package/dist/generated/models/CdBounds.d.ts +41 -0
  17. package/dist/generated/models/CdBounds.js +47 -0
  18. package/dist/generated/models/CdData.d.ts +52 -0
  19. package/dist/generated/models/CdData.js +56 -0
  20. package/dist/generated/models/ChamferFacts.d.ts +55 -0
  21. package/dist/generated/models/ChamferFacts.js +61 -0
  22. package/dist/generated/models/CreatePartResponse.d.ts +5 -5
  23. package/dist/generated/models/CreatePartResponse.js +1 -1
  24. package/dist/generated/models/DirectionZBounds.d.ts +6 -6
  25. package/dist/generated/models/DirectionZBounds.js +4 -4
  26. package/dist/generated/models/DirectionZBoundsDirection.d.ts +44 -0
  27. package/dist/generated/models/DirectionZBoundsDirection.js +51 -0
  28. package/dist/generated/models/DovetailFacts.d.ts +98 -0
  29. package/dist/generated/models/DovetailFacts.js +84 -0
  30. package/dist/generated/models/FaceFacts.d.ts +70 -0
  31. package/dist/generated/models/FaceFacts.js +72 -0
  32. package/dist/generated/models/FeatureDatasheet.d.ts +110 -0
  33. package/dist/generated/models/FeatureDatasheet.js +94 -0
  34. package/dist/generated/models/FeatureDatasheetFacts.d.ts +51 -0
  35. package/dist/generated/models/FeatureDatasheetFacts.js +89 -0
  36. package/dist/generated/models/FeatureType.d.ts +58 -0
  37. package/dist/generated/models/FeatureType.js +76 -0
  38. package/dist/generated/models/HealthResponse.d.ts +3 -3
  39. package/dist/generated/models/HealthResponse.js +1 -1
  40. package/dist/generated/models/HoleFacts.d.ts +109 -0
  41. package/dist/generated/models/HoleFacts.js +96 -0
  42. package/dist/generated/models/HoleProcess.d.ts +26 -0
  43. package/dist/generated/models/HoleProcess.js +44 -0
  44. package/dist/generated/models/JobDetail.d.ts +9 -9
  45. package/dist/generated/models/JobDetail.js +1 -1
  46. package/dist/generated/models/JobSummary.d.ts +7 -7
  47. package/dist/generated/models/JobSummary.js +1 -1
  48. package/dist/generated/models/KeyValidationResponse.d.ts +1 -1
  49. package/dist/generated/models/KeyValidationResponse.js +1 -1
  50. package/dist/generated/models/ListJobsResponse.d.ts +5 -5
  51. package/dist/generated/models/ListJobsResponse.js +1 -1
  52. package/dist/generated/models/OpenApiDocument.d.ts +2 -2
  53. package/dist/generated/models/OpenApiDocument.js +1 -1
  54. package/dist/generated/models/PartFeature.d.ts +8 -8
  55. package/dist/generated/models/PartFeature.js +4 -4
  56. package/dist/generated/models/PartFeatureAxis.d.ts +5 -5
  57. package/dist/generated/models/PartFeatureAxis.js +1 -1
  58. package/dist/generated/models/PartFeatureEntry.d.ts +51 -0
  59. package/dist/generated/models/{FeatureDatasheetEntry.js → PartFeatureEntry.js} +16 -11
  60. package/dist/generated/models/PartFeatureMachiningDirection.d.ts +44 -0
  61. package/dist/generated/models/PartFeatureMachiningDirection.js +51 -0
  62. package/dist/generated/models/PartFeaturesResponse.d.ts +39 -0
  63. package/dist/generated/models/{FeatureDatasheetsResponse.js → PartFeaturesResponse.js} +12 -12
  64. package/dist/generated/models/PartReportResponse.d.ts +21 -21
  65. package/dist/generated/models/PartReportResponse.js +4 -4
  66. package/dist/generated/models/PartReportResponseUnits.d.ts +52 -0
  67. package/dist/generated/models/PartReportResponseUnits.js +63 -0
  68. package/dist/generated/models/PocketFacts.d.ts +65 -0
  69. package/dist/generated/models/PocketFacts.js +68 -0
  70. package/dist/generated/models/ProblemDetails.d.ts +1 -1
  71. package/dist/generated/models/ProblemDetails.js +1 -1
  72. package/dist/generated/models/ProfileFacts.d.ts +58 -0
  73. package/dist/generated/models/ProfileFacts.js +64 -0
  74. package/dist/generated/models/Region.d.ts +12 -6
  75. package/dist/generated/models/Region.js +5 -1
  76. package/dist/generated/models/ReportUnits.d.ts +3 -3
  77. package/dist/generated/models/ReportUnits.js +1 -1
  78. package/dist/generated/models/SinkFacts.d.ts +47 -0
  79. package/dist/generated/models/SinkFacts.js +52 -0
  80. package/dist/generated/models/SurfaceFacts.d.ts +97 -0
  81. package/dist/generated/models/SurfaceFacts.js +89 -0
  82. package/dist/generated/models/ThreadProcess.d.ts +26 -0
  83. package/dist/generated/models/ThreadProcess.js +44 -0
  84. package/dist/generated/models/ThreadSpec.d.ts +62 -0
  85. package/dist/generated/models/ThreadSpec.js +63 -0
  86. package/dist/generated/models/Threading.d.ts +40 -0
  87. package/dist/generated/models/Threading.js +49 -0
  88. package/dist/generated/models/ToleranceBand.d.ts +45 -0
  89. package/dist/generated/models/ToleranceBand.js +51 -0
  90. package/dist/generated/models/ToolFitResult.d.ts +44 -0
  91. package/dist/generated/models/ToolFitResult.js +51 -0
  92. package/dist/generated/models/TslotFacts.d.ts +81 -0
  93. package/dist/generated/models/TslotFacts.js +76 -0
  94. package/dist/generated/models/{ComputeFeatureDatasheetsRequest.d.ts → UpdatePartFeaturesRequest.d.ts} +11 -11
  95. package/dist/generated/models/{ComputeFeatureDatasheetsRequest.js → UpdatePartFeaturesRequest.js} +9 -9
  96. package/dist/generated/models/UpdatePartFeaturesResponse.d.ts +51 -0
  97. package/dist/generated/models/{ComputeFeatureDatasheetsResponse.js → UpdatePartFeaturesResponse.js} +10 -10
  98. package/dist/generated/models/UpdatePartResponse.d.ts +51 -0
  99. package/dist/generated/models/{AnalyzeJobResponse.js → UpdatePartResponse.js} +10 -10
  100. package/dist/generated/models/Vec2.d.ts +38 -0
  101. package/dist/generated/models/Vec2.js +47 -0
  102. package/dist/generated/models/Vec3.d.ts +4 -4
  103. package/dist/generated/models/Vec3.js +1 -1
  104. package/dist/generated/models/WallFacts.d.ts +46 -0
  105. package/dist/generated/models/WallFacts.js +56 -0
  106. package/dist/generated/models/index.d.ts +32 -5
  107. package/dist/generated/models/index.js +32 -5
  108. package/dist/generated/runtime.d.ts +1 -1
  109. package/dist/generated/runtime.js +1 -1
  110. package/package.json +3 -3
  111. package/dist/generated/models/AnalyzeJobResponse.d.ts +0 -51
  112. package/dist/generated/models/ComputeFeatureDatasheetsResponse.d.ts +0 -51
  113. package/dist/generated/models/FeatureDatasheetEntry.d.ts +0 -52
  114. package/dist/generated/models/FeatureDatasheetsResponse.d.ts +0 -39
@@ -2,7 +2,7 @@
2
2
  * Toolpath Engine API
3
3
  * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
4
  *
5
- * The version of the OpenAPI document: 1.0.0
5
+ * The version of the OpenAPI document: 1.0.2
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,13 +16,13 @@
16
16
  */
17
17
  export interface ReportUnits {
18
18
  /**
19
- *
19
+ * Unit used by every length and area measurement.
20
20
  * @type {ReportUnitsLengthEnum}
21
21
  * @memberof ReportUnits
22
22
  */
23
23
  length: ReportUnitsLengthEnum;
24
24
  /**
25
- *
25
+ * Unit used by every angular measurement.
26
26
  * @type {ReportUnitsAngleEnum}
27
27
  * @memberof ReportUnits
28
28
  */
@@ -4,7 +4,7 @@
4
4
  * Toolpath Engine API
5
5
  * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
6
  *
7
- * The version of the OpenAPI document: 1.0.0
7
+ * The version of the OpenAPI document: 1.0.2
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Vec2 } from './Vec2.js';
13
+ /**
14
+ * A countersink read as a cone of revolution: the circle its bevel starts from and the
15
+ * one it opens to.
16
+ * @export
17
+ * @interface SinkFacts
18
+ */
19
+ export interface SinkFacts {
20
+ /**
21
+ * Where the cone's axis crosses the plane the contours are read in (the tool
22
+ * frame's) — the sink's position across the part, not along the tool.
23
+ * @type {Vec2}
24
+ * @memberof SinkFacts
25
+ */
26
+ center: Vec2;
27
+ /**
28
+ * Radius of the circle the bevel starts from, at its lower edge — the pilot hole.
29
+ * @type {number}
30
+ * @memberof SinkFacts
31
+ */
32
+ innerRadius: number;
33
+ /**
34
+ * Radius it has opened to at the upper edge.
35
+ * @type {number}
36
+ * @memberof SinkFacts
37
+ */
38
+ outerRadius: number;
39
+ }
40
+ /**
41
+ * Check if a given object implements the SinkFacts interface.
42
+ */
43
+ export declare function instanceOfSinkFacts(value: object): value is SinkFacts;
44
+ export declare function SinkFactsFromJSON(json: any): SinkFacts;
45
+ export declare function SinkFactsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SinkFacts;
46
+ export declare function SinkFactsToJSON(json: any): SinkFacts;
47
+ export declare function SinkFactsToJSONTyped(value?: SinkFacts | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { Vec2FromJSON, Vec2ToJSON } from './Vec2.js';
15
+ /**
16
+ * Check if a given object implements the SinkFacts interface.
17
+ */
18
+ export function instanceOfSinkFacts(value) {
19
+ if (!('center' in value) || value['center'] === undefined)
20
+ return false;
21
+ if (!('innerRadius' in value) || value['innerRadius'] === undefined)
22
+ return false;
23
+ if (!('outerRadius' in value) || value['outerRadius'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function SinkFactsFromJSON(json) {
28
+ return SinkFactsFromJSONTyped(json, false);
29
+ }
30
+ export function SinkFactsFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ center: Vec2FromJSON(json['center']),
36
+ innerRadius: json['innerRadius'],
37
+ outerRadius: json['outerRadius'],
38
+ };
39
+ }
40
+ export function SinkFactsToJSON(json) {
41
+ return SinkFactsToJSONTyped(json, false);
42
+ }
43
+ export function SinkFactsToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ center: Vec2ToJSON(value['center']),
49
+ innerRadius: value['innerRadius'],
50
+ outerRadius: value['outerRadius'],
51
+ };
52
+ }
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ToolFitResult } from './ToolFitResult.js';
13
+ import type { CdData } from './CdData.js';
14
+ /**
15
+ * A three-dimensional surface a tool has to follow rather than sweep; also the surface
16
+ * half of a chamfer.
17
+ * @export
18
+ * @interface SurfaceFacts
19
+ */
20
+ export interface SurfaceFacts {
21
+ /**
22
+ * Discriminator for this facts variant.
23
+ * @type {SurfaceFactsKindEnum}
24
+ * @memberof SurfaceFacts
25
+ */
26
+ kind: SurfaceFactsKindEnum;
27
+ /**
28
+ * The blend radius, signed by which way the surface turns: positive rolling over
29
+ * an edge, negative running into a corner, zero for no blend at all.
30
+ * @type {number}
31
+ * @memberof SurfaceFacts
32
+ */
33
+ filletRadius: number;
34
+ /**
35
+ * The deepest cut taken in one pass down the surface, mm.
36
+ * @type {number}
37
+ * @memberof SurfaceFacts
38
+ */
39
+ maxStepdown: number;
40
+ /**
41
+ * How much scallop the finishing pass may leave between neighbouring passes, mm.
42
+ * @type {number}
43
+ * @memberof SurfaceFacts
44
+ */
45
+ surfaceFinishCuspHeight: number;
46
+ /**
47
+ * Whether the fillet has a U-shaped cross section.
48
+ * @type {boolean}
49
+ * @memberof SurfaceFacts
50
+ */
51
+ isUShapedFillet: boolean;
52
+ /**
53
+ * Whether the surface includes a sharp corner a tool must respect.
54
+ * @type {boolean}
55
+ * @memberof SurfaceFacts
56
+ */
57
+ hasSharpCorner: boolean;
58
+ /**
59
+ * Whether only ball tools are suitable for the finishing pass.
60
+ * @type {boolean}
61
+ * @memberof SurfaceFacts
62
+ */
63
+ useOnlyBallToolsForFinish: boolean;
64
+ /**
65
+ * Largest bottom diameter a terminal tool may have, in mm.
66
+ * @type {number}
67
+ * @memberof SurfaceFacts
68
+ */
69
+ maxBottomDiameter: number;
70
+ /**
71
+ * Clearance-diameter limits for tools reaching the surface.
72
+ * @type {CdData}
73
+ * @memberof SurfaceFacts
74
+ */
75
+ cd: CdData;
76
+ /**
77
+ * Geometry limits imposed by the surface shape itself.
78
+ * @type {ToolFitResult}
79
+ * @memberof SurfaceFacts
80
+ */
81
+ toolFit: ToolFitResult;
82
+ }
83
+ /**
84
+ * @export
85
+ */
86
+ export declare const SurfaceFactsKindEnum: {
87
+ readonly Three: "Three";
88
+ };
89
+ export type SurfaceFactsKindEnum = (typeof SurfaceFactsKindEnum)[keyof typeof SurfaceFactsKindEnum];
90
+ /**
91
+ * Check if a given object implements the SurfaceFacts interface.
92
+ */
93
+ export declare function instanceOfSurfaceFacts(value: object): value is SurfaceFacts;
94
+ export declare function SurfaceFactsFromJSON(json: any): SurfaceFacts;
95
+ export declare function SurfaceFactsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SurfaceFacts;
96
+ export declare function SurfaceFactsToJSON(json: any): SurfaceFacts;
97
+ export declare function SurfaceFactsToJSONTyped(value?: SurfaceFacts | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ToolFitResultFromJSON, ToolFitResultToJSON, } from './ToolFitResult.js';
15
+ import { CdDataFromJSON, CdDataToJSON } from './CdData.js';
16
+ /**
17
+ * @export
18
+ */
19
+ export const SurfaceFactsKindEnum = {
20
+ Three: 'Three',
21
+ };
22
+ /**
23
+ * Check if a given object implements the SurfaceFacts interface.
24
+ */
25
+ export function instanceOfSurfaceFacts(value) {
26
+ if (!('kind' in value) || value['kind'] === undefined)
27
+ return false;
28
+ if (value['kind'] !== 'Three')
29
+ return false;
30
+ if (!('filletRadius' in value) || value['filletRadius'] === undefined)
31
+ return false;
32
+ if (!('maxStepdown' in value) || value['maxStepdown'] === undefined)
33
+ return false;
34
+ if (!('surfaceFinishCuspHeight' in value) || value['surfaceFinishCuspHeight'] === undefined)
35
+ return false;
36
+ if (!('isUShapedFillet' in value) || value['isUShapedFillet'] === undefined)
37
+ return false;
38
+ if (!('hasSharpCorner' in value) || value['hasSharpCorner'] === undefined)
39
+ return false;
40
+ if (!('useOnlyBallToolsForFinish' in value) || value['useOnlyBallToolsForFinish'] === undefined)
41
+ return false;
42
+ if (!('maxBottomDiameter' in value) || value['maxBottomDiameter'] === undefined)
43
+ return false;
44
+ if (!('cd' in value) || value['cd'] === undefined)
45
+ return false;
46
+ if (!('toolFit' in value) || value['toolFit'] === undefined)
47
+ return false;
48
+ return true;
49
+ }
50
+ export function SurfaceFactsFromJSON(json) {
51
+ return SurfaceFactsFromJSONTyped(json, false);
52
+ }
53
+ export function SurfaceFactsFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ kind: json['kind'],
59
+ filletRadius: json['filletRadius'],
60
+ maxStepdown: json['maxStepdown'],
61
+ surfaceFinishCuspHeight: json['surfaceFinishCuspHeight'],
62
+ isUShapedFillet: json['isUShapedFillet'],
63
+ hasSharpCorner: json['hasSharpCorner'],
64
+ useOnlyBallToolsForFinish: json['useOnlyBallToolsForFinish'],
65
+ maxBottomDiameter: json['maxBottomDiameter'],
66
+ cd: CdDataFromJSON(json['cd']),
67
+ toolFit: ToolFitResultFromJSON(json['toolFit']),
68
+ };
69
+ }
70
+ export function SurfaceFactsToJSON(json) {
71
+ return SurfaceFactsToJSONTyped(json, false);
72
+ }
73
+ export function SurfaceFactsToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ kind: value['kind'],
79
+ filletRadius: value['filletRadius'],
80
+ maxStepdown: value['maxStepdown'],
81
+ surfaceFinishCuspHeight: value['surfaceFinishCuspHeight'],
82
+ isUShapedFillet: value['isUShapedFillet'],
83
+ hasSharpCorner: value['hasSharpCorner'],
84
+ useOnlyBallToolsForFinish: value['useOnlyBallToolsForFinish'],
85
+ maxBottomDiameter: value['maxBottomDiameter'],
86
+ cd: CdDataToJSON(value['cd']),
87
+ toolFit: ToolFitResultToJSON(value['toolFit']),
88
+ };
89
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * How a thread is to be cut: the three ways there are.
14
+ * @export
15
+ */
16
+ export declare const ThreadProcess: {
17
+ readonly ThreadMill: "ThreadMill";
18
+ readonly CutTap: "CutTap";
19
+ readonly FormTap: "FormTap";
20
+ };
21
+ export type ThreadProcess = (typeof ThreadProcess)[keyof typeof ThreadProcess];
22
+ export declare function instanceOfThreadProcess(value: any): boolean;
23
+ export declare function ThreadProcessFromJSON(json: any): ThreadProcess;
24
+ export declare function ThreadProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadProcess;
25
+ export declare function ThreadProcessToJSON(value?: ThreadProcess | null): any;
26
+ export declare function ThreadProcessToJSONTyped(value: any, ignoreDiscriminator: boolean): ThreadProcess;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * How a thread is to be cut: the three ways there are.
16
+ * @export
17
+ */
18
+ export const ThreadProcess = {
19
+ ThreadMill: 'ThreadMill',
20
+ CutTap: 'CutTap',
21
+ FormTap: 'FormTap',
22
+ };
23
+ export function instanceOfThreadProcess(value) {
24
+ for (const key in ThreadProcess) {
25
+ if (Object.prototype.hasOwnProperty.call(ThreadProcess, key)) {
26
+ if (ThreadProcess[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function ThreadProcessFromJSON(json) {
34
+ return ThreadProcessFromJSONTyped(json, false);
35
+ }
36
+ export function ThreadProcessFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function ThreadProcessToJSON(value) {
40
+ return value;
41
+ }
42
+ export function ThreadProcessToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The thread a hole is to receive.
14
+ * @export
15
+ * @interface ThreadSpec
16
+ */
17
+ export interface ThreadSpec {
18
+ /**
19
+ * Nominal major diameter of the thread, in mm.
20
+ * @type {number}
21
+ * @memberof ThreadSpec
22
+ */
23
+ basicDiameter: number;
24
+ /**
25
+ * Distance between thread crests, in mm.
26
+ * @type {number}
27
+ * @memberof ThreadSpec
28
+ */
29
+ threadPitch: number;
30
+ /**
31
+ * Smallest allowed minor diameter, in mm.
32
+ * @type {number}
33
+ * @memberof ThreadSpec
34
+ */
35
+ minMinorDiameter: number;
36
+ /**
37
+ * Largest allowed minor diameter, in mm.
38
+ * @type {number}
39
+ * @memberof ThreadSpec
40
+ */
41
+ maxMinorDiameter: number;
42
+ /**
43
+ * Smallest allowed major diameter, in mm.
44
+ * @type {number}
45
+ * @memberof ThreadSpec
46
+ */
47
+ minMajorDiameter: number;
48
+ /**
49
+ * How much of the theoretical thread depth is to be formed, as a percentage.
50
+ * @type {number}
51
+ * @memberof ThreadSpec
52
+ */
53
+ threadPercentage: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the ThreadSpec interface.
57
+ */
58
+ export declare function instanceOfThreadSpec(value: object): value is ThreadSpec;
59
+ export declare function ThreadSpecFromJSON(json: any): ThreadSpec;
60
+ export declare function ThreadSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadSpec;
61
+ export declare function ThreadSpecToJSON(json: any): ThreadSpec;
62
+ export declare function ThreadSpecToJSONTyped(value?: ThreadSpec | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ThreadSpec interface.
16
+ */
17
+ export function instanceOfThreadSpec(value) {
18
+ if (!('basicDiameter' in value) || value['basicDiameter'] === undefined)
19
+ return false;
20
+ if (!('threadPitch' in value) || value['threadPitch'] === undefined)
21
+ return false;
22
+ if (!('minMinorDiameter' in value) || value['minMinorDiameter'] === undefined)
23
+ return false;
24
+ if (!('maxMinorDiameter' in value) || value['maxMinorDiameter'] === undefined)
25
+ return false;
26
+ if (!('minMajorDiameter' in value) || value['minMajorDiameter'] === undefined)
27
+ return false;
28
+ if (!('threadPercentage' in value) || value['threadPercentage'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function ThreadSpecFromJSON(json) {
33
+ return ThreadSpecFromJSONTyped(json, false);
34
+ }
35
+ export function ThreadSpecFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ basicDiameter: json['basicDiameter'],
41
+ threadPitch: json['threadPitch'],
42
+ minMinorDiameter: json['minMinorDiameter'],
43
+ maxMinorDiameter: json['maxMinorDiameter'],
44
+ minMajorDiameter: json['minMajorDiameter'],
45
+ threadPercentage: json['threadPercentage'],
46
+ };
47
+ }
48
+ export function ThreadSpecToJSON(json) {
49
+ return ThreadSpecToJSONTyped(json, false);
50
+ }
51
+ export function ThreadSpecToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ basicDiameter: value['basicDiameter'],
57
+ threadPitch: value['threadPitch'],
58
+ minMinorDiameter: value['minMinorDiameter'],
59
+ maxMinorDiameter: value['maxMinorDiameter'],
60
+ minMajorDiameter: value['minMajorDiameter'],
61
+ threadPercentage: value['threadPercentage'],
62
+ };
63
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ThreadSpec } from './ThreadSpec.js';
13
+ import type { ThreadProcess } from './ThreadProcess.js';
14
+ /**
15
+ * A thread a hole is to receive, and how it is to be cut.
16
+ * @export
17
+ * @interface Threading
18
+ */
19
+ export interface Threading {
20
+ /**
21
+ * The dimensional definition of the thread.
22
+ * @type {ThreadSpec}
23
+ * @memberof Threading
24
+ */
25
+ spec: ThreadSpec;
26
+ /**
27
+ * The process used to cut the thread.
28
+ * @type {ThreadProcess}
29
+ * @memberof Threading
30
+ */
31
+ process: ThreadProcess;
32
+ }
33
+ /**
34
+ * Check if a given object implements the Threading interface.
35
+ */
36
+ export declare function instanceOfThreading(value: object): value is Threading;
37
+ export declare function ThreadingFromJSON(json: any): Threading;
38
+ export declare function ThreadingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Threading;
39
+ export declare function ThreadingToJSON(json: any): Threading;
40
+ export declare function ThreadingToJSONTyped(value?: Threading | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Toolpath Engine API
5
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.2
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ThreadSpecFromJSON, ThreadSpecToJSON, } from './ThreadSpec.js';
15
+ import { ThreadProcessFromJSON, ThreadProcessToJSON, } from './ThreadProcess.js';
16
+ /**
17
+ * Check if a given object implements the Threading interface.
18
+ */
19
+ export function instanceOfThreading(value) {
20
+ if (!('spec' in value) || value['spec'] === undefined)
21
+ return false;
22
+ if (!('process' in value) || value['process'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ThreadingFromJSON(json) {
27
+ return ThreadingFromJSONTyped(json, false);
28
+ }
29
+ export function ThreadingFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ spec: ThreadSpecFromJSON(json['spec']),
35
+ process: ThreadProcessFromJSON(json['process']),
36
+ };
37
+ }
38
+ export function ThreadingToJSON(json) {
39
+ return ThreadingToJSONTyped(json, false);
40
+ }
41
+ export function ThreadingToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ spec: ThreadSpecToJSON(value['spec']),
47
+ process: ThreadProcessToJSON(value['process']),
48
+ };
49
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Toolpath Engine API
3
+ * Public REST API for Toolpath engine operations. **Units.** All dimensional values — in reports and in feature datasheets — are in millimetres; all angles are in degrees. Each report also states this in its `units` field. **Browser use.** CORS is per API key: a request only receives an `Access-Control-Allow-Origin` header when its `Origin` is in the allowlist configured on the key used (set when creating or editing the key in the portal). A key with no allowed origins is server-to-server only. A Bearer API key placed in client-side JavaScript is readable by anyone — restrict its origins, prefer a `read_only` key (read_only keys may call GET operations only; writes are rejected with 403), or proxy requests through your own server.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * How far a machined surface may deviate from the model, in three escalating bands
14
+ * (`0 <= ignore <= deviate <= max`).
15
+ * @export
16
+ * @interface ToleranceBand
17
+ */
18
+ export interface ToleranceBand {
19
+ /**
20
+ * Deviation at or below this value is ignored, in mm.
21
+ * @type {number}
22
+ * @memberof ToleranceBand
23
+ */
24
+ atolIgnore: number;
25
+ /**
26
+ * Deviation above the ignored band but at or below this value is reported, in mm.
27
+ * @type {number}
28
+ * @memberof ToleranceBand
29
+ */
30
+ atolDeviate: number;
31
+ /**
32
+ * Maximum allowed deviation from the model, in mm.
33
+ * @type {number}
34
+ * @memberof ToleranceBand
35
+ */
36
+ atolMax: number;
37
+ }
38
+ /**
39
+ * Check if a given object implements the ToleranceBand interface.
40
+ */
41
+ export declare function instanceOfToleranceBand(value: object): value is ToleranceBand;
42
+ export declare function ToleranceBandFromJSON(json: any): ToleranceBand;
43
+ export declare function ToleranceBandFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToleranceBand;
44
+ export declare function ToleranceBandToJSON(json: any): ToleranceBand;
45
+ export declare function ToleranceBandToJSONTyped(value?: ToleranceBand | null, ignoreDiscriminator?: boolean): any;