Configurator.Internal.default-1

configurator-core/src/configurator.internal.default

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

• new default(creator)

Parameters

Name
Type

creator

string

Properties

_creator_

• _creator_: string

Implementation of

Context.creator

Methods

changeUseOfHDGeometry

â–¸ changeUseOfHDGeometry(): void

Returns

void


cleanUp

â–¸ cleanUp(): void

Returns

void


combineMaterialsToGroups

â–¸ combineMaterialsToGroups(materials): Promise<RapiMaterialGroup[]>

Parameters

Name
Type

materials

Returns

Promise<RapiMaterialGroup[]>


createNewPlan

â–¸ createNewPlan(): RapiPlan

Returns

RapiPlan


export3D

â–¸ export3D(id, email, fileFormat, options?): Promise<unknown>

Export a configuration id into a given file format and send it via email

Parameters

Name
Type
Description

id

string

email

string

fileFormat

string

check API documentation for valid formats

options

object

-

Returns

Promise<unknown>


getAdditionalContentsOfItems

â–¸ getAdditionalContentsOfItems(rapiItems): Promise<RapiAdditionalContent[]>

Parameters

Name
Type

rapiItems

Returns

Promise<RapiAdditionalContent[]>


getCatalog

â–¸ getCatalog(id): Promise<RapiCatalog>

Parameters

Name
Type

id

string

Returns

Promise<RapiCatalog>


getComponent

â–¸ getComponent(id): Promise<RapiComponent>

Parameters

Name
Type

id

string

Returns

Promise<RapiComponent>


getComponents

â–¸ getComponents(ids): Promise<RapiComponent[]>

Parameters

Name
Type

ids

string[]

Returns

Promise<RapiComponent[]>


getComponentsOf

â–¸ getComponentsOf(rapiJson): Promise<RapiComponent[]>

Parameters

Name
Type

rapiJson

Returns

Promise<RapiComponent[]>


getConfiguration

â–¸ getConfiguration(id): Promise<RapiConfiguration>

Parameters

Name
Type

id

string

Returns

Promise<RapiConfiguration>


getConfigurations

â–¸ getConfigurations(ids): Promise<RapiConfiguration[]>

Parameters

Name
Type

ids

string[]

Returns

Promise<RapiConfiguration[]>


getConfiguratorSettings

â–¸ getConfiguratorSettings(): Promise<RapiConfiguratorSettings>

Returns

Promise<RapiConfiguratorSettings>


getCurrentSkin

â–¸ getCurrentSkin(): Promise<RapiSkin>

Returns

Promise<RapiSkin>


getHSCPackage

â–¸ getHSCPackage(id): Promise<void | RapiPackage>

Parameters

Name
Type

id

string

Returns

Promise<void | RapiPackage>


getItem

â–¸ getItem(id): Promise<RapiItem>

Parameters

Name
Type

id

string

Returns

Promise<RapiItem>


getItems

â–¸ getItems(ids): Promise<RapiItem[]>

Parameters

Name
Type

ids

string[]

Returns

Promise<RapiItem[]>


getItemsOf

â–¸ getItemsOf(rapiJson): Promise<RapiItem[]>

Parameters

Name
Type

rapiJson

Returns

Promise<RapiItem[]>


getMaterial

â–¸ getMaterial(id): Promise<RapiMaterial>

Parameters

Name
Type

id

string

Returns

Promise<RapiMaterial>


getMaterials

â–¸ getMaterials(ids): Promise<RapiMaterial[]>

Parameters

Name
Type

ids

string[]

Returns

Promise<RapiMaterial[]>


getMaterialsByGroup

â–¸ getMaterialsByGroup(groupIdsToCheck): Promise<RapiMaterialGroup[]>

Parameters

Name
Type

groupIdsToCheck

string[]

Returns

Promise<RapiMaterialGroup[]>


getMaterialsOf

â–¸ getMaterialsOf(rapiJson): Promise<RapiMaterial[]>

Parameters

Name
Type

rapiJson

Returns

Promise<RapiMaterial[]>


getMesh

â–¸ getMesh(id, format?, quality?): Promise<RapiMeshData>

Parameters

Name
Type
Default value

id

string

undefined

format

string

MESH_DEFAULT_FORMAT

quality

number

MESH_DEFAULT_QUALITY

Returns

Promise<RapiMeshData>


getMeshesOfCatalog

â–¸ getMeshesOfCatalog(catalogId): Promise<RapiMesh[]>

Parameters

Name
Type

catalogId

string

Returns

Promise<RapiMesh[]>


getPlan

â–¸ getPlan(id): Promise<RapiPlan>

Parameters

Name
Type

id

string

Returns

Promise<RapiPlan>


getPlanSnapshot

â–¸ getPlanSnapshot(id): Promise<RapiPlanSnapshotGetData>

Parameters

Name
Type

id

`ps_${string}`

Returns

Promise<RapiPlanSnapshotGetData>


getPreloadForConfiguration

â–¸ getPreloadForConfiguration(id): Promise<void>

Parameters

Name
Type

id

string

Returns

Promise<void>


getPreloadForItem

â–¸ getPreloadForItem(id): Promise<void>

Parameters

Name
Type

id

string

Returns

Promise<void>


getPrices

â–¸ getPrices(pricesIds): Promise<RapiPrice[]>

Parameters

Name
Type

pricesIds

string[]

Returns

Promise<RapiPrice[]>


getShortUrl

â–¸ getShortUrl(referencedId, type): Promise<RapiShortId>

Parameters

Name
Type

referencedId

string

Returns

Promise<RapiShortId>


getTag

â–¸ getTag(id): Promise<RapiTag>

Parameters

Name
Type

id

string

Returns

Promise<RapiTag>


getTags

â–¸ getTags(ids): Promise<RapiTag[]>

Parameters

Name
Type

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

Name
Type

tenantId?

number

Returns

Promise<RapiTenant>


getTenantId

â–¸ getTenantId(): Promise<number>

Returns

Promise<number>


getTexture

â–¸ getTexture(id): Promise<RapiTexture>

Parameters

Name
Type

id

string

Returns

Promise<RapiTexture>


getTexturesOf

â–¸ getTexturesOf(rapiJson): Promise<RapiTexture[]>

Parameters

Name
Type

rapiJson

Returns

Promise<RapiTexture[]>


peekComponent

â–¸ peekComponent(id): RapiComponent

Parameters

Name
Type

id

string

Returns

RapiComponent


peekConfiguration

â–¸ peekConfiguration(id): RapiConfiguration

Parameters

Name
Type

id

string

Returns

RapiConfiguration


peekItem

â–¸ peekItem(id): RapiItem

Parameters

Name
Type

id

string

Returns

RapiItem


peekMaterial

â–¸ peekMaterial(id): RapiMaterial

Parameters

Name
Type

id

string

Returns

RapiMaterial


removeCurrentToken

â–¸ removeCurrentToken(): void

Returns

void


resolveShortUrl

â–¸ resolveShortUrl(id): Promise<RapiShortId>

Parameters

Name
Type

id

string

Returns

Promise<RapiShortId>


saveConfiguration

â–¸ saveConfiguration(configuration): Promise<RapiConfiguration>

Parameters

Name
Type

configuration

Returns

Promise<RapiConfiguration>


saveConfigurationImage

â–¸ saveConfigurationImage(configuration, image1, type1, image2, type2): Promise<RapiConfiguration>

Parameters

Returns

Promise<RapiConfiguration>


savePlan

â–¸ savePlan(plan): Promise<RapiPlan>

Parameters

Name
Type

Returns

Promise<RapiPlan>


savePlanSnapshot

â–¸ savePlanSnapshot(planSnapshot): Promise<RapiPlanSnapshotGetData>

Parameters

Name
Type

Returns

Promise<RapiPlanSnapshotGetData>


savePlanSnapshotImage

â–¸ savePlanSnapshotImage(planSnapshot, image1, type1, image2, type2): Promise<RapiPlanSnapshotGetData>

Parameters

Returns

Promise<RapiPlanSnapshotGetData>


sendUserAction

â–¸ sendUserAction(userAction): Promise<RapiJson>

Parameters

Name
Type

userAction

Returns

Promise<RapiJson>


setConfiguratorSettings

â–¸ setConfiguratorSettings(): Promise<void>

Returns

Promise<void>


setCurrentToken

â–¸ setCurrentToken(token): void

Parameters

Name
Type

token

string

Returns

void


shareConfiguration

â–¸ shareConfiguration(id, email, type, urlParams?): Promise<unknown>

Export a configuration or plansnapshot id into a given file format and send it via email Shares a configuration id using email

Parameters

Name
Type
Description

id

string

email

string

type

the email template to use

urlParams?

Record<string, string | string[]>

URL parameters to include in the request (key-value pairs) of the current configuration settings.

Returns

Promise<unknown>


sharePlanSnapshot

â–¸ sharePlanSnapshot(id, email, type, urlParams?): Promise<unknown>

Shares a sharePlanSnapshot id using email

Parameters

Name
Type
Description

id

string

email

string

type

the email template to use

urlParams?

Record<string, string | string[]>

URL parameters to include in the request (key-value pairs) of the current planner settings.

Returns

Promise<unknown>


signinUser

â–¸ signinUser(email, password): Promise<RapiAuth>

Parameters

Name
Type

email

string

password

string

Returns

Promise<RapiAuth>


signoutUser

â–¸ signoutUser(token): Promise<void>

Parameters

Name
Type

token

string

Returns

Promise<void>


trackView

â–¸ trackView(id, module?): Promise<void>

Parameters

Name
Type
Default value

id

string

undefined

module

number

USER_ACTION_MODULE.CONFIGURATOR

Returns

Promise<void>


updateCache

â–¸ updateCache(rapiPath, data): void

Parameters

Name
Type

rapiPath

data

RapiJson & { id: string }

Returns

void


clearCaches

â–¸ Static clearCaches(): void

Returns

void

Last updated