@adtrackify/at-tracking-event-types 3.1.94 → 3.2.1
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/cjs/types/api/account.d.ts +14 -0
- package/dist/cjs/types/api/account.js +14 -1
- package/dist/cjs/types/api/account.js.map +1 -1
- package/dist/cjs/types/api/contact-acquisition.d.ts +12 -14
- package/dist/cjs/types/api/subscription.d.ts +32 -24
- package/dist/cjs/types/api/subscription.js.map +1 -1
- package/dist/esm/types/api/account.d.ts +14 -0
- package/dist/esm/types/api/account.js +13 -0
- package/dist/esm/types/api/account.js.map +1 -1
- package/dist/esm/types/api/contact-acquisition.d.ts +12 -14
- package/dist/esm/types/api/subscription.d.ts +32 -24
- package/dist/esm/types/api/subscription.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,6 +4,9 @@ export interface Account {
|
|
|
4
4
|
accountName: string;
|
|
5
5
|
companyName?: string;
|
|
6
6
|
accountStatus: ACCOUNT_STATUS;
|
|
7
|
+
accountStatusDetail?: ACCOUNT_STATUS_DETAIL;
|
|
8
|
+
cancelledOn?: string;
|
|
9
|
+
cancelledBy?: ACCOUNT_CANCELLED_BY;
|
|
7
10
|
disablingOn?: string;
|
|
8
11
|
disabledOn?: string;
|
|
9
12
|
statusMessage?: string;
|
|
@@ -42,6 +45,17 @@ export declare enum ACCOUNT_STATUS {
|
|
|
42
45
|
DISABLED = "disabled",
|
|
43
46
|
CANCELLED = "cancelled"
|
|
44
47
|
}
|
|
48
|
+
export declare enum ACCOUNT_STATUS_DETAIL {
|
|
49
|
+
CANCELLED = "cancelled",
|
|
50
|
+
UNINSTALLED = "uninstalled",
|
|
51
|
+
BANNED = "banned",
|
|
52
|
+
OTHER = "other"
|
|
53
|
+
}
|
|
54
|
+
export declare enum ACCOUNT_CANCELLED_BY {
|
|
55
|
+
USER = "user",
|
|
56
|
+
SYSTEM = "system",
|
|
57
|
+
ADMIN = "admin"
|
|
58
|
+
}
|
|
45
59
|
export interface AccountSettings {
|
|
46
60
|
defaultTimezone?: string;
|
|
47
61
|
selectedTimezone?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FEATURE_FLAG = exports.ACCOUNT_STATUS = exports.PIXEL_STATUS = void 0;
|
|
3
|
+
exports.FEATURE_FLAG = exports.ACCOUNT_CANCELLED_BY = exports.ACCOUNT_STATUS_DETAIL = exports.ACCOUNT_STATUS = exports.PIXEL_STATUS = void 0;
|
|
4
4
|
var PIXEL_STATUS;
|
|
5
5
|
(function (PIXEL_STATUS) {
|
|
6
6
|
PIXEL_STATUS["ACTIVE"] = "active";
|
|
@@ -16,6 +16,19 @@ var ACCOUNT_STATUS;
|
|
|
16
16
|
ACCOUNT_STATUS["DISABLED"] = "disabled";
|
|
17
17
|
ACCOUNT_STATUS["CANCELLED"] = "cancelled";
|
|
18
18
|
})(ACCOUNT_STATUS = exports.ACCOUNT_STATUS || (exports.ACCOUNT_STATUS = {}));
|
|
19
|
+
var ACCOUNT_STATUS_DETAIL;
|
|
20
|
+
(function (ACCOUNT_STATUS_DETAIL) {
|
|
21
|
+
ACCOUNT_STATUS_DETAIL["CANCELLED"] = "cancelled";
|
|
22
|
+
ACCOUNT_STATUS_DETAIL["UNINSTALLED"] = "uninstalled";
|
|
23
|
+
ACCOUNT_STATUS_DETAIL["BANNED"] = "banned";
|
|
24
|
+
ACCOUNT_STATUS_DETAIL["OTHER"] = "other";
|
|
25
|
+
})(ACCOUNT_STATUS_DETAIL = exports.ACCOUNT_STATUS_DETAIL || (exports.ACCOUNT_STATUS_DETAIL = {}));
|
|
26
|
+
var ACCOUNT_CANCELLED_BY;
|
|
27
|
+
(function (ACCOUNT_CANCELLED_BY) {
|
|
28
|
+
ACCOUNT_CANCELLED_BY["USER"] = "user";
|
|
29
|
+
ACCOUNT_CANCELLED_BY["SYSTEM"] = "system";
|
|
30
|
+
ACCOUNT_CANCELLED_BY["ADMIN"] = "admin";
|
|
31
|
+
})(ACCOUNT_CANCELLED_BY = exports.ACCOUNT_CANCELLED_BY || (exports.ACCOUNT_CANCELLED_BY = {}));
|
|
19
32
|
var FEATURE_FLAG;
|
|
20
33
|
(function (FEATURE_FLAG) {
|
|
21
34
|
FEATURE_FLAG["CONTACT_ACQUISITION"] = "contactAcquisition";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../src/types/api/account.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../src/types/api/account.ts"],"names":[],"mappings":";;;AAqCA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mDAAmC,CAAA;IACnC,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;AACzB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,qDAAmC,CAAA;IACnC,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;AACzB,CAAC,EANW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAMzB;AACD,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oDAA2B,CAAA;IAC3B,0CAAiB,CAAA;IACjB,wCAAe,CAAA;AACjB,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AACD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,yCAAiB,CAAA;IACjB,uCAAe,CAAA;AACjB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAiBD,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,0DAA0C,CAAA;IAC1C,gDAAgC,CAAA;AAClC,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB"}
|
|
@@ -43,25 +43,23 @@ export interface PurchasedContact {
|
|
|
43
43
|
}
|
|
44
44
|
export interface BdexContact {
|
|
45
45
|
id: string;
|
|
46
|
-
dt_hour?: string;
|
|
47
46
|
domain?: string;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
last_name?: string;
|
|
47
|
+
url?: string;
|
|
48
|
+
lastVisitTs?: number;
|
|
49
|
+
timesSeenInPeriod?: number;
|
|
50
|
+
firstName?: string;
|
|
51
|
+
lastName?: string;
|
|
54
52
|
address1?: string;
|
|
55
53
|
address2?: string;
|
|
56
54
|
city?: string;
|
|
57
55
|
state?: string;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
postalCode?: string;
|
|
57
|
+
mobilePhone1?: string;
|
|
58
|
+
mobilePhone2?: string;
|
|
59
|
+
homePhone1?: string;
|
|
60
|
+
emailAddress?: string;
|
|
61
|
+
hhIpRank?: number;
|
|
62
|
+
hhIpDistanceInMiles?: number;
|
|
65
63
|
pixelId: string;
|
|
66
64
|
identityId: string;
|
|
67
65
|
sessionId: string;
|
|
@@ -10,29 +10,18 @@ export interface Subscription {
|
|
|
10
10
|
shopifyRecurringAppCharge?: ShopifyRecurringAppCharge;
|
|
11
11
|
subscriptionPlan?: SubscriptionPlan;
|
|
12
12
|
planUsage?: PlanUsage;
|
|
13
|
+
trialDays?: number;
|
|
14
|
+
trialStartedOn?: string;
|
|
15
|
+
trialEndsOn?: string;
|
|
13
16
|
usageBillingRecords?: UsageBillingRecord[];
|
|
14
17
|
status?: SUBSCRIPTION_STATUS;
|
|
18
|
+
cancelledOn?: string;
|
|
15
19
|
paymentStatus?: PAYMENT_STATUS;
|
|
16
20
|
paymentGateway?: PAYMENT_GATEWAY;
|
|
17
21
|
contactAcquisition?: ContactAcquisition;
|
|
18
22
|
createdAt: string;
|
|
19
23
|
updatedAt: string;
|
|
20
24
|
}
|
|
21
|
-
export interface ContactAcquisition {
|
|
22
|
-
adminApproved?: boolean;
|
|
23
|
-
isEnabled?: boolean;
|
|
24
|
-
maxContacts?: number;
|
|
25
|
-
maxMonthlyBudget?: number;
|
|
26
|
-
totalUsage?: number;
|
|
27
|
-
usage75?: number;
|
|
28
|
-
usage90?: number;
|
|
29
|
-
lastMonthUsage?: number;
|
|
30
|
-
currentMonthUsage?: number;
|
|
31
|
-
lastMonthUsageRatio?: number;
|
|
32
|
-
currentMonthUsageRatio?: number;
|
|
33
|
-
lastThreeMonthsAverageUsage?: number;
|
|
34
|
-
lastThreeMonthsAverageUsageExceeded?: boolean;
|
|
35
|
-
}
|
|
36
25
|
export interface SubscriptionPlan {
|
|
37
26
|
id: string;
|
|
38
27
|
planName: string;
|
|
@@ -83,15 +72,19 @@ export declare enum DiscountType {
|
|
|
83
72
|
PERCENTAGE = "percentage"
|
|
84
73
|
}
|
|
85
74
|
export interface PlanUsage {
|
|
86
|
-
usage75
|
|
87
|
-
usage90
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
75
|
+
usage75?: boolean;
|
|
76
|
+
usage90?: boolean;
|
|
77
|
+
currentMonthUsage?: number;
|
|
78
|
+
usageExceeded?: boolean;
|
|
79
|
+
lastMonthUsage?: number;
|
|
80
|
+
lastThreeMonthsUsage?: number;
|
|
81
|
+
lastMonthUsageRatio?: number;
|
|
82
|
+
currentMonthUsageRatio?: number;
|
|
83
|
+
lastThreeMonthUsageRatio?: number;
|
|
84
|
+
lastThreeMonthsUsageExceeded?: boolean;
|
|
85
|
+
last12MonthsGMV?: number;
|
|
86
|
+
last12MonthsAOV?: number;
|
|
87
|
+
currency?: string;
|
|
95
88
|
}
|
|
96
89
|
export declare enum PLAN_BILLING_FREQUENCY {
|
|
97
90
|
MONTHLY = "monthly",
|
|
@@ -154,6 +147,21 @@ export interface UsageBill {
|
|
|
154
147
|
status: USAGE_BILLING_STATUS;
|
|
155
148
|
billedOn: string;
|
|
156
149
|
}
|
|
150
|
+
export interface ContactAcquisition {
|
|
151
|
+
adminApproved?: boolean;
|
|
152
|
+
isEnabled?: boolean;
|
|
153
|
+
maxContacts?: number;
|
|
154
|
+
maxMonthlyBudget?: number;
|
|
155
|
+
totalUsage?: number;
|
|
156
|
+
usage75?: number;
|
|
157
|
+
usage90?: number;
|
|
158
|
+
lastMonthUsage?: number;
|
|
159
|
+
currentMonthUsage?: number;
|
|
160
|
+
lastMonthUsageRatio?: number;
|
|
161
|
+
currentMonthUsageRatio?: number;
|
|
162
|
+
lastThreeMonthsAverageUsage?: number;
|
|
163
|
+
lastThreeMonthsAverageUsageExceeded?: boolean;
|
|
164
|
+
}
|
|
157
165
|
export declare enum USAGE_TYPE {
|
|
158
166
|
ORDERS = "orders",
|
|
159
167
|
EVENTS = "events"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/types/api/subscription.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/types/api/subscription.ts"],"names":[],"mappings":";;;AAyEA,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,yCAAyB,CAAA;AAC3B,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAkBD,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,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;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAkED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,qCAAa,CAAA;IACb,yCAAiB,CAAA;AACnB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"}
|
|
@@ -4,6 +4,9 @@ export interface Account {
|
|
|
4
4
|
accountName: string;
|
|
5
5
|
companyName?: string;
|
|
6
6
|
accountStatus: ACCOUNT_STATUS;
|
|
7
|
+
accountStatusDetail?: ACCOUNT_STATUS_DETAIL;
|
|
8
|
+
cancelledOn?: string;
|
|
9
|
+
cancelledBy?: ACCOUNT_CANCELLED_BY;
|
|
7
10
|
disablingOn?: string;
|
|
8
11
|
disabledOn?: string;
|
|
9
12
|
statusMessage?: string;
|
|
@@ -42,6 +45,17 @@ export declare enum ACCOUNT_STATUS {
|
|
|
42
45
|
DISABLED = "disabled",
|
|
43
46
|
CANCELLED = "cancelled"
|
|
44
47
|
}
|
|
48
|
+
export declare enum ACCOUNT_STATUS_DETAIL {
|
|
49
|
+
CANCELLED = "cancelled",
|
|
50
|
+
UNINSTALLED = "uninstalled",
|
|
51
|
+
BANNED = "banned",
|
|
52
|
+
OTHER = "other"
|
|
53
|
+
}
|
|
54
|
+
export declare enum ACCOUNT_CANCELLED_BY {
|
|
55
|
+
USER = "user",
|
|
56
|
+
SYSTEM = "system",
|
|
57
|
+
ADMIN = "admin"
|
|
58
|
+
}
|
|
45
59
|
export interface AccountSettings {
|
|
46
60
|
defaultTimezone?: string;
|
|
47
61
|
selectedTimezone?: string;
|
|
@@ -13,6 +13,19 @@ export var ACCOUNT_STATUS;
|
|
|
13
13
|
ACCOUNT_STATUS["DISABLED"] = "disabled";
|
|
14
14
|
ACCOUNT_STATUS["CANCELLED"] = "cancelled";
|
|
15
15
|
})(ACCOUNT_STATUS || (ACCOUNT_STATUS = {}));
|
|
16
|
+
export var ACCOUNT_STATUS_DETAIL;
|
|
17
|
+
(function (ACCOUNT_STATUS_DETAIL) {
|
|
18
|
+
ACCOUNT_STATUS_DETAIL["CANCELLED"] = "cancelled";
|
|
19
|
+
ACCOUNT_STATUS_DETAIL["UNINSTALLED"] = "uninstalled";
|
|
20
|
+
ACCOUNT_STATUS_DETAIL["BANNED"] = "banned";
|
|
21
|
+
ACCOUNT_STATUS_DETAIL["OTHER"] = "other";
|
|
22
|
+
})(ACCOUNT_STATUS_DETAIL || (ACCOUNT_STATUS_DETAIL = {}));
|
|
23
|
+
export var ACCOUNT_CANCELLED_BY;
|
|
24
|
+
(function (ACCOUNT_CANCELLED_BY) {
|
|
25
|
+
ACCOUNT_CANCELLED_BY["USER"] = "user";
|
|
26
|
+
ACCOUNT_CANCELLED_BY["SYSTEM"] = "system";
|
|
27
|
+
ACCOUNT_CANCELLED_BY["ADMIN"] = "admin";
|
|
28
|
+
})(ACCOUNT_CANCELLED_BY || (ACCOUNT_CANCELLED_BY = {}));
|
|
16
29
|
export var FEATURE_FLAG;
|
|
17
30
|
(function (FEATURE_FLAG) {
|
|
18
31
|
FEATURE_FLAG["CONTACT_ACQUISITION"] = "contactAcquisition";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../src/types/api/account.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../src/types/api/account.ts"],"names":[],"mappings":"AAqCA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mDAAmC,CAAA;IACnC,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;AACzB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAED,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,qDAAmC,CAAA;IACnC,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;AACzB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AACD,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oDAA2B,CAAA;IAC3B,0CAAiB,CAAA;IACjB,wCAAe,CAAA;AACjB,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC;AACD,MAAM,CAAN,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,yCAAiB,CAAA;IACjB,uCAAe,CAAA;AACjB,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,QAI/B;AAiBD,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,0DAA0C,CAAA;IAC1C,gDAAgC,CAAA;AAClC,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB"}
|
|
@@ -43,25 +43,23 @@ export interface PurchasedContact {
|
|
|
43
43
|
}
|
|
44
44
|
export interface BdexContact {
|
|
45
45
|
id: string;
|
|
46
|
-
dt_hour?: string;
|
|
47
46
|
domain?: string;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
last_name?: string;
|
|
47
|
+
url?: string;
|
|
48
|
+
lastVisitTs?: number;
|
|
49
|
+
timesSeenInPeriod?: number;
|
|
50
|
+
firstName?: string;
|
|
51
|
+
lastName?: string;
|
|
54
52
|
address1?: string;
|
|
55
53
|
address2?: string;
|
|
56
54
|
city?: string;
|
|
57
55
|
state?: string;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
postalCode?: string;
|
|
57
|
+
mobilePhone1?: string;
|
|
58
|
+
mobilePhone2?: string;
|
|
59
|
+
homePhone1?: string;
|
|
60
|
+
emailAddress?: string;
|
|
61
|
+
hhIpRank?: number;
|
|
62
|
+
hhIpDistanceInMiles?: number;
|
|
65
63
|
pixelId: string;
|
|
66
64
|
identityId: string;
|
|
67
65
|
sessionId: string;
|
|
@@ -10,29 +10,18 @@ export interface Subscription {
|
|
|
10
10
|
shopifyRecurringAppCharge?: ShopifyRecurringAppCharge;
|
|
11
11
|
subscriptionPlan?: SubscriptionPlan;
|
|
12
12
|
planUsage?: PlanUsage;
|
|
13
|
+
trialDays?: number;
|
|
14
|
+
trialStartedOn?: string;
|
|
15
|
+
trialEndsOn?: string;
|
|
13
16
|
usageBillingRecords?: UsageBillingRecord[];
|
|
14
17
|
status?: SUBSCRIPTION_STATUS;
|
|
18
|
+
cancelledOn?: string;
|
|
15
19
|
paymentStatus?: PAYMENT_STATUS;
|
|
16
20
|
paymentGateway?: PAYMENT_GATEWAY;
|
|
17
21
|
contactAcquisition?: ContactAcquisition;
|
|
18
22
|
createdAt: string;
|
|
19
23
|
updatedAt: string;
|
|
20
24
|
}
|
|
21
|
-
export interface ContactAcquisition {
|
|
22
|
-
adminApproved?: boolean;
|
|
23
|
-
isEnabled?: boolean;
|
|
24
|
-
maxContacts?: number;
|
|
25
|
-
maxMonthlyBudget?: number;
|
|
26
|
-
totalUsage?: number;
|
|
27
|
-
usage75?: number;
|
|
28
|
-
usage90?: number;
|
|
29
|
-
lastMonthUsage?: number;
|
|
30
|
-
currentMonthUsage?: number;
|
|
31
|
-
lastMonthUsageRatio?: number;
|
|
32
|
-
currentMonthUsageRatio?: number;
|
|
33
|
-
lastThreeMonthsAverageUsage?: number;
|
|
34
|
-
lastThreeMonthsAverageUsageExceeded?: boolean;
|
|
35
|
-
}
|
|
36
25
|
export interface SubscriptionPlan {
|
|
37
26
|
id: string;
|
|
38
27
|
planName: string;
|
|
@@ -83,15 +72,19 @@ export declare enum DiscountType {
|
|
|
83
72
|
PERCENTAGE = "percentage"
|
|
84
73
|
}
|
|
85
74
|
export interface PlanUsage {
|
|
86
|
-
usage75
|
|
87
|
-
usage90
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
75
|
+
usage75?: boolean;
|
|
76
|
+
usage90?: boolean;
|
|
77
|
+
currentMonthUsage?: number;
|
|
78
|
+
usageExceeded?: boolean;
|
|
79
|
+
lastMonthUsage?: number;
|
|
80
|
+
lastThreeMonthsUsage?: number;
|
|
81
|
+
lastMonthUsageRatio?: number;
|
|
82
|
+
currentMonthUsageRatio?: number;
|
|
83
|
+
lastThreeMonthUsageRatio?: number;
|
|
84
|
+
lastThreeMonthsUsageExceeded?: boolean;
|
|
85
|
+
last12MonthsGMV?: number;
|
|
86
|
+
last12MonthsAOV?: number;
|
|
87
|
+
currency?: string;
|
|
95
88
|
}
|
|
96
89
|
export declare enum PLAN_BILLING_FREQUENCY {
|
|
97
90
|
MONTHLY = "monthly",
|
|
@@ -154,6 +147,21 @@ export interface UsageBill {
|
|
|
154
147
|
status: USAGE_BILLING_STATUS;
|
|
155
148
|
billedOn: string;
|
|
156
149
|
}
|
|
150
|
+
export interface ContactAcquisition {
|
|
151
|
+
adminApproved?: boolean;
|
|
152
|
+
isEnabled?: boolean;
|
|
153
|
+
maxContacts?: number;
|
|
154
|
+
maxMonthlyBudget?: number;
|
|
155
|
+
totalUsage?: number;
|
|
156
|
+
usage75?: number;
|
|
157
|
+
usage90?: number;
|
|
158
|
+
lastMonthUsage?: number;
|
|
159
|
+
currentMonthUsage?: number;
|
|
160
|
+
lastMonthUsageRatio?: number;
|
|
161
|
+
currentMonthUsageRatio?: number;
|
|
162
|
+
lastThreeMonthsAverageUsage?: number;
|
|
163
|
+
lastThreeMonthsAverageUsageExceeded?: boolean;
|
|
164
|
+
}
|
|
157
165
|
export declare enum USAGE_TYPE {
|
|
158
166
|
ORDERS = "orders",
|
|
159
167
|
EVENTS = "events"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/types/api/subscription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/types/api/subscription.ts"],"names":[],"mappings":"AAyEA,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,yCAAyB,CAAA;AAC3B,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAkBD,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;AACnB,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC;AAED,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AAED,MAAM,CAAN,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,KAAnB,mBAAmB,QAQ9B;AAED,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAkED,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB;AAED,MAAM,CAAN,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,qCAAa,CAAA;IACb,yCAAiB,CAAA;AACnB,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,QAI/B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adtrackify/at-tracking-event-types",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/*"
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
"author": "",
|
|
82
82
|
"license": "ISC",
|
|
83
83
|
"homepage": "https://bitbucket.org/eacap/at-tracking-event-types#readme"
|
|
84
|
-
}
|
|
84
|
+
}
|