@adtrackify/at-tracking-event-types 1.0.21 → 1.0.22

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.
@@ -0,0 +1,15 @@
1
+ export interface Account {
2
+ id: string;
3
+ accountName: string;
4
+ companyName?: string;
5
+ accountStatus: ACCOUNT_STATUS;
6
+ primaryEmail: string;
7
+ publicApiKey?: string;
8
+ subscriptionId?: string;
9
+ ownerId?: string;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ }
13
+ export declare enum ACCOUNT_STATUS {
14
+ PENDING = "pending"
15
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACCOUNT_STATUS = void 0;
4
+ var ACCOUNT_STATUS;
5
+ (function (ACCOUNT_STATUS) {
6
+ ACCOUNT_STATUS["PENDING"] = "pending";
7
+ })(ACCOUNT_STATUS = exports.ACCOUNT_STATUS || (exports.ACCOUNT_STATUS = {}));
8
+ //# sourceMappingURL=account.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/types/api/account.ts"],"names":[],"mappings":";;;AAaA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,qCAAmB,CAAA;AACrB,CAAC,EAFW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAEzB"}
@@ -5,7 +5,7 @@ export interface Destination {
5
5
  destination: string;
6
6
  displayName?: string;
7
7
  enabled: boolean;
8
- configuration: any;
8
+ configuration?: any;
9
9
  createdAt: string;
10
10
  updatedAt: string;
11
11
  }
@@ -14,8 +14,8 @@ export interface DestinationCatalogItem {
14
14
  active: boolean;
15
15
  destinationKey: string;
16
16
  destinationType: string;
17
- displayName: string;
18
- shortName: string;
17
+ displayName?: string;
18
+ shortName?: string;
19
19
  description?: string;
20
20
  url: string;
21
21
  fields?: any;
@@ -1,3 +1,6 @@
1
- export * from './shopify-app-install';
1
+ export * from './account';
2
2
  export * from './destination';
3
3
  export * from './destinations';
4
+ export * from './shopify-app-install';
5
+ export * from './subscription';
6
+ export * from './user';
@@ -14,7 +14,10 @@ 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
+ __exportStar(require("./account"), exports);
18
18
  __exportStar(require("./destination"), exports);
19
19
  __exportStar(require("./destinations"), exports);
20
+ __exportStar(require("./shopify-app-install"), exports);
21
+ __exportStar(require("./subscription"), exports);
22
+ __exportStar(require("./user"), exports);
20
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC;AACtC,iDAA+B;AAC/B,yCAAuB"}
@@ -1,20 +1,37 @@
1
1
  export interface ShopifyAppInstall {
2
2
  shopifyAppInstallId: string;
3
+ shop: string;
3
4
  accessToken?: string;
4
5
  appStatus?: string;
6
+ appSubscriptionStatus?: ShopifyAppSubscriptionStatus;
5
7
  code?: string;
6
- createdAt: string;
7
8
  hmac?: string;
8
9
  host?: string;
9
- installRequest: ShopifyInstallRequest;
10
- isAppEnabled: boolean;
10
+ installRequest?: ShopifyInstallRequest;
11
+ isAppEnabled?: boolean;
11
12
  pixelId?: string;
12
- shop: string;
13
13
  shopInfo?: any;
14
14
  state?: string;
15
15
  timestamp?: number;
16
+ createdAt: string;
16
17
  updatedAt: string;
17
18
  }
19
+ export declare enum ShopifyAppInstallStatus {
20
+ STARTED = "started",
21
+ COMPLETED = "completed",
22
+ UNINSTALLED = "uninstalled",
23
+ FAILED = "failed",
24
+ NONE = "none"
25
+ }
26
+ export declare enum ShopifyAppSubscriptionStatus {
27
+ ACTIVE = "active",
28
+ CANCELLED = "cancelled",
29
+ DECLINED = "declined",
30
+ EXPIRED = "expired",
31
+ FROZEN = "frozen",
32
+ PENDING = "pending",
33
+ NOT_SUBMITTED = "na"
34
+ }
18
35
  export interface ShopifyInstallRequest {
19
36
  shop: string;
20
37
  session: string;
@@ -1,3 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShopifyAppSubscriptionStatus = exports.ShopifyAppInstallStatus = void 0;
4
+ var ShopifyAppInstallStatus;
5
+ (function (ShopifyAppInstallStatus) {
6
+ ShopifyAppInstallStatus["STARTED"] = "started";
7
+ ShopifyAppInstallStatus["COMPLETED"] = "completed";
8
+ ShopifyAppInstallStatus["UNINSTALLED"] = "uninstalled";
9
+ ShopifyAppInstallStatus["FAILED"] = "failed";
10
+ ShopifyAppInstallStatus["NONE"] = "none";
11
+ })(ShopifyAppInstallStatus = exports.ShopifyAppInstallStatus || (exports.ShopifyAppInstallStatus = {}));
12
+ var ShopifyAppSubscriptionStatus;
13
+ (function (ShopifyAppSubscriptionStatus) {
14
+ ShopifyAppSubscriptionStatus["ACTIVE"] = "active";
15
+ ShopifyAppSubscriptionStatus["CANCELLED"] = "cancelled";
16
+ ShopifyAppSubscriptionStatus["DECLINED"] = "declined";
17
+ ShopifyAppSubscriptionStatus["EXPIRED"] = "expired";
18
+ ShopifyAppSubscriptionStatus["FROZEN"] = "frozen";
19
+ ShopifyAppSubscriptionStatus["PENDING"] = "pending";
20
+ ShopifyAppSubscriptionStatus["NOT_SUBMITTED"] = "na";
21
+ })(ShopifyAppSubscriptionStatus = exports.ShopifyAppSubscriptionStatus || (exports.ShopifyAppSubscriptionStatus = {}));
3
22
  //# sourceMappingURL=shopify-app-install.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shopify-app-install.js","sourceRoot":"","sources":["../../../src/types/api/shopify-app-install.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"shopify-app-install.js","sourceRoot":"","sources":["../../../src/types/api/shopify-app-install.ts"],"names":[],"mappings":";;;AAmBA,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,sDAA2B,CAAA;IAC3B,4CAAiB,CAAA;IACjB,wCAAa,CAAA;AACf,CAAC,EANW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAMlC;AACD,IAAY,4BAQX;AARD,WAAY,4BAA4B;IACtC,iDAAiB,CAAA;IACjB,uDAAuB,CAAA;IACvB,qDAAqB,CAAA;IACrB,mDAAmB,CAAA;IACnB,iDAAiB,CAAA;IACjB,mDAAmB,CAAA;IACnB,oDAAoB,CAAA;AACtB,CAAC,EARW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAQvC"}
@@ -0,0 +1,17 @@
1
+ export interface Subscription {
2
+ id: string;
3
+ accountId?: string;
4
+ shopifyAppInstallId?: string;
5
+ shopifyDomain?: string;
6
+ stripeCustomerId?: string;
7
+ stripeSubscriptionId?: string;
8
+ subscriptionPlan: any;
9
+ paymentGateway: PAYMENT_GATEWAY;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ }
13
+ export declare enum PAYMENT_GATEWAY {
14
+ STRIPE = "stripe",
15
+ PAYPAL = "paypal",
16
+ SHOPIFY = "shopify"
17
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PAYMENT_GATEWAY = void 0;
4
+ var PAYMENT_GATEWAY;
5
+ (function (PAYMENT_GATEWAY) {
6
+ PAYMENT_GATEWAY["STRIPE"] = "stripe";
7
+ PAYMENT_GATEWAY["PAYPAL"] = "paypal";
8
+ PAYMENT_GATEWAY["SHOPIFY"] = "shopify";
9
+ })(PAYMENT_GATEWAY = exports.PAYMENT_GATEWAY || (exports.PAYMENT_GATEWAY = {}));
10
+ //# sourceMappingURL=subscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/types/api/subscription.ts"],"names":[],"mappings":";;;AAcA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
@@ -0,0 +1,11 @@
1
+ export interface User {
2
+ sub: string;
3
+ Username: string;
4
+ UserLastModifiedDate: string;
5
+ Enabled: boolean;
6
+ UserStatus: string;
7
+ email: string;
8
+ email_verified: string;
9
+ name: string;
10
+ family_name: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/api/user.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-tracking-event-types",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -72,4 +72,4 @@
72
72
  "author": "",
73
73
  "license": "ISC",
74
74
  "homepage": "https://bitbucket.org/eacap/at-tracking-event-types#readme"
75
- }
75
+ }
@@ -0,0 +1,16 @@
1
+ export interface Account {
2
+ id: string,
3
+ accountName: string,
4
+ companyName?: string,
5
+ accountStatus: ACCOUNT_STATUS,
6
+ primaryEmail: string,
7
+ publicApiKey?: string,
8
+ subscriptionId?: string,
9
+ ownerId?: string,
10
+ createdAt: string,
11
+ updatedAt: string;
12
+ }
13
+
14
+ export enum ACCOUNT_STATUS {
15
+ PENDING = 'pending'
16
+ }
@@ -5,7 +5,7 @@ export interface Destination {
5
5
  destination: string;
6
6
  displayName?: string,
7
7
  enabled: boolean;
8
- configuration: any,
8
+ configuration?: any,
9
9
  createdAt: string,
10
10
  updatedAt: string;
11
11
  }
@@ -15,8 +15,8 @@ export interface DestinationCatalogItem {
15
15
  active: boolean,
16
16
  destinationKey: string,
17
17
  destinationType: string,
18
- displayName: string,
19
- shortName: string;
18
+ displayName?: string,
19
+ shortName?: string;
20
20
  description?: string,
21
21
  url: string,
22
22
  fields?: any,
@@ -1,3 +1,6 @@
1
- export * from './shopify-app-install';
1
+ export * from './account';
2
2
  export * from './destination';
3
- export * from './destinations';
3
+ export * from './destinations';
4
+ export * from './shopify-app-install';
5
+ export * from './subscription';
6
+ export * from './user';
@@ -1,21 +1,39 @@
1
1
  export interface ShopifyAppInstall {
2
2
  shopifyAppInstallId: string;
3
+ shop: string;
3
4
  accessToken?: string;
4
5
  appStatus?: string;
6
+ appSubscriptionStatus?: ShopifyAppSubscriptionStatus;
5
7
  code?: string;
6
- createdAt: string;
7
8
  hmac?: string;
8
9
  host?: string;
9
- installRequest: ShopifyInstallRequest;
10
- isAppEnabled: boolean;
10
+ installRequest?: ShopifyInstallRequest;
11
+ isAppEnabled?: boolean;
11
12
  pixelId?: string;
12
- shop: string;
13
13
  shopInfo?: any;
14
14
  state?: string;
15
15
  timestamp?: number;
16
+ createdAt: string;
16
17
  updatedAt: string;
17
18
  }
18
19
 
20
+ export enum ShopifyAppInstallStatus {
21
+ STARTED = 'started',
22
+ COMPLETED = 'completed',
23
+ UNINSTALLED = 'uninstalled',
24
+ FAILED = 'failed',
25
+ NONE = 'none'
26
+ }
27
+ export enum ShopifyAppSubscriptionStatus {
28
+ ACTIVE = 'active', // approved and billed to shop
29
+ CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation
30
+ DECLINED = 'declined', // subscription declined by merchant
31
+ EXPIRED = 'expired', //wasn't approved within two days of being created
32
+ FROZEN = 'frozen', //on hold due to not payment
33
+ PENDING = 'pending', // pending approval
34
+ NOT_SUBMITTED = 'na' // billing has not yet been attempted
35
+ }
36
+
19
37
  export interface ShopifyInstallRequest {
20
38
  shop: string;
21
39
  session: string;
@@ -0,0 +1,19 @@
1
+ export interface Subscription {
2
+ id: string,
3
+ accountId?: string,
4
+ shopifyAppInstallId?: string,
5
+ shopifyDomain?: string,
6
+ stripeCustomerId?: string,
7
+ stripeSubscriptionId?: string,
8
+ subscriptionPlan: any,
9
+ paymentGateway: PAYMENT_GATEWAY;
10
+ createdAt: string,
11
+ updatedAt: string,
12
+
13
+ }
14
+
15
+ export enum PAYMENT_GATEWAY {
16
+ STRIPE = 'stripe',
17
+ PAYPAL = 'paypal',
18
+ SHOPIFY = 'shopify'
19
+ }
@@ -0,0 +1,12 @@
1
+
2
+ export interface User {
3
+ sub: string,
4
+ Username: string,
5
+ UserLastModifiedDate: string,
6
+ Enabled: boolean,
7
+ UserStatus: string,
8
+ email: string,
9
+ email_verified: string,
10
+ name: string,
11
+ family_name: string,
12
+ }