@toolpath/api 0.1.0 → 0.2.1

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 (109) hide show
  1. package/dist/generated/apis/FeaturesApi.d.ts +1 -1
  2. package/dist/generated/apis/FeaturesApi.js +1 -1
  3. package/dist/generated/apis/JobsApi.d.ts +1 -1
  4. package/dist/generated/apis/JobsApi.js +1 -1
  5. package/dist/generated/apis/KeysApi.d.ts +1 -1
  6. package/dist/generated/apis/KeysApi.js +1 -1
  7. package/dist/generated/apis/PartsApi.d.ts +1 -1
  8. package/dist/generated/apis/PartsApi.js +1 -1
  9. package/dist/generated/apis/ServiceApi.d.ts +1 -1
  10. package/dist/generated/apis/ServiceApi.js +1 -1
  11. package/dist/generated/models/AnalyzeJobResponse.d.ts +4 -4
  12. package/dist/generated/models/AnalyzeJobResponse.js +1 -1
  13. package/dist/generated/models/BevelFacts.d.ts +62 -0
  14. package/dist/generated/models/BevelFacts.js +58 -0
  15. package/dist/generated/models/BossFacts.d.ts +64 -0
  16. package/dist/generated/models/BossFacts.js +68 -0
  17. package/dist/generated/models/CdBounds.d.ts +41 -0
  18. package/dist/generated/models/CdBounds.js +47 -0
  19. package/dist/generated/models/CdData.d.ts +52 -0
  20. package/dist/generated/models/CdData.js +56 -0
  21. package/dist/generated/models/ChamferFacts.d.ts +55 -0
  22. package/dist/generated/models/ChamferFacts.js +61 -0
  23. package/dist/generated/models/ComputeFeatureDatasheetsRequest.d.ts +2 -2
  24. package/dist/generated/models/ComputeFeatureDatasheetsRequest.js +1 -1
  25. package/dist/generated/models/ComputeFeatureDatasheetsResponse.d.ts +4 -4
  26. package/dist/generated/models/ComputeFeatureDatasheetsResponse.js +1 -1
  27. package/dist/generated/models/CreatePartResponse.d.ts +5 -5
  28. package/dist/generated/models/CreatePartResponse.js +1 -1
  29. package/dist/generated/models/DirectionZBounds.d.ts +6 -6
  30. package/dist/generated/models/DirectionZBounds.js +4 -4
  31. package/dist/generated/models/DirectionZBoundsDirection.d.ts +44 -0
  32. package/dist/generated/models/DirectionZBoundsDirection.js +51 -0
  33. package/dist/generated/models/DovetailFacts.d.ts +98 -0
  34. package/dist/generated/models/DovetailFacts.js +84 -0
  35. package/dist/generated/models/FaceFacts.d.ts +70 -0
  36. package/dist/generated/models/FaceFacts.js +72 -0
  37. package/dist/generated/models/FeatureDatasheet.d.ts +110 -0
  38. package/dist/generated/models/FeatureDatasheet.js +94 -0
  39. package/dist/generated/models/FeatureDatasheetEntry.d.ts +8 -9
  40. package/dist/generated/models/FeatureDatasheetEntry.js +8 -3
  41. package/dist/generated/models/FeatureDatasheetFacts.d.ts +51 -0
  42. package/dist/generated/models/FeatureDatasheetFacts.js +89 -0
  43. package/dist/generated/models/FeatureDatasheetsResponse.d.ts +3 -3
  44. package/dist/generated/models/FeatureDatasheetsResponse.js +1 -1
  45. package/dist/generated/models/FeatureType.d.ts +58 -0
  46. package/dist/generated/models/FeatureType.js +76 -0
  47. package/dist/generated/models/HealthResponse.d.ts +3 -3
  48. package/dist/generated/models/HealthResponse.js +1 -1
  49. package/dist/generated/models/HoleFacts.d.ts +109 -0
  50. package/dist/generated/models/HoleFacts.js +96 -0
  51. package/dist/generated/models/HoleProcess.d.ts +26 -0
  52. package/dist/generated/models/HoleProcess.js +44 -0
  53. package/dist/generated/models/JobDetail.d.ts +9 -9
  54. package/dist/generated/models/JobDetail.js +1 -1
  55. package/dist/generated/models/JobSummary.d.ts +7 -7
  56. package/dist/generated/models/JobSummary.js +1 -1
  57. package/dist/generated/models/KeyValidationResponse.d.ts +1 -1
  58. package/dist/generated/models/KeyValidationResponse.js +1 -1
  59. package/dist/generated/models/ListJobsResponse.d.ts +5 -5
  60. package/dist/generated/models/ListJobsResponse.js +1 -1
  61. package/dist/generated/models/OpenApiDocument.d.ts +2 -2
  62. package/dist/generated/models/OpenApiDocument.js +1 -1
  63. package/dist/generated/models/PartFeature.d.ts +8 -8
  64. package/dist/generated/models/PartFeature.js +4 -4
  65. package/dist/generated/models/PartFeatureAxis.d.ts +5 -5
  66. package/dist/generated/models/PartFeatureAxis.js +1 -1
  67. package/dist/generated/models/PartFeatureMachiningDirection.d.ts +44 -0
  68. package/dist/generated/models/PartFeatureMachiningDirection.js +51 -0
  69. package/dist/generated/models/PartReportResponse.d.ts +21 -21
  70. package/dist/generated/models/PartReportResponse.js +4 -4
  71. package/dist/generated/models/PartReportResponseUnits.d.ts +52 -0
  72. package/dist/generated/models/PartReportResponseUnits.js +63 -0
  73. package/dist/generated/models/PocketFacts.d.ts +65 -0
  74. package/dist/generated/models/PocketFacts.js +68 -0
  75. package/dist/generated/models/ProblemDetails.d.ts +1 -1
  76. package/dist/generated/models/ProblemDetails.js +1 -1
  77. package/dist/generated/models/ProfileFacts.d.ts +58 -0
  78. package/dist/generated/models/ProfileFacts.js +64 -0
  79. package/dist/generated/models/Region.d.ts +12 -6
  80. package/dist/generated/models/Region.js +5 -1
  81. package/dist/generated/models/ReportUnits.d.ts +3 -3
  82. package/dist/generated/models/ReportUnits.js +1 -1
  83. package/dist/generated/models/SinkFacts.d.ts +47 -0
  84. package/dist/generated/models/SinkFacts.js +52 -0
  85. package/dist/generated/models/SurfaceFacts.d.ts +97 -0
  86. package/dist/generated/models/SurfaceFacts.js +89 -0
  87. package/dist/generated/models/ThreadProcess.d.ts +26 -0
  88. package/dist/generated/models/ThreadProcess.js +44 -0
  89. package/dist/generated/models/ThreadSpec.d.ts +62 -0
  90. package/dist/generated/models/ThreadSpec.js +63 -0
  91. package/dist/generated/models/Threading.d.ts +40 -0
  92. package/dist/generated/models/Threading.js +49 -0
  93. package/dist/generated/models/ToleranceBand.d.ts +45 -0
  94. package/dist/generated/models/ToleranceBand.js +51 -0
  95. package/dist/generated/models/ToolFitResult.d.ts +44 -0
  96. package/dist/generated/models/ToolFitResult.js +51 -0
  97. package/dist/generated/models/TslotFacts.d.ts +81 -0
  98. package/dist/generated/models/TslotFacts.js +76 -0
  99. package/dist/generated/models/Vec2.d.ts +38 -0
  100. package/dist/generated/models/Vec2.js +47 -0
  101. package/dist/generated/models/Vec3.d.ts +4 -4
  102. package/dist/generated/models/Vec3.js +1 -1
  103. package/dist/generated/models/WallFacts.d.ts +46 -0
  104. package/dist/generated/models/WallFacts.js +56 -0
  105. package/dist/generated/models/index.d.ts +27 -0
  106. package/dist/generated/models/index.js +27 -0
  107. package/dist/generated/runtime.d.ts +1 -1
  108. package/dist/generated/runtime.js +1 -1
  109. package/package.json +3 -3
@@ -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.1
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.1
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.1
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.1
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.1
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.1
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;
@@ -0,0 +1,51 @@
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.1
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 ToleranceBand interface.
16
+ */
17
+ export function instanceOfToleranceBand(value) {
18
+ if (!('atolIgnore' in value) || value['atolIgnore'] === undefined)
19
+ return false;
20
+ if (!('atolDeviate' in value) || value['atolDeviate'] === undefined)
21
+ return false;
22
+ if (!('atolMax' in value) || value['atolMax'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ToleranceBandFromJSON(json) {
27
+ return ToleranceBandFromJSONTyped(json, false);
28
+ }
29
+ export function ToleranceBandFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ atolIgnore: json['atolIgnore'],
35
+ atolDeviate: json['atolDeviate'],
36
+ atolMax: json['atolMax'],
37
+ };
38
+ }
39
+ export function ToleranceBandToJSON(json) {
40
+ return ToleranceBandToJSONTyped(json, false);
41
+ }
42
+ export function ToleranceBandToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ atolIgnore: value['atolIgnore'],
48
+ atolDeviate: value['atolDeviate'],
49
+ atolMax: value['atolMax'],
50
+ };
51
+ }
@@ -0,0 +1,44 @@
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.1
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 tool geometry a surface's own shape admits, before the layers are consulted.
14
+ * @export
15
+ * @interface ToolFitResult
16
+ */
17
+ export interface ToolFitResult {
18
+ /**
19
+ * Corner radius the surface shape admits, in mm.
20
+ * @type {number}
21
+ * @memberof ToolFitResult
22
+ */
23
+ cornerRadius: number;
24
+ /**
25
+ * Largest full-diameter tool the surface shape admits, in mm.
26
+ * @type {number}
27
+ * @memberof ToolFitResult
28
+ */
29
+ toolDiameter: number;
30
+ /**
31
+ * Largest bottom diameter the surface shape admits, in mm.
32
+ * @type {number}
33
+ * @memberof ToolFitResult
34
+ */
35
+ toolBottomDiameter: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ToolFitResult interface.
39
+ */
40
+ export declare function instanceOfToolFitResult(value: object): value is ToolFitResult;
41
+ export declare function ToolFitResultFromJSON(json: any): ToolFitResult;
42
+ export declare function ToolFitResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolFitResult;
43
+ export declare function ToolFitResultToJSON(json: any): ToolFitResult;
44
+ export declare function ToolFitResultToJSONTyped(value?: ToolFitResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.1
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 ToolFitResult interface.
16
+ */
17
+ export function instanceOfToolFitResult(value) {
18
+ if (!('cornerRadius' in value) || value['cornerRadius'] === undefined)
19
+ return false;
20
+ if (!('toolDiameter' in value) || value['toolDiameter'] === undefined)
21
+ return false;
22
+ if (!('toolBottomDiameter' in value) || value['toolBottomDiameter'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ToolFitResultFromJSON(json) {
27
+ return ToolFitResultFromJSONTyped(json, false);
28
+ }
29
+ export function ToolFitResultFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ cornerRadius: json['cornerRadius'],
35
+ toolDiameter: json['toolDiameter'],
36
+ toolBottomDiameter: json['toolBottomDiameter'],
37
+ };
38
+ }
39
+ export function ToolFitResultToJSON(json) {
40
+ return ToolFitResultToJSONTyped(json, false);
41
+ }
42
+ export function ToolFitResultToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ cornerRadius: value['cornerRadius'],
48
+ toolDiameter: value['toolDiameter'],
49
+ toolBottomDiameter: value['toolBottomDiameter'],
50
+ };
51
+ }
@@ -0,0 +1,81 @@
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.1
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 { CdData } from './CdData.js';
13
+ /**
14
+ * A t-slot: a groove cut sideways into a wall or around a post, under a ceiling the
15
+ * machining direction cannot see past.
16
+ * @export
17
+ * @interface TslotFacts
18
+ */
19
+ export interface TslotFacts {
20
+ /**
21
+ * Discriminator for this facts variant.
22
+ * @type {TslotFactsKindEnum}
23
+ * @memberof TslotFacts
24
+ */
25
+ kind: TslotFactsKindEnum;
26
+ /**
27
+ * The slot runs around material standing in it rather than into the material
28
+ * around a void.
29
+ * @type {boolean}
30
+ * @memberof TslotFacts
31
+ */
32
+ isExternal: boolean;
33
+ /**
34
+ * The slot's walls close on themselves in plan view.
35
+ * @type {boolean}
36
+ * @memberof TslotFacts
37
+ */
38
+ isClosed: boolean;
39
+ /**
40
+ * How far the groove runs back from its opening, radially; infinite when the slot
41
+ * could not be measured.
42
+ * @type {number}
43
+ * @memberof TslotFacts
44
+ */
45
+ undercutDepth: number;
46
+ /**
47
+ * The widest tool that can come down through the opening above the slot to reach
48
+ * it; infinite when nothing above constrains one, zero when nothing fits at all.
49
+ * @type {number}
50
+ * @memberof TslotFacts
51
+ */
52
+ maxEntryCd: number;
53
+ /**
54
+ * Clearance-diameter limits for tools machining inside the slot.
55
+ * @type {CdData}
56
+ * @memberof TslotFacts
57
+ */
58
+ cd: CdData;
59
+ /**
60
+ * Radius of the blend where the slot's walls meet its floor and ceiling; 0.0 when
61
+ * sharp.
62
+ * @type {number}
63
+ * @memberof TslotFacts
64
+ */
65
+ filletRadius: number;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const TslotFactsKindEnum: {
71
+ readonly Tslot: "Tslot";
72
+ };
73
+ export type TslotFactsKindEnum = (typeof TslotFactsKindEnum)[keyof typeof TslotFactsKindEnum];
74
+ /**
75
+ * Check if a given object implements the TslotFacts interface.
76
+ */
77
+ export declare function instanceOfTslotFacts(value: object): value is TslotFacts;
78
+ export declare function TslotFactsFromJSON(json: any): TslotFacts;
79
+ export declare function TslotFactsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TslotFacts;
80
+ export declare function TslotFactsToJSON(json: any): TslotFacts;
81
+ export declare function TslotFactsToJSONTyped(value?: TslotFacts | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.1
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 { CdDataFromJSON, CdDataToJSON } from './CdData.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const TslotFactsKindEnum = {
19
+ Tslot: 'Tslot',
20
+ };
21
+ /**
22
+ * Check if a given object implements the TslotFacts interface.
23
+ */
24
+ export function instanceOfTslotFacts(value) {
25
+ if (!('kind' in value) || value['kind'] === undefined)
26
+ return false;
27
+ if (value['kind'] !== 'Tslot')
28
+ return false;
29
+ if (!('isExternal' in value) || value['isExternal'] === undefined)
30
+ return false;
31
+ if (!('isClosed' in value) || value['isClosed'] === undefined)
32
+ return false;
33
+ if (!('undercutDepth' in value) || value['undercutDepth'] === undefined)
34
+ return false;
35
+ if (!('maxEntryCd' in value) || value['maxEntryCd'] === undefined)
36
+ return false;
37
+ if (!('cd' in value) || value['cd'] === undefined)
38
+ return false;
39
+ if (!('filletRadius' in value) || value['filletRadius'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ export function TslotFactsFromJSON(json) {
44
+ return TslotFactsFromJSONTyped(json, false);
45
+ }
46
+ export function TslotFactsFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ kind: json['kind'],
52
+ isExternal: json['isExternal'],
53
+ isClosed: json['isClosed'],
54
+ undercutDepth: json['undercutDepth'],
55
+ maxEntryCd: json['maxEntryCd'],
56
+ cd: CdDataFromJSON(json['cd']),
57
+ filletRadius: json['filletRadius'],
58
+ };
59
+ }
60
+ export function TslotFactsToJSON(json) {
61
+ return TslotFactsToJSONTyped(json, false);
62
+ }
63
+ export function TslotFactsToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ kind: value['kind'],
69
+ isExternal: value['isExternal'],
70
+ isClosed: value['isClosed'],
71
+ undercutDepth: value['undercutDepth'],
72
+ maxEntryCd: value['maxEntryCd'],
73
+ cd: CdDataToJSON(value['cd']),
74
+ filletRadius: value['filletRadius'],
75
+ };
76
+ }
@@ -0,0 +1,38 @@
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.1
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
+ * A 2D vector (a plain `{ x, y }` object).
14
+ * @export
15
+ * @interface Vec2
16
+ */
17
+ export interface Vec2 {
18
+ /**
19
+ * Horizontal x coordinate in the current frame.
20
+ * @type {number}
21
+ * @memberof Vec2
22
+ */
23
+ x: number;
24
+ /**
25
+ * Horizontal y coordinate in the current frame.
26
+ * @type {number}
27
+ * @memberof Vec2
28
+ */
29
+ y: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the Vec2 interface.
33
+ */
34
+ export declare function instanceOfVec2(value: object): value is Vec2;
35
+ export declare function Vec2FromJSON(json: any): Vec2;
36
+ export declare function Vec2FromJSONTyped(json: any, ignoreDiscriminator: boolean): Vec2;
37
+ export declare function Vec2ToJSON(json: any): Vec2;
38
+ export declare function Vec2ToJSONTyped(value?: Vec2 | null, ignoreDiscriminator?: boolean): any;