@toolpath/api 0.1.0

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 (67) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +29 -0
  3. package/dist/client.d.ts +14 -0
  4. package/dist/client.js +15 -0
  5. package/dist/generated/apis/FeaturesApi.d.ts +50 -0
  6. package/dist/generated/apis/FeaturesApi.js +102 -0
  7. package/dist/generated/apis/JobsApi.d.ts +79 -0
  8. package/dist/generated/apis/JobsApi.js +165 -0
  9. package/dist/generated/apis/KeysApi.d.ts +32 -0
  10. package/dist/generated/apis/KeysApi.js +58 -0
  11. package/dist/generated/apis/PartsApi.d.ts +76 -0
  12. package/dist/generated/apis/PartsApi.js +157 -0
  13. package/dist/generated/apis/ServiceApi.d.ts +43 -0
  14. package/dist/generated/apis/ServiceApi.js +79 -0
  15. package/dist/generated/apis/index.d.ts +5 -0
  16. package/dist/generated/apis/index.js +7 -0
  17. package/dist/generated/index.d.ts +3 -0
  18. package/dist/generated/index.js +5 -0
  19. package/dist/generated/models/AnalyzeJobResponse.d.ts +51 -0
  20. package/dist/generated/models/AnalyzeJobResponse.js +59 -0
  21. package/dist/generated/models/ComputeFeatureDatasheetsRequest.d.ts +32 -0
  22. package/dist/generated/models/ComputeFeatureDatasheetsRequest.js +43 -0
  23. package/dist/generated/models/ComputeFeatureDatasheetsResponse.d.ts +51 -0
  24. package/dist/generated/models/ComputeFeatureDatasheetsResponse.js +59 -0
  25. package/dist/generated/models/CreatePartResponse.d.ts +50 -0
  26. package/dist/generated/models/CreatePartResponse.js +55 -0
  27. package/dist/generated/models/DirectionZBounds.d.ts +45 -0
  28. package/dist/generated/models/DirectionZBounds.js +52 -0
  29. package/dist/generated/models/FeatureDatasheetEntry.d.ts +52 -0
  30. package/dist/generated/models/FeatureDatasheetEntry.js +53 -0
  31. package/dist/generated/models/FeatureDatasheetsResponse.d.ts +39 -0
  32. package/dist/generated/models/FeatureDatasheetsResponse.js +48 -0
  33. package/dist/generated/models/HealthResponse.d.ts +54 -0
  34. package/dist/generated/models/HealthResponse.js +61 -0
  35. package/dist/generated/models/JobDetail.d.ts +84 -0
  36. package/dist/generated/models/JobDetail.js +80 -0
  37. package/dist/generated/models/JobSummary.d.ts +72 -0
  38. package/dist/generated/models/JobSummary.js +72 -0
  39. package/dist/generated/models/KeyValidationResponse.d.ts +48 -0
  40. package/dist/generated/models/KeyValidationResponse.js +56 -0
  41. package/dist/generated/models/ListJobsResponse.d.ts +51 -0
  42. package/dist/generated/models/ListJobsResponse.js +56 -0
  43. package/dist/generated/models/OpenApiDocument.d.ts +33 -0
  44. package/dist/generated/models/OpenApiDocument.js +45 -0
  45. package/dist/generated/models/PartFeature.d.ts +64 -0
  46. package/dist/generated/models/PartFeature.js +65 -0
  47. package/dist/generated/models/PartFeatureAxis.d.ts +44 -0
  48. package/dist/generated/models/PartFeatureAxis.js +51 -0
  49. package/dist/generated/models/PartReportResponse.d.ts +139 -0
  50. package/dist/generated/models/PartReportResponse.js +120 -0
  51. package/dist/generated/models/ProblemDetails.d.ts +62 -0
  52. package/dist/generated/models/ProblemDetails.js +59 -0
  53. package/dist/generated/models/Region.d.ts +56 -0
  54. package/dist/generated/models/Region.js +59 -0
  55. package/dist/generated/models/ReportUnits.d.ts +52 -0
  56. package/dist/generated/models/ReportUnits.js +63 -0
  57. package/dist/generated/models/Vec3.d.ts +44 -0
  58. package/dist/generated/models/Vec3.js +51 -0
  59. package/dist/generated/models/index.d.ts +20 -0
  60. package/dist/generated/models/index.js +22 -0
  61. package/dist/generated/runtime.d.ts +185 -0
  62. package/dist/generated/runtime.js +351 -0
  63. package/dist/index.d.ts +3 -0
  64. package/dist/index.js +3 -0
  65. package/dist/upload.d.ts +5 -0
  66. package/dist/upload.js +13 -0
  67. package/package.json +48 -0
@@ -0,0 +1,72 @@
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.0
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
+ *
14
+ * @export
15
+ * @interface JobSummary
16
+ */
17
+ export interface JobSummary {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof JobSummary
22
+ */
23
+ partUuid: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof JobSummary
28
+ */
29
+ jobUuid: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof JobSummary
34
+ */
35
+ productType: string;
36
+ /**
37
+ *
38
+ * @type {JobSummaryStatusEnum}
39
+ * @memberof JobSummary
40
+ */
41
+ status: JobSummaryStatusEnum;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof JobSummary
46
+ */
47
+ progress: number | null;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof JobSummary
52
+ */
53
+ createdAt: Date;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const JobSummaryStatusEnum: {
59
+ readonly Queued: "queued";
60
+ readonly Running: "running";
61
+ readonly Succeeded: "succeeded";
62
+ readonly Failed: "failed";
63
+ };
64
+ export type JobSummaryStatusEnum = (typeof JobSummaryStatusEnum)[keyof typeof JobSummaryStatusEnum];
65
+ /**
66
+ * Check if a given object implements the JobSummary interface.
67
+ */
68
+ export declare function instanceOfJobSummary(value: object): value is JobSummary;
69
+ export declare function JobSummaryFromJSON(json: any): JobSummary;
70
+ export declare function JobSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobSummary;
71
+ export declare function JobSummaryToJSON(json: any): JobSummary;
72
+ export declare function JobSummaryToJSONTyped(value?: JobSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.0
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
+ * @export
16
+ */
17
+ export const JobSummaryStatusEnum = {
18
+ Queued: 'queued',
19
+ Running: 'running',
20
+ Succeeded: 'succeeded',
21
+ Failed: 'failed',
22
+ };
23
+ /**
24
+ * Check if a given object implements the JobSummary interface.
25
+ */
26
+ export function instanceOfJobSummary(value) {
27
+ if (!('partUuid' in value) || value['partUuid'] === undefined)
28
+ return false;
29
+ if (!('jobUuid' in value) || value['jobUuid'] === undefined)
30
+ return false;
31
+ if (!('productType' in value) || value['productType'] === undefined)
32
+ return false;
33
+ if (!('status' in value) || value['status'] === undefined)
34
+ return false;
35
+ if (!('progress' in value) || value['progress'] === undefined)
36
+ return false;
37
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function JobSummaryFromJSON(json) {
42
+ return JobSummaryFromJSONTyped(json, false);
43
+ }
44
+ export function JobSummaryFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ partUuid: json['partUuid'],
50
+ jobUuid: json['jobUuid'],
51
+ productType: json['productType'],
52
+ status: json['status'],
53
+ progress: json['progress'],
54
+ createdAt: new Date(json['createdAt']),
55
+ };
56
+ }
57
+ export function JobSummaryToJSON(json) {
58
+ return JobSummaryToJSONTyped(json, false);
59
+ }
60
+ export function JobSummaryToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ partUuid: value['partUuid'],
66
+ jobUuid: value['jobUuid'],
67
+ productType: value['productType'],
68
+ status: value['status'],
69
+ progress: value['progress'],
70
+ createdAt: value['createdAt'].toISOString(),
71
+ };
72
+ }
@@ -0,0 +1,48 @@
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.0
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
+ *
14
+ * @export
15
+ * @interface KeyValidationResponse
16
+ */
17
+ export interface KeyValidationResponse {
18
+ /**
19
+ * Whether the key is usable right now.
20
+ * @type {boolean}
21
+ * @memberof KeyValidationResponse
22
+ */
23
+ valid: boolean;
24
+ /**
25
+ * The derived key status: active (usable), revoked (disabled), expired (past expiry), or invalid (unknown key).
26
+ * @type {KeyValidationResponseStatusEnum}
27
+ * @memberof KeyValidationResponse
28
+ */
29
+ status: KeyValidationResponseStatusEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const KeyValidationResponseStatusEnum: {
35
+ readonly Active: "active";
36
+ readonly Revoked: "revoked";
37
+ readonly Expired: "expired";
38
+ readonly Invalid: "invalid";
39
+ };
40
+ export type KeyValidationResponseStatusEnum = (typeof KeyValidationResponseStatusEnum)[keyof typeof KeyValidationResponseStatusEnum];
41
+ /**
42
+ * Check if a given object implements the KeyValidationResponse interface.
43
+ */
44
+ export declare function instanceOfKeyValidationResponse(value: object): value is KeyValidationResponse;
45
+ export declare function KeyValidationResponseFromJSON(json: any): KeyValidationResponse;
46
+ export declare function KeyValidationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyValidationResponse;
47
+ export declare function KeyValidationResponseToJSON(json: any): KeyValidationResponse;
48
+ export declare function KeyValidationResponseToJSONTyped(value?: KeyValidationResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.0
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
+ * @export
16
+ */
17
+ export const KeyValidationResponseStatusEnum = {
18
+ Active: 'active',
19
+ Revoked: 'revoked',
20
+ Expired: 'expired',
21
+ Invalid: 'invalid',
22
+ };
23
+ /**
24
+ * Check if a given object implements the KeyValidationResponse interface.
25
+ */
26
+ export function instanceOfKeyValidationResponse(value) {
27
+ if (!('valid' in value) || value['valid'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function KeyValidationResponseFromJSON(json) {
34
+ return KeyValidationResponseFromJSONTyped(json, false);
35
+ }
36
+ export function KeyValidationResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ valid: json['valid'],
42
+ status: json['status'],
43
+ };
44
+ }
45
+ export function KeyValidationResponseToJSON(json) {
46
+ return KeyValidationResponseToJSONTyped(json, false);
47
+ }
48
+ export function KeyValidationResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ valid: value['valid'],
54
+ status: value['status'],
55
+ };
56
+ }
@@ -0,0 +1,51 @@
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.0
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 { JobSummary } from './JobSummary.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListJobsResponse
17
+ */
18
+ export interface ListJobsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<JobSummary>}
22
+ * @memberof ListJobsResponse
23
+ */
24
+ items: Array<JobSummary>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ListJobsResponse
29
+ */
30
+ page: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ListJobsResponse
35
+ */
36
+ pageSize: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ListJobsResponse
41
+ */
42
+ total: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ListJobsResponse interface.
46
+ */
47
+ export declare function instanceOfListJobsResponse(value: object): value is ListJobsResponse;
48
+ export declare function ListJobsResponseFromJSON(json: any): ListJobsResponse;
49
+ export declare function ListJobsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListJobsResponse;
50
+ export declare function ListJobsResponseToJSON(json: any): ListJobsResponse;
51
+ export declare function ListJobsResponseToJSONTyped(value?: ListJobsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.0
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 { JobSummaryFromJSON, JobSummaryToJSON, } from './JobSummary.js';
15
+ /**
16
+ * Check if a given object implements the ListJobsResponse interface.
17
+ */
18
+ export function instanceOfListJobsResponse(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ if (!('page' in value) || value['page'] === undefined)
22
+ return false;
23
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
24
+ return false;
25
+ if (!('total' in value) || value['total'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function ListJobsResponseFromJSON(json) {
30
+ return ListJobsResponseFromJSONTyped(json, false);
31
+ }
32
+ export function ListJobsResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ items: json['items'].map(JobSummaryFromJSON),
38
+ page: json['page'],
39
+ pageSize: json['pageSize'],
40
+ total: json['total'],
41
+ };
42
+ }
43
+ export function ListJobsResponseToJSON(json) {
44
+ return ListJobsResponseToJSONTyped(json, false);
45
+ }
46
+ export function ListJobsResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ items: value['items'].map(JobSummaryToJSON),
52
+ page: value['page'],
53
+ pageSize: value['pageSize'],
54
+ total: value['total'],
55
+ };
56
+ }
@@ -0,0 +1,33 @@
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.0
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
+ *
14
+ * @export
15
+ * @interface OpenApiDocument
16
+ */
17
+ export interface OpenApiDocument {
18
+ [key: string]: any | any;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof OpenApiDocument
23
+ */
24
+ openapi: string;
25
+ }
26
+ /**
27
+ * Check if a given object implements the OpenApiDocument interface.
28
+ */
29
+ export declare function instanceOfOpenApiDocument(value: object): value is OpenApiDocument;
30
+ export declare function OpenApiDocumentFromJSON(json: any): OpenApiDocument;
31
+ export declare function OpenApiDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenApiDocument;
32
+ export declare function OpenApiDocumentToJSON(json: any): OpenApiDocument;
33
+ export declare function OpenApiDocumentToJSONTyped(value?: OpenApiDocument | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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.0
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 OpenApiDocument interface.
16
+ */
17
+ export function instanceOfOpenApiDocument(value) {
18
+ if (!('openapi' in value) || value['openapi'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function OpenApiDocumentFromJSON(json) {
23
+ return OpenApiDocumentFromJSONTyped(json, false);
24
+ }
25
+ export function OpenApiDocumentFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ ...json,
31
+ openapi: json['openapi'],
32
+ };
33
+ }
34
+ export function OpenApiDocumentToJSON(json) {
35
+ return OpenApiDocumentToJSONTyped(json, false);
36
+ }
37
+ export function OpenApiDocumentToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ ...value,
43
+ openapi: value['openapi'],
44
+ };
45
+ }
@@ -0,0 +1,64 @@
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.0
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 { Vec3 } from './Vec3.js';
13
+ import type { PartFeatureAxis } from './PartFeatureAxis.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PartFeature
18
+ */
19
+ export interface PartFeature {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof PartFeature
24
+ */
25
+ featureId: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof PartFeature
30
+ */
31
+ featureTag: string;
32
+ /**
33
+ *
34
+ * @type {Array<number>}
35
+ * @memberof PartFeature
36
+ */
37
+ regionIdxs: Array<number>;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof PartFeature
42
+ */
43
+ featureType: string;
44
+ /**
45
+ *
46
+ * @type {Vec3}
47
+ * @memberof PartFeature
48
+ */
49
+ machiningDirection: Vec3;
50
+ /**
51
+ *
52
+ * @type {PartFeatureAxis}
53
+ * @memberof PartFeature
54
+ */
55
+ axis: PartFeatureAxis;
56
+ }
57
+ /**
58
+ * Check if a given object implements the PartFeature interface.
59
+ */
60
+ export declare function instanceOfPartFeature(value: object): value is PartFeature;
61
+ export declare function PartFeatureFromJSON(json: any): PartFeature;
62
+ export declare function PartFeatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartFeature;
63
+ export declare function PartFeatureToJSON(json: any): PartFeature;
64
+ export declare function PartFeatureToJSONTyped(value?: PartFeature | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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.0
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 { Vec3FromJSON, Vec3ToJSON } from './Vec3.js';
15
+ import { PartFeatureAxisFromJSON, PartFeatureAxisToJSON, } from './PartFeatureAxis.js';
16
+ /**
17
+ * Check if a given object implements the PartFeature interface.
18
+ */
19
+ export function instanceOfPartFeature(value) {
20
+ if (!('featureId' in value) || value['featureId'] === undefined)
21
+ return false;
22
+ if (!('featureTag' in value) || value['featureTag'] === undefined)
23
+ return false;
24
+ if (!('regionIdxs' in value) || value['regionIdxs'] === undefined)
25
+ return false;
26
+ if (!('featureType' in value) || value['featureType'] === undefined)
27
+ return false;
28
+ if (!('machiningDirection' in value) || value['machiningDirection'] === undefined)
29
+ return false;
30
+ if (!('axis' in value) || value['axis'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function PartFeatureFromJSON(json) {
35
+ return PartFeatureFromJSONTyped(json, false);
36
+ }
37
+ export function PartFeatureFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ featureId: json['featureId'],
43
+ featureTag: json['featureTag'],
44
+ regionIdxs: json['regionIdxs'],
45
+ featureType: json['featureType'],
46
+ machiningDirection: Vec3FromJSON(json['machiningDirection']),
47
+ axis: PartFeatureAxisFromJSON(json['axis']),
48
+ };
49
+ }
50
+ export function PartFeatureToJSON(json) {
51
+ return PartFeatureToJSONTyped(json, false);
52
+ }
53
+ export function PartFeatureToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ featureId: value['featureId'],
59
+ featureTag: value['featureTag'],
60
+ regionIdxs: value['regionIdxs'],
61
+ featureType: value['featureType'],
62
+ machiningDirection: Vec3ToJSON(value['machiningDirection']),
63
+ axis: PartFeatureAxisToJSON(value['axis']),
64
+ };
65
+ }
@@ -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.0
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
+ *
14
+ * @export
15
+ * @interface PartFeatureAxis
16
+ */
17
+ export interface PartFeatureAxis {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PartFeatureAxis
22
+ */
23
+ x: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PartFeatureAxis
28
+ */
29
+ y: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PartFeatureAxis
34
+ */
35
+ z: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PartFeatureAxis interface.
39
+ */
40
+ export declare function instanceOfPartFeatureAxis(value: object): value is PartFeatureAxis;
41
+ export declare function PartFeatureAxisFromJSON(json: any): PartFeatureAxis;
42
+ export declare function PartFeatureAxisFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartFeatureAxis;
43
+ export declare function PartFeatureAxisToJSON(json: any): PartFeatureAxis;
44
+ export declare function PartFeatureAxisToJSONTyped(value?: PartFeatureAxis | 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.0
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 PartFeatureAxis interface.
16
+ */
17
+ export function instanceOfPartFeatureAxis(value) {
18
+ if (!('x' in value) || value['x'] === undefined)
19
+ return false;
20
+ if (!('y' in value) || value['y'] === undefined)
21
+ return false;
22
+ if (!('z' in value) || value['z'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function PartFeatureAxisFromJSON(json) {
27
+ return PartFeatureAxisFromJSONTyped(json, false);
28
+ }
29
+ export function PartFeatureAxisFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ x: json['x'],
35
+ y: json['y'],
36
+ z: json['z'],
37
+ };
38
+ }
39
+ export function PartFeatureAxisToJSON(json) {
40
+ return PartFeatureAxisToJSONTyped(json, false);
41
+ }
42
+ export function PartFeatureAxisToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ x: value['x'],
48
+ y: value['y'],
49
+ z: value['z'],
50
+ };
51
+ }