-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: unit test cases with minor edits
- Loading branch information
1 parent
0a608b8
commit 33b87be
Showing
5 changed files
with
346 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,8 @@ | ||
const { getMappingConfig } = require('../../../../v0/util'); | ||
|
||
// ref : https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/conversions-api?view=li-lms-2024-02&tabs=http#adding-multiple-conversion-events-in-a-batch | ||
const BATCH_ENDPOINT = 'https://api.linkedin.com/rest/conversionEvents'; | ||
const API_HEADER_METHOD = 'BATCH_CREATE'; | ||
const API_VERSION = '202402'; // yyyymm format | ||
const API_PROTOCOL_VERSION = '2.0.0'; | ||
|
||
const CONFIG_CATEGORIES = { | ||
USER_INFO: { | ||
name: 'linkedinUserInfoConfig', | ||
type: 'user', | ||
}, | ||
}; | ||
|
||
const MAPPING_CONFIG = getMappingConfig(CONFIG_CATEGORIES, __dirname); | ||
const ALLOWED_OPT_IN_VALUES = ['1', '2', '']; | ||
|
||
module.exports = { | ||
MAX_BATCH_SIZE: 1000, | ||
BATCH_ENDPOINT, | ||
API_HEADER_METHOD, | ||
API_VERSION, | ||
API_PROTOCOL_VERSION, | ||
CONFIG_CATEGORIES, | ||
MAPPING_CONFIG, | ||
EMAIL_FIELD_ID: 3, | ||
OPT_IN_FILED_ID: 31, | ||
ALLOWED_OPT_IN_VALUES, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.