Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSdoc Linting Fixes for Multiiple RTD Modules #10973

Merged
merged 4 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/a1MediaRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { submodule } from '../src/hook.js';
import { getStorageManager } from '../src/storageManager.js';
import { isEmptyStr, mergeDeep } from '../src/utils.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const REAL_TIME_MODULE = 'realTimeData';
const MODULE_NAME = 'a1Media';
const SCRIPT_URL = 'https://linkback.contentsfeed.com/src';
Expand Down
4 changes: 4 additions & 0 deletions modules/adnuntiusRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { ajax } from '../src/ajax.js';

import { config as sourceConfig } from '../src/config.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const GVLID = 855;

function init(config, userConsent) {
Expand Down
4 changes: 4 additions & 0 deletions modules/airgridRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import {getStorageManager} from '../src/storageManager.js';
import {loadExternalScript} from '../src/adloader.js';
import {MODULE_TYPE_RTD} from '../src/activities/modules.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const MODULE_NAME = 'realTimeData';
const SUBMODULE_NAME = 'airgrid';
const AG_TCF_ID = 782;
Expand Down
4 changes: 4 additions & 0 deletions modules/arcspanRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { submodule } from '../src/hook.js';
import { mergeDeep } from '../src/utils.js';
import {loadExternalScript} from '../src/adloader.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

/** @type {string} */
const MODULE_NAME = 'realTimeData';
const SUBMODULE_NAME = 'arcspan';
Expand Down
4 changes: 4 additions & 0 deletions modules/blueconicRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import {submodule} from '../src/hook.js';
import {mergeDeep, isPlainObject, logMessage, logError} from '../src/utils.js';
import {MODULE_TYPE_RTD} from '../src/activities/modules.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const MODULE_NAME = 'realTimeData';
const SUBMODULE_NAME = 'blueconic';

Expand Down
4 changes: 4 additions & 0 deletions modules/brandmetricsRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import {loadExternalScript} from '../src/adloader.js';
import * as events from '../src/events.js';
import CONSTANTS from '../src/constants.json';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const MODULE_NAME = 'brandmetrics'
const MODULE_CODE = MODULE_NAME
const RECEIVED_EVENTS = []
Expand Down
5 changes: 5 additions & 0 deletions modules/browsiRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ import {getGlobal} from '../src/prebidGlobal.js';
import * as events from '../src/events.js';
import CONSTANTS from '../src/constants.json';
import {MODULE_TYPE_RTD} from '../src/activities/modules.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const MODULE_NAME = 'browsi';

const storage = getStorageManager({moduleType: MODULE_TYPE_RTD, moduleName: MODULE_NAME});
Expand Down
4 changes: 4 additions & 0 deletions modules/cleanioRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import { logError, generateUUID, insertElement } from '../src/utils.js';
import * as events from '../src/events.js';
import CONSTANTS from '../src/constants.json';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

// ============================ MODULE STATE ===============================

/**
Expand Down
4 changes: 4 additions & 0 deletions modules/dgkeywordRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import { ajax } from '../src/ajax.js';
import { submodule } from '../src/hook.js';
import { getGlobal } from '../src/prebidGlobal.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

/**
* get keywords from api server. and set keywords.
* @param {Object} reqBidsConfigObj
Expand Down
6 changes: 6 additions & 0 deletions modules/experianRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import {
} from '../src/utils.js';
import { ajax } from '../src/ajax.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
* @typedef {import('../modules/rtdModule/index.js').SubmoduleConfig} SubmoduleConfig
* @typedef {import('../modules/rtdModule/index.js').UserConsentData} UserConsentData
*/

export const SUBMODULE_NAME = 'experian_rtid';
export const EXPERIAN_RTID_DATA_KEY = 'experian_rtid_data';
export const EXPERIAN_RTID_EXPIRATION_KEY = 'experian_rtid_expiration';
Expand Down
4 changes: 4 additions & 0 deletions modules/geoedgeRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ import { loadExternalScript } from '../src/adloader.js';
import { auctionManager } from '../src/auctionManager.js';
import { getRefererInfo } from '../src/refererDetection.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

/** @type {string} */
const SUBMODULE_NAME = 'geoedge';
/** @type {string} */
Expand Down
4 changes: 4 additions & 0 deletions modules/goldfishAdsRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { submodule } from '../src/hook.js';
import { getStorageManager } from '../src/storageManager.js';
import { deepAccess } from '../src/utils.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

export const MODULE_NAME = 'goldfishAdsRtd';
export const MODULE_TYPE = 'realTimeData';
export const ENDPOINT_URL = 'https://prebid.goldfishads.com/iab-segments';
Expand Down
4 changes: 4 additions & 0 deletions modules/hadronRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import {isFn, isStr, isArray, deepEqual, isPlainObject, logError, logInfo} from
import {loadExternalScript} from '../src/adloader.js';
import {MODULE_TYPE_RTD} from '../src/activities/modules.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const LOG_PREFIX = 'User ID - HadronRtdProvider submodule: ';
const MODULE_NAME = 'realTimeData';
const SUBMODULE_NAME = 'hadron';
Expand Down
3 changes: 3 additions & 0 deletions modules/idWardRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import {getStorageManager} from '../src/storageManager.js';
import {submodule} from '../src/hook.js';
import {isPlainObject, mergeDeep, logMessage, logError} from '../src/utils.js';
import {MODULE_TYPE_RTD} from '../src/activities/modules.js';
/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const MODULE_NAME = 'realTimeData';
const SUBMODULE_NAME = 'idWard';
Expand Down
4 changes: 4 additions & 0 deletions modules/imRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ import {
import {submodule} from '../src/hook.js';
import {MODULE_TYPE_RTD} from '../src/activities/modules.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

export const imUidLocalName = '__im_uid';
export const imVidCookieName = '_im_vid';
export const imRtdLocalName = '__im_sids';
Expand Down
5 changes: 5 additions & 0 deletions modules/jwplayerRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ import {deepAccess, logError} from '../src/utils.js';
import {find} from '../src/polyfill.js';
import {getGlobal} from '../src/prebidGlobal.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
* @typedef {import('../modules/rtdModule/index.js').adUnit} adUnit
*/

const SUBMODULE_NAME = 'jwplayer';
const JWPLAYER_DOMAIN = SUBMODULE_NAME + '.com';
const segCache = {};
Expand Down
4 changes: 4 additions & 0 deletions modules/mgidRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import {getStorageManager} from '../src/storageManager.js';
import {getRefererInfo} from '../src/refererDetection.js';
import {MODULE_TYPE_RTD} from '../src/activities/modules.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const MODULE_NAME = 'realTimeData';
const SUBMODULE_NAME = 'mgid';
const MGID_RTD_API_URL = 'https://servicer.mgid.com/sda';
Expand Down
4 changes: 4 additions & 0 deletions modules/oneKeyRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { submodule } from '../src/hook.js';
import { mergeDeep, logError, logMessage, deepSetValue, generateUUID } from '../src/utils.js';
import { getGlobal } from '../src/prebidGlobal.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const SUBMODULE_NAME = 'oneKey';
const prefixLog = 'OneKey.RTD-module'

Expand Down
4 changes: 4 additions & 0 deletions modules/optimeraRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ import { logInfo, logError } from '../src/utils.js';
import { submodule } from '../src/hook.js';
import { ajaxBuilder } from '../src/ajax.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

/** @type {ModuleParams} */
let _moduleParams = {};

Expand Down
4 changes: 4 additions & 0 deletions modules/oxxionRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { logInfo, logError } from '../src/utils.js'
import { ajax } from '../src/ajax.js';
import adapterManager from '../src/adapterManager.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const LOG_PREFIX = 'oxxionRtdProvider submodule: ';

const bidderAliasRegistry = adapterManager.aliasRegistry || {};
Expand Down
4 changes: 4 additions & 0 deletions modules/permutiveRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import {deepAccess, deepSetValue, isFn, logError, mergeDeep, isPlainObject, safe
import {includes} from '../src/polyfill.js';
import {MODULE_TYPE_RTD} from '../src/activities/modules.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const MODULE_NAME = 'permutive'

const logger = prefixLog('[PermutiveRTD]')
Expand Down
4 changes: 4 additions & 0 deletions modules/reconciliationRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import {ajaxBuilder} from '../src/ajax.js';
import {generateUUID, isGptPubadsDefined, logError, timestamp} from '../src/utils.js';
import {find} from '../src/polyfill.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

/** @type {Object} */
const MessageType = {
IMPRESSION_REQUEST: 'rsdk:impression:req',
Expand Down
4 changes: 4 additions & 0 deletions modules/timeoutRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import * as ajax from '../src/ajax.js';
import { logInfo, deepAccess, logError } from '../src/utils.js';
import { getGlobal } from '../src/prebidGlobal.js';

/**
* @typedef {import('../modules/rtdModule/index.js').RtdSubmodule} RtdSubmodule
*/

const SUBMODULE_NAME = 'timeout';

// this allows the stubbing of functions during testing
Expand Down