@segment/action-destinations 3.301.1-staging-c2af298f5 → 3.302.0
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/dist/destinations/actions-pardot/pa-operations.d.ts +1 -1
- package/dist/destinations/adjust/functions.d.ts +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.d.ts +1 -1
- package/dist/destinations/airship/utilities.d.ts +7 -7
- package/dist/destinations/amazon-amc/index.js +10 -2
- package/dist/destinations/amazon-amc/index.js.map +1 -1
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
- package/dist/destinations/braze/utils.d.ts +6 -6
- package/dist/destinations/contentstack/customAttributesSync/utils.d.ts +1 -1
- package/dist/destinations/cordial/cordial-client.d.ts +8 -8
- package/dist/destinations/dawn/dawn-types.d.ts +13 -0
- package/dist/destinations/{engage/twilio/utils/types.js → dawn/dawn-types.js} +1 -1
- package/dist/destinations/dawn/dawn-types.js.map +1 -0
- package/dist/destinations/dawn/generated-types.d.ts +3 -0
- package/dist/destinations/dawn/generated-types.js.map +1 -0
- package/dist/destinations/dawn/identifyUser/generated-types.d.ts +7 -0
- package/dist/destinations/dawn/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/dawn/identifyUser/index.js +58 -0
- package/dist/destinations/dawn/identifyUser/index.js.map +1 -0
- package/dist/destinations/{engage/twilio/destinationDefinition.d.ts → dawn/index.d.ts} +2 -1
- package/dist/destinations/dawn/index.js +39 -0
- package/dist/destinations/dawn/index.js.map +1 -0
- package/dist/destinations/dawn/track/generated-types.d.ts +8 -0
- package/dist/destinations/dawn/track/generated-types.js.map +1 -0
- package/dist/destinations/dawn/track/index.js +69 -0
- package/dist/destinations/dawn/track/index.js.map +1 -0
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.d.ts +1 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/PushSender.d.ts +1 -1
- package/dist/destinations/engage-messaging-twilio/utils/PhoneMessageSender.d.ts +1 -1
- package/dist/destinations/facebook-conversions-api/constants.d.ts +1 -1
- package/dist/destinations/facebook-conversions-api/constants.js +1 -1
- package/dist/destinations/facebook-custom-audiences/fbca-operations.d.ts +2 -2
- package/dist/destinations/first-party-dv360/generated-types.d.ts +0 -7
- package/dist/destinations/first-party-dv360/index.d.ts +3 -3
- package/dist/destinations/first-party-dv360/index.js +5 -119
- package/dist/destinations/first-party-dv360/index.js.map +1 -1
- package/dist/destinations/gameball/util.d.ts +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +1 -1
- package/dist/destinations/google-sheets/index.js +1 -3
- package/dist/destinations/google-sheets/index.js.map +1 -1
- package/dist/destinations/google-sheets/postSheet/operations.d.ts +1 -1
- package/dist/destinations/hubspot/customEvent/common-fields.d.ts +2 -0
- package/dist/destinations/hubspot/customEvent/common-fields.js +74 -0
- package/dist/destinations/hubspot/customEvent/common-fields.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/constants.d.ts +4 -0
- package/dist/destinations/hubspot/customEvent/constants.js +10 -0
- package/dist/destinations/hubspot/customEvent/constants.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/dynamic-fields.d.ts +32 -0
- package/dist/destinations/hubspot/customEvent/dynamic-fields.js +104 -0
- package/dist/destinations/hubspot/customEvent/dynamic-fields.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/generated-types.d.ts +13 -0
- package/dist/destinations/hubspot/customEvent/generated-types.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/hubspot-api.d.ts +62 -0
- package/dist/destinations/hubspot/customEvent/hubspot-api.js +310 -0
- package/dist/destinations/hubspot/customEvent/hubspot-api.js.map +1 -0
- package/dist/destinations/hubspot/customEvent/index.js +57 -0
- package/dist/destinations/hubspot/customEvent/index.js.map +1 -0
- package/dist/destinations/hubspot/index.js +3 -1
- package/dist/destinations/hubspot/index.js.map +1 -1
- package/dist/destinations/hubspot/upsertObject/common-fields.js +8 -32
- package/dist/destinations/hubspot/upsertObject/common-fields.js.map +1 -1
- package/dist/destinations/hubspot/upsertObject/generated-types.d.ts +8 -11
- package/dist/destinations/hubspot/upsertObject/hubspot-api.d.ts +169 -53
- package/dist/destinations/hubspot/upsertObject/hubspot-api.js +449 -336
- package/dist/destinations/hubspot/upsertObject/hubspot-api.js.map +1 -1
- package/dist/destinations/hubspot/upsertObject/index.d.ts +1 -1
- package/dist/destinations/hubspot/upsertObject/index.js +52 -28
- package/dist/destinations/hubspot/upsertObject/index.js.map +1 -1
- package/dist/destinations/index.js +2 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/addProfileToList/index.js +14 -5
- package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +7 -6
- package/dist/destinations/klaviyo/functions.js +23 -7
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/orderCompleted/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/orderCompleted/index.js +11 -2
- package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
- package/dist/destinations/klaviyo/properties.d.ts +1 -0
- package/dist/destinations/klaviyo/properties.js +7 -1
- package/dist/destinations/klaviyo/properties.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/removeProfile/index.js +24 -7
- package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfileFromList/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/removeProfileFromList/index.js +18 -6
- package/dist/destinations/klaviyo/removeProfileFromList/index.js.map +1 -1
- package/dist/destinations/launchdarkly-audiences/syncAudience/custom-audience-operations.d.ts +1 -1
- package/dist/destinations/salesforce/index.js +1 -13
- package/dist/destinations/salesforce/index.js.map +1 -1
- package/dist/destinations/salesforce/sf-operations.d.ts +0 -1
- package/dist/destinations/salesforce/sf-operations.js +0 -20
- 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 +6 -29
- package/dist/destinations/salesforce/sf-properties.js.map +1 -1
- package/dist/destinations/schematic/identifyUser/generated-types.d.ts +1 -1
- package/dist/destinations/schematic/identifyUser/index.js +6 -3
- package/dist/destinations/schematic/identifyUser/index.js.map +1 -1
- package/dist/destinations/schematic/trackEvent/generated-types.d.ts +1 -1
- package/dist/destinations/schematic/trackEvent/index.js +2 -2
- package/dist/destinations/schematic/trackEvent/index.js.map +1 -1
- package/dist/destinations/topsort/click/generated-types.d.ts +6 -0
- package/dist/destinations/topsort/click/generated-types.js.map +1 -0
- package/dist/destinations/topsort/click/index.js +54 -0
- package/dist/destinations/topsort/click/index.js.map +1 -0
- package/dist/destinations/topsort/client.d.ts +10 -0
- package/dist/destinations/topsort/client.js +26 -0
- package/dist/destinations/topsort/client.js.map +1 -0
- package/dist/destinations/topsort/generated-types.d.ts +3 -0
- package/dist/destinations/topsort/generated-types.js.map +1 -0
- package/dist/destinations/topsort/impression/generated-types.d.ts +6 -0
- package/dist/destinations/topsort/impression/generated-types.js.map +1 -0
- package/dist/destinations/topsort/impression/index.js +54 -0
- package/dist/destinations/topsort/impression/index.js.map +1 -0
- package/dist/destinations/{engage/sendgrid/destinationDefinition.d.ts → topsort/index.d.ts} +2 -1
- package/dist/destinations/topsort/index.js +56 -0
- package/dist/destinations/topsort/index.js.map +1 -0
- package/dist/destinations/topsort/purchase/generated-types.d.ts +10 -0
- package/dist/destinations/topsort/purchase/generated-types.js.map +1 -0
- package/dist/destinations/topsort/purchase/index.d.ts +5 -0
- package/dist/destinations/topsort/purchase/index.js +82 -0
- package/dist/destinations/topsort/purchase/index.js.map +1 -0
- package/dist/lib/test-data.js +2 -0
- package/dist/lib/test-data.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/amazon-ads/generated-types.d.ts +0 -12
- package/dist/destinations/amazon-ads/generated-types.js.map +0 -1
- package/dist/destinations/amazon-ads/index.d.ts +0 -4
- package/dist/destinations/amazon-ads/index.js +0 -237
- package/dist/destinations/amazon-ads/index.js.map +0 -1
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.d.ts +0 -15
- package/dist/destinations/amazon-ads/syncAudiences/generated-types.js.map +0 -1
- package/dist/destinations/amazon-ads/syncAudiences/index.js +0 -182
- package/dist/destinations/amazon-ads/syncAudiences/index.js.map +0 -1
- package/dist/destinations/amazon-ads/types.d.ts +0 -47
- package/dist/destinations/amazon-ads/types.js +0 -11
- package/dist/destinations/amazon-ads/types.js.map +0 -1
- package/dist/destinations/amazon-ads/utils.d.ts +0 -37
- package/dist/destinations/amazon-ads/utils.js +0 -25
- package/dist/destinations/amazon-ads/utils.js.map +0 -1
- package/dist/destinations/contentstack/constants.d.ts +0 -3
- package/dist/destinations/contentstack/constants.js +0 -7
- package/dist/destinations/contentstack/constants.js.map +0 -1
- package/dist/destinations/engage/sendgrid/destinationDefinition.js +0 -70
- package/dist/destinations/engage/sendgrid/destinationDefinition.js.map +0 -1
- package/dist/destinations/engage/sendgrid/generated-types.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/generated-types.js +0 -14
- package/dist/destinations/engage/sendgrid/generated-types.js.map +0 -1
- package/dist/destinations/engage/sendgrid/index.d.ts +0 -2
- package/dist/destinations/engage/sendgrid/index.js +0 -5
- package/dist/destinations/engage/sendgrid/index.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js +0 -28
- package/dist/destinations/engage/sendgrid/previewApiLookup/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js +0 -14
- package/dist/destinations/engage/sendgrid/previewApiLookup/generated-types.js.map +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/index.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/previewApiLookup/index.js +0 -14
- package/dist/destinations/engage/sendgrid/previewApiLookup/index.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.d.ts +0 -44
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js +0 -419
- package/dist/destinations/engage/sendgrid/sendEmail/SendEmailPerformer.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.d.ts +0 -12
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js +0 -3
- package/dist/destinations/engage/sendgrid/sendEmail/UnlayerResponse.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js +0 -257
- package/dist/destinations/engage/sendgrid/sendEmail/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/generated-types.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js +0 -14
- package/dist/destinations/engage/sendgrid/sendEmail/generated-types.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/index.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/index.js +0 -14
- package/dist/destinations/engage/sendgrid/sendEmail/index.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js +0 -23
- package/dist/destinations/engage/sendgrid/sendEmail/insertEmailPreviewText.js.map +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.d.ts +0 -1
- package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js +0 -14
- package/dist/destinations/engage/sendgrid/sendEmail/isRestrictedDomain.js.map +0 -1
- package/dist/destinations/engage/twilio/destinationDefinition.js +0 -172
- package/dist/destinations/engage/twilio/destinationDefinition.js.map +0 -1
- package/dist/destinations/engage/twilio/generated-types.d.ts +0 -1
- package/dist/destinations/engage/twilio/generated-types.js +0 -14
- package/dist/destinations/engage/twilio/generated-types.js.map +0 -1
- package/dist/destinations/engage/twilio/index.d.ts +0 -2
- package/dist/destinations/engage/twilio/index.js +0 -5
- package/dist/destinations/engage/twilio/index.js.map +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.d.ts +0 -28
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js +0 -151
- package/dist/destinations/engage/twilio/sendMobilePush/PushSender.js.map +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js +0 -250
- package/dist/destinations/engage/twilio/sendMobilePush/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/generated-types.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js +0 -14
- package/dist/destinations/engage/twilio/sendMobilePush/generated-types.js.map +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/index.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendMobilePush/index.js +0 -14
- package/dist/destinations/engage/twilio/sendMobilePush/index.js.map +0 -1
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.d.ts +0 -9
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js +0 -72
- package/dist/destinations/engage/twilio/sendSms/SmsMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/sendSms/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/twilio/sendSms/actionDefinition.js +0 -162
- package/dist/destinations/engage/twilio/sendSms/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/twilio/sendSms/generated-types.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendSms/generated-types.js +0 -14
- package/dist/destinations/engage/twilio/sendSms/generated-types.js.map +0 -1
- package/dist/destinations/engage/twilio/sendSms/index.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendSms/index.js +0 -14
- package/dist/destinations/engage/twilio/sendSms/index.js.map +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.d.ts +0 -9
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js +0 -89
- package/dist/destinations/engage/twilio/sendWhatsApp/WhatsAppMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.d.ts +0 -4
- package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js +0 -136
- package/dist/destinations/engage/twilio/sendWhatsApp/actionDefinition.js.map +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js +0 -14
- package/dist/destinations/engage/twilio/sendWhatsApp/generated-types.js.map +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/index.d.ts +0 -1
- package/dist/destinations/engage/twilio/sendWhatsApp/index.js +0 -14
- package/dist/destinations/engage/twilio/sendWhatsApp/index.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.d.ts +0 -16
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js +0 -71
- package/dist/destinations/engage/twilio/utils/PhoneMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.d.ts +0 -16
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js +0 -115
- package/dist/destinations/engage/twilio/utils/TwilioMessageSender.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/index.d.ts +0 -2
- package/dist/destinations/engage/twilio/utils/index.js +0 -15
- package/dist/destinations/engage/twilio/utils/index.js.map +0 -1
- package/dist/destinations/engage/twilio/utils/types.d.ts +0 -23
- package/dist/destinations/engage/twilio/utils/types.js.map +0 -1
- package/dist/destinations/engage/utils/AggregateError.d.ts +0 -14
- package/dist/destinations/engage/utils/AggregateError.js +0 -26
- package/dist/destinations/engage/utils/AggregateError.js.map +0 -1
- package/dist/destinations/engage/utils/EngageActionPerformer.d.ts +0 -42
- package/dist/destinations/engage/utils/EngageActionPerformer.js +0 -148
- package/dist/destinations/engage/utils/EngageActionPerformer.js.map +0 -1
- package/dist/destinations/engage/utils/EngageLogger.d.ts +0 -18
- package/dist/destinations/engage/utils/EngageLogger.js +0 -52
- package/dist/destinations/engage/utils/EngageLogger.js.map +0 -1
- package/dist/destinations/engage/utils/EngageStats.d.ts +0 -18
- package/dist/destinations/engage/utils/EngageStats.js +0 -95
- package/dist/destinations/engage/utils/EngageStats.js.map +0 -1
- package/dist/destinations/engage/utils/IntegrationErrorWrapper.d.ts +0 -12
- package/dist/destinations/engage/utils/IntegrationErrorWrapper.js +0 -31
- package/dist/destinations/engage/utils/IntegrationErrorWrapper.js.map +0 -1
- package/dist/destinations/engage/utils/MessageSendPerformer.d.ts +0 -65
- package/dist/destinations/engage/utils/MessageSendPerformer.js +0 -211
- package/dist/destinations/engage/utils/MessageSendPerformer.js.map +0 -1
- package/dist/destinations/engage/utils/Profile.d.ts +0 -6
- package/dist/destinations/engage/utils/Profile.js +0 -3
- package/dist/destinations/engage/utils/Profile.js.map +0 -1
- package/dist/destinations/engage/utils/ResponseError.d.ts +0 -25
- package/dist/destinations/engage/utils/ResponseError.js +0 -22
- package/dist/destinations/engage/utils/ResponseError.js.map +0 -1
- package/dist/destinations/engage/utils/apiLookups.d.ts +0 -22
- package/dist/destinations/engage/utils/apiLookups.js +0 -189
- package/dist/destinations/engage/utils/apiLookups.js.map +0 -1
- package/dist/destinations/engage/utils/getProfileApiEndpoint.d.ts +0 -2
- package/dist/destinations/engage/utils/getProfileApiEndpoint.js +0 -10
- package/dist/destinations/engage/utils/getProfileApiEndpoint.js.map +0 -1
- package/dist/destinations/engage/utils/index.d.ts +0 -9
- package/dist/destinations/engage/utils/index.js +0 -22
- package/dist/destinations/engage/utils/index.js.map +0 -1
- package/dist/destinations/engage/utils/isDestinationActionService.d.ts +0 -1
- package/dist/destinations/engage/utils/isDestinationActionService.js +0 -8
- package/dist/destinations/engage/utils/isDestinationActionService.js.map +0 -1
- package/dist/destinations/engage/utils/isRetryableError.d.ts +0 -2
- package/dist/destinations/engage/utils/isRetryableError.js +0 -33
- package/dist/destinations/engage/utils/isRetryableError.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.d.ts +0 -1
- package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js +0 -3
- package/dist/destinations/engage/utils/operationTracking/GenericMethodDecorator.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationDecorator.d.ts +0 -46
- package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js +0 -46
- package/dist/destinations/engage/utils/operationTracking/OperationDecorator.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationDuration.d.ts +0 -12
- package/dist/destinations/engage/utils/operationTracking/OperationDuration.js +0 -23
- package/dist/destinations/engage/utils/operationTracking/OperationDuration.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.d.ts +0 -12
- package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js +0 -35
- package/dist/destinations/engage/utils/operationTracking/OperationErrorHandler.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +0 -14
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +0 -31
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationLogger.d.ts +0 -31
- package/dist/destinations/engage/utils/operationTracking/OperationLogger.js +0 -104
- package/dist/destinations/engage/utils/operationTracking/OperationLogger.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationStats.d.ts +0 -39
- package/dist/destinations/engage/utils/operationTracking/OperationStats.js +0 -130
- package/dist/destinations/engage/utils/operationTracking/OperationStats.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.d.ts +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js +0 -377
- package/dist/destinations/engage/utils/operationTracking/OperationTracker.test.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/OperationTree.d.ts +0 -23
- package/dist/destinations/engage/utils/operationTracking/OperationTree.js +0 -49
- package/dist/destinations/engage/utils/operationTracking/OperationTree.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/TrackedError.d.ts +0 -6
- package/dist/destinations/engage/utils/operationTracking/TrackedError.js +0 -3
- package/dist/destinations/engage/utils/operationTracking/TrackedError.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/index.d.ts +0 -10
- package/dist/destinations/engage/utils/operationTracking/index.js +0 -23
- package/dist/destinations/engage/utils/operationTracking/index.js.map +0 -1
- package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.d.ts +0 -21
- package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js +0 -99
- package/dist/destinations/engage/utils/operationTracking/wrapTryCatchFinallyPromisable.js.map +0 -1
- package/dist/destinations/engage/utils/testUtils.d.ts +0 -6
- package/dist/destinations/engage/utils/testUtils.js +0 -26
- package/dist/destinations/engage/utils/testUtils.js.map +0 -1
- package/dist/destinations/engage/utils/track.d.ts +0 -52
- package/dist/destinations/engage/utils/track.js +0 -9
- package/dist/destinations/engage/utils/track.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.d.ts +0 -16
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js +0 -3
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.js.map +0 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +0 -56
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js +0 -3
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.d.ts +0 -39
- package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js +0 -3
- package/dist/destinations/engage-messaging-twilio/sendMobilePush.types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendSms.types.d.ts +0 -27
- package/dist/destinations/engage-messaging-twilio/sendSms.types.js +0 -3
- package/dist/destinations/engage-messaging-twilio/sendSms.types.js.map +0 -1
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.d.ts +0 -25
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js +0 -3
- package/dist/destinations/engage-messaging-twilio/sendWhatsApp.types.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/add/generated-types.d.ts +0 -2
- package/dist/destinations/facebook-custom-audiences/add/generated-types.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/add/index.js +0 -11
- package/dist/destinations/facebook-custom-audiences/add/index.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/remove/generated-types.d.ts +0 -2
- package/dist/destinations/facebook-custom-audiences/remove/generated-types.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/remove/index.js +0 -11
- package/dist/destinations/facebook-custom-audiences/remove/index.js.map +0 -1
- package/dist/destinations/first-party-dv360/functions.d.ts +0 -17
- package/dist/destinations/first-party-dv360/functions.js +0 -38
- package/dist/destinations/first-party-dv360/functions.js.map +0 -1
- package/dist/destinations/google-sheets/postSheet2/generated-types.d.ts +0 -10
- package/dist/destinations/google-sheets/postSheet2/generated-types.js.map +0 -1
- package/dist/destinations/google-sheets/postSheet2/index.js +0 -98
- package/dist/destinations/google-sheets/postSheet2/index.js.map +0 -1
- package/dist/destinations/google-sheets/postSheet2/operations2.d.ts +0 -10
- package/dist/destinations/google-sheets/postSheet2/operations2.js +0 -96
- package/dist/destinations/google-sheets/postSheet2/operations2.js.map +0 -1
- package/dist/destinations/salesforce/account2/generated-types.d.ts +0 -32
- package/dist/destinations/salesforce/account2/generated-types.js.map +0 -1
- package/dist/destinations/salesforce/account2/index.d.ts +0 -5
- package/dist/destinations/salesforce/account2/index.js +0 -248
- package/dist/destinations/salesforce/account2/index.js.map +0 -1
- package/dist/destinations/salesforce/cases2/generated-types.d.ts +0 -17
- package/dist/destinations/salesforce/cases2/generated-types.js.map +0 -1
- package/dist/destinations/salesforce/cases2/index.js +0 -76
- package/dist/destinations/salesforce/cases2/index.js.map +0 -1
- package/dist/destinations/salesforce/contact2/generated-types.d.ts +0 -25
- package/dist/destinations/salesforce/contact2/generated-types.js.map +0 -1
- package/dist/destinations/salesforce/contact2/index.d.ts +0 -5
- package/dist/destinations/salesforce/contact2/index.js +0 -192
- package/dist/destinations/salesforce/contact2/index.js.map +0 -1
- package/dist/destinations/salesforce/customObject2/generated-types.d.ts +0 -17
- package/dist/destinations/salesforce/customObject2/generated-types.js +0 -3
- package/dist/destinations/salesforce/customObject2/generated-types.js.map +0 -1
- package/dist/destinations/salesforce/customObject2/index.d.ts +0 -5
- package/dist/destinations/salesforce/customObject2/index.js +0 -97
- package/dist/destinations/salesforce/customObject2/index.js.map +0 -1
- package/dist/destinations/salesforce/lead2/generated-types.d.ts +0 -25
- package/dist/destinations/salesforce/lead2/generated-types.js +0 -3
- package/dist/destinations/salesforce/lead2/generated-types.js.map +0 -1
- package/dist/destinations/salesforce/lead2/index.d.ts +0 -5
- package/dist/destinations/salesforce/lead2/index.js +0 -200
- package/dist/destinations/salesforce/lead2/index.js.map +0 -1
- package/dist/destinations/salesforce/opportunity2/generated-types.d.ts +0 -21
- package/dist/destinations/salesforce/opportunity2/generated-types.js +0 -3
- package/dist/destinations/salesforce/opportunity2/generated-types.js.map +0 -1
- package/dist/destinations/salesforce/opportunity2/index.d.ts +0 -5
- package/dist/destinations/salesforce/opportunity2/index.js +0 -112
- package/dist/destinations/salesforce/opportunity2/index.js.map +0 -1
- /package/dist/destinations/{amazon-ads → dawn}/generated-types.js +0 -0
- /package/dist/destinations/{amazon-ads/syncAudiences → dawn/identifyUser}/generated-types.js +0 -0
- /package/dist/destinations/{amazon-ads/syncAudiences → dawn/identifyUser}/index.d.ts +0 -0
- /package/dist/destinations/{facebook-custom-audiences/add → dawn/track}/generated-types.js +0 -0
- /package/dist/destinations/{facebook-custom-audiences/add → dawn/track}/index.d.ts +0 -0
- /package/dist/destinations/{facebook-custom-audiences/remove → hubspot/customEvent}/generated-types.js +0 -0
- /package/dist/destinations/{google-sheets/postSheet2 → hubspot/customEvent}/index.d.ts +0 -0
- /package/dist/destinations/{google-sheets/postSheet2 → topsort/click}/generated-types.js +0 -0
- /package/dist/destinations/{facebook-custom-audiences/remove → topsort/click}/index.d.ts +0 -0
- /package/dist/destinations/{salesforce/account2 → topsort}/generated-types.js +0 -0
- /package/dist/destinations/{salesforce/cases2 → topsort/impression}/generated-types.js +0 -0
- /package/dist/destinations/{salesforce/cases2 → topsort/impression}/index.d.ts +0 -0
- /package/dist/destinations/{salesforce/contact2 → topsort/purchase}/generated-types.js +0 -0
|
@@ -1,61 +1,161 @@
|
|
|
1
1
|
import { RequestClient, ModifiedResponse } from '@segment/actions-core';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { Payload } from './generated-types';
|
|
3
|
+
export declare const SyncMode: {
|
|
4
|
+
readonly Upsert: "upsert";
|
|
5
|
+
readonly Add: "add";
|
|
6
|
+
readonly Update: "update";
|
|
7
|
+
};
|
|
8
|
+
export declare type SyncMode = typeof SyncMode[keyof typeof SyncMode];
|
|
9
|
+
export declare const AssociationSyncMode: {
|
|
10
|
+
readonly Upsert: "upsert";
|
|
11
|
+
readonly Read: "read";
|
|
12
|
+
};
|
|
13
|
+
export declare type AssociationSyncMode = typeof AssociationSyncMode[keyof typeof AssociationSyncMode];
|
|
14
|
+
declare const BatchRequestType: {
|
|
15
|
+
readonly Upsert: "upsert";
|
|
16
|
+
readonly Create: "create";
|
|
17
|
+
readonly Update: "update";
|
|
18
|
+
readonly Read: "read";
|
|
19
|
+
};
|
|
20
|
+
declare type BatchRequestType = typeof BatchRequestType[keyof typeof BatchRequestType];
|
|
21
|
+
declare const HSPropTypeFieldType: {
|
|
22
|
+
readonly StringText: "string:text";
|
|
23
|
+
readonly NumberNumber: "number:number";
|
|
24
|
+
readonly DateTimeDate: "datetime:date";
|
|
25
|
+
readonly DateDate: "date:date";
|
|
26
|
+
readonly EnumerationBooleanCheckbox: "enumeration:booleancheckbox";
|
|
27
|
+
};
|
|
28
|
+
declare type HSPropTypeFieldType = typeof HSPropTypeFieldType[keyof typeof HSPropTypeFieldType];
|
|
29
|
+
declare const HSPropType: {
|
|
30
|
+
readonly Date: "date";
|
|
31
|
+
readonly String: "string";
|
|
32
|
+
readonly DateTime: "datetime";
|
|
33
|
+
readonly Number: "number";
|
|
34
|
+
readonly Enumeration: "enumeration";
|
|
35
|
+
};
|
|
36
|
+
declare type HSPropType = typeof HSPropType[keyof typeof HSPropType];
|
|
37
|
+
declare const HSPropFieldType: {
|
|
38
|
+
readonly Text: "text";
|
|
39
|
+
readonly Number: "number";
|
|
40
|
+
readonly Date: "date";
|
|
41
|
+
readonly BooleanCheckbox: "booleancheckbox";
|
|
42
|
+
};
|
|
43
|
+
declare type HSPropFieldType = typeof HSPropFieldType[keyof typeof HSPropFieldType];
|
|
44
|
+
export declare const SchemaMatch: {
|
|
45
|
+
readonly FullMatch: "full_match";
|
|
46
|
+
readonly PropertiesMissing: "properties_missing";
|
|
47
|
+
readonly NoMatch: "no_match";
|
|
48
|
+
readonly Mismatch: "mismatch";
|
|
49
|
+
};
|
|
50
|
+
export declare type SchemaMatch = typeof SchemaMatch[keyof typeof SchemaMatch];
|
|
51
|
+
declare const ReadType: {
|
|
52
|
+
readonly ReturnRecordsWithIds: "return_records_with_ids";
|
|
53
|
+
readonly ReturnRecordsWithoutIds: "return_records_without_ids";
|
|
54
|
+
};
|
|
55
|
+
declare type ReadType = typeof ReadType[keyof typeof ReadType];
|
|
56
|
+
interface Prop {
|
|
12
57
|
name: string;
|
|
13
|
-
type:
|
|
14
|
-
fieldType:
|
|
15
|
-
|
|
58
|
+
type: HSPropType;
|
|
59
|
+
fieldType: HSPropFieldType;
|
|
60
|
+
typeFieldType: HSPropTypeFieldType;
|
|
16
61
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
62
|
+
interface Schema {
|
|
63
|
+
object_details: {
|
|
64
|
+
object_type: string;
|
|
65
|
+
id_field_name: string;
|
|
66
|
+
};
|
|
67
|
+
properties: Prop[];
|
|
68
|
+
sensitiveProperties: Prop[];
|
|
22
69
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
70
|
+
interface SchemaDiff {
|
|
71
|
+
match: SchemaMatch;
|
|
72
|
+
object_details: {
|
|
73
|
+
object_type: string;
|
|
74
|
+
id_field_name: string;
|
|
75
|
+
};
|
|
76
|
+
missingProperties: Prop[];
|
|
77
|
+
missingSensitiveProperties: Prop[];
|
|
27
78
|
}
|
|
28
|
-
interface
|
|
79
|
+
interface ResponseType {
|
|
80
|
+
status: 'fulfilled' | 'rejected';
|
|
81
|
+
value?: {
|
|
82
|
+
data: {
|
|
83
|
+
results: Result[];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
reason?: {
|
|
87
|
+
message: string;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
interface Result {
|
|
91
|
+
name: string;
|
|
92
|
+
type: HSPropType;
|
|
93
|
+
fieldType: HSPropFieldType;
|
|
94
|
+
hasUniqueValue: boolean;
|
|
95
|
+
}
|
|
96
|
+
interface ReadJSON {
|
|
29
97
|
idProperty: string;
|
|
30
98
|
properties: string[];
|
|
31
99
|
inputs: Array<{
|
|
32
100
|
id: string;
|
|
33
101
|
}>;
|
|
34
102
|
}
|
|
35
|
-
interface
|
|
103
|
+
interface UpsertJSON {
|
|
36
104
|
inputs: Array<{
|
|
37
105
|
idProperty: string;
|
|
38
106
|
id: string;
|
|
39
107
|
properties: Record<string, string>;
|
|
40
108
|
}>;
|
|
41
109
|
}
|
|
42
|
-
interface
|
|
110
|
+
interface CreateJSON {
|
|
43
111
|
inputs: Array<{
|
|
44
112
|
idProperty: string;
|
|
45
113
|
properties: Record<string, string>;
|
|
46
114
|
}>;
|
|
47
115
|
}
|
|
48
|
-
interface
|
|
116
|
+
interface RespJSON {
|
|
49
117
|
status: string;
|
|
50
118
|
results: Array<{
|
|
51
119
|
id: string;
|
|
52
120
|
properties: Record<string, string | null>;
|
|
53
121
|
}>;
|
|
54
122
|
}
|
|
123
|
+
interface OmitPayload extends Omit<Payload, 'enable_batching' | 'batch_size' | 'association_sync_mode'> {
|
|
124
|
+
}
|
|
125
|
+
interface PayloadWithFromId extends OmitPayload {
|
|
126
|
+
object_details: OmitPayload['object_details'] & {
|
|
127
|
+
record_id: string;
|
|
128
|
+
};
|
|
129
|
+
associations?: Array<{
|
|
130
|
+
object_type: string;
|
|
131
|
+
association_label: string;
|
|
132
|
+
id_field_name: string;
|
|
133
|
+
id_field_value: string;
|
|
134
|
+
from_record_id: string;
|
|
135
|
+
}>;
|
|
136
|
+
}
|
|
137
|
+
interface AssociationPayload extends OmitPayload {
|
|
138
|
+
object_details: OmitPayload['object_details'] & {
|
|
139
|
+
from_record_id: string;
|
|
140
|
+
};
|
|
141
|
+
association_details: {
|
|
142
|
+
association_label: string;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
interface AssociationPayloadWithId extends AssociationPayload {
|
|
146
|
+
object_details: AssociationPayload['object_details'] & {
|
|
147
|
+
record_id: string;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
55
150
|
interface AssociationType {
|
|
56
151
|
associationCategory: AssociationCategory;
|
|
57
152
|
associationTypeId: string;
|
|
58
153
|
}
|
|
154
|
+
declare enum AssociationCategory {
|
|
155
|
+
HUBSPOT_DEFINED = "HUBSPOT_DEFINED",
|
|
156
|
+
USER_DEFINED = "USER_DEFINED",
|
|
157
|
+
INTEGRATOR_DEFINED = "INTEGRATOR_DEFINED"
|
|
158
|
+
}
|
|
59
159
|
interface BatchAssociationsRequestBody {
|
|
60
160
|
inputs: {
|
|
61
161
|
types: AssociationType[];
|
|
@@ -67,37 +167,53 @@ interface BatchAssociationsRequestBody {
|
|
|
67
167
|
};
|
|
68
168
|
}[];
|
|
69
169
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
170
|
+
interface GroupableFields {
|
|
171
|
+
object_type: string;
|
|
172
|
+
id_field_name: string;
|
|
173
|
+
}
|
|
73
174
|
export declare class HubspotClient {
|
|
74
175
|
request: RequestClient;
|
|
75
|
-
|
|
76
|
-
|
|
176
|
+
objectType: string;
|
|
177
|
+
syncMode: SyncMode;
|
|
77
178
|
associationSyncMode: AssociationSyncMode;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
179
|
+
propertyGroup?: string;
|
|
180
|
+
constructor(request: RequestClient, objectType: string, syncMode: SyncMode, associationSyncMode: AssociationSyncMode, propertyGroup: string | undefined);
|
|
181
|
+
cleanProp(str: string): string;
|
|
182
|
+
cleanObj(obj: {
|
|
183
|
+
[k: string]: unknown;
|
|
184
|
+
} | undefined): {
|
|
185
|
+
[k: string]: string | number | boolean;
|
|
186
|
+
} | undefined;
|
|
187
|
+
cleanProps(payloads: Payload[]): Payload[];
|
|
188
|
+
format(value: unknown): {
|
|
189
|
+
type: HSPropType;
|
|
190
|
+
fieldType: HSPropFieldType;
|
|
191
|
+
};
|
|
192
|
+
formatHS(type: HSPropType, fieldType: HSPropFieldType): HSPropTypeFieldType;
|
|
193
|
+
schema(payloads: Payload[]): Schema;
|
|
194
|
+
schemaDiffCache(schema: Schema): Promise<SchemaDiff>;
|
|
195
|
+
saveSchemaToCache(schema: Schema): Promise<void>;
|
|
196
|
+
determineMissingPropsAndMatchType(response: ResponseType, properties: Prop[]): {
|
|
197
|
+
missingProps: Prop[];
|
|
198
|
+
match: SchemaMatch;
|
|
90
199
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
200
|
+
schemaDiffHubspot(schema: Schema): Promise<SchemaDiff>;
|
|
201
|
+
createProperties(schemaDiff: SchemaDiff): Promise<void>;
|
|
202
|
+
batchObjectRequest(action: BatchRequestType, objectType: string, data: ReadJSON | UpsertJSON | CreateJSON): Promise<ModifiedResponse<RespJSON>>;
|
|
203
|
+
sendFromRecords(payloads: Payload[]): Promise<PayloadWithFromId[]>;
|
|
204
|
+
readRecords(payloads: Payload[], objectType: string, readType: ReadType): Promise<PayloadWithFromId[] | Payload[]>;
|
|
205
|
+
upsertRecords(payloads: Payload[], objectType: string): Promise<PayloadWithFromId[]>;
|
|
206
|
+
updateRecords(payloads: Payload[], objectType: string): Promise<PayloadWithFromId[]>;
|
|
207
|
+
addRecords(payloads: Payload[], objectType: string): Promise<PayloadWithFromId[]>;
|
|
208
|
+
returnRecordsWithIds(payloads: Payload[], response: ModifiedResponse<RespJSON>): PayloadWithFromId[];
|
|
209
|
+
returnRecordsWithoutIds(payloads: Payload[], response: ModifiedResponse<RespJSON>): Payload[];
|
|
210
|
+
createAssociationPayloads(payloads: PayloadWithFromId[]): AssociationPayload[][];
|
|
211
|
+
groupPayloads(associations: AssociationPayload[], groupBy: (keyof GroupableFields)[]): AssociationPayload[][];
|
|
212
|
+
sendAssociatedRecords(payloads: AssociationPayload[][]): Promise<AssociationPayloadWithId[]>;
|
|
213
|
+
readAssociatedRecords(groupedPayloads: AssociationPayload[][]): Promise<AssociationPayloadWithId[]>;
|
|
214
|
+
upsertAssociatedRecords(groupedPayloads: AssociationPayload[][]): Promise<AssociationPayloadWithId[]>;
|
|
215
|
+
returnAssociatedRecordsWithIds(groupedPayloads: AssociationPayload[][], responses: ModifiedResponse<RespJSON>[]): AssociationPayloadWithId[];
|
|
100
216
|
batchAssociationsRequest(body: BatchAssociationsRequestBody, toObjectType: string): Promise<ModifiedResponse<unknown>>;
|
|
101
|
-
|
|
217
|
+
sendAssociations(payloads: AssociationPayloadWithId[]): Promise<void>;
|
|
102
218
|
}
|
|
103
219
|
export {};
|