@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,55 @@
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 CreatePartResponse interface.
16
+ */
17
+ export function instanceOfCreatePartResponse(value) {
18
+ if (!('partId' in value) || value['partId'] === undefined)
19
+ return false;
20
+ if (!('uploadUrl' in value) || value['uploadUrl'] === undefined)
21
+ return false;
22
+ if (!('sourceBucket' in value) || value['sourceBucket'] === undefined)
23
+ return false;
24
+ if (!('sourceS3Key' in value) || value['sourceS3Key'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function CreatePartResponseFromJSON(json) {
29
+ return CreatePartResponseFromJSONTyped(json, false);
30
+ }
31
+ export function CreatePartResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ partId: json['partId'],
37
+ uploadUrl: json['uploadUrl'],
38
+ sourceBucket: json['sourceBucket'],
39
+ sourceS3Key: json['sourceS3Key'],
40
+ };
41
+ }
42
+ export function CreatePartResponseToJSON(json) {
43
+ return CreatePartResponseToJSONTyped(json, false);
44
+ }
45
+ export function CreatePartResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ partId: value['partId'],
51
+ uploadUrl: value['uploadUrl'],
52
+ sourceBucket: value['sourceBucket'],
53
+ sourceS3Key: value['sourceS3Key'],
54
+ };
55
+ }
@@ -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.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
+ /**
14
+ *
15
+ * @export
16
+ * @interface DirectionZBounds
17
+ */
18
+ export interface DirectionZBounds {
19
+ /**
20
+ *
21
+ * @type {Vec3}
22
+ * @memberof DirectionZBounds
23
+ */
24
+ direction: Vec3;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof DirectionZBounds
29
+ */
30
+ zMin: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof DirectionZBounds
35
+ */
36
+ zMax: number;
37
+ }
38
+ /**
39
+ * Check if a given object implements the DirectionZBounds interface.
40
+ */
41
+ export declare function instanceOfDirectionZBounds(value: object): value is DirectionZBounds;
42
+ export declare function DirectionZBoundsFromJSON(json: any): DirectionZBounds;
43
+ export declare function DirectionZBoundsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectionZBounds;
44
+ export declare function DirectionZBoundsToJSON(json: any): DirectionZBounds;
45
+ export declare function DirectionZBoundsToJSONTyped(value?: DirectionZBounds | 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.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
+ /**
16
+ * Check if a given object implements the DirectionZBounds interface.
17
+ */
18
+ export function instanceOfDirectionZBounds(value) {
19
+ if (!('direction' in value) || value['direction'] === undefined)
20
+ return false;
21
+ if (!('zMin' in value) || value['zMin'] === undefined)
22
+ return false;
23
+ if (!('zMax' in value) || value['zMax'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function DirectionZBoundsFromJSON(json) {
28
+ return DirectionZBoundsFromJSONTyped(json, false);
29
+ }
30
+ export function DirectionZBoundsFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ direction: Vec3FromJSON(json['direction']),
36
+ zMin: json['zMin'],
37
+ zMax: json['zMax'],
38
+ };
39
+ }
40
+ export function DirectionZBoundsToJSON(json) {
41
+ return DirectionZBoundsToJSONTyped(json, false);
42
+ }
43
+ export function DirectionZBoundsToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ direction: Vec3ToJSON(value['direction']),
49
+ zMin: value['zMin'],
50
+ zMax: value['zMax'],
51
+ };
52
+ }
@@ -0,0 +1,52 @@
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 FeatureDatasheetEntry
16
+ */
17
+ export interface FeatureDatasheetEntry {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FeatureDatasheetEntry
22
+ */
23
+ featureId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FeatureDatasheetEntry
28
+ */
29
+ featureTag: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof FeatureDatasheetEntry
34
+ */
35
+ featureType: string;
36
+ /**
37
+ * Per-feature DFM measurement facts. Z bounds in the direction frame (zMin/zMax; local height is zMax − zMin), stock-to-leave, tolerance band, floor/wall flags and areas, plus a per-kind `facts` object (narrow on `facts.kind` for diameters, tool bounds, corner/fillet radius). Lengths are mm, angles degrees. The exact shape is the kernel’s FeatureDatasheet (@toolpath/tp-kernel).
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof FeatureDatasheetEntry
40
+ */
41
+ datasheet?: {
42
+ [key: string]: any;
43
+ };
44
+ }
45
+ /**
46
+ * Check if a given object implements the FeatureDatasheetEntry interface.
47
+ */
48
+ export declare function instanceOfFeatureDatasheetEntry(value: object): value is FeatureDatasheetEntry;
49
+ export declare function FeatureDatasheetEntryFromJSON(json: any): FeatureDatasheetEntry;
50
+ export declare function FeatureDatasheetEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureDatasheetEntry;
51
+ export declare function FeatureDatasheetEntryToJSON(json: any): FeatureDatasheetEntry;
52
+ export declare function FeatureDatasheetEntryToJSONTyped(value?: FeatureDatasheetEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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 FeatureDatasheetEntry interface.
16
+ */
17
+ export function instanceOfFeatureDatasheetEntry(value) {
18
+ if (!('featureId' in value) || value['featureId'] === undefined)
19
+ return false;
20
+ if (!('featureTag' in value) || value['featureTag'] === undefined)
21
+ return false;
22
+ if (!('featureType' in value) || value['featureType'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function FeatureDatasheetEntryFromJSON(json) {
27
+ return FeatureDatasheetEntryFromJSONTyped(json, false);
28
+ }
29
+ export function FeatureDatasheetEntryFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ featureId: json['featureId'],
35
+ featureTag: json['featureTag'],
36
+ featureType: json['featureType'],
37
+ datasheet: json['datasheet'] == null ? undefined : json['datasheet'],
38
+ };
39
+ }
40
+ export function FeatureDatasheetEntryToJSON(json) {
41
+ return FeatureDatasheetEntryToJSONTyped(json, false);
42
+ }
43
+ export function FeatureDatasheetEntryToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ featureId: value['featureId'],
49
+ featureTag: value['featureTag'],
50
+ featureType: value['featureType'],
51
+ datasheet: value['datasheet'],
52
+ };
53
+ }
@@ -0,0 +1,39 @@
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 { FeatureDatasheetEntry } from './FeatureDatasheetEntry.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FeatureDatasheetsResponse
17
+ */
18
+ export interface FeatureDatasheetsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<FeatureDatasheetEntry>}
22
+ * @memberof FeatureDatasheetsResponse
23
+ */
24
+ datasheets: Array<FeatureDatasheetEntry>;
25
+ /**
26
+ *
27
+ * @type {Array<string>}
28
+ * @memberof FeatureDatasheetsResponse
29
+ */
30
+ notFound: Array<string>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the FeatureDatasheetsResponse interface.
34
+ */
35
+ export declare function instanceOfFeatureDatasheetsResponse(value: object): value is FeatureDatasheetsResponse;
36
+ export declare function FeatureDatasheetsResponseFromJSON(json: any): FeatureDatasheetsResponse;
37
+ export declare function FeatureDatasheetsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureDatasheetsResponse;
38
+ export declare function FeatureDatasheetsResponseToJSON(json: any): FeatureDatasheetsResponse;
39
+ export declare function FeatureDatasheetsResponseToJSONTyped(value?: FeatureDatasheetsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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 { FeatureDatasheetEntryFromJSON, FeatureDatasheetEntryToJSON, } from './FeatureDatasheetEntry.js';
15
+ /**
16
+ * Check if a given object implements the FeatureDatasheetsResponse interface.
17
+ */
18
+ export function instanceOfFeatureDatasheetsResponse(value) {
19
+ if (!('datasheets' in value) || value['datasheets'] === undefined)
20
+ return false;
21
+ if (!('notFound' in value) || value['notFound'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function FeatureDatasheetsResponseFromJSON(json) {
26
+ return FeatureDatasheetsResponseFromJSONTyped(json, false);
27
+ }
28
+ export function FeatureDatasheetsResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ datasheets: json['datasheets'].map(FeatureDatasheetEntryFromJSON),
34
+ notFound: json['notFound'],
35
+ };
36
+ }
37
+ export function FeatureDatasheetsResponseToJSON(json) {
38
+ return FeatureDatasheetsResponseToJSONTyped(json, false);
39
+ }
40
+ export function FeatureDatasheetsResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ datasheets: value['datasheets'].map(FeatureDatasheetEntryToJSON),
46
+ notFound: value['notFound'],
47
+ };
48
+ }
@@ -0,0 +1,54 @@
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 HealthResponse
16
+ */
17
+ export interface HealthResponse {
18
+ /**
19
+ *
20
+ * @type {HealthResponseStatusEnum}
21
+ * @memberof HealthResponse
22
+ */
23
+ status: HealthResponseStatusEnum;
24
+ /**
25
+ *
26
+ * @type {HealthResponseDbEnum}
27
+ * @memberof HealthResponse
28
+ */
29
+ db: HealthResponseDbEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const HealthResponseStatusEnum: {
35
+ readonly Ok: "ok";
36
+ readonly Error: "error";
37
+ };
38
+ export type HealthResponseStatusEnum = (typeof HealthResponseStatusEnum)[keyof typeof HealthResponseStatusEnum];
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const HealthResponseDbEnum: {
43
+ readonly Up: "up";
44
+ readonly Down: "down";
45
+ };
46
+ export type HealthResponseDbEnum = (typeof HealthResponseDbEnum)[keyof typeof HealthResponseDbEnum];
47
+ /**
48
+ * Check if a given object implements the HealthResponse interface.
49
+ */
50
+ export declare function instanceOfHealthResponse(value: object): value is HealthResponse;
51
+ export declare function HealthResponseFromJSON(json: any): HealthResponse;
52
+ export declare function HealthResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthResponse;
53
+ export declare function HealthResponseToJSON(json: any): HealthResponse;
54
+ export declare function HealthResponseToJSONTyped(value?: HealthResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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 HealthResponseStatusEnum = {
18
+ Ok: 'ok',
19
+ Error: 'error',
20
+ };
21
+ /**
22
+ * @export
23
+ */
24
+ export const HealthResponseDbEnum = {
25
+ Up: 'up',
26
+ Down: 'down',
27
+ };
28
+ /**
29
+ * Check if a given object implements the HealthResponse interface.
30
+ */
31
+ export function instanceOfHealthResponse(value) {
32
+ if (!('status' in value) || value['status'] === undefined)
33
+ return false;
34
+ if (!('db' in value) || value['db'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ export function HealthResponseFromJSON(json) {
39
+ return HealthResponseFromJSONTyped(json, false);
40
+ }
41
+ export function HealthResponseFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ status: json['status'],
47
+ db: json['db'],
48
+ };
49
+ }
50
+ export function HealthResponseToJSON(json) {
51
+ return HealthResponseToJSONTyped(json, false);
52
+ }
53
+ export function HealthResponseToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ status: value['status'],
59
+ db: value['db'],
60
+ };
61
+ }
@@ -0,0 +1,84 @@
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 JobDetail
16
+ */
17
+ export interface JobDetail {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof JobDetail
22
+ */
23
+ partUuid: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof JobDetail
28
+ */
29
+ jobUuid: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof JobDetail
34
+ */
35
+ productType: string;
36
+ /**
37
+ *
38
+ * @type {JobDetailStatusEnum}
39
+ * @memberof JobDetail
40
+ */
41
+ status: JobDetailStatusEnum;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof JobDetail
46
+ */
47
+ progress: number | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof JobDetail
52
+ */
53
+ error: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof JobDetail
58
+ */
59
+ reportId: string | null;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof JobDetail
64
+ */
65
+ createdAt: Date;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const JobDetailStatusEnum: {
71
+ readonly Queued: "queued";
72
+ readonly Running: "running";
73
+ readonly Succeeded: "succeeded";
74
+ readonly Failed: "failed";
75
+ };
76
+ export type JobDetailStatusEnum = (typeof JobDetailStatusEnum)[keyof typeof JobDetailStatusEnum];
77
+ /**
78
+ * Check if a given object implements the JobDetail interface.
79
+ */
80
+ export declare function instanceOfJobDetail(value: object): value is JobDetail;
81
+ export declare function JobDetailFromJSON(json: any): JobDetail;
82
+ export declare function JobDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDetail;
83
+ export declare function JobDetailToJSON(json: any): JobDetail;
84
+ export declare function JobDetailToJSONTyped(value?: JobDetail | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
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 JobDetailStatusEnum = {
18
+ Queued: 'queued',
19
+ Running: 'running',
20
+ Succeeded: 'succeeded',
21
+ Failed: 'failed',
22
+ };
23
+ /**
24
+ * Check if a given object implements the JobDetail interface.
25
+ */
26
+ export function instanceOfJobDetail(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 (!('error' in value) || value['error'] === undefined)
38
+ return false;
39
+ if (!('reportId' in value) || value['reportId'] === undefined)
40
+ return false;
41
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ export function JobDetailFromJSON(json) {
46
+ return JobDetailFromJSONTyped(json, false);
47
+ }
48
+ export function JobDetailFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ partUuid: json['partUuid'],
54
+ jobUuid: json['jobUuid'],
55
+ productType: json['productType'],
56
+ status: json['status'],
57
+ progress: json['progress'],
58
+ error: json['error'],
59
+ reportId: json['reportId'],
60
+ createdAt: new Date(json['createdAt']),
61
+ };
62
+ }
63
+ export function JobDetailToJSON(json) {
64
+ return JobDetailToJSONTyped(json, false);
65
+ }
66
+ export function JobDetailToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ partUuid: value['partUuid'],
72
+ jobUuid: value['jobUuid'],
73
+ productType: value['productType'],
74
+ status: value['status'],
75
+ progress: value['progress'],
76
+ error: value['error'],
77
+ reportId: value['reportId'],
78
+ createdAt: value['createdAt'].toISOString(),
79
+ };
80
+ }