@adtrackify/at-service-common 2.1.5 → 2.1.7
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/__tests__/helpers/subscription-helper.spec.d.ts +1 -1
- package/dist/cjs/__tests__/helpers/subscription-helper.spec.js +52 -52
- package/dist/cjs/__tests__/s3-client/s3-client.spec.d.ts +1 -1
- package/dist/cjs/__tests__/s3-client/s3-client.spec.js +26 -26
- package/dist/cjs/clients/generic/cognito-client.d.ts +20 -20
- package/dist/cjs/clients/generic/cognito-client.js +164 -164
- package/dist/cjs/clients/generic/dynamodb-client.d.ts +16 -16
- package/dist/cjs/clients/generic/dynamodb-client.js +144 -144
- package/dist/cjs/clients/generic/eventbridge-client.d.ts +14 -14
- package/dist/cjs/clients/generic/eventbridge-client.js +49 -49
- package/dist/cjs/clients/generic/http-client.d.ts +88 -85
- package/dist/cjs/clients/generic/http-client.js +56 -51
- package/dist/cjs/clients/generic/http-client.js.map +1 -1
- package/dist/cjs/clients/generic/index.d.ts +6 -6
- package/dist/cjs/clients/generic/index.js +22 -22
- package/dist/cjs/clients/generic/s3-client.d.ts +14 -14
- package/dist/cjs/clients/generic/s3-client.js +82 -82
- package/dist/cjs/clients/generic/sqs-client.d.ts +14 -14
- package/dist/cjs/clients/generic/sqs-client.js +38 -38
- package/dist/cjs/clients/index.d.ts +3 -3
- package/dist/cjs/clients/index.js +19 -19
- package/dist/cjs/clients/internal-api/accounts-client.d.ts +101 -55
- package/dist/cjs/clients/internal-api/accounts-client.js +99 -98
- package/dist/cjs/clients/internal-api/accounts-client.js.map +1 -1
- package/dist/cjs/clients/internal-api/db-management-client.d.ts +23 -23
- package/dist/cjs/clients/internal-api/db-management-client.js +45 -45
- package/dist/cjs/clients/internal-api/destinations-client.d.ts +29 -29
- package/dist/cjs/clients/internal-api/destinations-client.js +54 -54
- package/dist/cjs/clients/internal-api/event-collector-client.d.ts +20 -20
- package/dist/cjs/clients/internal-api/event-collector-client.js +39 -39
- package/dist/cjs/clients/internal-api/identity-client.d.ts +10 -10
- package/dist/cjs/clients/internal-api/identity-client.js +43 -43
- package/dist/cjs/clients/internal-api/index.d.ts +7 -7
- package/dist/cjs/clients/internal-api/index.js +23 -23
- package/dist/cjs/clients/internal-api/shopify-app-install-client.d.ts +30 -30
- package/dist/cjs/clients/internal-api/shopify-app-install-client.js +51 -51
- package/dist/cjs/clients/internal-api/users-auth-client.d.ts +31 -31
- package/dist/cjs/clients/internal-api/users-auth-client.js +92 -92
- package/dist/cjs/clients/third-party/index.d.ts +1 -1
- package/dist/cjs/clients/third-party/index.js +17 -17
- package/dist/cjs/clients/third-party/shopify-client.d.ts +195 -24
- package/dist/cjs/clients/third-party/shopify-client.js +142 -134
- package/dist/cjs/clients/third-party/shopify-client.js.map +1 -1
- package/dist/cjs/helpers/index.d.ts +5 -5
- package/dist/cjs/helpers/index.js +21 -21
- package/dist/cjs/helpers/input-validation-helper.d.ts +3 -3
- package/dist/cjs/helpers/input-validation-helper.js +23 -23
- package/dist/cjs/helpers/logging-helper.d.ts +15 -15
- package/dist/cjs/helpers/logging-helper.js +80 -80
- package/dist/cjs/helpers/response-helper.d.ts +15 -15
- package/dist/cjs/helpers/response-helper.js +42 -42
- package/dist/cjs/helpers/shopify-helper.d.ts +9 -9
- package/dist/cjs/helpers/shopify-helper.js +28 -28
- package/dist/cjs/helpers/subscription-helper.d.ts +8 -8
- package/dist/cjs/helpers/subscription-helper.js +241 -241
- package/dist/cjs/index.d.ts +5 -5
- package/dist/cjs/index.js +21 -21
- package/dist/cjs/libs/clickId-parser.d.ts +23 -23
- package/dist/cjs/libs/clickId-parser.js +49 -49
- package/dist/cjs/libs/crypto.d.ts +1 -4
- package/dist/cjs/libs/crypto.js +12 -54
- package/dist/cjs/libs/crypto.js.map +1 -1
- package/dist/cjs/libs/dates.d.ts +6 -6
- package/dist/cjs/libs/dates.js +31 -31
- package/dist/cjs/libs/http-error.d.ts +21 -21
- package/dist/cjs/libs/http-error.js +59 -59
- package/dist/cjs/libs/http-status-codes.d.ts +58 -58
- package/dist/cjs/libs/http-status-codes.js +62 -62
- package/dist/cjs/libs/index.d.ts +8 -8
- package/dist/cjs/libs/index.js +24 -24
- package/dist/cjs/libs/referrer-parser/index.d.ts +2 -2
- package/dist/cjs/libs/referrer-parser/index.js +18 -18
- package/dist/cjs/libs/referrer-parser/referrer-data.d.ts +9 -9
- package/dist/cjs/libs/referrer-parser/referrer-data.js +4712 -4712
- package/dist/cjs/libs/referrer-parser/referrer-parser-util.d.ts +20 -20
- package/dist/cjs/libs/referrer-parser/referrer-parser-util.js +128 -128
- package/dist/cjs/libs/url.d.ts +1 -1
- package/dist/cjs/libs/url.js +13 -13
- package/dist/cjs/services/db/destinations-service.d.ts +7 -7
- package/dist/cjs/services/db/destinations-service.js +35 -35
- package/dist/cjs/services/db/index.d.ts +3 -3
- package/dist/cjs/services/db/index.js +19 -19
- package/dist/cjs/services/db/log-events-data-service.d.ts +6 -6
- package/dist/cjs/services/db/log-events-data-service.js +31 -31
- package/dist/cjs/services/db/tracking-events-data-service.d.ts +6 -6
- package/dist/cjs/services/db/tracking-events-data-service.js +31 -31
- package/dist/cjs/services/eventbridge-integration-service.d.ts +9 -9
- package/dist/cjs/services/eventbridge-integration-service.js +28 -28
- package/dist/cjs/services/index.d.ts +5 -5
- package/dist/cjs/services/index.js +21 -21
- package/dist/cjs/services/ipdata-lookup-service.d.ts +8 -8
- package/dist/cjs/services/ipdata-lookup-service.js +59 -59
- package/dist/cjs/services/log-event-service.d.ts +9 -9
- package/dist/cjs/services/log-event-service.js +56 -56
- package/dist/cjs/services/metric-event-service.d.ts +9 -9
- package/dist/cjs/services/metric-event-service.js +49 -49
- package/dist/cjs/types/api-response.d.ts +6 -6
- package/dist/cjs/types/api-response.js +2 -2
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/cjs/types/index.js +17 -17
- package/dist/cjs/types/internal-events/event-detail-types.d.ts +20 -20
- package/dist/cjs/types/internal-events/event-detail-types.js +27 -27
- package/dist/cjs/types/internal-events/index.d.ts +1 -1
- package/dist/cjs/types/internal-events/index.js +17 -17
- package/dist/esm/__tests__/helpers/subscription-helper.spec.d.ts +1 -1
- package/dist/esm/__tests__/helpers/subscription-helper.spec.js +27 -27
- package/dist/esm/__tests__/s3-client/s3-client.spec.d.ts +1 -1
- package/dist/esm/__tests__/s3-client/s3-client.spec.js +24 -24
- package/dist/esm/clients/generic/cognito-client.d.ts +20 -20
- package/dist/esm/clients/generic/cognito-client.js +159 -159
- package/dist/esm/clients/generic/dynamodb-client.d.ts +16 -16
- package/dist/esm/clients/generic/dynamodb-client.js +140 -140
- package/dist/esm/clients/generic/eventbridge-client.d.ts +14 -14
- package/dist/esm/clients/generic/eventbridge-client.js +45 -45
- package/dist/esm/clients/generic/http-client.d.ts +88 -85
- package/dist/esm/clients/generic/http-client.js +48 -44
- package/dist/esm/clients/generic/http-client.js.map +1 -1
- package/dist/esm/clients/generic/index.d.ts +6 -6
- package/dist/esm/clients/generic/index.js +6 -6
- package/dist/esm/clients/generic/s3-client.d.ts +14 -14
- package/dist/esm/clients/generic/s3-client.js +78 -78
- package/dist/esm/clients/generic/sqs-client.d.ts +14 -14
- package/dist/esm/clients/generic/sqs-client.js +34 -34
- package/dist/esm/clients/index.d.ts +3 -3
- package/dist/esm/clients/index.js +3 -3
- package/dist/esm/clients/internal-api/accounts-client.d.ts +101 -55
- package/dist/esm/clients/internal-api/accounts-client.js +95 -94
- package/dist/esm/clients/internal-api/accounts-client.js.map +1 -1
- package/dist/esm/clients/internal-api/db-management-client.d.ts +23 -23
- package/dist/esm/clients/internal-api/db-management-client.js +38 -38
- package/dist/esm/clients/internal-api/destinations-client.d.ts +29 -29
- package/dist/esm/clients/internal-api/destinations-client.js +50 -50
- package/dist/esm/clients/internal-api/event-collector-client.d.ts +20 -20
- package/dist/esm/clients/internal-api/event-collector-client.js +32 -32
- package/dist/esm/clients/internal-api/identity-client.d.ts +10 -10
- package/dist/esm/clients/internal-api/identity-client.js +39 -39
- package/dist/esm/clients/internal-api/index.d.ts +7 -7
- package/dist/esm/clients/internal-api/index.js +7 -7
- package/dist/esm/clients/internal-api/shopify-app-install-client.d.ts +30 -30
- package/dist/esm/clients/internal-api/shopify-app-install-client.js +44 -44
- package/dist/esm/clients/internal-api/users-auth-client.d.ts +31 -31
- package/dist/esm/clients/internal-api/users-auth-client.js +88 -88
- package/dist/esm/clients/third-party/index.d.ts +1 -1
- package/dist/esm/clients/third-party/index.js +1 -1
- package/dist/esm/clients/third-party/shopify-client.d.ts +195 -24
- package/dist/esm/clients/third-party/shopify-client.js +138 -130
- package/dist/esm/clients/third-party/shopify-client.js.map +1 -1
- package/dist/esm/helpers/index.d.ts +5 -5
- package/dist/esm/helpers/index.js +5 -5
- package/dist/esm/helpers/input-validation-helper.d.ts +3 -3
- package/dist/esm/helpers/input-validation-helper.js +19 -19
- package/dist/esm/helpers/logging-helper.d.ts +15 -15
- package/dist/esm/helpers/logging-helper.js +53 -53
- package/dist/esm/helpers/response-helper.d.ts +15 -15
- package/dist/esm/helpers/response-helper.js +36 -36
- package/dist/esm/helpers/shopify-helper.d.ts +9 -9
- package/dist/esm/helpers/shopify-helper.js +23 -23
- package/dist/esm/helpers/subscription-helper.d.ts +8 -8
- package/dist/esm/helpers/subscription-helper.js +236 -236
- package/dist/esm/index.d.ts +5 -5
- package/dist/esm/index.js +5 -5
- package/dist/esm/libs/clickId-parser.d.ts +23 -23
- package/dist/esm/libs/clickId-parser.js +45 -45
- package/dist/esm/libs/crypto.d.ts +1 -4
- package/dist/esm/libs/crypto.js +5 -44
- package/dist/esm/libs/crypto.js.map +1 -1
- package/dist/esm/libs/dates.d.ts +6 -6
- package/dist/esm/libs/dates.js +22 -22
- package/dist/esm/libs/http-error.d.ts +21 -21
- package/dist/esm/libs/http-error.js +55 -55
- package/dist/esm/libs/http-status-codes.d.ts +58 -58
- package/dist/esm/libs/http-status-codes.js +59 -59
- package/dist/esm/libs/index.d.ts +8 -8
- package/dist/esm/libs/index.js +8 -8
- package/dist/esm/libs/referrer-parser/index.d.ts +2 -2
- package/dist/esm/libs/referrer-parser/index.js +2 -2
- package/dist/esm/libs/referrer-parser/referrer-data.d.ts +9 -9
- package/dist/esm/libs/referrer-parser/referrer-data.js +4709 -4709
- package/dist/esm/libs/referrer-parser/referrer-parser-util.d.ts +20 -20
- package/dist/esm/libs/referrer-parser/referrer-parser-util.js +121 -121
- package/dist/esm/libs/url.d.ts +1 -1
- package/dist/esm/libs/url.js +9 -9
- package/dist/esm/services/db/destinations-service.d.ts +7 -7
- package/dist/esm/services/db/destinations-service.js +31 -31
- package/dist/esm/services/db/index.d.ts +3 -3
- package/dist/esm/services/db/index.js +3 -3
- package/dist/esm/services/db/log-events-data-service.d.ts +6 -6
- package/dist/esm/services/db/log-events-data-service.js +27 -27
- package/dist/esm/services/db/tracking-events-data-service.d.ts +6 -6
- package/dist/esm/services/db/tracking-events-data-service.js +27 -27
- package/dist/esm/services/eventbridge-integration-service.d.ts +9 -9
- package/dist/esm/services/eventbridge-integration-service.js +24 -24
- package/dist/esm/services/index.d.ts +5 -5
- package/dist/esm/services/index.js +5 -5
- package/dist/esm/services/ipdata-lookup-service.d.ts +8 -8
- package/dist/esm/services/ipdata-lookup-service.js +55 -55
- package/dist/esm/services/log-event-service.d.ts +9 -9
- package/dist/esm/services/log-event-service.js +52 -52
- package/dist/esm/services/metric-event-service.d.ts +9 -9
- package/dist/esm/services/metric-event-service.js +45 -45
- package/dist/esm/types/api-response.d.ts +6 -6
- package/dist/esm/types/api-response.js +1 -1
- package/dist/esm/types/index.d.ts +1 -1
- package/dist/esm/types/index.js +1 -1
- package/dist/esm/types/internal-events/event-detail-types.d.ts +20 -20
- package/dist/esm/types/internal-events/event-detail-types.js +24 -24
- package/dist/esm/types/internal-events/index.d.ts +1 -1
- package/dist/esm/types/internal-events/index.js +1 -1
- package/package.json +3 -2
|
@@ -1,242 +1,242 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPlanByStripePriceId = exports.getPlanDetails = exports.SubscriptionPlanSeedItems = exports.CommonPlanInfo = exports.StripeBillingMap = void 0;
|
|
4
|
-
const at_tracking_event_types_1 = require("@adtrackify/at-tracking-event-types");
|
|
5
|
-
exports.StripeBillingMap = {
|
|
6
|
-
dev2: {
|
|
7
|
-
'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
|
|
8
|
-
'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
9
|
-
'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
10
|
-
'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
|
|
11
|
-
'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
|
|
12
|
-
'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
|
|
13
|
-
'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
|
|
14
|
-
},
|
|
15
|
-
qa2: {
|
|
16
|
-
'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
|
|
17
|
-
'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
18
|
-
'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
19
|
-
'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
|
|
20
|
-
'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
|
|
21
|
-
'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
|
|
22
|
-
'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
|
|
23
|
-
},
|
|
24
|
-
prod2: {
|
|
25
|
-
'free': 'price_1KAFsIK7krGh4037RsaAYMEl',
|
|
26
|
-
'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',
|
|
27
|
-
'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',
|
|
28
|
-
'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',
|
|
29
|
-
'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',
|
|
30
|
-
'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',
|
|
31
|
-
'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'
|
|
32
|
-
},
|
|
33
|
-
dev: {
|
|
34
|
-
'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
|
|
35
|
-
'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
36
|
-
'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
37
|
-
'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
|
|
38
|
-
'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
|
|
39
|
-
'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
|
|
40
|
-
'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
|
|
41
|
-
},
|
|
42
|
-
qa: {
|
|
43
|
-
'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
|
|
44
|
-
'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
45
|
-
'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
46
|
-
'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
|
|
47
|
-
'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
|
|
48
|
-
'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
|
|
49
|
-
'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
|
|
50
|
-
},
|
|
51
|
-
prod: {
|
|
52
|
-
'free': 'price_1KAFsIK7krGh4037RsaAYMEl',
|
|
53
|
-
'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',
|
|
54
|
-
'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',
|
|
55
|
-
'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',
|
|
56
|
-
'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',
|
|
57
|
-
'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',
|
|
58
|
-
'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
exports.CommonPlanInfo = [
|
|
62
|
-
'Free Server Side Tracking & Conversion API',
|
|
63
|
-
'MultiPixel Support (Multiple facebook, tiktok, etc)',
|
|
64
|
-
'Corrects Facebook Conversion Tracking post IOS14',
|
|
65
|
-
'Increase ROAS & Attribution Data',
|
|
66
|
-
'Enhanced Fingerprinting & Identity Resolution',
|
|
67
|
-
'Unlimited Integrations',
|
|
68
|
-
'Advanced Integrations (Webhooks, Custom JS/HTML, Hubspot)'
|
|
69
|
-
];
|
|
70
|
-
exports.SubscriptionPlanSeedItems = {
|
|
71
|
-
items: [{
|
|
72
|
-
id: 1,
|
|
73
|
-
planName: 'free',
|
|
74
|
-
displayName: 'Free',
|
|
75
|
-
sku: 'ADT-001',
|
|
76
|
-
description: 'Free Plan - Monthly',
|
|
77
|
-
price: '0',
|
|
78
|
-
displayPrice: '$0',
|
|
79
|
-
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
80
|
-
trialLengthDays: 60,
|
|
81
|
-
trialRequiresCreditCard: false,
|
|
82
|
-
orderUsageLimit: 250,
|
|
83
|
-
planDesc: [
|
|
84
|
-
...exports.CommonPlanInfo,
|
|
85
|
-
'Up to 250 orders/month, additional $0.25/order'
|
|
86
|
-
],
|
|
87
|
-
unitPriceText: 'try now - free plan',
|
|
88
|
-
isHighlighted: false,
|
|
89
|
-
isBanner: false
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
id: 4,
|
|
93
|
-
planName: 'scale_monthly',
|
|
94
|
-
displayName: 'Scale',
|
|
95
|
-
sku: 'ADT-004',
|
|
96
|
-
description: 'Scale Plan - Monthly',
|
|
97
|
-
price: '50',
|
|
98
|
-
displayPrice: '$50',
|
|
99
|
-
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
100
|
-
trialLengthDays: 60,
|
|
101
|
-
trialRequiresCreditCard: false,
|
|
102
|
-
orderUsageLimit: 500,
|
|
103
|
-
planDesc: [
|
|
104
|
-
'60-day Risk Free Trial',
|
|
105
|
-
...exports.CommonPlanInfo,
|
|
106
|
-
'Up to 500 orders/month, additional $0.20/order'
|
|
107
|
-
],
|
|
108
|
-
unitPriceText: '',
|
|
109
|
-
isHighlighted: false,
|
|
110
|
-
isBanner: true,
|
|
111
|
-
bannerColor: 'blue',
|
|
112
|
-
bannerText: 'MOST POPULAR'
|
|
113
|
-
}, {
|
|
114
|
-
id: 5,
|
|
115
|
-
planName: 'scale_yearly',
|
|
116
|
-
displayName: 'Scale',
|
|
117
|
-
sku: 'ADT-005',
|
|
118
|
-
description: 'Scale Plan - Yearly',
|
|
119
|
-
price: '500',
|
|
120
|
-
displayPrice: '$42',
|
|
121
|
-
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.YEARLY,
|
|
122
|
-
trialLengthDays: 60,
|
|
123
|
-
trialRequiresCreditCard: false,
|
|
124
|
-
orderUsageLimit: 500,
|
|
125
|
-
planDesc: [
|
|
126
|
-
'60-day Risk Free Trial',
|
|
127
|
-
...exports.CommonPlanInfo,
|
|
128
|
-
'Up to 500 orders/month, additional $0.20/order'
|
|
129
|
-
],
|
|
130
|
-
unitPriceText: 'billed yearly ($500) - 17% savings',
|
|
131
|
-
isHighlighted: false,
|
|
132
|
-
isBanner: true,
|
|
133
|
-
bannerColor: 'blue',
|
|
134
|
-
bannerText: 'MOST POPULAR'
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
id: 6,
|
|
138
|
-
planName: 'growth_monthly',
|
|
139
|
-
displayName: 'Growth',
|
|
140
|
-
sku: 'ADT-006',
|
|
141
|
-
description: 'Growth Plan - Monthly',
|
|
142
|
-
price: '100',
|
|
143
|
-
displayPrice: '$100',
|
|
144
|
-
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
145
|
-
trialLengthDays: 60,
|
|
146
|
-
trialRequiresCreditCard: false,
|
|
147
|
-
orderUsageLimit: 1000,
|
|
148
|
-
planDesc: [
|
|
149
|
-
'60-day Risk Free Trial',
|
|
150
|
-
...exports.CommonPlanInfo,
|
|
151
|
-
'Up to 1000 orders/month, additional $0.15/order'
|
|
152
|
-
],
|
|
153
|
-
unitPriceText: '',
|
|
154
|
-
isHighlighted: false,
|
|
155
|
-
isBanner: false,
|
|
156
|
-
bannerColor: 'orange',
|
|
157
|
-
bannerText: 'BEST VALUE'
|
|
158
|
-
}, {
|
|
159
|
-
id: 7,
|
|
160
|
-
planName: 'growth_yearly',
|
|
161
|
-
displayName: 'Growth',
|
|
162
|
-
sku: 'ADT-007',
|
|
163
|
-
description: 'Growth Plan - Yearly',
|
|
164
|
-
price: '1000',
|
|
165
|
-
displayPrice: '$84',
|
|
166
|
-
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.YEARLY,
|
|
167
|
-
trialLengthDays: 60,
|
|
168
|
-
trialRequiresCreditCard: false,
|
|
169
|
-
orderUsageLimit: 1000,
|
|
170
|
-
planDesc: [
|
|
171
|
-
'60-day Risk Free Trial',
|
|
172
|
-
...exports.CommonPlanInfo,
|
|
173
|
-
'Up to 1000 orders/month, additional $0.15/order'
|
|
174
|
-
],
|
|
175
|
-
unitPriceText: 'billed yearly ($1080) - 17% savings',
|
|
176
|
-
isHighlighted: false,
|
|
177
|
-
isBanner: false,
|
|
178
|
-
bannerColor: 'orange',
|
|
179
|
-
bannerText: 'BEST VALUE'
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
id: 8,
|
|
183
|
-
planName: 'growth_plus_monthly',
|
|
184
|
-
displayName: 'Growth Plus',
|
|
185
|
-
sku: 'ADT-008',
|
|
186
|
-
description: 'Growth Plus Plan - Monthly',
|
|
187
|
-
price: '250',
|
|
188
|
-
displayPrice: '$250',
|
|
189
|
-
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
190
|
-
trialLengthDays: 60,
|
|
191
|
-
trialRequiresCreditCard: false,
|
|
192
|
-
orderUsageLimit: 10000,
|
|
193
|
-
planDesc: [
|
|
194
|
-
'60-day Risk Free Trial',
|
|
195
|
-
...exports.CommonPlanInfo,
|
|
196
|
-
'Up to 10,000 orders/month, addition $0.03/order'
|
|
197
|
-
],
|
|
198
|
-
unitPriceText: '',
|
|
199
|
-
isHighlighted: false,
|
|
200
|
-
isBanner: false,
|
|
201
|
-
bannerColor: 'orange',
|
|
202
|
-
bannerText: 'BEST VALUE'
|
|
203
|
-
}, {
|
|
204
|
-
id: 9,
|
|
205
|
-
planName: 'growth_plus_yearly',
|
|
206
|
-
displayName: 'Growth Plus',
|
|
207
|
-
sku: 'ADT-009',
|
|
208
|
-
description: 'Growth Plus Plan - Yearly',
|
|
209
|
-
price: '2500',
|
|
210
|
-
displayPrice: '$209',
|
|
211
|
-
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.YEARLY,
|
|
212
|
-
trialLengthDays: 60,
|
|
213
|
-
trialRequiresCreditCard: false,
|
|
214
|
-
orderUsageLimit: 10000,
|
|
215
|
-
planDesc: [
|
|
216
|
-
'60-day Risk Free Trial',
|
|
217
|
-
...exports.CommonPlanInfo,
|
|
218
|
-
'Up to 5000 orders/month, additional $0.03/order'
|
|
219
|
-
],
|
|
220
|
-
unitPriceText: 'billed yearly ($2500) - 17% savings',
|
|
221
|
-
isHighlighted: false,
|
|
222
|
-
isBanner: false,
|
|
223
|
-
bannerColor: 'orange',
|
|
224
|
-
bannerText: 'BEST VALUE'
|
|
225
|
-
},
|
|
226
|
-
]
|
|
227
|
-
};
|
|
228
|
-
const getPlanDetails = (planId, stage) => {
|
|
229
|
-
const plan = exports.SubscriptionPlanSeedItems.items.filter(x => x.id === planId)[0];
|
|
230
|
-
plan.stripePriceId = exports.StripeBillingMap[stage][plan.planName];
|
|
231
|
-
return plan;
|
|
232
|
-
};
|
|
233
|
-
exports.getPlanDetails = getPlanDetails;
|
|
234
|
-
const getPlanByStripePriceId = (stripePriceId, stage) => {
|
|
235
|
-
const stripePriceIds = exports.StripeBillingMap[stage];
|
|
236
|
-
const planName = Object.keys(stripePriceIds).find(key => stripePriceIds[key] === stripePriceId);
|
|
237
|
-
const plan = exports.SubscriptionPlanSeedItems.items.filter(x => x.planName === planName)[0];
|
|
238
|
-
plan.stripePriceId = stripePriceId;
|
|
239
|
-
return plan;
|
|
240
|
-
};
|
|
241
|
-
exports.getPlanByStripePriceId = getPlanByStripePriceId;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPlanByStripePriceId = exports.getPlanDetails = exports.SubscriptionPlanSeedItems = exports.CommonPlanInfo = exports.StripeBillingMap = void 0;
|
|
4
|
+
const at_tracking_event_types_1 = require("@adtrackify/at-tracking-event-types");
|
|
5
|
+
exports.StripeBillingMap = {
|
|
6
|
+
dev2: {
|
|
7
|
+
'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
|
|
8
|
+
'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
9
|
+
'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
10
|
+
'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
|
|
11
|
+
'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
|
|
12
|
+
'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
|
|
13
|
+
'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
|
|
14
|
+
},
|
|
15
|
+
qa2: {
|
|
16
|
+
'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
|
|
17
|
+
'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
18
|
+
'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
19
|
+
'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
|
|
20
|
+
'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
|
|
21
|
+
'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
|
|
22
|
+
'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
|
|
23
|
+
},
|
|
24
|
+
prod2: {
|
|
25
|
+
'free': 'price_1KAFsIK7krGh4037RsaAYMEl',
|
|
26
|
+
'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',
|
|
27
|
+
'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',
|
|
28
|
+
'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',
|
|
29
|
+
'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',
|
|
30
|
+
'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',
|
|
31
|
+
'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'
|
|
32
|
+
},
|
|
33
|
+
dev: {
|
|
34
|
+
'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
|
|
35
|
+
'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
36
|
+
'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
37
|
+
'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
|
|
38
|
+
'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
|
|
39
|
+
'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
|
|
40
|
+
'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
|
|
41
|
+
},
|
|
42
|
+
qa: {
|
|
43
|
+
'free': 'price_1JzjbKK7krGh4037ezNbGJEm',
|
|
44
|
+
'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
45
|
+
'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',
|
|
46
|
+
'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',
|
|
47
|
+
'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',
|
|
48
|
+
'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',
|
|
49
|
+
'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'
|
|
50
|
+
},
|
|
51
|
+
prod: {
|
|
52
|
+
'free': 'price_1KAFsIK7krGh4037RsaAYMEl',
|
|
53
|
+
'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',
|
|
54
|
+
'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',
|
|
55
|
+
'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',
|
|
56
|
+
'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',
|
|
57
|
+
'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',
|
|
58
|
+
'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
exports.CommonPlanInfo = [
|
|
62
|
+
'Free Server Side Tracking & Conversion API',
|
|
63
|
+
'MultiPixel Support (Multiple facebook, tiktok, etc)',
|
|
64
|
+
'Corrects Facebook Conversion Tracking post IOS14',
|
|
65
|
+
'Increase ROAS & Attribution Data',
|
|
66
|
+
'Enhanced Fingerprinting & Identity Resolution',
|
|
67
|
+
'Unlimited Integrations',
|
|
68
|
+
'Advanced Integrations (Webhooks, Custom JS/HTML, Hubspot)'
|
|
69
|
+
];
|
|
70
|
+
exports.SubscriptionPlanSeedItems = {
|
|
71
|
+
items: [{
|
|
72
|
+
id: 1,
|
|
73
|
+
planName: 'free',
|
|
74
|
+
displayName: 'Free',
|
|
75
|
+
sku: 'ADT-001',
|
|
76
|
+
description: 'Free Plan - Monthly',
|
|
77
|
+
price: '0',
|
|
78
|
+
displayPrice: '$0',
|
|
79
|
+
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
80
|
+
trialLengthDays: 60,
|
|
81
|
+
trialRequiresCreditCard: false,
|
|
82
|
+
orderUsageLimit: 250,
|
|
83
|
+
planDesc: [
|
|
84
|
+
...exports.CommonPlanInfo,
|
|
85
|
+
'Up to 250 orders/month, additional $0.25/order'
|
|
86
|
+
],
|
|
87
|
+
unitPriceText: 'try now - free plan',
|
|
88
|
+
isHighlighted: false,
|
|
89
|
+
isBanner: false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 4,
|
|
93
|
+
planName: 'scale_monthly',
|
|
94
|
+
displayName: 'Scale',
|
|
95
|
+
sku: 'ADT-004',
|
|
96
|
+
description: 'Scale Plan - Monthly',
|
|
97
|
+
price: '50',
|
|
98
|
+
displayPrice: '$50',
|
|
99
|
+
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
100
|
+
trialLengthDays: 60,
|
|
101
|
+
trialRequiresCreditCard: false,
|
|
102
|
+
orderUsageLimit: 500,
|
|
103
|
+
planDesc: [
|
|
104
|
+
'60-day Risk Free Trial',
|
|
105
|
+
...exports.CommonPlanInfo,
|
|
106
|
+
'Up to 500 orders/month, additional $0.20/order'
|
|
107
|
+
],
|
|
108
|
+
unitPriceText: '',
|
|
109
|
+
isHighlighted: false,
|
|
110
|
+
isBanner: true,
|
|
111
|
+
bannerColor: 'blue',
|
|
112
|
+
bannerText: 'MOST POPULAR'
|
|
113
|
+
}, {
|
|
114
|
+
id: 5,
|
|
115
|
+
planName: 'scale_yearly',
|
|
116
|
+
displayName: 'Scale',
|
|
117
|
+
sku: 'ADT-005',
|
|
118
|
+
description: 'Scale Plan - Yearly',
|
|
119
|
+
price: '500',
|
|
120
|
+
displayPrice: '$42',
|
|
121
|
+
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.YEARLY,
|
|
122
|
+
trialLengthDays: 60,
|
|
123
|
+
trialRequiresCreditCard: false,
|
|
124
|
+
orderUsageLimit: 500,
|
|
125
|
+
planDesc: [
|
|
126
|
+
'60-day Risk Free Trial',
|
|
127
|
+
...exports.CommonPlanInfo,
|
|
128
|
+
'Up to 500 orders/month, additional $0.20/order'
|
|
129
|
+
],
|
|
130
|
+
unitPriceText: 'billed yearly ($500) - 17% savings',
|
|
131
|
+
isHighlighted: false,
|
|
132
|
+
isBanner: true,
|
|
133
|
+
bannerColor: 'blue',
|
|
134
|
+
bannerText: 'MOST POPULAR'
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: 6,
|
|
138
|
+
planName: 'growth_monthly',
|
|
139
|
+
displayName: 'Growth',
|
|
140
|
+
sku: 'ADT-006',
|
|
141
|
+
description: 'Growth Plan - Monthly',
|
|
142
|
+
price: '100',
|
|
143
|
+
displayPrice: '$100',
|
|
144
|
+
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
145
|
+
trialLengthDays: 60,
|
|
146
|
+
trialRequiresCreditCard: false,
|
|
147
|
+
orderUsageLimit: 1000,
|
|
148
|
+
planDesc: [
|
|
149
|
+
'60-day Risk Free Trial',
|
|
150
|
+
...exports.CommonPlanInfo,
|
|
151
|
+
'Up to 1000 orders/month, additional $0.15/order'
|
|
152
|
+
],
|
|
153
|
+
unitPriceText: '',
|
|
154
|
+
isHighlighted: false,
|
|
155
|
+
isBanner: false,
|
|
156
|
+
bannerColor: 'orange',
|
|
157
|
+
bannerText: 'BEST VALUE'
|
|
158
|
+
}, {
|
|
159
|
+
id: 7,
|
|
160
|
+
planName: 'growth_yearly',
|
|
161
|
+
displayName: 'Growth',
|
|
162
|
+
sku: 'ADT-007',
|
|
163
|
+
description: 'Growth Plan - Yearly',
|
|
164
|
+
price: '1000',
|
|
165
|
+
displayPrice: '$84',
|
|
166
|
+
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.YEARLY,
|
|
167
|
+
trialLengthDays: 60,
|
|
168
|
+
trialRequiresCreditCard: false,
|
|
169
|
+
orderUsageLimit: 1000,
|
|
170
|
+
planDesc: [
|
|
171
|
+
'60-day Risk Free Trial',
|
|
172
|
+
...exports.CommonPlanInfo,
|
|
173
|
+
'Up to 1000 orders/month, additional $0.15/order'
|
|
174
|
+
],
|
|
175
|
+
unitPriceText: 'billed yearly ($1080) - 17% savings',
|
|
176
|
+
isHighlighted: false,
|
|
177
|
+
isBanner: false,
|
|
178
|
+
bannerColor: 'orange',
|
|
179
|
+
bannerText: 'BEST VALUE'
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: 8,
|
|
183
|
+
planName: 'growth_plus_monthly',
|
|
184
|
+
displayName: 'Growth Plus',
|
|
185
|
+
sku: 'ADT-008',
|
|
186
|
+
description: 'Growth Plus Plan - Monthly',
|
|
187
|
+
price: '250',
|
|
188
|
+
displayPrice: '$250',
|
|
189
|
+
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.MONTHLY,
|
|
190
|
+
trialLengthDays: 60,
|
|
191
|
+
trialRequiresCreditCard: false,
|
|
192
|
+
orderUsageLimit: 10000,
|
|
193
|
+
planDesc: [
|
|
194
|
+
'60-day Risk Free Trial',
|
|
195
|
+
...exports.CommonPlanInfo,
|
|
196
|
+
'Up to 10,000 orders/month, addition $0.03/order'
|
|
197
|
+
],
|
|
198
|
+
unitPriceText: '',
|
|
199
|
+
isHighlighted: false,
|
|
200
|
+
isBanner: false,
|
|
201
|
+
bannerColor: 'orange',
|
|
202
|
+
bannerText: 'BEST VALUE'
|
|
203
|
+
}, {
|
|
204
|
+
id: 9,
|
|
205
|
+
planName: 'growth_plus_yearly',
|
|
206
|
+
displayName: 'Growth Plus',
|
|
207
|
+
sku: 'ADT-009',
|
|
208
|
+
description: 'Growth Plus Plan - Yearly',
|
|
209
|
+
price: '2500',
|
|
210
|
+
displayPrice: '$209',
|
|
211
|
+
billingFrequency: at_tracking_event_types_1.PLAN_BILLING_FREQUENCY.YEARLY,
|
|
212
|
+
trialLengthDays: 60,
|
|
213
|
+
trialRequiresCreditCard: false,
|
|
214
|
+
orderUsageLimit: 10000,
|
|
215
|
+
planDesc: [
|
|
216
|
+
'60-day Risk Free Trial',
|
|
217
|
+
...exports.CommonPlanInfo,
|
|
218
|
+
'Up to 5000 orders/month, additional $0.03/order'
|
|
219
|
+
],
|
|
220
|
+
unitPriceText: 'billed yearly ($2500) - 17% savings',
|
|
221
|
+
isHighlighted: false,
|
|
222
|
+
isBanner: false,
|
|
223
|
+
bannerColor: 'orange',
|
|
224
|
+
bannerText: 'BEST VALUE'
|
|
225
|
+
},
|
|
226
|
+
]
|
|
227
|
+
};
|
|
228
|
+
const getPlanDetails = (planId, stage) => {
|
|
229
|
+
const plan = exports.SubscriptionPlanSeedItems.items.filter(x => x.id === planId)[0];
|
|
230
|
+
plan.stripePriceId = exports.StripeBillingMap[stage][plan.planName];
|
|
231
|
+
return plan;
|
|
232
|
+
};
|
|
233
|
+
exports.getPlanDetails = getPlanDetails;
|
|
234
|
+
const getPlanByStripePriceId = (stripePriceId, stage) => {
|
|
235
|
+
const stripePriceIds = exports.StripeBillingMap[stage];
|
|
236
|
+
const planName = Object.keys(stripePriceIds).find(key => stripePriceIds[key] === stripePriceId);
|
|
237
|
+
const plan = exports.SubscriptionPlanSeedItems.items.filter(x => x.planName === planName)[0];
|
|
238
|
+
plan.stripePriceId = stripePriceId;
|
|
239
|
+
return plan;
|
|
240
|
+
};
|
|
241
|
+
exports.getPlanByStripePriceId = getPlanByStripePriceId;
|
|
242
242
|
//# sourceMappingURL=subscription-helper.js.map
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './clients/index.js';
|
|
2
|
-
export * from './helpers/index.js';
|
|
3
|
-
export * from './libs/index.js';
|
|
4
|
-
export * from './types/index.js';
|
|
5
|
-
export * from './services/index.js';
|
|
1
|
+
export * from './clients/index.js';
|
|
2
|
+
export * from './helpers/index.js';
|
|
3
|
+
export * from './libs/index.js';
|
|
4
|
+
export * from './types/index.js';
|
|
5
|
+
export * from './services/index.js';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./clients/index.js"), exports);
|
|
18
|
-
__exportStar(require("./helpers/index.js"), exports);
|
|
19
|
-
__exportStar(require("./libs/index.js"), exports);
|
|
20
|
-
__exportStar(require("./types/index.js"), exports);
|
|
21
|
-
__exportStar(require("./services/index.js"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./clients/index.js"), exports);
|
|
18
|
+
__exportStar(require("./helpers/index.js"), exports);
|
|
19
|
+
__exportStar(require("./libs/index.js"), exports);
|
|
20
|
+
__exportStar(require("./types/index.js"), exports);
|
|
21
|
+
__exportStar(require("./services/index.js"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare enum CLICK_NETWORK {
|
|
2
|
-
GOOGLE = "Google",
|
|
3
|
-
FACEBOOK = "Facebook",
|
|
4
|
-
TIKTOK = "TikTok",
|
|
5
|
-
TWITTER = "Twitter",
|
|
6
|
-
SNAPCHAT = "Snapchat",
|
|
7
|
-
TABOOLA = "Taboola",
|
|
8
|
-
OUTBRAIN = "Outbrain",
|
|
9
|
-
MICROSOFT = "Microsoft"
|
|
10
|
-
}
|
|
11
|
-
export declare const ClickIdDictionary: {
|
|
12
|
-
[key: string]: CLICK_NETWORK;
|
|
13
|
-
};
|
|
14
|
-
export interface ParsedClickId {
|
|
15
|
-
mktClickParam?: string;
|
|
16
|
-
mktClickId?: string;
|
|
17
|
-
mkyClickNetwork?: CLICK_NETWORK;
|
|
18
|
-
}
|
|
19
|
-
export declare const parseClickId: (qsp: URLSearchParams) => {
|
|
20
|
-
mktClickParam: string;
|
|
21
|
-
mktClickId: string | null;
|
|
22
|
-
mktClickNetwork: CLICK_NETWORK;
|
|
23
|
-
} | undefined;
|
|
1
|
+
export declare enum CLICK_NETWORK {
|
|
2
|
+
GOOGLE = "Google",
|
|
3
|
+
FACEBOOK = "Facebook",
|
|
4
|
+
TIKTOK = "TikTok",
|
|
5
|
+
TWITTER = "Twitter",
|
|
6
|
+
SNAPCHAT = "Snapchat",
|
|
7
|
+
TABOOLA = "Taboola",
|
|
8
|
+
OUTBRAIN = "Outbrain",
|
|
9
|
+
MICROSOFT = "Microsoft"
|
|
10
|
+
}
|
|
11
|
+
export declare const ClickIdDictionary: {
|
|
12
|
+
[key: string]: CLICK_NETWORK;
|
|
13
|
+
};
|
|
14
|
+
export interface ParsedClickId {
|
|
15
|
+
mktClickParam?: string;
|
|
16
|
+
mktClickId?: string;
|
|
17
|
+
mkyClickNetwork?: CLICK_NETWORK;
|
|
18
|
+
}
|
|
19
|
+
export declare const parseClickId: (qsp: URLSearchParams) => {
|
|
20
|
+
mktClickParam: string;
|
|
21
|
+
mktClickId: string | null;
|
|
22
|
+
mktClickNetwork: CLICK_NETWORK;
|
|
23
|
+
} | undefined;
|