@adtrackify/at-tracking-event-types 1.0.20 → 1.0.21
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/dist/types/api/destination.d.ts +28 -12
- package/dist/types/api/destination.js +0 -6
- package/dist/types/api/destination.js.map +1 -1
- package/dist/types/api/destinations.d.ts +6 -0
- package/dist/types/api/destinations.js +11 -0
- package/dist/types/api/destinations.js.map +1 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/index.js +2 -0
- package/dist/types/api/index.js.map +1 -1
- package/dist/types/api/shopify-app-install.d.ts +29 -0
- package/dist/types/api/shopify-app-install.js +3 -0
- package/dist/types/api/shopify-app-install.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/types/api/destination.ts +32 -18
- package/src/types/api/destinations.ts +6 -0
- package/src/types/api/index.ts +3 -1
- package/src/types/api/shopify-app-install.ts +32 -0
|
@@ -1,22 +1,38 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface Destination {
|
|
2
2
|
id: string;
|
|
3
3
|
accountId: string;
|
|
4
4
|
pixelId: string;
|
|
5
5
|
destination: string;
|
|
6
|
-
displayName
|
|
7
|
-
configuration?: any;
|
|
6
|
+
displayName?: string;
|
|
8
7
|
enabled: boolean;
|
|
8
|
+
configuration: any;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DestinationCatalogItem {
|
|
13
|
+
id: string;
|
|
14
|
+
active: boolean;
|
|
15
|
+
destinationKey: string;
|
|
16
|
+
destinationType: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
shortName: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
url: string;
|
|
21
|
+
fields?: any;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
9
24
|
}
|
|
10
|
-
export interface
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
25
|
+
export interface DestinationCatalogFields {
|
|
26
|
+
component_type: string;
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
label: string;
|
|
30
|
+
type: string;
|
|
31
|
+
required: boolean;
|
|
32
|
+
order: number;
|
|
16
33
|
}
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
GOOGLE_ANALYTICS_4 = "googleAnalytics4"
|
|
34
|
+
export interface AdTrackifyFacebookDestination extends Destination {
|
|
35
|
+
configuration: FacebookPixelConfiguration;
|
|
20
36
|
}
|
|
21
37
|
export interface FacebookPixelConfiguration {
|
|
22
38
|
apiAccessToken?: string;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ADTRACKIFY_DESTINATIONS = void 0;
|
|
4
|
-
var ADTRACKIFY_DESTINATIONS;
|
|
5
|
-
(function (ADTRACKIFY_DESTINATIONS) {
|
|
6
|
-
ADTRACKIFY_DESTINATIONS["FACEBOOK"] = "facebook";
|
|
7
|
-
ADTRACKIFY_DESTINATIONS["GOOGLE_ANALYTICS_4"] = "googleAnalytics4";
|
|
8
|
-
})(ADTRACKIFY_DESTINATIONS = exports.ADTRACKIFY_DESTINATIONS || (exports.ADTRACKIFY_DESTINATIONS = {}));
|
|
9
3
|
//# sourceMappingURL=destination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destination.js","sourceRoot":"","sources":["../../../src/types/api/destination.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"destination.js","sourceRoot":"","sources":["../../../src/types/api/destination.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DESTINATIONS = void 0;
|
|
4
|
+
var DESTINATIONS;
|
|
5
|
+
(function (DESTINATIONS) {
|
|
6
|
+
DESTINATIONS["FACEBOOK"] = "facebook";
|
|
7
|
+
DESTINATIONS["TIKTOK"] = "tiktok";
|
|
8
|
+
DESTINATIONS["GOOGLE_ADS"] = "googleAds";
|
|
9
|
+
DESTINATIONS["GOOGLE_ANALYTICS_4"] = "googleAnalytics4";
|
|
10
|
+
})(DESTINATIONS = exports.DESTINATIONS || (exports.DESTINATIONS = {}));
|
|
11
|
+
//# sourceMappingURL=destinations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../../src/types/api/destinations.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,wCAAwB,CAAA;IACxB,uDAAuC,CAAA;AACzC,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB"}
|
package/dist/types/api/index.js
CHANGED
|
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./shopify-app-install"), exports);
|
|
17
18
|
__exportStar(require("./destination"), exports);
|
|
19
|
+
__exportStar(require("./destinations"), exports);
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface ShopifyAppInstall {
|
|
2
|
+
shopifyAppInstallId: string;
|
|
3
|
+
accessToken?: string;
|
|
4
|
+
appStatus?: string;
|
|
5
|
+
code?: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
hmac?: string;
|
|
8
|
+
host?: string;
|
|
9
|
+
installRequest: ShopifyInstallRequest;
|
|
10
|
+
isAppEnabled: boolean;
|
|
11
|
+
pixelId?: string;
|
|
12
|
+
shop: string;
|
|
13
|
+
shopInfo?: any;
|
|
14
|
+
state?: string;
|
|
15
|
+
timestamp?: number;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ShopifyInstallRequest {
|
|
19
|
+
shop: string;
|
|
20
|
+
session: string;
|
|
21
|
+
hmac: string;
|
|
22
|
+
host: string;
|
|
23
|
+
nonce: string;
|
|
24
|
+
timestamp: string;
|
|
25
|
+
status: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ShopifyStoreInfo {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shopify-app-install.js","sourceRoot":"","sources":["../../../src/types/api/shopify-app-install.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types';
|
|
@@ -1,33 +1,47 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
id: string
|
|
3
|
-
accountId: string
|
|
4
|
-
pixelId: string
|
|
1
|
+
export interface Destination {
|
|
2
|
+
id: string,
|
|
3
|
+
accountId: string,
|
|
4
|
+
pixelId: string,
|
|
5
5
|
destination: string;
|
|
6
|
-
displayName
|
|
7
|
-
configuration?: any;
|
|
6
|
+
displayName?: string,
|
|
8
7
|
enabled: boolean;
|
|
8
|
+
configuration: any,
|
|
9
|
+
createdAt: string,
|
|
10
|
+
updatedAt: string;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
export interface DestinationCatalogItem {
|
|
14
|
+
id: string,
|
|
15
|
+
active: boolean,
|
|
16
|
+
destinationKey: string,
|
|
17
|
+
destinationType: string,
|
|
18
|
+
displayName: string,
|
|
19
|
+
shortName: string;
|
|
20
|
+
description?: string,
|
|
21
|
+
url: string,
|
|
22
|
+
fields?: any,
|
|
23
|
+
createdAt: string,
|
|
24
|
+
updatedAt: string;
|
|
18
25
|
}
|
|
19
26
|
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
export interface DestinationCatalogFields {
|
|
28
|
+
component_type: string,
|
|
29
|
+
name: string,
|
|
30
|
+
description: string,
|
|
31
|
+
label: string,
|
|
32
|
+
type: string,
|
|
33
|
+
required: boolean,
|
|
34
|
+
order: number;
|
|
23
35
|
}
|
|
24
36
|
|
|
37
|
+
export interface AdTrackifyFacebookDestination extends Destination {
|
|
38
|
+
configuration: FacebookPixelConfiguration;
|
|
39
|
+
}
|
|
25
40
|
export interface FacebookPixelConfiguration {
|
|
26
41
|
apiAccessToken?: string;
|
|
27
42
|
enableConversionAPI: boolean;
|
|
28
43
|
pixelId: string;
|
|
29
44
|
}
|
|
30
|
-
|
|
31
45
|
export interface GoogleAnalytics4Configuration {
|
|
32
46
|
measurementId: string;
|
|
33
|
-
}
|
|
47
|
+
}
|
package/src/types/api/index.ts
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface ShopifyAppInstall {
|
|
2
|
+
shopifyAppInstallId: string;
|
|
3
|
+
accessToken?: string;
|
|
4
|
+
appStatus?: string;
|
|
5
|
+
code?: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
hmac?: string;
|
|
8
|
+
host?: string;
|
|
9
|
+
installRequest: ShopifyInstallRequest;
|
|
10
|
+
isAppEnabled: boolean;
|
|
11
|
+
pixelId?: string;
|
|
12
|
+
shop: string;
|
|
13
|
+
shopInfo?: any;
|
|
14
|
+
state?: string;
|
|
15
|
+
timestamp?: number;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ShopifyInstallRequest {
|
|
20
|
+
shop: string;
|
|
21
|
+
session: string;
|
|
22
|
+
hmac: string;
|
|
23
|
+
host: string;
|
|
24
|
+
nonce: string;
|
|
25
|
+
timestamp: string;
|
|
26
|
+
status: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ShopifyStoreInfo {
|
|
30
|
+
// TBD based on shopify api
|
|
31
|
+
[ key: string ]: any;
|
|
32
|
+
}
|