@artisan-commerce/analytics-rn 0.3.0-canary.32 → 0.3.0-canary.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/bundle.cjs.js +3 -3
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.d.ts +25 -25
- package/dist/bundle.esm.js +3 -3
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/bundle.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Account, Vendor, Store, Catalogue, ArtisnPlatform, CurrencyCodes, Product, ShoppingCart, CartProduct, PriceCategoryType, ShippingAddress, BillingData, Category } from '@artisan-commerce/types';
|
|
1
|
+
import { Account, Vendor, Store, Catalogue, ArtisnPlatform, CurrencyCodes, Product, ShoppingCart, CartProduct, PriceCategoryType, ShippingAddress, BillingData, Order, Category } from '@artisan-commerce/types';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Analytics providers configurable options.
|
|
@@ -518,16 +518,16 @@ interface UpdateWorkflowParams$1 extends SegmentCommonEventParams, SegmentCustom
|
|
|
518
518
|
* Workflow types.
|
|
519
519
|
*
|
|
520
520
|
* @typedef Workflow
|
|
521
|
-
* @since 0.
|
|
521
|
+
* @since 0.1.0
|
|
522
522
|
*/
|
|
523
523
|
declare type Workflow = "Delivery" | "Pickup" | "Other";
|
|
524
524
|
/**
|
|
525
525
|
* PaymentType types
|
|
526
526
|
*
|
|
527
527
|
* @typedef PaymentType
|
|
528
|
-
* @since 0.
|
|
528
|
+
* @since 0.1.0
|
|
529
529
|
*/
|
|
530
|
-
declare type PaymentType = "
|
|
530
|
+
declare type PaymentType = "Cash" | "Card" | "Dataphone" | "Other";
|
|
531
531
|
|
|
532
532
|
/**
|
|
533
533
|
* updateWorkflow event interface.
|
|
@@ -1779,29 +1779,29 @@ interface PurchaseSuccessParams$1 extends SegmentCommonEventParams, SegmentCusto
|
|
|
1779
1779
|
* purchaseSuccess event interface
|
|
1780
1780
|
*
|
|
1781
1781
|
* @interface PurchaseSuccessCommonParams
|
|
1782
|
-
* @since 0.
|
|
1783
|
-
* @property {ShoppingCart} shoppingCart The order shopping cart
|
|
1784
|
-
* @property {PaymentType} selectedPaymentType The selected payment type (e.g. Cash, Credit, Debit)
|
|
1785
|
-
* @property {Workflow} fulfillmentType The workflow name (e.g. Delivery)
|
|
1786
|
-
* @property {string} cardType If paying with card the card provider (e.g. visa)
|
|
1787
|
-
* @property {number} shippingAddressId The selected shipping address identifier
|
|
1788
|
-
* @property {number} billingInfoId The selected billing info identifier
|
|
1789
|
-
* @property {string} orderId The order identifier
|
|
1782
|
+
* @since 0.1.0
|
|
1790
1783
|
*/
|
|
1791
1784
|
interface PurchaseSuccessCommonParams {
|
|
1785
|
+
/** The order shopping cart */
|
|
1792
1786
|
shoppingCart: ShoppingCart;
|
|
1787
|
+
/** The selected payment type (e.g. Cash, Card) */
|
|
1793
1788
|
selectedPaymentType: PaymentType;
|
|
1789
|
+
/** The workflow name (e.g. Delivery) */
|
|
1794
1790
|
fulfillmentType: Workflow;
|
|
1791
|
+
/** If paying with card the card provider (e.g. visa) */
|
|
1795
1792
|
cardType?: string;
|
|
1793
|
+
/** The selected shipping address identifier */
|
|
1796
1794
|
shippingAddressId?: ShippingAddress["id"];
|
|
1795
|
+
/** The selected billing info identifier */
|
|
1797
1796
|
billingInfoId?: BillingData["id"];
|
|
1798
|
-
|
|
1797
|
+
/** The order identifier */
|
|
1798
|
+
orderId: Order["id"];
|
|
1799
1799
|
}
|
|
1800
1800
|
/**
|
|
1801
1801
|
* purchaseSuccess event params.
|
|
1802
1802
|
*
|
|
1803
1803
|
* @typedef PurchaseSuccessParams
|
|
1804
|
-
* @since 0.
|
|
1804
|
+
* @since 0.1.0
|
|
1805
1805
|
*/
|
|
1806
1806
|
declare type PurchaseSuccessParams = PurchaseSuccessParams$3 & PurchaseSuccessParams$2 & PurchaseSuccessParams$1;
|
|
1807
1807
|
|
|
@@ -1847,31 +1847,31 @@ interface PurchaseFailParams$1 extends SegmentCommonEventParams, SegmentCustomEv
|
|
|
1847
1847
|
* purchaseFail event interface
|
|
1848
1848
|
*
|
|
1849
1849
|
* @interface PurchaseFailCommonParams
|
|
1850
|
-
* @since 0.
|
|
1851
|
-
* @property {ShoppingCart} shoppingCart The order shopping cart
|
|
1852
|
-
* @property {string} errorMessage Server error message
|
|
1853
|
-
* @property {number} statusCode Server response status code
|
|
1854
|
-
* @property {PaymentType} selectedPaymentType The selected payment type (e.g. Cash, Credit, Debit)
|
|
1855
|
-
* @property {Workflow} fulfillmentType The workflow name (e.g. Delivery)
|
|
1856
|
-
* @property {string} cardType If paying with card the card provider (e.g. visa)
|
|
1857
|
-
* @property {number} shippingAddressId The selected shipping address identifier
|
|
1858
|
-
* @property {number} billingInfoId The selected billing info identifier
|
|
1850
|
+
* @since 0.1.0
|
|
1859
1851
|
*/
|
|
1860
1852
|
interface PurchaseFailCommonParams {
|
|
1853
|
+
/** The order shopping cart */
|
|
1861
1854
|
shoppingCart: ShoppingCart;
|
|
1855
|
+
/** Server error message */
|
|
1862
1856
|
errorMessage: string;
|
|
1863
|
-
|
|
1857
|
+
/** Server response status code */
|
|
1858
|
+
statusCode?: number;
|
|
1859
|
+
/** The selected payment type (e.g. Cash, Card) */
|
|
1864
1860
|
selectedPaymentType: PaymentType;
|
|
1861
|
+
/** The workflow name (e.g. Delivery) */
|
|
1865
1862
|
fulfillmentType: Workflow;
|
|
1863
|
+
/** If paying with card the card provider (e.g. visa) */
|
|
1866
1864
|
cardType?: string;
|
|
1865
|
+
/** The selected shipping address identifier */
|
|
1867
1866
|
shippingAddressId?: ShippingAddress["id"];
|
|
1867
|
+
/** The selected billing info identifier */
|
|
1868
1868
|
billingInfoId?: BillingData["id"];
|
|
1869
1869
|
}
|
|
1870
1870
|
/**
|
|
1871
1871
|
* purchaseFail event params.
|
|
1872
1872
|
*
|
|
1873
1873
|
* @typedef PurchaseFailParams
|
|
1874
|
-
* @since 0.
|
|
1874
|
+
* @since 0.1.0
|
|
1875
1875
|
*/
|
|
1876
1876
|
declare type PurchaseFailParams = PurchaseFailParams$3 & PurchaseFailParams$2 & PurchaseFailParams$1;
|
|
1877
1877
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -40,7 +40,7 @@ const getState$1 = () => {
|
|
|
40
40
|
|
|
41
41
|
var name = "@artisan-commerce/analytics-rn";
|
|
42
42
|
var description = "Artisn commerce analytics react native library";
|
|
43
|
-
var version = "0.3.0-canary.
|
|
43
|
+
var version = "0.3.0-canary.34";
|
|
44
44
|
var main = "./dist/bundle.cjs.js";
|
|
45
45
|
var module = "./dist/bundle.esm.js";
|
|
46
46
|
var types = "./dist/bundle.d.ts";
|
|
@@ -83,7 +83,7 @@ var dependencies = {
|
|
|
83
83
|
};
|
|
84
84
|
var devDependencies = {
|
|
85
85
|
"@artisan-commerce/products": "0.9.0-canary.23",
|
|
86
|
-
"@artisan-commerce/shopping-cart": "0.12.0-canary.
|
|
86
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.31",
|
|
87
87
|
"@artisan-commerce/types": "0.14.0-canary.19",
|
|
88
88
|
"@babel/core": "^7.13.15",
|
|
89
89
|
"@babel/preset-env": "^7.10.4",
|
|
@@ -135,7 +135,7 @@ var peerDependencies = {
|
|
|
135
135
|
react: ">= 16.8.6",
|
|
136
136
|
"react-native-fbsdk-next": "*"
|
|
137
137
|
};
|
|
138
|
-
var gitHead = "
|
|
138
|
+
var gitHead = "89c09d9f2af48f1dce9431cf1822c82cf1bf6c87";
|
|
139
139
|
var packageJSON = {
|
|
140
140
|
name: name,
|
|
141
141
|
description: description,
|