@bitbybit-dev/cad-cloud-sdk 1.7.0 → 1.8.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.
- package/dist/types/generated.d.ts +1086 -8
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/pipeline-operations.d.ts +923 -107
- package/dist/types/pipeline-operations.d.ts.map +1 -1
- package/dist/types/pipeline-operations.js +1 -1
- package/dist/types/pipeline-operations.js.map +1 -1
- package/dist/types/schema-exports.d.ts +109 -3
- package/dist/types/schema-exports.d.ts.map +1 -1
- package/dist/validation/request-schemas.d.ts +990 -0
- package/dist/validation/request-schemas.d.ts.map +1 -1
- package/dist/validation/request-schemas.js +1179 -0
- package/dist/validation/request-schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/types/generated.ts +1086 -8
- package/src/types/pipeline-operations.ts +944 -107
- package/src/types/schema-exports.ts +109 -3
- package/src/validation/request-schemas.ts +1179 -0
|
@@ -50,6 +50,112 @@ export type DracoCompressionOptions = components["schemas"]["DracoCompressionOpt
|
|
|
50
50
|
export type DragonCupBody = components["schemas"]["DragonCupBody"];
|
|
51
51
|
/** Dragon Cup model parameters - all optional, sane defaults apply */
|
|
52
52
|
export type DragonCupParams = components["schemas"]["DragonCupParams"];
|
|
53
|
+
/** Which of the annotations the STEP file stores a sheet draws, and where: one product's, moved to where one of its instances stands, or the whole model's; and whether views are added for them and the general notes drawn, or both left to another sheet of the set. */
|
|
54
|
+
export type DrawingAnnotatedProduct = components["schemas"]["DrawingAnnotatedProduct"];
|
|
55
|
+
/** What became of the annotations the STEP file stores. */
|
|
56
|
+
export type DrawingAnnotationsUsed = components["schemas"]["DrawingAnnotationsUsed"];
|
|
57
|
+
/** Balloons around one view or one section, each with a leader to a part it names. */
|
|
58
|
+
export type DrawingBalloons = components["schemas"]["DrawingBalloons"];
|
|
59
|
+
/** One dimension drawn on the sheet: its kind, view, text and line, in millimetres on paper. */
|
|
60
|
+
export type DrawingDimensionUsed = components["schemas"]["DrawingDimensionUsed"];
|
|
61
|
+
/** Draw a sheet, or a set of sheets, of the model in an uploaded STEP file: views laid out and aligned, hidden lines, sections with hatches, dimensions, holes, parts lists with balloons, flat patterns, the file's own annotations and a title block. A set is one PDF with a page for each sheet and one DXF and one SVG with the sheets side by side. */
|
|
62
|
+
export type DrawingDrawBody = components["schemas"]["DrawingDrawBody"];
|
|
63
|
+
/** What the exact method was predicted to take on CAD Cloud, given whenever a view was drawn by sight: the drawing kernel predicts the seconds a native build takes, and CAD Cloud's kernel was measured to take 1.2 times as long, so the prediction is given times 1.2. An order of magnitude, not a promise: a single model may take from a tenth to several times it. */
|
|
64
|
+
export type DrawingExactEstimate = components["schemas"]["DrawingExactEstimate"];
|
|
65
|
+
/** A filled triangle, an arrowhead: its three corners as six numbers. */
|
|
66
|
+
export type DrawingFill = components["schemas"]["DrawingFill"];
|
|
67
|
+
/** How a sheet-metal part is unfolded for its flat pattern. */
|
|
68
|
+
export type DrawingFlat = components["schemas"]["DrawingFlat"];
|
|
69
|
+
/** A floor of readability the sheet breaks, and why. */
|
|
70
|
+
export type DrawingFloor = components["schemas"]["DrawingFloor"];
|
|
71
|
+
/** A view frame in the model's space, which is Y-up as a STEP file is read: millimetres, an origin, a normal and a direction. */
|
|
72
|
+
export type DrawingFrame = components["schemas"]["DrawingFrame"];
|
|
73
|
+
/** One group of paths on the sheet: the view it belongs to (-1 for the sheet's own marks), what it is, its layer, line type, line weight in millimetres and how many paths it holds. */
|
|
74
|
+
export type DrawingGroup = components["schemas"]["DrawingGroup"];
|
|
75
|
+
/** The hatch on what a section's plane cuts: ansi31 at 45 degrees, 3 mm apart, when left out. */
|
|
76
|
+
export type DrawingHatch = components["schemas"]["DrawingHatch"];
|
|
77
|
+
/** A hatched cut: the group whose closed paths bound it, the view, the part and the hatch's pattern, angle and spacing. */
|
|
78
|
+
export type DrawingHatchUsed = components["schemas"]["DrawingHatchUsed"];
|
|
79
|
+
/** A hole table alone: the sheet is these rows and nothing else, in columns as a parts list alone stands. A set writes such sheets after a part's sheet whose hole table runs over it. */
|
|
80
|
+
export type DrawingHoleTable = components["schemas"]["DrawingHoleTable"];
|
|
81
|
+
/** One row of a hole table, as texts: the hole's tag, its X and Y from the lower left corner of the part's box in the first view, its size and its depth. A text left out is empty. */
|
|
82
|
+
export type DrawingHoleTableRow = components["schemas"]["DrawingHoleTableRow"];
|
|
83
|
+
/** Read the model in an uploaded STEP file for a drawing without drawing it: its parts and size, the plan with every setting resolved, the layout that plan gives, the sections it could have, the views the file saved ('savedViews'), every part with the name of its product ('parts') and every sheet of the plan written out ('set'). */
|
|
84
|
+
export type DrawingInspectBody = components["schemas"]["DrawingInspectBody"];
|
|
85
|
+
/** Every sheet of a set written out, each with its fingerprint, the set as a plan with a list of sheets (sent back, it draws the same sheets, with the same fingerprints), and every part with the product it is drawn as. */
|
|
86
|
+
export type DrawingInspectedSet = components["schemas"]["DrawingInspectedSet"];
|
|
87
|
+
/** One sheet of the set an inspection writes out: as the set will draw it, with the fingerprint the sheet will have when the plan of the set is drawn. */
|
|
88
|
+
export type DrawingInspectedSheet = components["schemas"]["DrawingInspectedSheet"];
|
|
89
|
+
/** The model as a drawing would read it, without drawing: how many parts it holds, its size, the plan of the first sheet with every setting resolved, the layout that plan gives, the scale each standard sheet would allow, sections the model could be cut by, the views the file saved, every part with its name, and every sheet of the plan written out, ready to edit and send to the draw route. A report delivered as a result always has ok true: when the kernel refuses a run, the task fails with the kernel's reason instead. */
|
|
90
|
+
export type DrawingInspection = components["schemas"]["DrawingInspection"];
|
|
91
|
+
/** A radius callout or a balloon of this sheet's view that another sheet of the set carries: left out here without a warning. */
|
|
92
|
+
export type DrawingLeftMark = components["schemas"]["DrawingLeftMark"];
|
|
93
|
+
/** One part of the model: its number, as a plan's parts name it; the name of the product the set draws it as, as the sheets of a set name it ('Part n' for a part the file left unnamed, the uploaded file's name for a file whose root the file left unnamed; an unnamed product holding a single part is merged into the product that places it); the product, by the number a sheet's product takes; and which of the product's instances it belongs to, counted from 0 in the order of the model's structure, depth first, as a plan's annotations count them. A part the set draws under no product, such as loose curves beside solids, has an empty name and neither product nor instance. */
|
|
94
|
+
export type DrawingModelPart = components["schemas"]["DrawingModelPart"];
|
|
95
|
+
/** Where the model the sheets were drawn from came from, and whether this task kept it. */
|
|
96
|
+
export type DrawingModelRun = components["schemas"]["DrawingModelRun"];
|
|
97
|
+
/** The sheets of the set to draw, by their index in it counting from 0, as the inspection's 'set' and a drawn set's report list them; the others are not drawn. Each sheet is drawn and written as it is in the whole set, its title block numbering it among all of them (SHEET 2 / 5) and its DXF and SVG in the unit the whole set's are, that of its first sheet, and the files hold only the sheets named, in the set's order, laid out as a set of their own; each sheet of the report gives its 'index' and the report gives 'setSheets', how many the whole set has. An index past the set's last sheet fails the task. Left out, every sheet is drawn. With the 'fingerprint' every sheet of an inspection's set and of a drawing carries, an app that keeps the sheets it drew asks only for those whose fingerprint it does not hold. */
|
|
98
|
+
export type DrawingOnlySheets = components["schemas"]["DrawingOnlySheets"];
|
|
99
|
+
/** Which formats the drawing sheet is written in. */
|
|
100
|
+
export type DrawingOutputOptions = components["schemas"]["DrawingOutputOptions"];
|
|
101
|
+
/** A parts list drawn above the title block. */
|
|
102
|
+
export type DrawingPartsList = components["schemas"]["DrawingPartsList"];
|
|
103
|
+
/** One row of a parts list: as texts, the item number, the name, the quantity and the sheet the part is drawn on, and the number of the product it lists. */
|
|
104
|
+
export type DrawingPartsListRow = components["schemas"]["DrawingPartsListRow"];
|
|
105
|
+
/** What to draw: one sheet, or a set of sheets. Every setting has a default, so an empty plan draws a default sheet; the inspect route returns the plan with every setting spelled out and every sheet of a set written out, ready to edit and send to the draw route. A request body takes at most 128 KB, so a set written out past that, of a model with hundreds of sheets or thousands of parts beneath every level, is uploaded as a JSON file and named in 'planFileId', or sent as its rule. */
|
|
106
|
+
export type DrawingPlan = components["schemas"]["DrawingPlan"];
|
|
107
|
+
/** How the sheet reads, measured on paper: the height of its own text, the smallest annotation letter, how full the frame is, each view's ink, and the floors it breaks with the reason. A setting the plan states is kept even where it breaks a floor, and the floor is named here. */
|
|
108
|
+
export type DrawingQuality = components["schemas"]["DrawingQuality"];
|
|
109
|
+
/** The drawing kernel's own answer when it refuses the plan or cannot draw. No result carries it: the API fails the task with its error instead. */
|
|
110
|
+
export type DrawingReportError = components["schemas"]["DrawingReportError"];
|
|
111
|
+
/** The drawing kernel's own answer when it refuses the plan or cannot draw. No result carries it: the API fails the task with its error instead. */
|
|
112
|
+
export type DrawingReportErrorOutput = components["schemas"]["DrawingReportErrorOutput"];
|
|
113
|
+
/** One row of an assembly's parts list: its item number from 1, the product's name, how many go directly into the assembly, the product, the index of the sheet that shows it (-1 when none does) and the parts of all its instances. */
|
|
114
|
+
export type DrawingResolvedRow = components["schemas"]["DrawingResolvedRow"];
|
|
115
|
+
/** One row of the revision table. */
|
|
116
|
+
export type DrawingRevision = components["schemas"]["DrawingRevision"];
|
|
117
|
+
/** How the drawing was made: the hidden-line method, the method each view was drawn by and the rule that chose it, the seconds each view took and, when a view was drawn by sight, what the exact method would have taken. */
|
|
118
|
+
export type DrawingRun = components["schemas"]["DrawingRun"];
|
|
119
|
+
/** A view the STEP file saved (an AP242 model view): its name, which a plan's view gives as 'saved', and how many of the file's annotations it shows. */
|
|
120
|
+
export type DrawingSavedView = components["schemas"]["DrawingSavedView"];
|
|
121
|
+
/** A drawing scale, numerator to denominator: 1 to 50 is { numerator: 1, denominator: 50 }. Between 1:1000 and 100:1. */
|
|
122
|
+
export type DrawingScale = components["schemas"]["DrawingScale"];
|
|
123
|
+
/** One section through the model. */
|
|
124
|
+
export type DrawingSection = components["schemas"]["DrawingSection"];
|
|
125
|
+
/** A section the model could be cut by: what it runs through, its frame, the view that sees it edge-on (-1 when none does), how many parts it cuts and the area cut. Adding its frame to a plan's sections draws it. */
|
|
126
|
+
export type DrawingSectionCandidate = components["schemas"]["DrawingSectionCandidate"];
|
|
127
|
+
/** A part as the set draws it: its number, the product it is drawn as and that product's name as the sheets give it, and which of the product's instances it belongs to, counted from 0 in the order of the model's structure, depth first. */
|
|
128
|
+
export type DrawingSetPart = components["schemas"]["DrawingSetPart"];
|
|
129
|
+
/** What was drawn: the set as a plan with every sheet written out (sending it back draws the same sheets), the space the sheets take side by side, and each sheet with its place and its report. A PDF has the sheets as pages in this order. Warnings name their sheet when there are several. */
|
|
130
|
+
export type DrawingSetReport = components["schemas"]["DrawingSetReport"];
|
|
131
|
+
/** Sheets made from the model's product structure, each product once, its instances counted as its quantity. The plan's sections are drawn on the overview sheet alone and every sheet draws a product of the model, so a plan with a rule takes no balloons around a section and no parts list or hole table alone. */
|
|
132
|
+
export type DrawingSetRule = components["schemas"]["DrawingSetRule"];
|
|
133
|
+
/** One sheet of a set: the settings it states replace the plan's, except sheet and titleBlock, whose fields are laid over the plan's one by one. */
|
|
134
|
+
export type DrawingSetSheet = components["schemas"]["DrawingSetSheet"];
|
|
135
|
+
/** What a sheet shares with the other sheets of its part. A resolved set writes it into the pages of a sheet it paginated, a continuation sheet for each view that did not fit or would not read beside the others, for the callouts and balloons the first sheet had no room for, and for general notes, so the set, sent back, draws the same sheets. Not given on a parts list or a hole table alone. */
|
|
136
|
+
export type DrawingShared = components["schemas"]["DrawingShared"];
|
|
137
|
+
/** A radius callout or a balloon another sheet had no room for, drawn on this sheet with a leader to the point it marks. */
|
|
138
|
+
export type DrawingSharedMark = components["schemas"]["DrawingSharedMark"];
|
|
139
|
+
/** The sheet a drawing is laid out on. */
|
|
140
|
+
export type DrawingSheet = components["schemas"]["DrawingSheet"];
|
|
141
|
+
/** The sheet's fingerprint, 64 hexadecimal digits: a SHA-256 over all a sheet is drawn from - the checksum of the STEP file and the unit it is read in, how its parts are read, the sheet's plan as the drawing kernel takes it, the file's annotations it is drawn with, the build of the drawing kernel and the build of the CAD Cloud server that reads the file and writes the sheet's files. Drawing is deterministic: a sheet with the same fingerprint is drawn again the same, written byte for byte as before in its files, with the same report but for 'run', which says how long it took. A deploy of the server gives every sheet a new fingerprint. An app can keep a sheet it drew under its fingerprint, and a sheet whose fingerprint changed is stale. */
|
|
142
|
+
export type DrawingSheetFingerprint = components["schemas"]["DrawingSheetFingerprint"];
|
|
143
|
+
/** A standard sheet, whether the plan's views fit it, and the scale an automatic scale would take on it. */
|
|
144
|
+
export type DrawingSheetFit = components["schemas"]["DrawingSheetFit"];
|
|
145
|
+
/** The sheet as drawn: its size in millimetres, the frame inside its border, the unit and places its lengths are printed in, the scale used and the series it comes from. */
|
|
146
|
+
export type DrawingSheetUsed = components["schemas"]["DrawingSheetUsed"];
|
|
147
|
+
/** One text on the sheet: where its baseline starts, its height in millimetres, how far it was narrowed to fit and which end it is anchored by. */
|
|
148
|
+
export type DrawingText = components["schemas"]["DrawingText"];
|
|
149
|
+
/** The fields of the title block. Every field is empty unless given. */
|
|
150
|
+
export type DrawingTitleBlock = components["schemas"]["DrawingTitleBlock"];
|
|
151
|
+
/** One view of the model on the sheet. */
|
|
152
|
+
export type DrawingView = components["schemas"]["DrawingView"];
|
|
153
|
+
/** How one view reads: its smallest annotation letter, how much of it is ink, and what was done to a view too dense to read. */
|
|
154
|
+
export type DrawingViewQuality = components["schemas"]["DrawingViewQuality"];
|
|
155
|
+
/** One view as drawn: its place on the sheet, its scale and whether it is in line with the base view. */
|
|
156
|
+
export type DrawingViewUsed = components["schemas"]["DrawingViewUsed"];
|
|
157
|
+
/** One sheet as drawn: what the set says of it, where it lies beside the others, its fingerprint and its report. */
|
|
158
|
+
export type DrawnSetSheet = components["schemas"]["DrawnSetSheet"];
|
|
53
159
|
/** Structured error information with machine-readable code and optional debugging context */
|
|
54
160
|
export type ErrorDetail = components["schemas"]["ErrorDetail"];
|
|
55
161
|
/** Standard error envelope */
|
|
@@ -136,9 +242,9 @@ export type NestingOutlineSpline = components["schemas"]["NestingOutlineSpline"]
|
|
|
136
242
|
export type NestingOutlineSplineOutput = components["schemas"]["NestingOutlineSplineOutput"];
|
|
137
243
|
/** The cut paths of every placed copy in the frame of its sheet: x along the sheet's width and y along its height from the corner, as the report's placement boxes are; the 'outlines' result of a nest. */
|
|
138
244
|
export type NestingOutlines = components["schemas"]["NestingOutlines"];
|
|
139
|
-
/** The formats of the nested sheets: 'step' or 'stpz' (each sheet one part, holding its placed parts and its outline), 'gltf', 'decomposed-mesh' (the placed parts, triangulated), 'dxf' (an AutoCAD 2000 drawing in millimetres: the sheets' outlines on layer SHEETS and the parts' cut paths on layer PARTS, every arc, ellipse and spline exact), 'svg' (the same drawing as an SVG file in
|
|
245
|
+
/** The formats of the nested sheets: 'step' or 'stpz' (each sheet one part, holding its placed parts and its outline), 'gltf', 'decomposed-mesh' (the placed parts, triangulated), 'dxf' (an AutoCAD 2000 drawing in millimetres, or in the unit 'outputs.unit' names: the sheets' outlines on layer SHEETS and the parts' cut paths on layer PARTS, every arc, ellipse and spline exact), 'svg' (the same drawing as an SVG file in the same unit, each layer a group), or 'outlines' (the same cut paths as JSON, each copy in the frame of its sheet and named by its placement, for drawing the layout). A 'dxf' or 'svg' too large to write is left out while every other format is still written, and the task's metadata says why under 'outputsLeftOut' (format to reason); a caveat about a cut file that was written, such as a part whose faces could not be joined into one outline, is given under 'outputNotes' (format to note). */
|
|
140
246
|
export type NestingOutputFormat = components["schemas"]["NestingOutputFormat"];
|
|
141
|
-
/** Which formats the nested sheets are written in,
|
|
247
|
+
/** Which formats the nested sheets are written in, their mesh quality, and the unit of the DXF and SVG cut files. */
|
|
142
248
|
export type NestingOutputOptions = components["schemas"]["NestingOutputOptions"];
|
|
143
249
|
/** How one part was read, and how many of its copies were placed. */
|
|
144
250
|
export type NestingPartEntry = components["schemas"]["NestingPartEntry"];
|
|
@@ -236,7 +342,7 @@ export type TaskResultsResponse = components["schemas"]["TaskResultsResponse"];
|
|
|
236
342
|
export type TaskStatus = components["schemas"]["TaskStatus"];
|
|
237
343
|
/** Flatten every constant-thickness sheet-metal solid in an uploaded STEP file and nest the flat patterns on sheets in the same call: the per-solid unfold report, the nesting report and the nested sheets, without writing the flats to a file and reading them back. */
|
|
238
344
|
export type UnfoldAndNestBody = components["schemas"]["UnfoldAndNestBody"];
|
|
239
|
-
/** Which formats the nested sheets and the flat patterns are written in,
|
|
345
|
+
/** Which formats the nested sheets and the flat patterns are written in, their mesh quality, and the unit of the DXF and SVG cut files. */
|
|
240
346
|
export type UnfoldAndNestOutputOptions = components["schemas"]["UnfoldAndNestOutputOptions"];
|
|
241
347
|
/** One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
|
|
242
348
|
export type UnfoldBend = components["schemas"]["UnfoldBend"];
|