@threekit/analytics
Advanced tools
Comparing version 0.1.87 to 0.1.88
@@ -131,6 +131,6 @@ import { ARStage, type AssetOption, Configuration, type Context, OptionInteractionType, OptionsType, type QuizOption, ShareType, type ThreekitAuthProps, type ValueOption, VisualInteractionType } from '@threekit/rest-api'; | ||
}): void; | ||
addToCart({ configurationId, cartCustomId, addToCartType, assetId, configuration, itemPrice, itemCount, itemName, itemCustomId, orderId, orderCustomId, orderDetails, orderPrice, customerId, customerCustomId, customerDetails }: { | ||
addToCart({ configurationId, cartCustomId, eventSubType, assetId, configuration, itemPrice, itemCount, itemName, itemCustomId, orderId, orderCustomId, orderDetails, orderPrice, customerId, customerCustomId, customerDetails }: { | ||
configurationId?: string; | ||
cartCustomId?: string; | ||
addToCartType?: string; | ||
eventSubType?: string; | ||
assetId?: string; | ||
@@ -150,5 +150,5 @@ configuration?: Configuration; | ||
}): void; | ||
purchase({ configurationId, purchaseType, orderId, orderCustomId, orderDetails, orderPrice, cart, purchaseCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }: { | ||
purchase({ configurationId, eventSubType, orderId, orderCustomId, orderDetails, orderPrice, cart, purchaseCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }: { | ||
configurationId?: string; | ||
purchaseType?: string; | ||
eventSubType?: string; | ||
orderId?: string; | ||
@@ -173,5 +173,5 @@ orderCustomId?: string; | ||
}): void; | ||
quote({ configurationId, quoteType, orderId, orderCustomId, orderDetails, orderPrice, cart, quoteCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }: { | ||
quote({ configurationId, eventSubType, orderId, orderCustomId, orderDetails, orderPrice, cart, quoteCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }: { | ||
configurationId?: string; | ||
quoteType?: string; | ||
eventSubType?: string; | ||
orderId?: string; | ||
@@ -196,5 +196,5 @@ orderCustomId?: string; | ||
}): void; | ||
lead({ configurationId, leadType, orderId, orderCustomId, orderDetails, orderPrice, leadCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }: { | ||
lead({ configurationId, eventSubType, orderId, orderCustomId, orderDetails, orderPrice, leadCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }: { | ||
configurationId?: string; | ||
leadType?: string; | ||
eventSubType?: string; | ||
orderId?: string; | ||
@@ -201,0 +201,0 @@ orderCustomId?: string; |
@@ -359,3 +359,3 @@ import { errorToString } from '@threekit/diagnostics'; | ||
} | ||
addToCart({ configurationId, cartCustomId, addToCartType, assetId, configuration, itemPrice, itemCount = 1, itemName, itemCustomId, orderId, orderCustomId, orderDetails, orderPrice, customerId, customerCustomId, customerDetails }) { | ||
addToCart({ configurationId, cartCustomId, eventSubType, assetId, configuration, itemPrice, itemCount = 1, itemName, itemCustomId, orderId, orderCustomId, orderDetails, orderPrice, customerId, customerCustomId, customerDetails }) { | ||
this.tryCatchBlock(() => { | ||
@@ -368,3 +368,3 @@ const event = { | ||
eventType: Event2Type.AddToCart, | ||
addToCartType, | ||
eventSubType, | ||
itemName, | ||
@@ -387,3 +387,3 @@ itemCustomId, | ||
} | ||
purchase({ configurationId, purchaseType, orderId, orderCustomId, orderDetails, orderPrice, cart, purchaseCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }) { | ||
purchase({ configurationId, eventSubType, orderId, orderCustomId, orderDetails, orderPrice, cart, purchaseCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }) { | ||
this.tryCatchBlock(() => { | ||
@@ -396,3 +396,3 @@ const event = { | ||
eventType: Event2Type.Purchase, | ||
purchaseType, | ||
eventSubType, | ||
configurationId, | ||
@@ -412,3 +412,3 @@ orderId, | ||
} | ||
quote({ configurationId, quoteType, orderId, orderCustomId, orderDetails, orderPrice, cart, quoteCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }) { | ||
quote({ configurationId, eventSubType, orderId, orderCustomId, orderDetails, orderPrice, cart, quoteCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }) { | ||
this.tryCatchBlock(() => { | ||
@@ -421,3 +421,3 @@ const event = { | ||
eventType: Event2Type.Quote, | ||
quoteType, | ||
eventSubType, | ||
configurationId, | ||
@@ -437,3 +437,3 @@ orderId, | ||
} | ||
lead({ configurationId, leadType, orderId, orderCustomId, orderDetails, orderPrice, leadCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }) { | ||
lead({ configurationId, eventSubType, orderId, orderCustomId, orderDetails, orderPrice, leadCustomId, assetId, configuration, customerId, customerCustomId, customerDetails }) { | ||
this.tryCatchBlock(() => { | ||
@@ -446,3 +446,3 @@ const event = { | ||
eventType: Event2Type.Lead, | ||
leadType, | ||
eventSubType, | ||
configurationId, | ||
@@ -449,0 +449,0 @@ orderId, |
{ | ||
"name": "@threekit/analytics", | ||
"version": "0.1.87", | ||
"version": "0.1.88", | ||
"type": "module", | ||
@@ -9,7 +9,7 @@ "main": "dist/index.js", | ||
"@threekit/diagnostics": "*", | ||
"@threekit/rest-api": "^0.1.87", | ||
"@threekit/rest-api": "^0.1.88", | ||
"uuid": "^9.0.1" | ||
}, | ||
"sideEffects": false, | ||
"gitHead": "8ae56bf53302c73864dcb48ebd95c5b8f6843218" | ||
"gitHead": "5d87649303ca61e1178eed4a150016e06326801c" | ||
} |
@@ -629,3 +629,3 @@ import { errorToString } from '@threekit/diagnostics'; | ||
cartCustomId, | ||
addToCartType, | ||
eventSubType, | ||
assetId, | ||
@@ -647,3 +647,3 @@ configuration, | ||
cartCustomId?: string; | ||
addToCartType?: string; | ||
eventSubType?: string; | ||
assetId?: string; | ||
@@ -670,3 +670,3 @@ configuration?: Configuration; | ||
eventType: Event2Type.AddToCart, | ||
addToCartType, | ||
eventSubType, | ||
itemName, | ||
@@ -693,3 +693,3 @@ itemCustomId, | ||
configurationId, | ||
purchaseType, | ||
eventSubType, | ||
orderId, | ||
@@ -708,3 +708,3 @@ orderCustomId, | ||
configurationId?: string; | ||
purchaseType?: string; | ||
eventSubType?: string; | ||
orderId?: string; | ||
@@ -736,3 +736,3 @@ orderCustomId?: string; | ||
eventType: Event2Type.Purchase, | ||
purchaseType, | ||
eventSubType, | ||
configurationId, | ||
@@ -756,3 +756,3 @@ orderId, | ||
configurationId, | ||
quoteType, | ||
eventSubType, | ||
orderId, | ||
@@ -771,3 +771,3 @@ orderCustomId, | ||
configurationId?: string; | ||
quoteType?: string; | ||
eventSubType?: string; | ||
orderId?: string; | ||
@@ -799,3 +799,3 @@ orderCustomId?: string; | ||
eventType: Event2Type.Quote, | ||
quoteType, | ||
eventSubType, | ||
configurationId, | ||
@@ -819,3 +819,3 @@ orderId, | ||
configurationId, | ||
leadType, | ||
eventSubType, | ||
orderId, | ||
@@ -833,3 +833,3 @@ orderCustomId, | ||
configurationId?: string; | ||
leadType?: string; | ||
eventSubType?: string; | ||
orderId?: string; | ||
@@ -853,3 +853,3 @@ orderCustomId?: string; | ||
eventType: Event2Type.Lead, | ||
leadType, | ||
eventSubType, | ||
configurationId, | ||
@@ -856,0 +856,0 @@ orderId, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
185229
Updated@threekit/rest-api@^0.1.88