@adtrackify/at-service-common 1.0.33 → 1.0.35

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@adtrackify/at-service-common",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "scripts": {
8
8
  "clean": "rimraf dist",
9
- "build": "node build.js",
9
+ "build": "npm run clean && npm run verify && cross-env NODE_ENV=production stage=dev APP_ENV=dev node build.js",
10
10
  "build:dev": "npm run clean && npm run verify && cross-env NODE_ENV=production stage=dev APP_ENV=dev npm run build",
11
11
  "build:qa": "npm run clean && npm run verify && cross-env NODE_ENV=production stage=qa APP_ENV=qa webpack",
12
12
  "build:prod": "npm run clean && npm run verify && cross-env NODE_ENV=production stage=prod APP_ENV=prod webpack",
@@ -38,6 +38,7 @@
38
38
  "@types/axios": "^0.14.0"
39
39
  },
40
40
  "devDependencies": {
41
+ "@adtrackify/at-tracking-event-types": "^1.0.21",
41
42
  "@babel/cli": "^7.13.16",
42
43
  "@babel/core": "^7.13.10",
43
44
  "@babel/plugin-proposal-optional-chaining": "^7.13.8",
@@ -87,4 +88,4 @@
87
88
  "author": "",
88
89
  "license": "ISC",
89
90
  "homepage": "https://bitbucket.org/eacap/at-service-common#readme"
90
- }
91
+ }
@@ -1,6 +1,6 @@
1
1
  import * as log from 'lambda-log';
2
2
  import { ApiResponse } from '../../types/api-response';
3
- import { Destination } from '../../types/db/destination';
3
+ import { Destination } from '@adtrackify/at-tracking-event-types';
4
4
  import { axiosHttpService } from '../generic/http-client';
5
5
 
6
6
  //const BASE_API_URL = process.env.BASE_API_URL;
@@ -1,7 +1,7 @@
1
1
  import * as log from 'lambda-log';
2
2
  import { ApiResponse } from '../../types/api-response';
3
3
  import { axiosHttpService } from '../generic/http-client';
4
- import { Destination } from '../../types/db/destination';
4
+ import { Destination } from '@adtrackify/at-tracking-event-types';
5
5
  //const BASE_API_URL = process.env.BASE_API_URL;
6
6
  //const DESTINATIONS_API_KEY = process.env.DESTINATIONS_API_KEY;
7
7
 
@@ -1,2 +1 @@
1
- export * from './db';
2
1
  export * from './internal-events';
@@ -1,47 +0,0 @@
1
- export interface Destination {
2
- id: string,
3
- accountId: string,
4
- pixelId: string,
5
- destination: string;
6
- displayName?: string,
7
- enabled: boolean;
8
- configuration: any,
9
- createdAt: string,
10
- updatedAt: string;
11
- }
12
-
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;
25
- }
26
-
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;
35
- }
36
-
37
- export interface AdTrackifyFacebookDestination extends Destination {
38
- configuration: FacebookPixelConfiguration;
39
- }
40
- export interface FacebookPixelConfiguration {
41
- apiAccessToken?: string;
42
- enableConversionAPI: boolean;
43
- pixelId: string;
44
- }
45
- export interface GoogleAnalytics4Configuration {
46
- measurementId: string;
47
- }
@@ -1,6 +0,0 @@
1
- export enum DESTINATIONS {
2
- FACEBOOK = 'facebook',
3
- TIKTOK = 'tiktok',
4
- GOOGLE_ADS = 'googleAds',
5
- GOOGLE_ANALYTICS_4 = 'googleAnalytics4'
6
- }
@@ -1,3 +0,0 @@
1
- export * from './shopify-app-install';
2
- export * from './destination';
3
- export * from './destinations';
@@ -1,32 +0,0 @@
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
- }