Skip to content

Commit e392940

Browse files
Copilotabhandage
andcommitted
Add 6 more destinations to centralized versioning-info.ts
Added: - attentive (v1) - linkedin-conversions (202505) - ms-bing-ads-audiences (v13) - first-party-dv360 (v4) - google-enhanced-conversions (v19) - google-sheets (v4) Co-authored-by: abhandage <174417010+abhandage@users.noreply.github.com>
1 parent 66a7ab2 commit e392940

File tree

7 files changed

+47
-8
lines changed

7 files changed

+47
-8
lines changed

packages/destination-actions/src/destinations/attentive/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import { ATTENTIVE_API_VERSION } from '../versioning-info'
2+
13
export const API_URL = 'https://api.attentivemobile.com'
2-
export const API_VERSION = 'v1'
4+
export const API_VERSION = ATTENTIVE_API_VERSION
35
export const MARKETING = 'MARKETING' as const
46
export const TRANSACTIONAL = 'TRANSACTIONAL' as const
57
export const SUBSCRIPTION_TYPES = [MARKETING, TRANSACTIONAL] as const

packages/destination-actions/src/destinations/first-party-dv360/functions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { Features, IntegrationError, RequestClient, StatsContext } from '@segmen
22
import { Payload } from './addToAudContactInfo/generated-types'
33
import { Payload as DeviceIdPayload } from './addToAudMobileDeviceId/generated-types'
44
import { processHashing } from '../../lib/hashing-utils'
5+
import { FIRST_PARTY_DV360_API_VERSION, FIRST_PARTY_DV360_CANARY_API_VERSION } from '../versioning-info'
56

6-
export const API_VERSION = 'v4'
7-
export const CANARY_API_VERSION = 'v4'
7+
export const API_VERSION = FIRST_PARTY_DV360_API_VERSION
8+
export const CANARY_API_VERSION = FIRST_PARTY_DV360_CANARY_API_VERSION
89
export const FLAGON_NAME = 'first-party-dv360-canary-version'
910

1011
const DV360API = `https://displayvideo.googleapis.com/`

packages/destination-actions/src/destinations/google-enhanced-conversions/functions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ import type { Payload as UserListPayload } from './userList/generated-types'
3333
import { RefreshTokenResponse } from '.'
3434
import { STATUS_CODE_MAPPING } from './constants'
3535
import { processHashing } from '../../lib/hashing-utils'
36-
export const API_VERSION = 'v19'
36+
import { GOOGLE_ENHANCED_CONVERSIONS_API_VERSION } from '../versioning-info'
37+
38+
export const API_VERSION = GOOGLE_ENHANCED_CONVERSIONS_API_VERSION
3739
export const CANARY_API_VERSION = 'v21'
3840
export const FLAGON_NAME = 'google-enhanced-canary-version'
3941
export const FLAGON_NAME_PHONE_VALIDATION_CHECK = 'google-enhanced-phone-validation-check'

packages/destination-actions/src/destinations/google-sheets/googleapis/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { ModifiedResponse, RequestClient } from '@segment/actions-core'
22
import type { MappingSettings } from '../postSheet/operations'
3+
import { GOOGLE_SHEETS_API_VERSION } from '../versioning-info'
34

4-
const API_VERSION = 'v4'
5+
const API_VERSION = GOOGLE_SHEETS_API_VERSION
56

67
export type GetResponse = {
78
range: string

packages/destination-actions/src/destinations/linkedin-conversions/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { DependsOnConditions } from '@segment/actions-core/destination-kit/types'
2+
import { LINKEDIN_CONVERSIONS_API_VERSION } from '../versioning-info'
23

3-
export const LINKEDIN_API_VERSION = '202505'
4+
export const LINKEDIN_API_VERSION = LINKEDIN_CONVERSIONS_API_VERSION
45
export const BASE_URL = 'https://api.linkedin.com/rest'
56
export const LINKEDIN_SOURCE_PLATFORM = 'SEGMENT'
67

packages/destination-actions/src/destinations/ms-bing-ads-audiences/constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { DependsOnConditions } from '@segment/actions-core/destination-kittypes'
1+
import { DependsOnConditions } from '@segment/actions-core/destination-kit/types'
2+
import { MS_BING_ADS_AUDIENCES_API_VERSION } from '../versioning-info'
23

3-
const API_VERSION = 'v13'
4+
const API_VERSION = MS_BING_ADS_AUDIENCES_API_VERSION
45
export const BASE_URL = `https://campaign.api.bingads.microsoft.com/CampaignManagement/${API_VERSION}`
56
export const TOKEN_URL = 'https://login.microsoftonline.com/common/oauth2/v2.0/token'
67
export const EMAIL_CONDITION: DependsOnConditions = {

packages/destination-actions/src/destinations/versioning-info.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,34 @@ export const SALESFORCE_MARKETING_CLOUD_API_VERSIONS = {
164164
* TikTok Base URL
165165
*/
166166
export const TIKTOK_BASE_URL = 'https://business-api.tiktok.com/open_api/'
167+
168+
/**
169+
* Attentive API Version
170+
*/
171+
export const ATTENTIVE_API_VERSION = 'v1'
172+
173+
/**
174+
* LinkedIn Conversions API Version
175+
*/
176+
export const LINKEDIN_CONVERSIONS_API_VERSION = '202505'
177+
178+
/**
179+
* Microsoft Bing Ads Audiences API Version
180+
*/
181+
export const MS_BING_ADS_AUDIENCES_API_VERSION = 'v13'
182+
183+
/**
184+
* First Party DV360 API Version
185+
*/
186+
export const FIRST_PARTY_DV360_API_VERSION = 'v4'
187+
export const FIRST_PARTY_DV360_CANARY_API_VERSION = 'v4'
188+
189+
/**
190+
* Google Enhanced Conversions API Version
191+
*/
192+
export const GOOGLE_ENHANCED_CONVERSIONS_API_VERSION = 'v19'
193+
194+
/**
195+
* Google Sheets API Version
196+
*/
197+
export const GOOGLE_SHEETS_API_VERSION = 'v4'

0 commit comments

Comments
 (0)