@adtrackify/at-tracking-event-types 1.0.35 → 1.0.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-tracking-event-types",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
@@ -53,115 +53,3 @@ export enum PAYMENT_GATEWAY {
53
53
  PAYPAL = 'paypal',
54
54
  SHOPIFY = 'shopify'
55
55
  }
56
-
57
- export const StripeBillingMap: any = {
58
- dev: {
59
- 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
60
- 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
61
- 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
62
- 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
63
- 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
64
- 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
65
- 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
66
- },
67
- qa: {
68
- 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
69
- 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
70
- 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
71
- 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
72
- 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
73
- 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
74
- 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
75
- },
76
- prod: {
77
- 'free': 'price_1KAFsIK7krGh4037RsaAYMEl',
78
- 'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',
79
- 'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',
80
- 'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',
81
- 'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',
82
- 'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',
83
- 'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'
84
- }
85
- };
86
- export const SubscriptionPlanSeedItems: {
87
- items: SubscriptionPlan[];
88
- } = {
89
- items: [ {
90
- id: 1,
91
- planName: 'free',
92
- sku: 'ADT-001',
93
- description: 'Free Plan - Monthly',
94
- price: '0',
95
- billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
96
- trialLengthDays: 30,
97
- trialRequiresCreditCard: false
98
- },
99
- // STARTER PLANS
100
- {
101
- id: 2,
102
- planName: 'starter_monthly',
103
- sku: 'ADT-002',
104
- description: 'Starter Plan - Monthly',
105
- price: '9.99',
106
- billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
107
- trialLengthDays: 30,
108
- trialRequiresCreditCard: false
109
- }, {
110
- id: 3,
111
- planName: 'starter_yearly',
112
- sku: 'ADT-003',
113
- description: 'Starter Plan - Yearly',
114
- price: '96.00',
115
- billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,
116
- trialLengthDays: 30,
117
- trialRequiresCreditCard: false
118
- },
119
- // SCALE PLANS
120
- {
121
- id: 4,
122
- planName: 'scale_monthly',
123
- sku: 'ADT-004',
124
- description: 'Scale Plan - Monthly',
125
- price: '59.99',
126
- billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
127
- trialLengthDays: 30,
128
- trialRequiresCreditCard: false
129
- }, {
130
- id: 5,
131
- planName: 'scale_yearly',
132
- sku: 'ADT-005',
133
- description: 'Scale Plan - Yearly',
134
- price: '588.00',
135
- billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,
136
- trialLengthDays: 30,
137
- trialRequiresCreditCard: false
138
- },
139
- // GROWTH PLANS
140
- {
141
- id: 6,
142
- planName: 'growth_monthly',
143
- sku: 'ADT-006',
144
- description: 'Growth Plan - Monthly',
145
- price: '159.99',
146
- billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,
147
- trialLengthDays: 30,
148
- trialRequiresCreditCard: false
149
- }, {
150
- id: 7,
151
- planName: 'growth_yearly',
152
- sku: 'ADT-007',
153
- description: 'Growth Plan - Yearly',
154
- price: '1596.00',
155
- billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,
156
- trialLengthDays: 30,
157
- trialRequiresCreditCard: false
158
- },
159
- ]
160
- };
161
-
162
-
163
- export const getPlanDetails = (planId: number, stage: string) => {
164
- const plan = SubscriptionPlanSeedItems.items.filter(x => x.id === planId)[ 0 ] as any;
165
- plan.stripePriceId = StripeBillingMap[ stage ][ plan.planName ];
166
- return plan as SubscriptionPlan;
167
- };