@segment/action-destinations 3.118.1-staging.97 → 3.119.1-cli-test.63
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/README.md +1 -1
- package/dist/destinations/actable-predictive/index.js +1 -1
- package/dist/destinations/actable-predictive/index.js.map +1 -1
- package/dist/destinations/actable-predictive/sendCustomEvent/index.js +13 -13
- package/dist/destinations/actable-predictive/sendCustomEvent/index.js.map +1 -1
- package/dist/destinations/actable-predictive/sendEmailEvent/index.js +21 -21
- package/dist/destinations/actable-predictive/sendEmailEvent/index.js.map +1 -1
- package/dist/destinations/actable-predictive/sendTransactionEvent/index.js +29 -29
- package/dist/destinations/actable-predictive/sendTransactionEvent/index.js.map +1 -1
- package/dist/destinations/actable-predictive/sendWebEvent/index.js +26 -26
- package/dist/destinations/actable-predictive/sendWebEvent/index.js.map +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.d.ts +2 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.js +8 -4
- package/dist/destinations/adobe-target/adobeTarget_operations.js.map +1 -1
- package/dist/destinations/adobe-target/updateProfile/index.js +3 -11
- package/dist/destinations/adobe-target/updateProfile/index.js.map +1 -1
- package/dist/destinations/braze/updateUserProfile/index.js +0 -1
- package/dist/destinations/braze/updateUserProfile/index.js.map +1 -1
- package/dist/destinations/braze-cohorts/api/index.d.ts +15 -0
- package/dist/destinations/braze-cohorts/api/index.js +36 -0
- package/dist/destinations/braze-cohorts/api/index.js.map +1 -0
- package/dist/destinations/braze-cohorts/braze-cohorts-types.d.ts +10 -0
- package/dist/destinations/braze-cohorts/braze-cohorts-types.js +3 -0
- package/dist/destinations/braze-cohorts/braze-cohorts-types.js.map +1 -0
- package/dist/destinations/braze-cohorts/generated-types.d.ts +4 -0
- package/dist/destinations/{actions-bingads → braze-cohorts}/generated-types.js +0 -0
- package/dist/destinations/braze-cohorts/generated-types.js.map +1 -0
- package/dist/destinations/{actions-bingads → braze-cohorts}/index.d.ts +0 -0
- package/dist/destinations/braze-cohorts/index.js +53 -0
- package/dist/destinations/braze-cohorts/index.js.map +1 -0
- package/dist/destinations/braze-cohorts/syncAudiences/generated-types.d.ts +16 -0
- package/dist/destinations/{actions-bingads/offlineConversions → braze-cohorts/syncAudiences}/generated-types.js +0 -0
- package/dist/destinations/braze-cohorts/syncAudiences/generated-types.js.map +1 -0
- package/dist/destinations/{google-sheets-partner/postSheet → braze-cohorts/syncAudiences}/index.d.ts +0 -0
- package/dist/destinations/braze-cohorts/syncAudiences/index.js +158 -0
- package/dist/destinations/braze-cohorts/syncAudiences/index.js.map +1 -0
- package/dist/destinations/clevertap/userDelete/index.js +4 -4
- package/dist/destinations/clevertap/userDelete/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdateObject/generated-types.d.ts +11 -0
- package/dist/destinations/{google-sheets-partner → customerio/createUpdateObject}/generated-types.js +0 -0
- package/dist/destinations/customerio/createUpdateObject/generated-types.js.map +1 -0
- package/dist/destinations/{actions-bingads/offlineConversions → customerio/createUpdateObject}/index.d.ts +0 -0
- package/dist/destinations/customerio/createUpdateObject/index.js +102 -0
- package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -0
- package/dist/destinations/customerio/createUpdatePerson/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/createUpdatePerson/index.js +24 -0
- package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/customerio/index.js +9 -1
- package/dist/destinations/customerio/index.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +12 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.d.ts +1 -0
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js +12 -0
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/addToCart/index.js +2 -1
- package/dist/destinations/facebook-conversions-api/addToCart/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/custom/index.js +2 -1
- package/dist/destinations/facebook-conversions-api/custom/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/generated-types.d.ts +1 -0
- package/dist/destinations/facebook-conversions-api/index.js +7 -1
- package/dist/destinations/facebook-conversions-api/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js +2 -1
- package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/pageView/index.js +2 -1
- package/dist/destinations/facebook-conversions-api/pageView/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/purchase/index.js +2 -1
- package/dist/destinations/facebook-conversions-api/purchase/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/search/index.js +2 -1
- package/dist/destinations/facebook-conversions-api/search/index.js.map +1 -1
- package/dist/destinations/facebook-conversions-api/viewContent/index.js +2 -1
- package/dist/destinations/facebook-conversions-api/viewContent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +0 -3
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/index.js +1 -13
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +2 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/{google-sheets-partner → google-sheets-dev}/generated-types.d.ts +0 -0
- package/dist/destinations/{google-sheets-partner/postSheet → google-sheets-dev}/generated-types.js +0 -0
- package/dist/destinations/google-sheets-dev/generated-types.js.map +1 -0
- package/dist/destinations/{google-sheets-partner → google-sheets-dev}/index.d.ts +0 -0
- package/dist/destinations/{google-sheets-partner → google-sheets-dev}/index.js +5 -7
- package/dist/destinations/google-sheets-dev/index.js.map +1 -0
- package/dist/destinations/{google-sheets-partner/postSheet/generated-types.d.ts → google-sheets-dev/postSheet.types.d.ts} +0 -0
- package/dist/destinations/google-sheets-dev/postSheet.types.js +3 -0
- package/dist/destinations/google-sheets-dev/postSheet.types.js.map +1 -0
- package/dist/destinations/heap/constants.d.ts +1 -1
- package/dist/destinations/heap/constants.js +2 -2
- package/dist/destinations/heap/constants.js.map +1 -1
- package/dist/destinations/heap/index.js +1 -1
- package/dist/destinations/heap/index.js.map +1 -1
- package/dist/destinations/heap/trackEvent/generated-types.d.ts +4 -2
- package/dist/destinations/heap/trackEvent/index.js +44 -15
- package/dist/destinations/heap/trackEvent/index.js.map +1 -1
- package/dist/destinations/hubspot/errors.js +1 -1
- package/dist/destinations/hubspot/errors.js.map +1 -1
- package/dist/destinations/hubspot/helperFunctions.d.ts +7 -0
- package/dist/destinations/hubspot/helperFunctions.js +27 -0
- package/dist/destinations/hubspot/helperFunctions.js.map +1 -0
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js +2 -1
- package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertCompany/generated-types.d.ts +4 -2
- package/dist/destinations/hubspot/upsertCompany/index.js +28 -14
- package/dist/destinations/hubspot/upsertCompany/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertContact/index.js +4 -7
- package/dist/destinations/hubspot/upsertContact/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js +2 -1
- package/dist/destinations/hubspot/upsertCustomObjectRecord/index.js.map +1 -1
- package/dist/destinations/index.js +7 -3
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/ironclad/RecordAction/generated-types.d.ts +12 -0
- package/dist/destinations/ironclad/RecordAction/generated-types.js +3 -0
- package/dist/destinations/ironclad/RecordAction/generated-types.js.map +1 -0
- package/dist/destinations/ironclad/RecordAction/index.d.ts +5 -0
- package/dist/destinations/ironclad/RecordAction/index.js +117 -0
- package/dist/destinations/ironclad/RecordAction/index.js.map +1 -0
- package/dist/destinations/ironclad/generated-types.d.ts +5 -0
- package/dist/destinations/ironclad/generated-types.js +3 -0
- package/dist/destinations/ironclad/generated-types.js.map +1 -0
- package/dist/destinations/ironclad/index.d.ts +4 -0
- package/dist/destinations/ironclad/index.js +42 -0
- package/dist/destinations/ironclad/index.js.map +1 -0
- package/dist/destinations/mixpanel/index.js +1 -1
- package/dist/destinations/mixpanel/mixpanel-properties.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/functions.js +1 -1
- package/dist/destinations/mixpanel/trackEvent/functions.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackPurchase/index.js.map +1 -1
- package/dist/destinations/mixpanel/utils.js +1 -1
- package/dist/destinations/mixpanel/utils.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateActivity/index.js +44 -17
- package/dist/destinations/pipedrive/createUpdateActivity/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateDeal/index.js +35 -11
- package/dist/destinations/pipedrive/createUpdateDeal/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateLead/generated-types.d.ts +3 -8
- package/dist/destinations/pipedrive/createUpdateLead/index.js +54 -27
- package/dist/destinations/pipedrive/createUpdateLead/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateNote/generated-types.d.ts +1 -1
- package/dist/destinations/pipedrive/createUpdateNote/index.js +22 -13
- package/dist/destinations/pipedrive/createUpdateNote/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdateOrganization/index.js +9 -3
- package/dist/destinations/pipedrive/createUpdateOrganization/index.js.map +1 -1
- package/dist/destinations/pipedrive/createUpdatePerson/index.js +15 -3
- package/dist/destinations/pipedrive/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/pipedrive/index.d.ts +1 -1
- package/dist/destinations/pipedrive/index.js +22 -1
- package/dist/destinations/pipedrive/index.js.map +1 -1
- package/dist/destinations/pipedrive/pipedriveApi/leads.d.ts +5 -1
- package/dist/destinations/pipedrive/pipedriveApi/leads.js.map +1 -1
- package/dist/destinations/pipedrive/pipedriveApi/notes.d.ts +1 -1
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.d.ts +2 -1
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js +14 -2
- package/dist/destinations/pipedrive/pipedriveApi/pipedrive-client.js.map +1 -1
- package/dist/destinations/ripe/generated-types.d.ts +4 -0
- package/dist/destinations/ripe/generated-types.js +3 -0
- package/dist/destinations/ripe/generated-types.js.map +1 -0
- package/dist/destinations/ripe/group/generated-types.d.ts +10 -0
- package/dist/destinations/ripe/group/generated-types.js +3 -0
- package/dist/destinations/ripe/group/generated-types.js.map +1 -0
- package/dist/destinations/ripe/group/index.d.ts +5 -0
- package/dist/destinations/ripe/group/index.js +68 -0
- package/dist/destinations/ripe/group/index.js.map +1 -0
- package/dist/destinations/ripe/identify/generated-types.d.ts +10 -0
- package/dist/destinations/ripe/identify/generated-types.js +3 -0
- package/dist/destinations/ripe/identify/generated-types.js.map +1 -0
- package/dist/destinations/ripe/identify/index.d.ts +5 -0
- package/dist/destinations/ripe/identify/index.js +70 -0
- package/dist/destinations/ripe/identify/index.js.map +1 -0
- package/dist/destinations/ripe/index.d.ts +4 -0
- package/dist/destinations/ripe/index.js +83 -0
- package/dist/destinations/ripe/index.js.map +1 -0
- package/dist/destinations/ripe/page/generated-types.d.ts +16 -0
- package/dist/destinations/ripe/page/generated-types.js +3 -0
- package/dist/destinations/ripe/page/generated-types.js.map +1 -0
- package/dist/destinations/ripe/page/index.d.ts +5 -0
- package/dist/destinations/ripe/page/index.js +153 -0
- package/dist/destinations/ripe/page/index.js.map +1 -0
- package/dist/destinations/ripe/track/generated-types.d.ts +11 -0
- package/dist/destinations/ripe/track/generated-types.js +3 -0
- package/dist/destinations/ripe/track/generated-types.js.map +1 -0
- package/dist/destinations/ripe/track/index.d.ts +5 -0
- package/dist/destinations/ripe/track/index.js +79 -0
- package/dist/destinations/ripe/track/index.js.map +1 -0
- package/dist/destinations/salesforce/lead/index.js +6 -6
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/dist/destinations/salesforce/sf-operations.js +17 -6
- package/dist/destinations/salesforce/sf-operations.js.map +1 -1
- package/dist/destinations/salesforce/sf-properties.d.ts +0 -1
- package/dist/destinations/salesforce/sf-properties.js +2 -2
- package/dist/destinations/salesforce/sf-properties.js.map +1 -1
- package/dist/destinations/salesforce/sf-utils.js +3 -1
- package/dist/destinations/salesforce/sf-utils.js.map +1 -1
- package/dist/destinations/saleswings/api.d.ts +35 -0
- package/dist/destinations/saleswings/api.js +19 -0
- package/dist/destinations/saleswings/api.js.map +1 -0
- package/dist/destinations/saleswings/common.d.ts +5 -0
- package/dist/destinations/saleswings/common.js +37 -0
- package/dist/destinations/saleswings/common.js.map +1 -0
- package/dist/destinations/saleswings/converter.d.ts +12 -0
- package/dist/destinations/saleswings/converter.js +34 -0
- package/dist/destinations/saleswings/converter.js.map +1 -0
- package/dist/destinations/saleswings/fields.d.ts +12 -0
- package/dist/destinations/saleswings/fields.js +102 -0
- package/dist/destinations/saleswings/fields.js.map +1 -0
- package/dist/destinations/saleswings/generated-types.d.ts +3 -0
- package/dist/destinations/saleswings/generated-types.js +3 -0
- package/dist/destinations/saleswings/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/index.d.ts +4 -0
- package/dist/destinations/saleswings/index.js +67 -0
- package/dist/destinations/saleswings/index.js.map +1 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/generated-types.d.ts +14 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/index.js +39 -0
- package/dist/destinations/saleswings/submitIdentifyEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/submitPageEvent/generated-types.d.ts +8 -0
- package/dist/destinations/saleswings/submitPageEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitPageEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitPageEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitPageEvent/index.js +35 -0
- package/dist/destinations/saleswings/submitPageEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/submitScreenEvent/generated-types.d.ts +14 -0
- package/dist/destinations/saleswings/submitScreenEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitScreenEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitScreenEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitScreenEvent/index.js +42 -0
- package/dist/destinations/saleswings/submitScreenEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/submitTrackEvent/generated-types.d.ts +14 -0
- package/dist/destinations/saleswings/submitTrackEvent/generated-types.js +3 -0
- package/dist/destinations/saleswings/submitTrackEvent/generated-types.js.map +1 -0
- package/dist/destinations/saleswings/submitTrackEvent/index.d.ts +5 -0
- package/dist/destinations/saleswings/submitTrackEvent/index.js +42 -0
- package/dist/destinations/saleswings/submitTrackEvent/index.js.map +1 -0
- package/dist/destinations/saleswings/testing.d.ts +10 -0
- package/dist/destinations/saleswings/testing.js +55 -0
- package/dist/destinations/saleswings/testing.js.map +1 -0
- package/dist/destinations/segment-profiles/errors.d.ts +14 -0
- package/dist/destinations/segment-profiles/errors.js +10 -0
- package/dist/destinations/segment-profiles/errors.js.map +1 -0
- package/dist/destinations/segment-profiles/generated-types.d.ts +4 -0
- package/dist/destinations/segment-profiles/generated-types.js +3 -0
- package/dist/destinations/segment-profiles/generated-types.js.map +1 -0
- package/dist/destinations/segment-profiles/helperFunctions.d.ts +8 -0
- package/dist/destinations/segment-profiles/helperFunctions.js +52 -0
- package/dist/destinations/segment-profiles/helperFunctions.js.map +1 -0
- package/dist/destinations/segment-profiles/index.d.ts +4 -0
- package/dist/destinations/segment-profiles/index.js +50 -0
- package/dist/destinations/segment-profiles/index.js.map +1 -0
- package/dist/destinations/segment-profiles/properties.d.ts +12 -0
- package/dist/destinations/segment-profiles/properties.js +20 -0
- package/dist/destinations/segment-profiles/properties.js.map +1 -0
- package/dist/destinations/segment-profiles/segment-properties.d.ts +6 -0
- package/dist/destinations/segment-profiles/segment-properties.js +33 -0
- package/dist/destinations/segment-profiles/segment-properties.js.map +1 -0
- package/dist/destinations/segment-profiles/sendGroup/generated-types.d.ts +9 -0
- package/dist/destinations/segment-profiles/sendGroup/generated-types.js +3 -0
- package/dist/destinations/segment-profiles/sendGroup/generated-types.js.map +1 -0
- package/dist/destinations/segment-profiles/sendGroup/index.d.ts +5 -0
- package/dist/destinations/segment-profiles/sendGroup/index.js +52 -0
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -0
- package/dist/destinations/segment-profiles/sendIdentify/generated-types.d.ts +9 -0
- package/dist/destinations/segment-profiles/sendIdentify/generated-types.js +3 -0
- package/dist/destinations/segment-profiles/sendIdentify/generated-types.js.map +1 -0
- package/dist/destinations/segment-profiles/sendIdentify/index.d.ts +5 -0
- package/dist/destinations/segment-profiles/sendIdentify/index.js +52 -0
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -0
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js +1 -1
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js +1 -1
- package/dist/destinations/snap-conversions-api/snap-capi-properties.js.map +1 -1
- package/dist/destinations/vwo/generated-types.d.ts +3 -0
- package/dist/destinations/vwo/generated-types.js +3 -0
- package/dist/destinations/vwo/generated-types.js.map +1 -0
- package/dist/destinations/vwo/identifyUser/generated-types.d.ts +12 -0
- package/dist/destinations/vwo/identifyUser/generated-types.js +3 -0
- package/dist/destinations/vwo/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/vwo/identifyUser/index.d.ts +5 -0
- package/dist/destinations/vwo/identifyUser/index.js +80 -0
- package/dist/destinations/vwo/identifyUser/index.js.map +1 -0
- package/dist/destinations/vwo/index.d.ts +4 -0
- package/dist/destinations/vwo/index.js +60 -0
- package/dist/destinations/vwo/index.js.map +1 -0
- package/dist/destinations/vwo/pageVisit/generated-types.d.ts +10 -0
- package/dist/destinations/vwo/pageVisit/generated-types.js +3 -0
- package/dist/destinations/vwo/pageVisit/generated-types.js.map +1 -0
- package/dist/destinations/vwo/pageVisit/index.d.ts +5 -0
- package/dist/destinations/vwo/pageVisit/index.js +77 -0
- package/dist/destinations/vwo/pageVisit/index.js.map +1 -0
- package/dist/destinations/vwo/trackEvent/generated-types.d.ts +13 -0
- package/dist/destinations/vwo/trackEvent/generated-types.js +3 -0
- package/dist/destinations/vwo/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/vwo/trackEvent/index.d.ts +5 -0
- package/dist/destinations/vwo/trackEvent/index.js +86 -0
- package/dist/destinations/vwo/trackEvent/index.js.map +1 -0
- package/dist/destinations/vwo/types.d.ts +42 -0
- package/dist/destinations/vwo/types.js +3 -0
- package/dist/destinations/vwo/types.js.map +1 -0
- package/dist/destinations/vwo/utility.d.ts +13 -0
- package/dist/destinations/vwo/utility.js +59 -0
- package/dist/destinations/vwo/utility.js.map +1 -0
- package/package.json +4 -4
- package/dist/destinations/actions-bingads/functions.d.ts +0 -0
- package/dist/destinations/actions-bingads/functions.js +0 -2
- package/dist/destinations/actions-bingads/functions.js.map +0 -1
- package/dist/destinations/actions-bingads/generated-types.d.ts +0 -10
- package/dist/destinations/actions-bingads/generated-types.js.map +0 -1
- package/dist/destinations/actions-bingads/index.js +0 -77
- package/dist/destinations/actions-bingads/index.js.map +0 -1
- package/dist/destinations/actions-bingads/offlineConversions/formatter.d.ts +0 -8
- package/dist/destinations/actions-bingads/offlineConversions/formatter.js +0 -33
- package/dist/destinations/actions-bingads/offlineConversions/formatter.js.map +0 -1
- package/dist/destinations/actions-bingads/offlineConversions/generated-types.d.ts +0 -7
- package/dist/destinations/actions-bingads/offlineConversions/generated-types.js.map +0 -1
- package/dist/destinations/actions-bingads/offlineConversions/index.js +0 -131
- package/dist/destinations/actions-bingads/offlineConversions/index.js.map +0 -1
- package/dist/destinations/google-sheets-partner/constants.d.ts +0 -3
- package/dist/destinations/google-sheets-partner/constants.js +0 -7
- package/dist/destinations/google-sheets-partner/constants.js.map +0 -1
- package/dist/destinations/google-sheets-partner/generated-types.js.map +0 -1
- package/dist/destinations/google-sheets-partner/googleapis/index.d.ts +0 -17
- package/dist/destinations/google-sheets-partner/googleapis/index.js +0 -34
- package/dist/destinations/google-sheets-partner/googleapis/index.js.map +0 -1
- package/dist/destinations/google-sheets-partner/index.js.map +0 -1
- package/dist/destinations/google-sheets-partner/postSheet/generated-types.js.map +0 -1
- package/dist/destinations/google-sheets-partner/postSheet/index.js +0 -79
- package/dist/destinations/google-sheets-partner/postSheet/index.js.map +0 -1
- package/dist/destinations/google-sheets-partner/postSheet/operations.d.ts +0 -10
- package/dist/destinations/google-sheets-partner/postSheet/operations.js +0 -96
- package/dist/destinations/google-sheets-partner/postSheet/operations.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitIdentifyEvent/index.ts"],"names":[],"mappings":";;AAGA,gCAA6C;AAC7C,sCAAkH;AAClH,4CAA+E;AAC/E,sCAAiD;AAEjD,MAAM,YAAY,GAAG,CAAC,OAAgB,EAAqB,EAAE;IAC3D,OAAO,IAAI,mBAAa,CAAC;QACvB,QAAQ,EAAE,2BAAe,CAAC,OAAO,CAAC;QAClC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,4BAAgB,CAAC,OAAO,CAAC,SAAS,CAAC;QAC9C,MAAM,EAAE,yBAAa,CAAC,OAAO,CAAC,MAAM,CAAC;KACtC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,+GAA+G;IACjH,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,IAAI,EAAE,aAAI,CAAC,UAAU,CAAC;QACtB,IAAI,EAAE,aAAI,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;QACzC,MAAM,EAAN,eAAM;QACN,WAAW,EAAX,oBAAW;QACX,KAAK,EAAE,EAAE,GAAG,cAAK,EAAE,QAAQ,EAAE,IAAI,EAAE;QACnC,GAAG,EAAH,YAAG;QACH,WAAW,EAAX,oBAAW;QACX,SAAS,EAAT,kBAAS;QACT,SAAS,EAAT,kBAAS;QACT,MAAM,EAAE,eAAM,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;KACxC;IACD,OAAO,EAAE,gBAAO,CAAC,YAAY,CAAC;IAC9B,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC;CACzC,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitPageEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("../api");
|
|
4
|
+
const fields_1 = require("../fields");
|
|
5
|
+
const converter_1 = require("../converter");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const convertEvent = (payload) => {
|
|
8
|
+
const leadRefs = converter_1.convertLeadRefs(payload);
|
|
9
|
+
if (leadRefs.length == 0)
|
|
10
|
+
return undefined;
|
|
11
|
+
return new api_1.PageVisitEvent({
|
|
12
|
+
leadRefs,
|
|
13
|
+
url: payload.url,
|
|
14
|
+
referrerUrl: payload.referrerUrl,
|
|
15
|
+
userAgent: payload.userAgent,
|
|
16
|
+
timestamp: converter_1.convertTimestamp(payload.timestamp)
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const action = {
|
|
20
|
+
title: 'Submit Page Event',
|
|
21
|
+
description: 'Send your Segment Page events to SalesWings to use them for tagging, scoring and prioritising your leads.',
|
|
22
|
+
defaultSubscription: 'type = "page"',
|
|
23
|
+
fields: {
|
|
24
|
+
userId: fields_1.userId,
|
|
25
|
+
anonymousId: fields_1.anonymousId,
|
|
26
|
+
url: { ...fields_1.url, required: true },
|
|
27
|
+
referrerUrl: fields_1.referrerUrl,
|
|
28
|
+
userAgent: fields_1.userAgent,
|
|
29
|
+
timestamp: fields_1.timestamp
|
|
30
|
+
},
|
|
31
|
+
perform: common_1.perform(convertEvent),
|
|
32
|
+
performBatch: common_1.performBatch(convertEvent)
|
|
33
|
+
};
|
|
34
|
+
exports.default = action;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitPageEvent/index.ts"],"names":[],"mappings":";;AAGA,gCAA8C;AAC9C,sCAAuF;AACvF,4CAAgE;AAChE,sCAAiD;AAEjD,MAAM,YAAY,GAAG,CAAC,OAAgB,EAAqB,EAAE;IAC3D,MAAM,QAAQ,GAAG,2BAAe,CAAC,OAAO,CAAC,CAAA;IACzC,IAAI,QAAQ,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,SAAS,CAAA;IAC1C,OAAO,IAAI,oBAAc,CAAC;QACxB,QAAQ;QACR,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,4BAAgB,CAAC,OAAO,CAAC,SAAS,CAAC;KAC/C,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,2GAA2G;IAC7G,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE;QACN,MAAM,EAAN,eAAM;QACN,WAAW,EAAX,oBAAW;QACX,GAAG,EAAE,EAAE,GAAG,YAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/B,WAAW,EAAX,oBAAW;QACX,SAAS,EAAT,kBAAS;QACT,SAAS,EAAT,kBAAS;KACV;IACD,OAAO,EAAE,gBAAO,CAAC,YAAY,CAAC;IAC9B,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC;CACzC,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
kind: string;
|
|
3
|
+
data: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
anonymousId?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
referrerUrl?: string;
|
|
9
|
+
userAgent?: string;
|
|
10
|
+
timestamp?: string | number;
|
|
11
|
+
values?: {
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitScreenEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("../api");
|
|
4
|
+
const fields_1 = require("../fields");
|
|
5
|
+
const converter_1 = require("../converter");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const convertEvent = (payload) => {
|
|
8
|
+
const leadRefs = converter_1.convertLeadRefs(payload);
|
|
9
|
+
if (leadRefs.length == 0)
|
|
10
|
+
return undefined;
|
|
11
|
+
return new api_1.TrackingEvent({
|
|
12
|
+
leadRefs,
|
|
13
|
+
kind: payload.kind,
|
|
14
|
+
data: payload.data,
|
|
15
|
+
url: payload.url,
|
|
16
|
+
referrerUrl: payload.referrerUrl,
|
|
17
|
+
userAgent: payload.userAgent,
|
|
18
|
+
timestamp: converter_1.convertTimestamp(payload.timestamp),
|
|
19
|
+
values: converter_1.convertValues(payload.values)
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const action = {
|
|
23
|
+
title: 'Submit Screen Event',
|
|
24
|
+
description: 'Send your Segment Screen events to SalesWings to use them for tagging, scoring and prioritising your leads.',
|
|
25
|
+
defaultSubscription: 'type = "screen"',
|
|
26
|
+
fields: {
|
|
27
|
+
kind: fields_1.kind('Screen'),
|
|
28
|
+
data: fields_1.data({ '@path': '$.name' }),
|
|
29
|
+
userId: fields_1.userId,
|
|
30
|
+
anonymousId: fields_1.anonymousId,
|
|
31
|
+
email: fields_1.email,
|
|
32
|
+
url: fields_1.url,
|
|
33
|
+
referrerUrl: fields_1.referrerUrl,
|
|
34
|
+
userAgent: fields_1.userAgent,
|
|
35
|
+
timestamp: fields_1.timestamp,
|
|
36
|
+
values: fields_1.values({ '@path': '$.properties' })
|
|
37
|
+
},
|
|
38
|
+
perform: common_1.perform(convertEvent),
|
|
39
|
+
performBatch: common_1.performBatch(convertEvent)
|
|
40
|
+
};
|
|
41
|
+
exports.default = action;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitScreenEvent/index.ts"],"names":[],"mappings":";;AAGA,gCAA6C;AAC7C,sCAAkH;AAClH,4CAA+E;AAC/E,sCAAiD;AAEjD,MAAM,YAAY,GAAG,CAAC,OAAgB,EAAqB,EAAE;IAC3D,MAAM,QAAQ,GAAG,2BAAe,CAAC,OAAO,CAAC,CAAA;IACzC,IAAI,QAAQ,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,SAAS,CAAA;IAC1C,OAAO,IAAI,mBAAa,CAAC;QACvB,QAAQ;QACR,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,4BAAgB,CAAC,OAAO,CAAC,SAAS,CAAC;QAC9C,MAAM,EAAE,yBAAa,CAAC,OAAO,CAAC,MAAM,CAAC;KACtC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,6GAA6G;IAC/G,mBAAmB,EAAE,iBAAiB;IACtC,MAAM,EAAE;QACN,IAAI,EAAE,aAAI,CAAC,QAAQ,CAAC;QACpB,IAAI,EAAE,aAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QACjC,MAAM,EAAN,eAAM;QACN,WAAW,EAAX,oBAAW;QACX,KAAK,EAAL,cAAK;QACL,GAAG,EAAH,YAAG;QACH,WAAW,EAAX,oBAAW;QACX,SAAS,EAAT,kBAAS;QACT,SAAS,EAAT,kBAAS;QACT,MAAM,EAAE,eAAM,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;KAC5C;IACD,OAAO,EAAE,gBAAO,CAAC,YAAY,CAAC;IAC9B,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC;CACzC,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
kind: string;
|
|
3
|
+
data: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
anonymousId?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
referrerUrl?: string;
|
|
9
|
+
userAgent?: string;
|
|
10
|
+
timestamp?: string | number;
|
|
11
|
+
values?: {
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitTrackEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const api_1 = require("../api");
|
|
4
|
+
const fields_1 = require("../fields");
|
|
5
|
+
const converter_1 = require("../converter");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const convertEvent = (payload) => {
|
|
8
|
+
const leadRefs = converter_1.convertLeadRefs(payload);
|
|
9
|
+
if (leadRefs.length == 0)
|
|
10
|
+
return undefined;
|
|
11
|
+
return new api_1.TrackingEvent({
|
|
12
|
+
leadRefs,
|
|
13
|
+
kind: payload.kind,
|
|
14
|
+
data: payload.data,
|
|
15
|
+
url: payload.url,
|
|
16
|
+
referrerUrl: payload.referrerUrl,
|
|
17
|
+
userAgent: payload.userAgent,
|
|
18
|
+
timestamp: converter_1.convertTimestamp(payload.timestamp),
|
|
19
|
+
values: converter_1.convertValues(payload.values)
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
const action = {
|
|
23
|
+
title: 'Submit Track Event',
|
|
24
|
+
description: 'Send your Segment Track events to SalesWings to use them for tagging, scoring and prioritising your leads.',
|
|
25
|
+
defaultSubscription: 'type = "track"',
|
|
26
|
+
fields: {
|
|
27
|
+
kind: fields_1.kind('Track'),
|
|
28
|
+
data: fields_1.data({ '@path': '$.event' }),
|
|
29
|
+
userId: fields_1.userId,
|
|
30
|
+
anonymousId: fields_1.anonymousId,
|
|
31
|
+
email: fields_1.email,
|
|
32
|
+
url: fields_1.url,
|
|
33
|
+
referrerUrl: fields_1.referrerUrl,
|
|
34
|
+
userAgent: fields_1.userAgent,
|
|
35
|
+
timestamp: fields_1.timestamp,
|
|
36
|
+
values: fields_1.values({ '@path': '$.properties' })
|
|
37
|
+
},
|
|
38
|
+
perform: common_1.perform(convertEvent),
|
|
39
|
+
performBatch: common_1.performBatch(convertEvent)
|
|
40
|
+
};
|
|
41
|
+
exports.default = action;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/saleswings/submitTrackEvent/index.ts"],"names":[],"mappings":";;AAGA,gCAA6C;AAC7C,sCAAkH;AAClH,4CAA+E;AAC/E,sCAAiD;AAEjD,MAAM,YAAY,GAAG,CAAC,OAAgB,EAAqB,EAAE;IAC3D,MAAM,QAAQ,GAAG,2BAAe,CAAC,OAAO,CAAC,CAAA;IACzC,IAAI,QAAQ,CAAC,MAAM,IAAI,CAAC;QAAE,OAAO,SAAS,CAAA;IAC1C,OAAO,IAAI,mBAAa,CAAC;QACvB,QAAQ;QACR,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,4BAAgB,CAAC,OAAO,CAAC,SAAS,CAAC;QAC9C,MAAM,EAAE,yBAAa,CAAC,OAAO,CAAC,MAAM,CAAC;KACtC,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,oBAAoB;IAC3B,WAAW,EACT,4GAA4G;IAC9G,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,IAAI,EAAE,aAAI,CAAC,OAAO,CAAC;QACnB,IAAI,EAAE,aAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;QAClC,MAAM,EAAN,eAAM;QACN,WAAW,EAAX,oBAAW;QACX,KAAK,EAAL,cAAK;QACL,GAAG,EAAH,YAAG;QACH,WAAW,EAAX,oBAAW;QACX,SAAS,EAAT,kBAAS;QACT,SAAS,EAAT,kBAAS;QACT,MAAM,EAAE,eAAM,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;KAC5C;IACD,OAAO,EAAE,gBAAO,CAAC,YAAY,CAAC;IAC9B,YAAY,EAAE,qBAAY,CAAC,YAAY,CAAC;CACzC,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SegmentEvent } from '@segment/actions-core';
|
|
2
|
+
export declare const settings: {
|
|
3
|
+
apiKey: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const testAction: (actionName: string, event: SegmentEvent) => Promise<any>;
|
|
6
|
+
export declare const testBatchAction: (actionName: string, events: SegmentEvent[]) => Promise<any>;
|
|
7
|
+
export declare const testActionWithSkippedEvent: (actionName: string, event: SegmentEvent) => Promise<void>;
|
|
8
|
+
export declare const testBatchActionSkippedEvents: (actionName: string, events: SegmentEvent[]) => Promise<void>;
|
|
9
|
+
export declare const expectedTs: (segmentEventTs: string | Date | undefined) => number;
|
|
10
|
+
export declare const userAgent = "\"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.userAgent = exports.expectedTs = exports.testBatchActionSkippedEvents = exports.testActionWithSkippedEvent = exports.testBatchAction = exports.testAction = exports.settings = void 0;
|
|
7
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
8
|
+
const nock_1 = __importDefault(require("nock"));
|
|
9
|
+
const api_1 = require("./api");
|
|
10
|
+
const index_1 = __importDefault(require("./index"));
|
|
11
|
+
const testDestination = actions_core_1.createTestIntegration(index_1.default);
|
|
12
|
+
exports.settings = { apiKey: 'TEST_API_KEY' };
|
|
13
|
+
const testAction = async (actionName, event) => {
|
|
14
|
+
nock_1.default(api_1.apiBaseUrl).post('/events').reply(200, {});
|
|
15
|
+
const input = { event, settings: exports.settings, useDefaultMappings: true };
|
|
16
|
+
const responses = await testDestination.testAction(actionName, input);
|
|
17
|
+
expect(responses.length).toBe(1);
|
|
18
|
+
const request = responses[0].request;
|
|
19
|
+
expect(request.headers.get('Authorization')).toBe(`Bearer ${exports.settings.apiKey}`);
|
|
20
|
+
const rawBody = await request.text();
|
|
21
|
+
return JSON.parse(rawBody);
|
|
22
|
+
};
|
|
23
|
+
exports.testAction = testAction;
|
|
24
|
+
const testBatchAction = async (actionName, events) => {
|
|
25
|
+
nock_1.default(api_1.apiBaseUrl).post('/events/batches').reply(200, {});
|
|
26
|
+
const input = { events, settings: exports.settings, useDefaultMappings: true };
|
|
27
|
+
const responses = await testDestination.testBatchAction(actionName, input);
|
|
28
|
+
expect(responses.length).toBe(1);
|
|
29
|
+
const request = responses[0].request;
|
|
30
|
+
expect(request.headers.get('Authorization')).toBe(`Bearer ${exports.settings.apiKey}`);
|
|
31
|
+
const rawBody = await request.text();
|
|
32
|
+
return JSON.parse(rawBody);
|
|
33
|
+
};
|
|
34
|
+
exports.testBatchAction = testBatchAction;
|
|
35
|
+
const testActionWithSkippedEvent = async (actionName, event) => {
|
|
36
|
+
const responses = await testDestination.testAction(actionName, { event, settings: exports.settings, useDefaultMappings: true });
|
|
37
|
+
expect(responses.length).toBe(0);
|
|
38
|
+
};
|
|
39
|
+
exports.testActionWithSkippedEvent = testActionWithSkippedEvent;
|
|
40
|
+
const testBatchActionSkippedEvents = async (actionName, events) => {
|
|
41
|
+
const responses = await testDestination.testBatchAction(actionName, { events, settings: exports.settings, useDefaultMappings: true });
|
|
42
|
+
expect(responses.length).toBe(0);
|
|
43
|
+
};
|
|
44
|
+
exports.testBatchActionSkippedEvents = testBatchActionSkippedEvents;
|
|
45
|
+
const expectedTs = (segmentEventTs) => {
|
|
46
|
+
if (segmentEventTs === undefined)
|
|
47
|
+
throw new Error('Unexpected state: test event created without a timestamp');
|
|
48
|
+
else if (typeof segmentEventTs === 'string')
|
|
49
|
+
return Date.parse(segmentEventTs);
|
|
50
|
+
else
|
|
51
|
+
return segmentEventTs.valueOf();
|
|
52
|
+
};
|
|
53
|
+
exports.expectedTs = expectedTs;
|
|
54
|
+
exports.userAgent = '"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1';
|
|
55
|
+
//# sourceMappingURL=testing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/destinations/saleswings/testing.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTTPError, IntegrationError } from '@segment/actions-core';
|
|
2
|
+
export declare class SegmentPublicAPIError extends HTTPError {
|
|
3
|
+
response: Response & {
|
|
4
|
+
errors: {
|
|
5
|
+
type: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
field?: string;
|
|
8
|
+
data?: string;
|
|
9
|
+
status?: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare const MissingUserOrAnonymousIdThrowableError: IntegrationError;
|
|
14
|
+
export declare const InvalidEndpointSelectedThrowableError: IntegrationError;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidEndpointSelectedThrowableError = exports.MissingUserOrAnonymousIdThrowableError = exports.SegmentPublicAPIError = void 0;
|
|
4
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
+
class SegmentPublicAPIError extends actions_core_1.HTTPError {
|
|
6
|
+
}
|
|
7
|
+
exports.SegmentPublicAPIError = SegmentPublicAPIError;
|
|
8
|
+
exports.MissingUserOrAnonymousIdThrowableError = new actions_core_1.IntegrationError('Either `Anonymous ID` or `User ID` must be defined.', 'Missing Required Field', 400);
|
|
9
|
+
exports.InvalidEndpointSelectedThrowableError = new actions_core_1.IntegrationError('A valid endpoint must be selected. Please check your Segment settings.', 'Misconfigured Endpoint', 400);
|
|
10
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/errors.ts"],"names":[],"mappings":";;;AAAA,wDAAmE;AAEnE,MAAa,qBAAsB,SAAQ,wBAAS;CAUnD;AAVD,sDAUC;AAEY,QAAA,sCAAsC,GAAG,IAAI,+BAAgB,CACxE,qDAAqD,EACrD,wBAAwB,EACxB,GAAG,CACJ,CAAA;AAEY,QAAA,qCAAqC,GAAG,IAAI,+BAAgB,CACvE,wEAAwE,EACxE,wBAAwB,EACxB,GAAG,CACJ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RequestClient, DynamicFieldResponse } from '@segment/actions-core';
|
|
2
|
+
interface GetEngageSpaceParams {
|
|
3
|
+
endpoint: string;
|
|
4
|
+
bearerToken: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function getEngageSpaces(request: RequestClient, data: GetEngageSpaceParams): Promise<DynamicFieldResponse>;
|
|
7
|
+
export declare function generateSegmentAPIAuthHeaders(writeKey: string): string;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateSegmentAPIAuthHeaders = exports.getEngageSpaces = void 0;
|
|
4
|
+
const properties_1 = require("./properties");
|
|
5
|
+
async function getEngageSpaces(request, data) {
|
|
6
|
+
let cursor = 'MA==';
|
|
7
|
+
const choices = [];
|
|
8
|
+
let response;
|
|
9
|
+
const segmentPAPIEndpoint = properties_1.SEGMENT_ENDPOINTS[data.endpoint || properties_1.DEFAULT_SEGMENT_ENDPOINT].papi;
|
|
10
|
+
do {
|
|
11
|
+
const publicApiUrl = `${segmentPAPIEndpoint}/sources?pagination%5Bcount%5D=${properties_1.PAGINATION_COUNT}&pagination%5Bcursor%5D=${cursor}`;
|
|
12
|
+
try {
|
|
13
|
+
response = await request(publicApiUrl, {
|
|
14
|
+
headers: {
|
|
15
|
+
authorization: `Bearer ${data.bearerToken}`
|
|
16
|
+
},
|
|
17
|
+
method: 'GET',
|
|
18
|
+
skipResponseCloning: true
|
|
19
|
+
});
|
|
20
|
+
for (const source of response.data.data.sources) {
|
|
21
|
+
if (source.metadata.slug !== 'personas-compute') {
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
choices.push({
|
|
25
|
+
label: source.name,
|
|
26
|
+
value: source.writeKeys[0]
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
catch (err) {
|
|
31
|
+
return {
|
|
32
|
+
choices: [],
|
|
33
|
+
error: {
|
|
34
|
+
message: err?.response?.errors?.message ?? 'Unknown Error',
|
|
35
|
+
code: err?.response?.statusText ?? 'Unknown Error'
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (response.data.data.pagination.next) {
|
|
40
|
+
cursor = response.data.data.pagination.next;
|
|
41
|
+
}
|
|
42
|
+
} while (response.data.data.pagination.next);
|
|
43
|
+
return {
|
|
44
|
+
choices
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.getEngageSpaces = getEngageSpaces;
|
|
48
|
+
function generateSegmentAPIAuthHeaders(writeKey) {
|
|
49
|
+
return `Basic ${Buffer.from(writeKey + ':').toString('base64')}`;
|
|
50
|
+
}
|
|
51
|
+
exports.generateSegmentAPIAuthHeaders = generateSegmentAPIAuthHeaders;
|
|
52
|
+
//# sourceMappingURL=helperFunctions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helperFunctions.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/helperFunctions.ts"],"names":[],"mappings":";;;AACA,6CAA4F;AAuCrF,KAAK,UAAU,eAAe,CACnC,OAAsB,EACtB,IAA0B;IAE1B,IAAI,MAAM,GAAG,MAAM,CAAA;IACnB,MAAM,OAAO,GAAuB,EAAE,CAAA;IACtC,IAAI,QAA2C,CAAA;IAE/C,MAAM,mBAAmB,GAAG,8BAAiB,CAAC,IAAI,CAAC,QAAQ,IAAI,qCAAwB,CAAC,CAAC,IAAI,CAAA;IAE7F,GAAG;QAED,MAAM,YAAY,GAAG,GAAG,mBAAmB,kCAAkC,6BAAgB,2BAA2B,MAAM,EAAE,CAAA;QAEhI,IAAI;YACF,QAAQ,GAAG,MAAM,OAAO,CAAkB,YAAY,EAAE;gBACtD,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,IAAI,CAAC,WAAW,EAAE;iBAC5C;gBACD,MAAM,EAAE,KAAK;gBACb,mBAAmB,EAAE,IAAI;aAC1B,CAAC,CAAA;YAEF,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;gBAC/C,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,kBAAkB,EAAE;oBAC/C,SAAQ;iBACT;gBAED,OAAO,CAAC,IAAI,CAAC;oBACX,KAAK,EAAE,MAAM,CAAC,IAAI;oBAClB,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;iBAC3B,CAAC,CAAA;aACH;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO;gBACL,OAAO,EAAE,EAAE;gBACX,KAAK,EAAE;oBACL,OAAO,EAAG,GAA6B,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,IAAI,eAAe;oBACrF,IAAI,EAAG,GAA6B,EAAE,QAAQ,EAAE,UAAU,IAAI,eAAe;iBAC9E;aACF,CAAA;SACF;QAED,IAAI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;YACtC,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAA;SAC5C;KACF,QAAQ,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,EAAC;IAE5C,OAAO;QACL,OAAO;KACR,CAAA;AACH,CAAC;AAnDD,0CAmDC;AAED,SAAgB,6BAA6B,CAAC,QAAgB;IAI5D,OAAO,SAAS,MAAM,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAA;AAClE,CAAC;AALD,sEAKC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const properties_1 = require("./properties");
|
|
7
|
+
const sendGroup_1 = __importDefault(require("./sendGroup"));
|
|
8
|
+
const sendIdentify_1 = __importDefault(require("./sendIdentify"));
|
|
9
|
+
const destination = {
|
|
10
|
+
name: 'Segment Profiles',
|
|
11
|
+
slug: 'actions-segment-profiles',
|
|
12
|
+
mode: 'cloud',
|
|
13
|
+
authentication: {
|
|
14
|
+
scheme: 'custom',
|
|
15
|
+
fields: {
|
|
16
|
+
segment_papi_token: {
|
|
17
|
+
label: 'Segment Public API Token',
|
|
18
|
+
description: 'The Segment Public API requires that you have an authentication token before you send requests. [This document](https://docs.segmentapis.com/tag/Getting-Started#section/Get-an-API-token) explains how to setup a token.',
|
|
19
|
+
type: 'string',
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
endpoint: {
|
|
23
|
+
label: 'Endpoint Region',
|
|
24
|
+
description: 'The region to send your data.',
|
|
25
|
+
type: 'string',
|
|
26
|
+
format: 'text',
|
|
27
|
+
choices: Object.keys(properties_1.SEGMENT_ENDPOINTS).map((key) => ({
|
|
28
|
+
label: properties_1.SEGMENT_ENDPOINTS[key].label,
|
|
29
|
+
value: key
|
|
30
|
+
})),
|
|
31
|
+
default: properties_1.DEFAULT_SEGMENT_ENDPOINT,
|
|
32
|
+
required: true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
testAuthentication: async (request, { settings }) => {
|
|
36
|
+
const { endpoint } = settings;
|
|
37
|
+
return request(properties_1.SEGMENT_ENDPOINTS[endpoint || properties_1.DEFAULT_SEGMENT_ENDPOINT].papi, {
|
|
38
|
+
headers: {
|
|
39
|
+
authorization: `Bearer ${settings.segment_papi_token}`
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
actions: {
|
|
45
|
+
sendGroup: sendGroup_1.default,
|
|
46
|
+
sendIdentify: sendIdentify_1.default
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.default = destination;
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/index.ts"],"names":[],"mappings":";;;;;AAEA,6CAA0E;AAE1E,4DAAmC;AAEnC,kEAAyC;AAEzC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO;IACb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,kBAAkB,EAAE;gBAClB,KAAK,EAAE,0BAA0B;gBACjC,WAAW,EACT,2NAA2N;gBAC7N,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,8BAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;oBACpD,KAAK,EAAE,8BAAiB,CAAC,GAAG,CAAC,CAAC,KAAK;oBACnC,KAAK,EAAE,GAAG;iBACX,CAAC,CAAC;gBACH,OAAO,EAAE,qCAAwB;gBACjC,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAA;YAC7B,OAAO,OAAO,CAAC,8BAAiB,CAAC,QAAQ,IAAI,qCAAwB,CAAC,CAAC,IAAI,EAAE;gBAC3E,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,QAAQ,CAAC,kBAAkB,EAAE;iBACvD;aACF,CAAC,CAAA;QACJ,CAAC;KACF;IACD,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;QACT,YAAY,EAAZ,sBAAY;KACb;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface SegmentEndpoint {
|
|
2
|
+
label: string;
|
|
3
|
+
url: string;
|
|
4
|
+
cdn: string;
|
|
5
|
+
papi: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SEGMENT_ENDPOINTS: {
|
|
8
|
+
[key: string]: SegmentEndpoint;
|
|
9
|
+
};
|
|
10
|
+
export declare const DEFAULT_SEGMENT_ENDPOINT = "north_america";
|
|
11
|
+
export declare const PAGINATION_COUNT = 10;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PAGINATION_COUNT = exports.DEFAULT_SEGMENT_ENDPOINT = exports.SEGMENT_ENDPOINTS = void 0;
|
|
4
|
+
exports.SEGMENT_ENDPOINTS = {
|
|
5
|
+
north_america: {
|
|
6
|
+
label: 'North America',
|
|
7
|
+
url: 'https://api.segment.io/v1',
|
|
8
|
+
cdn: 'https://cdn.segment.com/v1',
|
|
9
|
+
papi: 'https://api.segmentapis.com'
|
|
10
|
+
},
|
|
11
|
+
europe: {
|
|
12
|
+
label: 'Europe',
|
|
13
|
+
url: 'https://events.eu1.segmentapis.com/v1',
|
|
14
|
+
cdn: 'https://cdn.segment.com/v1',
|
|
15
|
+
papi: 'https://eu1.api.segmentapis.com'
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.DEFAULT_SEGMENT_ENDPOINT = 'north_america';
|
|
19
|
+
exports.PAGINATION_COUNT = 10;
|
|
20
|
+
//# sourceMappingURL=properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/properties.ts"],"names":[],"mappings":";;;AAOa,QAAA,iBAAiB,GAAuC;IACnE,aAAa,EAAE;QACb,KAAK,EAAE,eAAe;QACtB,GAAG,EAAE,2BAA2B;QAChC,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,6BAA6B;KACpC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,GAAG,EAAE,uCAAuC;QAC5C,GAAG,EAAE,4BAA4B;QACjC,IAAI,EAAE,iCAAiC;KACxC;CACF,CAAA;AAEY,QAAA,wBAAwB,GAAG,eAAe,CAAA;AAE1C,QAAA,gBAAgB,GAAG,EAAE,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputField } from '@segment/actions-core/src/destination-kit/types';
|
|
2
|
+
export declare const user_id: InputField;
|
|
3
|
+
export declare const anonymous_id: InputField;
|
|
4
|
+
export declare const group_id: InputField;
|
|
5
|
+
export declare const traits: InputField;
|
|
6
|
+
export declare const engage_space: InputField;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.engage_space = exports.traits = exports.group_id = exports.anonymous_id = exports.user_id = void 0;
|
|
4
|
+
exports.user_id = {
|
|
5
|
+
label: 'User ID',
|
|
6
|
+
description: 'Unique identifier for the user in your database. A userId or an anonymousId is required.',
|
|
7
|
+
type: 'string'
|
|
8
|
+
};
|
|
9
|
+
exports.anonymous_id = {
|
|
10
|
+
label: 'Anonymous ID',
|
|
11
|
+
description: 'A pseudo-unique substitute for a User ID, for cases when you don’t have an absolutely unique identifier. A userId or an anonymousId is required.',
|
|
12
|
+
type: 'string'
|
|
13
|
+
};
|
|
14
|
+
exports.group_id = {
|
|
15
|
+
label: 'Group ID',
|
|
16
|
+
description: 'The group or account ID a user is associated with.',
|
|
17
|
+
type: 'string'
|
|
18
|
+
};
|
|
19
|
+
exports.traits = {
|
|
20
|
+
label: 'Traits',
|
|
21
|
+
description: 'Free-form dictionary of traits that describe the user or group of users.',
|
|
22
|
+
type: 'object',
|
|
23
|
+
defaultObjectUI: 'keyvalue',
|
|
24
|
+
additionalProperties: true
|
|
25
|
+
};
|
|
26
|
+
exports.engage_space = {
|
|
27
|
+
label: 'Engage Space',
|
|
28
|
+
description: 'The Engage Space to use for creating a record. *Note: This field shows list of internal sources associated with your Engaged Spaces. Changes made to the Engage Space name in **Settings** will not reflect in this list unless the source associated with the Engage Space is renamed explicitly.*',
|
|
29
|
+
type: 'string',
|
|
30
|
+
required: true,
|
|
31
|
+
dynamic: true
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=segment-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"segment-properties.js","sourceRoot":"","sources":["../../../src/destinations/segment-profiles/segment-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,OAAO,GAAe;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,0FAA0F;IACvG,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,kJAAkJ;IACpJ,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,oDAAoD;IACjE,IAAI,EAAE,QAAQ;CACf,CAAA;AAEY,QAAA,MAAM,GAAe;IAChC,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,0EAA0E;IACvF,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,UAAU;IAC3B,oBAAoB,EAAE,IAAI;CAC3B,CAAA;AAEY,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,qSAAqS;IACvS,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;CACd,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/segment-profiles/sendGroup/generated-types.ts"],"names":[],"mappings":""}
|