@adtrackify/at-tracking-event-types 1.0.21 → 1.0.23
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/account.d.ts +17 -0
- package/dist/types/api/account.js +10 -0
- package/dist/types/api/account.js.map +1 -0
- package/dist/types/api/destination.d.ts +3 -3
- package/dist/types/api/index.d.ts +4 -1
- package/dist/types/api/index.js +4 -1
- package/dist/types/api/index.js.map +1 -1
- package/dist/types/api/shopify-app-install.d.ts +21 -4
- package/dist/types/api/shopify-app-install.js +19 -0
- package/dist/types/api/shopify-app-install.js.map +1 -1
- package/dist/types/api/subscription.d.ts +17 -0
- package/dist/types/api/subscription.js +10 -0
- package/dist/types/api/subscription.js.map +1 -0
- package/dist/types/api/user.d.ts +12 -0
- package/dist/types/api/user.js +3 -0
- package/dist/types/api/user.js.map +1 -0
- package/package.json +2 -2
- package/src/types/api/account.ts +18 -0
- package/src/types/api/destination.ts +3 -3
- package/src/types/api/index.ts +5 -2
- package/src/types/api/shopify-app-install.ts +22 -4
- package/src/types/api/subscription.ts +19 -0
- package/src/types/api/user.ts +13 -0
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
ACTIVE = "active",
|
|
16
|
+
INACTIVE = "inactive"
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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["ACTIVE"] = "active";
|
|
8
|
+
ACCOUNT_STATUS["INACTIVE"] = "inactive";
|
|
9
|
+
})(ACCOUNT_STATUS = exports.ACCOUNT_STATUS || (exports.ACCOUNT_STATUS = {}));
|
|
10
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/types/api/account.ts"],"names":[],"mappings":";;;AAaA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
|
|
@@ -5,7 +5,7 @@ export interface Destination {
|
|
|
5
5
|
destination: string;
|
|
6
6
|
displayName?: string;
|
|
7
7
|
enabled: boolean;
|
|
8
|
-
configuration
|
|
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
|
|
18
|
-
shortName
|
|
17
|
+
displayName?: string;
|
|
18
|
+
shortName?: string;
|
|
19
19
|
description?: string;
|
|
20
20
|
url: string;
|
|
21
21
|
fields?: any;
|
package/dist/types/api/index.js
CHANGED
|
@@ -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("./
|
|
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,
|
|
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
|
|
10
|
-
isAppEnabled
|
|
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 @@
|
|
|
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.
|
|
3
|
+
"version": "1.0.23",
|
|
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,18 @@
|
|
|
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
|
+
ACTIVE = 'active',
|
|
17
|
+
INACTIVE = 'inactive'
|
|
18
|
+
}
|
|
@@ -5,7 +5,7 @@ export interface Destination {
|
|
|
5
5
|
destination: string;
|
|
6
6
|
displayName?: string,
|
|
7
7
|
enabled: boolean;
|
|
8
|
-
configuration
|
|
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
|
|
19
|
-
shortName
|
|
18
|
+
displayName?: string,
|
|
19
|
+
shortName?: string;
|
|
20
20
|
description?: string,
|
|
21
21
|
url: string,
|
|
22
22
|
fields?: any,
|
package/src/types/api/index.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
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
|
|
10
|
-
isAppEnabled
|
|
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
|
+
}
|