@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,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
-
const operations2_1 = require("./operations2");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Post Sheet (Simplified)',
|
|
7
|
-
description: 'Write values to a Google Sheets spreadsheet.',
|
|
8
|
-
defaultSubscription: 'event = "updated" or event = "new"',
|
|
9
|
-
syncMode: {
|
|
10
|
-
description: 'Define how the records from your destination will be synced.',
|
|
11
|
-
label: 'How to sync records',
|
|
12
|
-
default: 'upsert',
|
|
13
|
-
choices: [
|
|
14
|
-
{
|
|
15
|
-
label: 'If a record with the specified identifier is found, it will be updated. If not, a new row will be created.',
|
|
16
|
-
value: 'upsert'
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: "Add a new record when the specified identifier doesn't exist. If it does, it will be skipped.",
|
|
20
|
-
value: 'add'
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: "Update a record if a match with the specified identifier is found. Do nothing if the row doesn't exist.",
|
|
24
|
-
value: 'update'
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
fields: {
|
|
29
|
-
record_identifier: {
|
|
30
|
-
label: 'Record Identifier',
|
|
31
|
-
description: 'Property which uniquely identifies each row in the spreadsheet.',
|
|
32
|
-
type: 'string',
|
|
33
|
-
required: true,
|
|
34
|
-
default: { '@path': '$.__segment_id' }
|
|
35
|
-
},
|
|
36
|
-
spreadsheet_id: {
|
|
37
|
-
label: 'Spreadsheet ID',
|
|
38
|
-
description: 'The identifier of the spreadsheet. You can find this value in the URL of the spreadsheet. e.g. https://docs.google.com/spreadsheets/d/{SPREADSHEET_ID}/edit',
|
|
39
|
-
type: 'string',
|
|
40
|
-
required: true,
|
|
41
|
-
default: ''
|
|
42
|
-
},
|
|
43
|
-
spreadsheet_name: {
|
|
44
|
-
label: 'Spreadsheet Name',
|
|
45
|
-
description: 'The name of the spreadsheet. You can find this value on the tab at the bottom of the spreadsheet. Please provide a valid name of a sheet that already exists.',
|
|
46
|
-
type: 'string',
|
|
47
|
-
required: true,
|
|
48
|
-
default: 'Sheet1'
|
|
49
|
-
},
|
|
50
|
-
data_format: {
|
|
51
|
-
label: 'Data Format',
|
|
52
|
-
description: 'The way Google will interpret values. If you select raw, values will not be parsed and will be stored as-is. If you select user entered, values will be parsed as if you typed them into the UI. Numbers will stay as numbers, but strings may be converted to numbers, dates, etc. following the same rules that are applied when entering text into a cell via the Google Sheets UI.',
|
|
53
|
-
type: 'string',
|
|
54
|
-
required: true,
|
|
55
|
-
default: 'RAW',
|
|
56
|
-
choices: [
|
|
57
|
-
{ label: 'Raw', value: 'RAW' },
|
|
58
|
-
{ label: 'User Entered', value: 'USER_ENTERED' }
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
fields: {
|
|
62
|
-
label: 'Fields',
|
|
63
|
-
description: `
|
|
64
|
-
The fields to write to the spreadsheet.
|
|
65
|
-
|
|
66
|
-
On the left-hand side, input the name of the field as it will appear in the Google Sheet.
|
|
67
|
-
|
|
68
|
-
On the right-hand side, select the field from your data model that maps to the given field in your sheet.
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
`,
|
|
73
|
-
type: 'object',
|
|
74
|
-
required: true,
|
|
75
|
-
defaultObjectUI: 'keyvalue:only'
|
|
76
|
-
},
|
|
77
|
-
enable_batching: {
|
|
78
|
-
type: 'boolean',
|
|
79
|
-
label: 'Batch Data to Google Sheets',
|
|
80
|
-
description: 'Set as true to ensure Segment sends data to Google Sheets in batches. Please do not set to false.',
|
|
81
|
-
default: true
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
perform: (request, { payload, syncMode }) => {
|
|
85
|
-
if (!syncMode) {
|
|
86
|
-
throw new actions_core_1.IntegrationError('Sync mode is required for this action.', 'INVALID_REQUEST_DATA', 400);
|
|
87
|
-
}
|
|
88
|
-
return operations2_1.processData(request, [payload], syncMode);
|
|
89
|
-
},
|
|
90
|
-
performBatch: (request, { payload, syncMode }) => {
|
|
91
|
-
if (!syncMode) {
|
|
92
|
-
throw new actions_core_1.IntegrationError('Sync mode is required for this action.', 'INVALID_REQUEST_DATA', 400);
|
|
93
|
-
}
|
|
94
|
-
return operations2_1.processData(request, payload, syncMode);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
exports.default = action;
|
|
98
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/google-sheets/postSheet2/index.ts"],"names":[],"mappings":";;AAAA,wDAA0E;AAI1E,+CAA2C;AAE3C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,8CAA8C;IAC3D,mBAAmB,EAAE,oCAAoC;IACzD,QAAQ,EAAE;QACR,WAAW,EAAE,8DAA8D;QAC3E,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE;YACP;gBACE,KAAK,EACH,4GA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ACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC1C,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,+BAAgB,CAAC,wCAAwC,EAAE,sBAAsB,EAAE,GAAG,CAAC,CAAA;SAClG;QACD,OAAO,yBAAW,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAA;IAClD,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC/C,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,+BAAgB,CAAC,wCAAwC,EAAE,sBAAsB,EAAE,GAAG,CAAC,CAAA;SAClG;QACD,OAAO,yBAAW,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;IAChD,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Payload } from './generated-types';
|
|
2
|
-
import { RequestClient } from '@segment/actions-core';
|
|
3
|
-
export declare type MappingSettings = {
|
|
4
|
-
spreadsheetId: string;
|
|
5
|
-
spreadsheetName: string;
|
|
6
|
-
dataFormat: string;
|
|
7
|
-
columns: string[];
|
|
8
|
-
};
|
|
9
|
-
declare function processData(request: RequestClient, events: Payload[], syncMode: string): Promise<(import("@segment/actions-core/src").ModifiedResponse<unknown> | undefined)[]>;
|
|
10
|
-
export { processData };
|
|
@@ -1,96 +0,0 @@
|
|
|
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.processData = void 0;
|
|
7
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
8
|
-
const index_1 = require("../googleapis/index");
|
|
9
|
-
const constants_1 = require("../constants");
|
|
10
|
-
const a1_notation_1 = __importDefault(require("@segment/a1-notation"));
|
|
11
|
-
const DATA_ROW_OFFSET = 2;
|
|
12
|
-
const generateColumnValuesFromFields = (identifier, fields, columns) => {
|
|
13
|
-
const retVal = columns.map((col) => fields[col] ?? '');
|
|
14
|
-
retVal.unshift(identifier);
|
|
15
|
-
return retVal;
|
|
16
|
-
};
|
|
17
|
-
function processGetSpreadsheetResponse(response, events, mappingSettings, syncMode) {
|
|
18
|
-
const numColumns = mappingSettings.columns.length;
|
|
19
|
-
const numRows = response.values?.length;
|
|
20
|
-
if (numRows * numColumns > constants_1.CONSTANTS.MAX_CELLS) {
|
|
21
|
-
throw new actions_core_1.IntegrationError('Sheet has reached maximum limit', 'INVALID_REQUEST_DATA', 400);
|
|
22
|
-
}
|
|
23
|
-
const updateBatch = [];
|
|
24
|
-
const appendBatch = [];
|
|
25
|
-
const eventMap = new Map(events.map((e) => [e.record_identifier, e]));
|
|
26
|
-
if (response.values && response.values.length > 0) {
|
|
27
|
-
for (let i = 0; i < response.values.length; i++) {
|
|
28
|
-
const targetIdentifier = response.values[i][0];
|
|
29
|
-
if (eventMap.has(targetIdentifier)) {
|
|
30
|
-
const targetEvent = eventMap.get(targetIdentifier);
|
|
31
|
-
if (syncMode == 'upsert' || syncMode == 'update') {
|
|
32
|
-
updateBatch.push({
|
|
33
|
-
identifier: targetIdentifier,
|
|
34
|
-
event: targetEvent.fields,
|
|
35
|
-
index: i
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
eventMap.delete(targetIdentifier);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
eventMap.forEach((value, key) => {
|
|
43
|
-
if (syncMode == 'upsert' || syncMode == 'add') {
|
|
44
|
-
appendBatch.push({
|
|
45
|
-
identifier: key,
|
|
46
|
-
event: value.fields
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
return { appendBatch, updateBatch };
|
|
51
|
-
}
|
|
52
|
-
async function processUpdateBatch(mappingSettings, updateBatch, gs) {
|
|
53
|
-
const getRange = (targetIndex, columnCount) => {
|
|
54
|
-
const targetRange = new a1_notation_1.default(1, targetIndex);
|
|
55
|
-
targetRange.addX(columnCount);
|
|
56
|
-
return targetRange.toString();
|
|
57
|
-
};
|
|
58
|
-
const batchPayload = updateBatch.map(({ identifier, event, index }) => {
|
|
59
|
-
const values = generateColumnValuesFromFields(identifier, event, mappingSettings.columns);
|
|
60
|
-
return {
|
|
61
|
-
range: `${mappingSettings.spreadsheetName}!${getRange(index + DATA_ROW_OFFSET, values.length)}`,
|
|
62
|
-
values: [values]
|
|
63
|
-
};
|
|
64
|
-
});
|
|
65
|
-
const headerRowRange = new a1_notation_1.default(1, 1, 1, mappingSettings.columns.length + 1);
|
|
66
|
-
batchPayload.push({
|
|
67
|
-
range: `${mappingSettings.spreadsheetName}!${headerRowRange.toString()}`,
|
|
68
|
-
values: [['id', ...mappingSettings.columns]]
|
|
69
|
-
});
|
|
70
|
-
return gs.batchUpdate(mappingSettings, batchPayload);
|
|
71
|
-
}
|
|
72
|
-
async function processAppendBatch(mappingSettings, appendBatch, gs) {
|
|
73
|
-
if (appendBatch.length <= 0) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
const values = appendBatch.map(({ identifier, event }) => generateColumnValuesFromFields(identifier, event, mappingSettings.columns));
|
|
77
|
-
return gs.append(mappingSettings, `A${DATA_ROW_OFFSET}`, values);
|
|
78
|
-
}
|
|
79
|
-
async function processData(request, events, syncMode) {
|
|
80
|
-
const mappingSettings = {
|
|
81
|
-
spreadsheetId: events[0].spreadsheet_id,
|
|
82
|
-
spreadsheetName: events[0].spreadsheet_name,
|
|
83
|
-
dataFormat: events[0].data_format,
|
|
84
|
-
columns: Object.getOwnPropertyNames(events[0].fields)
|
|
85
|
-
};
|
|
86
|
-
const gs = new index_1.GoogleSheets(request);
|
|
87
|
-
const response = await gs.get(mappingSettings, `A${DATA_ROW_OFFSET}:A`);
|
|
88
|
-
const { appendBatch, updateBatch } = processGetSpreadsheetResponse(response.data, events, mappingSettings, syncMode);
|
|
89
|
-
const promises = [
|
|
90
|
-
processUpdateBatch(mappingSettings, updateBatch, gs),
|
|
91
|
-
processAppendBatch(mappingSettings, appendBatch, gs)
|
|
92
|
-
];
|
|
93
|
-
return await Promise.all(promises);
|
|
94
|
-
}
|
|
95
|
-
exports.processData = processData;
|
|
96
|
-
//# sourceMappingURL=operations2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operations2.js","sourceRoot":"","sources":["../../../../src/destinations/google-sheets/postSheet2/operations2.ts"],"names":[],"mappings":";;;;;;AACA,wDAAuE;AACvE,+CAA+D;AAC/D,4CAAwC;AAExC,uEAAqC;AA4BrC,MAAM,eAAe,GAAG,CAAC,CAAA;AAwBzB,MAAM,8BAA8B,GAAG,CAAC,UAAkB,EAAE,MAAc,EAAE,OAAiB,EAAE,EAAE;IAC/F,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;IACtD,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAC1B,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAUD,SAAS,6BAA6B,CACpC,QAAqB,EACrB,MAAiB,EACjB,eAAgC,EAChC,QAAgB;IAEhB,MAAM,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC,MAAM,CAAA;IACjD,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IAEvC,IAAI,OAAO,GAAG,UAAU,GAAG,qBAAS,CAAC,SAAS,EAAE;QAC9C,MAAM,IAAI,+BAAgB,CAAC,iCAAiC,EAAE,sBAAsB,EAAE,GAAG,CAAC,CAAA;KAC3F;IAED,MAAM,WAAW,GAAkB,EAAE,CAAA;IACrC,MAAM,WAAW,GA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|
2
|
-
enable_batching?: boolean;
|
|
3
|
-
batch_size?: number;
|
|
4
|
-
recordMatcherOperator?: string;
|
|
5
|
-
traits?: {
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
};
|
|
8
|
-
bulkUpsertExternalId?: {
|
|
9
|
-
externalIdName?: string;
|
|
10
|
-
externalIdValue?: string;
|
|
11
|
-
};
|
|
12
|
-
bulkUpdateRecordId?: string;
|
|
13
|
-
name?: string;
|
|
14
|
-
account_number?: string;
|
|
15
|
-
number_of_employees?: number;
|
|
16
|
-
billing_city?: string;
|
|
17
|
-
billing_postal_code?: string;
|
|
18
|
-
billing_country?: string;
|
|
19
|
-
billing_street?: string;
|
|
20
|
-
billing_state?: string;
|
|
21
|
-
shipping_city?: string;
|
|
22
|
-
shipping_postal_code?: string;
|
|
23
|
-
shipping_country?: string;
|
|
24
|
-
shipping_street?: string;
|
|
25
|
-
shipping_state?: string;
|
|
26
|
-
phone?: string;
|
|
27
|
-
description?: string;
|
|
28
|
-
website?: string;
|
|
29
|
-
customFields?: {
|
|
30
|
-
[k: string]: unknown;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/account2/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
23
|
-
const sf_operations_1 = __importStar(require("../sf-operations"));
|
|
24
|
-
const sf_properties_1 = require("../sf-properties");
|
|
25
|
-
const OBJECT_NAME = 'Account';
|
|
26
|
-
const action = {
|
|
27
|
-
title: 'Account',
|
|
28
|
-
description: 'Create, update, or upsert accounts in Salesforce.',
|
|
29
|
-
defaultSubscription: 'type = "group"',
|
|
30
|
-
syncMode: {
|
|
31
|
-
description: 'Define how the records from your destination will be synced.',
|
|
32
|
-
label: 'How to sync records',
|
|
33
|
-
default: 'add',
|
|
34
|
-
choices: [
|
|
35
|
-
{ label: 'Insert Records', value: 'add' },
|
|
36
|
-
{ label: 'Update Records', value: 'update' },
|
|
37
|
-
{ label: 'Upsert Records', value: 'upsert' },
|
|
38
|
-
{ label: 'Delete Records. Not available when using batching. Requests will result in errors.', value: 'delete' }
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
fields: {
|
|
42
|
-
enable_batching: sf_properties_1.enable_batching,
|
|
43
|
-
batch_size: sf_properties_1.batch_size,
|
|
44
|
-
recordMatcherOperator: sf_properties_1.recordMatcherOperator,
|
|
45
|
-
traits: sf_properties_1.traits,
|
|
46
|
-
bulkUpsertExternalId: sf_properties_1.bulkUpsertExternalId,
|
|
47
|
-
bulkUpdateRecordId: sf_properties_1.bulkUpdateRecordId,
|
|
48
|
-
name: {
|
|
49
|
-
label: 'Name',
|
|
50
|
-
description: 'Name of the account. **This is required to create an account.**',
|
|
51
|
-
type: 'string',
|
|
52
|
-
default: {
|
|
53
|
-
'@path': '$.traits.name'
|
|
54
|
-
},
|
|
55
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
56
|
-
},
|
|
57
|
-
account_number: {
|
|
58
|
-
label: 'Account Number',
|
|
59
|
-
description: 'Account number assigned to the account. This is not the unique, Salesforce-generated ID assigned during creation.',
|
|
60
|
-
type: 'string',
|
|
61
|
-
default: {
|
|
62
|
-
'@path': '$.groupId'
|
|
63
|
-
},
|
|
64
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
65
|
-
},
|
|
66
|
-
number_of_employees: {
|
|
67
|
-
label: 'Number of employees',
|
|
68
|
-
description: 'Number of employees working at the company represented by the account.',
|
|
69
|
-
type: 'integer',
|
|
70
|
-
default: {
|
|
71
|
-
'@if': {
|
|
72
|
-
exists: { '@path': '$.traits.employees' },
|
|
73
|
-
then: { '@path': '$.traits.employees' },
|
|
74
|
-
else: { '@path': '$.properties.employees' }
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
78
|
-
},
|
|
79
|
-
billing_city: {
|
|
80
|
-
label: 'Billing City',
|
|
81
|
-
description: 'City for the billing address of the account.',
|
|
82
|
-
type: 'string',
|
|
83
|
-
default: {
|
|
84
|
-
'@if': {
|
|
85
|
-
exists: { '@path': '$.traits.address.city' },
|
|
86
|
-
then: { '@path': '$.traits.address.city' },
|
|
87
|
-
else: { '@path': '$.properties.address.city' }
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
91
|
-
},
|
|
92
|
-
billing_postal_code: {
|
|
93
|
-
label: 'Billing Postal Code',
|
|
94
|
-
description: 'Postal code for the billing address of the account.',
|
|
95
|
-
type: 'string',
|
|
96
|
-
default: {
|
|
97
|
-
'@if': {
|
|
98
|
-
exists: { '@path': '$.traits.address.postal_code' },
|
|
99
|
-
then: { '@path': '$.traits.address.postal_code' },
|
|
100
|
-
else: { '@path': '$.properties.address.postal_code' }
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
104
|
-
},
|
|
105
|
-
billing_country: {
|
|
106
|
-
label: 'Billing Country',
|
|
107
|
-
description: 'Country for the billing address of the account.',
|
|
108
|
-
type: 'string',
|
|
109
|
-
default: {
|
|
110
|
-
'@if': {
|
|
111
|
-
exists: { '@path': '$.traits.address.country' },
|
|
112
|
-
then: { '@path': '$.traits.address.country' },
|
|
113
|
-
else: { '@path': '$.properties.address.country' }
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
117
|
-
},
|
|
118
|
-
billing_street: {
|
|
119
|
-
label: 'Billing Street',
|
|
120
|
-
description: 'Street address for the billing address of the account.',
|
|
121
|
-
type: 'string',
|
|
122
|
-
default: {
|
|
123
|
-
'@if': {
|
|
124
|
-
exists: { '@path': '$.traits.address.street' },
|
|
125
|
-
then: { '@path': '$.traits.address.street' },
|
|
126
|
-
else: { '@path': '$.properties.address.street' }
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
130
|
-
},
|
|
131
|
-
billing_state: {
|
|
132
|
-
label: 'Billing State',
|
|
133
|
-
description: 'State for the billing address of the account.',
|
|
134
|
-
type: 'string',
|
|
135
|
-
default: {
|
|
136
|
-
'@if': {
|
|
137
|
-
exists: { '@path': '$.traits.address.state' },
|
|
138
|
-
then: { '@path': '$.traits.address.state' },
|
|
139
|
-
else: { '@path': '$.properties.address.state' }
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
143
|
-
},
|
|
144
|
-
shipping_city: {
|
|
145
|
-
label: 'Shipping City',
|
|
146
|
-
description: 'City for the shipping address of the account.',
|
|
147
|
-
type: 'string',
|
|
148
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
149
|
-
},
|
|
150
|
-
shipping_postal_code: {
|
|
151
|
-
label: 'Shipping Postal Code',
|
|
152
|
-
description: 'Postal code for the shipping address of the account.',
|
|
153
|
-
type: 'string',
|
|
154
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
155
|
-
},
|
|
156
|
-
shipping_country: {
|
|
157
|
-
label: 'Shipping Country',
|
|
158
|
-
description: 'Country for the shipping address of the account.',
|
|
159
|
-
type: 'string',
|
|
160
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
161
|
-
},
|
|
162
|
-
shipping_street: {
|
|
163
|
-
label: 'Shipping Street',
|
|
164
|
-
description: 'Street address for the shipping address of the account.',
|
|
165
|
-
type: 'string',
|
|
166
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
167
|
-
},
|
|
168
|
-
shipping_state: {
|
|
169
|
-
label: 'Shipping State',
|
|
170
|
-
description: 'State for the shipping address of the account.',
|
|
171
|
-
type: 'string',
|
|
172
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
173
|
-
},
|
|
174
|
-
phone: {
|
|
175
|
-
label: 'Phone',
|
|
176
|
-
description: 'Phone number for the account.',
|
|
177
|
-
type: 'string',
|
|
178
|
-
default: {
|
|
179
|
-
'@if': {
|
|
180
|
-
exists: { '@path': '$.traits.phone' },
|
|
181
|
-
then: { '@path': '$.traits.phone' },
|
|
182
|
-
else: { '@path': '$.properties.phone' }
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
186
|
-
},
|
|
187
|
-
description: {
|
|
188
|
-
label: 'Description',
|
|
189
|
-
description: 'Text description of the account.',
|
|
190
|
-
type: 'string',
|
|
191
|
-
default: {
|
|
192
|
-
'@if': {
|
|
193
|
-
exists: { '@path': '$.traits.description' },
|
|
194
|
-
then: { '@path': '$.traits.description' },
|
|
195
|
-
else: { '@path': '$.properties.description' }
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
199
|
-
},
|
|
200
|
-
website: {
|
|
201
|
-
label: 'Website',
|
|
202
|
-
description: 'The website of the account.',
|
|
203
|
-
type: 'string',
|
|
204
|
-
default: {
|
|
205
|
-
'@if': {
|
|
206
|
-
exists: { '@path': '$.traits.website' },
|
|
207
|
-
then: { '@path': '$.traits.website' },
|
|
208
|
-
else: { '@path': '$.properties.website' }
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
212
|
-
},
|
|
213
|
-
customFields: sf_properties_1.customFields
|
|
214
|
-
},
|
|
215
|
-
perform: async (request, { settings, payload, syncMode }) => {
|
|
216
|
-
const sf = new sf_operations_1.default(settings.instanceUrl, await sf_operations_1.generateSalesforceRequest(settings, request));
|
|
217
|
-
if (syncMode === 'add') {
|
|
218
|
-
if (!payload.name) {
|
|
219
|
-
throw new actions_core_1.IntegrationError('Missing name value', 'Misconfigured required field', 400);
|
|
220
|
-
}
|
|
221
|
-
return await sf.createRecord(payload, OBJECT_NAME);
|
|
222
|
-
}
|
|
223
|
-
sf_properties_1.validateLookup(payload);
|
|
224
|
-
if (syncMode === 'update') {
|
|
225
|
-
return await sf.updateRecord(payload, OBJECT_NAME);
|
|
226
|
-
}
|
|
227
|
-
if (syncMode === 'upsert') {
|
|
228
|
-
if (!payload.name) {
|
|
229
|
-
throw new actions_core_1.IntegrationError('Missing name value', 'Misconfigured required field', 400);
|
|
230
|
-
}
|
|
231
|
-
return await sf.upsertRecord(payload, OBJECT_NAME);
|
|
232
|
-
}
|
|
233
|
-
if (syncMode === 'delete') {
|
|
234
|
-
return await sf.deleteRecord(payload, OBJECT_NAME);
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
performBatch: async (request, { settings, payload, syncMode }) => {
|
|
238
|
-
const sf = new sf_operations_1.default(settings.instanceUrl, await sf_operations_1.generateSalesforceRequest(settings, request));
|
|
239
|
-
if (syncMode === 'upsert') {
|
|
240
|
-
if (!payload[0].name) {
|
|
241
|
-
throw new actions_core_1.IntegrationError('Missing name value', 'Misconfigured required field', 400);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return sf.bulkHandlerWithSyncMode(payload, OBJECT_NAME, syncMode);
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
exports.default = action;
|
|
248
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/account2/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,wDAA0E;AAE1E,kEAAwE;AACxE,oDAUyB;AAGzB,MAAM,WAAW,GAAG,SAAS,CAAA;AAE7B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,mDAAmD;IAChE,mBAAmB,EAAE,gBAAgB;IACrC,QAAQ,EAAE;QACR,WAAW,EAAE,8DAA8D;QAC3E,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EAAE,KAAK;QACd,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,EAAE;YACzC,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE;YAC5C,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE;YAC5C,EAAE,KAAK,EAAE,oFAAoF,EAAE,KAAK,EAAE,QAAQ,EAAE;SACjH;KACF;IACD,MAAM,EAAE;QACN,eAAe,EAAE,+BAAe;QAChC,UAAU,EAAE,0BAAU;QACtB,qBAAqB,EAAE,qCAAqB;QAC5C,MAAM,EAAE,sBAAM;QACd,oBAAoB,EAAE,oCAAoB;QAC1C,kBAAkB,EAAE,kCAAkB;QACtC,IAAI,EAAE;YAC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,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC/D,MAAM,EAAE,GAAe,IAAI,uBAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,yCAAyB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAA;QAE/G,IAAI,QAAQ,KAAK,QAAQ,EAAE;YACzB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;gBACpB,MAAM,IAAI,+BAAgB,CAAC,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAA;aACtF;SACF;QAED,OAAO,EAAE,CAAC,uBAAuB,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAA;IACnE,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
recordMatcherOperator?: string;
|
|
3
|
-
enable_batching?: boolean;
|
|
4
|
-
batch_size?: number;
|
|
5
|
-
traits?: {
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
};
|
|
8
|
-
bulkUpsertExternalId?: {
|
|
9
|
-
externalIdName?: string;
|
|
10
|
-
externalIdValue?: string;
|
|
11
|
-
};
|
|
12
|
-
bulkUpdateRecordId?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
customFields?: {
|
|
15
|
-
[k: string]: unknown;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/cases2/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
const sf_properties_1 = require("../sf-properties");
|
|
23
|
-
const sf_operations_1 = __importStar(require("../sf-operations"));
|
|
24
|
-
const OBJECT_NAME = 'Case';
|
|
25
|
-
const action = {
|
|
26
|
-
title: 'Case',
|
|
27
|
-
description: 'Create, update, or upsert cases in Salesforce.',
|
|
28
|
-
syncMode: {
|
|
29
|
-
description: 'Define how the records from your destination will be synced.',
|
|
30
|
-
label: 'How to sync records',
|
|
31
|
-
default: 'add',
|
|
32
|
-
choices: [
|
|
33
|
-
{ label: 'Insert Records', value: 'add' },
|
|
34
|
-
{ label: 'Update Records', value: 'update' },
|
|
35
|
-
{ label: 'Upsert Records', value: 'upsert' },
|
|
36
|
-
{ label: 'Delete Records. Not available when using batching. Requests will result in errors.', value: 'delete' }
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
fields: {
|
|
40
|
-
recordMatcherOperator: sf_properties_1.recordMatcherOperator,
|
|
41
|
-
enable_batching: sf_properties_1.enable_batching,
|
|
42
|
-
batch_size: sf_properties_1.batch_size,
|
|
43
|
-
traits: sf_properties_1.traits,
|
|
44
|
-
bulkUpsertExternalId: sf_properties_1.bulkUpsertExternalId,
|
|
45
|
-
bulkUpdateRecordId: sf_properties_1.bulkUpdateRecordId,
|
|
46
|
-
description: {
|
|
47
|
-
label: 'Description',
|
|
48
|
-
description: 'A text description of the case.',
|
|
49
|
-
type: 'string',
|
|
50
|
-
depends_on: sf_properties_1.hideIfDeleteOperation
|
|
51
|
-
},
|
|
52
|
-
customFields: sf_properties_1.customFields
|
|
53
|
-
},
|
|
54
|
-
perform: async (request, { settings, payload, syncMode }) => {
|
|
55
|
-
const sf = new sf_operations_1.default(settings.instanceUrl, await sf_operations_1.generateSalesforceRequest(settings, request));
|
|
56
|
-
if (syncMode === 'add') {
|
|
57
|
-
return await sf.createRecord(payload, OBJECT_NAME);
|
|
58
|
-
}
|
|
59
|
-
sf_properties_1.validateLookup(payload);
|
|
60
|
-
if (syncMode === 'update') {
|
|
61
|
-
return await sf.updateRecord(payload, OBJECT_NAME);
|
|
62
|
-
}
|
|
63
|
-
if (syncMode === 'upsert') {
|
|
64
|
-
return await sf.upsertRecord(payload, OBJECT_NAME);
|
|
65
|
-
}
|
|
66
|
-
if (syncMode === 'delete') {
|
|
67
|
-
return await sf.deleteRecord(payload, OBJECT_NAME);
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
performBatch: async (request, { settings, payload, syncMode }) => {
|
|
71
|
-
const sf = new sf_operations_1.default(settings.instanceUrl, await sf_operations_1.generateSalesforceRequest(settings, request));
|
|
72
|
-
return sf.bulkHandlerWithSyncMode(payload, OBJECT_NAME, syncMode);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
exports.default = action;
|
|
76
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/cases2/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;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AA;QAEvB,IAAI,QAAQ,KAAK,QAAQ,EAAE;YACzB,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;SACnD;QAED,IAAI,QAAQ,KAAK,QAAQ,EAAE;YACzB,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;SACnD;QAED,IAAI,QAAQ,KAAK,QAAQ,EAAE;YACzB,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;SACnD;IACH,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC/D,MAAM,EAAE,GAAe,IAAI,uBAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,yCAAyB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAA;QAE/G,OAAO,EAAE,CAAC,uBAAuB,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAA;IACnE,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
recordMatcherOperator?: string;
|
|
3
|
-
enable_batching?: boolean;
|
|
4
|
-
batch_size?: number;
|
|
5
|
-
traits?: {
|
|
6
|
-
[k: string]: unknown;
|
|
7
|
-
};
|
|
8
|
-
bulkUpsertExternalId?: {
|
|
9
|
-
externalIdName?: string;
|
|
10
|
-
externalIdValue?: string;
|
|
11
|
-
};
|
|
12
|
-
bulkUpdateRecordId?: string;
|
|
13
|
-
last_name?: string;
|
|
14
|
-
first_name?: string;
|
|
15
|
-
account_id?: string;
|
|
16
|
-
email?: string;
|
|
17
|
-
mailing_city?: string;
|
|
18
|
-
mailing_postal_code?: string;
|
|
19
|
-
mailing_country?: string;
|
|
20
|
-
mailing_street?: string;
|
|
21
|
-
mailing_state?: string;
|
|
22
|
-
customFields?: {
|
|
23
|
-
[k: string]: unknown;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/contact2/generated-types.ts"],"names":[],"mappings":""}
|