@adtrackify/at-service-common 1.0.58 → 1.0.59
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/.editorconfig +12 -12
- package/bitbucket-pipelines.yml +1 -1
- package/dist/index.js +134 -532
- package/dist/index.js.map +4 -4
- package/package.json +7 -4
- package/src/clients/generic/axios.d.ts +7 -7
- package/src/clients/internal-api/index.ts +1 -1
- package/src/helpers/subscription-helper.ts +114 -9
|
@@ -38,9 +38,22 @@ export const SubscriptionPlanSeedItems: {
|
|
|
38
38
|
sku: 'ADT-001',
|
|
39
39
|
description: 'Free Plan - Monthly',
|
|
40
40
|
price: '0',
|
|
41
|
+
displayPrice: '$0',
|
|
41
42
|
billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
42
43
|
trialLengthDays: 30,
|
|
43
|
-
trialRequiresCreditCard: false
|
|
44
|
+
trialRequiresCreditCard: false,
|
|
45
|
+
planDesc: [
|
|
46
|
+
'Fixes IOS14.5 tracking',
|
|
47
|
+
'Multi Pixel Support',
|
|
48
|
+
'Enhanced Tracking / Attribution',
|
|
49
|
+
'Unlimited Facebook Conversion API',
|
|
50
|
+
'Unlimited Integrations',
|
|
51
|
+
'Easy no code setup',
|
|
52
|
+
'1,000 tracking events/mo'
|
|
53
|
+
],
|
|
54
|
+
unitPriceText: 'try now - free forever',
|
|
55
|
+
isHighlighted: false,
|
|
56
|
+
isBanner: false
|
|
44
57
|
},
|
|
45
58
|
// STARTER PLANS
|
|
46
59
|
{
|
|
@@ -49,18 +62,46 @@ export const SubscriptionPlanSeedItems: {
|
|
|
49
62
|
sku: 'ADT-002',
|
|
50
63
|
description: 'Starter Plan - Monthly',
|
|
51
64
|
price: '9.99',
|
|
65
|
+
displayPrice: '$9.99',
|
|
52
66
|
billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
53
67
|
trialLengthDays: 30,
|
|
54
|
-
trialRequiresCreditCard: false
|
|
68
|
+
trialRequiresCreditCard: false,
|
|
69
|
+
planDesc: [
|
|
70
|
+
'30-day Risk Free Trial',
|
|
71
|
+
'Fixes IOS14.5 tracking',
|
|
72
|
+
'Multi Pixel Support',
|
|
73
|
+
'Enhanced Tracking / Attribution',
|
|
74
|
+
'Unlimited Facebook Conversion API',
|
|
75
|
+
'Unlimited Integrations',
|
|
76
|
+
'Easy no code setup',
|
|
77
|
+
'2,500 tracking events/mo'
|
|
78
|
+
],
|
|
79
|
+
unitPriceText: '',
|
|
80
|
+
isHighlighted: false,
|
|
81
|
+
isBanner: false,
|
|
55
82
|
}, {
|
|
56
83
|
id: 3,
|
|
57
84
|
planName: 'starter_yearly',
|
|
58
85
|
sku: 'ADT-003',
|
|
59
86
|
description: 'Starter Plan - Yearly',
|
|
60
87
|
price: '96.00',
|
|
88
|
+
displayPrice: '$8',
|
|
61
89
|
billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,
|
|
62
90
|
trialLengthDays: 30,
|
|
63
|
-
trialRequiresCreditCard: false
|
|
91
|
+
trialRequiresCreditCard: false,
|
|
92
|
+
planDesc: [
|
|
93
|
+
'30-day Risk Free Trial',
|
|
94
|
+
'Fixes IOS14.5 tracking',
|
|
95
|
+
'Multi Pixel Support',
|
|
96
|
+
'Enhanced Tracking / Attribution',
|
|
97
|
+
'Unlimited Facebook Conversion API',
|
|
98
|
+
'Unlimited Integrations',
|
|
99
|
+
'Easy no code setup',
|
|
100
|
+
'2,500 tracking events/mo'
|
|
101
|
+
],
|
|
102
|
+
unitPriceText: 'billed yearly ($96) - 20% savings',
|
|
103
|
+
isHighlighted: false,
|
|
104
|
+
isBanner: false
|
|
64
105
|
},
|
|
65
106
|
// SCALE PLANS
|
|
66
107
|
{
|
|
@@ -69,18 +110,50 @@ export const SubscriptionPlanSeedItems: {
|
|
|
69
110
|
sku: 'ADT-004',
|
|
70
111
|
description: 'Scale Plan - Monthly',
|
|
71
112
|
price: '59.99',
|
|
113
|
+
displayPrice: '$59.99',
|
|
72
114
|
billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
73
115
|
trialLengthDays: 30,
|
|
74
|
-
trialRequiresCreditCard: false
|
|
116
|
+
trialRequiresCreditCard: false,
|
|
117
|
+
planDesc: [
|
|
118
|
+
'30-day Risk Free Trial',
|
|
119
|
+
'Fixes IOS14.5 tracking',
|
|
120
|
+
'Multi Pixel Support',
|
|
121
|
+
'Enhanced Tracking / Attribution',
|
|
122
|
+
'Unlimited Facebook Conversion API',
|
|
123
|
+
'Unlimited Integrations',
|
|
124
|
+
'Easy no code setup',
|
|
125
|
+
'25,000 tracking events/mo'
|
|
126
|
+
],
|
|
127
|
+
unitPriceText: 'billed yearly ($96) - 20% savings',
|
|
128
|
+
isHighlighted: true,
|
|
129
|
+
isBanner: true,
|
|
130
|
+
bannerColor: 'blue',
|
|
131
|
+
bannerText: 'MOST POPULAR'
|
|
75
132
|
}, {
|
|
76
133
|
id: 5,
|
|
77
134
|
planName: 'scale_yearly',
|
|
78
135
|
sku: 'ADT-005',
|
|
79
136
|
description: 'Scale Plan - Yearly',
|
|
80
|
-
price: '
|
|
137
|
+
price: '540.00',
|
|
138
|
+
displayPrice: '$45',
|
|
81
139
|
billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,
|
|
82
140
|
trialLengthDays: 30,
|
|
83
|
-
trialRequiresCreditCard: false
|
|
141
|
+
trialRequiresCreditCard: false,
|
|
142
|
+
planDesc: [
|
|
143
|
+
'30-day Risk Free Trial',
|
|
144
|
+
'Fixes IOS14.5 tracking',
|
|
145
|
+
'Multi Pixel Support',
|
|
146
|
+
'Enhanced Tracking / Attribution',
|
|
147
|
+
'Unlimited Facebook Conversion API',
|
|
148
|
+
'Unlimited Integrations',
|
|
149
|
+
'Easy no code setup',
|
|
150
|
+
'25,000 tracking events/mo'
|
|
151
|
+
],
|
|
152
|
+
unitPriceText: 'billed yearly ($540) - 25% savings',
|
|
153
|
+
isHighlighted: true,
|
|
154
|
+
isBanner: true,
|
|
155
|
+
bannerColor: 'blue',
|
|
156
|
+
bannerText: 'MOST POPULAR'
|
|
84
157
|
},
|
|
85
158
|
// GROWTH PLANS
|
|
86
159
|
{
|
|
@@ -89,18 +162,50 @@ export const SubscriptionPlanSeedItems: {
|
|
|
89
162
|
sku: 'ADT-006',
|
|
90
163
|
description: 'Growth Plan - Monthly',
|
|
91
164
|
price: '159.99',
|
|
165
|
+
displayPrice: '$159.99',
|
|
92
166
|
billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
93
167
|
trialLengthDays: 30,
|
|
94
|
-
trialRequiresCreditCard: false
|
|
168
|
+
trialRequiresCreditCard: false,
|
|
169
|
+
planDesc: [
|
|
170
|
+
'30-day Risk Free Trial',
|
|
171
|
+
'Fixes IOS14.5 tracking',
|
|
172
|
+
'Multi Pixel Support',
|
|
173
|
+
'Enhanced Tracking / Attribution',
|
|
174
|
+
'Unlimited Facebook Conversion API',
|
|
175
|
+
'Unlimited Integrations',
|
|
176
|
+
'Easy no code setup',
|
|
177
|
+
'100,000 tracking events/mo'
|
|
178
|
+
],
|
|
179
|
+
unitPriceText: 'billed yearly ($540) - 25% savings',
|
|
180
|
+
isHighlighted: false,
|
|
181
|
+
isBanner: true,
|
|
182
|
+
bannerColor: 'orange',
|
|
183
|
+
bannerText: 'BEST VALUE'
|
|
95
184
|
}, {
|
|
96
185
|
id: 7,
|
|
97
186
|
planName: 'growth_yearly',
|
|
98
187
|
sku: 'ADT-007',
|
|
99
188
|
description: 'Growth Plan - Yearly',
|
|
100
|
-
price: '
|
|
189
|
+
price: '1344.00',
|
|
190
|
+
displayPrice: '$112',
|
|
101
191
|
billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,
|
|
102
192
|
trialLengthDays: 30,
|
|
103
|
-
trialRequiresCreditCard: false
|
|
193
|
+
trialRequiresCreditCard: false,
|
|
194
|
+
planDesc: [
|
|
195
|
+
'30-day Risk Free Trial',
|
|
196
|
+
'Fixes IOS14.5 tracking',
|
|
197
|
+
'Multi Pixel Support',
|
|
198
|
+
'Enhanced Tracking / Attribution',
|
|
199
|
+
'Unlimited Facebook Conversion API',
|
|
200
|
+
'Unlimited Integrations',
|
|
201
|
+
'Easy no code setup',
|
|
202
|
+
'100,000 tracking events/mo'
|
|
203
|
+
],
|
|
204
|
+
unitPriceText: 'billed yearly ($1344) - 30% savings',
|
|
205
|
+
isHighlighted: false,
|
|
206
|
+
isBanner: true,
|
|
207
|
+
bannerColor: 'orange',
|
|
208
|
+
bannerText: 'BEST VALUE'
|
|
104
209
|
},
|
|
105
210
|
]
|
|
106
211
|
};
|