Configurator.Internal.default-1
configurator-core/src/configurator.internal.default
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new default(creator
)
Parameters
creator
string
Properties
_creator_
• _creator_: string
Implementation of
Methods
changeUseOfHDGeometry
▸ changeUseOfHDGeometry(): void
Returns
void
cleanUp
▸ cleanUp(): void
Returns
void
combineMaterialsToGroups
▸ combineMaterialsToGroups(materials
): Promise
<RapiMaterialGroup
[]>
Parameters
materials
Returns
Promise
<RapiMaterialGroup
[]>
createNewPlan
▸ createNewPlan(): RapiPlan
Returns
export3D
▸ export3D(id
, email
, fileFormat
, options?
): Promise
<unknown
>
Export a configuration id into a given file format and send it via email
Parameters
id
string
email
string
fileFormat
string
check API documentation for valid formats
options
object
-
Returns
Promise
<unknown
>
getAdditionalContentsOfItems
▸ getAdditionalContentsOfItems(rapiItems
): Promise
<RapiAdditionalContent
[]>
Parameters
rapiItems
Returns
Promise
<RapiAdditionalContent
[]>
getCatalog
▸ getCatalog(id
): Promise
<RapiCatalog
>
Parameters
id
string
Returns
Promise
<RapiCatalog
>
getComponent
▸ getComponent(id
): Promise
<RapiComponent
>
Parameters
id
string
Returns
Promise
<RapiComponent
>
getComponents
▸ getComponents(ids
): Promise
<RapiComponent
[]>
Parameters
ids
string
[]
Returns
Promise
<RapiComponent
[]>
getComponentsOf
▸ getComponentsOf(rapiJson
): Promise
<RapiComponent
[]>
Parameters
rapiJson
Returns
Promise
<RapiComponent
[]>
getConfiguration
▸ getConfiguration(id
): Promise
<RapiConfiguration
>
Parameters
id
string
Returns
Promise
<RapiConfiguration
>
getConfigurations
▸ getConfigurations(ids
): Promise
<RapiConfiguration
[]>
Parameters
ids
string
[]
Returns
Promise
<RapiConfiguration
[]>
getConfiguratorSettings
▸ getConfiguratorSettings(id
): Promise
<RapiConfiguratorSettings
>
Parameters
id
string
Returns
Promise
<RapiConfiguratorSettings
>
getCurrentSkin
▸ getCurrentSkin(): Promise
<RapiSkin
>
Returns
Promise
<RapiSkin
>
getHSCPackage
▸ getHSCPackage(id
): Promise
<void
| RapiPackage
>
Parameters
id
string
Returns
Promise
<void
| RapiPackage
>
getItem
▸ getItem(id
): Promise
<RapiItem
>
Parameters
id
string
Returns
Promise
<RapiItem
>
getItems
▸ getItems(ids
): Promise
<RapiItem
[]>
Parameters
ids
string
[]
Returns
Promise
<RapiItem
[]>
getItemsOf
▸ getItemsOf(rapiJson
): Promise
<RapiItem
[]>
Parameters
rapiJson
Returns
Promise
<RapiItem
[]>
getMaterial
▸ getMaterial(id
): Promise
<RapiMaterial
>
Parameters
id
string
Returns
Promise
<RapiMaterial
>
getMaterials
▸ getMaterials(ids
): Promise
<RapiMaterial
[]>
Parameters
ids
string
[]
Returns
Promise
<RapiMaterial
[]>
getMaterialsByGroup
▸ getMaterialsByGroup(groupIdsToCheck
): Promise
<RapiMaterialGroup
[]>
Parameters
groupIdsToCheck
string
[]
Returns
Promise
<RapiMaterialGroup
[]>
getMaterialsOf
▸ getMaterialsOf(rapiJson
): Promise
<RapiMaterial
[]>
Parameters
rapiJson
Returns
Promise
<RapiMaterial
[]>
getMesh
▸ getMesh(id
, format?
, quality?
): Promise
<RapiMeshData
>
Parameters
id
string
undefined
format
string
MESH_DEFAULT_FORMAT
quality
number
MESH_DEFAULT_QUALITY
Returns
Promise
<RapiMeshData
>
getMeshesOfCatalog
▸ getMeshesOfCatalog(catalogId
): Promise
<RapiMesh
[]>
Parameters
catalogId
string
Returns
Promise
<RapiMesh
[]>
getPlan
▸ getPlan(id
): Promise
<RapiPlan
>
Parameters
id
string
Returns
Promise
<RapiPlan
>
getPlanSnapshot
▸ getPlanSnapshot(id
): Promise
<RapiPlanSnapshotGetData
>
Parameters
id
`ps_${string}`
Returns
Promise
<RapiPlanSnapshotGetData
>
getPreloadForConfiguration
▸ getPreloadForConfiguration(id
): Promise
<void
>
Parameters
id
string
Returns
Promise
<void
>
getPreloadForItem
▸ getPreloadForItem(id
): Promise
<void
>
Parameters
id
string
Returns
Promise
<void
>
getPrices
▸ getPrices(pricesIds
): Promise
<RapiPrice
[]>
Parameters
pricesIds
string
[]
Returns
Promise
<RapiPrice
[]>
getShortUrl
▸ getShortUrl(referencedId
, type
): Promise
<RapiShortId
>
Parameters
referencedId
string
type
Returns
Promise
<RapiShortId
>
getTag
▸ getTag(id
): Promise
<RapiTag
>
Parameters
id
string
Returns
Promise
<RapiTag
>
getTags
▸ getTags(ids
): Promise
<RapiTag
[]>
Parameters
ids
string
[]
Returns
Promise
<RapiTag
[]>
getTenant
▸ getTenant(tenantId?
): Promise
<RapiTenant
>
Returns info about the tenant with the provided ID. If the ID is not set it tries to use the current tenant.
Parameters
tenantId?
number
Returns
Promise
<RapiTenant
>
getTexture
▸ getTexture(id
): Promise
<RapiTexture
>
Parameters
id
string
Returns
Promise
<RapiTexture
>
getTexturesOf
▸ getTexturesOf(rapiJson
): Promise
<RapiTexture
[]>
Parameters
rapiJson
Returns
Promise
<RapiTexture
[]>
peekComponent
▸ peekComponent(id
): RapiComponent
Parameters
id
string
Returns
peekConfiguration
▸ peekConfiguration(id
): RapiConfiguration
Parameters
id
string
Returns
peekItem
▸ peekItem(id
): RapiItem
Parameters
id
string
Returns
peekMaterial
▸ peekMaterial(id
): RapiMaterial
Parameters
id
string
Returns
removeCurrentToken
▸ removeCurrentToken(): void
Returns
void
resolveShortUrl
▸ resolveShortUrl(id
): Promise
<RapiShortId
>
Parameters
id
string
Returns
Promise
<RapiShortId
>
saveConfiguration
▸ saveConfiguration(configuration
): Promise
<RapiConfiguration
>
Parameters
configuration
Returns
Promise
<RapiConfiguration
>
saveConfigurationImage
▸ saveConfigurationImage(configuration
, image1
, type1
, image2
, type2
): Promise
<RapiConfiguration
>
Parameters
configuration
image1
type1
image2
type2
Returns
Promise
<RapiConfiguration
>
savePlan
▸ savePlan(plan
): Promise
<RapiPlan
>
Parameters
plan
Returns
Promise
<RapiPlan
>
savePlanSnapshot
▸ savePlanSnapshot(planSnapshot
): Promise
<RapiPlanSnapshotGetData
>
Parameters
planSnapshot
Returns
Promise
<RapiPlanSnapshotGetData
>
savePlanSnapshotImage
▸ savePlanSnapshotImage(planSnapshot
, image1
, type1
, image2
, type2
): Promise
<RapiPlanSnapshotGetData
>
Parameters
planSnapshot
image1
type1
image2
type2