@adtrackify/at-service-common 1.2.32 → 1.2.34
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/__tests__/helpers/subscription-helper.spec.d.ts +1 -1
- package/dist/__tests__/helpers/subscription-helper.spec.js +27 -27
- package/dist/__tests__/s3-client/s3-client.spec.d.ts +1 -1
- package/dist/__tests__/s3-client/s3-client.spec.js +24 -24
- package/dist/clients/generic/cognito-client.d.ts +19 -19
- package/dist/clients/generic/cognito-client.js +139 -139
- package/dist/clients/generic/dynamodb-client.d.ts +15 -15
- package/dist/clients/generic/dynamodb-client.js +122 -122
- package/dist/clients/generic/eventbridge-client.d.ts +14 -14
- package/dist/clients/generic/eventbridge-client.js +45 -45
- package/dist/clients/generic/http-client.d.ts +30 -30
- package/dist/clients/generic/http-client.js +28 -28
- package/dist/clients/generic/index.d.ts +6 -6
- package/dist/clients/generic/index.js +6 -6
- package/dist/clients/generic/s3-client.d.ts +14 -14
- package/dist/clients/generic/s3-client.js +78 -78
- package/dist/clients/generic/sqs-client.d.ts +14 -14
- package/dist/clients/generic/sqs-client.js +34 -34
- package/dist/clients/index.d.ts +3 -3
- package/dist/clients/index.js +3 -3
- package/dist/clients/internal-api/accounts-client.d.ts +82 -82
- package/dist/clients/internal-api/accounts-client.js +78 -78
- package/dist/clients/internal-api/destinations-client.d.ts +54 -54
- package/dist/clients/internal-api/destinations-client.js +36 -36
- package/dist/clients/internal-api/index.d.ts +4 -4
- package/dist/clients/internal-api/index.js +4 -4
- package/dist/clients/internal-api/shopify-app-install-client.d.ts +57 -57
- package/dist/clients/internal-api/shopify-app-install-client.js +42 -42
- package/dist/clients/internal-api/users-auth-client.d.ts +61 -61
- package/dist/clients/internal-api/users-auth-client.js +73 -73
- package/dist/clients/third-party/index.d.ts +1 -1
- package/dist/clients/third-party/index.js +1 -1
- package/dist/clients/third-party/shopify-client.d.ts +90 -90
- package/dist/clients/third-party/shopify-client.js +121 -121
- package/dist/clients/third-party/shopify-client.js.map +1 -1
- package/dist/helpers/index.d.ts +5 -5
- package/dist/helpers/index.js +5 -5
- package/dist/helpers/input-validation-helper.d.ts +2 -2
- package/dist/helpers/input-validation-helper.js +18 -18
- package/dist/helpers/logging-helper.d.ts +15 -15
- package/dist/helpers/logging-helper.js +53 -53
- package/dist/helpers/response-helper.d.ts +36 -36
- package/dist/helpers/response-helper.js +35 -35
- package/dist/helpers/shopify-helper.d.ts +9 -9
- package/dist/helpers/shopify-helper.js +23 -23
- package/dist/helpers/subscription-helper.d.ts +8 -8
- package/dist/helpers/subscription-helper.js +181 -181
- package/dist/index.d.ts +5 -5
- package/dist/index.esm.js +4865 -32
- package/dist/index.esm.js.map +4 -4
- package/dist/index.js +5 -5
- package/dist/libs/clickId-parser.d.ts +21 -0
- package/dist/libs/clickId-parser.js +28 -0
- package/dist/libs/clickId-parser.js.map +1 -0
- package/dist/libs/crypto.d.ts +1 -1
- package/dist/libs/crypto.js +5 -5
- package/dist/libs/dates.d.ts +3 -3
- package/dist/libs/dates.js +10 -10
- package/dist/libs/http-error.d.ts +21 -21
- package/dist/libs/http-error.js +55 -55
- package/dist/libs/http-status-codes.d.ts +58 -58
- package/dist/libs/http-status-codes.js +59 -59
- package/dist/libs/index.d.ts +7 -6
- package/dist/libs/index.js +7 -6
- package/dist/libs/index.js.map +1 -1
- package/dist/libs/referrer-parser/index.d.ts +2 -0
- package/dist/libs/referrer-parser/index.js +3 -0
- package/dist/libs/referrer-parser/index.js.map +1 -0
- package/dist/libs/referrer-parser/referrer-data.d.ts +9 -0
- package/dist/libs/referrer-parser/referrer-data.js +4710 -0
- package/dist/libs/referrer-parser/referrer-data.js.map +1 -0
- package/dist/libs/referrer-parser/referrer-parser-util.d.ts +20 -0
- package/dist/libs/referrer-parser/referrer-parser-util.js +117 -0
- package/dist/libs/referrer-parser/referrer-parser-util.js.map +1 -0
- package/dist/libs/url.d.ts +1 -1
- package/dist/libs/url.js +9 -9
- package/dist/services/eventbridge-integration-service.d.ts +9 -9
- package/dist/services/eventbridge-integration-service.js +24 -24
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +1 -1
- package/dist/types/api-response.d.ts +6 -6
- package/dist/types/api-response.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal-events/event-detail-types.d.ts +20 -20
- package/dist/types/internal-events/event-detail-types.js +24 -24
- package/dist/types/internal-events/index.d.ts +1 -1
- package/dist/types/internal-events/index.js +1 -1
- package/package.json +6 -3
package/dist/index.esm.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/clients/generic/dynamodb-client.ts", "../src/clients/generic/eventbridge-client.ts", "../src/libs/dates.ts", "../src/clients/generic/http-client.ts", "../src/clients/generic/s3-client.ts", "../src/clients/generic/cognito-client.ts", "../src/clients/generic/sqs-client.ts", "../src/clients/internal-api/destinations-client.ts", "../src/clients/internal-api/accounts-client.ts", "../src/libs/http-error.ts", "../src/libs/http-status-codes.ts", "../src/clients/internal-api/users-auth-client.ts", "../src/clients/internal-api/shopify-app-install-client.ts", "../src/clients/third-party/shopify-client.ts", "../src/helpers/logging-helper.ts", "../src/helpers/input-validation-helper.ts", "../src/helpers/response-helper.ts", "../src/helpers/shopify-helper.ts", "../src/libs/url.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/account.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/destinations/destinations.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/destinations/third-party-destination-configs.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/shopify-app-install.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/subscription.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/common/logger.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/adtrackify-standard-events.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/tracking-events/tracking-event-type.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/adtrackify-event-types.ts", "../src/helpers/subscription-helper.ts", "../src/libs/crypto.ts", "../src/types/internal-events/event-detail-types.ts", "../src/services/eventbridge-integration-service.ts"],
|
|
4
|
-
"sourcesContent": ["import { DynamoDBClient, QueryOutput } from '@aws-sdk/client-dynamodb';\nimport { DynamoDBDocument } from '@aws-sdk/lib-dynamodb';\nimport { Logger } from '../../index.js';\n\nconst marshallOptions = {\n convertEmptyValues: false,\n removeUndefinedValues: false,\n convertClassInstanceToMap: true\n};\n\nconst unmarshallOptions = {\n wrapNumbers: false,\n};\n\nconst translateConfig = { marshallOptions, unmarshallOptions };\nconst ddbClient = new DynamoDBClient({});\nconst client = DynamoDBDocument.from(ddbClient, translateConfig);\n\nexport class DynamoDbClient {\n static safeGet = async (tableName: string, keyName: string, keyValue: any) => {\n try {\n const params = {\n TableName: tableName,\n Key: {\n [ keyName ]: keyValue\n }\n };\n const res = await client.get(params);\n return res?.Item ?? null;\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo Client Get Failed' });\n return null;\n }\n };\n\n static safePut = async (tableName: string, data: any) => {\n try {\n const params = {\n TableName: tableName,\n Item: data\n };\n const res = await client.put(params);\n return res;\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo failed simplePut' });\n return null;\n }\n };\n\n static safeDelete = async (tableName: string, keyName: string, keyValue: any) => {\n try {\n const params = {\n TableName: tableName,\n Key: {\n [ keyName ]: keyValue\n }\n };\n const res = await client.delete(params);\n return res;\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo failed safeDelete' });\n return null;\n }\n };\n\n static safeQueryByGSI = async (tableName: string, gsiName: string, keyName: string, keyValue: any) => {\n const query = {\n TableName: tableName,\n IndexName: gsiName,\n KeyConditionExpression: `${keyName} = :value`,\n ExpressionAttributeValues: {\n ':value': keyValue\n }\n };\n const results = await DynamoDbClient.queryAll(query);\n return results;\n };\n\n static safeBatchGet = async (tableName: string, keys: any) => {\n try {\n const params: any = {\n RequestItems: {}\n };\n params.RequestItems[ tableName ] = {\n Keys: keys\n };\n const res = await client.batchGet(params);\n Logger.debug('batchget res', { batchGetRes: res });\n if (res?.Responses?.[ tableName ]) {\n return res?.Responses?.[ tableName ];\n }\n return [];\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo failed safeBatchGet' });\n return [];\n }\n };\n\n static queryAll = async (params: any) => {\n try {\n Logger.debug('Invoke Query All', { params });\n let currentResult: QueryOutput, exclusiveStartKey;\n let accumulatedResults: any[] = [];\n do {\n params.ExclusiveStartKey = exclusiveStartKey;\n params.Limit = 200;\n currentResult = await client.query(params);\n if (currentResult.Items) {\n exclusiveStartKey = currentResult.LastEvaluatedKey;\n accumulatedResults = [ ...accumulatedResults, ...currentResult.Items ];\n }\n } while (currentResult.Items && currentResult.Items.length > 0 && currentResult.LastEvaluatedKey);\n return accumulatedResults;\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo failed queryAll' });\n return null;\n }\n };\n\n static batchGet = (params: any) => client.batchGet(params);\n static get = (params: any) => client.get(params);\n static put = (params: any) => client.put(params);\n static query = (params: any) => client.query(params);\n static scan = (params: any) => client.scan(params);\n static update = (params: any) => client.update(params);\n static delete = (params: any) => client.delete(params);\n}", "import { EventBridgeClient as EventBridge, PutEventsCommand, PutEventsCommandInput } from '@aws-sdk/client-eventbridge';\nimport { v4 as uuidv4 } from 'uuid';\nimport { getCurrentTimestamp } from '../../libs/dates.js';\nimport { Logger } from '../../index.js';\n\nexport class EventBridgeClient {\n public eventBridge: EventBridge;\n public EVENT_BUS_NAME: string;\n\n constructor (eventBusName: string) {\n this.eventBridge = new EventBridge({});\n this.EVENT_BUS_NAME = eventBusName;\n }\n\n public buildAndSendEvent = async (eventSource: string, eventType: string, eventData: any) => {\n const event = this.buildEvent(eventType, eventData);\n return await this.putEvent(eventSource, eventType, event);\n };\n\n public buildEvent = (eventType: string, eventData: any, eventId: string = uuidv4(), eventTime: string = getCurrentTimestamp()) => {\n return {\n eventId,\n eventType,\n eventTime,\n eventData\n };\n };\n\n public putEvent = async (source: string, detailType: string, data: any, headers: any = null) => {\n const params: PutEventsCommandInput = {\n Entries: [ {\n Detail: JSON.stringify({ headers, data }),\n DetailType: detailType,\n EventBusName: this.EVENT_BUS_NAME,\n Source: source,\n Time: new Date(),\n } ],\n };\n const putEventscommand = new PutEventsCommand(params);\n const response = await this.eventBridge.send(putEventscommand);\n Logger.debug('EventBus Event Published',\n {\n eventBusName: this.EVENT_BUS_NAME,\n eventSource: source,\n eventType: detailType,\n event: data,\n response\n });\n return response;\n };\n\n}\n\n", "\nimport { DateTime } from 'luxon';\n\nexport const getCurrentTimestamp = (): string => {\n return DateTime.utc().toJSDate().toISOString();\n}\n\nexport const getDateFromTimestamp = (timestamp: string) => {\n return timestamp.split('T')[0];\n}\n\nexport const getCurrentDate = (): string => {\n return getDateFromTimestamp(getCurrentTimestamp());\n}", "import axios, { CreateAxiosDefaults } from 'axios';\nimport https from 'https';\n\nconst httpResponse = (res: any = {}) => {\n return {\n headers: res?.headers || {},\n data: res?.data || {},\n status: res?.status || 0,\n };\n};\n\nconst handleAxiosError = (error: any) => {\n if (!error?.response && !error?.request) throw error;\n return error.response ? httpResponse(error.response) : httpResponse({ status: 500, data: { error: error.request } });\n};\n\nexport const axiosHttpService = (config: CreateAxiosDefaults = {}) => {\n config.adapter = 'http';\n config.httpsAgent = new https.Agent({ keepAlive: true });\n const axiosService = axios.create(config);\n\n return {\n instance: () => axiosService,\n get: (url: string, config?: any) => axiosService.get(url, config).then(httpResponse, handleAxiosError),\n post: (url: string, data?: any, config?: any) => axiosService.post(url, data, config).then(httpResponse, handleAxiosError),\n delete: (url: string, config?: any) => axiosService.delete(url, config).then(httpResponse, handleAxiosError),\n put: (url: string, data?: any, config?: any) => axiosService.put(url, data, config).then(httpResponse, handleAxiosError),\n patch: (url: string, data?: any, config?: any) => axiosService.patch(url, data, config).then(httpResponse, handleAxiosError),\n setBaseUrl: (url: string) => !!(axiosService.defaults.baseURL = url)\n };\n};\n", "import { ObjectCannedACL, PutObjectCommandOutput, S3 } from '@aws-sdk/client-s3';\nimport { Logger } from '../../index.js';\nexport class S3Client {\n s3: S3;\n\n constructor (region = 'us-west-2') {\n this.s3 = new S3({ region });\n }\n\n async checkObjectExists(path: string, bucket: string): Promise<boolean> {\n try {\n const data = await this.s3.headObject({\n Bucket: bucket,\n Key: path,\n })\n\n const exists = data.$metadata.httpStatusCode === 200;\n return exists;\n } catch (error: any) {\n if (error.$metadata?.httpStatusCode === 404) {\n return false;\n } else if (error.$metadata?.httpStatusCode === 403) {\n return false;\n } else {\n Logger.error('checkObjectExists unknown error', { error });\n return false;\n }\n }\n }\n\n async checkAndUploadJson(path: string, bucket: string, jsonData: any, ACL: ObjectCannedACL | string = ObjectCannedACL.private, retryCount = 0, maxRetries = 5): Promise<{ status: boolean, response?: PutObjectCommandOutput }> {\n try {\n const checkObject = await this.checkObjectExists(path, bucket);\n\n let res: any = {};\n if (!checkObject) {\n res = await this.s3.putObject({\n ACL,\n Bucket: bucket,\n ContentType: 'application/json; charset=utf-8',\n Body: JSON.stringify(jsonData),\n Key: path\n });\n }\n\n return { status: true, response: res };\n } catch (error) {\n Logger.error('Error in s3 upload json', { error });\n\n if (retryCount < maxRetries) {\n retryCount++;\n Logger.warn('retrying to uploadJson', { path, bucket, jsonData, ACL, retryCount });\n \n await new Promise(resolve => setTimeout(resolve, 1000 * retryCount));\n return await this.uploadJson(path, bucket, jsonData, ACL, retryCount);\n }\n\n return { status: false, response: jsonData };\n }\n }\n\n async uploadJson(path: string, bucket: string, jsonData: any, ACL: ObjectCannedACL | string = ObjectCannedACL.private, retryCount = 0, maxRetries = 5): Promise<{ status: boolean, response: PutObjectCommandOutput; }> {\n try {\n const res = await this.s3.putObject({\n ACL,\n Bucket: bucket,\n ContentType: 'application/json; charset=utf-8',\n Body: JSON.stringify(jsonData),\n Key: path\n });\n\n return { status: true, response: res };\n } catch (error) {\n Logger.error('Error in s3 upload json', { error });\n\n if (retryCount < maxRetries) {\n retryCount++;\n Logger.warn('retrying to uploadJson', { path, bucket, jsonData, ACL, retryCount });\n \n await new Promise(resolve => setTimeout(resolve, 1000 * retryCount));\n return await this.uploadJson(path, bucket, jsonData, ACL, retryCount);\n }\n\n return { status: false, response: jsonData };\n }\n }\n}", "/* eslint-disable no-useless-escape */\nimport { AdminConfirmSignUpCommandInput, AdminDeleteUserCommandInput, AdminUpdateUserAttributesCommandInput, CognitoIdentityProvider, ConfirmSignUpCommandInput, ForgotPasswordCommandInput, ListUsersCommandInput, ResendConfirmationCodeCommandInput, SignUpCommandInput } from '@aws-sdk/client-cognito-identity-provider';\nimport { Logger } from '../../index.js';\n\nexport function dictToAwsAttributes(input: any) {\n delete input.email;\n delete input.password;\n const output = [];\n for (const att in input) {\n if (Object.prototype.hasOwnProperty.call(input, att)) {\n output.push({ Name: att, Value: input[ att ] });\n }\n }\n return output;\n}\n\nconst buildAttributes = (data: any) => {\n const attributes = {\n name: data.givenName,\n family_name: data.familyName,\n };\n return dictToAwsAttributes(attributes);\n};\n\nexport class CognitoClient {\n public cognitoClient: any;\n public USER_POOL_ID: string;\n public USER_POOL_NO_SECRET_CLIENT_ID: string;\n\n constructor (userPoolId: string, userPoolNoSecretClientId: string) {\n this.cognitoClient = new CognitoIdentityProvider({});\n this.USER_POOL_ID = userPoolId;\n this.USER_POOL_NO_SECRET_CLIENT_ID = userPoolNoSecretClientId;\n }\n\n public signupUser = async (data: any) => {\n const params: SignUpCommandInput = {\n ClientId: this.USER_POOL_NO_SECRET_CLIENT_ID,\n Password: data.password,\n Username: data.email,\n UserAttributes: buildAttributes(data),\n };\n const cognitoResponse = await this.cognitoClient.signUp(params);\n Logger.debug('Successfully Registered User', { cognitoResponse });\n return cognitoResponse;\n };\n\n public forgotPassword = async (email: string) => {\n await this.adminEmailVerify(email);\n const params: ForgotPasswordCommandInput = {\n ClientId: this.USER_POOL_NO_SECRET_CLIENT_ID,\n Username: email,\n };\n const cognitoResponse = await this.cognitoClient.forgotPassword(params);\n Logger.debug('Sent Forgot Password', { cognitoResponse });\n return cognitoResponse;\n };\n\n public adminEmailVerify = async (email: string) => {\n try {\n const user: any = await this.getUserByEmail(email);\n if (user && user?.UserStatus === 'CONFIRMED' && user?.email_verified !== 'true') {\n await this.forceValidateEmail(email);\n }\n } catch (error) {\n Logger.error('Failed admin email verify', { error });\n }\n };\n\n public forceValidateEmail = async (email: string) => {\n try {\n const params: AdminUpdateUserAttributesCommandInput = {\n UserPoolId: this.USER_POOL_ID,\n Username: email,\n UserAttributes: [\n {\n Name: 'email_verified',\n Value: 'true',\n },\n ],\n };\n await this.cognitoClient.adminUpdateUserAttributes(params);\n } catch (error) {\n Logger.error('Failed force validate email', { email, error });\n }\n };\n\n public adminConfirmUser = async (data: any) => {\n const params: AdminConfirmSignUpCommandInput = {\n UserPoolId: this.USER_POOL_ID,\n Username: data.email,\n };\n const cognitoResponse = await this.cognitoClient.adminConfirmSignUp(params);\n await this.forceValidateEmail(data.email);\n Logger.debug('Admin Successfully Confirmed User', { cognitoResponse });\n return cognitoResponse;\n };\n\n public confirmUser = async (data: any) => {\n const params: ConfirmSignUpCommandInput = {\n ClientId: this.USER_POOL_NO_SECRET_CLIENT_ID,\n ConfirmationCode: data.confirmationCode,\n Username: data.email,\n };\n const cognitoResponse = await this.cognitoClient.confirmSignUp(params);\n Logger.debug('Successfully Confirmed User', { cognitoResponse });\n return cognitoResponse;\n };\n\n public resendCode = async (email: string) => {\n const params: ResendConfirmationCodeCommandInput = {\n ClientId: this.USER_POOL_NO_SECRET_CLIENT_ID,\n Username: email,\n };\n await this.cognitoClient.resendConfirmationCode(params);\n Logger.debug('Successfully Resend Confirmation Code', { email });\n return;\n };\n\n public adminDeleteUser = async (userId: string) => {\n const params: AdminDeleteUserCommandInput = {\n UserPoolId: this.USER_POOL_ID,\n Username: userId,\n };\n await this.cognitoClient.adminDeleteUser(params);\n return true;\n };\n\n public getUserByEmail = async (email: string) => {\n const params: ListUsersCommandInput = {\n UserPoolId: this.USER_POOL_ID,\n Filter: `email=\\\"${email}\\\"`,\n Limit: 1,\n };\n const cognitoResponse: any = await this.cognitoClient.listUsers(params);\n Logger.debug('Get Users by Email', { cognitoResponse });\n\n if (cognitoResponse?.Users && cognitoResponse?.Users.length > 0) {\n const attributes = cognitoResponse.Users[ 0 ].Attributes;\n\n const user = {\n ...cognitoResponse.Users[ 0 ],\n Attributes: undefined,\n id: cognitoResponse.Users[ 0 ].sub,\n };\n\n attributes.forEach((attr: any) => {\n user[ attr.Name ] = attr?.Value;\n });\n return user;\n }\n return null;\n };\n}", "import { SQS, SendMessageCommandInput } from '@aws-sdk/client-sqs';\nimport { v4 as uuidv4 } from 'uuid';\nimport { getCurrentTimestamp } from '../../libs/dates.js';\nimport { Logger } from '../../index.js';\n\nexport class SQSClient {\n public sqs: SQS;\n public queueUrl: string;\n\n constructor (region: string, accountId: string, queueName: string) {\n this.sqs = new SQS({ region });\n this.queueUrl = `https://sqs.${region}.amazonaws.com/${accountId}/${queueName}`;\n }\n\n public buildAndSendMessage = async (messageType: string, messageBody: any, deplaySeconds = 0) => {\n const message = this.buildMessage(messageType, messageBody);\n return await this.sendMessage(message, deplaySeconds);\n };\n\n public buildMessage = (messageType: string, messageBody: any, messageId: string = uuidv4(), messageTime: string = getCurrentTimestamp()) => {\n return {\n messageId,\n messageType,\n messageTime,\n messageBody\n };\n };\n\n public sendMessage = async (messageBody: any, delaySeconds = 0) => {\n const params: SendMessageCommandInput = {\n QueueUrl: this.queueUrl,\n DelaySeconds: delaySeconds,\n MessageBody: JSON.stringify(messageBody)\n };\n const response = await this.sqs.sendMessage(params);\n\n Logger.debug('SQS Message Sent', { queueUrl: this.queueUrl, messageBody, delaySeconds, response });\n\n return response;\n };\n\n}\n\n", "import { Logger } from '../../index.js';\n//const log = require('lambda-log');\nimport { ApiResponse } from '../../types/api-response.js';\nimport { axiosHttpService } from '../generic/http-client.js';\nimport { Destination } from '@adtrackify/at-tracking-event-types';\n//const BASE_API_URL = process.env.BASE_API_URL;\n//const DESTINATIONS_API_KEY = process.env.DESTINATIONS_API_KEY;\n\nexport interface GetDestinationsResponseData {\n destinations: Destination[];\n [ key: string ]: any;\n}\nexport interface CreateDestinationResponseData {\n destination: Destination;\n [ key: string ]: any;\n}\n\n\nexport class DestinationsClient {\n\n public BASE_API_URL: string;\n public DESTINATIONS_API_KEY: string;\n\n constructor (baseApiUrl: string, destinationsApiKey: string) {\n this.BASE_API_URL = baseApiUrl;\n this.DESTINATIONS_API_KEY = destinationsApiKey;\n }\n\n getConfig = () => {\n const SERVICE_API_ROOT_URL = `${this.BASE_API_URL}/destinations`;\n return {\n baseURL: SERVICE_API_ROOT_URL,\n headers: {\n common: {\n 'x-api-key': this.DESTINATIONS_API_KEY\n }\n }\n };\n };\n\n getClient = async () => {\n return axiosHttpService(this.getConfig());\n };\n\n createDestination = async (createDestinationRequest: any): Promise<ApiResponse<CreateDestinationResponseData>> => {\n const client = await this.getClient();\n const response = await client.post('/', createDestinationRequest);\n Logger.debug('createDestinationResponse', { response });\n return response as ApiResponse<CreateDestinationResponseData>;\n };\n\n getPixelDestinations = async (pixelId: string): Promise<ApiResponse<GetDestinationsResponseData>> => {\n const client = await this.getClient();\n const response = await client.get(`/?pixelId=${pixelId}`);\n Logger.debug('getPixelResponse', { response });\n return response as ApiResponse<GetDestinationsResponseData>;\n };\n}\n", "import { Logger } from '../../index.js';\nimport { ApiResponse } from '../../types/api-response.js';\nimport { Account, ACCOUNT_STATUS, Destination } from '@adtrackify/at-tracking-event-types';\nimport { axiosHttpService } from '../generic/http-client.js';\n\n//const BASE_API_URL = process.env.BASE_API_URL;\n\n//const SERVICE_API_ROOT_URL = `${BASE_API_URL}/accounts`;\n//const ACCOUNTS_API_KEY = process.env.ACCOUNTS_API_KEY;\n\nexport interface AccountResponseData {\n account: Account;\n [ key: string ]: any;\n}\n\nexport interface IsAuthorizedUserResponseData {\n isAccountUser: boolean;\n [ key: string ]: any;\n}\nexport interface PixelConfigResponseData {\n id: string;\n destinations: Destination[];\n [ key: string ]: any;\n}\nexport interface AddUserToAccountResponseData {\n userId: string;\n accountId: string;\n}\n\nexport interface UpdateAccountRequest {\n accountName?: string,\n companyName?: string,\n primaryEmail?: string,\n ownerId?: string,\n subscriptionId?: string,\n accountStatus?: ACCOUNT_STATUS;\n}\n\nexport class AccountsClient {\n public BASE_API_URL: string;\n public ACCOUNTS_API_KEY?: string;\n\n constructor (baseApiUrl: string, accountsApiKey?: string) {\n this.BASE_API_URL = baseApiUrl;\n this.ACCOUNTS_API_KEY = accountsApiKey;\n }\n\n getConfig = () => {\n const SERVICE_API_ROOT_URL = `${this.BASE_API_URL}/accounts`;\n const params: any = {\n baseURL: SERVICE_API_ROOT_URL\n };\n if (this.ACCOUNTS_API_KEY) {\n params.headers = {\n common: {\n 'x-api-key': this.ACCOUNTS_API_KEY\n }\n };\n }\n return params;\n };\n\n getClient = async () => {\n return axiosHttpService(this.getConfig());\n };\n\n createAccount = async (createAccountRequest: any) => {\n const client = await this.getClient();\n const createAccountResponse = await client.post('', createAccountRequest);\n Logger.debug('createAccountResponse', { createAccountResponse });\n return createAccountResponse;\n };\n updateAccount = async (accountId: string, body: any): Promise<ApiResponse<AccountResponseData>> => {\n const client = await this.getClient();\n const response = await client.patch(`/${accountId}/`, body);\n Logger.debug('update Account response', { response });\n return response as ApiResponse<AccountResponseData>;\n };\n addOwner = async (accountId: string, userId: string) => {\n const client = await this.getClient();\n const addOwnerResponse = await client.post('/addOwner', { accountId, userId });\n Logger.debug('addOwnerResponse', { addOwnerResponse });\n return addOwnerResponse;\n };\n isAuthorizedUser = async (userId: string, accountId: string, pixelId?: string): Promise<ApiResponse<IsAuthorizedUserResponseData>> => {\n const client = await this.getClient();\n const body = {\n userId, accountId, pixelId\n };\n const response = await client.post('/checkUserAuthorization', body);\n Logger.debug('checkUserAuthorization', { response });\n return response as ApiResponse<IsAuthorizedUserResponseData>;\n };\n adminDeleteAccount = async (accountId: string) => {\n const client = await this.getClient();\n const success = await client.delete(`/${accountId}`);\n Logger.debug('adminDeleteAccount');\n return success;\n };\n getPixelConfigById = async (pixelId: string): Promise<ApiResponse<PixelConfigResponseData>> => {\n const client = await this.getClient();\n const pixelResponse = await client.get(`/px/${pixelId}/config`);\n Logger.debug('get pixelResponse', { pixelResponse });\n return pixelResponse;\n };\n getAccount = async (accountId: string): Promise<ApiResponse<AccountResponseData>> => {\n const client = await this.getClient();\n const response = await client.get(`/${accountId}/`);\n Logger.debug('get account response', { response });\n return response as ApiResponse<AccountResponseData>;\n };\n addUserToAccount = async (accountId: string, userId: string): Promise<ApiResponse<AddUserToAccountResponseData>> => {\n const client = await this.getClient();\n const response = await client.post('/addUser', { accountId, userId });\n Logger.debug('add user account response', { response });\n return response as ApiResponse<AddUserToAccountResponseData>;\n };\n\n\n // setAccountSubscriptionId = async (accountId: string, subscriptionId: string): Promise<ApiResponse<any>> => {\n // const client = await this.getClient();\n // const pixelResponse = await client.get(`/px/${pixelId}/config`);\n // Logger.debug('pixelResponse', { pixelResponse });\n // return pixelResponse;\n // };\n}", "/* eslint-disable no-dupe-class-members */\nimport { strict as assert } from 'assert';\n\nconst deepClone = (o = {}) => JSON.parse(JSON.stringify(o));\nconst containsStackTrace = (text = '') => /at.+\\.js:\\d+:\\d+/.test(text);\nconst objectContainsStackTrace = (obj: any) =>\n !obj ? false : containsStackTrace(JSON.stringify(obj));\n\n// may only be expanded by governance, never reduced\nconst supportedStatusCodes: any = {\n 400: 'Bad Request',\n 401: 'Unauthorized',\n 403: 'Forbidden',\n 404: 'Not Found',\n 405: 'Method Not Allowed',\n 409: 'Conflict',\n 412: 'Precondition Failed',\n 413: 'Payload Too Large',\n 415: 'Unsupported Media Type',\n 428: 'Precondition Required',\n 429: 'Too Many Requests',\n 500: 'Internal Server Error',\n 501: 'Not Implemented',\n 502: 'Bad Gateway',\n 503: 'Service Unavailable',\n 504: 'Gateway Timeout'\n};\n\nconst supportedStatusCodesMessage = `statusCode must be one of the following: ${JSON.stringify(Object.keys(supportedStatusCodes))}`;\n//const onlyStatusCodeMessage = 'Server errors may not specify any parameter except statusCode';\n\n//const isNullOrUndefined = (value: any) => value === null || value === undefined;\n\nexport class HttpError extends Error {\n body: {\n [ key: string ]: any;\n };\n headers: object[];\n statusCode: number;\n isServerError: boolean;\n\n constructor (statusCode: number,\n message?: string,\n body?: {\n [ key: string ]: any;\n },\n headers?: object[]) {\n assert(statusCode in supportedStatusCodes, supportedStatusCodesMessage);\n\n const isServerError = statusCode > 499;\n\n assert(\n body === undefined || typeof body === 'object',\n 'body must be an object or omitted'\n );\n assert(\n headers === undefined || typeof headers === 'object',\n 'headers must be an object or omitted'\n );\n\n message = message ?? supportedStatusCodes[ statusCode ];\n\n assert(\n !containsStackTrace(message) && !objectContainsStackTrace(body),\n 'the message or data parameters may not contain errors or stack traces'\n );\n\n super(message);\n\n this.body = deepClone(body);\n this.headers = deepClone(headers);\n this.statusCode = statusCode;\n this.isServerError = isServerError;\n if (!this?.body?.message) {\n this.body.message = this.message;\n }\n }\n\n\n static get supportedStatusCodes() { return supportedStatusCodes; }\n static badRequest = (message?: string, body?: object, headers?: object[]) => { return new HttpError(400, message, body, headers); };\n static unauthorized = (message?: string, body?: object, headers?: object[]) => new HttpError(401, message, body, headers);\n static forbidden = (message?: string, body?: object, headers?: object[]) => new HttpError(403, message, body, headers);\n static notFound = (message?: string, body?: object, headers?: object[]) => new HttpError(404, message, body, headers);\n static internal = (message?: string, body?: object, headers?: object[]) => new HttpError(500, message, body, headers);\n static notImplemented = () => new HttpError(501);\n static badGateway = () => new HttpError(502);\n static serviceUnavailable = (headers: object[]) => new HttpError(503, undefined, undefined, headers);\n static gatewayTimeout = () => new HttpError(504);\n}\n", "export enum HttpStatusCodes {\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.1\n *\n * This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished.\n */\n CONTINUE = 100,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.2\n *\n * This code is sent in response to an Upgrade request header by the client, and indicates the protocol the server is switching too.\n */\n SWITCHING_PROTOCOLS = 101,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.1\n *\n * This code indicates that the server has received and is processing the request, but no response is available yet.\n */\n PROCESSING = 102,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.1\n *\n * The request has succeeded. The meaning of a success varies depending on the HTTP method:\n * GET: The resource has been fetched and is transmitted in the message body.\n * HEAD: The entity headers are in the message body.\n * POST: The resource describing the result of the action is transmitted in the message body.\n * TRACE: The message body contains the request message as received by the server\n */\n OK = 200,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.2\n *\n * The request has succeeded and a new resource has been created as a result of it. This is typically the response sent after a PUT request.\n */\n CREATED = 201,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.3\n *\n * The request has been received but not yet acted upon. It is non-committal, meaning that there is no way in HTTP to later send an asynchronous response indicating the outcome of processing the request. It is intended for cases where another process or server handles the request, or for batch processing.\n */\n ACCEPTED = 202,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.4\n *\n * This response code means returned meta-information set is not exact set as available from the origin server, but collected from a local or a third party copy. Except this condition, 200 OK response should be preferred instead of this response.\n */\n NON_AUTHORITATIVE_INFORMATION = 203,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.5\n *\n * There is no content to send for this request, but the headers may be useful. The user-agent may update its cached headers for this resource with the new ones.\n */\n NO_CONTENT = 204,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.6\n *\n * This response code is sent after accomplishing request to tell user agent reset document view which sent this request.\n */\n RESET_CONTENT = 205,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.1\n *\n * This response code is used because of range header sent by the client to separate download into multiple streams.\n */\n PARTIAL_CONTENT = 206,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.2\n *\n * A Multi-Status response conveys information about multiple resources in situations where multiple status codes might be appropriate.\n */\n MULTI_STATUS = 207,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.1\n *\n * The request has more than one possible responses. User-agent or user should choose one of them. There is no standardized way to choose one of the responses.\n */\n MULTIPLE_CHOICES = 300,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.2\n *\n * This response code means that URI of requested resource has been changed. Probably, new URI would be given in the response.\n */\n MOVED_PERMANENTLY = 301,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.3\n *\n * This response code means that URI of requested resource has been changed temporarily. New changes in the URI might be made in the future. Therefore, this same URI should be used by the client in future requests.\n */\n MOVED_TEMPORARILY = 302,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.4\n *\n * Server sent this response to directing client to get requested resource to another URI with an GET request.\n */\n SEE_OTHER = 303,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.1\n *\n * This is used for caching purposes. It is telling to client that response has not been modified. So, client can continue to use same cached version of response.\n */\n NOT_MODIFIED = 304,\n /**\n * @deprecated\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.6\n *\n * Was defined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy. It has been deprecated due to security concerns regarding in-band configuration of a proxy.\n */\n USE_PROXY = 305,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.7\n *\n * Server sent this response to directing client to get requested resource to another URI with same method that used prior request. This has the same semantic than the 302 Found HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.\n */\n TEMPORARY_REDIRECT = 307,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7538#section-3\n *\n * This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header. This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.\n */\n PERMANENT_REDIRECT = 308,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.1\n *\n * This response means that server could not understand the request due to invalid syntax.\n */\n BAD_REQUEST = 400,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.1\n *\n * Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.\n */\n UNAUTHORIZED = 401,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.2\n *\n * This response code is reserved for future use. Initial aim for creating this code was using it for digital payment systems however this is not used currently.\n */\n PAYMENT_REQUIRED = 402,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.3\n *\n * The client does not have access rights to the content, i.e. they are unauthorized, so server is rejecting to give proper response. Unlike 401, the client's identity is known to the server.\n */\n FORBIDDEN = 403,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.4\n *\n * The server can not find requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 to hide the existence of a resource from an unauthorized client. This response code is probably the most famous one due to its frequent occurence on the web.\n */\n NOT_FOUND = 404,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.5\n *\n * The request method is known by the server but has been disabled and cannot be used. For example, an API may forbid DELETE-ing a resource. The two mandatory methods, GET and HEAD, must never be disabled and should not return this error code.\n */\n METHOD_NOT_ALLOWED = 405,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.6\n *\n * This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content following the criteria given by the user agent.\n */\n NOT_ACCEPTABLE = 406,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.2\n *\n * This is similar to 401 but authentication is needed to be done by a proxy.\n */\n PROXY_AUTHENTICATION_REQUIRED = 407,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.7\n *\n * This response is sent on an idle connection by some servers, even without any previous request by the client. It means that the server would like to shut down this unused connection. This response is used much more since some browsers, like Chrome, Firefox 27+, or IE9, use HTTP pre-connection mechanisms to speed up surfing. Also note that some servers merely shut down the connection without sending this message.\n */\n REQUEST_TIMEOUT = 408,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.8\n *\n * This response is sent when a request conflicts with the current state of the server.\n */\n CONFLICT = 409,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.9\n *\n * This response would be sent when the requested content has been permenantly deleted from server, with no forwarding address. Clients are expected to remove their caches and links to the resource. The HTTP specification intends this status code to be used for \"limited-time, promotional services\". APIs should not feel compelled to indicate resources that have been deleted with this status code.\n */\n GONE = 410,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.10\n *\n * The server rejected the request because the Content-Length header field is not defined and the server requires it.\n */\n LENGTH_REQUIRED = 411,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.2\n *\n * The client has indicated preconditions in its headers which the server does not meet.\n */\n PRECONDITION_FAILED = 412,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.11\n *\n * Request entity is larger than limits defined by server; the server might close the connection or return an Retry-After header field.\n */\n REQUEST_TOO_LONG = 413,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.12\n *\n * The URI requested by the client is longer than the server is willing to interpret.\n */\n REQUEST_URI_TOO_LONG = 414,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.13\n *\n * The media format of the requested data is not supported by the server, so the server is rejecting the request.\n */\n UNSUPPORTED_MEDIA_TYPE = 415,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.4\n *\n * The range specified by the Range header field in the request can't be fulfilled; it's possible that the range is outside the size of the target URI's data.\n */\n REQUESTED_RANGE_NOT_SATISFIABLE = 416,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.14\n *\n * This response code means the expectation indicated by the Expect request header field can't be met by the server.\n */\n EXPECTATION_FAILED = 417,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2324#section-2.3.2\n *\n * Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.\n */\n IM_A_TEAPOT = 418,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6\n *\n * The 507 (Insufficient Storage) status code means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. This condition is considered to be temporary. If the request which received this status code was the result of a user action, the request MUST NOT be repeated until it is requested by a separate user action.\n */\n INSUFFICIENT_SPACE_ON_RESOURCE = 419,\n /**\n * @deprecated\n * Official Documentation @ https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt\n *\n * A deprecated response used by the Spring Framework when a method has failed.\n */\n METHOD_FAILURE = 420,\n /**\n * Official Documentation @ https://datatracker.ietf.org/doc/html/rfc7540#section-9.1.2\n *\n * Defined in the specification of HTTP/2 to indicate that a server is not able to produce a response for the combination of scheme and authority that are included in the request URI.\n */\n MISDIRECTED_REQUEST = 421,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3\n *\n * The request was well-formed but was unable to be followed due to semantic errors.\n */\n UNPROCESSABLE_ENTITY = 422,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.4\n *\n * The resource that is being accessed is locked.\n */\n LOCKED = 423,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.5\n *\n * The request failed due to failure of a previous request.\n */\n FAILED_DEPENDENCY = 424,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-3\n *\n * The origin server requires the request to be conditional. Intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.\n */\n PRECONDITION_REQUIRED = 428,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-4\n *\n * The user has sent too many requests in a given amount of time (\"rate limiting\").\n */\n TOO_MANY_REQUESTS = 429,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-5\n *\n * The server is unwilling to process the request because its header fields are too large. The request MAY be resubmitted after reducing the size of the request header fields.\n */\n REQUEST_HEADER_FIELDS_TOO_LARGE = 431,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7725\n *\n * The user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.\n */\n UNAVAILABLE_FOR_LEGAL_REASONS = 451,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.1\n *\n * The server encountered an unexpected condition that prevented it from fulfilling the request.\n */\n INTERNAL_SERVER_ERROR = 500,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.2\n *\n * The request method is not supported by the server and cannot be handled. The only methods that servers are required to support (and therefore that must not return this code) are GET and HEAD.\n */\n NOT_IMPLEMENTED = 501,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.3\n *\n * This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.\n */\n BAD_GATEWAY = 502,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.4\n *\n * The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response, a user-friendly page explaining the problem should be sent. This responses should be used for temporary conditions and the Retry-After: HTTP header should, if possible, contain the estimated time before the recovery of the service. The webmaster must also take care about the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached.\n */\n SERVICE_UNAVAILABLE = 503,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.5\n *\n * This error response is given when the server is acting as a gateway and cannot get a response in time.\n */\n GATEWAY_TIMEOUT = 504,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.6\n *\n * The HTTP version used in the request is not supported by the server.\n */\n HTTP_VERSION_NOT_SUPPORTED = 505,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6\n *\n * The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.\n */\n INSUFFICIENT_STORAGE = 507,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-6\n *\n * The 511 status code indicates that the client needs to authenticate to gain network access.\n */\n NETWORK_AUTHENTICATION_REQUIRED = 511\n}", "import { User } from '@adtrackify/at-tracking-event-types';\nimport { Logger } from '../../index.js';\nimport { HttpError } from '../../libs/http-error.js';\nimport { HttpStatusCodes } from '../../libs/http-status-codes.js';\nimport { ApiResponse } from '../../types/api-response.js';\nimport { axiosHttpService } from '../generic/http-client.js';\n\nexport interface UserResponseData {\n user: User;\n [ key: string ]: any;\n}\n\nexport interface UserSignupRequest {\n email: string,\n password: string,\n givenName: string,\n familyName: string;\n}\n\nexport class UsersAuthClient {\n\n public SERVICE_API_ROOT_URL: string;\n public BASE_API_URL: string;\n public USERS_AUTH_API_KEY: string;\n constructor (baseApiUrl: string, usersAuthApiKey?: string) {\n this.BASE_API_URL = baseApiUrl;\n this.USERS_AUTH_API_KEY = usersAuthApiKey as string;\n this.SERVICE_API_ROOT_URL = `${this.BASE_API_URL}/auth`;\n }\n\n getConfig = () => {\n return {\n baseURL: this.SERVICE_API_ROOT_URL,\n headers: {\n common: {\n }\n }\n };\n };\n\n getClient = async () => {\n return axiosHttpService(this.getConfig());\n };\n\n signupAndConfirmUser = async (userSignupRequest: any): Promise<any> => {\n const user = await this.signupUser(userSignupRequest);\n await this.adminConfirmUser(user.email);\n // if fail - delete user and throw error\n return user;\n };\n\n signupUser = async (userSignupRequest: UserSignupRequest): Promise<any> => {\n Logger.info('Attempting to signup user', { email: userSignupRequest.email });\n\n const client = await this.getClient();\n const response = await client.post('/signup', userSignupRequest);\n\n // Check if Successful or throw error\n if (response.status !== 200 || !response?.data?.user) {\n const message = 'User Signup Failed';\n Logger.error(message, { response });\n throw new HttpError(HttpStatusCodes.INTERNAL_SERVER_ERROR, message);\n }\n\n Logger.info('User Signup Successful', { response });\n return response.data.user;\n };\n\n //userName is same as user id\n adminConfirmUser = async (email: string) => {\n //confirm user\n //@TODO update user auth service with admin confirm user endpoint\n Logger.info('Attempting to admin confirm user', { email });\n\n const client = await this.getClient();\n const response = await client.post('/admin/confirm',\n {\n email\n }, {\n headers: {\n 'x-api-key': this.USERS_AUTH_API_KEY\n }\n }\n );\n\n // Check if Successful or throw error\n if (response.status !== 200) {\n const message = 'Admin User Confirmation Failed';\n Logger.error(message, { response });\n throw new HttpError(HttpStatusCodes.INTERNAL_SERVER_ERROR, message);\n }\n\n Logger.info('Admin User Confirmation Successful', { response });\n return response;\n };\n\n getUserByEmail = async (email: string): Promise<ApiResponse<UserResponseData>> => {\n const client = await this.getClient();\n const getUserResponse = await client.get('/lookup', {\n headers: {\n 'x-api-key': this.USERS_AUTH_API_KEY\n },\n params: {\n email\n }\n });\n Logger.debug('getUserResponse', { getUserResponse });\n return getUserResponse;\n };\n\n}\n\n", "import log from 'lambda-log';\nimport { ApiResponse } from '../../types/api-response.js';\nimport { axiosHttpService } from '../generic/http-client.js';\nimport { ShopifyAppInstall, ShopifyAppSubscriptionStatus } from '@adtrackify/at-tracking-event-types';\n//const BASE_API_URL = process.env.BASE_API_URL;\n//const DESTINATIONS_API_KEY = process.env.DESTINATIONS_API_KEY;\n\nexport interface ShopifyAppInstallResponseData {\n shopifyAppInstall: ShopifyAppInstall;\n [ key: string ]: any;\n}\n\nexport interface UpdateShopifyAppInstallRequest {\n appSubscriptionStatus?: ShopifyAppSubscriptionStatus,\n pixelId?: string,\n shopifyAppInstallId: string;\n isAppEnabled?: boolean;\n}\n\nexport class ShopifyAppInstallClient {\n\n public BASE_API_URL: string;\n public SHOPIFY_APP_INSTALL_API_KEY: string;\n\n constructor (baseApiUrl: string, shopifyAppInstallApiKey: string) {\n this.BASE_API_URL = baseApiUrl;\n this.SHOPIFY_APP_INSTALL_API_KEY = shopifyAppInstallApiKey;\n }\n\n getConfig = () => {\n const SERVICE_API_ROOT_URL = `${this.BASE_API_URL}/shopify-app-installs`;\n return {\n baseURL: SERVICE_API_ROOT_URL,\n headers: {\n common: {\n 'x-api-key': this.SHOPIFY_APP_INSTALL_API_KEY\n }\n }\n };\n };\n\n getClient = async () => {\n return axiosHttpService(this.getConfig());\n };\n\n updateShopifyAppInstall = async (shopifyAppInstallId: string, updateShopifyAppInstallRequest: UpdateShopifyAppInstallRequest): Promise<ApiResponse<ShopifyAppInstallResponseData>> => {\n const client = await this.getClient();\n const response = await client.put(`/${shopifyAppInstallId}`, updateShopifyAppInstallRequest);\n log.info('updateShopifyAppInstall', { response });\n return response as ApiResponse<ShopifyAppInstallResponseData>;\n };\n\n getShopifyAppInstall = async (shopifyAppInstallId: string): Promise<ApiResponse<ShopifyAppInstallResponseData>> => {\n const client = await this.getClient();\n const response = await client.get(`/${shopifyAppInstallId}`);\n log.info('getShopifyAppInstall', { response });\n return response as ApiResponse<ShopifyAppInstallResponseData>;\n };\n\n getShopifyAppInstallByShop = async (shop: string): Promise<ApiResponse<ShopifyAppInstallResponseData>> => {\n const client = await this.getClient();\n const response = await client.get(`/?shop=${shop}`);\n log.info('getShopifyAppInstallByShop', { response });\n return response as ApiResponse<ShopifyAppInstallResponseData>;\n };\n}\n", "import { axiosHttpService } from '../generic/http-client.js';\nimport { Logger } from '../../index.js';\n\nexport class ShopifyClient {\n static _shopify_api_version = process.env.SHOPIFY_API_VERSION as string;\n static getConfig = (shopifyDomain: string, accessToken: string) => {\n const config = {\n baseURL: `https://${shopifyDomain}/admin/api/${this._shopify_api_version}`,\n headers: {\n common: {\n 'X-Shopify-Access-Token': accessToken,\n },\n },\n };\n return config;\n };\n\n static getClient = (shopifyDomain: string, accessToken: string) => {\n return axiosHttpService(\n this.getConfig(shopifyDomain, accessToken)\n );\n };\n\n static registerApp = async (shop: string, code: string, appKey: string, appSecret: string) => {\n const client = axiosHttpService();\n const url = 'https://' + shop + '/admin/oauth/access_token';\n const payload = {\n client_id: appKey,\n client_secret: appSecret,\n code\n };\n const res = await client.post(url, payload);\n return res;\n };\n\n static registerWebhookTopic = async (shop: string, accessToken: string, eventBridgeArn: string, topic: string) => {\n const client = axiosHttpService();\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/webhooks.json`;\n const payload = {\n webhook: {\n topic,\n address: eventBridgeArn,\n format: 'json'\n }\n };\n const res = await client.post(url, payload, { headers: { 'X-Shopify-Access-Token': accessToken } });\n if (res.status >= 400) {\n Logger.error('Failed to register Webhook Topic', { shop, accessToken, eventBridgeArn, topic, url, payload });\n }\n Logger.debug('Shopify Client Webhook Registration Response', { registrationResponse: res });\n return res;\n };\n\n static updateShopifyAppMetafield = async (shop: string, accessToken: string, pixelId: string) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/metafields.json`;\n const payload = {\n metafield: {\n namespace: 'adtr',\n key: 'adtr.config',\n value: pixelId,\n type: 'single_line_text_field'\n }\n };\n const res = await this.genericShopifyPost(url, accessToken, payload);\n\n if (res.status >= 400) {\n Logger.error('Failed to update Shopify app Metafield ', { shop, accessToken, url, payload });\n }\n return res;\n };\n\n static getShopifyStoreProperties = async (shop: string, accessToken: string) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/shop.json`;\n const res = await this.genericShopifyGet(url, accessToken);\n\n if (res.status >= 400) {\n Logger.error('Failed to get Shopify Store Properties', { shop, accessToken, url });\n }\n return res;\n };\n\n static createAppSubscription = async (shop: string, accessToken: string,\n planName: string, price: number, returnUrl: string, trialDays: number, test?: boolean) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/recurring_application_charges.json`;\n const recurring_application_charge = {\n name: planName,\n price,\n return_url: returnUrl,\n trial_days: trialDays,\n test\n };\n const res = await this.genericShopifyPost(url, accessToken, { recurring_application_charge });\n if (res.status >= 400) {\n Logger.error('Failed to create App Subscription', { shop, accessToken, url });\n }\n return res;\n };\n\n static cancelAppSubscription = async (shop: string, accessToken: string, chargeId: string) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/recurring_application_charges/${chargeId}.json`;\n const client = axiosHttpService();\n const res = await client.delete(url, { headers: { 'X-Shopify-Access-Token': accessToken } });\n\n if (res.status !== 200) {\n Logger.error('Failed to cancel recurring App billing', { shop, accessToken, url });\n }\n return res;\n };\n\n static listAppSubscriptions = async (shop: string, accessToken: string) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/recurring_application_charges.json`;\n const res = await this.genericShopifyGet(url, accessToken);\n if (res.status >= 400) {\n Logger.error('Failed to get App Subscriptions', { shop, accessToken, url });\n }\n return res;\n };\n\n static genericShopifyPost = async (url: string, accessToken: string, payload: any) => {\n const client = axiosHttpService();\n const res = await client.post(url, payload, { headers: { 'X-Shopify-Access-Token': accessToken, 'Content-Type': 'application/json' } });\n Logger.debug('Shopify Client Response', { res });\n return res;\n };\n\n static genericShopifyGet = async (url: string, accessToken: string) => {\n const client = axiosHttpService();\n const res = await client.get(url, { headers: { 'X-Shopify-Access-Token': accessToken } });\n Logger.debug('Shopify Client Response', { res });\n return res;\n };\n\n static genericShopifyPut = async (url: string, accessToken: string, payload: any) => {\n const client = axiosHttpService();\n const res = await client.put(url, payload, { headers: { 'X-Shopify-Access-Token': accessToken } });\n Logger.debug('Shopify Client Response', { res });\n return res;\n };\n}\n", "import * as _logger from 'lambda-log';\nconst stage = process?.env?.STAGE;\nconst LEVEL = process?.env?.LOG_LEVEL as string ?? 'info';\nexport const LogLevelId = {\n trace: 0,\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n};\n\nexport const configureLogger = (event: any, context: any, debug = LEVEL === 'debug') => {\n _logger.options.meta.stage = stage;\n _logger.options.meta.source_name = context?.functionName || 'unknown';\n _logger.options.meta.awsRequestId = context?.awsRequestId || 'unknown';\n _logger.options.meta.lambdaEvent = event;\n _logger.options.debug = debug;\n};\n\nexport const Logger = {\n log: (logLevel: string, msg: string | Error, meta: object | undefined = {}, tags?: string[] | undefined) => {\n if (logLevel === 'debug') {\n Logger.debug(msg as string, meta, tags);\n } else if (logLevel === 'info') {\n Logger.info(msg as string, meta, tags);\n } else if (logLevel === 'warn') {\n Logger.warn(msg as string, meta, tags);\n } else if (logLevel === 'error') {\n Logger.error(msg, meta, tags);\n }\n },\n\n debug: (msg: string, meta?: object | undefined, tags?: string[] | undefined) => {\n if (LogLevelId[ 'debug' ] >= LogLevelId[ LEVEL as keyof typeof LogLevelId ]) {\n _logger.debug(msg, meta, tags);\n }\n },\n\n info: (msg: string, meta?: object | undefined, tags?: string[] | undefined) => {\n if (LogLevelId[ 'info' ] >= LogLevelId[ LEVEL as keyof typeof LogLevelId ]) {\n _logger.info(msg, meta, tags);\n }\n },\n\n warn: (msg: string, meta?: object | undefined, tags?: string[] | undefined) => {\n if (LogLevelId[ 'warn' ] >= LogLevelId[ LEVEL as keyof typeof LogLevelId ]) {\n _logger.warn(msg, meta, tags);\n }\n },\n\n error: (msg: string | Error, meta?: object | undefined, tags?: string[] | undefined) => {\n if (LogLevelId[ 'error' ] >= LogLevelId[ LEVEL as keyof typeof LogLevelId ]) {\n _logger.error(msg, meta, tags);\n }\n }\n};", "import Joi from 'joi';\nimport { Logger } from './logging-helper.js';\nimport { HttpError } from '../libs/http-error.js';\n\nexport const validateInput = (schema: Joi.ObjectSchema<any>, input: any) => {\n const { error, value } = schema.validate(input);\n if (error) {\n Logger.info('', { error });\n\n const httperr = HttpError.badRequest('Bad Request', {\n errors: error.details.map(detail => ({\n message: detail?.message,\n key: detail?.context?.key,\n path: detail?.path,\n }))\n });\n\n Logger.error('validation failure', { httperr });\n throw httperr;\n }\n return value;\n};", "\nexport const success = (body: any) => {\n return buildResponse(200, body);\n}\n\nconst defaultError = {\n message: 'internalServerError'\n}\n\nexport const failure = (error: any, statusCode = 500) => {\n statusCode = error?.statusCode ?? statusCode;\n\n let body = defaultError;\n if (error?.body) {\n body = error.body;\n }\n else if (error?.message) {\n body = { message: error.message };\n } else if (statusCode === 500) {\n body = defaultError;\n }\n return buildResponse(statusCode, body);\n}\n\nexport const buildResponse = (statusCode: number, body: any = {}) => {\n delete body.stack;\n return {\n statusCode: statusCode,\n headers: {\n 'Access-Control-Allow-Origin': '*',\n 'Access-Control-Allow-Credentials': true,\n 'cache-control': 'max-age=86400',\n Date: new Date(),\n 'Last-Modified': new Date(),\n 'Access-Control-Allow-Headers':\n 'Content-Type, Content-Encoding'\n },\n body: JSON.stringify(body),\n };\n}\n", "import { createHmac } from 'crypto';\nimport { Logger } from './logging-helper.js';\nimport { HttpError } from '../libs/http-error.js';\nimport { mapObjectToQueryString } from '../libs/url.js';\nexport interface ShopifyRequestValidationParameters {\n code: string,\n hmac?: string,\n shop: string,\n state: string,\n timestamp: string;\n}\n\nexport const isShopifyRequestValid = (validationParams: ShopifyRequestValidationParameters, validationHmac: string, shopifyAppApiSecret: string): boolean => {\n // remove hmac if it exists\n // map input to query string\n // generate hash using api secret key and validate it matches hmac\n delete validationParams.hmac;\n const hmacString = mapObjectToQueryString(validationParams);\n\n\n const generatedHash = createHmac('sha256', shopifyAppApiSecret)\n .update(hmacString)\n .digest('hex');\n\n return generatedHash === validationHmac;\n};\n\nexport const validateShopifyRequest = (validationParams: ShopifyRequestValidationParameters, validationHmac: string, shopifyAppApiSecret: string) => {\n Logger.info('Validating shopify request is authentic', { validationParams });\n const isValid = isShopifyRequestValid(validationParams, validationHmac as string, shopifyAppApiSecret);\n if (!isValid) {\n const message = 'Failed: Shopify Request hmac validation';\n Logger.error(message);\n throw HttpError.badRequest(message);\n }\n Logger.info('Sucess: Shopify Request hmac validation');\n return true;\n}\n\n", "// Record<string, string> is any object\nexport const mapObjectToQueryString = (inputObj: any): string => {\n const qsp = Object.entries(inputObj).sort((a, b) => a[ 0 ] < b[ 0 ] ? -1 : 1);\n const urlParams = new URLSearchParams();\n qsp.map(p => {\n urlParams.append(p[ 0 ], p[ 1 ] as string);\n });\n const qs = urlParams.toString();\n return qs;\n};", "import { Subscription } from './subscription';\n\nexport interface Account {\n id: string,\n accountName: string,\n companyName?: string,\n accountStatus: ACCOUNT_STATUS,\n primaryEmail: string,\n publicApiKey?: string,\n subscriptionId?: string,\n pixels?: Pixel[],\n subscription?: Subscription;\n ownerId?: string,\n createdAt: string,\n updatedAt: string;\n}\n\n\nexport interface Pixel {\n id: string;\n accountId: string;\n name: string;\n createdAt: string,\n updatedAt: string;\n}\n\nexport enum ACCOUNT_STATUS {\n PENDING = 'pending',\n ACTIVE = 'active',\n INACTIVE = 'inactive'\n}", "\r\nexport interface Destination {\r\n id: string,\r\n accountId: string,\r\n pixelId: string,\r\n destination: string;\r\n displayName?: string,\r\n enabled: boolean;\r\n configuration?: UserDestinationConfiguration,\r\n createdAt: string,\r\n updatedAt: string;\r\n}\r\n\r\nexport enum DESTINATIONS {\r\n FACEBOOK = 'facebook',\r\n TIKTOK = 'tiktok',\r\n GOOGLE_ADS = 'googleAds',\r\n GOOGLE_ANALYTICS_4 = 'googleAnalytics4',\r\n HUBSPOT = 'hubspot',\r\n WEBHOOK = 'webhook',\r\n CUSTOM_HTML = 'customHTML',\r\n CUSTOM_JS = 'customJS',\r\n SNAPCHAT = 'snapchat',\r\n TWITTER = 'twitter',\r\n REDDIT = 'reddit'\r\n}\r\n\r\nexport interface UserDestinationConfiguration {\r\n [ key: string ]: any;\r\n eventBlacklist?: string[];\r\n events?: EventConfiguration[];\r\n trigger?: DestinationTriggerConfiguration;\r\n}\r\n\r\nexport interface DestinationTriggerConfiguration {\r\n shopify?: ShopifyTriggerConfiguration;\r\n exludeDomains?: string[];\r\n excludePages?: string[];\r\n domains?: string[];\r\n pages?: string[];\r\n}\r\n\r\nexport interface ShopifyTriggerConfiguration {\r\n enabled: boolean;\r\n collections?: string[];\r\n tags?: string[];\r\n}\r\n\r\n\r\nexport interface EventConfiguration {\r\n sourceEventName: string;\r\n exclude?: boolean;\r\n sample: EventSampleConfiguration;\r\n transformations?: EventTransformation[];\r\n}\r\n\r\nexport interface EventTransformation {\r\n transformationEventName: string;\r\n enabled: boolean;\r\n}\r\n\r\nexport interface EventSampleConfiguration {\r\n enabled: boolean;\r\n rate: number;\r\n}\r\n\r\n", "import { Destination, UserDestinationConfiguration } from './destinations';\r\n\r\nexport interface AdTrackifyFacebookDestination extends Destination {\r\n configuration: FacebookPixelConfiguration;\r\n}\r\n\r\nexport interface AdTrackifyTikTokDestination extends Destination {\r\n configuration: TiktokPixelConfiguration;\r\n}\r\n\r\nexport interface AdTrackifyGoogleAnalytics4Destination extends Destination {\r\n configuration: GoogleAnalytics4Configuration;\r\n}\r\n\r\n// Destination Specific configurations below\r\nexport interface FacebookPixelConfiguration extends UserDestinationConfiguration {\r\n apiAccessToken?: string;\r\n enableConversionAPI: boolean;\r\n pixelId: string;\r\n}\r\n\r\nexport interface TiktokPixelConfiguration extends UserDestinationConfiguration {\r\n apiAccessToken?: string;\r\n enableConversionAPI: boolean;\r\n pixelId: string;\r\n}\r\n\r\nexport interface GoogleAnalytics4Configuration extends UserDestinationConfiguration {\r\n apiSecret: string;\r\n measurementId: string;\r\n}\r\n\r\nexport interface GoogleAdsConfiguration extends UserDestinationConfiguration {\r\n pixelId: string;\r\n conversionID: string;\r\n}\r\n\r\nexport interface HubspotPixelConfiguration extends UserDestinationConfiguration {\r\n hubspotId: string;\r\n}\r\n\r\nexport interface SnapchatPixelConfiguration extends UserDestinationConfiguration {\r\n snapchatPixelId: string;\r\n}\r\n\r\nexport interface TwitterPixelConfiguration extends UserDestinationConfiguration {\r\n twitterPixelId: string;\r\n}\r\n\r\nexport interface WebhookConfiguration extends UserDestinationConfiguration {\r\n webhookUrl: string;\r\n}\r\n\r\nexport interface CustomHTMLConfiguration extends UserDestinationConfiguration {\r\n html: string;\r\n location: CustomHTMLLocation;\r\n}\r\n\r\nexport interface CustomJSConfiguration extends UserDestinationConfiguration {\r\n script: string;\r\n async: boolean;\r\n defer: boolean;\r\n location: CustomHTMLLocation;\r\n}\r\n\r\nexport enum CustomHTMLLocation {\r\n HEADER = 'header',\r\n FOOTER = 'footer',\r\n BODY = 'body'\r\n}\r\n\r\n", "export interface ShopifyAppInstall {\n shopifyAppInstallId: string;\n shop: string;\n accessToken?: string;\n appStatus?: string;\n appSubscriptionStatus?: ShopifyAppSubscriptionStatus;\n code?: string;\n hmac?: string;\n host?: string;\n installRequest?: ShopifyInstallRequest;\n isAppEnabled?: boolean;\n pixelId?: string;\n shopInfo?: any;\n state?: string;\n timestamp?: number;\n createdAt: string;\n updatedAt: string;\n}\n\nexport enum ShopifyAppInstallStatus {\n STARTED = 'started',\n COMPLETED = 'completed',\n UNINSTALLED = 'uninstalled',\n FAILED = 'failed',\n NONE = 'none'\n}\nexport enum ShopifyAppSubscriptionStatus {\n ACTIVE = 'active', // approved and billed to shop\n CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation\n DECLINED = 'declined', // subscription declined by merchant\n EXPIRED = 'expired', //wasn't approved within two days of being created\n FROZEN = 'frozen', //on hold due to not payment\n PENDING = 'pending', // pending approval\n NOT_SUBMITTED = 'na' // billing has not yet been attempted\n}\n\nexport interface ShopifyInstallRequest {\n shop?: string;\n session?: string;\n hmac?: string;\n host?: string;\n nonce?: string;\n timestamp?: string;\n status?: string;\n}\n\nexport interface ShopifyStoreInfo {\n // TBD based on shopify api\n [ key: string ]: any;\n}", "\nexport interface Subscription {\n id: string,\n accountId?: string,\n shopifyAppInstallId?: string,\n shopifyDomain?: string,\n stripeCustomerId?: string,\n stripeSubscriptionId?: string,\n stripeCompletedCheckoutSession?: any;\n shopifyChargeId?: string;\n subscriptionPlan?: SubscriptionPlan,\n status?: SUBSCRIPTION_STATUS,\n paymentStatus?: PAYMENT_STATUS,\n paymentGateway?: PAYMENT_GATEWAY,\n createdAt: string,\n updatedAt: string,\n\n}\nexport interface SubscriptionPlan {\n id: number;\n planName: string;\n displayName: string;\n description: string;\n sku: string;\n price: string;\n displayPrice: string;\n billingFrequency: PLAN_BILLING_FREQUENCY;\n trialLengthDays?: number;\n trialRequiresCreditCard?: boolean;\n planDesc?: string[];\n unitPriceText?: string;\n isHighlighted?: boolean;\n isBanner?: boolean;\n bannerText?: string;\n bannerColor?: string;\n stripePriceId?: string;\n stripeProductId?: string;\n}\n\nexport enum PLAN_BILLING_FREQUENCY {\n MONTHLY = 'monthly',\n YEARLY = 'yearly'\n}\n\nexport enum PAYMENT_STATUS {\n CURRENT = 'current',\n PAST_DUE = 'past_due',\n CANCELLED = 'cancelled',\n FAILED = 'failed'\n}\n\nexport enum SUBSCRIPTION_STATUS {\n ACTIVE = 'active', // approved and billed to shop\n CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation\n DECLINED = 'declined', // subscription declined by merchant\n EXPIRED = 'expired', //wasn't approved within two days of being created\n FROZEN = 'frozen', //on hold due to not payment\n PENDING = 'pending', // pending approval\n NOT_SUBMITTED = 'na' // billing has not yet been attempted\n}\nexport enum PAYMENT_GATEWAY {\n STRIPE = 'stripe',\n PAYPAL = 'paypal',\n SHOPIFY = 'shopify'\n}\n", "export interface LogContext {\n [x: string]: LogContextValue;\n}\n\nexport type LogContextValue = string | number | boolean | LogContext | LogContextArray | undefined | null;\n\nexport interface LogContextArray extends Array<LogContextValue> {}\n\nexport enum LogLevel {\n debug = 'debug',\n error = 'error',\n info = 'info',\n trace = 'trace',\n warn = 'warn',\n}\nexport const LogLevelId = {\n trace: 0,\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n};\n\nexport interface LogMessage {\n message: string;\n logLevel: LogLevel;\n context?: LogContext;\n}\n", "export enum ADTRACKIFY_STANDARD_EVENT {\n ADD_PAYMENT_INFO = 'add_payment_info',\n ADD_SHIPPING_INFO = 'add_shipping_info',\n ADD_TO_CART = 'add_to_cart',\n ADD_TO_WISHLIST = 'add_to_wishlist',\n // COMPLETE_REGISTRATION: 'complete_registration',\n // CONTACT: 'contact',\n INITIATE_CHECKOUT = 'initiate_checkout',\n LEAD = 'lead',\n LOGIN = 'login',\n PAGE_VIEW = 'page_view',\n PURCHASE = 'purchase',\n REFUND = 'refund',\n SEARCH = 'search',\n // START_TRIAL: 'start_trial',\n // SUBMIT_APPLICATION: 'submit_application',\n // SUBSCRIBE: 'subscribe',\n SIGN_UP = 'sign_up',\n VIEW_CART = 'view_cart',\n VIEW_CONTENT = 'view_content',\n\n //\n SELECT_SHIPPING_METHOD = 'select_shipping_method',\n VIRTUALIZED_VIEWED_PAYMENT_FORM = 'virtualized_viewd_payment_form',\n\n METRIC = 'metric',\n WEB_VITAL = 'web_vital',\n\n // LOG\n LOG = 'log',\n}\n", "import { ADTRACKIFY_STANDARD_EVENT } from '../adtrackify-standard-events';\nimport { ADTRACKIFY_EVENT_TYPE } from '../adtrackify-event-types';\nimport { AddressInfo } from '../common/address';\nimport { TrackingEventContext } from './tracking-event-context';\nimport { TrackingEventIdentity } from './tracking-event-identity';\nimport { LogMessage } from '../common/logger';\n\nexport interface Event {\n id: string;\n type: ADTRACKIFY_EVENT_TYPE;\n name: ADTRACKIFY_STANDARD_EVENT;\n pixelId: string;\n sentAtEpoch?: number;\n collectedAtEpoch?: number;\n collectedAt?: string;\n version: string;\n context?: TrackingEventContext;\n}\n\nexport interface TrackingEvent extends Event {\n identity?: TrackingEventIdentity;\n data?: TrackingEventData;\n testCode?: string;\n}\n\nexport interface MetricEvent extends Event {\n data: MetricEventData;\n}\n\nexport interface LogEvent extends Event {\n data: LogEventData;\n}\n\nexport interface TrackingEventData {\n [ key: string ]: any;\n firstName?: string;\n lastName?: string;\n email?: string;\n phone?: string;\n addresses?: AddressInfo[];\n cartId?: string;\n transactionId?: string;\n affiliation?: string;\n currency?: string;\n price?: number;\n subtotalPrice?: number;\n value?: number;\n tax?: number;\n shipping?: number;\n coupon?: string;\n paymentType?: string;\n shippingTier?: string;\n creativeName?: string;\n creativeSlot?: string;\n locationId?: string;\n promotionId?: string;\n promotionName?: string;\n items?: GenericContent[];\n}\n\nexport interface GenericContent {\n [ key: string ]: any;\n content_type?: string;\n id?: string;\n name?: string;\n sku?: string;\n brand?: string;\n variant?: string;\n coupon?: string;\n currency?: string;\n discount?: number;\n index?: number;\n value?: number;\n price?: number;\n quantity?: number;\n url?: string;\n locationId?: string;\n imageUrl?: string;\n category?: string;\n category2?: string;\n category3?: string;\n category4?: string;\n category5?: string;\n}\n\nexport interface LogEventData extends LogMessage { }\nexport interface MetricEventData {\n [ key: string ]: any;\n name: string;\n value: number;\n}\n\nexport const Currencies: string[] = [\n 'AED',\n 'ARS',\n 'AUD',\n 'BDT',\n 'BIF',\n 'BOB',\n 'BRL',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CZK',\n 'DKK',\n 'DZD',\n 'EGP',\n 'EUR',\n 'GBP',\n 'GTQ',\n 'HKD',\n 'HNL',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'ISK',\n 'JPY',\n 'KES',\n 'KRW',\n 'KWD',\n 'KZT',\n 'MAD',\n 'MOP',\n 'MXN',\n 'MYR',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NZD',\n 'PEN',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RUB',\n 'SAR',\n 'SEK',\n 'SGD',\n 'THB',\n 'TRY',\n 'TWD',\n 'USD',\n 'VES',\n 'VND',\n 'ZAR',\n];\n", "export enum ADTRACKIFY_EVENT_TYPE {\n TRACKING = 'tracking',\n METRIC = 'metric',\n IDENTIFY = 'identify',\n LOG = 'log',\n}\n", "import { SubscriptionPlan, PLAN_BILLING_FREQUENCY } from '@adtrackify/at-tracking-event-types';\n\nexport const StripeBillingMap: any = {\n dev2: {\n 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',\n 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',\n 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',\n 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',\n 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'\n },\n qa2: {\n 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',\n 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',\n 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',\n 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',\n 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'\n },\n prod2: {\n 'free': 'price_1KAFsIK7krGh4037RsaAYMEl',\n 'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',\n 'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',\n 'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',\n 'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',\n 'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',\n 'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'\n },\n dev: {\n 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',\n 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',\n 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',\n 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',\n 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'\n },\n qa: {\n 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',\n 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',\n 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',\n 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',\n 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'\n },\n prod: {\n 'free': 'price_1KAFsIK7krGh4037RsaAYMEl',\n 'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',\n 'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',\n 'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',\n 'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',\n 'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',\n 'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'\n }\n};\n\nexport const CommonPlanInfo = [\n //'60-day Risk Free Trial',\n 'Free Server Side Tracking & Conversion API',\n 'MultiPixel Support (Multiple facebook, tiktok, etc)',\n 'Corrects Facebook Conversion Tracking post IOS14',\n 'Increase ROAS & Attribution Data',\n 'Enhanced Fingerprinting & Identity Resolution',\n 'Unlimited Integrations',\n 'Advanced Integrations (Webhooks, Custom JS/HTML, Hubspot)'\n];\n\nexport const SubscriptionPlanSeedItems: {\n items: SubscriptionPlan[];\n} = {\n items: [ {\n id: 1,\n planName: 'free',\n displayName: 'Free',\n sku: 'ADT-001',\n description: 'Free Plan - Monthly',\n price: '0',\n displayPrice: '$0',\n billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,\n trialLengthDays: 0,\n trialRequiresCreditCard: false,\n planDesc: [\n ...CommonPlanInfo,\n 'Free Up to 500 orders/month (50,000 events)*'\n ],\n unitPriceText: 'try now - free forever',\n isHighlighted: false,\n isBanner: false\n },\n // STARTER PLANS\n {\n id: 2,\n planName: 'starter_monthly',\n displayName: 'Starter',\n sku: 'ADT-002',\n description: 'Starter Plan - Monthly',\n price: '79.99',\n displayPrice: '$79.99',\n billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,\n trialLengthDays: 60,\n trialRequiresCreditCard: false,\n planDesc: [\n '60-day Risk Free Trial',\n ...CommonPlanInfo,\n 'Up to 2,000 orders/month (250,000 events)*'\n ],\n isHighlighted: true,\n isBanner: true,\n bannerColor: 'blue',\n bannerText: 'MOST POPULAR'\n }, {\n id: 3,\n planName: 'starter_yearly',\n displayName: 'Starter',\n sku: 'ADT-003',\n description: 'Starter Plan - Yearly',\n price: '767.90',\n displayPrice: '$63.99',\n billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,\n trialLengthDays: 30,\n trialRequiresCreditCard: false,\n planDesc: [\n '60-day Risk Free Trial',\n ...CommonPlanInfo,\n 'Up to 2,000 orders/month (250,000 events)*'\n ],\n unitPriceText: 'billed yearly ($767.90) - 20% savings',\n isHighlighted: true,\n isBanner: true,\n bannerColor: 'blue',\n bannerText: 'MOST POPULAR'\n },\n // SCALE PLANS\n {\n id: 4,\n planName: 'scale_monthly',\n displayName: 'Scale',\n sku: 'ADT-004',\n description: 'Scale Plan - Monthly',\n price: '199.99',\n displayPrice: '$199.99',\n billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,\n trialLengthDays: 60,\n trialRequiresCreditCard: false,\n planDesc: [\n '60-day Risk Free Trial',\n ...CommonPlanInfo,\n 'Up to 7,500 orders/month (750,000 events)*'\n ],\n unitPriceText: '',\n isHighlighted: false,\n isBanner: false\n }, {\n id: 5,\n planName: 'scale_yearly',\n displayName: 'Scale',\n sku: 'ADT-005',\n description: 'Scale Plan - Yearly',\n price: '1823.91',\n displayPrice: '$151.99',\n billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,\n trialLengthDays: 60,\n trialRequiresCreditCard: false,\n planDesc: [\n '60-day Risk Free Trial',\n ...CommonPlanInfo,\n 'Up to 7,500 orders/month (750,000 events)*'\n ],\n unitPriceText: 'billed yearly ($1823.91) - 24% savings',\n isHighlighted: false,\n isBanner: false\n },\n // // GROWTH PLANS\n // {\n // id: 6,\n // planName: 'growth_monthly',\n // displayName: 'Growth',\n // sku: 'ADT-006',\n // description: 'Growth Plan - Monthly',\n // price: '199.99',\n // displayPrice: '$199.99',\n // billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,\n // trialLengthDays: 60,\n // trialRequiresCreditCard: false,\n // planDesc: [\n // '60-day Risk Free Trial',\n // ...CommonPlanInfo,\n // '250,000 tracking events/mo'\n // ],\n // unitPriceText: 'billed yearly ($540) - 25% savings',\n // isHighlighted: false,\n // isBanner: true,\n // bannerColor: 'orange',\n // bannerText: 'BEST VALUE'\n // }, {\n // id: 7,\n // planName: 'growth_yearly',\n // displayName: 'Growth',\n // sku: 'ADT-007',\n // description: 'Growth Plan - Yearly',\n // price: '1799.91',\n // displayPrice: '$149.99',\n // billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,\n // trialLengthDays: 60,\n // trialRequiresCreditCard: false,\n // planDesc: [\n // '30-day Risk Free Trial',\n // 'Fixes IOS14.5 tracking',\n // 'Multi Pixel Support',\n // 'Enhanced Tracking / Attribution',\n // 'Unlimited Facebook Conversion API',\n // 'Unlimited Integrations',\n // 'Easy no code setup',\n // '100,000 tracking events/mo'\n // ],\n // unitPriceText: 'billed yearly ($1799.91) - 25% savings',\n // isHighlighted: false,\n // isBanner: true,\n // bannerColor: 'orange',\n // bannerText: 'BEST VALUE'\n // },\n ]\n};\n\n\nexport const getPlanDetails = (planId: number, stage: string) => {\n const plan = SubscriptionPlanSeedItems.items.filter(x => x.id === planId)[ 0 ] as any;\n plan.stripePriceId = StripeBillingMap[ stage ][ plan.planName ];\n return plan as SubscriptionPlan;\n};\n\nexport const getPlanByStripePriceId = (stripePriceId: string, stage: string) => {\n const stripePriceIds = StripeBillingMap[ stage ];\n const planName = Object.keys(stripePriceIds).find(key => stripePriceIds[ key ] === stripePriceId);\n\n const plan = SubscriptionPlanSeedItems.items.filter(x => x.planName === planName)[ 0 ] as any;\n plan.stripePriceId = stripePriceId;\n\n return plan as SubscriptionPlan;\n};", "import crypto from 'crypto';\n\nexport const generatePublicKey = (): string => {\n const publicKey = crypto.randomBytes(26);\n return publicKey.toString('utf8');\n};", "export enum ADTRACKIFY_EVENT_TYPES {\n NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = 'shopifySubscriptionCreated',\n NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = 'subscription.signupCompleted',\n REQUEST_SET_ACCOUNT_OWNER = 'setAccountOwner',\n REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = 'setAccountSubscriptionId',\n}\n\nexport enum ADTRACKIFY_EVENT_SOURCES {\n SUBSCRIPTIONS = 'subscriptions',\n}\n\nexport const enum PostmarkRequestType {\n SINGLE_EMAIL = 'single_email',\n TEMPLATE_EMAIL = 'template_email'\n}\n\nexport enum ADTRACKIFY_EVENT_BRIDGE_EVENTS {\n SEND_POSTMARK_EMAIL = 'integration.sendPostmarkEmail',\n NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = 'shopifySubscriptionCreated',\n NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = 'subscription.signupCompleted',\n REQUEST_SET_ACCOUNT_OWNER = 'setAccountOwner',\n REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = 'setAccountSubscriptionId',\n}", "import { EventBridgeClient } from '../clients/generic/eventbridge-client.js';\nimport { Message, TemplatedMessage } from 'postmark';\nimport { ADTRACKIFY_EVENT_BRIDGE_EVENTS, PostmarkRequestType } from '../types/internal-events/event-detail-types.js';\n\n\n\nexport class EventBridgeIntegrationService {\n public eventBridgeClient: EventBridgeClient;\n public EVENT_BUS_NAME: string;\n\n constructor (eventBusName: string) {\n this.eventBridgeClient = new EventBridgeClient(eventBusName);\n this.EVENT_BUS_NAME = eventBusName;\n }\n\n public sendPostmarkEmailEvent = async (eventSource: string, postmarkMessage: Message, postmarkServerToken: string) => {\n return await this.eventBridgeClient.buildAndSendEvent(\n eventSource,\n ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL,\n {\n postmarkMessage,\n postmarkRequestType: PostmarkRequestType.SINGLE_EMAIL,\n postmarkServerToken\n });\n };\n\n public sendPostmarkTemplatedEmailEvent = async (eventSource: string, postmarkMessage: TemplatedMessage, postmarkServerToken: string) => {\n return await this.eventBridgeClient.buildAndSendEvent(\n eventSource,\n ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL,\n {\n postmarkMessage,\n postmarkRequestType: PostmarkRequestType.TEMPLATE_EMAIL,\n postmarkServerToken\n });\n };\n\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;AAAA,SAAS,sBAAmC;AAC5C,SAAS,wBAAwB;AAGjC,IAAM,kBAAkB;AAAA,EACtB,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,2BAA2B;AAC7B;AAEA,IAAM,oBAAoB;AAAA,EACxB,aAAa;AACf;AAEA,IAAM,kBAAkB,EAAE,iBAAiB,kBAAkB;AAC7D,IAAM,YAAY,IAAI,eAAe,CAAC,CAAC;AACvC,IAAM,SAAS,iBAAiB,KAAK,WAAW,eAAe;AAExD,IAAM,kBAAN,MAAqB;AA4G5B;AA5GO,IAAM,iBAAN;AACL,cADW,gBACJ,WAAU,OAAO,WAAmB,SAAiB,aAAkB;AAC5E,MAAI;AACF,UAAM,SAAS;AAAA,MACb,WAAW;AAAA,MACX,KAAK;AAAA,QACH,CAAE,OAAQ,GAAG;AAAA,MACf;AAAA,IACF;AACA,UAAM,MAAM,MAAM,OAAO,IAAI,MAAM;AACnC,WAAO,KAAK,QAAQ;AAAA,EACtB,SAAS,GAAP;AACA,WAAO,MAAM,GAAG,EAAE,SAAS,2BAA2B,CAAC;AACvD,WAAO;AAAA,EACT;AACF;AAEA,cAjBW,gBAiBJ,WAAU,OAAO,WAAmB,SAAc;AACvD,MAAI;AACF,UAAM,SAAS;AAAA,MACb,WAAW;AAAA,MACX,MAAM;AAAA,IACR;AACA,UAAM,MAAM,MAAM,OAAO,IAAI,MAAM;AACnC,WAAO;AAAA,EACT,SAAS,GAAP;AACA,WAAO,MAAM,GAAG,EAAE,SAAS,0BAA0B,CAAC;AAC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,QACE;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IAAC;AAAA,EACL;AAEF;",
|
|
6
|
-
"names": ["error", "config", "error", "error", "uuidv4", "uuidv4", "client", "client", "success", "HttpStatusCodes", "client", "client", "client", "debug", "error", "error", "b", "p", "ACCOUNT_STATUS", "DESTINATIONS", "CustomHTMLLocation", "ShopifyAppInstallStatus", "ShopifyAppSubscriptionStatus", "PLAN_BILLING_FREQUENCY", "PAYMENT_STATUS", "SUBSCRIPTION_STATUS", "PAYMENT_GATEWAY", "LogLevel", "ADTRACKIFY_STANDARD_EVENT", "ADTRACKIFY_EVENT_TYPE", "stage", "x", "ADTRACKIFY_EVENT_TYPES", "ADTRACKIFY_EVENT_SOURCES", "PostmarkRequestType", "ADTRACKIFY_EVENT_BRIDGE_EVENTS"]
|
|
3
|
+
"sources": ["../src/clients/generic/dynamodb-client.ts", "../src/clients/generic/eventbridge-client.ts", "../src/libs/dates.ts", "../src/clients/generic/http-client.ts", "../src/clients/generic/s3-client.ts", "../src/clients/generic/cognito-client.ts", "../src/clients/generic/sqs-client.ts", "../src/clients/internal-api/destinations-client.ts", "../src/clients/internal-api/accounts-client.ts", "../src/libs/http-error.ts", "../src/libs/http-status-codes.ts", "../src/clients/internal-api/users-auth-client.ts", "../src/clients/internal-api/shopify-app-install-client.ts", "../src/clients/third-party/shopify-client.ts", "../src/helpers/logging-helper.ts", "../src/helpers/input-validation-helper.ts", "../src/helpers/response-helper.ts", "../src/helpers/shopify-helper.ts", "../src/libs/url.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/account.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/destinations/destinations.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/destinations/third-party-destination-configs.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/shopify-app-install.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/api/subscription.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/common/logger.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/adtrackify-standard-events.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/tracking-events/tracking-event-type.ts", "../node_modules/@adtrackify/at-tracking-event-types/src/types/adtrackify-event-types.ts", "../src/helpers/subscription-helper.ts", "../src/libs/crypto.ts", "../src/libs/referrer-parser/referrer-data.ts", "../src/libs/referrer-parser/referrer-parser-util.ts", "../src/types/internal-events/event-detail-types.ts", "../src/services/eventbridge-integration-service.ts"],
|
|
4
|
+
"sourcesContent": ["import { DynamoDBClient, QueryOutput } from '@aws-sdk/client-dynamodb';\nimport { DynamoDBDocument } from '@aws-sdk/lib-dynamodb';\nimport { Logger } from '../../index.js';\n\nconst marshallOptions = {\n convertEmptyValues: false,\n removeUndefinedValues: false,\n convertClassInstanceToMap: true\n};\n\nconst unmarshallOptions = {\n wrapNumbers: false,\n};\n\nconst translateConfig = { marshallOptions, unmarshallOptions };\nconst ddbClient = new DynamoDBClient({});\nconst client = DynamoDBDocument.from(ddbClient, translateConfig);\n\nexport class DynamoDbClient {\n static safeGet = async (tableName: string, keyName: string, keyValue: any) => {\n try {\n const params = {\n TableName: tableName,\n Key: {\n [ keyName ]: keyValue\n }\n };\n const res = await client.get(params);\n return res?.Item ?? null;\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo Client Get Failed' });\n return null;\n }\n };\n\n static safePut = async (tableName: string, data: any) => {\n try {\n const params = {\n TableName: tableName,\n Item: data\n };\n const res = await client.put(params);\n return res;\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo failed simplePut' });\n return null;\n }\n };\n\n static safeDelete = async (tableName: string, keyName: string, keyValue: any) => {\n try {\n const params = {\n TableName: tableName,\n Key: {\n [ keyName ]: keyValue\n }\n };\n const res = await client.delete(params);\n return res;\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo failed safeDelete' });\n return null;\n }\n };\n\n static safeQueryByGSI = async (tableName: string, gsiName: string, keyName: string, keyValue: any) => {\n const query = {\n TableName: tableName,\n IndexName: gsiName,\n KeyConditionExpression: `${keyName} = :value`,\n ExpressionAttributeValues: {\n ':value': keyValue\n }\n };\n const results = await DynamoDbClient.queryAll(query);\n return results;\n };\n\n static safeBatchGet = async (tableName: string, keys: any) => {\n try {\n const params: any = {\n RequestItems: {}\n };\n params.RequestItems[ tableName ] = {\n Keys: keys\n };\n const res = await client.batchGet(params);\n Logger.debug('batchget res', { batchGetRes: res });\n if (res?.Responses?.[ tableName ]) {\n return res?.Responses?.[ tableName ];\n }\n return [];\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo failed safeBatchGet' });\n return [];\n }\n };\n\n static queryAll = async (params: any) => {\n try {\n Logger.debug('Invoke Query All', { params });\n let currentResult: QueryOutput, exclusiveStartKey;\n let accumulatedResults: any[] = [];\n do {\n params.ExclusiveStartKey = exclusiveStartKey;\n params.Limit = 200;\n currentResult = await client.query(params);\n if (currentResult.Items) {\n exclusiveStartKey = currentResult.LastEvaluatedKey;\n accumulatedResults = [ ...accumulatedResults, ...currentResult.Items ];\n }\n } while (currentResult.Items && currentResult.Items.length > 0 && currentResult.LastEvaluatedKey);\n return accumulatedResults;\n } catch (e: any) {\n Logger.error(e, { message: 'Dynamo failed queryAll' });\n return null;\n }\n };\n\n static batchGet = (params: any) => client.batchGet(params);\n static get = (params: any) => client.get(params);\n static put = (params: any) => client.put(params);\n static query = (params: any) => client.query(params);\n static scan = (params: any) => client.scan(params);\n static update = (params: any) => client.update(params);\n static delete = (params: any) => client.delete(params);\n}", "import { EventBridgeClient as EventBridge, PutEventsCommand, PutEventsCommandInput } from '@aws-sdk/client-eventbridge';\nimport { v4 as uuidv4 } from 'uuid';\nimport { getCurrentTimestamp } from '../../libs/dates.js';\nimport { Logger } from '../../index.js';\n\nexport class EventBridgeClient {\n public eventBridge: EventBridge;\n public EVENT_BUS_NAME: string;\n\n constructor (eventBusName: string) {\n this.eventBridge = new EventBridge({});\n this.EVENT_BUS_NAME = eventBusName;\n }\n\n public buildAndSendEvent = async (eventSource: string, eventType: string, eventData: any) => {\n const event = this.buildEvent(eventType, eventData);\n return await this.putEvent(eventSource, eventType, event);\n };\n\n public buildEvent = (eventType: string, eventData: any, eventId: string = uuidv4(), eventTime: string = getCurrentTimestamp()) => {\n return {\n eventId,\n eventType,\n eventTime,\n eventData\n };\n };\n\n public putEvent = async (source: string, detailType: string, data: any, headers: any = null) => {\n const params: PutEventsCommandInput = {\n Entries: [ {\n Detail: JSON.stringify({ headers, data }),\n DetailType: detailType,\n EventBusName: this.EVENT_BUS_NAME,\n Source: source,\n Time: new Date(),\n } ],\n };\n const putEventscommand = new PutEventsCommand(params);\n const response = await this.eventBridge.send(putEventscommand);\n Logger.debug('EventBus Event Published',\n {\n eventBusName: this.EVENT_BUS_NAME,\n eventSource: source,\n eventType: detailType,\n event: data,\n response\n });\n return response;\n };\n\n}\n\n", "\nimport { DateTime } from 'luxon';\n\nexport const getCurrentTimestamp = (): string => {\n return DateTime.utc().toJSDate().toISOString();\n}\n\nexport const getDateFromTimestamp = (timestamp: string) => {\n return timestamp.split('T')[0];\n}\n\nexport const getCurrentDate = (): string => {\n return getDateFromTimestamp(getCurrentTimestamp());\n}", "import axios, { CreateAxiosDefaults } from 'axios';\nimport https from 'https';\n\nconst httpResponse = (res: any = {}) => {\n return {\n headers: res?.headers || {},\n data: res?.data || {},\n status: res?.status || 0,\n };\n};\n\nconst handleAxiosError = (error: any) => {\n if (!error?.response && !error?.request) throw error;\n return error.response ? httpResponse(error.response) : httpResponse({ status: 500, data: { error: error.request } });\n};\n\nexport const axiosHttpService = (config: CreateAxiosDefaults = {}) => {\n config.adapter = 'http';\n config.httpsAgent = new https.Agent({ keepAlive: true });\n const axiosService = axios.create(config);\n\n return {\n instance: () => axiosService,\n get: (url: string, config?: any) => axiosService.get(url, config).then(httpResponse, handleAxiosError),\n post: (url: string, data?: any, config?: any) => axiosService.post(url, data, config).then(httpResponse, handleAxiosError),\n delete: (url: string, config?: any) => axiosService.delete(url, config).then(httpResponse, handleAxiosError),\n put: (url: string, data?: any, config?: any) => axiosService.put(url, data, config).then(httpResponse, handleAxiosError),\n patch: (url: string, data?: any, config?: any) => axiosService.patch(url, data, config).then(httpResponse, handleAxiosError),\n setBaseUrl: (url: string) => !!(axiosService.defaults.baseURL = url)\n };\n};\n", "import { ObjectCannedACL, PutObjectCommandOutput, S3 } from '@aws-sdk/client-s3';\nimport { Logger } from '../../index.js';\nexport class S3Client {\n s3: S3;\n\n constructor (region = 'us-west-2') {\n this.s3 = new S3({ region });\n }\n\n async checkObjectExists(path: string, bucket: string): Promise<boolean> {\n try {\n const data = await this.s3.headObject({\n Bucket: bucket,\n Key: path,\n })\n\n const exists = data.$metadata.httpStatusCode === 200;\n return exists;\n } catch (error: any) {\n if (error.$metadata?.httpStatusCode === 404) {\n return false;\n } else if (error.$metadata?.httpStatusCode === 403) {\n return false;\n } else {\n Logger.error('checkObjectExists unknown error', { error });\n return false;\n }\n }\n }\n\n async checkAndUploadJson(path: string, bucket: string, jsonData: any, ACL: ObjectCannedACL | string = ObjectCannedACL.private, retryCount = 0, maxRetries = 5): Promise<{ status: boolean, response?: PutObjectCommandOutput }> {\n try {\n const checkObject = await this.checkObjectExists(path, bucket);\n\n let res: any = {};\n if (!checkObject) {\n res = await this.s3.putObject({\n ACL,\n Bucket: bucket,\n ContentType: 'application/json; charset=utf-8',\n Body: JSON.stringify(jsonData),\n Key: path\n });\n }\n\n return { status: true, response: res };\n } catch (error) {\n Logger.error('Error in s3 upload json', { error });\n\n if (retryCount < maxRetries) {\n retryCount++;\n Logger.warn('retrying to uploadJson', { path, bucket, jsonData, ACL, retryCount });\n \n await new Promise(resolve => setTimeout(resolve, 1000 * retryCount));\n return await this.uploadJson(path, bucket, jsonData, ACL, retryCount);\n }\n\n return { status: false, response: jsonData };\n }\n }\n\n async uploadJson(path: string, bucket: string, jsonData: any, ACL: ObjectCannedACL | string = ObjectCannedACL.private, retryCount = 0, maxRetries = 5): Promise<{ status: boolean, response: PutObjectCommandOutput; }> {\n try {\n const res = await this.s3.putObject({\n ACL,\n Bucket: bucket,\n ContentType: 'application/json; charset=utf-8',\n Body: JSON.stringify(jsonData),\n Key: path\n });\n\n return { status: true, response: res };\n } catch (error) {\n Logger.error('Error in s3 upload json', { error });\n\n if (retryCount < maxRetries) {\n retryCount++;\n Logger.warn('retrying to uploadJson', { path, bucket, jsonData, ACL, retryCount });\n \n await new Promise(resolve => setTimeout(resolve, 1000 * retryCount));\n return await this.uploadJson(path, bucket, jsonData, ACL, retryCount);\n }\n\n return { status: false, response: jsonData };\n }\n }\n}", "/* eslint-disable no-useless-escape */\nimport { AdminConfirmSignUpCommandInput, AdminDeleteUserCommandInput, AdminUpdateUserAttributesCommandInput, CognitoIdentityProvider, ConfirmSignUpCommandInput, ForgotPasswordCommandInput, ListUsersCommandInput, ResendConfirmationCodeCommandInput, SignUpCommandInput } from '@aws-sdk/client-cognito-identity-provider';\nimport { Logger } from '../../index.js';\n\nexport function dictToAwsAttributes(input: any) {\n delete input.email;\n delete input.password;\n const output = [];\n for (const att in input) {\n if (Object.prototype.hasOwnProperty.call(input, att)) {\n output.push({ Name: att, Value: input[ att ] });\n }\n }\n return output;\n}\n\nconst buildAttributes = (data: any) => {\n const attributes = {\n name: data.givenName,\n family_name: data.familyName,\n };\n return dictToAwsAttributes(attributes);\n};\n\nexport class CognitoClient {\n public cognitoClient: any;\n public USER_POOL_ID: string;\n public USER_POOL_NO_SECRET_CLIENT_ID: string;\n\n constructor (userPoolId: string, userPoolNoSecretClientId: string) {\n this.cognitoClient = new CognitoIdentityProvider({});\n this.USER_POOL_ID = userPoolId;\n this.USER_POOL_NO_SECRET_CLIENT_ID = userPoolNoSecretClientId;\n }\n\n public signupUser = async (data: any) => {\n const params: SignUpCommandInput = {\n ClientId: this.USER_POOL_NO_SECRET_CLIENT_ID,\n Password: data.password,\n Username: data.email,\n UserAttributes: buildAttributes(data),\n };\n const cognitoResponse = await this.cognitoClient.signUp(params);\n Logger.debug('Successfully Registered User', { cognitoResponse });\n return cognitoResponse;\n };\n\n public forgotPassword = async (email: string) => {\n await this.adminEmailVerify(email);\n const params: ForgotPasswordCommandInput = {\n ClientId: this.USER_POOL_NO_SECRET_CLIENT_ID,\n Username: email,\n };\n const cognitoResponse = await this.cognitoClient.forgotPassword(params);\n Logger.debug('Sent Forgot Password', { cognitoResponse });\n return cognitoResponse;\n };\n\n public adminEmailVerify = async (email: string) => {\n try {\n const user: any = await this.getUserByEmail(email);\n if (user && user?.UserStatus === 'CONFIRMED' && user?.email_verified !== 'true') {\n await this.forceValidateEmail(email);\n }\n } catch (error) {\n Logger.error('Failed admin email verify', { error });\n }\n };\n\n public forceValidateEmail = async (email: string) => {\n try {\n const params: AdminUpdateUserAttributesCommandInput = {\n UserPoolId: this.USER_POOL_ID,\n Username: email,\n UserAttributes: [\n {\n Name: 'email_verified',\n Value: 'true',\n },\n ],\n };\n await this.cognitoClient.adminUpdateUserAttributes(params);\n } catch (error) {\n Logger.error('Failed force validate email', { email, error });\n }\n };\n\n public adminConfirmUser = async (data: any) => {\n const params: AdminConfirmSignUpCommandInput = {\n UserPoolId: this.USER_POOL_ID,\n Username: data.email,\n };\n const cognitoResponse = await this.cognitoClient.adminConfirmSignUp(params);\n await this.forceValidateEmail(data.email);\n Logger.debug('Admin Successfully Confirmed User', { cognitoResponse });\n return cognitoResponse;\n };\n\n public confirmUser = async (data: any) => {\n const params: ConfirmSignUpCommandInput = {\n ClientId: this.USER_POOL_NO_SECRET_CLIENT_ID,\n ConfirmationCode: data.confirmationCode,\n Username: data.email,\n };\n const cognitoResponse = await this.cognitoClient.confirmSignUp(params);\n Logger.debug('Successfully Confirmed User', { cognitoResponse });\n return cognitoResponse;\n };\n\n public resendCode = async (email: string) => {\n const params: ResendConfirmationCodeCommandInput = {\n ClientId: this.USER_POOL_NO_SECRET_CLIENT_ID,\n Username: email,\n };\n await this.cognitoClient.resendConfirmationCode(params);\n Logger.debug('Successfully Resend Confirmation Code', { email });\n return;\n };\n\n public adminDeleteUser = async (userId: string) => {\n const params: AdminDeleteUserCommandInput = {\n UserPoolId: this.USER_POOL_ID,\n Username: userId,\n };\n await this.cognitoClient.adminDeleteUser(params);\n return true;\n };\n\n public getUserByEmail = async (email: string) => {\n const params: ListUsersCommandInput = {\n UserPoolId: this.USER_POOL_ID,\n Filter: `email=\\\"${email}\\\"`,\n Limit: 1,\n };\n const cognitoResponse: any = await this.cognitoClient.listUsers(params);\n Logger.debug('Get Users by Email', { cognitoResponse });\n\n if (cognitoResponse?.Users && cognitoResponse?.Users.length > 0) {\n const attributes = cognitoResponse.Users[ 0 ].Attributes;\n\n const user = {\n ...cognitoResponse.Users[ 0 ],\n Attributes: undefined,\n id: cognitoResponse.Users[ 0 ].sub,\n };\n\n attributes.forEach((attr: any) => {\n user[ attr.Name ] = attr?.Value;\n });\n return user;\n }\n return null;\n };\n}", "import { SQS, SendMessageCommandInput } from '@aws-sdk/client-sqs';\nimport { v4 as uuidv4 } from 'uuid';\nimport { getCurrentTimestamp } from '../../libs/dates.js';\nimport { Logger } from '../../index.js';\n\nexport class SQSClient {\n public sqs: SQS;\n public queueUrl: string;\n\n constructor (region: string, accountId: string, queueName: string) {\n this.sqs = new SQS({ region });\n this.queueUrl = `https://sqs.${region}.amazonaws.com/${accountId}/${queueName}`;\n }\n\n public buildAndSendMessage = async (messageType: string, messageBody: any, deplaySeconds = 0) => {\n const message = this.buildMessage(messageType, messageBody);\n return await this.sendMessage(message, deplaySeconds);\n };\n\n public buildMessage = (messageType: string, messageBody: any, messageId: string = uuidv4(), messageTime: string = getCurrentTimestamp()) => {\n return {\n messageId,\n messageType,\n messageTime,\n messageBody\n };\n };\n\n public sendMessage = async (messageBody: any, delaySeconds = 0) => {\n const params: SendMessageCommandInput = {\n QueueUrl: this.queueUrl,\n DelaySeconds: delaySeconds,\n MessageBody: JSON.stringify(messageBody)\n };\n const response = await this.sqs.sendMessage(params);\n\n Logger.debug('SQS Message Sent', { queueUrl: this.queueUrl, messageBody, delaySeconds, response });\n\n return response;\n };\n\n}\n\n", "import { Logger } from '../../index.js';\n//const log = require('lambda-log');\nimport { ApiResponse } from '../../types/api-response.js';\nimport { axiosHttpService } from '../generic/http-client.js';\nimport { Destination } from '@adtrackify/at-tracking-event-types';\n//const BASE_API_URL = process.env.BASE_API_URL;\n//const DESTINATIONS_API_KEY = process.env.DESTINATIONS_API_KEY;\n\nexport interface GetDestinationsResponseData {\n destinations: Destination[];\n [ key: string ]: any;\n}\nexport interface CreateDestinationResponseData {\n destination: Destination;\n [ key: string ]: any;\n}\n\n\nexport class DestinationsClient {\n\n public BASE_API_URL: string;\n public DESTINATIONS_API_KEY: string;\n\n constructor (baseApiUrl: string, destinationsApiKey: string) {\n this.BASE_API_URL = baseApiUrl;\n this.DESTINATIONS_API_KEY = destinationsApiKey;\n }\n\n getConfig = () => {\n const SERVICE_API_ROOT_URL = `${this.BASE_API_URL}/destinations`;\n return {\n baseURL: SERVICE_API_ROOT_URL,\n headers: {\n common: {\n 'x-api-key': this.DESTINATIONS_API_KEY\n }\n }\n };\n };\n\n getClient = async () => {\n return axiosHttpService(this.getConfig());\n };\n\n createDestination = async (createDestinationRequest: any): Promise<ApiResponse<CreateDestinationResponseData>> => {\n const client = await this.getClient();\n const response = await client.post('/', createDestinationRequest);\n Logger.debug('createDestinationResponse', { response });\n return response as ApiResponse<CreateDestinationResponseData>;\n };\n\n getPixelDestinations = async (pixelId: string): Promise<ApiResponse<GetDestinationsResponseData>> => {\n const client = await this.getClient();\n const response = await client.get(`/?pixelId=${pixelId}`);\n Logger.debug('getPixelResponse', { response });\n return response as ApiResponse<GetDestinationsResponseData>;\n };\n}\n", "import { Logger } from '../../index.js';\nimport { ApiResponse } from '../../types/api-response.js';\nimport { Account, ACCOUNT_STATUS, Destination } from '@adtrackify/at-tracking-event-types';\nimport { axiosHttpService } from '../generic/http-client.js';\n\n//const BASE_API_URL = process.env.BASE_API_URL;\n\n//const SERVICE_API_ROOT_URL = `${BASE_API_URL}/accounts`;\n//const ACCOUNTS_API_KEY = process.env.ACCOUNTS_API_KEY;\n\nexport interface AccountResponseData {\n account: Account;\n [ key: string ]: any;\n}\n\nexport interface IsAuthorizedUserResponseData {\n isAccountUser: boolean;\n [ key: string ]: any;\n}\nexport interface PixelConfigResponseData {\n id: string;\n destinations: Destination[];\n [ key: string ]: any;\n}\nexport interface AddUserToAccountResponseData {\n userId: string;\n accountId: string;\n}\n\nexport interface UpdateAccountRequest {\n accountName?: string,\n companyName?: string,\n primaryEmail?: string,\n ownerId?: string,\n subscriptionId?: string,\n accountStatus?: ACCOUNT_STATUS;\n}\n\nexport class AccountsClient {\n public BASE_API_URL: string;\n public ACCOUNTS_API_KEY?: string;\n\n constructor (baseApiUrl: string, accountsApiKey?: string) {\n this.BASE_API_URL = baseApiUrl;\n this.ACCOUNTS_API_KEY = accountsApiKey;\n }\n\n getConfig = () => {\n const SERVICE_API_ROOT_URL = `${this.BASE_API_URL}/accounts`;\n const params: any = {\n baseURL: SERVICE_API_ROOT_URL\n };\n if (this.ACCOUNTS_API_KEY) {\n params.headers = {\n common: {\n 'x-api-key': this.ACCOUNTS_API_KEY\n }\n };\n }\n return params;\n };\n\n getClient = async () => {\n return axiosHttpService(this.getConfig());\n };\n\n createAccount = async (createAccountRequest: any) => {\n const client = await this.getClient();\n const createAccountResponse = await client.post('', createAccountRequest);\n Logger.debug('createAccountResponse', { createAccountResponse });\n return createAccountResponse;\n };\n updateAccount = async (accountId: string, body: any): Promise<ApiResponse<AccountResponseData>> => {\n const client = await this.getClient();\n const response = await client.patch(`/${accountId}/`, body);\n Logger.debug('update Account response', { response });\n return response as ApiResponse<AccountResponseData>;\n };\n addOwner = async (accountId: string, userId: string) => {\n const client = await this.getClient();\n const addOwnerResponse = await client.post('/addOwner', { accountId, userId });\n Logger.debug('addOwnerResponse', { addOwnerResponse });\n return addOwnerResponse;\n };\n isAuthorizedUser = async (userId: string, accountId: string, pixelId?: string): Promise<ApiResponse<IsAuthorizedUserResponseData>> => {\n const client = await this.getClient();\n const body = {\n userId, accountId, pixelId\n };\n const response = await client.post('/checkUserAuthorization', body);\n Logger.debug('checkUserAuthorization', { response });\n return response as ApiResponse<IsAuthorizedUserResponseData>;\n };\n adminDeleteAccount = async (accountId: string) => {\n const client = await this.getClient();\n const success = await client.delete(`/${accountId}`);\n Logger.debug('adminDeleteAccount');\n return success;\n };\n getPixelConfigById = async (pixelId: string): Promise<ApiResponse<PixelConfigResponseData>> => {\n const client = await this.getClient();\n const pixelResponse = await client.get(`/px/${pixelId}/config`);\n Logger.debug('get pixelResponse', { pixelResponse });\n return pixelResponse;\n };\n getAccount = async (accountId: string): Promise<ApiResponse<AccountResponseData>> => {\n const client = await this.getClient();\n const response = await client.get(`/${accountId}/`);\n Logger.debug('get account response', { response });\n return response as ApiResponse<AccountResponseData>;\n };\n addUserToAccount = async (accountId: string, userId: string): Promise<ApiResponse<AddUserToAccountResponseData>> => {\n const client = await this.getClient();\n const response = await client.post('/addUser', { accountId, userId });\n Logger.debug('add user account response', { response });\n return response as ApiResponse<AddUserToAccountResponseData>;\n };\n\n\n // setAccountSubscriptionId = async (accountId: string, subscriptionId: string): Promise<ApiResponse<any>> => {\n // const client = await this.getClient();\n // const pixelResponse = await client.get(`/px/${pixelId}/config`);\n // Logger.debug('pixelResponse', { pixelResponse });\n // return pixelResponse;\n // };\n}", "/* eslint-disable no-dupe-class-members */\nimport { strict as assert } from 'assert';\n\nconst deepClone = (o = {}) => JSON.parse(JSON.stringify(o));\nconst containsStackTrace = (text = '') => /at.+\\.js:\\d+:\\d+/.test(text);\nconst objectContainsStackTrace = (obj: any) =>\n !obj ? false : containsStackTrace(JSON.stringify(obj));\n\n// may only be expanded by governance, never reduced\nconst supportedStatusCodes: any = {\n 400: 'Bad Request',\n 401: 'Unauthorized',\n 403: 'Forbidden',\n 404: 'Not Found',\n 405: 'Method Not Allowed',\n 409: 'Conflict',\n 412: 'Precondition Failed',\n 413: 'Payload Too Large',\n 415: 'Unsupported Media Type',\n 428: 'Precondition Required',\n 429: 'Too Many Requests',\n 500: 'Internal Server Error',\n 501: 'Not Implemented',\n 502: 'Bad Gateway',\n 503: 'Service Unavailable',\n 504: 'Gateway Timeout'\n};\n\nconst supportedStatusCodesMessage = `statusCode must be one of the following: ${JSON.stringify(Object.keys(supportedStatusCodes))}`;\n//const onlyStatusCodeMessage = 'Server errors may not specify any parameter except statusCode';\n\n//const isNullOrUndefined = (value: any) => value === null || value === undefined;\n\nexport class HttpError extends Error {\n body: {\n [ key: string ]: any;\n };\n headers: object[];\n statusCode: number;\n isServerError: boolean;\n\n constructor (statusCode: number,\n message?: string,\n body?: {\n [ key: string ]: any;\n },\n headers?: object[]) {\n assert(statusCode in supportedStatusCodes, supportedStatusCodesMessage);\n\n const isServerError = statusCode > 499;\n\n assert(\n body === undefined || typeof body === 'object',\n 'body must be an object or omitted'\n );\n assert(\n headers === undefined || typeof headers === 'object',\n 'headers must be an object or omitted'\n );\n\n message = message ?? supportedStatusCodes[ statusCode ];\n\n assert(\n !containsStackTrace(message) && !objectContainsStackTrace(body),\n 'the message or data parameters may not contain errors or stack traces'\n );\n\n super(message);\n\n this.body = deepClone(body);\n this.headers = deepClone(headers);\n this.statusCode = statusCode;\n this.isServerError = isServerError;\n if (!this?.body?.message) {\n this.body.message = this.message;\n }\n }\n\n\n static get supportedStatusCodes() { return supportedStatusCodes; }\n static badRequest = (message?: string, body?: object, headers?: object[]) => { return new HttpError(400, message, body, headers); };\n static unauthorized = (message?: string, body?: object, headers?: object[]) => new HttpError(401, message, body, headers);\n static forbidden = (message?: string, body?: object, headers?: object[]) => new HttpError(403, message, body, headers);\n static notFound = (message?: string, body?: object, headers?: object[]) => new HttpError(404, message, body, headers);\n static internal = (message?: string, body?: object, headers?: object[]) => new HttpError(500, message, body, headers);\n static notImplemented = () => new HttpError(501);\n static badGateway = () => new HttpError(502);\n static serviceUnavailable = (headers: object[]) => new HttpError(503, undefined, undefined, headers);\n static gatewayTimeout = () => new HttpError(504);\n}\n", "export enum HttpStatusCodes {\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.1\n *\n * This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished.\n */\n CONTINUE = 100,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.2.2\n *\n * This code is sent in response to an Upgrade request header by the client, and indicates the protocol the server is switching too.\n */\n SWITCHING_PROTOCOLS = 101,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.1\n *\n * This code indicates that the server has received and is processing the request, but no response is available yet.\n */\n PROCESSING = 102,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.1\n *\n * The request has succeeded. The meaning of a success varies depending on the HTTP method:\n * GET: The resource has been fetched and is transmitted in the message body.\n * HEAD: The entity headers are in the message body.\n * POST: The resource describing the result of the action is transmitted in the message body.\n * TRACE: The message body contains the request message as received by the server\n */\n OK = 200,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.2\n *\n * The request has succeeded and a new resource has been created as a result of it. This is typically the response sent after a PUT request.\n */\n CREATED = 201,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.3\n *\n * The request has been received but not yet acted upon. It is non-committal, meaning that there is no way in HTTP to later send an asynchronous response indicating the outcome of processing the request. It is intended for cases where another process or server handles the request, or for batch processing.\n */\n ACCEPTED = 202,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.4\n *\n * This response code means returned meta-information set is not exact set as available from the origin server, but collected from a local or a third party copy. Except this condition, 200 OK response should be preferred instead of this response.\n */\n NON_AUTHORITATIVE_INFORMATION = 203,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.5\n *\n * There is no content to send for this request, but the headers may be useful. The user-agent may update its cached headers for this resource with the new ones.\n */\n NO_CONTENT = 204,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.3.6\n *\n * This response code is sent after accomplishing request to tell user agent reset document view which sent this request.\n */\n RESET_CONTENT = 205,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.1\n *\n * This response code is used because of range header sent by the client to separate download into multiple streams.\n */\n PARTIAL_CONTENT = 206,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.2\n *\n * A Multi-Status response conveys information about multiple resources in situations where multiple status codes might be appropriate.\n */\n MULTI_STATUS = 207,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.1\n *\n * The request has more than one possible responses. User-agent or user should choose one of them. There is no standardized way to choose one of the responses.\n */\n MULTIPLE_CHOICES = 300,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.2\n *\n * This response code means that URI of requested resource has been changed. Probably, new URI would be given in the response.\n */\n MOVED_PERMANENTLY = 301,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.3\n *\n * This response code means that URI of requested resource has been changed temporarily. New changes in the URI might be made in the future. Therefore, this same URI should be used by the client in future requests.\n */\n MOVED_TEMPORARILY = 302,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.4\n *\n * Server sent this response to directing client to get requested resource to another URI with an GET request.\n */\n SEE_OTHER = 303,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.1\n *\n * This is used for caching purposes. It is telling to client that response has not been modified. So, client can continue to use same cached version of response.\n */\n NOT_MODIFIED = 304,\n /**\n * @deprecated\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.6\n *\n * Was defined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy. It has been deprecated due to security concerns regarding in-band configuration of a proxy.\n */\n USE_PROXY = 305,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.4.7\n *\n * Server sent this response to directing client to get requested resource to another URI with same method that used prior request. This has the same semantic than the 302 Found HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.\n */\n TEMPORARY_REDIRECT = 307,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7538#section-3\n *\n * This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header. This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.\n */\n PERMANENT_REDIRECT = 308,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.1\n *\n * This response means that server could not understand the request due to invalid syntax.\n */\n BAD_REQUEST = 400,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.1\n *\n * Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.\n */\n UNAUTHORIZED = 401,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.2\n *\n * This response code is reserved for future use. Initial aim for creating this code was using it for digital payment systems however this is not used currently.\n */\n PAYMENT_REQUIRED = 402,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.3\n *\n * The client does not have access rights to the content, i.e. they are unauthorized, so server is rejecting to give proper response. Unlike 401, the client's identity is known to the server.\n */\n FORBIDDEN = 403,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.4\n *\n * The server can not find requested resource. In the browser, this means the URL is not recognized. In an API, this can also mean that the endpoint is valid but the resource itself does not exist. Servers may also send this response instead of 403 to hide the existence of a resource from an unauthorized client. This response code is probably the most famous one due to its frequent occurence on the web.\n */\n NOT_FOUND = 404,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.5\n *\n * The request method is known by the server but has been disabled and cannot be used. For example, an API may forbid DELETE-ing a resource. The two mandatory methods, GET and HEAD, must never be disabled and should not return this error code.\n */\n METHOD_NOT_ALLOWED = 405,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.6\n *\n * This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content following the criteria given by the user agent.\n */\n NOT_ACCEPTABLE = 406,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7235#section-3.2\n *\n * This is similar to 401 but authentication is needed to be done by a proxy.\n */\n PROXY_AUTHENTICATION_REQUIRED = 407,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.7\n *\n * This response is sent on an idle connection by some servers, even without any previous request by the client. It means that the server would like to shut down this unused connection. This response is used much more since some browsers, like Chrome, Firefox 27+, or IE9, use HTTP pre-connection mechanisms to speed up surfing. Also note that some servers merely shut down the connection without sending this message.\n */\n REQUEST_TIMEOUT = 408,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.8\n *\n * This response is sent when a request conflicts with the current state of the server.\n */\n CONFLICT = 409,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.9\n *\n * This response would be sent when the requested content has been permenantly deleted from server, with no forwarding address. Clients are expected to remove their caches and links to the resource. The HTTP specification intends this status code to be used for \"limited-time, promotional services\". APIs should not feel compelled to indicate resources that have been deleted with this status code.\n */\n GONE = 410,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.10\n *\n * The server rejected the request because the Content-Length header field is not defined and the server requires it.\n */\n LENGTH_REQUIRED = 411,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7232#section-4.2\n *\n * The client has indicated preconditions in its headers which the server does not meet.\n */\n PRECONDITION_FAILED = 412,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.11\n *\n * Request entity is larger than limits defined by server; the server might close the connection or return an Retry-After header field.\n */\n REQUEST_TOO_LONG = 413,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.12\n *\n * The URI requested by the client is longer than the server is willing to interpret.\n */\n REQUEST_URI_TOO_LONG = 414,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.13\n *\n * The media format of the requested data is not supported by the server, so the server is rejecting the request.\n */\n UNSUPPORTED_MEDIA_TYPE = 415,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7233#section-4.4\n *\n * The range specified by the Range header field in the request can't be fulfilled; it's possible that the range is outside the size of the target URI's data.\n */\n REQUESTED_RANGE_NOT_SATISFIABLE = 416,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.5.14\n *\n * This response code means the expectation indicated by the Expect request header field can't be met by the server.\n */\n EXPECTATION_FAILED = 417,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2324#section-2.3.2\n *\n * Any attempt to brew coffee with a teapot should result in the error code \"418 I'm a teapot\". The resulting entity body MAY be short and stout.\n */\n IM_A_TEAPOT = 418,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6\n *\n * The 507 (Insufficient Storage) status code means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request. This condition is considered to be temporary. If the request which received this status code was the result of a user action, the request MUST NOT be repeated until it is requested by a separate user action.\n */\n INSUFFICIENT_SPACE_ON_RESOURCE = 419,\n /**\n * @deprecated\n * Official Documentation @ https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt\n *\n * A deprecated response used by the Spring Framework when a method has failed.\n */\n METHOD_FAILURE = 420,\n /**\n * Official Documentation @ https://datatracker.ietf.org/doc/html/rfc7540#section-9.1.2\n *\n * Defined in the specification of HTTP/2 to indicate that a server is not able to produce a response for the combination of scheme and authority that are included in the request URI.\n */\n MISDIRECTED_REQUEST = 421,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3\n *\n * The request was well-formed but was unable to be followed due to semantic errors.\n */\n UNPROCESSABLE_ENTITY = 422,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.4\n *\n * The resource that is being accessed is locked.\n */\n LOCKED = 423,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.5\n *\n * The request failed due to failure of a previous request.\n */\n FAILED_DEPENDENCY = 424,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-3\n *\n * The origin server requires the request to be conditional. Intended to prevent the 'lost update' problem, where a client GETs a resource's state, modifies it, and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.\n */\n PRECONDITION_REQUIRED = 428,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-4\n *\n * The user has sent too many requests in a given amount of time (\"rate limiting\").\n */\n TOO_MANY_REQUESTS = 429,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-5\n *\n * The server is unwilling to process the request because its header fields are too large. The request MAY be resubmitted after reducing the size of the request header fields.\n */\n REQUEST_HEADER_FIELDS_TOO_LARGE = 431,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7725\n *\n * The user-agent requested a resource that cannot legally be provided, such as a web page censored by a government.\n */\n UNAVAILABLE_FOR_LEGAL_REASONS = 451,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.1\n *\n * The server encountered an unexpected condition that prevented it from fulfilling the request.\n */\n INTERNAL_SERVER_ERROR = 500,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.2\n *\n * The request method is not supported by the server and cannot be handled. The only methods that servers are required to support (and therefore that must not return this code) are GET and HEAD.\n */\n NOT_IMPLEMENTED = 501,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.3\n *\n * This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.\n */\n BAD_GATEWAY = 502,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.4\n *\n * The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response, a user-friendly page explaining the problem should be sent. This responses should be used for temporary conditions and the Retry-After: HTTP header should, if possible, contain the estimated time before the recovery of the service. The webmaster must also take care about the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached.\n */\n SERVICE_UNAVAILABLE = 503,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.5\n *\n * This error response is given when the server is acting as a gateway and cannot get a response in time.\n */\n GATEWAY_TIMEOUT = 504,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc7231#section-6.6.6\n *\n * The HTTP version used in the request is not supported by the server.\n */\n HTTP_VERSION_NOT_SUPPORTED = 505,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.6\n *\n * The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.\n */\n INSUFFICIENT_STORAGE = 507,\n /**\n * Official Documentation @ https://tools.ietf.org/html/rfc6585#section-6\n *\n * The 511 status code indicates that the client needs to authenticate to gain network access.\n */\n NETWORK_AUTHENTICATION_REQUIRED = 511\n}", "import { User } from '@adtrackify/at-tracking-event-types';\nimport { Logger } from '../../index.js';\nimport { HttpError } from '../../libs/http-error.js';\nimport { HttpStatusCodes } from '../../libs/http-status-codes.js';\nimport { ApiResponse } from '../../types/api-response.js';\nimport { axiosHttpService } from '../generic/http-client.js';\n\nexport interface UserResponseData {\n user: User;\n [ key: string ]: any;\n}\n\nexport interface UserSignupRequest {\n email: string,\n password: string,\n givenName: string,\n familyName: string;\n}\n\nexport class UsersAuthClient {\n\n public SERVICE_API_ROOT_URL: string;\n public BASE_API_URL: string;\n public USERS_AUTH_API_KEY: string;\n constructor (baseApiUrl: string, usersAuthApiKey?: string) {\n this.BASE_API_URL = baseApiUrl;\n this.USERS_AUTH_API_KEY = usersAuthApiKey as string;\n this.SERVICE_API_ROOT_URL = `${this.BASE_API_URL}/auth`;\n }\n\n getConfig = () => {\n return {\n baseURL: this.SERVICE_API_ROOT_URL,\n headers: {\n common: {\n }\n }\n };\n };\n\n getClient = async () => {\n return axiosHttpService(this.getConfig());\n };\n\n signupAndConfirmUser = async (userSignupRequest: any): Promise<any> => {\n const user = await this.signupUser(userSignupRequest);\n await this.adminConfirmUser(user.email);\n // if fail - delete user and throw error\n return user;\n };\n\n signupUser = async (userSignupRequest: UserSignupRequest): Promise<any> => {\n Logger.info('Attempting to signup user', { email: userSignupRequest.email });\n\n const client = await this.getClient();\n const response = await client.post('/signup', userSignupRequest);\n\n // Check if Successful or throw error\n if (response.status !== 200 || !response?.data?.user) {\n const message = 'User Signup Failed';\n Logger.error(message, { response });\n throw new HttpError(HttpStatusCodes.INTERNAL_SERVER_ERROR, message);\n }\n\n Logger.info('User Signup Successful', { response });\n return response.data.user;\n };\n\n //userName is same as user id\n adminConfirmUser = async (email: string) => {\n //confirm user\n //@TODO update user auth service with admin confirm user endpoint\n Logger.info('Attempting to admin confirm user', { email });\n\n const client = await this.getClient();\n const response = await client.post('/admin/confirm',\n {\n email\n }, {\n headers: {\n 'x-api-key': this.USERS_AUTH_API_KEY\n }\n }\n );\n\n // Check if Successful or throw error\n if (response.status !== 200) {\n const message = 'Admin User Confirmation Failed';\n Logger.error(message, { response });\n throw new HttpError(HttpStatusCodes.INTERNAL_SERVER_ERROR, message);\n }\n\n Logger.info('Admin User Confirmation Successful', { response });\n return response;\n };\n\n getUserByEmail = async (email: string): Promise<ApiResponse<UserResponseData>> => {\n const client = await this.getClient();\n const getUserResponse = await client.get('/lookup', {\n headers: {\n 'x-api-key': this.USERS_AUTH_API_KEY\n },\n params: {\n email\n }\n });\n Logger.debug('getUserResponse', { getUserResponse });\n return getUserResponse;\n };\n\n}\n\n", "import log from 'lambda-log';\nimport { ApiResponse } from '../../types/api-response.js';\nimport { axiosHttpService } from '../generic/http-client.js';\nimport { ShopifyAppInstall, ShopifyAppSubscriptionStatus } from '@adtrackify/at-tracking-event-types';\n//const BASE_API_URL = process.env.BASE_API_URL;\n//const DESTINATIONS_API_KEY = process.env.DESTINATIONS_API_KEY;\n\nexport interface ShopifyAppInstallResponseData {\n shopifyAppInstall: ShopifyAppInstall;\n [ key: string ]: any;\n}\n\nexport interface UpdateShopifyAppInstallRequest {\n appSubscriptionStatus?: ShopifyAppSubscriptionStatus,\n pixelId?: string,\n shopifyAppInstallId: string;\n isAppEnabled?: boolean;\n}\n\nexport class ShopifyAppInstallClient {\n\n public BASE_API_URL: string;\n public SHOPIFY_APP_INSTALL_API_KEY: string;\n\n constructor (baseApiUrl: string, shopifyAppInstallApiKey: string) {\n this.BASE_API_URL = baseApiUrl;\n this.SHOPIFY_APP_INSTALL_API_KEY = shopifyAppInstallApiKey;\n }\n\n getConfig = () => {\n const SERVICE_API_ROOT_URL = `${this.BASE_API_URL}/shopify-app-installs`;\n return {\n baseURL: SERVICE_API_ROOT_URL,\n headers: {\n common: {\n 'x-api-key': this.SHOPIFY_APP_INSTALL_API_KEY\n }\n }\n };\n };\n\n getClient = async () => {\n return axiosHttpService(this.getConfig());\n };\n\n updateShopifyAppInstall = async (shopifyAppInstallId: string, updateShopifyAppInstallRequest: UpdateShopifyAppInstallRequest): Promise<ApiResponse<ShopifyAppInstallResponseData>> => {\n const client = await this.getClient();\n const response = await client.put(`/${shopifyAppInstallId}`, updateShopifyAppInstallRequest);\n log.info('updateShopifyAppInstall', { response });\n return response as ApiResponse<ShopifyAppInstallResponseData>;\n };\n\n getShopifyAppInstall = async (shopifyAppInstallId: string): Promise<ApiResponse<ShopifyAppInstallResponseData>> => {\n const client = await this.getClient();\n const response = await client.get(`/${shopifyAppInstallId}`);\n log.info('getShopifyAppInstall', { response });\n return response as ApiResponse<ShopifyAppInstallResponseData>;\n };\n\n getShopifyAppInstallByShop = async (shop: string): Promise<ApiResponse<ShopifyAppInstallResponseData>> => {\n const client = await this.getClient();\n const response = await client.get(`/?shop=${shop}`);\n log.info('getShopifyAppInstallByShop', { response });\n return response as ApiResponse<ShopifyAppInstallResponseData>;\n };\n}\n", "import { axiosHttpService } from '../generic/http-client.js';\nimport { Logger } from '../../index.js';\n\nexport class ShopifyClient {\n static _shopify_api_version = process.env.SHOPIFY_API_VERSION as string;\n static getConfig = (shopifyDomain: string, accessToken: string) => {\n const config = {\n baseURL: `https://${shopifyDomain}/admin/api/${this._shopify_api_version}`,\n headers: {\n common: {\n 'X-Shopify-Access-Token': accessToken,\n },\n },\n };\n return config;\n };\n\n static getClient = (shopifyDomain: string, accessToken: string) => {\n return axiosHttpService(\n this.getConfig(shopifyDomain, accessToken)\n );\n };\n\n static registerApp = async (shop: string, code: string, appKey: string, appSecret: string) => {\n const client = axiosHttpService();\n const url = 'https://' + shop + '/admin/oauth/access_token';\n const payload = {\n client_id: appKey,\n client_secret: appSecret,\n code\n };\n const res = await client.post(url, payload);\n return res;\n };\n\n static registerWebhookTopic = async (shop: string, accessToken: string, eventBridgeArn: string, topic: string) => {\n const client = axiosHttpService();\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/webhooks.json`;\n const payload = {\n webhook: {\n topic,\n address: eventBridgeArn,\n format: 'json'\n }\n };\n const res = await client.post(url, payload, { headers: { 'X-Shopify-Access-Token': accessToken } });\n if (res.status >= 400) {\n Logger.error('Failed to register Webhook Topic', { res, shop, accessToken, eventBridgeArn, topic, url, payload });\n }\n Logger.debug('Shopify Client Webhook Registration Response', { registrationResponse: res });\n return res;\n };\n\n static updateShopifyAppMetafield = async (shop: string, accessToken: string, pixelId: string) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/metafields.json`;\n const payload = {\n metafield: {\n namespace: 'adtr',\n key: 'adtr.config',\n value: pixelId,\n type: 'single_line_text_field'\n }\n };\n const res = await this.genericShopifyPost(url, accessToken, payload);\n\n if (res.status >= 400) {\n Logger.error('Failed to update Shopify app Metafield ', { shop, accessToken, url, payload });\n }\n return res;\n };\n\n static getShopifyStoreProperties = async (shop: string, accessToken: string) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/shop.json`;\n const res = await this.genericShopifyGet(url, accessToken);\n\n if (res.status >= 400) {\n Logger.error('Failed to get Shopify Store Properties', { shop, accessToken, url });\n }\n return res;\n };\n\n static createAppSubscription = async (shop: string, accessToken: string,\n planName: string, price: number, returnUrl: string, trialDays: number, test?: boolean) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/recurring_application_charges.json`;\n const recurring_application_charge = {\n name: planName,\n price,\n return_url: returnUrl,\n trial_days: trialDays,\n test\n };\n const res = await this.genericShopifyPost(url, accessToken, { recurring_application_charge });\n if (res.status >= 400) {\n Logger.error('Failed to create App Subscription', { shop, accessToken, url });\n }\n return res;\n };\n\n static cancelAppSubscription = async (shop: string, accessToken: string, chargeId: string) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/recurring_application_charges/${chargeId}.json`;\n const client = axiosHttpService();\n const res = await client.delete(url, { headers: { 'X-Shopify-Access-Token': accessToken } });\n\n if (res.status !== 200) {\n Logger.error('Failed to cancel recurring App billing', { shop, accessToken, url });\n }\n return res;\n };\n\n static listAppSubscriptions = async (shop: string, accessToken: string) => {\n const url = `https://${shop}/admin/api/${this._shopify_api_version}/recurring_application_charges.json`;\n const res = await this.genericShopifyGet(url, accessToken);\n if (res.status >= 400) {\n Logger.error('Failed to get App Subscriptions', { shop, accessToken, url });\n }\n return res;\n };\n\n static genericShopifyPost = async (url: string, accessToken: string, payload: any) => {\n const client = axiosHttpService();\n const res = await client.post(url, payload, { headers: { 'X-Shopify-Access-Token': accessToken, 'Content-Type': 'application/json' } });\n Logger.debug('Shopify Client Response', { res });\n return res;\n };\n\n static genericShopifyGet = async (url: string, accessToken: string) => {\n const client = axiosHttpService();\n const res = await client.get(url, { headers: { 'X-Shopify-Access-Token': accessToken } });\n Logger.debug('Shopify Client Response', { res });\n return res;\n };\n\n static genericShopifyPut = async (url: string, accessToken: string, payload: any) => {\n const client = axiosHttpService();\n const res = await client.put(url, payload, { headers: { 'X-Shopify-Access-Token': accessToken } });\n Logger.debug('Shopify Client Response', { res });\n return res;\n };\n}\n", "import * as _logger from 'lambda-log';\nconst stage = process?.env?.STAGE;\nconst LEVEL = process?.env?.LOG_LEVEL as string ?? 'info';\nexport const LogLevelId = {\n trace: 0,\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n};\n\nexport const configureLogger = (event: any, context: any, debug = LEVEL === 'debug') => {\n _logger.options.meta.stage = stage;\n _logger.options.meta.source_name = context?.functionName || 'unknown';\n _logger.options.meta.awsRequestId = context?.awsRequestId || 'unknown';\n _logger.options.meta.lambdaEvent = event;\n _logger.options.debug = debug;\n};\n\nexport const Logger = {\n log: (logLevel: string, msg: string | Error, meta: object | undefined = {}, tags?: string[] | undefined) => {\n if (logLevel === 'debug') {\n Logger.debug(msg as string, meta, tags);\n } else if (logLevel === 'info') {\n Logger.info(msg as string, meta, tags);\n } else if (logLevel === 'warn') {\n Logger.warn(msg as string, meta, tags);\n } else if (logLevel === 'error') {\n Logger.error(msg, meta, tags);\n }\n },\n\n debug: (msg: string, meta?: object | undefined, tags?: string[] | undefined) => {\n if (LogLevelId[ 'debug' ] >= LogLevelId[ LEVEL as keyof typeof LogLevelId ]) {\n _logger.debug(msg, meta, tags);\n }\n },\n\n info: (msg: string, meta?: object | undefined, tags?: string[] | undefined) => {\n if (LogLevelId[ 'info' ] >= LogLevelId[ LEVEL as keyof typeof LogLevelId ]) {\n _logger.info(msg, meta, tags);\n }\n },\n\n warn: (msg: string, meta?: object | undefined, tags?: string[] | undefined) => {\n if (LogLevelId[ 'warn' ] >= LogLevelId[ LEVEL as keyof typeof LogLevelId ]) {\n _logger.warn(msg, meta, tags);\n }\n },\n\n error: (msg: string | Error, meta?: object | undefined, tags?: string[] | undefined) => {\n if (LogLevelId[ 'error' ] >= LogLevelId[ LEVEL as keyof typeof LogLevelId ]) {\n _logger.error(msg, meta, tags);\n }\n }\n};", "import Joi from 'joi';\nimport { Logger } from './logging-helper.js';\nimport { HttpError } from '../libs/http-error.js';\n\nexport const validateInput = (schema: Joi.ObjectSchema<any>, input: any) => {\n const { error, value } = schema.validate(input);\n if (error) {\n Logger.info('', { error });\n\n const httperr = HttpError.badRequest('Bad Request', {\n errors: error.details.map(detail => ({\n message: detail?.message,\n key: detail?.context?.key,\n path: detail?.path,\n }))\n });\n\n Logger.error('validation failure', { httperr });\n throw httperr;\n }\n return value;\n};", "\nexport const success = (body: any) => {\n return buildResponse(200, body);\n}\n\nconst defaultError = {\n message: 'internalServerError'\n}\n\nexport const failure = (error: any, statusCode = 500) => {\n statusCode = error?.statusCode ?? statusCode;\n\n let body = defaultError;\n if (error?.body) {\n body = error.body;\n }\n else if (error?.message) {\n body = { message: error.message };\n } else if (statusCode === 500) {\n body = defaultError;\n }\n return buildResponse(statusCode, body);\n}\n\nexport const buildResponse = (statusCode: number, body: any = {}) => {\n delete body.stack;\n return {\n statusCode: statusCode,\n headers: {\n 'Access-Control-Allow-Origin': '*',\n 'Access-Control-Allow-Credentials': true,\n 'cache-control': 'max-age=86400',\n Date: new Date(),\n 'Last-Modified': new Date(),\n 'Access-Control-Allow-Headers':\n 'Content-Type, Content-Encoding'\n },\n body: JSON.stringify(body),\n };\n}\n", "import { createHmac } from 'crypto';\nimport { Logger } from './logging-helper.js';\nimport { HttpError } from '../libs/http-error.js';\nimport { mapObjectToQueryString } from '../libs/url.js';\nexport interface ShopifyRequestValidationParameters {\n code: string,\n hmac?: string,\n shop: string,\n state: string,\n timestamp: string;\n}\n\nexport const isShopifyRequestValid = (validationParams: ShopifyRequestValidationParameters, validationHmac: string, shopifyAppApiSecret: string): boolean => {\n // remove hmac if it exists\n // map input to query string\n // generate hash using api secret key and validate it matches hmac\n delete validationParams.hmac;\n const hmacString = mapObjectToQueryString(validationParams);\n\n\n const generatedHash = createHmac('sha256', shopifyAppApiSecret)\n .update(hmacString)\n .digest('hex');\n\n return generatedHash === validationHmac;\n};\n\nexport const validateShopifyRequest = (validationParams: ShopifyRequestValidationParameters, validationHmac: string, shopifyAppApiSecret: string) => {\n Logger.info('Validating shopify request is authentic', { validationParams });\n const isValid = isShopifyRequestValid(validationParams, validationHmac as string, shopifyAppApiSecret);\n if (!isValid) {\n const message = 'Failed: Shopify Request hmac validation';\n Logger.error(message);\n throw HttpError.badRequest(message);\n }\n Logger.info('Sucess: Shopify Request hmac validation');\n return true;\n}\n\n", "// Record<string, string> is any object\r\nexport const mapObjectToQueryString = (inputObj: any): string => {\r\n const qsp = Object.entries(inputObj).sort((a, b) => a[ 0 ] < b[ 0 ] ? -1 : 1);\r\n const urlParams = new URLSearchParams();\r\n qsp.map(p => {\r\n urlParams.append(p[ 0 ], p[ 1 ] as string);\r\n });\r\n const qs = urlParams.toString();\r\n return qs;\r\n};", "import { Subscription } from './subscription';\n\nexport interface Account {\n id: string,\n accountName: string,\n companyName?: string,\n accountStatus: ACCOUNT_STATUS,\n primaryEmail: string,\n publicApiKey?: string,\n subscriptionId?: string,\n pixels?: Pixel[],\n subscription?: Subscription;\n ownerId?: string,\n createdAt: string,\n updatedAt: string;\n}\n\n\nexport interface Pixel {\n id: string;\n accountId: string;\n name: string;\n createdAt: string,\n updatedAt: string;\n}\n\nexport enum ACCOUNT_STATUS {\n PENDING = 'pending',\n ACTIVE = 'active',\n INACTIVE = 'inactive'\n}", "\r\nexport interface Destination {\r\n id: string,\r\n accountId: string,\r\n pixelId: string,\r\n destination: string;\r\n displayName?: string,\r\n enabled: boolean;\r\n configuration?: UserDestinationConfiguration,\r\n createdAt: string,\r\n updatedAt: string;\r\n}\r\n\r\nexport enum DESTINATIONS {\r\n FACEBOOK = 'facebook',\r\n TIKTOK = 'tiktok',\r\n GOOGLE_ADS = 'googleAds',\r\n GOOGLE_ANALYTICS_4 = 'googleAnalytics4',\r\n HUBSPOT = 'hubspot',\r\n WEBHOOK = 'webhook',\r\n CUSTOM_HTML = 'customHTML',\r\n CUSTOM_JS = 'customJS',\r\n SNAPCHAT = 'snapchat',\r\n TWITTER = 'twitter',\r\n REDDIT = 'reddit'\r\n}\r\n\r\nexport interface UserDestinationConfiguration {\r\n [ key: string ]: any;\r\n eventBlacklist?: string[];\r\n events?: EventConfiguration[];\r\n trigger?: DestinationTriggerConfiguration;\r\n}\r\n\r\nexport interface DestinationTriggerConfiguration {\r\n shopify?: ShopifyTriggerConfiguration;\r\n exludeDomains?: string[];\r\n excludePages?: string[];\r\n domains?: string[];\r\n pages?: string[];\r\n}\r\n\r\nexport interface ShopifyTriggerConfiguration {\r\n enabled: boolean;\r\n collections?: string[];\r\n tags?: string[];\r\n}\r\n\r\n\r\nexport interface EventConfiguration {\r\n sourceEventName: string;\r\n exclude?: boolean;\r\n sample: EventSampleConfiguration;\r\n transformations?: EventTransformation[];\r\n}\r\n\r\nexport interface EventTransformation {\r\n transformationEventName: string;\r\n enabled: boolean;\r\n}\r\n\r\nexport interface EventSampleConfiguration {\r\n enabled: boolean;\r\n rate: number;\r\n}\r\n\r\n", "import { Destination, UserDestinationConfiguration } from './destinations';\r\n\r\nexport interface AdTrackifyFacebookDestination extends Destination {\r\n configuration: FacebookPixelConfiguration;\r\n}\r\n\r\nexport interface AdTrackifyTikTokDestination extends Destination {\r\n configuration: TiktokPixelConfiguration;\r\n}\r\n\r\nexport interface AdTrackifyGoogleAnalytics4Destination extends Destination {\r\n configuration: GoogleAnalytics4Configuration;\r\n}\r\n\r\n// Destination Specific configurations below\r\nexport interface FacebookPixelConfiguration extends UserDestinationConfiguration {\r\n apiAccessToken?: string;\r\n enableConversionAPI: boolean;\r\n pixelId: string;\r\n}\r\n\r\nexport interface TiktokPixelConfiguration extends UserDestinationConfiguration {\r\n apiAccessToken?: string;\r\n enableConversionAPI: boolean;\r\n pixelId: string;\r\n}\r\n\r\nexport interface GoogleAnalytics4Configuration extends UserDestinationConfiguration {\r\n apiSecret: string;\r\n measurementId: string;\r\n}\r\n\r\nexport interface GoogleAdsConfiguration extends UserDestinationConfiguration {\r\n pixelId: string;\r\n conversionID: string;\r\n}\r\n\r\nexport interface HubspotPixelConfiguration extends UserDestinationConfiguration {\r\n hubspotId: string;\r\n}\r\n\r\nexport interface SnapchatPixelConfiguration extends UserDestinationConfiguration {\r\n snapchatPixelId: string;\r\n}\r\n\r\nexport interface TwitterPixelConfiguration extends UserDestinationConfiguration {\r\n twitterPixelId: string;\r\n}\r\n\r\nexport interface WebhookConfiguration extends UserDestinationConfiguration {\r\n webhookUrl: string;\r\n}\r\n\r\nexport interface CustomHTMLConfiguration extends UserDestinationConfiguration {\r\n html: string;\r\n location: CustomHTMLLocation;\r\n}\r\n\r\nexport interface CustomJSConfiguration extends UserDestinationConfiguration {\r\n script: string;\r\n async: boolean;\r\n defer: boolean;\r\n location: CustomHTMLLocation;\r\n}\r\n\r\nexport enum CustomHTMLLocation {\r\n HEADER = 'header',\r\n FOOTER = 'footer',\r\n BODY = 'body'\r\n}\r\n\r\n", "export interface ShopifyAppInstall {\n shopifyAppInstallId: string;\n shop: string;\n accessToken?: string;\n appStatus?: string;\n appSubscriptionStatus?: ShopifyAppSubscriptionStatus;\n code?: string;\n hmac?: string;\n host?: string;\n installRequest?: ShopifyInstallRequest;\n isAppEnabled?: boolean;\n pixelId?: string;\n shopInfo?: any;\n state?: string;\n timestamp?: number;\n createdAt: string;\n updatedAt: string;\n}\n\nexport enum ShopifyAppInstallStatus {\n STARTED = 'started',\n COMPLETED = 'completed',\n UNINSTALLED = 'uninstalled',\n FAILED = 'failed',\n NONE = 'none'\n}\nexport enum ShopifyAppSubscriptionStatus {\n ACTIVE = 'active', // approved and billed to shop\n CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation\n DECLINED = 'declined', // subscription declined by merchant\n EXPIRED = 'expired', //wasn't approved within two days of being created\n FROZEN = 'frozen', //on hold due to not payment\n PENDING = 'pending', // pending approval\n NOT_SUBMITTED = 'na' // billing has not yet been attempted\n}\n\nexport interface ShopifyInstallRequest {\n shop?: string;\n session?: string;\n hmac?: string;\n host?: string;\n nonce?: string;\n timestamp?: string;\n status?: string;\n}\n\nexport interface ShopifyStoreInfo {\n // TBD based on shopify api\n [ key: string ]: any;\n}", "\nexport interface Subscription {\n id: string,\n accountId?: string,\n shopifyAppInstallId?: string,\n shopifyDomain?: string,\n stripeCustomerId?: string,\n stripeSubscriptionId?: string,\n stripeCompletedCheckoutSession?: any;\n shopifyChargeId?: string;\n subscriptionPlan?: SubscriptionPlan,\n status?: SUBSCRIPTION_STATUS,\n paymentStatus?: PAYMENT_STATUS,\n paymentGateway?: PAYMENT_GATEWAY,\n createdAt: string,\n updatedAt: string,\n\n}\nexport interface SubscriptionPlan {\n id: number;\n planName: string;\n displayName: string;\n description: string;\n sku: string;\n price: string;\n displayPrice: string;\n billingFrequency: PLAN_BILLING_FREQUENCY;\n trialLengthDays?: number;\n trialRequiresCreditCard?: boolean;\n planDesc?: string[];\n unitPriceText?: string;\n isHighlighted?: boolean;\n isBanner?: boolean;\n bannerText?: string;\n bannerColor?: string;\n stripePriceId?: string;\n stripeProductId?: string;\n}\n\nexport enum PLAN_BILLING_FREQUENCY {\n MONTHLY = 'monthly',\n YEARLY = 'yearly'\n}\n\nexport enum PAYMENT_STATUS {\n CURRENT = 'current',\n PAST_DUE = 'past_due',\n CANCELLED = 'cancelled',\n FAILED = 'failed'\n}\n\nexport enum SUBSCRIPTION_STATUS {\n ACTIVE = 'active', // approved and billed to shop\n CANCELLED = 'cancelled', // cancelled, uninstalled or cancellation\n DECLINED = 'declined', // subscription declined by merchant\n EXPIRED = 'expired', //wasn't approved within two days of being created\n FROZEN = 'frozen', //on hold due to not payment\n PENDING = 'pending', // pending approval\n NOT_SUBMITTED = 'na' // billing has not yet been attempted\n}\nexport enum PAYMENT_GATEWAY {\n STRIPE = 'stripe',\n PAYPAL = 'paypal',\n SHOPIFY = 'shopify'\n}\n", "export interface LogContext {\n [x: string]: LogContextValue;\n}\n\nexport type LogContextValue = string | number | boolean | LogContext | LogContextArray | undefined | null;\n\nexport interface LogContextArray extends Array<LogContextValue> {}\n\nexport enum LogLevel {\n debug = 'debug',\n error = 'error',\n info = 'info',\n trace = 'trace',\n warn = 'warn',\n}\nexport const LogLevelId = {\n trace: 0,\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n};\n\nexport interface LogMessage {\n message: string;\n logLevel: LogLevel;\n context?: LogContext;\n}\n", "export enum ADTRACKIFY_STANDARD_EVENT {\n ADD_PAYMENT_INFO = 'add_payment_info',\n ADD_SHIPPING_INFO = 'add_shipping_info',\n ADD_TO_CART = 'add_to_cart',\n ADD_TO_WISHLIST = 'add_to_wishlist',\n // COMPLETE_REGISTRATION: 'complete_registration',\n // CONTACT: 'contact',\n INITIATE_CHECKOUT = 'initiate_checkout',\n LEAD = 'lead',\n LOGIN = 'login',\n PAGE_VIEW = 'page_view',\n PURCHASE = 'purchase',\n REFUND = 'refund',\n SEARCH = 'search',\n // START_TRIAL: 'start_trial',\n // SUBMIT_APPLICATION: 'submit_application',\n // SUBSCRIBE: 'subscribe',\n SIGN_UP = 'sign_up',\n VIEW_CART = 'view_cart',\n VIEW_CONTENT = 'view_content',\n\n //\n SELECT_SHIPPING_METHOD = 'select_shipping_method',\n VIRTUALIZED_VIEWED_PAYMENT_FORM = 'virtualized_viewd_payment_form',\n\n METRIC = 'metric',\n WEB_VITAL = 'web_vital',\n\n // LOG\n LOG = 'log',\n}\n", "import { ADTRACKIFY_STANDARD_EVENT } from '../adtrackify-standard-events';\nimport { ADTRACKIFY_EVENT_TYPE } from '../adtrackify-event-types';\nimport { AddressInfo } from '../common/address';\nimport { TrackingEventContext } from './tracking-event-context';\nimport { TrackingEventIdentity } from './tracking-event-identity';\nimport { LogMessage } from '../common/logger';\n\nexport interface Event {\n id: string;\n type: ADTRACKIFY_EVENT_TYPE;\n name: ADTRACKIFY_STANDARD_EVENT;\n pixelId: string;\n sentAtEpoch?: number;\n collectedAtEpoch?: number;\n collectedAt?: string;\n version: string;\n context?: TrackingEventContext;\n}\n\nexport interface TrackingEvent extends Event {\n identity?: TrackingEventIdentity;\n data?: TrackingEventData;\n testCode?: string;\n}\n\nexport interface MetricEvent extends Event {\n data: MetricEventData;\n}\n\nexport interface LogEvent extends Event {\n data: LogEventData;\n}\n\nexport interface TrackingEventData {\n [ key: string ]: any;\n firstName?: string;\n lastName?: string;\n email?: string;\n phone?: string;\n addresses?: AddressInfo[];\n cartId?: string;\n transactionId?: string;\n affiliation?: string;\n currency?: string;\n price?: number;\n subtotalPrice?: number;\n value?: number;\n tax?: number;\n shipping?: number;\n coupon?: string;\n paymentType?: string;\n shippingTier?: string;\n creativeName?: string;\n creativeSlot?: string;\n locationId?: string;\n promotionId?: string;\n promotionName?: string;\n items?: GenericContent[];\n}\n\nexport interface GenericContent {\n [ key: string ]: any;\n content_type?: string;\n id?: string;\n name?: string;\n sku?: string;\n brand?: string;\n variant?: string;\n coupon?: string;\n currency?: string;\n discount?: number;\n index?: number;\n value?: number;\n price?: number;\n quantity?: number;\n url?: string;\n locationId?: string;\n imageUrl?: string;\n category?: string;\n category2?: string;\n category3?: string;\n category4?: string;\n category5?: string;\n}\n\nexport interface LogEventData extends LogMessage { }\nexport interface MetricEventData {\n [ key: string ]: any;\n name: string;\n value: number;\n}\n\nexport const Currencies: string[] = [\n 'AED',\n 'ARS',\n 'AUD',\n 'BDT',\n 'BIF',\n 'BOB',\n 'BRL',\n 'CAD',\n 'CHF',\n 'CLP',\n 'CNY',\n 'COP',\n 'CRC',\n 'CZK',\n 'DKK',\n 'DZD',\n 'EGP',\n 'EUR',\n 'GBP',\n 'GTQ',\n 'HKD',\n 'HNL',\n 'HUF',\n 'IDR',\n 'ILS',\n 'INR',\n 'ISK',\n 'JPY',\n 'KES',\n 'KRW',\n 'KWD',\n 'KZT',\n 'MAD',\n 'MOP',\n 'MXN',\n 'MYR',\n 'NGN',\n 'NIO',\n 'NOK',\n 'NZD',\n 'PEN',\n 'PHP',\n 'PKR',\n 'PLN',\n 'PYG',\n 'QAR',\n 'RON',\n 'RUB',\n 'SAR',\n 'SEK',\n 'SGD',\n 'THB',\n 'TRY',\n 'TWD',\n 'USD',\n 'VES',\n 'VND',\n 'ZAR',\n];\n", "export enum ADTRACKIFY_EVENT_TYPE {\n TRACKING = 'tracking',\n METRIC = 'metric',\n IDENTIFY = 'identify',\n LOG = 'log',\n}\n", "import { SubscriptionPlan, PLAN_BILLING_FREQUENCY } from '@adtrackify/at-tracking-event-types';\n\nexport const StripeBillingMap: any = {\n dev2: {\n 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',\n 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',\n 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',\n 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',\n 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'\n },\n qa2: {\n 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',\n 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',\n 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',\n 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',\n 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'\n },\n prod2: {\n 'free': 'price_1KAFsIK7krGh4037RsaAYMEl',\n 'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',\n 'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',\n 'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',\n 'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',\n 'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',\n 'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'\n },\n dev: {\n 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',\n 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',\n 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',\n 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',\n 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'\n },\n qa: {\n 'free': 'price_1JzjbKK7krGh4037ezNbGJEm',\n 'starter_monthly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'starter_yearly': 'price_1JwzsGK7krGh4037Li0hPpsZ',\n 'scale_monthly': 'price_1JzjcSK7krGh4037yh34LPk3',\n 'scale_yearly': 'price_1JzjcSK7krGh4037QiBJYfnD',\n 'growth_monthly': 'price_1Jzje1K7krGh4037KErHBp5N',\n 'growth_yearly': 'price_1Jzje1K7krGh4037MhCUhTDh'\n },\n prod: {\n 'free': 'price_1KAFsIK7krGh4037RsaAYMEl',\n 'starter_monthly': 'price_1KAFsMK7krGh4037Lz3P0ksU',\n 'starter_yearly': 'price_1KAFsMK7krGh4037Dj1WmSi8',\n 'scale_monthly': 'price_1KAFrxK7krGh4037zWCdaTly',\n 'scale_yearly': 'price_1KAFrxK7krGh40375fhymyWP',\n 'growth_monthly': 'price_1KAFs7K7krGh4037JChjz5Cr',\n 'growth_yearly': 'price_1KAFs7K7krGh4037rZElg12s'\n }\n};\n\nexport const CommonPlanInfo = [\n //'60-day Risk Free Trial',\n 'Free Server Side Tracking & Conversion API',\n 'MultiPixel Support (Multiple facebook, tiktok, etc)',\n 'Corrects Facebook Conversion Tracking post IOS14',\n 'Increase ROAS & Attribution Data',\n 'Enhanced Fingerprinting & Identity Resolution',\n 'Unlimited Integrations',\n 'Advanced Integrations (Webhooks, Custom JS/HTML, Hubspot)'\n];\n\nexport const SubscriptionPlanSeedItems: {\n items: SubscriptionPlan[];\n} = {\n items: [ {\n id: 1,\n planName: 'free',\n displayName: 'Free',\n sku: 'ADT-001',\n description: 'Free Plan - Monthly',\n price: '0',\n displayPrice: '$0',\n billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,\n trialLengthDays: 0,\n trialRequiresCreditCard: false,\n planDesc: [\n ...CommonPlanInfo,\n 'Free Up to 500 orders/month (50,000 events)*'\n ],\n unitPriceText: 'try now - free forever',\n isHighlighted: false,\n isBanner: false\n },\n // STARTER PLANS\n {\n id: 2,\n planName: 'starter_monthly',\n displayName: 'Starter',\n sku: 'ADT-002',\n description: 'Starter Plan - Monthly',\n price: '79.99',\n displayPrice: '$79.99',\n billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,\n trialLengthDays: 60,\n trialRequiresCreditCard: false,\n planDesc: [\n '60-day Risk Free Trial',\n ...CommonPlanInfo,\n 'Up to 2,000 orders/month (250,000 events)*'\n ],\n isHighlighted: true,\n isBanner: true,\n bannerColor: 'blue',\n bannerText: 'MOST POPULAR'\n }, {\n id: 3,\n planName: 'starter_yearly',\n displayName: 'Starter',\n sku: 'ADT-003',\n description: 'Starter Plan - Yearly',\n price: '767.90',\n displayPrice: '$63.99',\n billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,\n trialLengthDays: 30,\n trialRequiresCreditCard: false,\n planDesc: [\n '60-day Risk Free Trial',\n ...CommonPlanInfo,\n 'Up to 2,000 orders/month (250,000 events)*'\n ],\n unitPriceText: 'billed yearly ($767.90) - 20% savings',\n isHighlighted: true,\n isBanner: true,\n bannerColor: 'blue',\n bannerText: 'MOST POPULAR'\n },\n // SCALE PLANS\n {\n id: 4,\n planName: 'scale_monthly',\n displayName: 'Scale',\n sku: 'ADT-004',\n description: 'Scale Plan - Monthly',\n price: '199.99',\n displayPrice: '$199.99',\n billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,\n trialLengthDays: 60,\n trialRequiresCreditCard: false,\n planDesc: [\n '60-day Risk Free Trial',\n ...CommonPlanInfo,\n 'Up to 7,500 orders/month (750,000 events)*'\n ],\n unitPriceText: '',\n isHighlighted: false,\n isBanner: false\n }, {\n id: 5,\n planName: 'scale_yearly',\n displayName: 'Scale',\n sku: 'ADT-005',\n description: 'Scale Plan - Yearly',\n price: '1823.91',\n displayPrice: '$151.99',\n billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,\n trialLengthDays: 60,\n trialRequiresCreditCard: false,\n planDesc: [\n '60-day Risk Free Trial',\n ...CommonPlanInfo,\n 'Up to 7,500 orders/month (750,000 events)*'\n ],\n unitPriceText: 'billed yearly ($1823.91) - 24% savings',\n isHighlighted: false,\n isBanner: false\n },\n // // GROWTH PLANS\n // {\n // id: 6,\n // planName: 'growth_monthly',\n // displayName: 'Growth',\n // sku: 'ADT-006',\n // description: 'Growth Plan - Monthly',\n // price: '199.99',\n // displayPrice: '$199.99',\n // billingFrequency: PLAN_BILLING_FREQUENCY.MONTHLY,\n // trialLengthDays: 60,\n // trialRequiresCreditCard: false,\n // planDesc: [\n // '60-day Risk Free Trial',\n // ...CommonPlanInfo,\n // '250,000 tracking events/mo'\n // ],\n // unitPriceText: 'billed yearly ($540) - 25% savings',\n // isHighlighted: false,\n // isBanner: true,\n // bannerColor: 'orange',\n // bannerText: 'BEST VALUE'\n // }, {\n // id: 7,\n // planName: 'growth_yearly',\n // displayName: 'Growth',\n // sku: 'ADT-007',\n // description: 'Growth Plan - Yearly',\n // price: '1799.91',\n // displayPrice: '$149.99',\n // billingFrequency: PLAN_BILLING_FREQUENCY.YEARLY,\n // trialLengthDays: 60,\n // trialRequiresCreditCard: false,\n // planDesc: [\n // '30-day Risk Free Trial',\n // 'Fixes IOS14.5 tracking',\n // 'Multi Pixel Support',\n // 'Enhanced Tracking / Attribution',\n // 'Unlimited Facebook Conversion API',\n // 'Unlimited Integrations',\n // 'Easy no code setup',\n // '100,000 tracking events/mo'\n // ],\n // unitPriceText: 'billed yearly ($1799.91) - 25% savings',\n // isHighlighted: false,\n // isBanner: true,\n // bannerColor: 'orange',\n // bannerText: 'BEST VALUE'\n // },\n ]\n};\n\n\nexport const getPlanDetails = (planId: number, stage: string) => {\n const plan = SubscriptionPlanSeedItems.items.filter(x => x.id === planId)[ 0 ] as any;\n plan.stripePriceId = StripeBillingMap[ stage ][ plan.planName ];\n return plan as SubscriptionPlan;\n};\n\nexport const getPlanByStripePriceId = (stripePriceId: string, stage: string) => {\n const stripePriceIds = StripeBillingMap[ stage ];\n const planName = Object.keys(stripePriceIds).find(key => stripePriceIds[ key ] === stripePriceId);\n\n const plan = SubscriptionPlanSeedItems.items.filter(x => x.planName === planName)[ 0 ] as any;\n plan.stripePriceId = stripePriceId;\n\n return plan as SubscriptionPlan;\n};", "import crypto from 'crypto';\n\nexport const generatePublicKey = (): string => {\n const publicKey = crypto.randomBytes(26);\n return publicKey.toString('utf8');\n};", "export interface ReferrerData {\n [ source: string ]: {\n [ medium: string ]: {\n domains: string[],\n parameters?: string[];\n };\n\n };\n}\n\nexport const REFERRER_DATA: ReferrerData = {\n 'unknown': {\n 'Google': {\n 'domains': [\n 'support.google.com',\n 'developers.google.com',\n 'maps.google.com',\n 'accounts.google.com',\n 'drive.google.com',\n 'sites.google.com',\n 'groups.google.com',\n 'groups.google.co.uk'\n ]\n },\n 'Yandex Maps': {\n 'domains': [\n 'maps.yandex.ru',\n 'maps.yandex.ua',\n 'maps.yandex.com',\n 'maps.yandex.by',\n 'n.maps.yandex.ru'\n ],\n 'parameters': [\n 'text'\n ]\n },\n 'Yahoo!': {\n 'domains': [\n 'finance.yahoo.com',\n 'news.yahoo.com',\n 'eurosport.yahoo.com',\n 'sports.yahoo.com',\n 'astrology.yahoo.com',\n 'travel.yahoo.com',\n 'answers.yahoo.com',\n 'screen.yahoo.com',\n 'weather.yahoo.com',\n 'messenger.yahoo.com',\n 'games.yahoo.com',\n 'shopping.yahoo.net',\n 'movies.yahoo.com',\n 'cars.yahoo.com',\n 'lifestyle.yahoo.com',\n 'omg.yahoo.com',\n 'match.yahoo.net'\n ]\n }\n },\n 'search': {\n 'TalkTalk': {\n 'domains': [\n 'www.talktalk.co.uk'\n ],\n 'parameters': [\n 'query'\n ]\n },\n '1.cz': {\n 'domains': [\n '1.cz'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Softonic': {\n 'domains': [\n 'search.softonic.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'GAIS': {\n 'domains': [\n 'gais.cs.ccu.edu.tw'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Freecause': {\n 'domains': [\n 'search.freecause.com'\n ],\n 'parameters': [\n 'p'\n ]\n },\n '360.cn': {\n 'domains': [\n 'so.360.cn',\n 'www.so.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'RPMFind': {\n 'domains': [\n 'rpmfind.net',\n 'fr2.rpmfind.net'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Comcast': {\n 'domains': [\n 'serach.comcast.net'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Voila': {\n 'domains': [\n 'search.ke.voila.fr',\n 'www.lemoteur.fr'\n ],\n 'parameters': [\n 'rdata',\n 'kw'\n ]\n },\n 'Nifty': {\n 'domains': [\n 'search.nifty.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Atlas': {\n 'domains': [\n 'searchatlas.centrum.cz'\n ],\n 'parameters': [\n 'q'\n ]\n },\n '2gis': {\n 'domains': [\n '2gis.ru',\n 'www.2gis.ru',\n 'link.2gis.ru',\n 'www.link.2gis.ru'\n ]\n },\n 'Lo.st': {\n 'domains': [\n 'lo.st'\n ],\n 'parameters': [\n 'x_query'\n ]\n },\n 'DasTelefonbuch': {\n 'domains': [\n 'www1.dastelefonbuch.de'\n ],\n 'parameters': [\n 'kw'\n ]\n },\n 'Fireball': {\n 'domains': [\n 'www.fireball.de'\n ],\n 'parameters': [\n 'q'\n ]\n },\n '1und1': {\n 'domains': [\n 'search.1und1.de'\n ],\n 'parameters': [\n 'su'\n ]\n },\n 'Virgilio': {\n 'domains': [\n 'ricerca.virgilio.it',\n 'ricercaimmagini.virgilio.it',\n 'ricercavideo.virgilio.it',\n 'ricercanews.virgilio.it',\n 'mobile.virgilio.it'\n ],\n 'parameters': [\n 'qs'\n ]\n },\n 'Telstra': {\n 'domains': [\n 'search.media.telstra.com.au'\n ],\n 'parameters': [\n 'find'\n ]\n },\n 'Web.nl': {\n 'domains': [\n 'www.web.nl'\n ],\n 'parameters': [\n 'zoekwoord'\n ]\n },\n 'Plazoo': {\n 'domains': [\n 'www.plazoo.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Goyellow.de': {\n 'domains': [\n 'www.goyellow.de'\n ],\n 'parameters': [\n 'MDN'\n ]\n },\n 'AOL': {\n 'domains': [\n 'search.aol.com',\n 'search.aol.it',\n 'aolsearch.aol.com',\n 'aolsearch.com',\n 'www.aolrecherche.aol.fr',\n 'www.aolrecherches.aol.fr',\n 'www.aolimages.aol.fr',\n 'aim.search.aol.com',\n 'www.recherche.aol.fr',\n 'recherche.aol.fr',\n 'find.web.aol.com',\n 'recherche.aol.ca',\n 'aolsearch.aol.co.uk',\n 'search.aol.co.uk',\n 'aolrecherche.aol.fr',\n 'sucheaol.aol.de',\n 'suche.aol.de',\n 'suche.aolsvc.de',\n 'aolbusqueda.aol.com.mx',\n 'alicesuche.aol.de',\n 'alicesuchet.aol.de',\n 'suchet2.aol.de',\n 'search.hp.my.aol.com.au',\n 'search.hp.my.aol.de',\n 'search.hp.my.aol.it',\n 'search-intl.netscape.com'\n ],\n 'parameters': [\n 'q',\n 'query'\n ]\n },\n 'Acoon': {\n 'domains': [\n 'www.acoon.de'\n ],\n 'parameters': [\n 'begriff'\n ]\n },\n 'Free': {\n 'domains': [\n 'search.free.fr',\n 'search1-2.free.fr',\n 'search1-1.free.fr'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Apollo Latvia': {\n 'domains': [\n 'apollo.lv/portal/search/'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'HighBeam': {\n 'domains': [\n 'www.highbeam.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'I-play': {\n 'domains': [\n 'start.iplay.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'FriendFeed': {\n 'domains': [\n 'friendfeed.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Yasni': {\n 'domains': [\n 'www.yasni.de',\n 'www.yasni.com',\n 'www.yasni.co.uk',\n 'www.yasni.ch',\n 'www.yasni.at'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Gigablast': {\n 'domains': [\n 'www.gigablast.com',\n 'dir.gigablast.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Arcor': {\n 'domains': [\n 'www.arcor.de'\n ],\n 'parameters': [\n 'Keywords'\n ]\n },\n 'arama': {\n 'domains': [\n 'arama.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Fixsuche': {\n 'domains': [\n 'www.fixsuche.de'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Apontador': {\n 'domains': [\n 'apontador.com.br',\n 'www.apontador.com.br'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Search.com': {\n 'domains': [\n 'www.search.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Monstercrawler': {\n 'domains': [\n 'www.monstercrawler.com'\n ],\n 'parameters': [\n 'qry'\n ]\n },\n 'Google Images': {\n 'domains': [\n 'google.ac/imgres',\n 'google.ad/imgres',\n 'google.ae/imgres',\n 'google.am/imgres',\n 'google.as/imgres',\n 'google.at/imgres',\n 'google.az/imgres',\n 'google.ba/imgres',\n 'google.be/imgres',\n 'google.bf/imgres',\n 'google.bg/imgres',\n 'google.bi/imgres',\n 'google.bj/imgres',\n 'google.bs/imgres',\n 'google.by/imgres',\n 'google.ca/imgres',\n 'google.cat/imgres',\n 'google.cc/imgres',\n 'google.cd/imgres',\n 'google.cf/imgres',\n 'google.cg/imgres',\n 'google.ch/imgres',\n 'google.ci/imgres',\n 'google.cl/imgres',\n 'google.cm/imgres',\n 'google.cn/imgres',\n 'google.co.bw/imgres',\n 'google.co.ck/imgres',\n 'google.co.cr/imgres',\n 'google.co.id/imgres',\n 'google.co.il/imgres',\n 'google.co.in/imgres',\n 'google.co.jp/imgres',\n 'google.co.ke/imgres',\n 'google.co.kr/imgres',\n 'google.co.ls/imgres',\n 'google.co.ma/imgres',\n 'google.co.mz/imgres',\n 'google.co.nz/imgres',\n 'google.co.th/imgres',\n 'google.co.tz/imgres',\n 'google.co.ug/imgres',\n 'google.co.uk/imgres',\n 'google.co.uz/imgres',\n 'google.co.ve/imgres',\n 'google.co.vi/imgres',\n 'google.co.za/imgres',\n 'google.co.zm/imgres',\n 'google.co.zw/imgres',\n 'google.com/imgres',\n 'google.com.af/imgres',\n 'google.com.ag/imgres',\n 'google.com.ai/imgres',\n 'google.com.ar/imgres',\n 'google.com.au/imgres',\n 'google.com.bd/imgres',\n 'google.com.bh/imgres',\n 'google.com.bn/imgres',\n 'google.com.bo/imgres',\n 'google.com.br/imgres',\n 'google.com.by/imgres',\n 'google.com.bz/imgres',\n 'google.com.co/imgres',\n 'google.com.cu/imgres',\n 'google.com.cy/imgres',\n 'google.com.do/imgres',\n 'google.com.ec/imgres',\n 'google.com.eg/imgres',\n 'google.com.et/imgres',\n 'google.com.fj/imgres',\n 'google.com.gh/imgres',\n 'google.com.gi/imgres',\n 'google.com.gt/imgres',\n 'google.com.hk/imgres',\n 'google.com.jm/imgres',\n 'google.com.kh/imgres',\n 'google.com.kw/imgres',\n 'google.com.lb/imgres',\n 'google.com.lc/imgres',\n 'google.com.ly/imgres',\n 'google.com.mt/imgres',\n 'google.com.mx/imgres',\n 'google.com.my/imgres',\n 'google.com.na/imgres',\n 'google.com.nf/imgres',\n 'google.com.ng/imgres',\n 'google.com.ni/imgres',\n 'google.com.np/imgres',\n 'google.com.om/imgres',\n 'google.com.pa/imgres',\n 'google.com.pe/imgres',\n 'google.com.ph/imgres',\n 'google.com.pk/imgres',\n 'google.com.pr/imgres',\n 'google.com.py/imgres',\n 'google.com.qa/imgres',\n 'google.com.sa/imgres',\n 'google.com.sb/imgres',\n 'google.com.sg/imgres',\n 'google.com.sl/imgres',\n 'google.com.sv/imgres',\n 'google.com.tj/imgres',\n 'google.com.tn/imgres',\n 'google.com.tr/imgres',\n 'google.com.tw/imgres',\n 'google.com.ua/imgres',\n 'google.com.uy/imgres',\n 'google.com.vc/imgres',\n 'google.com.vn/imgres',\n 'google.cv/imgres',\n 'google.cz/imgres',\n 'google.de/imgres',\n 'google.dj/imgres',\n 'google.dk/imgres',\n 'google.dm/imgres',\n 'google.dz/imgres',\n 'google.ee/imgres',\n 'google.es/imgres',\n 'google.fi/imgres',\n 'google.fm/imgres',\n 'google.fr/imgres',\n 'google.ga/imgres',\n 'google.gd/imgres',\n 'google.ge/imgres',\n 'google.gf/imgres',\n 'google.gg/imgres',\n 'google.gl/imgres',\n 'google.gm/imgres',\n 'google.gp/imgres',\n 'google.gr/imgres',\n 'google.gy/imgres',\n 'google.hn/imgres',\n 'google.hr/imgres',\n 'google.ht/imgres',\n 'google.hu/imgres',\n 'google.ie/imgres',\n 'google.im/imgres',\n 'google.io/imgres',\n 'google.iq/imgres',\n 'google.is/imgres',\n 'google.it/imgres',\n 'google.it.ao/imgres',\n 'google.je/imgres',\n 'google.jo/imgres',\n 'google.kg/imgres',\n 'google.ki/imgres',\n 'google.kz/imgres',\n 'google.la/imgres',\n 'google.li/imgres',\n 'google.lk/imgres',\n 'google.lt/imgres',\n 'google.lu/imgres',\n 'google.lv/imgres',\n 'google.md/imgres',\n 'google.me/imgres',\n 'google.mg/imgres',\n 'google.mk/imgres',\n 'google.ml/imgres',\n 'google.mn/imgres',\n 'google.ms/imgres',\n 'google.mu/imgres',\n 'google.mv/imgres',\n 'google.mw/imgres',\n 'google.ne/imgres',\n 'google.nl/imgres',\n 'google.no/imgres',\n 'google.nr/imgres',\n 'google.nu/imgres',\n 'google.pl/imgres',\n 'google.pn/imgres',\n 'google.ps/imgres',\n 'google.pt/imgres',\n 'google.ro/imgres',\n 'google.rs/imgres',\n 'google.ru/imgres',\n 'google.rw/imgres',\n 'google.sc/imgres',\n 'google.se/imgres',\n 'google.sh/imgres',\n 'google.si/imgres',\n 'google.sk/imgres',\n 'google.sm/imgres',\n 'google.sn/imgres',\n 'google.so/imgres',\n 'google.st/imgres',\n 'google.td/imgres',\n 'google.tg/imgres',\n 'google.tk/imgres',\n 'google.tl/imgres',\n 'google.tm/imgres',\n 'google.to/imgres',\n 'google.tt/imgres',\n 'google.us/imgres',\n 'google.vg/imgres',\n 'google.vu/imgres',\n 'images.google.ws',\n 'images.google.ac',\n 'images.google.ad',\n 'images.google.ae',\n 'images.google.am',\n 'images.google.as',\n 'images.google.at',\n 'images.google.az',\n 'images.google.ba',\n 'images.google.be',\n 'images.google.bf',\n 'images.google.bg',\n 'images.google.bi',\n 'images.google.bj',\n 'images.google.bs',\n 'images.google.by',\n 'images.google.ca',\n 'images.google.cat',\n 'images.google.cc',\n 'images.google.cd',\n 'images.google.cf',\n 'images.google.cg',\n 'images.google.ch',\n 'images.google.ci',\n 'images.google.cl',\n 'images.google.cm',\n 'images.google.cn',\n 'images.google.co.bw',\n 'images.google.co.ck',\n 'images.google.co.cr',\n 'images.google.co.id',\n 'images.google.co.il',\n 'images.google.co.in',\n 'images.google.co.jp',\n 'images.google.co.ke',\n 'images.google.co.kr',\n 'images.google.co.ls',\n 'images.google.co.ma',\n 'images.google.co.mz',\n 'images.google.co.nz',\n 'images.google.co.th',\n 'images.google.co.tz',\n 'images.google.co.ug',\n 'images.google.co.uk',\n 'images.google.co.uz',\n 'images.google.co.ve',\n 'images.google.co.vi',\n 'images.google.co.za',\n 'images.google.co.zm',\n 'images.google.co.zw',\n 'images.google.com',\n 'images.google.com.af',\n 'images.google.com.ag',\n 'images.google.com.ai',\n 'images.google.com.ar',\n 'images.google.com.au',\n 'images.google.com.bd',\n 'images.google.com.bh',\n 'images.google.com.bn',\n 'images.google.com.bo',\n 'images.google.com.br',\n 'images.google.com.by',\n 'images.google.com.bz',\n 'images.google.com.co',\n 'images.google.com.cu',\n 'images.google.com.cy',\n 'images.google.com.do',\n 'images.google.com.ec',\n 'images.google.com.eg',\n 'images.google.com.et',\n 'images.google.com.fj',\n 'images.google.com.gh',\n 'images.google.com.gi',\n 'images.google.com.gt',\n 'images.google.com.hk',\n 'images.google.com.jm',\n 'images.google.com.kh',\n 'images.google.com.kw',\n 'images.google.com.lb',\n 'images.google.com.lc',\n 'images.google.com.ly',\n 'images.google.com.mt',\n 'images.google.com.mx',\n 'images.google.com.my',\n 'images.google.com.na',\n 'images.google.com.nf',\n 'images.google.com.ng',\n 'images.google.com.ni',\n 'images.google.com.np',\n 'images.google.com.om',\n 'images.google.com.pa',\n 'images.google.com.pe',\n 'images.google.com.ph',\n 'images.google.com.pk',\n 'images.google.com.pr',\n 'images.google.com.py',\n 'images.google.com.qa',\n 'images.google.com.sa',\n 'images.google.com.sb',\n 'images.google.com.sg',\n 'images.google.com.sl',\n 'images.google.com.sv',\n 'images.google.com.tj',\n 'images.google.com.tn',\n 'images.google.com.tr',\n 'images.google.com.tw',\n 'images.google.com.ua',\n 'images.google.com.uy',\n 'images.google.com.vc',\n 'images.google.com.vn',\n 'images.google.cv',\n 'images.google.cz',\n 'images.google.de',\n 'images.google.dj',\n 'images.google.dk',\n 'images.google.dm',\n 'images.google.dz',\n 'images.google.ee',\n 'images.google.es',\n 'images.google.fi',\n 'images.google.fm',\n 'images.google.fr',\n 'images.google.ga',\n 'images.google.gd',\n 'images.google.ge',\n 'images.google.gf',\n 'images.google.gg',\n 'images.google.gl',\n 'images.google.gm',\n 'images.google.gp',\n 'images.google.gr',\n 'images.google.gy',\n 'images.google.hn',\n 'images.google.hr',\n 'images.google.ht',\n 'images.google.hu',\n 'images.google.ie',\n 'images.google.im',\n 'images.google.io',\n 'images.google.iq',\n 'images.google.is',\n 'images.google.it',\n 'images.google.it.ao',\n 'images.google.je',\n 'images.google.jo',\n 'images.google.kg',\n 'images.google.ki',\n 'images.google.kz',\n 'images.google.la',\n 'images.google.li',\n 'images.google.lk',\n 'images.google.lt',\n 'images.google.lu',\n 'images.google.lv',\n 'images.google.md',\n 'images.google.me',\n 'images.google.mg',\n 'images.google.mk',\n 'images.google.ml',\n 'images.google.mn',\n 'images.google.ms',\n 'images.google.mu',\n 'images.google.mv',\n 'images.google.mw',\n 'images.google.ne',\n 'images.google.nl',\n 'images.google.no',\n 'images.google.nr',\n 'images.google.nu',\n 'images.google.pl',\n 'images.google.pn',\n 'images.google.ps',\n 'images.google.pt',\n 'images.google.ro',\n 'images.google.rs',\n 'images.google.ru',\n 'images.google.rw',\n 'images.google.sc',\n 'images.google.se',\n 'images.google.sh',\n 'images.google.si',\n 'images.google.sk',\n 'images.google.sm',\n 'images.google.sn',\n 'images.google.so',\n 'images.google.st',\n 'images.google.td',\n 'images.google.tg',\n 'images.google.tk',\n 'images.google.tl',\n 'images.google.tm',\n 'images.google.to',\n 'images.google.tt',\n 'images.google.us',\n 'images.google.vg',\n 'images.google.vu'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'ABCs\u00F8k': {\n 'domains': [\n 'abcsolk.no',\n 'verden.abcsok.no'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Google Product Search': {\n 'domains': [\n 'google.ac/products',\n 'google.ad/products',\n 'google.ae/products',\n 'google.am/products',\n 'google.as/products',\n 'google.at/products',\n 'google.az/products',\n 'google.ba/products',\n 'google.be/products',\n 'google.bf/products',\n 'google.bg/products',\n 'google.bi/products',\n 'google.bj/products',\n 'google.bs/products',\n 'google.by/products',\n 'google.ca/products',\n 'google.cat/products',\n 'google.cc/products',\n 'google.cd/products',\n 'google.cf/products',\n 'google.cg/products',\n 'google.ch/products',\n 'google.ci/products',\n 'google.cl/products',\n 'google.cm/products',\n 'google.cn/products',\n 'google.co.bw/products',\n 'google.co.ck/products',\n 'google.co.cr/products',\n 'google.co.id/products',\n 'google.co.il/products',\n 'google.co.in/products',\n 'google.co.jp/products',\n 'google.co.ke/products',\n 'google.co.kr/products',\n 'google.co.ls/products',\n 'google.co.ma/products',\n 'google.co.mz/products',\n 'google.co.nz/products',\n 'google.co.th/products',\n 'google.co.tz/products',\n 'google.co.ug/products',\n 'google.co.uk/products',\n 'google.co.uz/products',\n 'google.co.ve/products',\n 'google.co.vi/products',\n 'google.co.za/products',\n 'google.co.zm/products',\n 'google.co.zw/products',\n 'google.com/products',\n 'google.com.af/products',\n 'google.com.ag/products',\n 'google.com.ai/products',\n 'google.com.ar/products',\n 'google.com.au/products',\n 'google.com.bd/products',\n 'google.com.bh/products',\n 'google.com.bn/products',\n 'google.com.bo/products',\n 'google.com.br/products',\n 'google.com.by/products',\n 'google.com.bz/products',\n 'google.com.co/products',\n 'google.com.cu/products',\n 'google.com.cy/products',\n 'google.com.do/products',\n 'google.com.ec/products',\n 'google.com.eg/products',\n 'google.com.et/products',\n 'google.com.fj/products',\n 'google.com.gh/products',\n 'google.com.gi/products',\n 'google.com.gt/products',\n 'google.com.hk/products',\n 'google.com.jm/products',\n 'google.com.kh/products',\n 'google.com.kw/products',\n 'google.com.lb/products',\n 'google.com.lc/products',\n 'google.com.ly/products',\n 'google.com.mt/products',\n 'google.com.mx/products',\n 'google.com.my/products',\n 'google.com.na/products',\n 'google.com.nf/products',\n 'google.com.ng/products',\n 'google.com.ni/products',\n 'google.com.np/products',\n 'google.com.om/products',\n 'google.com.pa/products',\n 'google.com.pe/products',\n 'google.com.ph/products',\n 'google.com.pk/products',\n 'google.com.pr/products',\n 'google.com.py/products',\n 'google.com.qa/products',\n 'google.com.sa/products',\n 'google.com.sb/products',\n 'google.com.sg/products',\n 'google.com.sl/products',\n 'google.com.sv/products',\n 'google.com.tj/products',\n 'google.com.tn/products',\n 'google.com.tr/products',\n 'google.com.tw/products',\n 'google.com.ua/products',\n 'google.com.uy/products',\n 'google.com.vc/products',\n 'google.com.vn/products',\n 'google.cv/products',\n 'google.cz/products',\n 'google.de/products',\n 'google.dj/products',\n 'google.dk/products',\n 'google.dm/products',\n 'google.dz/products',\n 'google.ee/products',\n 'google.es/products',\n 'google.fi/products',\n 'google.fm/products',\n 'google.fr/products',\n 'google.ga/products',\n 'google.gd/products',\n 'google.ge/products',\n 'google.gf/products',\n 'google.gg/products',\n 'google.gl/products',\n 'google.gm/products',\n 'google.gp/products',\n 'google.gr/products',\n 'google.gy/products',\n 'google.hn/products',\n 'google.hr/products',\n 'google.ht/products',\n 'google.hu/products',\n 'google.ie/products',\n 'google.im/products',\n 'google.io/products',\n 'google.iq/products',\n 'google.is/products',\n 'google.it/products',\n 'google.it.ao/products',\n 'google.je/products',\n 'google.jo/products',\n 'google.kg/products',\n 'google.ki/products',\n 'google.kz/products',\n 'google.la/products',\n 'google.li/products',\n 'google.lk/products',\n 'google.lt/products',\n 'google.lu/products',\n 'google.lv/products',\n 'google.md/products',\n 'google.me/products',\n 'google.mg/products',\n 'google.mk/products',\n 'google.ml/products',\n 'google.mn/products',\n 'google.ms/products',\n 'google.mu/products',\n 'google.mv/products',\n 'google.mw/products',\n 'google.ne/products',\n 'google.nl/products',\n 'google.no/products',\n 'google.nr/products',\n 'google.nu/products',\n 'google.pl/products',\n 'google.pn/products',\n 'google.ps/products',\n 'google.pt/products',\n 'google.ro/products',\n 'google.rs/products',\n 'google.ru/products',\n 'google.rw/products',\n 'google.sc/products',\n 'google.se/products',\n 'google.sh/products',\n 'google.si/products',\n 'google.sk/products',\n 'google.sm/products',\n 'google.sn/products',\n 'google.so/products',\n 'google.st/products',\n 'google.td/products',\n 'google.tg/products',\n 'google.tk/products',\n 'google.tl/products',\n 'google.tm/products',\n 'google.to/products',\n 'google.tt/products',\n 'google.us/products',\n 'google.vg/products',\n 'google.vu/products',\n 'google.ws/products',\n 'www.google.ac/products',\n 'www.google.ad/products',\n 'www.google.ae/products',\n 'www.google.am/products',\n 'www.google.as/products',\n 'www.google.at/products',\n 'www.google.az/products',\n 'www.google.ba/products',\n 'www.google.be/products',\n 'www.google.bf/products',\n 'www.google.bg/products',\n 'www.google.bi/products',\n 'www.google.bj/products',\n 'www.google.bs/products',\n 'www.google.by/products',\n 'www.google.ca/products',\n 'www.google.cat/products',\n 'www.google.cc/products',\n 'www.google.cd/products',\n 'www.google.cf/products',\n 'www.google.cg/products',\n 'www.google.ch/products',\n 'www.google.ci/products',\n 'www.google.cl/products',\n 'www.google.cm/products',\n 'www.google.cn/products',\n 'www.google.co.bw/products',\n 'www.google.co.ck/products',\n 'www.google.co.cr/products',\n 'www.google.co.id/products',\n 'www.google.co.il/products',\n 'www.google.co.in/products',\n 'www.google.co.jp/products',\n 'www.google.co.ke/products',\n 'www.google.co.kr/products',\n 'www.google.co.ls/products',\n 'www.google.co.ma/products',\n 'www.google.co.mz/products',\n 'www.google.co.nz/products',\n 'www.google.co.th/products',\n 'www.google.co.tz/products',\n 'www.google.co.ug/products',\n 'www.google.co.uk/products',\n 'www.google.co.uz/products',\n 'www.google.co.ve/products',\n 'www.google.co.vi/products',\n 'www.google.co.za/products',\n 'www.google.co.zm/products',\n 'www.google.co.zw/products',\n 'www.google.com/products',\n 'www.google.com.af/products',\n 'www.google.com.ag/products',\n 'www.google.com.ai/products',\n 'www.google.com.ar/products',\n 'www.google.com.au/products',\n 'www.google.com.bd/products',\n 'www.google.com.bh/products',\n 'www.google.com.bn/products',\n 'www.google.com.bo/products',\n 'www.google.com.br/products',\n 'www.google.com.by/products',\n 'www.google.com.bz/products',\n 'www.google.com.co/products',\n 'www.google.com.cu/products',\n 'www.google.com.cy/products',\n 'www.google.com.do/products',\n 'www.google.com.ec/products',\n 'www.google.com.eg/products',\n 'www.google.com.et/products',\n 'www.google.com.fj/products',\n 'www.google.com.gh/products',\n 'www.google.com.gi/products',\n 'www.google.com.gt/products',\n 'www.google.com.hk/products',\n 'www.google.com.jm/products',\n 'www.google.com.kh/products',\n 'www.google.com.kw/products',\n 'www.google.com.lb/products',\n 'www.google.com.lc/products',\n 'www.google.com.ly/products',\n 'www.google.com.mt/products',\n 'www.google.com.mx/products',\n 'www.google.com.my/products',\n 'www.google.com.na/products',\n 'www.google.com.nf/products',\n 'www.google.com.ng/products',\n 'www.google.com.ni/products',\n 'www.google.com.np/products',\n 'www.google.com.om/products',\n 'www.google.com.pa/products',\n 'www.google.com.pe/products',\n 'www.google.com.ph/products',\n 'www.google.com.pk/products',\n 'www.google.com.pr/products',\n 'www.google.com.py/products',\n 'www.google.com.qa/products',\n 'www.google.com.sa/products',\n 'www.google.com.sb/products',\n 'www.google.com.sg/products',\n 'www.google.com.sl/products',\n 'www.google.com.sv/products',\n 'www.google.com.tj/products',\n 'www.google.com.tn/products',\n 'www.google.com.tr/products',\n 'www.google.com.tw/products',\n 'www.google.com.ua/products',\n 'www.google.com.uy/products',\n 'www.google.com.vc/products',\n 'www.google.com.vn/products',\n 'www.google.cv/products',\n 'www.google.cz/products',\n 'www.google.de/products',\n 'www.google.dj/products',\n 'www.google.dk/products',\n 'www.google.dm/products',\n 'www.google.dz/products',\n 'www.google.ee/products',\n 'www.google.es/products',\n 'www.google.fi/products',\n 'www.google.fm/products',\n 'www.google.fr/products',\n 'www.google.ga/products',\n 'www.google.gd/products',\n 'www.google.ge/products',\n 'www.google.gf/products',\n 'www.google.gg/products',\n 'www.google.gl/products',\n 'www.google.gm/products',\n 'www.google.gp/products',\n 'www.google.gr/products',\n 'www.google.gy/products',\n 'www.google.hn/products',\n 'www.google.hr/products',\n 'www.google.ht/products',\n 'www.google.hu/products',\n 'www.google.ie/products',\n 'www.google.im/products',\n 'www.google.io/products',\n 'www.google.iq/products',\n 'www.google.is/products',\n 'www.google.it/products',\n 'www.google.it.ao/products',\n 'www.google.je/products',\n 'www.google.jo/products',\n 'www.google.kg/products',\n 'www.google.ki/products',\n 'www.google.kz/products',\n 'www.google.la/products',\n 'www.google.li/products',\n 'www.google.lk/products',\n 'www.google.lt/products',\n 'www.google.lu/products',\n 'www.google.lv/products',\n 'www.google.md/products',\n 'www.google.me/products',\n 'www.google.mg/products',\n 'www.google.mk/products',\n 'www.google.ml/products',\n 'www.google.mn/products',\n 'www.google.ms/products',\n 'www.google.mu/products',\n 'www.google.mv/products',\n 'www.google.mw/products',\n 'www.google.ne/products',\n 'www.google.nl/products',\n 'www.google.no/products',\n 'www.google.nr/products',\n 'www.google.nu/products',\n 'www.google.pl/products',\n 'www.google.pn/products',\n 'www.google.ps/products',\n 'www.google.pt/products',\n 'www.google.ro/products',\n 'www.google.rs/products',\n 'www.google.ru/products',\n 'www.google.rw/products',\n 'www.google.sc/products',\n 'www.google.se/products',\n 'www.google.sh/products',\n 'www.google.si/products',\n 'www.google.sk/products',\n 'www.google.sm/products',\n 'www.google.sn/products',\n 'www.google.so/products',\n 'www.google.st/products',\n 'www.google.td/products',\n 'www.google.tg/products',\n 'www.google.tk/products',\n 'www.google.tl/products',\n 'www.google.tm/products',\n 'www.google.to/products',\n 'www.google.tt/products',\n 'www.google.us/products',\n 'www.google.vg/products',\n 'www.google.vu/products',\n 'www.google.ws/products'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'DasOertliche': {\n 'domains': [\n 'www.dasoertliche.de'\n ],\n 'parameters': [\n 'kw'\n ]\n },\n 'InfoSpace': {\n 'domains': [\n 'infospace.com',\n 'dogpile.com',\n 'www.dogpile.com',\n 'metacrawler.com',\n 'webfetch.com',\n 'webcrawler.com',\n 'search.kiwee.com',\n 'isearch.babylon.com',\n 'start.facemoods.com',\n 'search.magnetic.com',\n 'search.searchcompletion.com',\n 'clusty.com'\n ],\n 'parameters': [\n 'q',\n 's'\n ]\n },\n 'Weborama': {\n 'domains': [\n 'www.weborama.com'\n ],\n 'parameters': [\n 'QUERY'\n ]\n },\n 'Bluewin': {\n 'domains': [\n 'search.bluewin.ch'\n ],\n 'parameters': [\n 'searchTerm'\n ]\n },\n 'British Telecommunications': {\n 'domains': [\n 'search.bt.com'\n ],\n 'parameters': [\n 'p'\n ]\n },\n 'Neti': {\n 'domains': [\n 'www.neti.ee'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Nigma': {\n 'domains': [\n 'nigma.ru'\n ],\n 'parameters': [\n 's'\n ]\n },\n 'Yahoo! Images': {\n 'domains': [\n 'image.yahoo.cn',\n 'images.search.yahoo.com'\n ],\n 'parameters': [\n 'p',\n 'q'\n ]\n },\n 'Exalead': {\n 'domains': [\n 'www.exalead.fr',\n 'www.exalead.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Teoma': {\n 'domains': [\n 'www.teoma.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Needtofind': {\n 'domains': [\n 'ko.search.need2find.com'\n ],\n 'parameters': [\n 'searchfor'\n ]\n },\n 'Looksmart': {\n 'domains': [\n 'www.looksmart.com'\n ],\n 'parameters': [\n 'key'\n ]\n },\n 'Flyingbird': {\n 'domains': [\n 'inspsearch.com',\n 'viview.inspsearch.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Everyclick': {\n 'domains': [\n 'www.everyclick.com'\n ],\n 'parameters': [\n 'keyword'\n ]\n },\n 'Wirtualna Polska': {\n 'domains': [\n 'szukaj.wp.pl'\n ],\n 'parameters': [\n 'szukaj'\n ]\n },\n 'Toolbarhome': {\n 'domains': [\n 'www.toolbarhome.com',\n 'vshare.toolbarhome.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Searchalot': {\n 'domains': [\n 'searchalot.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Yandex': {\n 'domains': [\n 'yandex.ru',\n 'yandex.ua',\n 'yandex.com',\n 'yandex.by',\n 'www.yandex.ru',\n 'www.yandex.ua',\n 'www.yandex.com',\n 'www.yandex.by',\n 'clck.yandex.ru',\n 'clck.yandex.ua',\n 'clck.yandex.com',\n 'clck.yandex.by'\n ],\n 'parameters': [\n 'text'\n ]\n },\n 'Indeed': {\n 'domains': [\n 'de.indeed.com',\n 'at.indeed.com',\n 'fr.indeed.com',\n 'it.indeed.com',\n 'ch.indeed.com',\n 'au.indeed.com'\n ]\n },\n 'canoe.ca': {\n 'domains': [\n 'web.canoe.ca'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Compuserve': {\n 'domains': [\n 'websearch.cs.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Blogdigger': {\n 'domains': [\n 'www.blogdigger.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Startpagina': {\n 'domains': [\n 'startgoogle.startpagina.nl'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'eo': {\n 'domains': [\n 'eo.st'\n ],\n 'parameters': [\n 'x_query'\n ]\n },\n 'Zhongsou': {\n 'domains': [\n 'p.zhongsou.com'\n ],\n 'parameters': [\n 'w'\n ]\n },\n 'La Toile Du Quebec Via Google': {\n 'domains': [\n 'www.toile.com',\n 'web.toile.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Paperball': {\n 'domains': [\n 'www.paperball.de'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'StepStone': {\n 'domains': [\n 'www.stepstone.de',\n 'www.stepstone.at',\n 'www.stepstone.be',\n 'www.stepstone.fr',\n 'www.stepstone.nl',\n 'www.stepstone.dk',\n 'www.stepstone.se'\n ]\n },\n 'Jungle Spider': {\n 'domains': [\n 'www.jungle-spider.de'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'PeoplePC': {\n 'domains': [\n 'search.peoplepc.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'The Smart Search': {\n 'domains': [\n 'thesmartsearch.net',\n 'www.thesmartsearch.net'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'MetaCrawler.de': {\n 'domains': [\n 's1.metacrawler.de',\n 's2.metacrawler.de',\n 's3.metacrawler.de'\n ],\n 'parameters': [\n 'qry'\n ]\n },\n 'Orange': {\n 'domains': [\n 'busca.orange.es',\n 'search.orange.co.uk',\n 'lemoteur.orange.fr'\n ],\n 'parameters': [\n 'q',\n 'kw'\n ]\n },\n 'Gule Sider': {\n 'domains': [\n 'www.gulesider.no'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'I.ua': {\n 'domains': [\n 'search.i.ua'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Francite': {\n 'domains': [\n 'recherche.francite.com'\n ],\n 'parameters': [\n 'name'\n ]\n },\n 'Ask Toolbar': {\n 'domains': [\n 'search.tb.ask.com'\n ],\n 'parameters': [\n 'searchfor'\n ]\n },\n 'Tut.by': {\n 'domains': [\n 'search.tut.by'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Trusted-Search': {\n 'domains': [\n 'www.trusted--search.com'\n ],\n 'parameters': [\n 'w'\n ]\n },\n 'goo': {\n 'domains': [\n 'search.goo.ne.jp',\n 'ocnsearch.goo.ne.jp'\n ],\n 'parameters': [\n 'MT'\n ]\n },\n 'Fast Browser Search': {\n 'domains': [\n 'www.fastbrowsersearch.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'kununu': {\n 'domains': [\n 'kununu.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Volny': {\n 'domains': [\n 'web.volny.cz'\n ],\n 'parameters': [\n 'search'\n ]\n },\n 'Icerockeet': {\n 'domains': [\n 'blogs.icerocket.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Terra': {\n 'domains': [\n 'buscador.terra.es',\n 'buscador.terra.cl',\n 'buscador.terra.com.br'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Amazon': {\n 'domains': [\n 'amazon.com',\n 'www.amazon.com'\n ],\n 'parameters': [\n 'keywords'\n ]\n },\n 'Onet': {\n 'domains': [\n 'szukaj.onet.pl'\n ],\n 'parameters': [\n 'qt'\n ]\n },\n 'Digg': {\n 'domains': [\n 'digg.com'\n ],\n 'parameters': [\n 's'\n ]\n },\n 'Abacho': {\n 'domains': [\n 'www.abacho.de',\n 'www.abacho.com',\n 'www.abacho.co.uk',\n 'www.se.abacho.com',\n 'www.tr.abacho.com',\n 'www.abacho.at',\n 'www.abacho.fr',\n 'www.abacho.es',\n 'www.abacho.ch',\n 'www.abacho.it'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'maailm': {\n 'domains': [\n 'www.maailm.com'\n ],\n 'parameters': [\n 'tekst'\n ]\n },\n 'Flix': {\n 'domains': [\n 'www.flix.de'\n ],\n 'parameters': [\n 'keyword'\n ]\n },\n 'Inbox.com': {\n 'domains': [\n 'inbox.com/search/'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Freenet': {\n 'domains': [\n 'suche.freenet.de'\n ],\n 'parameters': [\n 'query',\n 'Keywords'\n ]\n },\n 'Suchnase': {\n 'domains': [\n 'www.suchnase.de'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Dodo': {\n 'domains': [\n 'google.dodo.com.au'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Google Blogsearch': {\n 'domains': [\n 'blogsearch.google.ac',\n 'blogsearch.google.ad',\n 'blogsearch.google.ae',\n 'blogsearch.google.am',\n 'blogsearch.google.as',\n 'blogsearch.google.at',\n 'blogsearch.google.az',\n 'blogsearch.google.ba',\n 'blogsearch.google.be',\n 'blogsearch.google.bf',\n 'blogsearch.google.bg',\n 'blogsearch.google.bi',\n 'blogsearch.google.bj',\n 'blogsearch.google.bs',\n 'blogsearch.google.by',\n 'blogsearch.google.ca',\n 'blogsearch.google.cat',\n 'blogsearch.google.cc',\n 'blogsearch.google.cd',\n 'blogsearch.google.cf',\n 'blogsearch.google.cg',\n 'blogsearch.google.ch',\n 'blogsearch.google.ci',\n 'blogsearch.google.cl',\n 'blogsearch.google.cm',\n 'blogsearch.google.cn',\n 'blogsearch.google.co.bw',\n 'blogsearch.google.co.ck',\n 'blogsearch.google.co.cr',\n 'blogsearch.google.co.id',\n 'blogsearch.google.co.il',\n 'blogsearch.google.co.in',\n 'blogsearch.google.co.jp',\n 'blogsearch.google.co.ke',\n 'blogsearch.google.co.kr',\n 'blogsearch.google.co.ls',\n 'blogsearch.google.co.ma',\n 'blogsearch.google.co.mz',\n 'blogsearch.google.co.nz',\n 'blogsearch.google.co.th',\n 'blogsearch.google.co.tz',\n 'blogsearch.google.co.ug',\n 'blogsearch.google.co.uk',\n 'blogsearch.google.co.uz',\n 'blogsearch.google.co.ve',\n 'blogsearch.google.co.vi',\n 'blogsearch.google.co.za',\n 'blogsearch.google.co.zm',\n 'blogsearch.google.co.zw',\n 'blogsearch.google.com',\n 'blogsearch.google.com.af',\n 'blogsearch.google.com.ag',\n 'blogsearch.google.com.ai',\n 'blogsearch.google.com.ar',\n 'blogsearch.google.com.au',\n 'blogsearch.google.com.bd',\n 'blogsearch.google.com.bh',\n 'blogsearch.google.com.bn',\n 'blogsearch.google.com.bo',\n 'blogsearch.google.com.br',\n 'blogsearch.google.com.by',\n 'blogsearch.google.com.bz',\n 'blogsearch.google.com.co',\n 'blogsearch.google.com.cu',\n 'blogsearch.google.com.cy',\n 'blogsearch.google.com.do',\n 'blogsearch.google.com.ec',\n 'blogsearch.google.com.eg',\n 'blogsearch.google.com.et',\n 'blogsearch.google.com.fj',\n 'blogsearch.google.com.gh',\n 'blogsearch.google.com.gi',\n 'blogsearch.google.com.gt',\n 'blogsearch.google.com.hk',\n 'blogsearch.google.com.jm',\n 'blogsearch.google.com.kh',\n 'blogsearch.google.com.kw',\n 'blogsearch.google.com.lb',\n 'blogsearch.google.com.lc',\n 'blogsearch.google.com.ly',\n 'blogsearch.google.com.mt',\n 'blogsearch.google.com.mx',\n 'blogsearch.google.com.my',\n 'blogsearch.google.com.na',\n 'blogsearch.google.com.nf',\n 'blogsearch.google.com.ng',\n 'blogsearch.google.com.ni',\n 'blogsearch.google.com.np',\n 'blogsearch.google.com.om',\n 'blogsearch.google.com.pa',\n 'blogsearch.google.com.pe',\n 'blogsearch.google.com.ph',\n 'blogsearch.google.com.pk',\n 'blogsearch.google.com.pr',\n 'blogsearch.google.com.py',\n 'blogsearch.google.com.qa',\n 'blogsearch.google.com.sa',\n 'blogsearch.google.com.sb',\n 'blogsearch.google.com.sg',\n 'blogsearch.google.com.sl',\n 'blogsearch.google.com.sv',\n 'blogsearch.google.com.tj',\n 'blogsearch.google.com.tn',\n 'blogsearch.google.com.tr',\n 'blogsearch.google.com.tw',\n 'blogsearch.google.com.ua',\n 'blogsearch.google.com.uy',\n 'blogsearch.google.com.vc',\n 'blogsearch.google.com.vn',\n 'blogsearch.google.cv',\n 'blogsearch.google.cz',\n 'blogsearch.google.de',\n 'blogsearch.google.dj',\n 'blogsearch.google.dk',\n 'blogsearch.google.dm',\n 'blogsearch.google.dz',\n 'blogsearch.google.ee',\n 'blogsearch.google.es',\n 'blogsearch.google.fi',\n 'blogsearch.google.fm',\n 'blogsearch.google.fr',\n 'blogsearch.google.ga',\n 'blogsearch.google.gd',\n 'blogsearch.google.ge',\n 'blogsearch.google.gf',\n 'blogsearch.google.gg',\n 'blogsearch.google.gl',\n 'blogsearch.google.gm',\n 'blogsearch.google.gp',\n 'blogsearch.google.gr',\n 'blogsearch.google.gy',\n 'blogsearch.google.hn',\n 'blogsearch.google.hr',\n 'blogsearch.google.ht',\n 'blogsearch.google.hu',\n 'blogsearch.google.ie',\n 'blogsearch.google.im',\n 'blogsearch.google.io',\n 'blogsearch.google.iq',\n 'blogsearch.google.is',\n 'blogsearch.google.it',\n 'blogsearch.google.it.ao',\n 'blogsearch.google.je',\n 'blogsearch.google.jo',\n 'blogsearch.google.kg',\n 'blogsearch.google.ki',\n 'blogsearch.google.kz',\n 'blogsearch.google.la',\n 'blogsearch.google.li',\n 'blogsearch.google.lk',\n 'blogsearch.google.lt',\n 'blogsearch.google.lu',\n 'blogsearch.google.lv',\n 'blogsearch.google.md',\n 'blogsearch.google.me',\n 'blogsearch.google.mg',\n 'blogsearch.google.mk',\n 'blogsearch.google.ml',\n 'blogsearch.google.mn',\n 'blogsearch.google.ms',\n 'blogsearch.google.mu',\n 'blogsearch.google.mv',\n 'blogsearch.google.mw',\n 'blogsearch.google.ne',\n 'blogsearch.google.nl',\n 'blogsearch.google.no',\n 'blogsearch.google.nr',\n 'blogsearch.google.nu',\n 'blogsearch.google.pl',\n 'blogsearch.google.pn',\n 'blogsearch.google.ps',\n 'blogsearch.google.pt',\n 'blogsearch.google.ro',\n 'blogsearch.google.rs',\n 'blogsearch.google.ru',\n 'blogsearch.google.rw',\n 'blogsearch.google.sc',\n 'blogsearch.google.se',\n 'blogsearch.google.sh',\n 'blogsearch.google.si',\n 'blogsearch.google.sk',\n 'blogsearch.google.sm',\n 'blogsearch.google.sn',\n 'blogsearch.google.so',\n 'blogsearch.google.st',\n 'blogsearch.google.td',\n 'blogsearch.google.tg',\n 'blogsearch.google.tk',\n 'blogsearch.google.tl',\n 'blogsearch.google.tm',\n 'blogsearch.google.to',\n 'blogsearch.google.tt',\n 'blogsearch.google.us',\n 'blogsearch.google.vg',\n 'blogsearch.google.vu',\n 'blogsearch.google.ws'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Poisk.ru': {\n 'domains': [\n 'poisk.ru'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Sharelook': {\n 'domains': [\n 'www.sharelook.fr'\n ],\n 'parameters': [\n 'keyword'\n ]\n },\n 'Finderoo': {\n 'domains': [\n 'www.finderoo.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Najdi': {\n 'domains': [\n 'www.najdi.si'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Picsearch': {\n 'domains': [\n 'www.picsearch.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Mail.ru': {\n 'domains': [\n 'mail.ru',\n 'm.mail.ru',\n 'go.mail.ru'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Alexa': {\n 'domains': [\n 'alexa.com',\n 'search.toolbars.alexa.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Metager': {\n 'domains': [\n 'meta.rrzn.uni-hannover.de',\n 'www.metager.de'\n ],\n 'parameters': [\n 'eingabe'\n ]\n },\n 'Technorati': {\n 'domains': [\n 'technorati.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Globososo': {\n 'domains': [\n 'searches.globososo.com',\n 'search.globososo.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'WWW': {\n 'domains': [\n 'search.www.ee'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Trouvez.com': {\n 'domains': [\n 'www.trouvez.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'IXquick': {\n 'domains': [\n 'ixquick.com',\n 'www.eu.ixquick.com',\n 'ixquick.de',\n 'www.ixquick.de',\n 'us.ixquick.com',\n 's1.us.ixquick.com',\n 's2.us.ixquick.com',\n 's3.us.ixquick.com',\n 's4.us.ixquick.com',\n 's5.us.ixquick.com',\n 'eu.ixquick.com',\n 's8-eu.ixquick.com',\n 's1-eu.ixquick.de'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Naver Images': {\n 'domains': [\n 'image.search.naver.com',\n 'imagesearch.naver.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Zapmeta': {\n 'domains': [\n 'www.zapmeta.com',\n 'www.zapmeta.nl',\n 'www.zapmeta.de',\n 'uk.zapmeta.com'\n ],\n 'parameters': [\n 'q',\n 'query'\n ]\n },\n 'Yippy': {\n 'domains': [\n 'search.yippy.com'\n ],\n 'parameters': [\n 'q',\n 'query'\n ]\n },\n 'Clix': {\n 'domains': [\n 'pesquisa.clix.pt'\n ],\n 'parameters': [\n 'question'\n ]\n },\n 'Walhello': {\n 'domains': [\n 'www.walhello.info',\n 'www.walhello.com',\n 'www.walhello.de',\n 'www.walhello.nl'\n ],\n 'parameters': [\n 'key'\n ]\n },\n 'Meta': {\n 'domains': [\n 'meta.ua'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Skynet': {\n 'domains': [\n 'www.skynet.be'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Searchy': {\n 'domains': [\n 'www.searchy.co.uk'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Findwide': {\n 'domains': [\n 'search.findwide.com'\n ],\n 'parameters': [\n 'k'\n ]\n },\n 'WebSearch': {\n 'domains': [\n 'www.websearch.com'\n ],\n 'parameters': [\n 'qkw',\n 'q'\n ]\n },\n 'Rambler': {\n 'domains': [\n 'nova.rambler.ru'\n ],\n 'parameters': [\n 'query',\n 'words'\n ]\n },\n 'Latne': {\n 'domains': [\n 'www.latne.lv'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'MySearch': {\n 'domains': [\n 'mysearch.com',\n 'www.mysearch.com',\n 'ms114.mysearch.com',\n 'ms146.mysearch.com',\n 'kf.mysearch.myway.com',\n 'ki.mysearch.myway.com',\n 'search.myway.com',\n 'search.mywebsearch.com'\n ],\n 'parameters': [\n 'searchfor',\n 'searchFor'\n ]\n },\n 'Cuil': {\n 'domains': [\n 'www.cuil.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Tixuma': {\n 'domains': [\n 'www.tixuma.de'\n ],\n 'parameters': [\n 'sc'\n ]\n },\n 'Sapo': {\n 'domains': [\n 'pesquisa.sapo.pt'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Gnadenmeer': {\n 'domains': [\n 'www.gnadenmeer.de'\n ],\n 'parameters': [\n 'keyword'\n ]\n },\n 'Lilo': {\n 'domains': [\n 'search.lilo.org'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Naver': {\n 'domains': [\n 'search.naver.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Zoeken': {\n 'domains': [\n 'www.zoeken.nl'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Startsiden': {\n 'domains': [\n 'www.startsiden.no'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Yam': {\n 'domains': [\n 'search.yam.com'\n ],\n 'parameters': [\n 'k'\n ]\n },\n 'Eniro': {\n 'domains': [\n 'www.eniro.se'\n ],\n 'parameters': [\n 'q',\n 'search_word'\n ]\n },\n 'APOLL07': {\n 'domains': [\n 'apollo7.de'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Biglobe': {\n 'domains': [\n 'cgi.search.biglobe.ne.jp'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Mozbot': {\n 'domains': [\n 'www.mozbot.fr',\n 'www.mozbot.co.uk',\n 'www.mozbot.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'ICQ': {\n 'domains': [\n 'www.icq.com',\n 'search.icq.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Baidu': {\n 'domains': [\n 'www.baidu.com',\n 'www1.baidu.com',\n 'zhidao.baidu.com',\n 'tieba.baidu.com',\n 'news.baidu.com',\n 'web.gougou.com',\n 'm.baidu.com'\n ],\n 'parameters': [\n 'wd',\n 'word',\n 'kw',\n 'k'\n ]\n },\n 'Conduit': {\n 'domains': [\n 'search.conduit.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Vindex': {\n 'domains': [\n 'www.vindex.nl',\n 'search.vindex.nl'\n ],\n 'parameters': [\n 'search_for'\n ]\n },\n 'Babylon': {\n 'domains': [\n 'search.babylon.com',\n 'searchassist.babylon.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'TrovaRapido': {\n 'domains': [\n 'www.trovarapido.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Winamp': {\n 'domains': [\n 'search.winamp.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Suchmaschine.com': {\n 'domains': [\n 'www.suchmaschine.com'\n ],\n 'parameters': [\n 'suchstr'\n ]\n },\n 'Lycos': {\n 'domains': [\n 'search.lycos.com',\n 'www.lycos.com',\n 'lycos.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Vinden': {\n 'domains': [\n 'www.vinden.nl'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Altavista': {\n 'domains': [\n 'www.altavista.com',\n 'search.altavista.com',\n 'listings.altavista.com',\n 'altavista.de',\n 'altavista.fr',\n 'be-nl.altavista.com',\n 'be-fr.altavista.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'dmoz': {\n 'domains': [\n 'dmoz.org',\n 'editors.dmoz.org'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Ecosia': {\n 'domains': [\n 'ecosia.org'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Maxwebsearch': {\n 'domains': [\n 'maxwebsearch.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Euroseek': {\n 'domains': [\n 'www.euroseek.com'\n ],\n 'parameters': [\n 'string'\n ]\n },\n 'Qwant': {\n 'domains': [\n 'www.qwant.com',\n 'lite.qwant.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'X-recherche': {\n 'domains': [\n 'www.x-recherche.com'\n ],\n 'parameters': [\n 'MOTS'\n ]\n },\n 'Yandex Images': {\n 'domains': [\n 'images.yandex.ru',\n 'images.yandex.ua',\n 'images.yandex.com',\n 'images.yandex.by'\n ],\n 'parameters': [\n 'text'\n ]\n },\n 'GMX': {\n 'domains': [\n 'suche.gmx.net'\n ],\n 'parameters': [\n 'su'\n ]\n },\n 'Daemon search': {\n 'domains': [\n 'daemon-search.com',\n 'my.daemon-search.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Shenma': {\n 'domains': [\n 'so.m.sm.cn',\n 'yz.m.sm.cn',\n 'm.sm.cn',\n 'quark.sm.cn',\n 'm.sp.sm.cn',\n 'm.yz2.sm.cn',\n 'm.yz.sm.cn'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Firstfind': {\n 'domains': [\n 'www.firstsfind.com'\n ],\n 'parameters': [\n 'qry'\n ]\n },\n 'Crawler': {\n 'domains': [\n 'www.crawler.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Holmes': {\n 'domains': [\n 'holmes.ge'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Charter': {\n 'domains': [\n 'www.charter.net'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Ilse': {\n 'domains': [\n 'www.ilse.nl'\n ],\n 'parameters': [\n 'search_for'\n ]\n },\n 'earthlink': {\n 'domains': [\n 'search.earthlink.net'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Qualigo': {\n 'domains': [\n 'www.qualigo.at',\n 'www.qualigo.ch',\n 'www.qualigo.de',\n 'www.qualigo.nl'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'El Mundo': {\n 'domains': [\n 'ariadna.elmundo.es'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Metager2': {\n 'domains': [\n 'metager2.de'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Forestle': {\n 'domains': [\n 'forestle.org',\n 'www.forestle.org',\n 'forestle.mobi'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Search.ch': {\n 'domains': [\n 'www.search.ch'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Liveinternet': {\n 'domains': [\n 'liveinternet.ru'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Meinestadt': {\n 'domains': [\n 'www.meinestadt.de'\n ],\n 'parameters': [\n 'words'\n ]\n },\n 'Freshweather': {\n 'domains': [\n 'www.fresh-weather.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'AllTheWeb': {\n 'domains': [\n 'www.alltheweb.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Snapdo': {\n 'domains': [\n 'search.snapdo.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'UKR.net': {\n 'domains': [\n 'search.ukr.net'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Zoek': {\n 'domains': [\n 'www3.zoek.nl'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Daum': {\n 'domains': [\n 'search.daum.net'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Marktplaats': {\n 'domains': [\n 'www.marktplaats.nl'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'suche.info': {\n 'domains': [\n 'suche.info'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Google News': {\n 'domains': [\n 'news.google.ac',\n 'news.google.ad',\n 'news.google.ae',\n 'news.google.am',\n 'news.google.as',\n 'news.google.at',\n 'news.google.az',\n 'news.google.ba',\n 'news.google.be',\n 'news.google.bf',\n 'news.google.bg',\n 'news.google.bi',\n 'news.google.bj',\n 'news.google.bs',\n 'news.google.by',\n 'news.google.ca',\n 'news.google.cat',\n 'news.google.cc',\n 'news.google.cd',\n 'news.google.cf',\n 'news.google.cg',\n 'news.google.ch',\n 'news.google.ci',\n 'news.google.cl',\n 'news.google.cm',\n 'news.google.cn',\n 'news.google.co.bw',\n 'news.google.co.ck',\n 'news.google.co.cr',\n 'news.google.co.id',\n 'news.google.co.il',\n 'news.google.co.in',\n 'news.google.co.jp',\n 'news.google.co.ke',\n 'news.google.co.kr',\n 'news.google.co.ls',\n 'news.google.co.ma',\n 'news.google.co.mz',\n 'news.google.co.nz',\n 'news.google.co.th',\n 'news.google.co.tz',\n 'news.google.co.ug',\n 'news.google.co.uk',\n 'news.google.co.uz',\n 'news.google.co.ve',\n 'news.google.co.vi',\n 'news.google.co.za',\n 'news.google.co.zm',\n 'news.google.co.zw',\n 'news.google.com',\n 'news.google.com.af',\n 'news.google.com.ag',\n 'news.google.com.ai',\n 'news.google.com.ar',\n 'news.google.com.au',\n 'news.google.com.bd',\n 'news.google.com.bh',\n 'news.google.com.bn',\n 'news.google.com.bo',\n 'news.google.com.br',\n 'news.google.com.by',\n 'news.google.com.bz',\n 'news.google.com.co',\n 'news.google.com.cu',\n 'news.google.com.cy',\n 'news.google.com.do',\n 'news.google.com.ec',\n 'news.google.com.eg',\n 'news.google.com.et',\n 'news.google.com.fj',\n 'news.google.com.gh',\n 'news.google.com.gi',\n 'news.google.com.gt',\n 'news.google.com.hk',\n 'news.google.com.jm',\n 'news.google.com.kh',\n 'news.google.com.kw',\n 'news.google.com.lb',\n 'news.google.com.lc',\n 'news.google.com.ly',\n 'news.google.com.mt',\n 'news.google.com.mx',\n 'news.google.com.my',\n 'news.google.com.na',\n 'news.google.com.nf',\n 'news.google.com.ng',\n 'news.google.com.ni',\n 'news.google.com.np',\n 'news.google.com.om',\n 'news.google.com.pa',\n 'news.google.com.pe',\n 'news.google.com.ph',\n 'news.google.com.pk',\n 'news.google.com.pr',\n 'news.google.com.py',\n 'news.google.com.qa',\n 'news.google.com.sa',\n 'news.google.com.sb',\n 'news.google.com.sg',\n 'news.google.com.sl',\n 'news.google.com.sv',\n 'news.google.com.tj',\n 'news.google.com.tn',\n 'news.google.com.tr',\n 'news.google.com.tw',\n 'news.google.com.ua',\n 'news.google.com.uy',\n 'news.google.com.vc',\n 'news.google.com.vn',\n 'news.google.cv',\n 'news.google.cz',\n 'news.google.de',\n 'news.google.dj',\n 'news.google.dk',\n 'news.google.dm',\n 'news.google.dz',\n 'news.google.ee',\n 'news.google.es',\n 'news.google.fi',\n 'news.google.fm',\n 'news.google.fr',\n 'news.google.ga',\n 'news.google.gd',\n 'news.google.ge',\n 'news.google.gf',\n 'news.google.gg',\n 'news.google.gl',\n 'news.google.gm',\n 'news.google.gp',\n 'news.google.gr',\n 'news.google.gy',\n 'news.google.hn',\n 'news.google.hr',\n 'news.google.ht',\n 'news.google.hu',\n 'news.google.ie',\n 'news.google.im',\n 'news.google.io',\n 'news.google.iq',\n 'news.google.is',\n 'news.google.it',\n 'news.google.it.ao',\n 'news.google.je',\n 'news.google.jo',\n 'news.google.kg',\n 'news.google.ki',\n 'news.google.kz',\n 'news.google.la',\n 'news.google.li',\n 'news.google.lk',\n 'news.google.lt',\n 'news.google.lu',\n 'news.google.lv',\n 'news.google.md',\n 'news.google.me',\n 'news.google.mg',\n 'news.google.mk',\n 'news.google.ml',\n 'news.google.mn',\n 'news.google.ms',\n 'news.google.mu',\n 'news.google.mv',\n 'news.google.mw',\n 'news.google.ne',\n 'news.google.nl',\n 'news.google.no',\n 'news.google.nr',\n 'news.google.nu',\n 'news.google.pl',\n 'news.google.pn',\n 'news.google.ps',\n 'news.google.pt',\n 'news.google.ro',\n 'news.google.rs',\n 'news.google.ru',\n 'news.google.rw',\n 'news.google.sc',\n 'news.google.se',\n 'news.google.sh',\n 'news.google.si',\n 'news.google.sk',\n 'news.google.sm',\n 'news.google.sn',\n 'news.google.so',\n 'news.google.st',\n 'news.google.td',\n 'news.google.tg',\n 'news.google.tk',\n 'news.google.tl',\n 'news.google.tm',\n 'news.google.to',\n 'news.google.tt',\n 'news.google.us',\n 'news.google.vg',\n 'news.google.vu',\n 'news.google.ws'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Zoohoo': {\n 'domains': [\n 'zoohoo.cz'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Seznam': {\n 'domains': [\n 'search.seznam.cz'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Online.no': {\n 'domains': [\n 'online.no'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Eurip': {\n 'domains': [\n 'www.eurip.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'all.by': {\n 'domains': [\n 'all.by'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Road Runner Search': {\n 'domains': [\n 'search.rr.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Opplysningen 1881': {\n 'domains': [\n 'www.1881.no'\n ],\n 'parameters': [\n 'Query'\n ]\n },\n 'YouGoo': {\n 'domains': [\n 'www.yougoo.fr'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Bing Images': {\n 'domains': [\n 'bing.com/images/search',\n 'www.bing.com/images/search'\n ],\n 'parameters': [\n 'q',\n 'Q'\n ]\n },\n 'Geona': {\n 'domains': [\n 'geona.net'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Nate': {\n 'domains': [\n 'search.nate.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Search This': {\n 'domains': [\n 'www.searchthis.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'DuckDuckGo': {\n 'domains': [\n 'duckduckgo.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Monster': {\n 'domains': [\n 'www.monster.be',\n 'www.monster.cz',\n 'www.monster.de',\n 'www.monster.fi',\n 'www.monster.fr',\n 'www.monster.ie',\n 'www.monster.it',\n 'www.monster.lu',\n 'www.monster.ch',\n 'www.monster.co.uk'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Hotbot': {\n 'domains': [\n 'www.hotbot.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Kvasir': {\n 'domains': [\n 'www.kvasir.no'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Austronaut': {\n 'domains': [\n 'www2.austronaut.at',\n 'www1.astronaut.at'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'SoSoDesk': {\n 'domains': [\n 'sosodesktop.com',\n 'search.sosodesktop.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Excite': {\n 'domains': [\n 'search.excite.it',\n 'search.excite.fr',\n 'search.excite.de',\n 'search.excite.co.uk',\n 'serach.excite.es',\n 'search.excite.nl',\n 'msxml.excite.com',\n 'www.excite.co.jp'\n ],\n 'parameters': [\n 'q',\n 'search'\n ]\n },\n '1&1': {\n 'domains': [\n 'search.1and1.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'qip': {\n 'domains': [\n 'search.qip.ru'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Certified-Toolbar': {\n 'domains': [\n 'search.certified-toolbar.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Yahoo!': {\n 'domains': [\n 'search.yahoo.com',\n 'yahoo.com',\n 'ar.search.yahoo.com',\n 'ar.yahoo.com',\n 'au.search.yahoo.com',\n 'au.yahoo.com',\n 'br.search.yahoo.com',\n 'br.yahoo.com',\n 'ca.search.yahoo.com',\n 'ca.yahoo.com',\n 'cade.searchde.yahoo.com',\n 'cade.yahoo.com',\n 'chinese.searchinese.yahoo.com',\n 'chinese.yahoo.com',\n 'cn.search.yahoo.com',\n 'cn.yahoo.com',\n 'de.search.yahoo.com',\n 'de.yahoo.com',\n 'dk.search.yahoo.com',\n 'dk.yahoo.com',\n 'es.search.yahoo.com',\n 'es.yahoo.com',\n 'espanol.searchpanol.yahoo.com',\n 'espanol.yahoo.com',\n 'fr.search.yahoo.com',\n 'fr.yahoo.com',\n 'hk.search.yahoo.com',\n 'hk.yahoo.com',\n 'ie.search.yahoo.com',\n 'ie.yahoo.com',\n 'in.search.yahoo.com',\n 'in.yahoo.com',\n 'it.search.yahoo.com',\n 'it.yahoo.com',\n 'kr.search.yahoo.com',\n 'kr.yahoo.com',\n 'mx.search.yahoo.com',\n 'mx.yahoo.com',\n 'no.search.yahoo.com',\n 'no.yahoo.com',\n 'nz.search.yahoo.com',\n 'nz.yahoo.com',\n 'one.cn.yahoo.com',\n 'one.searchn.yahoo.com',\n 'qc.search.yahoo.com',\n 'qc.yahoo.com',\n 'ru.search.yahoo.com',\n 'ru.yahoo.com',\n 'se.search.yahoo.com',\n 'se.yahoo.com',\n 'search.searcharch.yahoo.com',\n 'tw.search.yahoo.com',\n 'tw.yahoo.com',\n 'uk.search.yahoo.com',\n 'uk.yahoo.com',\n 'us.search.yahoo.com',\n 'us.yahoo.com',\n 'www.yahoo.co.jp',\n 'search.yahoo.co.jp',\n 'www.cercato.it',\n 'search.offerbox.com',\n 'ys.mirostart.com'\n ],\n 'parameters': [\n 'p',\n 'q'\n ]\n },\n 'URL.ORGanizier': {\n 'domains': [\n 'www.url.org'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Witch': {\n 'domains': [\n 'www.witch.de'\n ],\n 'parameters': [\n 'search'\n ]\n },\n 'Mister Wong': {\n 'domains': [\n 'www.mister-wong.com',\n 'www.mister-wong.de'\n ],\n 'parameters': [\n 'Keywords'\n ]\n },\n 'Aport': {\n 'domains': [\n 'sm.aport.ru'\n ],\n 'parameters': [\n 'r'\n ]\n },\n 'Web.de': {\n 'domains': [\n 'suche.web.de'\n ],\n 'parameters': [\n 'su'\n ]\n },\n 'Ask': {\n 'domains': [\n 'ask.com',\n 'www.ask.com',\n 'web.ask.com',\n 'int.ask.com',\n 'mws.ask.com',\n 'uk.ask.com',\n 'images.ask.com',\n 'ask.reference.com',\n 'www.askkids.com',\n 'iwon.ask.com',\n 'www.ask.co.uk',\n 'www.qbyrd.com',\n 'search-results.com',\n 'uk.search-results.com',\n 'www.search-results.com',\n 'int.search-results.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Centrum': {\n 'domains': [\n 'serach.centrum.cz',\n 'morfeo.centrum.cz'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Bing': {\n 'domains': [\n 'bing.com',\n 'www.bing.com',\n 'msnbc.msn.com',\n 'dizionario.it.msn.com',\n 'cc.bingj.com',\n 'm.bing.com'\n ],\n 'parameters': [\n 'q',\n 'Q'\n ]\n },\n 'Google Video': {\n 'domains': [\n 'video.google.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Delfi': {\n 'domains': [\n 'otsing.delfi.ee'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'blekko': {\n 'domains': [\n 'blekko.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Jyxo': {\n 'domains': [\n 'jyxo.1188.cz'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Kataweb': {\n 'domains': [\n 'www.kataweb.it'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'uol.com.br': {\n 'domains': [\n 'busca.uol.com.br'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Arianna': {\n 'domains': [\n 'arianna.libero.it',\n 'www.arianna.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Mamma': {\n 'domains': [\n 'www.mamma.com',\n 'mamma75.mamma.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Yatedo': {\n 'domains': [\n 'www.yatedo.com',\n 'www.yatedo.fr'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Twingly': {\n 'domains': [\n 'www.twingly.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Delfi latvia': {\n 'domains': [\n 'smart.delfi.lv'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'PriceRunner': {\n 'domains': [\n 'www.pricerunner.co.uk'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Rakuten': {\n 'domains': [\n 'websearch.rakuten.co.jp'\n ],\n 'parameters': [\n 'qt'\n ]\n },\n 'Google': {\n 'domains': [\n 'www.google.com',\n 'www.google.ac',\n 'www.google.ad',\n 'www.google.com.af',\n 'www.google.com.ag',\n 'www.google.com.ai',\n 'www.google.am',\n 'www.google.it.ao',\n 'www.google.com.ar',\n 'www.google.as',\n 'www.google.at',\n 'www.google.com.au',\n 'www.google.az',\n 'www.google.ba',\n 'www.google.com.bd',\n 'www.google.be',\n 'www.google.bf',\n 'www.google.bg',\n 'www.google.com.bh',\n 'www.google.bi',\n 'www.google.bj',\n 'www.google.com.bn',\n 'www.google.com.bo',\n 'www.google.com.br',\n 'www.google.bs',\n 'www.google.co.bw',\n 'www.google.com.by',\n 'www.google.by',\n 'www.google.com.bz',\n 'www.google.ca',\n 'www.google.com.kh',\n 'www.google.cc',\n 'www.google.cd',\n 'www.google.cf',\n 'www.google.cat',\n 'www.google.cg',\n 'www.google.ch',\n 'www.google.ci',\n 'www.google.co.ck',\n 'www.google.cl',\n 'www.google.cm',\n 'www.google.cn',\n 'www.google.com.co',\n 'www.google.co.cr',\n 'www.google.com.cu',\n 'www.google.cv',\n 'www.google.com.cy',\n 'www.google.cz',\n 'www.google.de',\n 'www.google.dj',\n 'www.google.dk',\n 'www.google.dm',\n 'www.google.com.do',\n 'www.google.dz',\n 'www.google.com.ec',\n 'www.google.ee',\n 'www.google.com.eg',\n 'www.google.es',\n 'www.google.com.et',\n 'www.google.fi',\n 'www.google.com.fj',\n 'www.google.fm',\n 'www.google.fr',\n 'www.google.ga',\n 'www.google.gd',\n 'www.google.ge',\n 'www.google.gf',\n 'www.google.gg',\n 'www.google.com.gh',\n 'www.google.com.gi',\n 'www.google.gl',\n 'www.google.gm',\n 'www.google.gp',\n 'www.google.gr',\n 'www.google.com.gt',\n 'www.google.gy',\n 'www.google.com.hk',\n 'www.google.hn',\n 'www.google.hr',\n 'www.google.ht',\n 'www.google.hu',\n 'www.google.co.id',\n 'www.google.iq',\n 'www.google.ie',\n 'www.google.co.il',\n 'www.google.im',\n 'www.google.co.in',\n 'www.google.io',\n 'www.google.is',\n 'www.google.it',\n 'www.google.je',\n 'www.google.com.jm',\n 'www.google.jo',\n 'www.google.co.jp',\n 'www.google.co.ke',\n 'www.google.ki',\n 'www.google.kg',\n 'www.google.co.kr',\n 'www.google.com.kw',\n 'www.google.kz',\n 'www.google.la',\n 'www.google.com.lb',\n 'www.google.com.lc',\n 'www.google.li',\n 'www.google.lk',\n 'www.google.co.ls',\n 'www.google.lt',\n 'www.google.lu',\n 'www.google.lv',\n 'www.google.com.ly',\n 'www.google.co.ma',\n 'www.google.md',\n 'www.google.me',\n 'www.google.mg',\n 'www.google.mk',\n 'www.google.ml',\n 'www.google.mn',\n 'www.google.ms',\n 'www.google.com.mt',\n 'www.google.mu',\n 'www.google.mv',\n 'www.google.mw',\n 'www.google.com.mx',\n 'www.google.com.my',\n 'www.google.co.mz',\n 'www.google.com.na',\n 'www.google.ne',\n 'www.google.com.nf',\n 'www.google.com.ng',\n 'www.google.com.ni',\n 'www.google.nl',\n 'www.google.no',\n 'www.google.com.np',\n 'www.google.nr',\n 'www.google.nu',\n 'www.google.co.nz',\n 'www.google.com.om',\n 'www.google.com.pa',\n 'www.google.com.pe',\n 'www.google.com.ph',\n 'www.google.com.pk',\n 'www.google.pl',\n 'www.google.pn',\n 'www.google.com.pr',\n 'www.google.ps',\n 'www.google.pt',\n 'www.google.com.py',\n 'www.google.com.qa',\n 'www.google.ro',\n 'www.google.rs',\n 'www.google.ru',\n 'www.google.rw',\n 'www.google.com.sa',\n 'www.google.com.sb',\n 'www.google.sc',\n 'www.google.se',\n 'www.google.com.sg',\n 'www.google.sh',\n 'www.google.si',\n 'www.google.sk',\n 'www.google.com.sl',\n 'www.google.sn',\n 'www.google.sm',\n 'www.google.so',\n 'www.google.st',\n 'www.google.com.sv',\n 'www.google.td',\n 'www.google.tg',\n 'www.google.co.th',\n 'www.google.com.tj',\n 'www.google.tk',\n 'www.google.tl',\n 'www.google.tm',\n 'www.google.to',\n 'www.google.com.tn',\n 'www.google.tn',\n 'www.google.com.tr',\n 'www.google.tt',\n 'www.google.com.tw',\n 'www.google.co.tz',\n 'www.google.com.ua',\n 'www.google.co.ug',\n 'www.google.ae',\n 'www.google.co.uk',\n 'www.google.us',\n 'www.google.com.uy',\n 'www.google.co.uz',\n 'www.google.com.vc',\n 'www.google.co.ve',\n 'www.google.vg',\n 'www.google.co.vi',\n 'www.google.com.vn',\n 'www.google.vu',\n 'www.google.ws',\n 'www.google.co.za',\n 'www.google.co.zm',\n 'www.google.co.zw',\n 'google.com',\n 'google.ac',\n 'google.ad',\n 'google.com.af',\n 'google.com.ag',\n 'google.com.ai',\n 'google.am',\n 'google.it.ao',\n 'google.com.ar',\n 'google.as',\n 'google.at',\n 'google.com.au',\n 'google.az',\n 'google.ba',\n 'google.com.bd',\n 'google.be',\n 'google.bf',\n 'google.bg',\n 'google.com.bh',\n 'google.bi',\n 'google.bj',\n 'google.com.bn',\n 'google.com.bo',\n 'google.com.br',\n 'google.bs',\n 'google.co.bw',\n 'google.com.by',\n 'google.by',\n 'google.com.bz',\n 'google.ca',\n 'google.com.kh',\n 'google.cc',\n 'google.cd',\n 'google.cf',\n 'google.cat',\n 'google.cg',\n 'google.ch',\n 'google.ci',\n 'google.co.ck',\n 'google.cl',\n 'google.cm',\n 'google.cn',\n 'google.com.co',\n 'google.co.cr',\n 'google.com.cu',\n 'google.cv',\n 'google.com.cy',\n 'google.cz',\n 'google.de',\n 'google.dj',\n 'google.dk',\n 'google.dm',\n 'google.com.do',\n 'google.dz',\n 'google.com.ec',\n 'google.ee',\n 'google.com.eg',\n 'google.es',\n 'google.com.et',\n 'google.fi',\n 'google.com.fj',\n 'google.fm',\n 'google.fr',\n 'google.ga',\n 'google.gd',\n 'google.ge',\n 'google.gf',\n 'google.gg',\n 'google.com.gh',\n 'google.com.gi',\n 'google.gl',\n 'google.gm',\n 'google.gp',\n 'google.gr',\n 'google.com.gt',\n 'google.gy',\n 'google.com.hk',\n 'google.hn',\n 'google.hr',\n 'google.ht',\n 'google.hu',\n 'google.co.id',\n 'google.iq',\n 'google.ie',\n 'google.co.il',\n 'google.im',\n 'google.co.in',\n 'google.io',\n 'google.is',\n 'google.it',\n 'google.je',\n 'google.com.jm',\n 'google.jo',\n 'google.co.jp',\n 'google.co.ke',\n 'google.ki',\n 'google.kg',\n 'google.co.kr',\n 'google.com.kw',\n 'google.kz',\n 'google.la',\n 'google.com.lb',\n 'google.com.lc',\n 'google.li',\n 'google.lk',\n 'google.co.ls',\n 'google.lt',\n 'google.lu',\n 'google.lv',\n 'google.com.ly',\n 'google.co.ma',\n 'google.md',\n 'google.me',\n 'google.mg',\n 'google.mk',\n 'google.ml',\n 'google.mn',\n 'google.ms',\n 'google.com.mt',\n 'google.mu',\n 'google.mv',\n 'google.mw',\n 'google.com.mx',\n 'google.com.my',\n 'google.co.mz',\n 'google.com.na',\n 'google.ne',\n 'google.com.nf',\n 'google.com.ng',\n 'google.com.ni',\n 'google.nl',\n 'google.no',\n 'google.com.np',\n 'google.nr',\n 'google.nu',\n 'google.co.nz',\n 'google.com.om',\n 'google.com.pa',\n 'google.com.pe',\n 'google.com.ph',\n 'google.com.pk',\n 'google.pl',\n 'google.pn',\n 'google.com.pr',\n 'google.ps',\n 'google.pt',\n 'google.com.py',\n 'google.com.qa',\n 'google.ro',\n 'google.rs',\n 'google.ru',\n 'google.rw',\n 'google.com.sa',\n 'google.com.sb',\n 'google.sc',\n 'google.se',\n 'google.com.sg',\n 'google.sh',\n 'google.si',\n 'google.sk',\n 'google.com.sl',\n 'google.sn',\n 'google.sm',\n 'google.so',\n 'google.st',\n 'google.com.sv',\n 'google.td',\n 'google.tg',\n 'google.co.th',\n 'google.com.tj',\n 'google.tk',\n 'google.tl',\n 'google.tm',\n 'google.to',\n 'google.com.tn',\n 'google.com.tr',\n 'google.tt',\n 'google.com.tw',\n 'google.co.tz',\n 'google.com.ua',\n 'google.co.ug',\n 'google.ae',\n 'google.co.uk',\n 'google.us',\n 'google.com.uy',\n 'google.co.uz',\n 'google.com.vc',\n 'google.co.ve',\n 'google.vg',\n 'google.co.vi',\n 'google.com.vn',\n 'google.vu',\n 'google.ws',\n 'google.co.za',\n 'google.co.zm',\n 'google.co.zw',\n 'google.tn',\n 'search.avg.com',\n 'isearch.avg.com',\n 'www.cnn.com',\n 'darkoogle.com',\n 'search.darkoogle.com',\n 'search.foxtab.com',\n 'www.gooofullsearch.com',\n 'search.hiyo.com',\n 'search.incredimail.com',\n 'search1.incredimail.com',\n 'search2.incredimail.com',\n 'search3.incredimail.com',\n 'search4.incredimail.com',\n 'search.incredibar.com',\n 'search.sweetim.com',\n 'www.fastweb.it',\n 'search.juno.com',\n 'find.tdc.dk',\n 'searchresults.verizon.com',\n 'search.walla.co.il',\n 'search.alot.com',\n 'www.googleearth.de',\n 'www.googleearth.fr',\n 'webcache.googleusercontent.com',\n 'encrypted.google.com',\n 'googlesyndicatedsearch.com'\n ],\n 'parameters': [\n 'q',\n 'query',\n 'Keywords'\n ]\n },\n 'Blogpulse': {\n 'domains': [\n 'www.blogpulse.com'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Hooseek.com': {\n 'domains': [\n 'www.hooseek.com'\n ],\n 'parameters': [\n 'recherche'\n ]\n },\n 'Dalesearch': {\n 'domains': [\n 'www.dalesearch.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Alice Adsl': {\n 'domains': [\n 'rechercher.aliceadsl.fr'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'T-Online': {\n 'domains': [\n 'suche.t-online.de',\n 'brisbane.t-online.de',\n 'navigationshilfe.t-online.de'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Sogou': {\n 'domains': [\n 'www.sougou.com',\n 'www.soso.com'\n ],\n 'parameters': [\n 'query',\n 'w'\n ]\n },\n 'Hit-Parade': {\n 'domains': [\n 'req.-hit-parade.com',\n 'class.hit-parade.com',\n 'www.hit-parade.com'\n ],\n 'parameters': [\n 'p7'\n ]\n },\n 'SearchCanvas': {\n 'domains': [\n 'www.searchcanvas.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Jungle Key': {\n 'domains': [\n 'junglekey.com',\n 'junglekey.fr'\n ],\n 'parameters': [\n 'query'\n ]\n },\n 'Interia': {\n 'domains': [\n 'www.google.interia.pl'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Genieo': {\n 'domains': [\n 'search.genieo.com'\n ],\n 'parameters': [\n 'q'\n ]\n },\n 'Tiscali': {\n 'domains': [\n 'search.tiscali.it',\n 'search-dyn.tiscali.it',\n 'hledani.tiscali.cz'\n ],\n 'parameters': [\n 'q',\n 'key'\n ]\n },\n 'Gomeo': {\n 'domains': [\n 'www.gomeo.com'\n ],\n 'parameters': [\n 'Keywords'\n ]\n }\n },\n 'email': {\n 'Bigpond': {\n 'domains': [\n 'webmail.bigpond.com',\n 'webmail2.bigpond.com',\n 'email.telstra.com',\n 'basic.messaging.bigpond.com'\n ]\n },\n 'Naver Mail': {\n 'domains': [\n 'mail.naver.com'\n ]\n },\n 'Zoho': {\n 'domains': [\n 'mail.zoho.com'\n ]\n },\n 'Virgin': {\n 'domains': [\n 'webmail.virginbroadband.com.au'\n ]\n },\n 'Yahoo! Mail': {\n 'domains': [\n 'mail.yahoo.net',\n 'mail.yahoo.com',\n 'mail.yahoo.co.uk',\n 'mail.yahoo.co.jp'\n ]\n },\n 'iiNet': {\n 'domains': [\n 'webmail.iinet.net.au',\n 'mail.iinet.net.au'\n ]\n },\n 'E1.ru': {\n 'domains': [\n 'mail.e1.ru'\n ]\n },\n 'Vodafone': {\n 'domains': [\n 'webmail.vodafone.co.nz'\n ]\n },\n '126 Mail': {\n 'domains': [\n 'mail.126.com'\n ]\n },\n 'Inbox.com': {\n 'domains': [\n 'inbox.com'\n ]\n },\n 'iPrimus': {\n 'domains': [\n 'webmail.iprimus.com.au'\n ]\n },\n 'QQ Mail': {\n 'domains': [\n 'mail.qq.com',\n 'exmail.qq.com'\n ]\n },\n 'QIP': {\n 'domains': [\n 'mail.qip.ru'\n ]\n },\n 'Sibmail': {\n 'domains': [\n 'sibmail.com'\n ]\n },\n 'Freenet': {\n 'domains': [\n 'webmail.freenet.de'\n ]\n },\n 'Seznam Mail': {\n 'domains': [\n 'email.seznam.cz'\n ]\n },\n 'Westnet': {\n 'domains': [\n 'webmail.westnet.com.au'\n ]\n },\n 'Outlook.com': {\n 'domains': [\n 'mail.live.com',\n 'outlook.live.com'\n ]\n },\n 'Dodo': {\n 'domains': [\n 'webmail.dodo.com.au'\n ]\n },\n '2degrees': {\n 'domains': [\n 'webmail.2degreesbroadband.co.nz'\n ]\n },\n 'Daum Mail': {\n 'domains': [\n 'mail2.daum.net',\n 'mail.daum.net'\n ]\n },\n 'Beeline': {\n 'domains': [\n 'post.ru'\n ]\n },\n 'Mail.ru': {\n 'domains': [\n 'e.mail.ru',\n 'touch.mail.ru'\n ]\n },\n 'Adam Internet': {\n 'domains': [\n 'webmail.adam.com.au'\n ]\n },\n 'Orange Webmail': {\n 'domains': [\n 'orange.fr/webmail'\n ]\n },\n 'AOL Mail': {\n 'domains': [\n 'mail.aol.com'\n ]\n },\n 'Netspace': {\n 'domains': [\n 'webmail.netspace.net.au'\n ]\n },\n 'Optus Zoo': {\n 'domains': [\n 'webmail.optuszoo.com.au',\n 'webmail.optusnet.com.au'\n ]\n },\n 'Commander': {\n 'domains': [\n 'webmail.commander.net.au'\n ]\n },\n 'Mastermail': {\n 'domains': [\n 'mastermail.ru',\n 'm.mastermail.ru'\n ]\n },\n 'Yandex': {\n 'domains': [\n 'mail.yandex.ru',\n 'mail.yandex.com',\n 'mail.yandex.kz',\n 'mail.yandex.ua',\n 'mail.yandex.by'\n ]\n },\n '163 Mail': {\n 'domains': [\n 'mail.163.com'\n ]\n },\n 'Ukr.net': {\n 'domains': [\n 'mail.ukr.net'\n ]\n },\n 'Rambler': {\n 'domains': [\n 'mail.rambler.ru'\n ]\n },\n 'Mynet Mail': {\n 'domains': [\n 'mail.mynet.com'\n ]\n },\n 'Gmail': {\n 'domains': [\n 'mail.google.com',\n 'inbox.google.com'\n ]\n }\n },\n 'paid': {\n 'AdSpirit': {\n 'domains': [\n 'adspirit.de',\n 'rtbcity.com',\n 'plusperformance.com'\n ]\n },\n 'Flashtalking': {\n 'domains': [\n 'flashtalking.com',\n 'servedby.flashtalking.com'\n ]\n },\n 'AudienceScience': {\n 'domains': [\n 'wunderloop.net'\n ]\n },\n 'Outbrain': {\n 'domains': [\n 'paid.outbrain.com'\n ]\n },\n 'Yieldmo': {\n 'domains': [\n 'yieldmo.com'\n ]\n },\n 'Mozo': {\n 'domains': [\n 'mozo.com.au',\n 'a.mozo.com.au'\n ]\n },\n 'Acuity Ads': {\n 'domains': [\n 'acuityplatform.com'\n ]\n },\n 'LifeStreet': {\n 'domains': [\n 'lfstmedia.com'\n ]\n },\n 'MicroAd': {\n 'domains': [\n 'microad.jp'\n ]\n },\n 'Taboola': {\n 'domains': [\n 'trc.taboola.com',\n 'api.taboola.com',\n 'taboola.com'\n ]\n },\n 'Doubleclick': {\n 'domains': [\n 'ad.doubleclick.net',\n 'ad-apac.doubleclick.net',\n 's0.2mdn.net',\n 's1.2mdn.net',\n 'dp.g.doubleclick.net',\n 'pubads.g.doubleclick.net'\n ]\n },\n 'Adform': {\n 'domains': [\n 'adform.net'\n ]\n },\n 'Sizmek': {\n 'domains': [\n 'bs.serving-sys.com'\n ]\n },\n 'Criteo': {\n 'domains': [\n 'cas.jp.as.criteo.com',\n 'cas.criteo.com'\n ]\n },\n 'Fluct': {\n 'domains': [\n 'adingo.jp'\n ]\n },\n 'LowerMyBills': {\n 'domains': [\n 'lowermybills.com'\n ],\n 'parameters': [\n 'leadid'\n ]\n },\n 'White Pages': {\n 'domains': [\n 'www.whitepages.com.au',\n 'mobile.whitepages.com.au'\n ]\n },\n 'Neustar AdAdvisor': {\n 'domains': [\n 'adadvisor.net'\n ]\n },\n 'ONE by AOL': {\n 'domains': [\n 'nexage.com'\n ]\n },\n 'Mixpo': {\n 'domains': [\n 'mixpo.com'\n ]\n },\n 'Rubicon Project': {\n 'domains': [\n 'optimized-by.rubiconproject.com'\n ]\n },\n 'PubMatic': {\n 'domains': [\n 'sshowads.pubmatic.com'\n ]\n },\n 'Jivox': {\n 'domains': [\n 'jivox.com'\n ]\n },\n 'BidSwitch': {\n 'domains': [\n 'bidswitch.net'\n ]\n },\n 'Sonobi': {\n 'domains': [\n 'sonobi.com'\n ]\n },\n 'SteelHouse': {\n 'domains': [\n 'steelhousemedia.com'\n ]\n },\n 'AdRoll': {\n 'domains': [\n 'adroll.com'\n ]\n },\n 'AdNET': {\n 'domains': [\n 'adnet.de'\n ]\n },\n 'Tribal Fusion': {\n 'domains': [\n 'cdnx.tribalfusion.com'\n ]\n },\n 'Yandex.Market': {\n 'domains': [\n 'market.yandex.ru',\n 'm.market.yandex.ru'\n ]\n },\n 'StickyADS.tv': {\n 'domains': [\n 'stickyadstv.com',\n 'sfx.stickyadstv.com'\n ]\n },\n 'ZEDO': {\n 'domains': [\n 'zedo.com',\n 'z1.zedo.com'\n ]\n },\n 'Plista': {\n 'domains': [\n 'farm.plista.com'\n ]\n },\n 'AppNexus': {\n 'domains': [\n 'ib.adnxs.com',\n 'adnxs.com',\n '247realmedia.com'\n ]\n },\n 'Sovrn': {\n 'domains': [\n 'lijit.com'\n ]\n },\n 'Google': {\n 'domains': [\n 'www.googleadservices.com',\n 'partner.googleadservices.com',\n 'googleads.g.doubleclick.net',\n 'tpc.googlesyndication.com',\n 'googleadservices.com',\n 'imasdk.googleapis.com'\n ]\n },\n 'Eyeota': {\n 'domains': [\n 'eyeota.net'\n ]\n },\n 'Price.ru': {\n 'domains': [\n 'price.ru',\n 'v.price.ru'\n ]\n },\n 'OpenX': {\n 'domains': [\n 'us-ads.openx.net',\n 'openx.net',\n 'servedbyopenx.com',\n 'openxenterprise.com'\n ]\n },\n 'Casale Media': {\n 'domains': [\n 'casalemedia.com'\n ]\n },\n 'Adition': {\n 'domains': [\n 'adition.com'\n ]\n },\n 'Yandex.Direct': {\n 'domains': [\n 'an.yandex.ru',\n 'yabs.yandex.ru',\n 'yabs.yandex.ua',\n 'yabs.yandex.com',\n 'yabs.yandex.by'\n ]\n },\n 'ADFOX': {\n 'domains': [\n 'adfox.ru',\n 'www.adfox.ru',\n 'ads.adfox.ru',\n 'www.ads.adfox.ru'\n ]\n },\n 'Torg.Mail.ru': {\n 'domains': [\n 'torg.mail.ru'\n ]\n },\n 'Sociomantic Labs': {\n 'domains': [\n 'sociomantic.com'\n ]\n }\n },\n 'social': {\n 'hi5': {\n 'domains': [\n 'hi5.com'\n ]\n },\n 'Friendster': {\n 'domains': [\n 'friendster.com'\n ]\n },\n 'Weibo': {\n 'domains': [\n 'weibo.com',\n 't.cn'\n ]\n },\n 'Xanga': {\n 'domains': [\n 'xanga.com'\n ]\n },\n 'Myspace': {\n 'domains': [\n 'myspace.com'\n ]\n },\n 'Buzznet': {\n 'domains': [\n 'buzznet.com'\n ]\n },\n 'MyLife': {\n 'domains': [\n 'mylife.ru'\n ]\n },\n 'Flickr': {\n 'domains': [\n 'flickr.com'\n ]\n },\n 'Whirlpool': {\n 'domains': [\n 'forums.whirlpool.net.au'\n ]\n },\n 'Sonico.com': {\n 'domains': [\n 'sonico.com'\n ]\n },\n 'Odnoklassniki': {\n 'domains': [\n 'odnoklassniki.ru',\n 'ok.ru'\n ]\n },\n 'GitHub': {\n 'domains': [\n 'github.com'\n ]\n },\n 'Classmates': {\n 'domains': [\n 'classmates.com'\n ]\n },\n 'Friends Reunited': {\n 'domains': [\n 'friendsreunited.com'\n ]\n },\n 'Renren': {\n 'domains': [\n 'renren.com'\n ]\n },\n 'Quora': {\n 'domains': [\n 'quora.com'\n ]\n },\n 'Gaia Online': {\n 'domains': [\n 'gaiaonline.com'\n ]\n },\n 'Netlog': {\n 'domains': [\n 'netlog.com'\n ]\n },\n 'Orkut': {\n 'domains': [\n 'orkut.com'\n ]\n },\n 'MyHeritage': {\n 'domains': [\n 'myheritage.com'\n ]\n },\n 'Multiply': {\n 'domains': [\n 'multiply.com'\n ]\n },\n 'myYearbook': {\n 'domains': [\n 'myyearbook.com'\n ]\n },\n 'WeeWorld': {\n 'domains': [\n 'weeworld.com'\n ]\n },\n 'Vimeo': {\n 'domains': [\n 'vimeo.com'\n ]\n },\n 'Eksi Sozluk': {\n 'domains': [\n 'Sozluk.com',\n 'sourtimes.org'\n ]\n },\n 'Geni': {\n 'domains': [\n 'geni.com'\n ]\n },\n 'Uludag Sozluk': {\n 'domains': [\n 'uludagsozluk.com',\n 'ulusozluk.com'\n ]\n },\n 'SourceForge': {\n 'domains': [\n 'sourceforge.net'\n ]\n },\n 'Plaxo': {\n 'domains': [\n 'plaxo.com'\n ]\n },\n 'Taringa!': {\n 'domains': [\n 'taringa.net'\n ]\n },\n 'Tagged': {\n 'domains': [\n 'login.tagged.com'\n ]\n },\n 'XING': {\n 'domains': [\n 'xing.com'\n ]\n },\n 'Instagram': {\n 'domains': [\n 'instagram.com',\n 'l.instagram.com'\n ]\n },\n 'Vkontakte': {\n 'domains': [\n 'm.vk.com',\n 'vk.com',\n 'away.vk.com',\n 'vkontakte.ru'\n ]\n },\n 'Twitter': {\n 'domains': [\n 'twitter.com',\n 't.co'\n ]\n },\n 'vKruguDruzei.ru': {\n 'domains': [\n 'vkrugudruzei.ru'\n ]\n },\n 'Donanimhaber': {\n 'domains': [\n 'donanimhaber.com'\n ]\n },\n 'WAYN': {\n 'domains': [\n 'wayn.com'\n ]\n },\n 'Skype': {\n 'domains': [\n 'web.skype.com'\n ]\n },\n 'Mail.ru': {\n 'domains': [\n 'my.mail.ru'\n ]\n },\n 'Badoo': {\n 'domains': [\n 'badoo.com'\n ]\n },\n 'Instela': {\n 'domains': [\n 'instela.com'\n ]\n },\n 'Habbo': {\n 'domains': [\n 'habbo.com'\n ]\n },\n 'Pinterest': {\n 'domains': [\n 'pinterest.com',\n 'pinterest.ca',\n 'pinterest.com.au'\n ]\n },\n 'LinkedIn': {\n 'domains': [\n 'linkedin.com',\n 'lnkd.in'\n ]\n },\n 'Foursquare': {\n 'domains': [\n 'foursquare.com'\n ]\n },\n 'Flixster': {\n 'domains': [\n 'flixster.com'\n ]\n },\n 'Windows Live Spaces': {\n 'domains': [\n 'login.live.com'\n ]\n },\n 'BlackPlanet': {\n 'domains': [\n 'blackplanet.com'\n ]\n },\n 'Cyworld': {\n 'domains': [\n 'global.cyworld.com'\n ]\n },\n 'Pocket': {\n 'domains': [\n 'getpocket.com'\n ]\n },\n 'Skyrock': {\n 'domains': [\n 'skyrock.com'\n ]\n },\n 'Facebook': {\n 'domains': [\n 'facebook.com',\n 'fb.me',\n 'm.facebook.com',\n 'l.facebook.com',\n 'lm.facebook.com'\n ]\n },\n 'WhatsApp': {\n 'domains': [\n 'web.whatsapp.com'\n ]\n },\n 'Disqus': {\n 'domains': [\n 'redirect.disqus.com',\n 'disq.us',\n 'disqus.com'\n ]\n },\n 'StudiVZ': {\n 'domains': [\n 'studivz.net'\n ]\n },\n 'Fotolog': {\n 'domains': [\n 'fotolog.com'\n ]\n },\n 'ITU Sozluk': {\n 'domains': [\n 'itusozluk.com'\n ]\n },\n 'Google+': {\n 'domains': [\n 'url.google.com',\n 'plus.google.com'\n ]\n },\n 'Nasza-klasa.pl': {\n 'domains': [\n 'nk.pl'\n ]\n },\n 'Qzone': {\n 'domains': [\n 'qzone.qq.com'\n ]\n },\n 'Douban': {\n 'domains': [\n 'douban.com'\n ]\n },\n 'Bebo': {\n 'domains': [\n 'bebo.com'\n ]\n },\n 'Tuenti': {\n 'domains': [\n 'tuenti.com'\n ]\n },\n 'Youtube': {\n 'domains': [\n 'youtube.com',\n 'youtu.be'\n ]\n },\n 'Reddit': {\n 'domains': [\n 'reddit.com'\n ]\n },\n 'Identi.ca': {\n 'domains': [\n 'identi.ca'\n ]\n },\n 'StackOverflow': {\n 'domains': [\n 'stackoverflow.com'\n ]\n },\n 'Mixi': {\n 'domains': [\n 'mixi.jp'\n ]\n },\n 'StumbleUpon': {\n 'domains': [\n 'stumbleupon.com'\n ]\n },\n 'Inci Sozluk': {\n 'domains': [\n 'inci.sozlukspot.com',\n 'incisozluk.com',\n 'incisozluk.cc'\n ]\n },\n 'Viadeo': {\n 'domains': [\n 'viadeo.com'\n ]\n },\n 'Last.fm': {\n 'domains': [\n 'lastfm.ru'\n ]\n },\n 'LiveJournal': {\n 'domains': [\n 'livejournal.ru'\n ]\n },\n 'Tumblr': {\n 'domains': [\n 'tumblr.com',\n 't.umblr.com'\n ]\n },\n 'Hacker News': {\n 'domains': [\n 'news.ycombinator.com'\n ]\n },\n 'Hocam.com': {\n 'domains': [\n 'hocam.com'\n ]\n },\n 'Delicious': {\n 'domains': [\n 'delicious.com'\n ]\n },\n 'Hyves': {\n 'domains': [\n 'hyves.nl'\n ]\n },\n 'Paper.li': {\n 'domains': [\n 'paper.li'\n ]\n },\n 'MoiKrug.ru': {\n 'domains': [\n 'moikrug.ru'\n ]\n }\n }\n};", "//var fs = require('fs')\nimport url from 'url';\nimport querystring from 'querystring';\nimport { REFERRER_DATA, ReferrerData } from './referrer-data.js';\n//import yaml from 'js-yaml';\n//import path = require('path');\n\n//module.exports = Referer\n\n//const dataFile = fs.readFileSync(path.join(__dirname, 'data', 'referrers.yml'));\nconst REFERERS = loadReferrers(REFERRER_DATA);\n\nexport interface ReferrerDictionary {\n [ domain: string ]: {\n name: string;\n medium: string;\n params?: string[];\n };\n}\nfunction loadReferrers(source: ReferrerData): ReferrerDictionary {\n const referrers_dict: ReferrerDictionary = {};\n for (const medium in source) {\n const conf_list = source[ medium ];\n\n for (const referrer_name in conf_list) {\n const config = conf_list[ referrer_name ];\n let params: string[] | null = null;\n\n if (config.parameters) {\n params = config.parameters.map(function (p) { return p.toLowerCase(); });\n }\n config.domains.forEach(function (domain) {\n referrers_dict[ domain ] = {\n 'name': referrer_name,\n 'medium': medium\n };\n if (params) {\n referrers_dict[ domain ][ 'params' ] = params;\n }\n });\n }\n }\n return referrers_dict;\n}\n\nexport class Referrer {\n public known: boolean;\n public referrer: string | null;\n public medium: string;\n public search_parameter: string | null;\n public search_term: string | string[] | null | undefined;\n public referrers: any;\n public uri?: url.UrlWithStringQuery;\n\n constructor (referrer_url?: string, current_url?: string) {\n this.known = false;\n this.referrer = null;\n this.medium = 'unknown';\n this.search_parameter = null;\n this.search_term = null;\n if (!referrer_url) return;\n\n const ref_uri = url.parse(referrer_url);\n const ref_host = ref_uri.hostname;\n this.known = Boolean(~[ 'http:', 'https:' ].indexOf(ref_uri.protocol as string));\n this.uri = ref_uri;\n\n if (!this.known) return;\n\n if (current_url) {\n const curr_uri = url.parse(current_url);\n const curr_host = curr_uri.hostname;\n\n if (curr_host == ref_host) {\n this.medium = 'internal';\n return;\n }\n }\n\n let referrer = this._lookup_referrer(ref_host, ref_uri.pathname, true);\n if (!referrer) {\n referrer = this._lookup_referrer(ref_host, ref_uri.pathname, false);\n if (!referrer) {\n this.medium = 'unknown';\n return;\n }\n }\n\n this.referrer = referrer[ 'name' ];\n this.medium = referrer[ 'medium' ];\n\n if (referrer[ 'medium' ] == 'search') {\n if (!referrer[ 'params' ]) return;\n\n const pqs = querystring.parse(ref_uri?.query || '');\n\n for (const param in pqs) {\n const val = pqs[ param ];\n\n if (referrer[ 'params' ].indexOf(param.toLowerCase()) !== -1) {\n this.search_parameter = param;\n this.search_term = val;\n }\n }\n }\n }\n _lookup_referrer = (ref_host: string | null | undefined, ref_path: string | null, include_path: boolean): any => {\n // console.log(ref_host, ref_path, include_path)\n let referrer = null;\n\n if (include_path) {\n const hostpath = (ref_host ?? '') + (ref_path ?? '');\n referrer = REFERERS[ hostpath ];\n }\n else {\n referrer = REFERERS[ ref_host ?? '' ];\n }\n\n if (!referrer) {\n if (include_path) {\n const path_parts = ref_path?.split('/');\n if (path_parts && path_parts.length > 1) {\n try {\n referrer = REFERERS[ ref_host + '/' + path_parts[ 1 ] ];\n } catch (e) { /* empty */ }\n }\n }\n }\n\n if (!referrer) {\n try {\n\n const idx = (ref_host ?? '').indexOf('.');\n if (idx === -1) return null;\n\n const slicedHost = ref_host?.slice(idx + 1);\n return this._lookup_referrer(\n slicedHost,\n ref_path, include_path\n );\n } catch (e) {\n return null;\n }\n } else return referrer;\n };\n}\n\n", "export enum ADTRACKIFY_EVENT_TYPES {\n NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = 'shopifySubscriptionCreated',\n NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = 'subscription.signupCompleted',\n REQUEST_SET_ACCOUNT_OWNER = 'setAccountOwner',\n REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = 'setAccountSubscriptionId',\n}\n\nexport enum ADTRACKIFY_EVENT_SOURCES {\n SUBSCRIPTIONS = 'subscriptions',\n}\n\nexport const enum PostmarkRequestType {\n SINGLE_EMAIL = 'single_email',\n TEMPLATE_EMAIL = 'template_email'\n}\n\nexport enum ADTRACKIFY_EVENT_BRIDGE_EVENTS {\n SEND_POSTMARK_EMAIL = 'integration.sendPostmarkEmail',\n NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = 'shopifySubscriptionCreated',\n NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = 'subscription.signupCompleted',\n REQUEST_SET_ACCOUNT_OWNER = 'setAccountOwner',\n REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = 'setAccountSubscriptionId',\n}", "import { EventBridgeClient } from '../clients/generic/eventbridge-client.js';\nimport { Message, TemplatedMessage } from 'postmark';\nimport { ADTRACKIFY_EVENT_BRIDGE_EVENTS, PostmarkRequestType } from '../types/internal-events/event-detail-types.js';\n\n\n\nexport class EventBridgeIntegrationService {\n public eventBridgeClient: EventBridgeClient;\n public EVENT_BUS_NAME: string;\n\n constructor (eventBusName: string) {\n this.eventBridgeClient = new EventBridgeClient(eventBusName);\n this.EVENT_BUS_NAME = eventBusName;\n }\n\n public sendPostmarkEmailEvent = async (eventSource: string, postmarkMessage: Message, postmarkServerToken: string) => {\n return await this.eventBridgeClient.buildAndSendEvent(\n eventSource,\n ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL,\n {\n postmarkMessage,\n postmarkRequestType: PostmarkRequestType.SINGLE_EMAIL,\n postmarkServerToken\n });\n };\n\n public sendPostmarkTemplatedEmailEvent = async (eventSource: string, postmarkMessage: TemplatedMessage, postmarkServerToken: string) => {\n return await this.eventBridgeClient.buildAndSendEvent(\n eventSource,\n ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_PO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ACT;AAAA,MACF;AAAA,MACA,cAAc;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,cAAc;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAAA,IACA,aAAU;AAAA,MACR,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACA,cAAc;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AA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,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AA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,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AA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,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QAC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4", "uuidv4", "client", "client", "success", "HttpStatusCodes", "client", "client", "client", "url", "debug", "error", "error", "b", "p", "ACCOUNT_STATUS", "DESTINATIONS", "CustomHTMLLocation", "ShopifyAppInstallStatus", "ShopifyAppSubscriptionStatus", "PLAN_BILLING_FREQUENCY", "PAYMENT_STATUS", "SUBSCRIPTION_STATUS", "PAYMENT_GATEWAY", "LogLevel", "ADTRACKIFY_STANDARD_EVENT", "ADTRACKIFY_EVENT_TYPE", "stage", "x", "p", "ADTRACKIFY_EVENT_TYPES", "ADTRACKIFY_EVENT_SOURCES", "PostmarkRequestType", "ADTRACKIFY_EVENT_BRIDGE_EVENTS"]
|
|
7
7
|
}
|