@shapediver/api.geometry-api-dto-v1
Advanced tools
Comparing version 1.14.0 to 1.14.1
@@ -1,2 +0,1 @@ | ||
/** Basic group information of a parameter, export or output */ | ||
export interface ShapeDiverCommonsGroup { | ||
@@ -3,0 +2,0 @@ id: string; |
@@ -1,2 +0,1 @@ | ||
/** Type of a ticket */ | ||
export declare enum ShapeDiverRequestTicketType { | ||
@@ -6,18 +5,10 @@ BACKEND = "backend", | ||
} | ||
/** Body of a ticket request */ | ||
export interface ShapeDiverRequestTicket { | ||
/** which type should the ticket */ | ||
type: ShapeDiverRequestTicketType; | ||
/** timestamp until which the ticket should be valid, must be 14 characters long, format YYYYMMDDhhmmss */ | ||
until: string; | ||
/** list of domains (origins) this ticket should be limited to, may be empty */ | ||
accessdomains?: string[]; | ||
/** Should this ticket allow public access (ignore accessdomains)? */ | ||
pub: boolean; | ||
/** Should this ticket provide access to model authoring (change configuration)? */ | ||
author?: boolean; | ||
/** Does this ticket identify the model via its secondary id? */ | ||
use_id2?: boolean; | ||
} | ||
/** Data of single model parameter of a model statistics request */ | ||
export interface ShapeDiverRequestModelStatisticsPart { | ||
@@ -29,11 +20,8 @@ modelid: string | string[]; | ||
} | ||
/** Body of a model statistics request */ | ||
export type ShapeDiverRequestModelStatistics = { | ||
parameters: ShapeDiverRequestModelStatisticsPart[]; | ||
}; | ||
/** Body of an configure request */ | ||
export type ShapeDiverRequestConfigure = { | ||
[key: string]: any; | ||
}; | ||
/** log message level for log requests */ | ||
export declare enum ShapeDiverRequestLogMessageLevel { | ||
@@ -44,3 +32,2 @@ INFO = 0, | ||
} | ||
/** Body of a log message request */ | ||
export interface ShapeDiverRequestLogMessage { | ||
@@ -50,3 +37,2 @@ level: ShapeDiverRequestLogMessageLevel; | ||
} | ||
/** Query values of a gltf upload request */ | ||
export declare enum ShapeDiverRequestGltfUploadQueryConversion { | ||
@@ -53,0 +39,0 @@ NONE = "none", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ShapeDiverRequestGltfUploadQueryConversion = exports.ShapeDiverRequestLogMessageLevel = exports.ShapeDiverRequestTicketType = void 0; | ||
/** Type of a ticket */ | ||
var ShapeDiverRequestTicketType; | ||
@@ -10,3 +9,2 @@ (function (ShapeDiverRequestTicketType) { | ||
})(ShapeDiverRequestTicketType || (exports.ShapeDiverRequestTicketType = ShapeDiverRequestTicketType = {})); | ||
/** log message level for log requests */ | ||
var ShapeDiverRequestLogMessageLevel; | ||
@@ -18,3 +16,2 @@ (function (ShapeDiverRequestLogMessageLevel) { | ||
})(ShapeDiverRequestLogMessageLevel || (exports.ShapeDiverRequestLogMessageLevel = ShapeDiverRequestLogMessageLevel = {})); | ||
/** Query values of a gltf upload request */ | ||
var ShapeDiverRequestGltfUploadQueryConversion; | ||
@@ -21,0 +18,0 @@ (function (ShapeDiverRequestGltfUploadQueryConversion) { |
import { ShapeDiverCommonsGroup } from '../commons/SdCommonsGroup'; | ||
/** | ||
* Body of a customization request. | ||
* | ||
* @example | ||
* { | ||
* <parameter id> : <basic parameter>, | ||
* <parameter id> : <s-type parameter> | ||
* } | ||
*/ | ||
export type ShapeDiverRequestCustomization = { | ||
[key: string]: ShapeDiverRequestParameterBasic | ShapeDiverRequestParameterSType; | ||
}; | ||
/** | ||
* Definition of a basic Shape Diver parameter. | ||
* | ||
* @example | ||
* "0014bb77-e57c-4be3-92eb-24b59c41ee43" // File | ||
* "0x11223344" // Color | ||
* "0001-01-01T23:55:00" // Time | ||
*/ | ||
export type ShapeDiverRequestParameterBasic = string | number | boolean; | ||
/** Definition of a Shape Diver s-type parameter */ | ||
export interface ShapeDiverRequestParameterSType { | ||
/** | ||
* Optional embedded value. | ||
* If this is set the asset is ignored | ||
*/ | ||
value?: string; | ||
/** Reference to the asset to be used */ | ||
asset?: { | ||
/** String id of the asset */ | ||
id: string; | ||
/** | ||
* Describing which chunk to use, instead of the default one, which | ||
* would get chosen based on parameter id and name. | ||
*/ | ||
chunk?: { | ||
/** Id of the chunk to be used */ | ||
id?: string; | ||
/** Name attribute of the chunk to be used */ | ||
name?: string; | ||
@@ -46,3 +16,2 @@ }; | ||
} | ||
/** Body of an export request */ | ||
export interface ShapeDiverRequestExport { | ||
@@ -56,14 +25,5 @@ parameters: ShapeDiverRequestCustomization; | ||
} | ||
/** | ||
* Body of an export or output cache request. | ||
* | ||
* @example | ||
* { | ||
* <export or output id> : <version id> | ||
* } | ||
*/ | ||
export type ShapeDiverRequestCache = { | ||
[key: string]: string; | ||
}; | ||
/** Definition of an export parameter */ | ||
export type ShapeDiverRequestExportDefinition = { | ||
@@ -74,20 +34,10 @@ [exportId: string]: ShapeDiverRequestExportDefinitionPart; | ||
[exportId: string]: { | ||
/** Parameter name to display instead of name */ | ||
displayname?: string; | ||
/** | ||
* Group of an export. | ||
* Set to `null` to remove the export from the currently assigned group. | ||
*/ | ||
group?: ShapeDiverRequestExportDefinitionGroup | null; | ||
/** Controls whether the parameter should be hidden in the UI */ | ||
hidden?: boolean; | ||
/** Ordering of the export in client applications */ | ||
order?: number; | ||
/** Description that is shown as a tooltip in the clients */ | ||
tooltip?: string; | ||
}; | ||
}; | ||
/** Group information of an export definition */ | ||
export type ShapeDiverRequestExportDefinitionGroup = ShapeDiverCommonsGroup; | ||
/** Definition of an output parameter */ | ||
export type ShapeDiverRequestOutputDefinition = { | ||
@@ -97,36 +47,15 @@ [outputId: string]: ShapeDiverRequestOutputDefinitionPart; | ||
export type ShapeDiverRequestOutputDefinitionPart = { | ||
/** Parameter name to display instead of name */ | ||
displayname?: string; | ||
/** | ||
* Group of an output. | ||
* Set to `null` to remove the output from the currently assigned group. | ||
*/ | ||
group?: ShapeDiverRequestOutputDefinitionGroup | null; | ||
/** Controls whether the parameter should be hidden in the UI */ | ||
hidden?: boolean; | ||
/** Ordering of the output in client applications */ | ||
order?: number; | ||
/** Description that is shown as a tooltip in the clients */ | ||
tooltip?: string; | ||
/** | ||
* The chunk definitions of the sdTF file that is generated by the output. | ||
* If specified, all existing sdTF chunks of the output must be given. | ||
* The order of the given chunk items determines the order in that the chunks will be shown in the UI. | ||
*/ | ||
chunks?: ShapeDiverRequestOutputDefinitionChunk[]; | ||
}; | ||
/** Group information of an output definition */ | ||
export type ShapeDiverRequestOutputDefinitionGroup = ShapeDiverCommonsGroup; | ||
/** Definition of a single "chunk" of data in the sdTF file that is generated by the output component. */ | ||
export interface ShapeDiverRequestOutputDefinitionChunk { | ||
/** ID of the chunk. */ | ||
id: string; | ||
/** | ||
* Custom name to display instead of the chunk {@link name}. | ||
* This value can be unset by specifying an empty string. | ||
*/ | ||
displayname?: string; | ||
/** Controls whether the chunk should be hidden in the UI. */ | ||
hidden?: boolean; | ||
} | ||
//# sourceMappingURL=SdRequestDtoExportOutput.d.ts.map |
import { ShapeDiverCommonsGroup } from '../commons/SdCommonsGroup'; | ||
/** | ||
* Body of a template request | ||
*/ | ||
export interface ShapeDiverRequestModel { | ||
template: ShapeDiverRequestModelTemplate; | ||
} | ||
/** | ||
* Data for a template request | ||
**/ | ||
export interface ShapeDiverRequestModelTemplate { | ||
data: ShapeDiverRequestModelTemplateData[]; | ||
} | ||
/** | ||
* Properties of a model request | ||
*/ | ||
export declare enum ShapeDiverRequestModelTemplateDataName { | ||
@@ -49,5 +40,2 @@ ACCESSDOMAINS = "accessdomains", | ||
} | ||
/** | ||
* data objects for a template request | ||
*/ | ||
export interface ShapeDiverRequestModelTemplateData { | ||
@@ -57,3 +45,2 @@ name: ShapeDiverRequestModelTemplateDataName; | ||
} | ||
/** supported file types for models */ | ||
export declare enum ShapeDiverRequestModelFiletype { | ||
@@ -63,3 +50,2 @@ GRASSHOPPER_BINARY = "gh", | ||
} | ||
/** level of trust granted for a model */ | ||
export declare enum ShapeDiverRequestModelTrustlevel { | ||
@@ -70,3 +56,2 @@ UNDEFINED = "", | ||
} | ||
/** Definition of a model parameter */ | ||
export type ShapeDiverRequestParameterDefinition = { | ||
@@ -76,20 +61,10 @@ [paramId: string]: ShapeDiverRequestParameterDefinitionPart; | ||
export type ShapeDiverRequestParameterDefinitionPart = { | ||
/** Parameter name to display instead of name */ | ||
displayname?: string; | ||
/** | ||
* Group of a parameter. | ||
* Set to `null` to remove the parameter from the currently assigned group. | ||
*/ | ||
group?: ShapeDiverRequestParameterDefinitionGroup | null; | ||
/** Controls whether the parameter should be hidden in the UI */ | ||
hidden?: boolean; | ||
/** Ordering of the parameter in client applications */ | ||
order?: number; | ||
/** Description that is shown as a tooltip in the clients */ | ||
tooltip?: string; | ||
/** Holds parameter-type specific information. */ | ||
settings?: Record<string, any>; | ||
}; | ||
/** Group information of a parameter */ | ||
export type ShapeDiverRequestParameterDefinitionGroup = ShapeDiverCommonsGroup; | ||
//# sourceMappingURL=SdRequestDtoModel.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ShapeDiverRequestModelTrustlevel = exports.ShapeDiverRequestModelFiletype = exports.ShapeDiverRequestModelTemplateDataName = void 0; | ||
/** | ||
* Properties of a model request | ||
*/ | ||
var ShapeDiverRequestModelTemplateDataName; | ||
@@ -40,3 +37,2 @@ (function (ShapeDiverRequestModelTemplateDataName) { | ||
})(ShapeDiverRequestModelTemplateDataName || (exports.ShapeDiverRequestModelTemplateDataName = ShapeDiverRequestModelTemplateDataName = {})); | ||
/** supported file types for models */ | ||
var ShapeDiverRequestModelFiletype; | ||
@@ -47,3 +43,2 @@ (function (ShapeDiverRequestModelFiletype) { | ||
})(ShapeDiverRequestModelFiletype || (exports.ShapeDiverRequestModelFiletype = ShapeDiverRequestModelFiletype = {})); | ||
/** level of trust granted for a model */ | ||
var ShapeDiverRequestModelTrustlevel; | ||
@@ -50,0 +45,0 @@ (function (ShapeDiverRequestModelTrustlevel) { |
@@ -1,41 +0,16 @@ | ||
/** | ||
* Body of a file upload request. | ||
* | ||
* @example | ||
* { | ||
* <file parameter id> : ShapeDiverRequestFileUploadPart | ||
* } | ||
*/ | ||
export type ShapeDiverRequestFileUpload = { | ||
[paramId: string]: ShapeDiverRequestFileUploadPart; | ||
}; | ||
/** Data for a single file parameter part of a file upload request */ | ||
export interface ShapeDiverRequestFileUploadPart { | ||
/** | ||
* Name of the file to be uploaded. | ||
* | ||
* When this property is set, then the actual file upload request must contain a | ||
* Content-Disposition HTTP header with the value \"attachment; filename=<i>{filename}<i>.\". | ||
* Otherwise, a signature mismatch will occur. | ||
*/ | ||
filename?: string; | ||
/** Content-Type (MIME type) of the file to be uploaded */ | ||
format: string; | ||
/** size of the file to be uploaded */ | ||
size: number; | ||
} | ||
/** Body of a sdtf upload request */ | ||
export type ShapeDiverRequestSdtfUpload = ShapeDiverRequestSdtfUploadPart[]; | ||
/** Data for a single file parameter part of a sdtf upload request */ | ||
export interface ShapeDiverRequestSdtfUploadPart { | ||
/** encoding of the sdtf to be uploaded */ | ||
content_encoding?: string; | ||
/** size of the sdtf to be uploaded */ | ||
content_length: number; | ||
/** content-type of the sdtf to be uploaded */ | ||
content_type: ShapeDiverRequestSdtfUploadPartType; | ||
/** namespace the asset shall be created in */ | ||
namespace: string; | ||
} | ||
/** Content-Type (MIME type) of the sdtf to be uploaded */ | ||
export declare enum ShapeDiverRequestSdtfUploadPartType { | ||
@@ -42,0 +17,0 @@ MODEL_SDTF = "model/vnd.sdtf" |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ShapeDiverRequestSdtfUploadPartType = void 0; | ||
/** Content-Type (MIME type) of the sdtf to be uploaded */ | ||
var ShapeDiverRequestSdtfUploadPartType; | ||
@@ -6,0 +5,0 @@ (function (ShapeDiverRequestSdtfUploadPartType) { |
@@ -6,171 +6,64 @@ import { ShapeDiverCommonsGroup } from '../commons/SdCommonsGroup'; | ||
import { ShapeDiverResponseOutput, ShapeDiverResponseOutputDefinition } from './SdResponseDtoOutput'; | ||
/** | ||
* ShapeDiver API response | ||
*/ | ||
export type ShapeDiverResponseDto = ShapeDiverResponseBase | ShapeDiverModelConfig | ShapeDiverResponseModelStatistics; | ||
export interface ShapeDiverResponseBase { | ||
/** | ||
* Version of the response format | ||
*/ | ||
version: string; | ||
/** | ||
* Contains urgent information about the system | ||
*/ | ||
message?: string; | ||
/** | ||
* Model object | ||
*/ | ||
collection?: ShapeDiverResponseCollection; | ||
/** Actions the client may take */ | ||
actions?: ShapeDiverResponseAction[]; | ||
/** Request templates for actions */ | ||
templates?: ShapeDiverResponseTemplate[]; | ||
/** | ||
* Viewer config object | ||
* | ||
* Does NOT need to be typed for now | ||
*/ | ||
config?: object; | ||
/** The current version of the viewer settings */ | ||
viewerSettingsVersion?: string; | ||
/** Name of the model */ | ||
name?: string; | ||
/** Parameter definitions, not contained with every response */ | ||
parameters?: { | ||
[id: string]: ShapeDiverResponseParameter; | ||
}; | ||
/** Information about Grasshopper plugins */ | ||
plugins?: ShapeDiverResponsePlugins; | ||
/** | ||
* Outputs of the model for the given parameter values | ||
* | ||
* output definition json objects (multiple ones, one for each output), external format | ||
* see https://docs.google.com/document/d/1SCm3vgm4PYs8xRjSX257UgnAR7WM7jMW2iVcktwXqAI/edit#heading=h.trmid7acsxx | ||
*/ | ||
outputs?: { | ||
[id: string]: ShapeDiverResponseOutput | ShapeDiverResponseOutputDefinition; | ||
}; | ||
/** | ||
* Exports of the model for the given parameter values | ||
* | ||
* export definition json objects (multiple ones, one for each export), external format | ||
* see https://docs.google.com/document/d/1SCm3vgm4PYs8xRjSX257UgnAR7WM7jMW2iVcktwXqAI/edit#heading=h.9vab10d6psiy | ||
*/ | ||
exports?: { | ||
[id: string]: ShapeDiverResponseExport | ShapeDiverResponseExportDefinition; | ||
}; | ||
/** glTF information */ | ||
gltf?: ShapeDiverResponseGltfUpload; | ||
/** Model cleanup information */ | ||
cleanup?: ShapeDiverResponseModelCleanupProcess[]; | ||
} | ||
/** Definition of a ShapeDiver model config object */ | ||
export type ShapeDiverModelConfig = object; | ||
/** | ||
* Defines the actions to be taken on the response data | ||
*/ | ||
export interface ShapeDiverResponseAction { | ||
/** | ||
* Name of the action, e.g. customize, close, default, etc | ||
*/ | ||
name: string; | ||
/** | ||
* Title of the action, e.g. 'Customize model', 'Close session', etc | ||
*/ | ||
title: string; | ||
/** | ||
* Hyperlink to make the request to | ||
*/ | ||
href: string; | ||
/** | ||
* HTTP method to use | ||
*/ | ||
method: string; | ||
/** | ||
* Template for the request body, references into the 'templates' array of the response | ||
* e.g. 'customize-request' | ||
*/ | ||
template?: string; | ||
} | ||
/** | ||
* Uses parameter definition to create template for default customize request | ||
*/ | ||
export interface ShapeDiverResponseTemplate { | ||
/** | ||
* Name of the template, e.g. 'customize-request' | ||
*/ | ||
name: string; | ||
/** | ||
* Title of the template, e.g. 'Template for model customization request' | ||
*/ | ||
title: string; | ||
/** | ||
* Template for the request body | ||
*/ | ||
data: object; | ||
} | ||
/** definition of a parameter of a ShapeDiver Model */ | ||
export interface ShapeDiverResponseParameter { | ||
/** unique id of parameter, stays constant each time a model gets uploaded */ | ||
id: string; | ||
/** choice of parameter values for types STRINGLIST */ | ||
choices?: string[]; | ||
/** number of decimal places for numeric types */ | ||
decimalplaces?: number; | ||
/** default value of parameter, stringified */ | ||
defval: string; | ||
/** optional expression to be applied to value for visualisation */ | ||
expression?: string; | ||
/** list of file formats (content types) supported, used for type FILE */ | ||
format?: string[]; | ||
/** minimum value (stringified) for numeric types */ | ||
min?: number; | ||
/** | ||
* maximum value (stringified) for numeric types, | ||
* maximum string length for type STRING | ||
* maximum file size allowed (stringified) for type FILE | ||
*/ | ||
max?: number; | ||
/** minimum u value for two dimensional domain parameters */ | ||
umin?: number; | ||
/** maximum u value for two dimensional domain parameters */ | ||
umax?: number; | ||
/** minimum v value for two dimensional domain parameters */ | ||
vmin?: number; | ||
/** maximum v value for two dimensional domain parameters */ | ||
vmax?: number; | ||
/** step size used for domain parameters */ | ||
interval?: number; | ||
/** name of the parameter */ | ||
name: string; | ||
/** type of parameter */ | ||
type: ShapeDiverResponseParameterType; | ||
/** | ||
* Optional preferred visualization for parameters of type | ||
* {@link ShapeDiverResponseParameterType.FILE} and | ||
* {@link ShapeDiverResponseParameterType.STRINGLIST}. | ||
*/ | ||
visualization?: ShapeDiverResponseParameterVisualization; | ||
/** structure of a parameter */ | ||
structure?: ShapeDiverResponseParameterStructure; | ||
/** group of a parameter */ | ||
group?: ShapeDiverResponseParameterGroup; | ||
/** technical hint for the UI implementation */ | ||
hint?: string; | ||
/** ordering of the parameter in client applications */ | ||
order?: number; | ||
/** description that is shown as a tooltip in the clients */ | ||
tooltip?: string; | ||
/** parameter name to display instead of name */ | ||
displayname?: string; | ||
/** controls whether the parameter should be hidden in the UI */ | ||
hidden: boolean; | ||
/** Holds parameter-type specific information. */ | ||
settings?: Record<string, any>; | ||
} | ||
/** | ||
* Type of parameter. | ||
* | ||
* All types starting with 's' are s-type parameters while the others are basic parameter types. | ||
*/ | ||
export declare enum ShapeDiverResponseParameterType { | ||
@@ -212,7 +105,2 @@ S_BITMAP = "sBitmap", | ||
} | ||
/** | ||
* Optional preferred visualization for parameters of type | ||
* {@link ShapeDiverResponseParameterType.FILE} and | ||
* {@link ShapeDiverResponseParameterType.STRINGLIST}. | ||
*/ | ||
export declare enum ShapeDiverResponseParameterVisualization { | ||
@@ -235,3 +123,2 @@ UNKNOWN = "unknown", | ||
} | ||
/** Structural information of a parameter */ | ||
export declare enum ShapeDiverResponseParameterStructure { | ||
@@ -242,31 +129,16 @@ ITEM = "item", | ||
} | ||
/** Group information of a parameter */ | ||
export type ShapeDiverResponseParameterGroup = ShapeDiverCommonsGroup; | ||
/** Information about Grasshopper plugins. */ | ||
export interface ShapeDiverResponsePlugins { | ||
/** Libraries used by the model. */ | ||
libraries?: ShapeDiverResponsePluginsLibrary[]; | ||
} | ||
/** Definition of a model library. */ | ||
export interface ShapeDiverResponsePluginsLibrary { | ||
/** Library ID. */ | ||
id: string; | ||
/** Library version. */ | ||
version: string; | ||
/** Library name. */ | ||
name: string; | ||
/** Library author. */ | ||
author: string; | ||
/** Assembly name (not present in Rhino 5). */ | ||
assemblyFullName?: string; | ||
/** Assembly version (not present in Rhino 5). */ | ||
assemblyVersion?: string; | ||
} | ||
/** | ||
* Result part for the response to an upload request for "file" parameters | ||
*/ | ||
export interface ShapeDiverResponseUploadPart { | ||
/** id of the file to be uploaded */ | ||
id: string; | ||
/** href the file should be uploaded to (typically a time-limited pre-signed url) */ | ||
href: string; | ||
@@ -278,26 +150,12 @@ } | ||
export type ShapeDiverResponseSdtfUpload = ShapeDiverResponseUploadPart[]; | ||
/** | ||
* Information about uploaded glTF object | ||
*/ | ||
export interface ShapeDiverResponseGltfUpload { | ||
/** The URL to download the glTF file */ | ||
href: string; | ||
/** | ||
* Contains the unique ID of the uploaded scene. | ||
* Only present for uploads with the conversion type 'scene'. | ||
*/ | ||
sceneId?: string; | ||
} | ||
/** Information about a model cleanup process */ | ||
export interface ShapeDiverResponseModelCleanupProcess { | ||
/** Type of the model cleanup process */ | ||
type: ShapeDiverResponseModelCleanupProcessType; | ||
/** The timestamp when the deletion job has been enqueued (format 'YYYYMMDDhhmmssZZZ') */ | ||
timestamp_enqueued: string; | ||
/** The total number of items of this type that are going to be deleted */ | ||
total?: number; | ||
/** The number of already deleted items of this type */ | ||
deleted?: number; | ||
} | ||
/** Model cleanup process types */ | ||
export declare enum ShapeDiverResponseModelCleanupProcessType { | ||
@@ -304,0 +162,0 @@ DELETE_EXPORT_VERSION = "delete_export_version", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ShapeDiverResponseModelCleanupProcessType = exports.ShapeDiverResponseParameterStructure = exports.ShapeDiverResponseParameterVisualization = exports.ShapeDiverResponseParameterType = void 0; | ||
/** | ||
* Type of parameter. | ||
* | ||
* All types starting with 's' are s-type parameters while the others are basic parameter types. | ||
*/ | ||
var ShapeDiverResponseParameterType; | ||
@@ -46,7 +41,2 @@ (function (ShapeDiverResponseParameterType) { | ||
})(ShapeDiverResponseParameterType || (exports.ShapeDiverResponseParameterType = ShapeDiverResponseParameterType = {})); | ||
/** | ||
* Optional preferred visualization for parameters of type | ||
* {@link ShapeDiverResponseParameterType.FILE} and | ||
* {@link ShapeDiverResponseParameterType.STRINGLIST}. | ||
*/ | ||
var ShapeDiverResponseParameterVisualization; | ||
@@ -70,3 +60,2 @@ (function (ShapeDiverResponseParameterVisualization) { | ||
})(ShapeDiverResponseParameterVisualization || (exports.ShapeDiverResponseParameterVisualization = ShapeDiverResponseParameterVisualization = {})); | ||
/** Structural information of a parameter */ | ||
var ShapeDiverResponseParameterStructure; | ||
@@ -78,3 +67,2 @@ (function (ShapeDiverResponseParameterStructure) { | ||
})(ShapeDiverResponseParameterStructure || (exports.ShapeDiverResponseParameterStructure = ShapeDiverResponseParameterStructure = {})); | ||
/** Model cleanup process types */ | ||
var ShapeDiverResponseModelCleanupProcessType; | ||
@@ -81,0 +69,0 @@ (function (ShapeDiverResponseModelCleanupProcessType) { |
import { ShapeDiverCommonsGroup } from '../commons/SdCommonsGroup'; | ||
import { ShapeDiverResponseModelComputationStatus } from './SdResponseDtoModelComputation'; | ||
/** types of exports */ | ||
export declare enum ShapeDiverResponseExportDefinitionType { | ||
@@ -10,90 +9,37 @@ UNKNOWN = "unknown", | ||
} | ||
/** group information of an export definition */ | ||
export type ShapeDiverResponseExportDefinitionGroup = ShapeDiverCommonsGroup; | ||
/** | ||
* export definition WITHOUT results as exposed on the API | ||
*/ | ||
export interface ShapeDiverResponseExportDefinition { | ||
/** id of the export, dependent on model id, and therefore changing each time a model gets uploaded */ | ||
id: string; | ||
/** | ||
* constant id of the export, not dependent on model id, and therefore NOT changing each time a model gets uploaded | ||
* may be undefined because this property was introduced in summer 2020 and does not exist for exports of older models | ||
*/ | ||
uid?: string; | ||
/** name of the export */ | ||
name: string; | ||
/** type of export */ | ||
type: ShapeDiverResponseExportDefinitionType; | ||
/** list of ids of parameters influencing this export */ | ||
dependency: string[]; | ||
/** group of an export */ | ||
group?: ShapeDiverResponseExportDefinitionGroup; | ||
/** ordering of the export in client applications */ | ||
order?: number; | ||
/** description that is shown as a tooltip in the clients */ | ||
tooltip?: string; | ||
/** parameter name to display instead of name */ | ||
displayname?: string; | ||
/** controls whether the parameter should be hidden in the UI */ | ||
hidden: boolean; | ||
} | ||
/** | ||
* export definition WITH results as exposed on the API | ||
*/ | ||
export interface ShapeDiverResponseExport extends ShapeDiverResponseExportDefinition { | ||
/** requested version of the export */ | ||
version?: string; | ||
/** optional delay in milliseconds after which an export cache request shall be sent to check again for this export version | ||
* this property is used ONLY if the export version has not been computed yet | ||
*/ | ||
delay?: number; | ||
/** result parts | ||
* in case this array does not exist, this means that the workers have not finished computation for this output version | ||
*/ | ||
content?: ShapeDiverResponseExportPart[]; | ||
/** | ||
* In case computation of the export version (temporarily) failed: | ||
* Optional message to the user, explaining what went wrong | ||
*/ | ||
msg?: string; | ||
/** optional suggested filename for the files to be downloaded */ | ||
filename?: string; | ||
/** optional result object for exports of type 'email' and 'shapeways' */ | ||
result?: ShapeDiverResponseExportResult; | ||
/** Status of the computation which resulted in the export version */ | ||
status_computation?: ShapeDiverResponseModelComputationStatus; | ||
/** Status of collecting results for the export version */ | ||
status_collect?: ShapeDiverResponseModelComputationStatus; | ||
} | ||
/** | ||
* An item of the "content" array for exports | ||
*/ | ||
export interface ShapeDiverResponseExportPart { | ||
/** | ||
* format of export result (let's keep it as a string, because the backend doesn't need to know about this, just pass it through) | ||
*/ | ||
format: string; | ||
/** | ||
* Link for download of exported sset | ||
*/ | ||
href: string; | ||
/** optional size of exported asset */ | ||
size?: number; | ||
/** optional Content-Type for parts of type "asset" */ | ||
contentType?: string; | ||
} | ||
/** | ||
* optional result object for exports of type 'email' and 'shapeways' | ||
*/ | ||
export interface ShapeDiverResponseExportResult { | ||
/** optional success message for user */ | ||
msg?: string; | ||
/** optional error message for user */ | ||
err?: string; | ||
/** optional href to redirect user to for download */ | ||
href?: string; | ||
/** optional shapeways model id */ | ||
modelId?: string; | ||
} | ||
//# sourceMappingURL=SdResponseDtoExport.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ShapeDiverResponseExportDefinitionType = void 0; | ||
/** types of exports */ | ||
var ShapeDiverResponseExportDefinitionType; | ||
@@ -6,0 +5,0 @@ (function (ShapeDiverResponseExportDefinitionType) { |
@@ -20,3 +20,2 @@ export interface ShapeDiverResponseCollection { | ||
} | ||
/** See ISdModel for definition of these properties */ | ||
export declare enum ShapeDiverResponseCollectionItemDataName { | ||
@@ -27,4 +26,2 @@ ACCESSDOMAINS = "accessdomains", | ||
BACKLINKURL = "backlinkurl", | ||
/** commented on purpose, we ended up not using this property */ | ||
/** CALLBACK = 'callback', */ | ||
CDN_SUPPORTED = "cdn_supported", | ||
@@ -64,3 +61,2 @@ CHECKURL = "checkurl", | ||
REQUIRE_TOKEN = "require_token", | ||
/** this property does not exist in ISdModel, it is used to deliver a pre-signed url for model upload to clients */ | ||
S3URL = "s3url", | ||
@@ -70,3 +66,2 @@ SESSION_RATE_LIMIT = "session_rate_limit", | ||
STAT = "stat", | ||
/** this property does not exist in ISdModel, it is used to deliver a requested ticket to clients */ | ||
TICKET = "ticket", | ||
@@ -73,0 +68,0 @@ TRUST = "trust", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ShapeDiverResponseCollectionItemLinkRel = exports.ShapeDiverResponseCollectionItemDataName = void 0; | ||
/** See ISdModel for definition of these properties */ | ||
var ShapeDiverResponseCollectionItemDataName; | ||
@@ -11,4 +10,2 @@ (function (ShapeDiverResponseCollectionItemDataName) { | ||
ShapeDiverResponseCollectionItemDataName["BACKLINKURL"] = "backlinkurl"; | ||
/** commented on purpose, we ended up not using this property */ | ||
/** CALLBACK = 'callback', */ | ||
ShapeDiverResponseCollectionItemDataName["CDN_SUPPORTED"] = "cdn_supported"; | ||
@@ -48,3 +45,2 @@ ShapeDiverResponseCollectionItemDataName["CHECKURL"] = "checkurl"; | ||
ShapeDiverResponseCollectionItemDataName["REQUIRE_TOKEN"] = "require_token"; | ||
/** this property does not exist in ISdModel, it is used to deliver a pre-signed url for model upload to clients */ | ||
ShapeDiverResponseCollectionItemDataName["S3URL"] = "s3url"; | ||
@@ -54,3 +50,2 @@ ShapeDiverResponseCollectionItemDataName["SESSION_RATE_LIMIT"] = "session_rate_limit"; | ||
ShapeDiverResponseCollectionItemDataName["STAT"] = "stat"; | ||
/** this property does not exist in ISdModel, it is used to deliver a requested ticket to clients */ | ||
ShapeDiverResponseCollectionItemDataName["TICKET"] = "ticket"; | ||
@@ -57,0 +52,0 @@ ShapeDiverResponseCollectionItemDataName["TRUST"] = "trust"; |
@@ -1,4 +0,1 @@ | ||
/** | ||
* Model statistics components | ||
*/ | ||
export type ShapeDiverResponseModelStatistics = ShapeDiverResponseModelStatisticsPart[]; | ||
@@ -5,0 +2,0 @@ export interface ShapeDiverResponseModelStatisticsPart { |
"use strict"; | ||
/** | ||
* Model statistics components | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=SdResponseDtoModelStatistics.js.map |
import { ShapeDiverCommonsGroup } from '../commons/SdCommonsGroup'; | ||
import { ShapeDiverResponseModelComputationStatus } from './SdResponseDtoModelComputation'; | ||
/** Group information of an output definition */ | ||
export type ShapeDiverResponseOutputDefinitionGroup = ShapeDiverCommonsGroup; | ||
/** | ||
* output definition WITHOUT results as exposed on the API | ||
*/ | ||
export interface ShapeDiverResponseOutputDefinition { | ||
/** id of the output, dependent on model id, and therefore changing each time a model gets uploaded */ | ||
id: string; | ||
/** | ||
* constant id of the output, not dependent on model id, and therefore NOT changing each time a model gets uploaded | ||
* may be undefined because this property was introduced in summer 2020 and does not exist for outputs of older models | ||
*/ | ||
uid?: string; | ||
/** name of the output */ | ||
name: string; | ||
/** optional id of the output holding material information for this output */ | ||
material?: string; | ||
/** information about which chunks exist in the asset/sdtf */ | ||
chunks?: ShapeDiverResponseOutputChunk[]; | ||
/** list of ids of parameters influencing this output */ | ||
dependency: string[]; | ||
/** group of an output */ | ||
group?: ShapeDiverResponseOutputDefinitionGroup; | ||
/** ordering of the output in client applications */ | ||
order?: number; | ||
/** description that is shown as a tooltip in the clients */ | ||
tooltip?: string; | ||
/** parameter name to display instead of name */ | ||
displayname?: string; | ||
/** controls whether the parameter should be hidden in the UI */ | ||
hidden: boolean; | ||
} | ||
/** | ||
* output definition WITH results as exposed on the API | ||
*/ | ||
export interface ShapeDiverResponseOutput extends ShapeDiverResponseOutputDefinition { | ||
/** | ||
* A unique identifier for the particular version of the output. This is a hash code which is | ||
* based on the parameter values that were used to compute the resulting data. The hash code | ||
* only depends on the values of the parameters which may theoretically influence the results | ||
* of the output. As an example, parameters which are in no way connected to the output | ||
* component in Grasshopper are not considered. | ||
*/ | ||
version: string; | ||
/** | ||
* optional delay in milliseconds after which a cache request shall be sent to check again for this output version | ||
* this property is used ONLY if the output version has not been computed yet | ||
*/ | ||
delay?: number; | ||
/** | ||
* result parts | ||
* in case this array does not exist, this means that the workers have not finished computation for this output version | ||
*/ | ||
content?: ShapeDiverResponseOutputPart[]; | ||
/** Optional bounding box, minimum corner */ | ||
bbmin?: number[]; | ||
/** Optional bounding box, maximum corner */ | ||
bbmax?: number[]; | ||
/** | ||
* In case computation of the output version (temporarily) failed: | ||
* Optional message to the user, explaining what went wrong | ||
*/ | ||
msg?: string; | ||
/** Status of the computation which resulted in the output version */ | ||
status_computation?: ShapeDiverResponseModelComputationStatus; | ||
/** Status of collecting results for the output version */ | ||
status_collect?: ShapeDiverResponseModelComputationStatus; | ||
} | ||
/** | ||
* An item of the "content" array of outputs | ||
*/ | ||
export interface ShapeDiverResponseOutputPart { | ||
/** | ||
* optional link to asset | ||
*/ | ||
href?: string; | ||
/** size in bytes for parts of type "asset" */ | ||
size?: number; | ||
/** optionally used for type "data" */ | ||
name?: string; | ||
/** transformations to be applied in case of type "external" or "asset" */ | ||
transformations?: number[][]; | ||
/** | ||
* format of part, used by all types of parts | ||
* * file ending for parts of type "asset" | ||
* * "material" (data contains a material definition) | ||
* * "data" (data contains arbitrary data) | ||
* * "external" (href or (s3bucket and s3key) refer to an external asset) | ||
* | ||
* Alex: we might introduce an enum for this (but it's cumbersome because of the various file types we are using) | ||
*/ | ||
format: string; | ||
/** | ||
* this was used by legacy "transform_content_array" in case of an error in getting texture urls --> review whether this still makes sense and is required | ||
*/ | ||
msg?: string; | ||
/** used for types "material" and "data" */ | ||
data?: any; | ||
/** optional Content-Type for parts of type "asset" */ | ||
contentType?: string; | ||
} | ||
/** Represents a collection of nodes where to start enumerating the content of the Sdtf file (entry points) */ | ||
export interface ShapeDiverResponseOutputChunk { | ||
/** ID of the chunk */ | ||
id: string; | ||
/** Name of the chunk */ | ||
name: string; | ||
/** Indicates what type of data the data item holds */ | ||
typeHint: string; | ||
/** Description that is shown as a tooltip in the clients */ | ||
tooltip?: string; | ||
/** Custom name to display instead of {@link name}. Empty string if not set. */ | ||
displayname: string; | ||
/** Controls whether the chunk should be hidden in the UI */ | ||
hidden: boolean; | ||
} | ||
//# sourceMappingURL=SdResponseDtoOutput.d.ts.map |
{ | ||
"name": "@shapediver/api.geometry-api-dto-v1", | ||
"version": "1.14.0", | ||
"version": "1.14.1", | ||
"description": "Data Transfer Object Definitions of the Geometry API v1", | ||
@@ -11,3 +11,4 @@ "keywords": [], | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"src" | ||
], | ||
@@ -14,0 +15,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
104332
68
1923