@agenus-io/pixel-backend-sdk 1.1.0 → 1.1.1
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/README.md +2 -2
- package/dist/Class/interface.d.ts +6 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/types.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -207,9 +207,9 @@ type PurchaseSendType = "SALES_APPROVED" | "SALES_APPROVED_AND_PENDING";
|
|
|
207
207
|
type PurchaseValueType = "SALE_VALUE" | "COMMISSION";
|
|
208
208
|
```
|
|
209
209
|
|
|
210
|
-
### `
|
|
210
|
+
### `PixelDetection`
|
|
211
211
|
```typescript
|
|
212
|
-
type
|
|
212
|
+
type PixelDetection = "AUTOMATIC" | "CONTAINS_TEXT" | "CONTAINS_CSS" | "CONTAINS_URL";
|
|
213
213
|
```
|
|
214
214
|
|
|
215
215
|
### `SendIp`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PixelDetection, MarketingPlatform, PurchaseSendType, PurchaseValueType, SendIp } from '../types';
|
|
2
2
|
interface CreatePixel {
|
|
3
3
|
title: string;
|
|
4
4
|
status: boolean;
|
|
@@ -6,8 +6,10 @@ interface CreatePixel {
|
|
|
6
6
|
sendLeadText?: string;
|
|
7
7
|
addToCart: boolean;
|
|
8
8
|
addToCartText?: string;
|
|
9
|
+
addToCartDetection: PixelDetection;
|
|
10
|
+
sendLeadDetection: PixelDetection;
|
|
9
11
|
initiateCheckout: boolean;
|
|
10
|
-
initiateCheckoutDetection:
|
|
12
|
+
initiateCheckoutDetection: PixelDetection;
|
|
11
13
|
initiateCheckoutDetectionText?: string;
|
|
12
14
|
purchaseSendType: PurchaseSendType;
|
|
13
15
|
purchaseValueType: PurchaseValueType;
|
|
@@ -84,7 +86,7 @@ export declare namespace IGetPixelDTO {
|
|
|
84
86
|
addToCart: boolean;
|
|
85
87
|
addToCartText: string | null;
|
|
86
88
|
initiateCheckout: boolean;
|
|
87
|
-
initiateCheckoutDetection:
|
|
89
|
+
initiateCheckoutDetection: PixelDetection;
|
|
88
90
|
initiateCheckoutDetectionText: string | null;
|
|
89
91
|
purchaseSendType: PurchaseSendType;
|
|
90
92
|
purchaseValueType: PurchaseValueType;
|
|
@@ -142,7 +144,7 @@ export declare namespace IGetOnePixelDTO {
|
|
|
142
144
|
addToCart: boolean;
|
|
143
145
|
addToCartText: string | null;
|
|
144
146
|
initiateCheckout: boolean;
|
|
145
|
-
initiateCheckoutDetection:
|
|
147
|
+
initiateCheckoutDetection: PixelDetection;
|
|
146
148
|
initiateCheckoutDetectionText: string | null;
|
|
147
149
|
purchaseSendType: PurchaseSendType;
|
|
148
150
|
purchaseValueType: PurchaseValueType;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export type { AWSConfig, SendSaleParams } from "./config";
|
|
8
8
|
export { PixelSDK } from "./Class";
|
|
9
|
-
export type {
|
|
10
|
-
export {
|
|
9
|
+
export type { PixelDetection, MarketingPlatform, PurchaseEventType, PurchaseSendType, PurchaseValueType, SendIp, Order, } from "./types";
|
|
10
|
+
export { PixelDetectionEnum, PurchaseValueTypeEnum, MarketingPlatformEnum, PurchaseEventTypeEnum, PurchaseSendTypeEnum, SendIpEnum, } from "./types";
|
package/dist/index.js
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* para o micro-serviço de pixels através de uma fila AWS SQS.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.SendIpEnum = exports.PurchaseSendTypeEnum = exports.PurchaseEventTypeEnum = exports.MarketingPlatformEnum = exports.PurchaseValueTypeEnum = exports.
|
|
9
|
+
exports.SendIpEnum = exports.PurchaseSendTypeEnum = exports.PurchaseEventTypeEnum = exports.MarketingPlatformEnum = exports.PurchaseValueTypeEnum = exports.PixelDetectionEnum = exports.PixelSDK = void 0;
|
|
10
10
|
var Class_1 = require("./Class");
|
|
11
11
|
Object.defineProperty(exports, "PixelSDK", { enumerable: true, get: function () { return Class_1.PixelSDK; } });
|
|
12
12
|
var types_1 = require("./types");
|
|
13
|
-
Object.defineProperty(exports, "
|
|
13
|
+
Object.defineProperty(exports, "PixelDetectionEnum", { enumerable: true, get: function () { return types_1.PixelDetectionEnum; } });
|
|
14
14
|
Object.defineProperty(exports, "PurchaseValueTypeEnum", { enumerable: true, get: function () { return types_1.PurchaseValueTypeEnum; } });
|
|
15
15
|
Object.defineProperty(exports, "MarketingPlatformEnum", { enumerable: true, get: function () { return types_1.MarketingPlatformEnum; } });
|
|
16
16
|
Object.defineProperty(exports, "PurchaseEventTypeEnum", { enumerable: true, get: function () { return types_1.PurchaseEventTypeEnum; } });
|
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type PixelDetection = "AUTOMATIC" | "CLASS" | "ID" | "ATTRIBUTE" | "DATA_ATTRIBUTE" | "TAG" | "URL" | "CUSTOM" | "TEXT";
|
|
2
2
|
export type PurchaseSendType = "SALES_APPROVED" | "SALES_APPROVED_AND_PENDING";
|
|
3
3
|
export type PurchaseEventType = "PURCHASE_PENDING" | "PURCHASE_COMPLETED";
|
|
4
4
|
export type SendIp = "IPV6_AND_IPV4" | "ONLY_IPV6" | "DONT_SEND";
|
|
5
5
|
export type MarketingPlatform = "GOOGLE" | "META" | "TIKTOK";
|
|
6
6
|
export type PurchaseValueType = "SALE_VALUE" | "COMMISSION";
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const PixelDetectionEnum: Record<PixelDetection, PixelDetection>;
|
|
8
8
|
export declare const PurchaseSendTypeEnum: Record<PurchaseSendType, PurchaseSendType>;
|
|
9
9
|
export declare const PurchaseValueTypeEnum: Record<PurchaseValueType, PurchaseValueType>;
|
|
10
10
|
export declare const SendIpEnum: Record<SendIp, SendIp>;
|
package/dist/types.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PurchaseEventTypeEnum = exports.MarketingPlatformEnum = exports.SendIpEnum = exports.PurchaseValueTypeEnum = exports.PurchaseSendTypeEnum = exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.PurchaseEventTypeEnum = exports.MarketingPlatformEnum = exports.SendIpEnum = exports.PurchaseValueTypeEnum = exports.PurchaseSendTypeEnum = exports.PixelDetectionEnum = void 0;
|
|
4
|
+
exports.PixelDetectionEnum = {
|
|
5
5
|
AUTOMATIC: "AUTOMATIC",
|
|
6
6
|
CLASS: "CLASS",
|
|
7
7
|
ID: "ID",
|