Skip to content

Commit

Permalink
DOTORG-872: Update Blackbaud Raiser's Edge NXT refreshAccessToken (se…
Browse files Browse the repository at this point in the history
…gmentio#1340)

* main (#5)

* Publish

 - @segment/actions-cli-internal@3.123.2
 - @segment/actions-cli@3.123.2
 - @segment/action-destinations@3.127.2

* Subscribe to more events (Redo without required type) (#986)

* Add subscriptions to track event

* Generate types and new snapshot

* Add test

* Improve labels and descriptions

* Generated types

* Change description

* Generate types

* Remove required

* Generate types

* Update Ripe web destination (#968)

* Update Ripe web destination

- Add new endpoint setting for testing purposes
- Remove alias call
- Update misleading anonymousId descriptions

* Update erroneous default paths

* Set anonymousId in identify call

* Heap 34916 - add session_id + update segment library for tracking purposes (#787)

* Fix events payload

* Use the single event not the bulk

* Fix tests

* Fix should not override

* remove console log and update SEGMENT_LIB var

* update constant value

* update browser tests as well

* Adding Group support for customerio -Rename identifier field names (#973)

* Initial commit for objects

* Added Test cases

* Adding Tests validation for the payload

* committing generate type file

* Adding group support from identify

* Fixing conflicts

* Adding traits to attributes property for createUpdateObject action

* renaming id and type_id to object_id and object_type_id

Co-authored-by: kishoredevarasettyn <kishore.devarasetty@customer.io>

* SalesWings (Actions) Destination (#945)

* Generated integration from scaffold

* Fix action name

* Implement SalesWings destination actions

* Send user agent, rearrange fields

* Bugfixes

* Remove debug logging

* First tests

* Auth tests & track event tests

* Page event tests

* Identify event tests

* Screen event tests

* Event batch test

* More event batch tests

* Change API key description

* Commit generated types

* Minor cleanup

* Fix square brackets in field description UI

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Hardcoding timestamps for snapshot tests

* Extract email from properties of Track event

* Add action description

* Add default subscription to action

* Add destination present

* Merge URL fields

* Dedicated actions per event type

* Cleanup

* Update field descriptions

* Update geenrated types

Co-authored-by: Yevgeny Terov <73266004+yevsw@users.noreply.github.com>
Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>
Co-authored-by: Yevgeny Terov <yevgeny@saleswingsapp.com>

* Changing default subscription to group for group call (#995)

* Initial commit for objects

* Added Test cases

* Adding Tests validation for the payload

* committing generate type file

* Adding group support from identify

* Fixing conflicts

* Adding traits to attributes property for createUpdateObject action

* setting default subscription as group for createUpdateObject and addressing other review comments

* correcting merge overrides

Co-authored-by: kishoredevarasettyn <kishore.devarasetty@customer.io>

* Add anonymous id as a user property (#981)

* Update setting description in Google Ads Conversions (#983)

* HGI-237 | Updated Description for Braze Cohorts Fields (#992)

* udpated description for braze cohorts

* updated description for braze cohorts

* updated description in mapping fields

* updated description

* updated event_properties to hidden

* made event_properties unhidden

Co-authored-by: Gaurav Kochar <gaurav.kochar@segment.com>

* Increase CI timeout to 15 minutes and 10 minutes respectively (#985)

* Increase CI timeout to 15 minutes

* Bump browser tests to 10 minutes

Co-authored-by: Nolan Chan <nolan.chan@segment.com>

* Pipedrive actions PE-20 (#996)

* fix for pipedrive pe-20 issue

* removing default visible_to

* Register Saleswing Action (#999)

Co-authored-by: Nolan Chan <nolan.chan@segment.com>

* Publish

 - @segment/browser-destinations@3.72.0
 - @segment/actions-cli-internal@3.124.0
 - @segment/actions-cli@3.124.0
 - @segment/action-destinations@3.128.0

* ACT-362 Brackets Support (#993)

* add support for brackets inside js keys in get method

* add double quotes

* explanatory text + new link

* safari support

* remove invalid bracket test since it is now supported

* use class based regex to avoid parseError

* actually convert the regex correctly

* cleanup

* split tests by functionality

* Refactor .get test (#1000)

* Heap Fix for empty event name (#1004)

* fix for pe-52

* fixing breaking tests

* Publish

 - @segment/actions-shared@1.32.0
 - @segment/browser-destinations@3.73.0
 - @segment/actions-cli-internal@3.125.0
 - @segment/actions-cli@3.125.0
 - @segment/actions-core@3.50.0
 - @segment/action-destinations@3.129.0

* fix scaffolding for oauth (#1008)

* [CHANNELS-329] Add WhatsApp support for Twilio Engage (#987)

* feat: added whatsapp support

* fix: added missing dependencies

* refactor: minor cleanup

* fix: moved dependency to package level

* fix: uri encoding for get traits

* fix: using same auth scheme for sms & whatsapp

whatsApp thankfully allows using apiKeySid & apiSecret instead of accountSid & authToken

* fix: reverted changed package version

* feat: allow bypassing contentVariables reconciliation

* Publish

 - @segment/actions-cli-internal@3.126.0
 - @segment/actions-cli@3.126.0
 - @segment/action-destinations@3.130.0

* Add browser destination tests with saucelabs  (#994)

* Node 18 Upgrade (#991)

* packages

* ci + nvm

* lock for 18

* fix webpack hashing issue

* node types to 18

* Update node version for browser-tests and snyk

* Fix tests

* Try to fix browser tests

* Fix pipedrive unit tests

* Fix domain in snapshot tests

* Fix yarn subscriptions

* Update README

---------

Co-authored-by: Dan Lasky <dan.lasky@segment.com>

* Use node18 for browser tests destinations (#1014)

* Contribution pe 53 (#1007)

* updating contributing guidelines

* adding extra instructions for post deployment changes

* spelling corrections

* spelling corrections

* Update CONTRIBUTING.md

Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>

---------

Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>

* Qualtrics upsert transaction (#963)

* adding upsert contact transacion destination

* fixing snapshots

* Updating perform function for upsertTransaction

* Adding dynamic fields for directoryId. Updating field descriptions. Update upsertTransaction defaultSubscription

* updating types

* Update qualtrics destination name and descriptons on actions

---------

Co-authored-by: Carl Lee <carlmlee@qualtrics.com>

* fixing a couple of issues with new Ironclad destination (#1002)

* fixing a couple of issues with new Ironclad destination

* adding updated generated types

* fixing broken test

* [salesforce] - Verify the `instanceUrl` is a valid Salesforce domain (#997)

* Regex and WIP unit tests

* Unit tests working

* Updates regex and unit tests

* Updates other unit tests

* Saving package.json

* Adds a couple more unit tests

* Removes package.json from commits

* Removes package.json from commits

* Imports request client using absolute path instead of relative path

* Enforce https

* Publish

 - @segment/actions-shared@1.33.0
 - @segment/browser-destinations-integration-tests@0.1.0
 - @segment/browser-destinations@3.74.0
 - @segment/actions-cli-internal@3.127.0
 - @segment/actions-cli@3.127.0
 - @segment/actions-core@3.51.0
 - @segment/action-destinations@3.131.0
 - @segment/destination-subscriptions@3.15.0

* Fix CommandBar browser destination initialization when CommandBar has already been loaded through other means (#1009)

Co-authored-by: Thomas Kainrad <thomas@tkainrad.dev>

* remove flow that attempts to create a JIRA ticket (#1021)

* Twilio Studio as a Segment Action Destination (#1023)

* Twilio Studio as a Segment Action Destination

* Replaced phone number with userid in the cache key

* Addressed review comments

* DOTORG-839: Blackbaud Raiser's Edge NXT Destination (#998)

* DOTORG-839: Create or Update Individual Constituent Action (#1)

* DOTORG-839 Added OAuth2 settings for Blackbaud (#2)

* Move bbApiSubscriptionKey to settings

* Only aggregate integrationErrors

* Update Online Presence label

* Update directory structure

* Add types

* Abstract API calls

* Add dateStringToFuzzyDate

* Add types

* Don't retry 401s

* Don't catch errors on constituent search or creation

* Concatenate integrationErrors

* Add throwHttpErrors

* Set default for lookup_id to userId

* Pass constituentId to updateConstituent

* Remove try/catch

* Use camelCase traits

* Add filterObjectListByMatchFields

* Check if primary property is defined

* DOTORG-839 Added authentication test (#3)

* Don't match on country

* Use datetime type

* Strip non-numeric characters from phone when matching

* Don't match on undefined boolean fields

* Update generated-types.ts

* Fix linting errors

* Move fixtures out of tests directory

* Update constituentData

* Update default lookup_id mapping

* Update testAuthentication

* Remove UNEXPECTED_RECORD_COUNT error

* Update tests

---------

Co-authored-by: twilio-hwong <91703194+twilio-hwong@users.noreply.github.com>

---------

Co-authored-by: Nick Aguilar <nicholas.aguilar@segment.com>
Co-authored-by: Stella Chung <schung507@gmail.com>
Co-authored-by: Simon <simpajj@users.noreply.github.com>
Co-authored-by: A Murphy <amanda.murphy@heapanalytics.com>
Co-authored-by: kishoredevarasettyn <97026912+kishoredevarasettyn@users.noreply.github.com>
Co-authored-by: kishoredevarasettyn <kishore.devarasetty@customer.io>
Co-authored-by: Denis Egorushkin <98813888+denis-egorushkin-sw@users.noreply.github.com>
Co-authored-by: Yevgeny Terov <73266004+yevsw@users.noreply.github.com>
Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>
Co-authored-by: Yevgeny Terov <yevgeny@saleswingsapp.com>
Co-authored-by: maryamsharif <99763167+maryamsharif@users.noreply.github.com>
Co-authored-by: Innovative-GauravKochar <117165746+Innovative-GauravKochar@users.noreply.github.com>
Co-authored-by: Gaurav Kochar <gaurav.kochar@segment.com>
Co-authored-by: Nolan Chan <nolan.chan@segment.com>
Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Co-authored-by: Nolan Chan <nolanchan@berkeley.edu>
Co-authored-by: Dan <dlasky@users.noreply.github.com>
Co-authored-by: Seth Silesky <5115498+silesky@users.noreply.github.com>
Co-authored-by: rhall-twilio <103517471+rhall-twilio@users.noreply.github.com>
Co-authored-by: alfrimpong <119889384+alfrimpong@users.noreply.github.com>
Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>
Co-authored-by: Dan Lasky <dan.lasky@segment.com>
Co-authored-by: drakauskas <119876674+drakauskas@users.noreply.github.com>
Co-authored-by: Carl Lee <carlmlee@qualtrics.com>
Co-authored-by: Wasi Haider <whaider@twilio.com>
Co-authored-by: Thomas Kainrad <7394822+tkainrad@users.noreply.github.com>
Co-authored-by: Thomas Kainrad <thomas@tkainrad.dev>
Co-authored-by: aradhakrishnan-twilio <116877054+aradhakrishnan-twilio@users.noreply.github.com>
Co-authored-by: twilio-hwong <91703194+twilio-hwong@users.noreply.github.com>

* main (#7)

* Publish

 - @segment/actions-cli-internal@3.123.2
 - @segment/actions-cli@3.123.2
 - @segment/action-destinations@3.127.2

* Subscribe to more events (Redo without required type) (#986)

* Add subscriptions to track event

* Generate types and new snapshot

* Add test

* Improve labels and descriptions

* Generated types

* Change description

* Generate types

* Remove required

* Generate types

* Update Ripe web destination (#968)

* Update Ripe web destination

- Add new endpoint setting for testing purposes
- Remove alias call
- Update misleading anonymousId descriptions

* Update erroneous default paths

* Set anonymousId in identify call

* Heap 34916 - add session_id + update segment library for tracking purposes (#787)

* Fix events payload

* Use the single event not the bulk

* Fix tests

* Fix should not override

* remove console log and update SEGMENT_LIB var

* update constant value

* update browser tests as well

* Adding Group support for customerio -Rename identifier field names (#973)

* Initial commit for objects

* Added Test cases

* Adding Tests validation for the payload

* committing generate type file

* Adding group support from identify

* Fixing conflicts

* Adding traits to attributes property for createUpdateObject action

* renaming id and type_id to object_id and object_type_id

Co-authored-by: kishoredevarasettyn <kishore.devarasetty@customer.io>

* SalesWings (Actions) Destination (#945)

* Generated integration from scaffold

* Fix action name

* Implement SalesWings destination actions

* Send user agent, rearrange fields

* Bugfixes

* Remove debug logging

* First tests

* Auth tests & track event tests

* Page event tests

* Identify event tests

* Screen event tests

* Event batch test

* More event batch tests

* Change API key description

* Commit generated types

* Minor cleanup

* Fix square brackets in field description UI

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Hardcoding timestamps for snapshot tests

* Extract email from properties of Track event

* Add action description

* Add default subscription to action

* Add destination present

* Merge URL fields

* Dedicated actions per event type

* Cleanup

* Update field descriptions

* Update geenrated types

Co-authored-by: Yevgeny Terov <73266004+yevsw@users.noreply.github.com>
Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>
Co-authored-by: Yevgeny Terov <yevgeny@saleswingsapp.com>

* Changing default subscription to group for group call (#995)

* Initial commit for objects

* Added Test cases

* Adding Tests validation for the payload

* committing generate type file

* Adding group support from identify

* Fixing conflicts

* Adding traits to attributes property for createUpdateObject action

* setting default subscription as group for createUpdateObject and addressing other review comments

* correcting merge overrides

Co-authored-by: kishoredevarasettyn <kishore.devarasetty@customer.io>

* Add anonymous id as a user property (#981)

* Update setting description in Google Ads Conversions (#983)

* HGI-237 | Updated Description for Braze Cohorts Fields (#992)

* udpated description for braze cohorts

* updated description for braze cohorts

* updated description in mapping fields

* updated description

* updated event_properties to hidden

* made event_properties unhidden

Co-authored-by: Gaurav Kochar <gaurav.kochar@segment.com>

* Increase CI timeout to 15 minutes and 10 minutes respectively (#985)

* Increase CI timeout to 15 minutes

* Bump browser tests to 10 minutes

Co-authored-by: Nolan Chan <nolan.chan@segment.com>

* Pipedrive actions PE-20 (#996)

* fix for pipedrive pe-20 issue

* removing default visible_to

* Register Saleswing Action (#999)

Co-authored-by: Nolan Chan <nolan.chan@segment.com>

* Publish

 - @segment/browser-destinations@3.72.0
 - @segment/actions-cli-internal@3.124.0
 - @segment/actions-cli@3.124.0
 - @segment/action-destinations@3.128.0

* ACT-362 Brackets Support (#993)

* add support for brackets inside js keys in get method

* add double quotes

* explanatory text + new link

* safari support

* remove invalid bracket test since it is now supported

* use class based regex to avoid parseError

* actually convert the regex correctly

* cleanup

* split tests by functionality

* Refactor .get test (#1000)

* Heap Fix for empty event name (#1004)

* fix for pe-52

* fixing breaking tests

* Publish

 - @segment/actions-shared@1.32.0
 - @segment/browser-destinations@3.73.0
 - @segment/actions-cli-internal@3.125.0
 - @segment/actions-cli@3.125.0
 - @segment/actions-core@3.50.0
 - @segment/action-destinations@3.129.0

* fix scaffolding for oauth (#1008)

* [CHANNELS-329] Add WhatsApp support for Twilio Engage (#987)

* feat: added whatsapp support

* fix: added missing dependencies

* refactor: minor cleanup

* fix: moved dependency to package level

* fix: uri encoding for get traits

* fix: using same auth scheme for sms & whatsapp

whatsApp thankfully allows using apiKeySid & apiSecret instead of accountSid & authToken

* fix: reverted changed package version

* feat: allow bypassing contentVariables reconciliation

* Publish

 - @segment/actions-cli-internal@3.126.0
 - @segment/actions-cli@3.126.0
 - @segment/action-destinations@3.130.0

* Add browser destination tests with saucelabs  (#994)

* Node 18 Upgrade (#991)

* packages

* ci + nvm

* lock for 18

* fix webpack hashing issue

* node types to 18

* Update node version for browser-tests and snyk

* Fix tests

* Try to fix browser tests

* Fix pipedrive unit tests

* Fix domain in snapshot tests

* Fix yarn subscriptions

* Update README

---------

Co-authored-by: Dan Lasky <dan.lasky@segment.com>

* Use node18 for browser tests destinations (#1014)

* Contribution pe 53 (#1007)

* updating contributing guidelines

* adding extra instructions for post deployment changes

* spelling corrections

* spelling corrections

* Update CONTRIBUTING.md

Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>

---------

Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>

* Qualtrics upsert transaction (#963)

* adding upsert contact transacion destination

* fixing snapshots

* Updating perform function for upsertTransaction

* Adding dynamic fields for directoryId. Updating field descriptions. Update upsertTransaction defaultSubscription

* updating types

* Update qualtrics destination name and descriptons on actions

---------

Co-authored-by: Carl Lee <carlmlee@qualtrics.com>

* fixing a couple of issues with new Ironclad destination (#1002)

* fixing a couple of issues with new Ironclad destination

* adding updated generated types

* fixing broken test

* [salesforce] - Verify the `instanceUrl` is a valid Salesforce domain (#997)

* Regex and WIP unit tests

* Unit tests working

* Updates regex and unit tests

* Updates other unit tests

* Saving package.json

* Adds a couple more unit tests

* Removes package.json from commits

* Removes package.json from commits

* Imports request client using absolute path instead of relative path

* Enforce https

* Publish

 - @segment/actions-shared@1.33.0
 - @segment/browser-destinations-integration-tests@0.1.0
 - @segment/browser-destinations@3.74.0
 - @segment/actions-cli-internal@3.127.0
 - @segment/actions-cli@3.127.0
 - @segment/actions-core@3.51.0
 - @segment/action-destinations@3.131.0
 - @segment/destination-subscriptions@3.15.0

* Fix CommandBar browser destination initialization when CommandBar has already been loaded through other means (#1009)

Co-authored-by: Thomas Kainrad <thomas@tkainrad.dev>

* remove flow that attempts to create a JIRA ticket (#1021)

* Twilio Studio as a Segment Action Destination (#1023)

* Twilio Studio as a Segment Action Destination

* Replaced phone number with userid in the cache key

* Addressed review comments

* DOTORG-839: Blackbaud Raiser's Edge NXT Destination (#998)

* DOTORG-839: Create or Update Individual Constituent Action (#1)

* DOTORG-839 Added OAuth2 settings for Blackbaud (#2)

* Move bbApiSubscriptionKey to settings

* Only aggregate integrationErrors

* Update Online Presence label

* Update directory structure

* Add types

* Abstract API calls

* Add dateStringToFuzzyDate

* Add types

* Don't retry 401s

* Don't catch errors on constituent search or creation

* Concatenate integrationErrors

* Add throwHttpErrors

* Set default for lookup_id to userId

* Pass constituentId to updateConstituent

* Remove try/catch

* Use camelCase traits

* Add filterObjectListByMatchFields

* Check if primary property is defined

* DOTORG-839 Added authentication test (#3)

* Don't match on country

* Use datetime type

* Strip non-numeric characters from phone when matching

* Don't match on undefined boolean fields

* Update generated-types.ts

* Fix linting errors

* Move fixtures out of tests directory

* Update constituentData

* Update default lookup_id mapping

* Update testAuthentication

* Remove UNEXPECTED_RECORD_COUNT error

* Update tests

---------

Co-authored-by: twilio-hwong <91703194+twilio-hwong@users.noreply.github.com>

* Google Analytics 4 Web Destination (#1012)

* addPaymentInfo Action

* ga4 types, properties, and functions

* set config fields action poc

* set config fields action poc

* GA4 all action created

* Remove unit test cases files

* Added defaultSubscription tag in viewItemList and generateLead Action

* added register code for GA4 in broweser-destinations

* add customEvent action

* set config action & custom event action

* Delete snapshot.test.ts

* Delete index.test.ts

* clean up & add mappings for preset

* updated types and removed picklist

* Added test cases for GA4 actions

* Added test cases

* added custom event unit test + cleaned up merge issues and commented code

* fixed typo

* add back ripe and commandbar to index file

* added comment on non using variable

* Apply suggestions from code review

Co-authored-by: Neek Sandhu <neek.sandhu@outlook.com>

* revert set configuration field actions

* added updateUser function, and updated event to payload

* reverted back gtag function and datalayer setup

* add gtag type and remove comment

* update yarn.lock file

* add viewItemList & disable linter for args

* remove gtag.js type dependency

* update unit tests

* added events to defaultSubscriptions

* update index.js

---------

Co-authored-by: Varadarajan V <vvijayaragavan@twilio.com>
Co-authored-by: Ankit Gupta <ankit.gupta@segment.com>
Co-authored-by: Neek Sandhu <neek.sandhu@outlook.com>

* livelike-cloud action destination (PE-41) (#1020)

* created livelike-cloud action destination with one trackEvent action and three presets and added unit tests

* Update packages/destination-actions/src/destinations/livelike-cloud/trackEvent/index.ts

Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>

---------

Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>

* Qualtrics - Fixed timezone issue in unit test (#1026)

* Fixed timezone issue in unit test

* refactored to use dayjs from lib

* generate types (#1028)

* PE-47 - Merge Algolia Insights (#1027)

* Algolia insights integration (#975)

* feat: initial commit after scaffold

* feat: clarify insights API and impliment as distinct actions

* test: write test for conversion destination

* test: write test for click and view destination

* test: write auth schema test

* create productClick presets

* add presets to destination

* create all event presets

* remove default imports for actions

* add testAuthentication method for algolia-insights

---------

Co-authored-by: Beatrice Parfait <beatrice.parfait@algolia.com>

* fixing snapshots and replacing userId and anonId with userToken

* fixing timestamps in tests

---------

Co-authored-by: Wesley Walser <waw325@gmail.com>
Co-authored-by: Beatrice Parfait <beatrice.parfait@algolia.com>

* VWO Cloud Mode Description changes (#1015)

* Description changes and changes in utility

* Tests altered for new format

* Update CODEOWNERS (#1029)

* [HEAP-38485] Move to the integrations endpoint (#1016)

* [HEAP-32036] First trackEvent implementation (#8)

* [HEAP-32037] Send identify and add user properties requests (#9)

* [HEAP-32037] Add user properties and migrate anonymous users

* Hash anonymous user ID

* Use message ID as idempotency key

* Throw if parameters are missing

* [HEAP-32884] backport filtering event properties (#10)

* [HEAP-32884] backport filtering event properties

- flat properties from the request payload before sending them to heap

* address comments:

- remove the embeded object under the util.ts, move it to flattenObj
- remove unnecessary tests on identifyUser
- import and use the embeded object and flatten object in trackEvent and identifyUser test

not part of comments:
- rename the file from flattenObj to flat

* PR comments

* Update packages/destination-actions/src/destinations/heap/trackEvent/index.ts

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Update packages/destination-actions/src/destinations/heap/trackEvent/index.ts

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Update packages/destination-actions/src/destinations/heap/trackEvent/index.ts

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Update packages/destination-actions/src/destinations/heap/trackEvent/index.ts

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* remove unused file

* save changes

* save

* fix library

* remove accidental file

* update tests

* remove session id

* PR comments

* fix the tests

* add user properties if more that one identifier is present

* Revert "add user properties if more that one identifier is present"

This reverts commit bb4fb94684be54c933e9375ae1fc877e876fbbd1.

---------

Co-authored-by: Gediminas Rapolavicius <gediminas.rap@gmail.com>
Co-authored-by: Yiyang Li <93153941+yiyangli-heap@users.noreply.github.com>
Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>
Co-authored-by: murphpdx <amandamurphy@ip-192-168-4-26.ec2.internal>

* Launchpad Segment Integration (#1010)

* Launchpad Segment Integration

We are now adding the ability to send events from segment into Launchpad.pm - the mission control for Product teams at scale.

We are adding the following:
* trackEvent
* groupIdentifyUser
* identifyUser

We have added unit tests and have tested this manually.

It requires the following:
* apiRegion - EU by default. We have added the US as means of future extensibility.
* apiSecret - given by Launchpad.pm while onboarding.
* sourceName - to be added.

* updating snapshots

* Changes implemented following call with Joe

Track()

[x] Explicitly indicate which fields are required or optional
[x] Look for traits and if not context.traits
[x] Need description for the Action
[x] Make Timestamp field required
[x] Make messageId required. It will always be there.
[x] getEventProperties: This line looks incorrect: id: payload.event,
[x] source mapping looks incorrect: source: integration?.name == 'Iterable' ? 'Iterable' : 'segment',

Identify()

[x] Description should be updated.
[x] identify() calls are often fired when a trait is collected, or when a userId is collected.
[x] Maybe use wording: “Creates or updates a user profile, and adds or updates trait values on the user profile…”
[x] Refactor the perform() function

group()

[x] Group Key - Amend description to better explain that group key is a way to connect multiple organizations together
[x] groupId field - Should be updated
[x] Consider adding anonymousId as a field
[x] Handle when there are no traits.

* changes

* tests passing, removed the check on user_id, anonymous_id since none are required

* fixing the types as well

* fixing test

---------

Co-authored-by: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>

* [STRATCONN-1950] Init new destination `Pinterest Conversions API` (#1030)

* Init new destination `Pinterest Conversions API`

* Update index.ts

* Update index.ts

* Update index.ts

---------

Co-authored-by: rvadera12 <89420099+rvadera12@users.noreply.github.com>

* Try to only pass in NODE_OPTIONS for node18+ (#1032)

* Try using conditional for scripts

* Remove NODE_OPTIONS from else

* Echo the nodeversion

* Try setting the node major version and testing that

* Use correct variable in condition

* Try a different approach

* Use bash instead

* Try to fix script

* Add other remaining scripts

* Changing name of new Algolia Insights Integration (#1038)

* Register new action destinations (#1036)

* Register new action destinations: Launchpad, Livelike Cloud, Twilio Studio, BlackBaud Raisers Edge Nxt, Pinterest Conversions Api

* Fix path

* add action to pinterest conversions api

* add action to pinterest conversions api

* add description to pinterest action

* Register algolia insights (Actions)

---------

Co-authored-by: rvadera12 <rajul.vadera@segment.com>

* Publish

 - @segment/actions-shared@1.34.0
 - @segment/browser-destinations@3.75.0
 - @segment/actions-cli-internal@3.128.0
 - @segment/actions-cli@3.128.0
 - @segment/actions-core@3.52.0
 - @segment/action-destinations@3.132.0
 - @segment/destination-subscriptions@3.16.0

* Use correct defaultPath for messageId (#1041)

* Google ads v11 to v12 (#1018)

* gooogle conversion v12 upgrade

* changes

* bug fix for test cases

* gooogle conversion v12 upgrade

* changes

* bug fix for test cases

* flag name changes

* flag name change in test cases

* review changes

* revert ga4-types file change

* revert ga4-types file change

* revert ga4-types file change

---------

Co-authored-by: manoj kumar <manoj.kumar@segment.com>

* [STRATCONN-1779]Add datadog stats for google ads api version (#1046)

* adds stats for api version

* adds missing statscontext parameter to getCustomVariables

* refactor params

* Voucherify-Segment.io Integration using action-destinations (#970)

* initial destination configuration

* identify customer action

* add trackEvent

* Generate screenEvent and pageEvent

* Change the structure of track, page and screen events.

* Delete test folder for now

* Change the type definition

* Delete timestamp

* create group event

* removed created_at property

* hit to localhost address

* Add unit tests

* Some fixes

* Change the URLs in perform method

* Update URLs in tests

* Delete unused testing authentication fn

* Add snapshots

* Add ability to pass a custom URL

* Set type to required in page and screen events

* Delete snapshots

* Replace api endpoint (with regions) with custom URL

* if there's no userId then use the anonymousId

* removed space

* added type property to rest of events

* changed name of property 'name' to 'event'

* Update index.ts

* Update generated-types.ts

* Delete unnecessary test - 'should throw an error when the name is not provided using page event'

* Delete the 'voucherify' prefix

* Slightly change the descriptions

* generated types

* Separate URL functions into separate files

Change the file names to be more descriptive.

* Reduce the getVoucherifyEndpointURL function

* delete

* Update the descriptions

- Also deleted the 'event' prop from screen/page events and now the 'name' in screen/page event is no longer required.

* Commit the generated types

* Reduce the number of events to three. Track Custom Event, Identify Customer, Add group to customer metadata

* Add customer attributes to traits in upsertCustomer action

* Update generated-types.ts

* Add testAuthentication

* Update names of actions in unit tests

* add firstName and lastName

* Add email to custom event processing

* Delete email from upsertCustomer (leave it only in traits)

* Add email to description

* Add email to customer processing

* Update testAuthentication

* update addCustomEvent

* Update packages/destination-actions/src/destinations/voucherify/upsertCustomer/index.ts

Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>

* Fix issue with mapping the user attributes and improve Presets

* generate types

* change email properties

* generated types

* custom url information

* generated types

* Update the desc of Custom URL

* minor changes from last PR

* Update index.ts

---------

Co-authored-by: Patryk Smolarz <patryksmolarz1@gmail.com>
Co-authored-by: Patryk Smolarz <77458595+patricioo1@users.noreply.github.com>
Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>

* HGI 372 - Fix Segment Profiles Destination (#1047)

* Added `All: false` in Tracking API event
* Changed PAPI Token field from `string` to `password`
* Fixed minor typos

* HGI-368 | Fixed the missing x-signature in request header when batching is enabled  (#1043)

* worked on HGI-368 Fix

* added a unit test case for same fix

---------

Co-authored-by: Gaurav Kochar <gaurav.kochar@segment.com>

* Mixpanel destination: use user-agent for browser data (#1035)

* remove device manufacturer - use user-agent

* userAgent is only sent on web

* New SalesWings API urls (#1039)

* Use new SalesWings API urls

* Do not check response status in testAuthentication

* Fix testAuthentication

* Remove unused file

---------

Co-authored-by: Nick Aguilar <nicholas.aguilar@segment.com>
Co-authored-by: Stella Chung <schung507@gmail.com>
Co-authored-by: Simon <simpajj@users.noreply.github.com>
Co-authored-by: A Murphy <amanda.murphy@heapanalytics.com>
Co-authored-by: kishoredevarasettyn <97026912+kishoredevarasettyn@users.noreply.github.com>
Co-authored-by: kishoredevarasettyn <kishore.devarasetty@customer.io>
Co-authored-by: Denis Egorushkin <98813888+denis-egorushkin-sw@users.noreply.github.com>
Co-authored-by: Yevgeny Terov <73266004+yevsw@users.noreply.github.com>
Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>
Co-authored-by: Yevgeny Terov <yevgeny@saleswingsapp.com>
Co-authored-by: maryamsharif <99763167+maryamsharif@users.noreply.github.com>
Co-authored-by: Innovative-GauravKochar <117165746+Innovative-GauravKochar@users.noreply.github.com>
Co-authored-by: Gaurav Kochar <gaurav.kochar@segment.com>
Co-authored-by: Nolan Chan <nolan.chan@segment.com>
Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Co-authored-by: Nolan Chan <nolanchan@berkeley.edu>
Co-authored-by: Dan <dlasky@users.noreply.github.com>
Co-authored-by: Seth Silesky <5115498+silesky@users.noreply.github.com>
Co-authored-by: rhall-twilio <103517471+rhall-twilio@users.noreply.github.com>
Co-authored-by: alfrimpong <119889384+alfrimpong@users.noreply.github.com>
Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>
Co-authored-by: Dan Lasky <dan.lasky@segment.com>
Co-authored-by: drakauskas <119876674+drakauskas@users.noreply.github.com>
Co-authored-by: Carl Lee <carlmlee@qualtrics.com>
Co-authored-by: Wasi Haider <whaider@twilio.com>
Co-authored-by: Thomas Kainrad <7394822+tkainrad@users.noreply.github.com>
Co-authored-by: Thomas Kainrad <thomas@tkainrad.dev>
Co-authored-by: aradhakrishnan-twilio <116877054+aradhakrishnan-twilio@users.noreply.github.com>
Co-authored-by: twilio-hwong <91703194+twilio-hwong@users.noreply.github.com>
Co-authored-by: rvadera12 <89420099+rvadera12@users.noreply.github.com>
Co-authored-by: Varadarajan V <vvijayaragavan@twilio.com>
Co-authored-by: Ankit Gupta <ankit.gupta@segment.com>
Co-authored-by: Neek Sandhu <neek.sandhu@outlook.com>
Co-authored-by: Abhishek Kansal <akansal1599@gmail.com>
Co-authored-by: Sayan Das <109198085+sayan-das-in@users.noreply.github.com>
Co-authored-by: Wesley Walser <waw325@gmail.com>
Co-authored-by: Beatrice Parfait <beatrice.parfait@algolia.com>
Co-authored-by: Prathamesh Tamanekar <prathameshtamanekar@gmail.com>
Co-authored-by: Gediminas Rapolavicius <gediminas.rap@gmail.com>
Co-authored-by: Yiyang Li <93153941+yiyangli-heap@users.noreply.github.com>
Co-authored-by: murphpdx <amandamurphy@ip-192-168-4-26.ec2.internal>
Co-authored-by: Stefan Sabev <sabevstefan@gmail.com>
Co-authored-by: Logan Luque <98849774+LLuque-twilio@users.noreply.github.com>
Co-authored-by: rvadera12 <rajul.vadera@segment.com>
Co-authored-by: Logan Luque <lluque@twilio.com>
Co-authored-by: immanojkumar <117071418+immanojkumar@users.noreply.github.com>
Co-authored-by: manoj kumar <manoj.kumar@segment.com>
Co-authored-by: Varadarajan V <109586712+varadarajan-tw@users.noreply.github.com>
Co-authored-by: weronika-kurczyna <117282008+weronika-kurczyna@users.noreply.github.com>
Co-authored-by: Patryk Smolarz <patryksmolarz1@gmail.com>
Co-authored-by: Patryk Smolarz <77458595+patricioo1@users.noreply.github.com>
Co-authored-by: Sonya Park <68977514+spjtls9@users.noreply.github.com>

* main (#9)

* Publish

 - @segment/actions-cli-internal@3.123.2
 - @segment/actions-cli@3.123.2
 - @segment/action-destinations@3.127.2

* Subscribe to more events (Redo without required type) (#986)

* Add subscriptions to track event

* Generate types and new snapshot

* Add test

* Improve labels and descriptions

* Generated types

* Change description

* Generate types

* Remove required

* Generate types

* Update Ripe web destination (#968)

* Update Ripe web destination

- Add new endpoint setting for testing purposes
- Remove alias call
- Update misleading anonymousId descriptions

* Update erroneous default paths

* Set anonymousId in identify call

* Heap 34916 - add session_id + update segment library for tracking purposes (#787)

* Fix events payload

* Use the single event not the bulk

* Fix tests

* Fix should not override

* remove console log and update SEGMENT_LIB var

* update constant value

* update browser tests as well

* Adding Group support for customerio -Rename identifier field names (#973)

* Initial commit for objects

* Added Test cases

* Adding Tests validation for the payload

* committing generate type file

* Adding group support from identify

* Fixing conflicts

* Adding traits to attributes property for createUpdateObject action

* renaming id and type_id to object_id and object_type_id

Co-authored-by: kishoredevarasettyn <kishore.devarasetty@customer.io>

* SalesWings (Actions) Destination (#945)

* Generated integration from scaffold

* Fix action name

* Implement SalesWings destination actions

* Send user agent, rearrange fields

* Bugfixes

* Remove debug logging

* First tests

* Auth tests & track event tests

* Page event tests

* Identify event tests

* Screen event tests

* Event batch test

* More event batch tests

* Change API key description

* Commit generated types

* Minor cleanup

* Fix square brackets in field description UI

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Add mandatory `.` to description

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Hardcoding timestamps for snapshot tests

* Extract email from properties of Track event

* Add action description

* Add default subscription to action

* Add destination present

* Merge URL fields

* Dedicated actions per event type

* Cleanup

* Update field descriptions

* Update geenrated types

Co-authored-by: Yevgeny Terov <73266004+yevsw@users.noreply.github.com>
Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>
Co-authored-by: Yevgeny Terov <yevgeny@saleswingsapp.com>

* Changing default subscription to group for group call (#995)

* Initial commit for objects

* Added Test cases

* Adding Tests validation for the payload

* committing generate type file

* Adding group support from identify

* Fixing conflicts

* Adding traits to attributes property for createUpdateObject action

* setting default subscription as group for createUpdateObject and addressing other review comments

* correcting merge overrides

Co-authored-by: kishoredevarasettyn <kishore.devarasetty@customer.io>

* Add anonymous id as a user property (#981)

* Update setting description in Google Ads Conversions (#983)

* HGI-237 | Updated Description for Braze Cohorts Fields (#992)

* udpated description for braze cohorts

* updated description for braze cohorts

* updated description in mapping fields

* updated description

* updated event_properties to hidden

* made event_properties unhidden

Co-authored-by: Gaurav Kochar <gaurav.kochar@segment.com>

* Increase CI timeout to 15 minutes and 10 minutes respectively (#985)

* Increase CI timeout to 15 minutes

* Bump browser tests to 10 minutes

Co-authored-by: Nolan Chan <nolan.chan@segment.com>

* Pipedrive actions PE-20 (#996)

* fix for pipedrive pe-20 issue

* removing default visible_to

* Register Saleswing Action (#999)

Co-authored-by: Nolan Chan <nolan.chan@segment.com>

* Publish

 - @segment/browser-destinations@3.72.0
 - @segment/actions-cli-internal@3.124.0
 - @segment/actions-cli@3.124.0
 - @segment/action-destinations@3.128.0

* ACT-362 Brackets Support (#993)

* add support for brackets inside js keys in get method

* add double quotes

* explanatory text + new link

* safari support

* remove invalid bracket test since it is now supported

* use class based regex to avoid parseError

* actually convert the regex correctly

* cleanup

* split tests by functionality

* Refactor .get test (#1000)

* Heap Fix for empty event name (#1004)

* fix for pe-52

* fixing breaking tests

* Publish

 - @segment/actions-shared@1.32.0
 - @segment/browser-destinations@3.73.0
 - @segment/actions-cli-internal@3.125.0
 - @segment/actions-cli@3.125.0
 - @segment/actions-core@3.50.0
 - @segment/action-destinations@3.129.0

* fix scaffolding for oauth (#1008)

* [CHANNELS-329] Add WhatsApp support for Twilio Engage (#987)

* feat: added whatsapp support

* fix: added missing dependencies

* refactor: minor cleanup

* fix: moved dependency to package level

* fix: uri encoding for get traits

* fix: using same auth scheme for sms & whatsapp

whatsApp thankfully allows using apiKeySid & apiSecret instead of accountSid & authToken

* fix: reverted changed package version

* feat: allow bypassing contentVariables reconciliation

* Publish

 - @segment/actions-cli-internal@3.126.0
 - @segment/actions-cli@3.126.0
 - @segment/action-destinations@3.130.0

* Add browser destination tests with saucelabs  (#994)

* Node 18 Upgrade (#991)

* packages

* ci + nvm

* lock for 18

* fix webpack hashing issue

* node types to 18

* Update node version for browser-tests and snyk

* Fix tests

* Try to fix browser tests

* Fix pipedrive unit tests

* Fix domain in snapshot tests

* Fix yarn subscriptions

* Update README

---------

Co-authored-by: Dan Lasky <dan.lasky@segment.com>

* Use node18 for browser tests destinations (#1014)

* Contribution pe 53 (#1007)

* updating contributing guidelines

* adding extra instructions for post deployment changes

* spelling corrections

* spelling corrections

* Update CONTRIBUTING.md

Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>

* Update CONTRIBUTING.md

Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>

---------

Co-authored-by: SyedWasiHaider <SyedWasiHaider@users.noreply.github.com>

* Qualtrics upsert transaction (#963)

* adding upsert contact transacion destination

* fixing snapshots

* Updating perform function for upsertTransaction

* Adding dynamic fields for directoryId. Updating field descriptions. Update upsertTransaction defaultSubscription

* updating types

* Update qualtrics destination name and descriptons on actions

---------

Co-authored-by: Carl Lee <carlmlee@qualtrics.com>

* fixing a couple of issues with new Ironclad destination (#1002)

* fixing a couple of issues with new Ironclad destination

* adding updated generated types

* fixing broken test

* [salesforce] - Verify the `instanceUrl` is a valid Salesforce domain (#997)

* Regex and WIP unit tests

* Unit tests working

* Updates regex and unit tests

* Updates other unit tests

* Saving package.json

* Adds a couple more unit tests

* Removes package.json from commits

* Removes package.json from commits

* Imports request client using absolute path instead of relative path

* Enforce https

* Publish

 - @segment/actions-shared@1.33.0
 - @segment/browser-destinations-integration-tests@0.1.0
 - @segment/browser-destinations@3.74.0
 - @segment/actions-cli-internal@3.127.0
 - @segment/actions-cli@3.127.0
 - @segment/actions-core@3.51.0
 - @segment/action-destinations@3.131.0
 - @segment/destination-subscriptions@3.15.0

* Fix CommandBar browser destination initialization when CommandBar has already been loaded through other means (#1009)

Co-authored-by: Thomas Kainrad <thomas@tkainrad.dev>

* remove flow that attempts to create a JIRA ticket (#1021)

* Twilio Studio as a Segment Action Destination (#1023)

* Twilio Studio as a Segment Action Destination

* Replaced phone number with userid in the cache key

* Addressed review comments

* DOTORG-839: Blackbaud Raiser's Edge NXT Destination (#998)

* DOTORG-839: Create or Update Individual Constituent Action (#1)

* DOTORG-839 Added OAuth2 settings for Blackbaud (#2)

* Move bbApiSubscriptionKey to settings

* Only aggregate integrationErrors

* Update Online Presence label

* Update directory structure

* Add types

* Abstract API calls

* Add dateStringToFuzzyDate

* Add types

* Don't retry 401s

* Don't catch errors on constituent search or creation

* Concatenate integrationErrors

* Add throwHttpErrors

* Set default for lookup_id to userId

* Pass constituentId to updateConstituent

* Remove try/catch

* Use camelCase traits

* Add filterObjectListByMatchFields

* Check if primary property is defined

* DOTORG-839 Added authentication test (#3)

* Don't match on country

* Use datetime type

* Strip non-numeric characters from phone when matching

* Don't match on undefined boolean fields

* Update generated-types.ts

* Fix linting errors

* Move fixtures out of tests directory

* Update constituentData

* Update default lookup_id mapping

* Update testAuthentication

* Remove UNEXPECTED_RECORD_COUNT error

* Update tests

---------

Co-authored-by: twilio-hwong <91703194+twilio-hwong@users.noreply.github.com>

* Google Analytics 4 Web Destination (#1012)

* addPaymentInfo Action

* ga4 types, properties, and functions

* set config fields action poc

* set config fields action poc

* GA4 all action created

* Remove unit test cases files

* Added defaultSubscription tag in viewItemList and generateLead Action

* added register code for GA4 in broweser-destinations

* add customEvent action

* set config action & custom event action

* Delete snapshot.test.ts

* Delete index.test.ts

* clean up & add mappings for preset

* updated types and removed picklist

* Added test cases for GA4 actions

* Added test cases

* added custom event unit test + cleaned up merge issues and commented code

* fixed typo

* add back ripe and commandbar to index file

* added comment on non using variable

* Apply suggestions from code review

Co-authored-by: Neek Sandhu <neek.sandhu@outlook.com>

* revert set configuration field actions

* added updateUser function, and updated event to payload

* reverted back gtag function and datalayer setup

* add gtag type and remove comment

* update yarn.lock file

* add viewItemList & disable linter for args

* remove gtag.js type dependency

* update unit tests

* added events to defaultSubscriptions

* update index.js

---------

Co-authored-by: Varadarajan V <vvijayaragavan@twilio.com>
Co-authored-by: Ankit Gupta <ankit.gupta@segment.com>
Co-authored-by: Neek Sandhu <neek.sandhu@outlook.com>

* livelike-cloud action destination (PE-41) (#1020)

* created livelike-cloud action destination with one trackEvent action and three presets and added unit tests

* Update packages/destination-actions/src/destinations/livelike-cloud/trackEvent/index.ts

Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>

---------

Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>

* Qualtrics - Fixed timezone issue in unit test (#1026)

* Fixed timezone issue in unit test

* refactored to use dayjs from lib

* generate types (#1028)

* PE-47 - Merge Algolia Insights (#1027)

* Algolia insights integration (#975)

* feat: initial commit after scaffold

* feat: clarify insights API and impliment as distinct actions

* test: write test for conversion destination

* test: write test for click and view destination

* test: write auth schema test

* create productClick presets

* add presets to destination

* create all event presets

* remove default imports for actions

* add testAuthentication method for algolia-insights

---------

Co-authored-by: Beatrice Parfait <beatrice.parfait@algolia.com>

* fixing snapshots and replacing userId and anonId with userToken

* fixing timestamps in tests

---------

Co-authored-by: Wesley Walser <waw325@gmail.com>
Co-authored-by: Beatrice Parfait <beatrice.parfait@algolia.com>

* VWO Cloud Mode Description changes (#1015)

* Description changes and changes in utility

* Tests altered for new format

* Update CODEOWNERS (#1029)

* [HEAP-38485] Move to the integrations endpoint (#1016)

* [HEAP-32036] First trackEvent implementation (#8)

* [HEAP-32037] Send identify and add user properties requests (#9)

* [HEAP-32037] Add user properties and migrate anonymous users

* Hash anonymous user ID

* Use message ID as idempotency key

* Throw if parameters are missing

* [HEAP-32884] backport filtering event properties (#10)

* [HEAP-32884] backport filtering event properties

- flat properties from the request payload before sending them to heap

* address comments:

- remove the embeded object under the util.ts, move it to flattenObj
- remove unnecessary tests on identifyUser
- import and use the embeded object and flatten object in trackEvent and identifyUser test

not part of comments:
- rename the file from flattenObj to flat

* PR comments

* Update packages/destination-actions/src/destinations/heap/trackEvent/index.ts

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Update packages/destination-actions/src/destinations/heap/trackEvent/index.ts

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Update packages/destination-actions/src/destinations/heap/trackEvent/index.ts

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* Update packages/destination-actions/src/destinations/heap/trackEvent/index.ts

Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>

* remove unused file

* save changes

* save

* fix library

* remove accidental file

* update tests

* remove session id

* PR comments

* fix the tests

* add user properties if more that one identifier is present

* Revert "add user properties if more that one identifier is present"

This reverts commit bb4fb94684be54c933e9375ae1fc877e876fbbd1.

---------

Co-authored-by: Gediminas Rapolavicius <gediminas.rap@gmail.com>
Co-authored-by: Yiyang Li <93153941+yiyangli-heap@users.noreply.github.com>
Co-authored-by: Marín Alcaraz <alcara_m@protonmail.com>
Co-authored-by: murphpdx <amandamurphy@ip-192-168-4-26.ec2.internal>

* Launchpad Segment Integration (#1010)

* Launchpad Segment Integration

We are now adding the ability to send events from segment into Launchpad.pm - the mission control for Product teams at scale.

We are adding the following:
* trackEvent
* groupIdentifyUser
* identifyUser

We have added unit tests and have tested this manually.

It requires the following:
* apiRegion - EU by default. We have added the US as means of future extensibility.
* apiSecret - given by Launchpad.pm while onboarding.
* sourceName - to be added.

* updating snapshots

* Changes implemented following call with Joe

Track()

[x] Explicitly indicate which fields are required or optional
[x] Look for traits and if not context.traits
[x] Need description for the Action
[x] Make Timestamp field required
[x] Make messageId required. It will always be there.
[x] getEventProperties: This line looks incorrect: id: payload.event,
[x] source mapping looks incorrect: source: integration?.name == 'Iterable' ? 'Iterable' : 'segment',

Identify()

[x] Description should be updated.
[x] identify() calls are often fired when a trait is collected, or when a userId is collected.
[x] Maybe use wording: “Creates or updates a user profile, and adds or updates trait values on the user profile…”
[x] Refactor the perform() function

group()

[x] Group Key - Amend description to better explain that group key is a way to connect multiple organizations together
[x] groupId field - Should be updated
[x] Consider adding anonymousId as a field
[x] Handle when there are no traits.

* changes

* tests passing, removed the check on user_id, anonymous_id since none are required

* fixing the types as well

* fixing test

---------

Co-authored-by: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>

* [STRATCONN-1950] Init new destination `Pinterest Conversions API` (#1030)

* Init new destination `Pinterest Conversions API`

* Update index.ts

* Update index.ts

* Update index.ts

---------

Co-authored-by: rvadera12 <89420099+rvadera12@users.noreply.github.com>

* Try to only pass in NODE_OPTIONS for node18+ (#1032)

* Try using conditional for scripts

* Remove NODE_OPTIONS from else

* Echo the nodeversion

* Try setting the node major version and testing that

* Use correct variable in condition

* Try a different approach

* Use bash instead

* Try to fix script

* Add other remaining scripts

* Changing name of new Algolia Insights Integration (#1038)

* Register new action destinations (#1036)

* Register new action destinations: Launchpad, Livelike Cloud, Twilio Studio, BlackBaud Raisers Edge Nxt, Pinterest Conversions Api

* Fix path

* add action to pinterest conversions api

* add action to pinterest conversions api

* add description to pinterest action

* Register algolia insights (Actions)

---------

Co-authored-by: rvadera12 <rajul.vadera@segment.com>

* Publish

 - @segment/actions-shared@1.34.0
 - @segment/browser-destinations@3.75.0
 - @segment/actions-cli-internal@3.128.0
 - @segment/actions-cli@3.128.0
 - @segment/actions-core@3.52.0
 - @segment/action-destinations@3.132.0
 - @segment/destination-subscriptions@3.16.0

* Use correct defaultPath for messageId (#1041)

* Google ads v11 to v12 (#1018)

* gooogle conversion v12 upgrade

* changes

* bug fix for test cases

* gooogle conversion v12 upgrade

* changes

* bug fix for test cases

* flag name changes

* flag name change in test cases

* review changes

* revert ga4-types file change

* revert ga4-types file change

* revert ga4-types file change

---------

Co-authored-by: manoj kumar <manoj.kumar@segment.com>

* [STRATCONN-1779]Add datadog stats for google ads api version (#1046)

* adds stats for api version

* adds missing statscontext parameter to getCustomVariables

* refactor params

* Voucherify-Segment.io Integration using action-destinations (#970)

* initial destination configuration

* identify customer action

* add trackEvent

* Generate screenEvent and pageEvent

* Change the structure of track, page and screen events.

* Delete test folder for now

* Change the type definition

* Delete timestamp

* create group event

* removed created_at property

* hit to localhost address

* Add unit tests

* Some fixes

* Change the URLs in perform method

* Update URLs in tests

* Delete unused testing authentication fn

* Add snapshots

* Add ability to pass a custom URL

* Set type to required in page and screen events

* Delete snapshots

* Replace api endpoint (with regions) with custom URL

* if there's no userId then use the anonymousId

* removed space

* added type property to rest of events

* changed name of property 'name' to 'event'

* Update index.ts

* Update generated-types.ts

* Delete unnecessary test - 'should throw an error when the name is not provided using page event'

* Delete the 'voucherify' prefix

* Slightly change the descriptions

* generated types

* Separate URL functions into separate files

Change the file names to be more descriptive.

* Reduce the getVoucherifyEndpointURL function

* delete

* Update the descriptions

- Also deleted the 'event' prop from screen/page events and now the 'name' in screen/page event is no longer required.

* Commit the generated types

* Reduce the number of events to three. Track Custom Event, Identify Customer, Add group to customer metadata

* Add customer attributes to traits in upsertCustomer action

* Update generated-types.ts

* Add testAuthentication

* Update names of actions in unit tests

* add firstName and lastName

* Add email to custom event processing

* Delete email from upsertCustomer (leave it only in traits)

* Add email to description

* Add email to customer processing

* Update testAuthentication

* update addCustomEvent

* Update packages/destination-actions/src/destinations/voucherify/upsertCustomer/index.ts

Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>

* Fix issue with mapping the user attributes and improve Presets

* generate types

* change email properties

* generated types

* custom url information

* generated types

* Update the desc of Custom URL

* minor changes from last PR

* Update index.ts

---------

Co-authored-by: Patryk Smolarz <patryksmolarz1@gmail.com>
Co-authored-by: Patryk Smolarz <77458595+patricioo1@users.noreply.github.com>
Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>

* HGI 372 - Fix Segment Profiles Destination (#1047)

* Added `All: false` in Tracking API event
* Changed PAPI Token field from `string` to `password`
* Fixed minor typos

* HGI-368 | Fixed the missing x-signature in request header when batching is enabled  (#1043)

* worked on HGI-368 Fix

* added a unit test case for same fix

---------

Co-authored-by: Gaurav Kochar <gaurav.kochar@segment.com>

* Mixpanel destination: use user-agent for browser data (#1035)

* remove device manufacturer - use user-agent

* userAgent is only sent on web

* New SalesWings API urls (#1039)

* Use new SalesWings API urls

* Do not check response status in testAuthentication

* Fix testAuthentication

* Remove unused file

* Mixpanel - identify null id fix (#1033)

* fix engage for null user_id

* use distinct_id with default for /engage

* formatting fix

* revert some more auto formatting

* formatting

* fix test

* Remove distinct_id mapping and use null-coalescing

* Descriptions changed for VWO Web Destination (#1006)

* Descriptions changed

* Revert Changes for cloud mode

* Test altered for new format

* fixing Mixpanel broken test (#1055)

---------

Co-authored-by: Nick Aguilar <nicholas.aguilar@segment.com>
Co-authored-by: Stella Chung <schung507@gmail.com>
Co-authored-by: Simon <simpajj@users.noreply.github.com>
Co-authored-by: A Murphy <amanda.murphy@heapanalytics.com>
Co-authored-by: kishoredevarasettyn <97026912+kishoredevarasettyn@users.noreply.github.com>
Co-authored-by: kishoredevarasettyn <kishore.devarasetty@customer.io>
Co-authored-by: Denis Egorushkin <98813888+denis…
  • Loading branch information
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const destination: DestinationDefinition<Settings> = {
body: new URLSearchParams({
grant_type: 'refresh_token',
refresh_token: auth.refreshToken,
preserve_refresh_token: 'true',
client_id: auth.clientId,
client_secret: auth.clientSecret
})
Expand Down

0 comments on commit 019e130

Please sign in to comment.