@adtrackify/at-tracking-event-types 1.0.24 → 1.0.27

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.
@@ -33,13 +33,13 @@ export declare enum ShopifyAppSubscriptionStatus {
33
33
  NOT_SUBMITTED = "na"
34
34
  }
35
35
  export interface ShopifyInstallRequest {
36
- shop: string;
37
- session: string;
38
- hmac: string;
39
- host: string;
40
- nonce: string;
41
- timestamp: string;
42
- status: string;
36
+ shop?: string;
37
+ session?: string;
38
+ hmac?: string;
39
+ host?: string;
40
+ nonce?: string;
41
+ timestamp?: string;
42
+ status?: string;
43
43
  }
44
44
  export interface ShopifyStoreInfo {
45
45
  [key: string]: any;
@@ -5,11 +5,29 @@ export interface Subscription {
5
5
  shopifyDomain?: string;
6
6
  stripeCustomerId?: string;
7
7
  stripeSubscriptionId?: string;
8
- subscriptionPlan: any;
9
- paymentGateway: PAYMENT_GATEWAY;
8
+ stripeCompletedCheckoutSession?: any;
9
+ subscriptionPlan?: any;
10
+ status?: SUBSCRIPTION_STATUS;
11
+ paymentStatus?: PAYMENT_STATUS;
12
+ paymentGateway?: PAYMENT_GATEWAY;
10
13
  createdAt: string;
11
14
  updatedAt: string;
12
15
  }
16
+ export declare enum PAYMENT_STATUS {
17
+ CURRENT = "current",
18
+ PAST_DUE = "past_due",
19
+ CANCELLED = "cancelled",
20
+ FAILED = "failed"
21
+ }
22
+ export declare enum SUBSCRIPTION_STATUS {
23
+ ACTIVE = "active",
24
+ CANCELLED = "cancelled",
25
+ DECLINED = "declined",
26
+ EXPIRED = "expired",
27
+ FROZEN = "frozen",
28
+ PENDING = "pending",
29
+ NOT_SUBMITTED = "na"
30
+ }
13
31
  export declare enum PAYMENT_GATEWAY {
14
32
  STRIPE = "stripe",
15
33
  PAYPAL = "paypal",
@@ -1,6 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PAYMENT_GATEWAY = void 0;
3
+ exports.PAYMENT_GATEWAY = exports.SUBSCRIPTION_STATUS = exports.PAYMENT_STATUS = void 0;
4
+ var PAYMENT_STATUS;
5
+ (function (PAYMENT_STATUS) {
6
+ PAYMENT_STATUS["CURRENT"] = "current";
7
+ PAYMENT_STATUS["PAST_DUE"] = "past_due";
8
+ PAYMENT_STATUS["CANCELLED"] = "cancelled";
9
+ PAYMENT_STATUS["FAILED"] = "failed";
10
+ })(PAYMENT_STATUS = exports.PAYMENT_STATUS || (exports.PAYMENT_STATUS = {}));
11
+ var SUBSCRIPTION_STATUS;
12
+ (function (SUBSCRIPTION_STATUS) {
13
+ SUBSCRIPTION_STATUS["ACTIVE"] = "active";
14
+ SUBSCRIPTION_STATUS["CANCELLED"] = "cancelled";
15
+ SUBSCRIPTION_STATUS["DECLINED"] = "declined";
16
+ SUBSCRIPTION_STATUS["EXPIRED"] = "expired";
17
+ SUBSCRIPTION_STATUS["FROZEN"] = "frozen";
18
+ SUBSCRIPTION_STATUS["PENDING"] = "pending";
19
+ SUBSCRIPTION_STATUS["NOT_SUBMITTED"] = "na";
20
+ })(SUBSCRIPTION_STATUS = exports.SUBSCRIPTION_STATUS || (exports.SUBSCRIPTION_STATUS = {}));
4
21
  var PAYMENT_GATEWAY;
5
22
  (function (PAYMENT_GATEWAY) {
6
23
  PAYMENT_GATEWAY["STRIPE"] = "stripe";
@@ -1 +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"}
1
+ {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../src/types/api/subscription.ts"],"names":[],"mappings":";;;AAkBA,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;IACvB,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,2CAAoB,CAAA;AACtB,CAAC,EARW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQ9B;AACD,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-tracking-event-types",
3
- "version": "1.0.24",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -35,13 +35,13 @@ export enum ShopifyAppSubscriptionStatus {
35
35
  }
36
36
 
37
37
  export interface ShopifyInstallRequest {
38
- shop: string;
39
- session: string;
40
- hmac: string;
41
- host: string;
42
- nonce: string;
43
- timestamp: string;
44
- status: string;
38
+ shop?: string;
39
+ session?: string;
40
+ hmac?: string;
41
+ host?: string;
42
+ nonce?: string;
43
+ timestamp?: string;
44
+ status?: string;
45
45
  }
46
46
 
47
47
  export interface ShopifyStoreInfo {
@@ -1,3 +1,4 @@
1
+
1
2
  export interface Subscription {
2
3
  id: string,
3
4
  accountId?: string,
@@ -5,13 +6,32 @@ export interface Subscription {
5
6
  shopifyDomain?: string,
6
7
  stripeCustomerId?: string,
7
8
  stripeSubscriptionId?: string,
8
- subscriptionPlan: any,
9
- paymentGateway: PAYMENT_GATEWAY;
9
+ stripeCompletedCheckoutSession?: any;
10
+ subscriptionPlan?: any,
11
+ status?: SUBSCRIPTION_STATUS,
12
+ paymentStatus?: PAYMENT_STATUS,
13
+ paymentGateway?: PAYMENT_GATEWAY,
10
14
  createdAt: string,
11
15
  updatedAt: string,
12
16
 
13
17
  }
14
18
 
19
+ export enum PAYMENT_STATUS {
20
+ CURRENT = 'current',
21
+ PAST_DUE = 'past_due',
22
+ CANCELLED = 'cancelled',
23
+ FAILED = 'failed'
24
+ }
25
+
26
+ export enum SUBSCRIPTION_STATUS {
27
+ ACTIVE = 'active', // approved and billed to shop
28
+ CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation
29
+ DECLINED = 'declined', // subscription declined by merchant
30
+ EXPIRED = 'expired', //wasn't approved within two days of being created
31
+ FROZEN = 'frozen', //on hold due to not payment
32
+ PENDING = 'pending', // pending approval
33
+ NOT_SUBMITTED = 'na' // billing has not yet been attempted
34
+ }
15
35
  export enum PAYMENT_GATEWAY {
16
36
  STRIPE = 'stripe',
17
37
  PAYPAL = 'paypal',