@segment/action-destinations 3.296.0-staging-80e58f6b9 → 3.296.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/aws-s3/operations.js.map +1 -1
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
- package/dist/destinations/customerio/utils.d.ts +1 -1
- package/dist/destinations/facebook-custom-audiences/generated-types.d.ts +2 -2
- package/dist/destinations/facebook-custom-audiences/index.js +16 -6
- package/dist/destinations/facebook-custom-audiences/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +1 -20
- package/dist/destinations/google-enhanced-conversions/functions.js +1 -280
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/generated-types.d.ts +0 -4
- package/dist/destinations/google-enhanced-conversions/index.d.ts +2 -8
- package/dist/destinations/google-enhanced-conversions/index.js +1 -51
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/types.d.ts +0 -51
- package/dist/destinations/tiktok-audiences/api/index.js +1 -0
- package/dist/destinations/tiktok-audiences/api/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/createAudience/generated-types.d.ts +1 -0
- package/dist/destinations/tiktok-audiences/createAudience/index.js +2 -1
- package/dist/destinations/tiktok-audiences/createAudience/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/index.js +5 -0
- package/dist/destinations/tiktok-audiences/index.js.map +1 -1
- package/dist/destinations/tiktok-audiences/properties.d.ts +1 -0
- package/dist/destinations/tiktok-audiences/properties.js +13 -1
- package/dist/destinations/tiktok-audiences/properties.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/engage/sendgrid/destinationDefinition.d.ts +0 -3
- 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.d.ts +0 -3
- 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 +0 -3
- 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/fbca-operations.d.ts +0 -32
- package/dist/destinations/facebook-custom-audiences/fbca-operations.js +0 -50
- package/dist/destinations/facebook-custom-audiences/fbca-operations.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/fbca-properties.d.ts +0 -2
- package/dist/destinations/facebook-custom-audiences/fbca-properties.js +0 -10
- package/dist/destinations/facebook-custom-audiences/fbca-properties.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/sync/generated-types.d.ts +0 -15
- package/dist/destinations/facebook-custom-audiences/sync/generated-types.js +0 -3
- package/dist/destinations/facebook-custom-audiences/sync/generated-types.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/sync/index.d.ts +0 -5
- package/dist/destinations/facebook-custom-audiences/sync/index.js +0 -139
- package/dist/destinations/facebook-custom-audiences/sync/index.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/userList/generated-types.d.ts +0 -31
- package/dist/destinations/google-enhanced-conversions/userList/generated-types.js +0 -3
- package/dist/destinations/google-enhanced-conversions/userList/generated-types.js.map +0 -1
- package/dist/destinations/google-enhanced-conversions/userList/index.d.ts +0 -5
- package/dist/destinations/google-enhanced-conversions/userList/index.js +0 -280
- package/dist/destinations/google-enhanced-conversions/userList/index.js.map +0 -1
- package/dist/destinations/mappings-two-test/generated-types.d.ts +0 -3
- package/dist/destinations/mappings-two-test/generated-types.js +0 -3
- package/dist/destinations/mappings-two-test/generated-types.js.map +0 -1
- package/dist/destinations/mappings-two-test/index.d.ts +0 -4
- package/dist/destinations/mappings-two-test/index.js +0 -34
- package/dist/destinations/mappings-two-test/index.js.map +0 -1
- package/dist/destinations/mappings-two-test/inputMethods/generated-types.d.ts +0 -29
- package/dist/destinations/mappings-two-test/inputMethods/generated-types.js +0 -3
- package/dist/destinations/mappings-two-test/inputMethods/generated-types.js.map +0 -1
- package/dist/destinations/mappings-two-test/inputMethods/index.d.ts +0 -5
- package/dist/destinations/mappings-two-test/inputMethods/index.js +0 -200
- package/dist/destinations/mappings-two-test/inputMethods/index.js.map +0 -1
- package/dist/destinations/mappings-two-test/kitchenSink/generated-types.d.ts +0 -53
- package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js +0 -3
- package/dist/destinations/mappings-two-test/kitchenSink/generated-types.js.map +0 -1
- package/dist/destinations/mappings-two-test/kitchenSink/index.d.ts +0 -5
- package/dist/destinations/mappings-two-test/kitchenSink/index.js +0 -289
- package/dist/destinations/mappings-two-test/kitchenSink/index.js.map +0 -1
- package/dist/destinations/mappings-two-test/sendEvent/generated-types.d.ts +0 -17
- package/dist/destinations/mappings-two-test/sendEvent/generated-types.js +0 -3
- package/dist/destinations/mappings-two-test/sendEvent/generated-types.js.map +0 -1
- package/dist/destinations/mappings-two-test/sendEvent/index.d.ts +0 -5
- package/dist/destinations/mappings-two-test/sendEvent/index.js +0 -345
- package/dist/destinations/mappings-two-test/sendEvent/index.js.map +0 -1
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const action = {
|
|
4
|
-
title: 'Input Methods Testing',
|
|
5
|
-
description: 'This action tests all possible input methods.',
|
|
6
|
-
platform: 'cloud',
|
|
7
|
-
syncMode: {
|
|
8
|
-
description: 'Define how the records from your destination will be synced to mappings 2 test destination',
|
|
9
|
-
label: 'How to sync records',
|
|
10
|
-
default: 'upsert',
|
|
11
|
-
choices: [{ label: 'Upsert record to mappings 2 test destination', value: 'upsert' }]
|
|
12
|
-
},
|
|
13
|
-
fields: {
|
|
14
|
-
string_field_no_free_form: {
|
|
15
|
-
label: 'String Field (no free form)',
|
|
16
|
-
description: 'A test string field',
|
|
17
|
-
type: 'string',
|
|
18
|
-
format: 'email',
|
|
19
|
-
disabledInputMethods: ['freeform']
|
|
20
|
-
},
|
|
21
|
-
string_field_no_picker: {
|
|
22
|
-
label: 'String Field (no picker)',
|
|
23
|
-
description: 'A test string field',
|
|
24
|
-
type: 'string',
|
|
25
|
-
format: 'email',
|
|
26
|
-
disabledInputMethods: ['enrichment', 'function', 'variable', 'literal']
|
|
27
|
-
},
|
|
28
|
-
dynamic_string_field: {
|
|
29
|
-
label: 'Dynamic String Field (only available options)',
|
|
30
|
-
description: 'A test dynamic string field',
|
|
31
|
-
type: 'string',
|
|
32
|
-
dynamic: true,
|
|
33
|
-
disabledInputMethods: ['freeform', 'variable', 'enrichment', 'function']
|
|
34
|
-
},
|
|
35
|
-
number_field: {
|
|
36
|
-
label: 'Number Field (no freeform)',
|
|
37
|
-
description: 'A test number field',
|
|
38
|
-
type: 'number',
|
|
39
|
-
required: true,
|
|
40
|
-
disabledInputMethods: ['freeform']
|
|
41
|
-
},
|
|
42
|
-
boolean_field: {
|
|
43
|
-
label: 'Boolean Field (only literal)',
|
|
44
|
-
description: 'A test boolean field',
|
|
45
|
-
type: 'boolean',
|
|
46
|
-
disabledInputMethods: ['freeform', 'variable', 'enrichment', 'function']
|
|
47
|
-
},
|
|
48
|
-
string_select: {
|
|
49
|
-
label: 'Select field (only literal)',
|
|
50
|
-
description: 'A test select field to pick a single string value',
|
|
51
|
-
type: 'string',
|
|
52
|
-
choices: [
|
|
53
|
-
{ label: 'Option 1', value: 'option1' },
|
|
54
|
-
{ label: 'Option 2', value: 'option2' }
|
|
55
|
-
],
|
|
56
|
-
disabledInputMethods: ['freeform', 'variable', 'enrichment', 'function']
|
|
57
|
-
},
|
|
58
|
-
unstructured_object: {
|
|
59
|
-
label: 'Unstructured Object (no freeform)',
|
|
60
|
-
description: 'A test unstructured object',
|
|
61
|
-
type: 'object',
|
|
62
|
-
defaultObjectUI: 'keyvalue:only',
|
|
63
|
-
disabledInputMethods: ['freeform']
|
|
64
|
-
},
|
|
65
|
-
mappable_and_editable_object: {
|
|
66
|
-
label: 'Unstructured Object (only freeform)',
|
|
67
|
-
description: 'A test unstructured object that is both mappable and editable',
|
|
68
|
-
type: 'object',
|
|
69
|
-
disabledInputMethods: ['variable', 'enrichment', 'function', 'literal']
|
|
70
|
-
},
|
|
71
|
-
structured_object: {
|
|
72
|
-
label: 'Structured Object (only freeform)',
|
|
73
|
-
description: 'A test structured object',
|
|
74
|
-
type: 'object',
|
|
75
|
-
disabledInputMethods: ['variable', 'enrichment', 'function', 'literal'],
|
|
76
|
-
properties: {
|
|
77
|
-
name: {
|
|
78
|
-
label: 'Name',
|
|
79
|
-
description: 'A test string field',
|
|
80
|
-
type: 'string'
|
|
81
|
-
},
|
|
82
|
-
age: {
|
|
83
|
-
label: 'Age',
|
|
84
|
-
description: 'A test number field',
|
|
85
|
-
type: 'number'
|
|
86
|
-
},
|
|
87
|
-
is_active: {
|
|
88
|
-
label: 'Is Active',
|
|
89
|
-
description: 'A test boolean field',
|
|
90
|
-
type: 'boolean'
|
|
91
|
-
},
|
|
92
|
-
role: {
|
|
93
|
-
label: 'Role',
|
|
94
|
-
description: 'A test select field to pick a single string value',
|
|
95
|
-
type: 'string',
|
|
96
|
-
choices: [
|
|
97
|
-
{ label: 'Admin', value: 'admin' },
|
|
98
|
-
{ label: 'User', value: 'user' }
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
structured_object_with_additional_properties: {
|
|
104
|
-
label: 'Structured Object with Additional Properties (no freeform)',
|
|
105
|
-
description: 'A test structured object with additional properties',
|
|
106
|
-
type: 'object',
|
|
107
|
-
additionalProperties: true,
|
|
108
|
-
disabledInputMethods: ['freeform'],
|
|
109
|
-
properties: {
|
|
110
|
-
name: {
|
|
111
|
-
label: 'Name',
|
|
112
|
-
description: 'A test string field',
|
|
113
|
-
type: 'string'
|
|
114
|
-
},
|
|
115
|
-
age: {
|
|
116
|
-
label: 'Age',
|
|
117
|
-
description: 'A test number field',
|
|
118
|
-
type: 'number'
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
structured_array_of_objects: {
|
|
123
|
-
label: 'Structured Array of Objects (no freeform)',
|
|
124
|
-
description: 'A test structured array of objects',
|
|
125
|
-
type: 'object',
|
|
126
|
-
multiple: true,
|
|
127
|
-
defaultObjectUI: 'arrayeditor',
|
|
128
|
-
disabledInputMethods: ['freeform'],
|
|
129
|
-
properties: {
|
|
130
|
-
name: {
|
|
131
|
-
label: 'Name',
|
|
132
|
-
description: 'A test string field',
|
|
133
|
-
type: 'string'
|
|
134
|
-
},
|
|
135
|
-
age: {
|
|
136
|
-
label: 'Age',
|
|
137
|
-
description: 'A test number field',
|
|
138
|
-
type: 'number'
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
dynamicFields: {
|
|
144
|
-
dynamic_string_field: async () => {
|
|
145
|
-
return Promise.resolve({
|
|
146
|
-
choices: [
|
|
147
|
-
{
|
|
148
|
-
label: 'Cat 🐱',
|
|
149
|
-
value: 'cat',
|
|
150
|
-
type: 'string',
|
|
151
|
-
description: 'A small, independent, and playful pet known for its agility and affectionate purring.'
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
label: 'Dog 🐶',
|
|
155
|
-
value: 'dog',
|
|
156
|
-
type: 'string',
|
|
157
|
-
description: "A loyal and friendly pet, great for companionship and known as man's best friend."
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
label: 'Elephant 🐘',
|
|
161
|
-
value: 'elephant',
|
|
162
|
-
type: 'string',
|
|
163
|
-
description: 'A large and intelligent animal with a trunk, known for its memory and social structure.'
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
label: 'Dolphin 🐬',
|
|
167
|
-
value: 'dolphin',
|
|
168
|
-
type: 'string',
|
|
169
|
-
description: 'A highly intelligent and social marine mammal known for its playful behavior and acrobatics.'
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
label: 'Tiger 🐅',
|
|
173
|
-
value: 'tiger',
|
|
174
|
-
type: 'string',
|
|
175
|
-
description: 'A majestic and powerful big cat, known for its striking orange coat with black stripes.'
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
nextPage: ''
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
perform: (request, { payload, settings, syncMode }) => {
|
|
183
|
-
const api_key = settings.apiKey;
|
|
184
|
-
return request('https://api.segment.io/v1/t', {
|
|
185
|
-
method: 'POST',
|
|
186
|
-
json: {
|
|
187
|
-
userId: 'test-user',
|
|
188
|
-
type: 'track',
|
|
189
|
-
event: 'test-event',
|
|
190
|
-
writeKey: api_key,
|
|
191
|
-
properties: {
|
|
192
|
-
...payload,
|
|
193
|
-
syncMode
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
exports.default = action;
|
|
200
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mappings-two-test/inputMethods/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,+CAA+C;IAC5D,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE;QACR,WAAW,EAAE,4FAA4F;QACzG,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,8CAA8C,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;KACtF;IACD,MAAM,EAAE;QACN,yBAAyB,EAAE;YACzB,KAAK,EAAE,6BAA6B;YACpC,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,OAAO;YACf,oBAAoB,EAAE,CAAC,UAAU,CAAC;SACnC;QACD,sBAAsB,EAAE;YACtB,KAAK,EAAE,0BAA0B;YACjC,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,OAAO;YACf,oBAAoB,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC;SACxE;QACD,oBAAoB,EAAE;YACpB,KAAK,EAAE,+CAA+C;YACtD,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,IAAI;YACb,oBAAoB,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC;SACzE;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,4BAA4B;YACnC,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,QAA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,53 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
string_field?: string;
|
|
3
|
-
dynamic_string_field?: string;
|
|
4
|
-
number_field: number;
|
|
5
|
-
boolean_field?: boolean;
|
|
6
|
-
string_select?: string;
|
|
7
|
-
select_number?: number;
|
|
8
|
-
array_field?: string[];
|
|
9
|
-
date_time_field?: string | number;
|
|
10
|
-
integer_field?: number;
|
|
11
|
-
password_field?: string;
|
|
12
|
-
text_field?: string;
|
|
13
|
-
unstructured_object?: {
|
|
14
|
-
[k: string]: unknown;
|
|
15
|
-
};
|
|
16
|
-
mappable_object?: {
|
|
17
|
-
[k: string]: unknown;
|
|
18
|
-
};
|
|
19
|
-
mappable_and_editable_object?: {
|
|
20
|
-
[k: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
structured_object?: {
|
|
23
|
-
name?: string;
|
|
24
|
-
age?: number;
|
|
25
|
-
is_active?: boolean;
|
|
26
|
-
role?: string;
|
|
27
|
-
};
|
|
28
|
-
structured_object_with_additional_properties?: {
|
|
29
|
-
name?: string;
|
|
30
|
-
age?: number;
|
|
31
|
-
[k: string]: unknown;
|
|
32
|
-
};
|
|
33
|
-
structured_array_of_objects?: {
|
|
34
|
-
name?: string;
|
|
35
|
-
age?: number;
|
|
36
|
-
}[];
|
|
37
|
-
structured_array_of_objects_with_additional_props?: {
|
|
38
|
-
name?: string;
|
|
39
|
-
age?: number;
|
|
40
|
-
[k: string]: unknown;
|
|
41
|
-
}[];
|
|
42
|
-
}
|
|
43
|
-
export interface HookBundle {
|
|
44
|
-
onMappingSave: {
|
|
45
|
-
inputs?: {
|
|
46
|
-
structured_hook_input?: {
|
|
47
|
-
name?: string;
|
|
48
|
-
age?: number;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
outputs?: {};
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/mappings-two-test/kitchenSink/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const action = {
|
|
4
|
-
title: 'Kitchen Sink',
|
|
5
|
-
description: 'Action with all possible field types',
|
|
6
|
-
platform: 'cloud',
|
|
7
|
-
syncMode: {
|
|
8
|
-
description: 'Define how the records from your destination will be synced to mappings 2 test destination',
|
|
9
|
-
label: 'How to sync records',
|
|
10
|
-
default: 'add',
|
|
11
|
-
choices: [
|
|
12
|
-
{ label: 'Adds record to mappings 2 test destination', value: 'add' },
|
|
13
|
-
{ label: 'Updates record in mappings 2 test destination', value: 'update' }
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
hooks: {
|
|
17
|
-
onMappingSave: {
|
|
18
|
-
label: 'Excute the test hook 🎣',
|
|
19
|
-
description: 'This hook will be executed when the mapping is saved 🐟🐟🐟. It will send a test event to the destination.',
|
|
20
|
-
inputFields: {
|
|
21
|
-
structured_hook_input: {
|
|
22
|
-
label: 'Structured Hook Input',
|
|
23
|
-
description: 'A test structured object',
|
|
24
|
-
type: 'object',
|
|
25
|
-
properties: {
|
|
26
|
-
name: {
|
|
27
|
-
label: 'Name',
|
|
28
|
-
description: 'A test string field',
|
|
29
|
-
type: 'string'
|
|
30
|
-
},
|
|
31
|
-
age: {
|
|
32
|
-
label: 'Age',
|
|
33
|
-
description: 'A test number field',
|
|
34
|
-
type: 'number'
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
outputTypes: {},
|
|
40
|
-
performHook: async (request, { hookInputs, hookOutputs, payload, settings }) => {
|
|
41
|
-
const api_key = settings.apiKey;
|
|
42
|
-
await request('https://api.segment.io/v1/t', {
|
|
43
|
-
method: 'POST',
|
|
44
|
-
json: {
|
|
45
|
-
userId: 'test-user',
|
|
46
|
-
type: 'track',
|
|
47
|
-
event: 'test-event-hooks',
|
|
48
|
-
writeKey: api_key,
|
|
49
|
-
properties: {
|
|
50
|
-
hookInputs,
|
|
51
|
-
hookOutputs,
|
|
52
|
-
payload
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
return {};
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
fields: {
|
|
61
|
-
string_field: {
|
|
62
|
-
label: 'String Field',
|
|
63
|
-
description: 'A test string field',
|
|
64
|
-
type: 'string',
|
|
65
|
-
format: 'email'
|
|
66
|
-
},
|
|
67
|
-
dynamic_string_field: {
|
|
68
|
-
label: 'Dynamic String Field',
|
|
69
|
-
description: 'A test dynamic string field',
|
|
70
|
-
type: 'string',
|
|
71
|
-
dynamic: true
|
|
72
|
-
},
|
|
73
|
-
number_field: {
|
|
74
|
-
label: 'Number Field',
|
|
75
|
-
description: 'A test number field',
|
|
76
|
-
type: 'number',
|
|
77
|
-
required: true
|
|
78
|
-
},
|
|
79
|
-
boolean_field: {
|
|
80
|
-
label: 'Boolean Field',
|
|
81
|
-
description: 'A test boolean field',
|
|
82
|
-
type: 'boolean'
|
|
83
|
-
},
|
|
84
|
-
string_select: {
|
|
85
|
-
label: 'Select field',
|
|
86
|
-
description: 'A test select field to pick a single string value',
|
|
87
|
-
type: 'string',
|
|
88
|
-
choices: [
|
|
89
|
-
{ label: 'Option 1', value: 'option1' },
|
|
90
|
-
{ label: 'Option 2', value: 'option2' }
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
select_number: {
|
|
94
|
-
label: 'Select Number',
|
|
95
|
-
description: 'A test select field to pick a single number value',
|
|
96
|
-
type: 'number',
|
|
97
|
-
choices: [
|
|
98
|
-
{ label: 'Number 1', value: 1 },
|
|
99
|
-
{ label: 'Number 2', value: 2 }
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
array_field: {
|
|
103
|
-
label: 'Array of string field (Unsupported)',
|
|
104
|
-
description: 'A test array of string field',
|
|
105
|
-
type: 'string',
|
|
106
|
-
multiple: true
|
|
107
|
-
},
|
|
108
|
-
date_time_field: {
|
|
109
|
-
label: 'Date time field',
|
|
110
|
-
description: 'A test date time field',
|
|
111
|
-
type: 'datetime'
|
|
112
|
-
},
|
|
113
|
-
integer_field: {
|
|
114
|
-
label: 'Integer field',
|
|
115
|
-
description: 'A test integer field',
|
|
116
|
-
type: 'integer'
|
|
117
|
-
},
|
|
118
|
-
password_field: {
|
|
119
|
-
label: 'Password field',
|
|
120
|
-
description: 'A test password field',
|
|
121
|
-
type: 'password'
|
|
122
|
-
},
|
|
123
|
-
text_field: {
|
|
124
|
-
label: 'Text field',
|
|
125
|
-
description: 'A Text Field',
|
|
126
|
-
type: 'text'
|
|
127
|
-
},
|
|
128
|
-
unstructured_object: {
|
|
129
|
-
label: 'Unstructured Object',
|
|
130
|
-
description: 'A test unstructured object',
|
|
131
|
-
type: 'object',
|
|
132
|
-
defaultObjectUI: 'keyvalue:only'
|
|
133
|
-
},
|
|
134
|
-
mappable_object: {
|
|
135
|
-
label: 'Unstructured Object that is only mappable',
|
|
136
|
-
description: 'A test unstructured object',
|
|
137
|
-
type: 'object',
|
|
138
|
-
defaultObjectUI: 'object:only'
|
|
139
|
-
},
|
|
140
|
-
mappable_and_editable_object: {
|
|
141
|
-
label: 'Unstructured Object that is both mappable and editable',
|
|
142
|
-
description: 'A test unstructured object that is both mappable and editable',
|
|
143
|
-
type: 'object'
|
|
144
|
-
},
|
|
145
|
-
structured_object: {
|
|
146
|
-
label: 'Structured Object',
|
|
147
|
-
description: 'A test structured object',
|
|
148
|
-
type: 'object',
|
|
149
|
-
properties: {
|
|
150
|
-
name: {
|
|
151
|
-
label: 'Name',
|
|
152
|
-
description: 'A test string field',
|
|
153
|
-
type: 'string'
|
|
154
|
-
},
|
|
155
|
-
age: {
|
|
156
|
-
label: 'Age',
|
|
157
|
-
description: 'A test number field',
|
|
158
|
-
type: 'number'
|
|
159
|
-
},
|
|
160
|
-
is_active: {
|
|
161
|
-
label: 'Is Active',
|
|
162
|
-
description: 'A test boolean field',
|
|
163
|
-
type: 'boolean'
|
|
164
|
-
},
|
|
165
|
-
role: {
|
|
166
|
-
label: 'Role',
|
|
167
|
-
description: 'A test select field to pick a single string value',
|
|
168
|
-
type: 'string',
|
|
169
|
-
choices: [
|
|
170
|
-
{ label: 'Admin', value: 'admin' },
|
|
171
|
-
{ label: 'User', value: 'user' }
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
structured_object_with_additional_properties: {
|
|
177
|
-
label: 'Structured Object with Additional Properties',
|
|
178
|
-
description: 'A test structured object with additional properties',
|
|
179
|
-
type: 'object',
|
|
180
|
-
additionalProperties: true,
|
|
181
|
-
properties: {
|
|
182
|
-
name: {
|
|
183
|
-
label: 'Name',
|
|
184
|
-
description: 'A test string field',
|
|
185
|
-
type: 'string'
|
|
186
|
-
},
|
|
187
|
-
age: {
|
|
188
|
-
label: 'Age',
|
|
189
|
-
description: 'A test number field',
|
|
190
|
-
type: 'number'
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
structured_array_of_objects: {
|
|
195
|
-
label: 'Structured Array of Objects',
|
|
196
|
-
description: 'A test structured array of objects',
|
|
197
|
-
type: 'object',
|
|
198
|
-
multiple: true,
|
|
199
|
-
properties: {
|
|
200
|
-
name: {
|
|
201
|
-
label: 'Name',
|
|
202
|
-
description: 'A test string field',
|
|
203
|
-
type: 'string'
|
|
204
|
-
},
|
|
205
|
-
age: {
|
|
206
|
-
label: 'Age',
|
|
207
|
-
description: 'A test number field',
|
|
208
|
-
type: 'number'
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
structured_array_of_objects_with_additional_props: {
|
|
213
|
-
label: 'Structured Array of Objects with Additional Properties',
|
|
214
|
-
description: 'A test structured array of objects with additional properties',
|
|
215
|
-
type: 'object',
|
|
216
|
-
multiple: true,
|
|
217
|
-
additionalProperties: true,
|
|
218
|
-
properties: {
|
|
219
|
-
name: {
|
|
220
|
-
label: 'Name',
|
|
221
|
-
description: 'A test string field',
|
|
222
|
-
type: 'string'
|
|
223
|
-
},
|
|
224
|
-
age: {
|
|
225
|
-
label: 'Age',
|
|
226
|
-
description: 'A test number field',
|
|
227
|
-
type: 'number'
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
dynamicFields: {
|
|
233
|
-
dynamic_string_field: async () => {
|
|
234
|
-
return Promise.resolve({
|
|
235
|
-
choices: [
|
|
236
|
-
{
|
|
237
|
-
label: 'Cat 🐱',
|
|
238
|
-
value: 'cat',
|
|
239
|
-
type: 'string',
|
|
240
|
-
description: 'A small, independent, and playful pet known for its agility and affectionate purring.'
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
label: 'Dog 🐶',
|
|
244
|
-
value: 'dog',
|
|
245
|
-
type: 'string',
|
|
246
|
-
description: "A loyal and friendly pet, great for companionship and known as man's best friend."
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
label: 'Elephant 🐘',
|
|
250
|
-
value: 'elephant',
|
|
251
|
-
type: 'string',
|
|
252
|
-
description: 'A large and intelligent animal with a trunk, known for its memory and social structure.'
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
label: 'Dolphin 🐬',
|
|
256
|
-
value: 'dolphin',
|
|
257
|
-
type: 'string',
|
|
258
|
-
description: 'A highly intelligent and social marine mammal known for its playful behavior and acrobatics.'
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
label: 'Tiger 🐅',
|
|
262
|
-
value: 'tiger',
|
|
263
|
-
type: 'string',
|
|
264
|
-
description: 'A majestic and powerful big cat, known for its striking orange coat with black stripes.'
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
nextPage: ''
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
perform: (request, { payload, settings, syncMode }) => {
|
|
272
|
-
const api_key = settings.apiKey;
|
|
273
|
-
return request('https://api.segment.io/v1/t', {
|
|
274
|
-
method: 'POST',
|
|
275
|
-
json: {
|
|
276
|
-
userId: 'test-user',
|
|
277
|
-
type: 'track',
|
|
278
|
-
event: 'test-event',
|
|
279
|
-
writeKey: api_key,
|
|
280
|
-
properties: {
|
|
281
|
-
...payload,
|
|
282
|
-
syncMode
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
exports.default = action;
|
|
289
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/mappings-two-test/kitchenSink/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,sCAAsC;IACnD,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE;QACR,WAAW,EAAE,4FAA4F;QACzG,KAAK,EAAE,qBAAqB;QAC5B,OAAO,EAAE,KAAK;QACd,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,4CAA4C,EAAE,KAAK,EAAE,KAAK,EAAE;YACrE,EAAE,KAAK,EAAE,+CAA+C,EAAE,KAAK,EAAE,QAAQ,EAAE;SAC5E;KACF;IACD,KAAK,EAAE;QACL,aAAa,EAAE;YACb,KAAK,EAAE,yBAAyB;YAChC,WAAW,EACT,4GAA4G;YAC9G,WAAW,EAAE;gBACX,qBAAqB,EAAE;oBACrB,KAAK,EAAE,uBAAuB;oBAC9B,WAAW,EAAE,0BAA0B;oBACvC,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,IAAI,EAAE;4BACJ,KAAK,EAAE,MAAM;4BACb,WAAW,EAAE,qBAAqB;4BAClC,IAAI,EAAE,QAAQ;yBACf;wBACD,GAAG,EAAE;4BACH,KAAK,EAAE,KAAK;4BACZ,WAAW,EAAE,qBA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,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;QACpD,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAA;QAC/B,OAAO,OAAO,CAAC,6BAA6B,EAAE;YAC5C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,MAAM,EAAE,WAAW;gBACnB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,YAAY;gBACnB,QAAQ,EAAE,OAAO;gBACjB,UAAU,EAAE;oBACV,GAAG,OAAO;oBACV,QAAQ;iBACT;aACF;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
test_field?: string;
|
|
3
|
-
dynamic_object: {
|
|
4
|
-
[k: string]: unknown;
|
|
5
|
-
};
|
|
6
|
-
dynamic_structured_object: {
|
|
7
|
-
pet?: string;
|
|
8
|
-
plant?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
age?: number;
|
|
11
|
-
};
|
|
12
|
-
dynamic_array?: {
|
|
13
|
-
product_category?: string;
|
|
14
|
-
product_name?: string;
|
|
15
|
-
product_price?: number;
|
|
16
|
-
}[];
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/mappings-two-test/sendEvent/generated-types.ts"],"names":[],"mappings":""}
|