Skip to main content

Interface: Zakeke

Contains all the data and methods to control a Zakeke configuration

Properties

IS_ANDROID

IS_ANDROID: boolean


IS_IOS

IS_IOS: boolean


addFocusAttributesListener

addFocusAttributesListener: (listenerFunction: FocusAttributesEventListener) => void

Type declaration

▸ (listenerFunction): void

Parameters
NameType
listenerFunctionFocusAttributesEventListener
Returns

void


addItemImage

addItemImage: (id: number, areaId: number) => Promise<void>

Type declaration

▸ (id, areaId): Promise<void>

Parameters
NameType
idnumber
areaIdnumber
Returns

Promise<void>


addItemText

addItemText: (settings: { fontFamily: string ; text: string }, areaId: number) => Promise<void>

Type declaration

▸ (settings, areaId): Promise<void>

Parameters
NameType
settingsObject
settings.fontFamilystring
settings.textstring
areaIdnumber
Returns

Promise<void>


addToCart

addToCart: (additionalProperties: Record<string, any>, OnBeforeSendDataToParent?: (data: OnBeforeSendDataToParent) => Promise<Record<string, any>>, legacyScreenshot?: boolean, nftForm?: NftForm) => Promise<void>

Type declaration

▸ (additionalProperties, OnBeforeSendDataToParent?, legacyScreenshot?, nftForm?): Promise<void>

Parameters
NameType
additionalPropertiesRecord<string, any>
OnBeforeSendDataToParent?(data: OnBeforeSendDataToParent) => Promise<Record<string, any>>
legacyScreenshot?boolean
nftForm?NftForm
Returns

Promise<void>


additionalCustomProperties

additionalCustomProperties: null | { formatString: string ; label: string ; name: string ; value: number }[]


applyTemplate

applyTemplate: (templateGroupCompositionId: number) => Promise<void>

Type declaration

▸ (templateGroupCompositionId): Promise<void>

Parameters
NameType
templateGroupCompositionIdnumber
Returns

Promise<void>


backgroundColor

backgroundColor: string


cameras

cameras: Camera[]


canUsePD

canUsePD: boolean


canUseTryOn

canUseTryOn: boolean


clearListeners

clearListeners: () => void

Type declaration

▸ (): void

Returns

void


configureByAI

configureByAI: (text: string) => Promise<void>

Type declaration

▸ (text): Promise<void>

Parameters
NameType
textstring
Returns

Promise<void>


createImage

createImage: (file: File, progress?: (percentage: number) => void) => Promise<ZakekeImage>

Upload an image and get the uploaded image

Param

The file to upload

Param

A callback to get the upload progress

Type declaration

▸ (file, progress?): Promise<ZakekeImage>

Upload an image and get the uploaded image

Parameters
NameTypeDescription
fileFileThe file to upload
progress?(percentage: number) => voidA callback to get the upload progress
Returns

Promise<ZakekeImage>

The uploaded image


createImageFromUrl

createImageFromUrl: (url: string) => Promise<ZakekeImage>

Type declaration

▸ (url): Promise<ZakekeImage>

Parameters
NameType
urlstring
Returns

Promise<ZakekeImage>


createQuote

createQuote: (formData: any) => Promise<any>

Type declaration

▸ (formData): Promise<any>

Parameters
NameType
formDataany
Returns

Promise<any>


culture

culture: string


currency

currency: string


currentAttributesSelection

currentAttributesSelection: null | object


currentCompositionInfo

currentCompositionInfo: null | { compositionId: null | string ; compositionName: null | string ; compositionTags: null | string[] }


currentTemplate

currentTemplate: null | Template


defaultColor

defaultColor: string


deleteSavedComposition

deleteSavedComposition: (docId: string) => Promise<void>

Type declaration

▸ (docId): Promise<void>

Parameters
NameType
docIdstring
Returns

Promise<void>


designUpdate

designUpdate: () => void

Type declaration

▸ (): void

Returns

void


disableTextColors

disableTextColors: boolean


draftCompositions

draftCompositions: null | ThemeCompositions[]


eventMessages

eventMessages: null | EventMessage[]


exportSceneToGlb

exportSceneToGlb: () => Promise<null | string | Blob>

Type declaration

▸ (): Promise<null | string | Blob>

Returns

Promise<null | string | Blob>


exportTryOnMeshToGlb

exportTryOnMeshToGlb: () => Promise<null | string | Blob>

Type declaration

▸ (): Promise<null | string | Blob>

Returns

Promise<null | string | Blob>


focusAttribute

focusAttribute: (attributeId: number) => void

Type declaration

▸ (attributeId): void

Parameters
NameType
attributeIdnumber
Returns

void


fonts

fonts: FontFamily[]


fullyLoadFont

fullyLoadFont: (fontFamily: string | FontFamily) => Promise<FontFamily>

Type declaration

▸ (fontFamily): Promise<FontFamily>

Parameters
NameType
fontFamilystring | FontFamily
Returns

Promise<FontFamily>


getCopyrightMessageAccepted

getCopyrightMessageAccepted: () => boolean

Type declaration

▸ (): boolean

Returns

boolean


getImages

getImages: (categoryId: number) => Promise<ZakekeImage[]>

Type declaration

▸ (categoryId): Promise<ZakekeImage[]>

Parameters
NameType
categoryIdnumber
Returns

Promise<ZakekeImage[]>


getMacroCategories

getMacroCategories: () => Promise<ImageMacroCategory[]>

Type declaration

▸ (): Promise<ImageMacroCategory[]>

Returns

Promise<ImageMacroCategory[]>


getMeshIDbyName

getMeshIDbyName: (name: string) => undefined | null | string

Type declaration

▸ (name): undefined | null | string

Parameters
NameType
namestring
Returns

undefined | null | string


getMobileArUrl

getMobileArUrl: (onFlyArUrl?: string) => Promise<null | string | Blob>

Type declaration

▸ (onFlyArUrl?): Promise<null | string | Blob>

Parameters
NameType
onFlyArUrl?string
Returns

Promise<null | string | Blob>


getOnlineScreenshot

getOnlineScreenshot: (width: number, height: number, legacyScreenshot?: boolean, backgroundColor?: string, padding?: number) => Promise<{ originalUrl: string ; rewrittenUrl: string }>

Type declaration

▸ (width, height, legacyScreenshot?, backgroundColor?, padding?): Promise<{ originalUrl: string ; rewrittenUrl: string }>

Parameters
NameType
widthnumber
heightnumber
legacyScreenshot?boolean
backgroundColor?string
padding?number
Returns

Promise<{ originalUrl: string ; rewrittenUrl: string }>


getPDF

getPDF: () => Promise<string>

Create a PDF of the current configuration

Type declaration

▸ (): Promise<string>

Create a PDF of the current configuration

Returns

Promise<string>

The URL of the PDF


getPrintingMethodsRestrictions

getPrintingMethodsRestrictions: () => PrintingMethodsRestrictions

Type declaration

▸ (): PrintingMethodsRestrictions

Returns

PrintingMethodsRestrictions


getQrCodeArUrl

getQrCodeArUrl: (device: "iOS" | "Android") => Promise<string>

Type declaration

▸ (device): Promise<string>

Parameters
NameType
device"iOS" | "Android"
Returns

Promise<string>


getSanitationText

getSanitationText: (family: FontFamily, text: string) => TextSanitationResult

Type declaration

▸ (family, text): TextSanitationResult

Parameters
NameType
familyFontFamily
textstring
Returns

TextSanitationResult


getShareCompositionUrl

getShareCompositionUrl: () => Promise<string>

Type declaration

▸ (): Promise<string>

Returns

Promise<string>


getTemplateUploadRestrictictions

getTemplateUploadRestrictictions: (templateId: number, areaId: number) => TemplateUploadRestrictictions

Type declaration

▸ (templateId, areaId): TemplateUploadRestrictictions

Parameters
NameType
templateIdnumber
areaIdnumber
Returns

TemplateUploadRestrictictions


getTryOnSettings

getTryOnSettings: () => undefined | TryOnSettings

Type declaration

▸ (): undefined | TryOnSettings

Returns

undefined | TryOnSettings


getTryOnUrl

getTryOnUrl: (tryOnUrl?: string) => Promise<string>

Type declaration

▸ (tryOnUrl?): Promise<string>

Parameters
NameType
tryOnUrl?string
Returns

Promise<string>


groups

groups: Group[]


hasExplodedMode

hasExplodedMode: () => boolean

Type declaration

▸ (): boolean

Returns

boolean


hasVTryOnEnabled

hasVTryOnEnabled: boolean


hideMeshAndSaveState

hideMeshAndSaveState: (meshId: string) => void

Type declaration

▸ (meshId): void

Parameters
NameType
meshIdstring
Returns

void


highlightAttribute

highlightAttribute: (attributeId: number) => void

Type declaration

▸ (attributeId): void

Parameters
NameType
attributeIdnumber
Returns

void


highlightGroup

highlightGroup: (groupId: number) => void

Type declaration

▸ (groupId): void

Parameters
NameType
groupIdnumber
Returns

void


isAIEnabled

isAIEnabled: boolean


isAddToCartLoading

isAddToCartLoading: boolean


isArDeviceCompliant

isArDeviceCompliant: () => boolean

Type declaration

▸ (): boolean

Returns

boolean


isAreaVisible

isAreaVisible: (areaId: number) => boolean

Type declaration

▸ (areaId): boolean

Parameters
NameType
areaIdnumber
Returns

boolean


isAssetsLoading

isAssetsLoading: boolean


isExplodedMode

isExplodedMode: boolean


isFullscreenMode

isFullscreenMode: boolean


isInfoPointContentVisible

isInfoPointContentVisible: boolean


isMandatoryPD

isMandatoryPD: boolean


isOutOfStock

isOutOfStock: boolean


isSceneArEnabled

isSceneArEnabled: () => boolean

Type declaration

▸ (): boolean

Returns

boolean


isSceneLoading

isSceneLoading: boolean


isSceneTryOnEnabled

isSceneTryOnEnabled: () => boolean

Type declaration

▸ (): boolean

Returns

boolean


isTryOnMeshVisible

isTryOnMeshVisible: boolean


isViewerReady

isViewerReady: boolean


isVisibleMeshShownForTryOn

isVisibleMeshShownForTryOn: boolean


items

items: Item[]


loadComposition

loadComposition: (id: string) => Promise<void>

Type declaration

▸ (id): Promise<void>

Parameters
NameType
idstring
Returns

Promise<void>


loadSavedComposition

loadSavedComposition: (docID: string) => Promise<void>

Type declaration

▸ (docID): Promise<void>

Parameters
NameType
docIDstring
Returns

Promise<void>


loadedComposition

loadedComposition: null | { attributesOptions: Map<number, number> ; selectedCategoryID: null | number ; templateName: string }


nftSettings

nftSettings: null | NftSettings


openArMobile

openArMobile: (url: string) => void

Type declaration

▸ (url): void

Parameters
NameType
urlstring
Returns

void


openSecondScreen

openSecondScreen: () => void

Type declaration

▸ (): void

Returns

void


pdDistance

pdDistance: () => number

Type declaration

▸ (): number

Returns

number


personalizedMessages

personalizedMessages: null | EventMessage[]


previewOnly__setItemImageFromBase64

previewOnly__setItemImageFromBase64: (guid: string, base64: string) => void

Type declaration

▸ (guid, base64): void

Parameters
NameType
guidstring
base64string
Returns

void


price

price: number

The current price of the configuration plus the product price


product

product: null | Product


productCode

productCode: string


productName

productName: string


quantity

quantity: number


quantityRule

quantityRule: null | ProductQuantityRule


redo

redo: () => Promise<void>

Type declaration

▸ (): Promise<void>

Returns

Promise<void>


removeBackground

removeBackground: boolean


removeItem

removeItem: (guid: string) => Promise<void>

Remove an item from the customization

Param

The guid of the item to remove

Type declaration

▸ (guid): Promise<void>

Remove an item from the customization

Parameters
NameTypeDescription
guidstringThe guid of the item to remove
Returns

Promise<void>


reset

reset: () => Promise<void>

Type declaration

▸ (): Promise<void>

Returns

Promise<void>


resetCameraPivot

resetCameraPivot: () => void

Type declaration

▸ (): void

Returns

void


restoreMeshVisibility

restoreMeshVisibility: (meshId: string) => void

Type declaration

▸ (meshId): void

Parameters
NameType
meshIdstring
Returns

void


sanitizeString

sanitizeString: (family: FontFamily, text: string) => string

Type declaration

▸ (family, text): string

Parameters
NameType
familyFontFamily
textstring
Returns

string


saveComposition

saveComposition: (customPreviewSize?: CustomPreviewSize) => Promise<void>

Type declaration

▸ (customPreviewSize?): Promise<void>

Parameters
NameType
customPreviewSize?CustomPreviewSize
Returns

Promise<void>


saveDraftsComposition

saveDraftsComposition: (name: string, tags: string[], isCopy?: boolean) => Promise<void>

Type declaration

▸ (name, tags, isCopy?): Promise<void>

Parameters
NameType
namestring
tagsstring[]
isCopy?boolean
Returns

Promise<void>


saveTemplate

saveTemplate: (templateName: string, selectedCategoryID: null | number, attributesOptions: Map<number, number>) => Promise<void>

Type declaration

▸ (templateName, selectedCategoryID, attributesOptions): Promise<void>

Parameters
NameType
templateNamestring
selectedCategoryIDnull | number
attributesOptionsMap<number, number>
Returns

Promise<void>


selectOption

selectOption: (optionId: number) => void

Type declaration

▸ (optionId): void

Parameters
NameType
optionIdnumber
Returns

void


sellerSettings

sellerSettings: null | SellerSettings


setBackgroundColor

setBackgroundColor: (color: string, alpha: number) => void

Type declaration

▸ (color, alpha): void

Parameters
NameType
colorstring
alphanumber
Returns

void


setCamera

setCamera: (id: string, onlyAngleOfView?: boolean, animate?: boolean) => void

Type declaration

▸ (id, onlyAngleOfView?, animate?): void

Parameters
NameType
idstring
onlyAngleOfView?boolean
animate?boolean
Returns

void


setCameraByName

setCameraByName: (name: string, onlyAngleOfView?: boolean, animate?: boolean) => void

Type declaration

▸ (name, onlyAngleOfView?, animate?): void

Parameters
NameType
namestring
onlyAngleOfView?boolean
animate?boolean
Returns

void


setCameraLocked

setCameraLocked: (isBlocked: boolean) => void

Type declaration

▸ (isBlocked): void

Parameters
NameType
isBlockedboolean
Returns

void


setCameraPivot

setCameraPivot: (meshId: string) => void

Type declaration

▸ (meshId): void

Parameters
NameType
meshIdstring
Returns

void


setCameraZoomEnabled

setCameraZoomEnabled: (enabled: boolean) => void

Type declaration

▸ (enabled): void

Parameters
NameType
enabledboolean
Returns

void


setCopyrightMessageAccepted

setCopyrightMessageAccepted: (copyrightMandatoryCheckbox: boolean) => void

Type declaration

▸ (copyrightMandatoryCheckbox): void

Parameters
NameType
copyrightMandatoryCheckboxboolean
Returns

void


setExplodedMode

setExplodedMode: (exploded: boolean) => void

Type declaration

▸ (exploded): void

Parameters
NameType
explodedboolean
Returns

void


setHighlightSettings

setHighlightSettings: (settings: { color: string ; size: number }) => void

Type declaration

▸ (settings): void

Parameters
NameType
settingsObject
settings.colorstring
settings.sizenumber
Returns

void


setItemBold

setItemBold: (guid: string, bold: boolean) => void

Type declaration

▸ (guid, bold): void

Parameters
NameType
guidstring
boldboolean
Returns

void


setItemColor

setItemColor: (guid: string, color: string) => void

Type declaration

▸ (guid, color): void

Parameters
NameType
guidstring
colorstring
Returns

void


setItemFontFamily

setItemFontFamily: (guid: string, fontFamily: string) => void

Type declaration

▸ (guid, fontFamily): void

Parameters
NameType
guidstring
fontFamilystring
Returns

void


setItemImage

setItemImage: (guid: string, imageId: number) => Promise<void>

Type declaration

▸ (guid, imageId): Promise<void>

Parameters
NameType
guidstring
imageIdnumber
Returns

Promise<void>


setItemImageFromFile

setItemImageFromFile: (guid: string, file: File) => Promise<void>

Type declaration

▸ (guid, file): Promise<void>

Parameters
NameType
guidstring
fileFile
Returns

Promise<void>


setItemItalic

setItemItalic: (guid: string, italic: boolean) => void

Type declaration

▸ (guid, italic): void

Parameters
NameType
guidstring
italicboolean
Returns

void


setItemText

setItemText: (guid: string, text: string) => void

Type declaration

▸ (guid, text): void

Parameters
NameType
guidstring
textstring
Returns

void


setItemTextOnPath

setItemTextOnPath: (guid: string, areaId: number, value: boolean) => void

Type declaration

▸ (guid, areaId, value): void

Parameters
NameType
guidstring
areaIdnumber
valueboolean
Returns

void


setMeshDesignVisibility

setMeshDesignVisibility: (meshId: string, visible: boolean) => void

Type declaration

▸ (meshId, visible): void

Parameters
NameType
meshIdstring
visibleboolean
Returns

void


setPDDistance

setPDDistance: (distance: number) => void

Type declaration

▸ (distance): void

Parameters
NameType
distancenumber
Returns

void


setQuantity

setQuantity: (quantity: number) => void

Type declaration

▸ (quantity): void

Parameters
NameType
quantitynumber
Returns

void


setTemplate

setTemplate: (templateId: number) => Promise<void>

Type declaration

▸ (templateId): Promise<void>

Parameters
NameType
templateIdnumber
Returns

Promise<void>


switchFullscreen

switchFullscreen: () => void

Type declaration

▸ (): void

Returns

void


templateMacroCategories

templateMacroCategories: null | TemplateMacroCategory[]


templates

templates: Template[]


textColors

textColors: RestrictionColor[]


translations

translations: null | Translations


uiConfig

uiConfig: null | UIConfig


undo

undo: () => Promise<void>

Type declaration

▸ (): Promise<void>

Returns

Promise<void>


updateView

updateView: (adjustCamera?: boolean) => void

Type declaration

▸ (adjustCamera?): void

Parameters
NameType
adjustCamera?boolean
Returns

void


useLegacyScreenshot

useLegacyScreenshot: boolean


validationNFTEmail

validationNFTEmail: (email: string) => boolean

Type declaration

▸ (email): boolean

Parameters
NameType
emailstring
Returns

boolean


validationNFTWalletAddress

validationNFTWalletAddress: (walletAddress: string) => boolean

Type declaration

▸ (walletAddress): boolean

Parameters
NameType
walletAddressstring
Returns

boolean


visibleEventMessages

visibleEventMessages: VisibleEventMessage[]


zoomIn

zoomIn: () => void

Type declaration

▸ (): void

Returns

void


zoomOut

zoomOut: () => void

Type declaration

▸ (): void

Returns

void