@segment/action-destinations 3.131.1-ga4-cloud.12 → 3.131.1-gads-test.19
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/algolia-insights/algolia-insight-api.d.ts +26 -0
- package/dist/destinations/algolia-insights/algolia-insight-api.js +8 -0
- package/dist/destinations/algolia-insights/algolia-insight-api.js.map +1 -0
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.d.ts +9 -0
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/conversionEvents/index.d.ts +6 -0
- package/dist/destinations/algolia-insights/conversionEvents/index.js +83 -0
- package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -0
- package/dist/destinations/algolia-insights/generated-types.d.ts +4 -0
- package/dist/destinations/algolia-insights/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/index.d.ts +5 -0
- package/dist/destinations/algolia-insights/index.js +54 -0
- package/dist/destinations/algolia-insights/index.js.map +1 -0
- package/dist/destinations/algolia-insights/productClickedEvents/generated-types.d.ts +8 -0
- package/dist/destinations/algolia-insights/productClickedEvents/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/productClickedEvents/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/productClickedEvents/index.d.ts +6 -0
- package/dist/destinations/algolia-insights/productClickedEvents/index.js +91 -0
- package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -0
- package/dist/destinations/algolia-insights/productViewedEvents/generated-types.d.ts +7 -0
- package/dist/destinations/algolia-insights/productViewedEvents/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/productViewedEvents/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/productViewedEvents/index.d.ts +6 -0
- package/dist/destinations/algolia-insights/productViewedEvents/index.js +81 -0
- package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.d.ts +20 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.js +133 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.d.ts +2 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.js +6 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.d.ts +80 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.js +151 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.d.ts +35 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.js +3 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.d.ts +5 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.js +619 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/generated-types.d.ts +3 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/generated-types.js +3 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/generated-types.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/index.d.ts +4 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/index.js +53 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.d.ts +67 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.js +3 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +8 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.js +44 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.js.map +1 -0
- package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +3 -10
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/addToCart/index.js +3 -10
- package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/addToWishlist/index.js +3 -10
- package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/beginCheckout/index.js +3 -10
- package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/customEvent/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/customEvent/index.js +3 -10
- package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +0 -3
- package/dist/destinations/google-analytics-4/ga4-functions.js +1 -31
- package/dist/destinations/google-analytics-4/ga4-functions.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-properties.d.ts +0 -2
- package/dist/destinations/google-analytics-4/ga4-properties.js +3 -17
- package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-types.d.ts +0 -14
- package/dist/destinations/google-analytics-4/ga4-types.js +0 -6
- package/dist/destinations/google-analytics-4/ga4-types.js.map +1 -1
- package/dist/destinations/google-analytics-4/generateLead/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/generateLead/index.js +3 -10
- package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/generated-types.d.ts +1 -2
- package/dist/destinations/google-analytics-4/index.js +10 -15
- package/dist/destinations/google-analytics-4/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/login/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/login/index.js +3 -10
- package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/pageView/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/pageView/index.js +3 -10
- package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/purchase/index.js +3 -10
- package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/refund/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/refund/index.js +3 -10
- package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/removeFromCart/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/removeFromCart/index.js +3 -10
- package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/search/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/search/index.js +3 -10
- package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/selectItem/index.js +3 -10
- package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +3 -10
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/signUp/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/signUp/index.js +3 -10
- package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewCart/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/viewCart/index.js +3 -10
- package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/viewItem/index.js +3 -10
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItemList/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/viewItemList/index.js +3 -10
- package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/viewPromotion/index.js +3 -10
- package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +2 -1
- package/dist/destinations/google-enhanced-conversions/functions.js +2 -2
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/types.d.ts +2 -1
- package/dist/destinations/google-enhanced-conversions/types.js +8 -2
- package/dist/destinations/google-enhanced-conversions/types.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +3 -3
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +3 -3
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
- package/dist/destinations/heap/flat.d.ts +1 -2
- package/dist/destinations/heap/flat.js +11 -1
- package/dist/destinations/heap/flat.js.map +1 -1
- package/dist/destinations/heap/heapUtils.d.ts +8 -0
- package/dist/destinations/heap/heapUtils.js +41 -0
- package/dist/destinations/heap/heapUtils.js.map +1 -0
- package/dist/destinations/heap/trackEvent/generated-types.d.ts +0 -1
- package/dist/destinations/heap/trackEvent/index.js +18 -54
- package/dist/destinations/heap/trackEvent/index.js.map +1 -1
- package/dist/destinations/launchpad/generated-types.d.ts +5 -0
- package/dist/destinations/launchpad/generated-types.js +3 -0
- package/dist/destinations/launchpad/generated-types.js.map +1 -0
- package/dist/destinations/launchpad/groupIdentifyUser/generated-types.d.ts +9 -0
- package/dist/destinations/launchpad/groupIdentifyUser/generated-types.js +3 -0
- package/dist/destinations/launchpad/groupIdentifyUser/generated-types.js.map +1 -0
- package/dist/destinations/launchpad/groupIdentifyUser/index.d.ts +5 -0
- package/dist/destinations/launchpad/groupIdentifyUser/index.js +79 -0
- package/dist/destinations/launchpad/groupIdentifyUser/index.js.map +1 -0
- package/dist/destinations/launchpad/identifyUser/generated-types.d.ts +8 -0
- package/dist/destinations/launchpad/identifyUser/generated-types.js +3 -0
- package/dist/destinations/launchpad/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/launchpad/identifyUser/index.d.ts +5 -0
- package/dist/destinations/launchpad/identifyUser/index.js +79 -0
- package/dist/destinations/launchpad/identifyUser/index.js.map +1 -0
- package/dist/destinations/launchpad/index.d.ts +4 -0
- package/dist/destinations/launchpad/index.js +96 -0
- package/dist/destinations/launchpad/index.js.map +1 -0
- package/dist/destinations/launchpad/launchpad-types.d.ts +28 -0
- package/dist/destinations/launchpad/launchpad-types.js +3 -0
- package/dist/destinations/launchpad/launchpad-types.js.map +1 -0
- package/dist/destinations/launchpad/trackEvent/generated-types.d.ts +18 -0
- package/dist/destinations/launchpad/trackEvent/generated-types.js +3 -0
- package/dist/destinations/launchpad/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/launchpad/trackEvent/index.d.ts +5 -0
- package/dist/destinations/launchpad/trackEvent/index.js +62 -0
- package/dist/destinations/launchpad/trackEvent/index.js.map +1 -0
- package/dist/destinations/launchpad/trackEvent/launchpad-properties.d.ts +2 -0
- package/dist/destinations/launchpad/trackEvent/launchpad-properties.js +87 -0
- package/dist/destinations/launchpad/trackEvent/launchpad-properties.js.map +1 -0
- package/dist/destinations/launchpad/utils.d.ts +6 -0
- package/dist/destinations/launchpad/utils.js +20 -0
- package/dist/destinations/launchpad/utils.js.map +1 -0
- package/dist/destinations/livelike-cloud/generated-types.d.ts +4 -0
- package/dist/destinations/livelike-cloud/generated-types.js +3 -0
- package/dist/destinations/livelike-cloud/generated-types.js.map +1 -0
- package/dist/destinations/livelike-cloud/index.d.ts +4 -0
- package/dist/destinations/livelike-cloud/index.js +84 -0
- package/dist/destinations/livelike-cloud/index.js.map +1 -0
- package/dist/destinations/livelike-cloud/properties.d.ts +1 -0
- package/dist/destinations/livelike-cloud/properties.js +5 -0
- package/dist/destinations/livelike-cloud/properties.js.map +1 -0
- package/dist/destinations/livelike-cloud/trackEvent/generated-types.d.ts +11 -0
- package/dist/destinations/livelike-cloud/trackEvent/generated-types.js +3 -0
- package/dist/destinations/livelike-cloud/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/livelike-cloud/trackEvent/index.d.ts +5 -0
- package/dist/destinations/livelike-cloud/trackEvent/index.js +101 -0
- package/dist/destinations/livelike-cloud/trackEvent/index.js.map +1 -0
- package/dist/destinations/pinterest-conversions/generated-types.d.ts +4 -0
- package/dist/destinations/pinterest-conversions/generated-types.js +3 -0
- package/dist/destinations/pinterest-conversions/generated-types.js.map +1 -0
- package/dist/destinations/pinterest-conversions/index.d.ts +4 -0
- package/dist/destinations/pinterest-conversions/index.js +29 -0
- package/dist/destinations/pinterest-conversions/index.js.map +1 -0
- package/dist/destinations/twilio-studio/generated-types.d.ts +6 -0
- package/dist/destinations/twilio-studio/generated-types.js +3 -0
- package/dist/destinations/twilio-studio/generated-types.js.map +1 -0
- package/dist/destinations/twilio-studio/index.d.ts +4 -0
- package/dist/destinations/twilio-studio/index.js +55 -0
- package/dist/destinations/twilio-studio/index.js.map +1 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/generated-types.d.ts +8 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/generated-types.js +3 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/generated-types.js.map +1 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/index.d.ts +5 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/index.js +84 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/index.js.map +1 -0
- package/dist/destinations/twilio-studio/utils.d.ts +29 -0
- package/dist/destinations/twilio-studio/utils.js +43 -0
- package/dist/destinations/twilio-studio/utils.js.map +1 -0
- package/dist/destinations/vwo/identifyUser/index.js +6 -6
- package/dist/destinations/vwo/identifyUser/index.js.map +1 -1
- package/dist/destinations/vwo/index.js +1 -1
- package/dist/destinations/vwo/index.js.map +1 -1
- package/dist/destinations/vwo/pageVisit/index.js +6 -6
- package/dist/destinations/vwo/pageVisit/index.js.map +1 -1
- package/dist/destinations/vwo/trackEvent/index.js +7 -7
- package/dist/destinations/vwo/trackEvent/index.js.map +1 -1
- package/dist/destinations/vwo/utility.js +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Settings } from './generated-types';
|
|
2
|
+
export declare const BaseAlgoliaInsightsURL = "https://insights.algolia.io";
|
|
3
|
+
export declare const AlgoliaBehaviourURL: string;
|
|
4
|
+
export declare const algoliaApiPermissionsUrl: (settings: Settings) => string;
|
|
5
|
+
declare type EventCommon = {
|
|
6
|
+
eventName: string;
|
|
7
|
+
index: string;
|
|
8
|
+
userToken: string;
|
|
9
|
+
objectIDs: string[];
|
|
10
|
+
timestamp?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare type AlgoliaProductViewedEvent = EventCommon & {
|
|
13
|
+
eventType: 'view';
|
|
14
|
+
};
|
|
15
|
+
export declare type AlgoliaProductClickedEvent = EventCommon & {
|
|
16
|
+
eventType: 'click';
|
|
17
|
+
queryID: string;
|
|
18
|
+
positions: number[];
|
|
19
|
+
};
|
|
20
|
+
export declare type AlgoliaConversionEvent = EventCommon & {
|
|
21
|
+
eventType: 'conversion';
|
|
22
|
+
};
|
|
23
|
+
export declare type AlgoliaApiPermissions = {
|
|
24
|
+
acl: string[];
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.algoliaApiPermissionsUrl = exports.AlgoliaBehaviourURL = exports.BaseAlgoliaInsightsURL = void 0;
|
|
4
|
+
exports.BaseAlgoliaInsightsURL = 'https://insights.algolia.io';
|
|
5
|
+
exports.AlgoliaBehaviourURL = exports.BaseAlgoliaInsightsURL + '/1/events';
|
|
6
|
+
const algoliaApiPermissionsUrl = (settings) => `https://${settings.appId}.algolia.net/1/keys/${settings.apiKey}`;
|
|
7
|
+
exports.algoliaApiPermissionsUrl = algoliaApiPermissionsUrl;
|
|
8
|
+
//# sourceMappingURL=algolia-insight-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"algolia-insight-api.js","sourceRoot":"","sources":["../../../src/destinations/algolia-insights/algolia-insight-api.ts"],"names":[],"mappings":";;;AACa,QAAA,sBAAsB,GAAG,6BAA6B,CAAA;AACtD,QAAA,mBAAmB,GAAG,8BAAsB,GAAG,WAAW,CAAA;AAChE,MAAM,wBAAwB,GAAG,CAAC,QAAkB,EAAE,EAAE,CAC7D,WAAW,QAAQ,CAAC,KAAK,uBAAuB,QAAQ,CAAC,MAAM,EAAE,CAAA;AADtD,QAAA,wBAAwB,4BAC8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/algolia-insights/conversionEvents/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ActionDefinition } from '@segment/actions-core';
|
|
2
|
+
import { Subscription } from '@segment/actions-core';
|
|
3
|
+
import type { Settings } from '../generated-types';
|
|
4
|
+
import type { Payload } from './generated-types';
|
|
5
|
+
export declare const conversionEvents: ActionDefinition<Settings, Payload>;
|
|
6
|
+
export declare const conversionPresets: Subscription;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conversionPresets = exports.conversionEvents = void 0;
|
|
4
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
+
const algolia_insight_api_1 = require("../algolia-insight-api");
|
|
6
|
+
exports.conversionEvents = {
|
|
7
|
+
title: 'Conversion Events',
|
|
8
|
+
description: 'Successful product purcahses which can be tied back to an Algolia Search, Recommend or Predict result',
|
|
9
|
+
fields: {
|
|
10
|
+
products: {
|
|
11
|
+
label: 'Product Details',
|
|
12
|
+
description: 'An array of objects representing the purchased items. Each object must contains a product_id field.',
|
|
13
|
+
type: 'object',
|
|
14
|
+
multiple: true,
|
|
15
|
+
properties: { product_id: { label: 'product_id', type: 'string', required: true } },
|
|
16
|
+
required: true,
|
|
17
|
+
default: {
|
|
18
|
+
'@path': '$.properties.products'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
index: {
|
|
22
|
+
label: 'Index',
|
|
23
|
+
description: 'Name of the targeted search index.',
|
|
24
|
+
type: 'string',
|
|
25
|
+
required: true,
|
|
26
|
+
default: {
|
|
27
|
+
'@path': '$.properties.search_index'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
queryID: {
|
|
31
|
+
label: 'Query ID',
|
|
32
|
+
description: 'Query ID of the list on which the item was clicked.',
|
|
33
|
+
type: 'string',
|
|
34
|
+
required: true,
|
|
35
|
+
default: {
|
|
36
|
+
'@path': '$.properties.query_id'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
userToken: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
required: true,
|
|
42
|
+
description: 'The ID associated with the user.',
|
|
43
|
+
label: 'userToken',
|
|
44
|
+
default: {
|
|
45
|
+
'@if': {
|
|
46
|
+
exists: { '@path': '$.userId' },
|
|
47
|
+
then: { '@path': '$.userId' },
|
|
48
|
+
else: { '@path': '$.anonymousId' }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
timestamp: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
required: false,
|
|
55
|
+
description: 'The timestamp of the event.',
|
|
56
|
+
label: 'timestamp',
|
|
57
|
+
default: { '@path': '$.timestamp' }
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
defaultSubscription: 'type = "track" and event = "Order Completed"',
|
|
61
|
+
perform: (request, data) => {
|
|
62
|
+
const insightEvent = {
|
|
63
|
+
...data.payload,
|
|
64
|
+
eventName: 'Conversion Event',
|
|
65
|
+
eventType: 'conversion',
|
|
66
|
+
objectIDs: data.payload.products.map((product) => product.product_id),
|
|
67
|
+
userToken: data.payload.userToken,
|
|
68
|
+
timestamp: data.payload.timestamp ? new Date(data.payload.timestamp).valueOf() : undefined
|
|
69
|
+
};
|
|
70
|
+
const insightPayload = { events: [insightEvent] };
|
|
71
|
+
return request(algolia_insight_api_1.AlgoliaBehaviourURL, {
|
|
72
|
+
method: 'post',
|
|
73
|
+
json: insightPayload
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.conversionPresets = {
|
|
78
|
+
name: 'Send conversion events to Algolia',
|
|
79
|
+
subscribe: exports.conversionEvents.defaultSubscription,
|
|
80
|
+
partnerAction: 'conversionEvents',
|
|
81
|
+
mapping: actions_core_1.defaultValues(exports.conversionEvents.fields)
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/algolia-insights/conversionEvents/index.ts"],"names":[],"mappings":";;;AACA,wDAAmE;AACnE,gEAAoF;AAIvE,QAAA,gBAAgB,GAAwC;IACnE,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,uGAAuG;IACpH,MAAM,EAAE;QACN,QAAQ,EAAE;YACR,KAAK,EAAE,iBAAiB;YACxB,WAAW,EACT,qGAAqG;YACvG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;YACnF,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,2BAA2B;aACrC;SACF;QACD,OAAO,EAAE;YACP,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,qDAAqD;YAClE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,kCAAkC;YAC/C,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE;gBACP,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC/B,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;oBAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE;iBACnC;aACF;SACF;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,6BAA6B;YAC1C,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;SACpC;KACF;IACD,mBAAmB,EAAE,8CAA8C;IACnE,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,MAAM,YAAY,GAA2B;YAC3C,GAAG,IAAI,CAAC,OAAO;YACf,SAAS,EAAE,kBAAkB;YAC7B,SAAS,EAAE,YAAY;YACvB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;YACrE,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS;SAC3F,CAAA;QACD,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,CAAA;QAEjD,OAAO,OAAO,CAAC,yCAAmB,EAAE;YAClC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAGY,QAAA,iBAAiB,GAAiB;IAC7C,IAAI,EAAE,mCAAmC;IACzC,SAAS,EAAE,wBAAgB,CAAC,mBAA6B;IACzD,aAAa,EAAE,kBAAkB;IACjC,OAAO,EAAE,4BAAa,CAAC,wBAAgB,CAAC,MAAM,CAAC;CAChD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/algolia-insights/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DestinationDefinition } from '@segment/actions-core';
|
|
2
|
+
import type { Settings } from './generated-types';
|
|
3
|
+
export declare const ALGOLIA_INSIGHTS_USER_AGENT = "algolia-segment-action-destination: 0.1";
|
|
4
|
+
declare const destination: DestinationDefinition<Settings>;
|
|
5
|
+
export default destination;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ALGOLIA_INSIGHTS_USER_AGENT = void 0;
|
|
4
|
+
const productClickedEvents_1 = require("./productClickedEvents");
|
|
5
|
+
const conversionEvents_1 = require("./conversionEvents");
|
|
6
|
+
const productViewedEvents_1 = require("./productViewedEvents");
|
|
7
|
+
const algolia_insight_api_1 = require("./algolia-insight-api");
|
|
8
|
+
exports.ALGOLIA_INSIGHTS_USER_AGENT = 'algolia-segment-action-destination: 0.1';
|
|
9
|
+
const destination = {
|
|
10
|
+
name: 'Algolia Insights',
|
|
11
|
+
slug: 'actions-algolia-insights',
|
|
12
|
+
mode: 'cloud',
|
|
13
|
+
authentication: {
|
|
14
|
+
scheme: 'custom',
|
|
15
|
+
fields: {
|
|
16
|
+
appId: {
|
|
17
|
+
label: 'appId',
|
|
18
|
+
description: 'Your Algolia Application ID.',
|
|
19
|
+
type: 'string',
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
apiKey: {
|
|
23
|
+
label: 'apiKey',
|
|
24
|
+
description: 'An API key which has write permissions to the Algolia Insights API',
|
|
25
|
+
type: 'string',
|
|
26
|
+
required: true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
testAuthentication: async (request, { settings }) => {
|
|
30
|
+
const response = await request(algolia_insight_api_1.algoliaApiPermissionsUrl(settings));
|
|
31
|
+
if (response.data.acl.indexOf('search') === -1) {
|
|
32
|
+
return Promise.reject('Invalid acl permissions.');
|
|
33
|
+
}
|
|
34
|
+
return response;
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
extendRequest: ({ settings }) => {
|
|
38
|
+
return {
|
|
39
|
+
headers: {
|
|
40
|
+
'X-Algolia-Application-Id': settings.appId,
|
|
41
|
+
'X-Algolia-API-Key': settings.apiKey,
|
|
42
|
+
'X-Algolia-Agent': exports.ALGOLIA_INSIGHTS_USER_AGENT
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
presets: [productClickedEvents_1.productClickPresets, conversionEvents_1.conversionPresets, productViewedEvents_1.productViewedPresets],
|
|
47
|
+
actions: {
|
|
48
|
+
productClickedEvents: productClickedEvents_1.productClickedEvents,
|
|
49
|
+
conversionEvents: conversionEvents_1.conversionEvents,
|
|
50
|
+
productViewedEvents: productViewedEvents_1.productViewedEvents
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.default = destination;
|
|
54
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/algolia-insights/index.ts"],"names":[],"mappings":";;;AAGA,iEAAkF;AAElF,yDAAwE;AAExE,+DAAiF;AACjF,+DAAuF;AAE1E,QAAA,2BAA2B,GAAG,yCAAyC,CAAA;AAEpF,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,8BAA8B;gBAC3C,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,oEAAoE;gBACjF,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAwB,8CAAwB,CAAC,QAAQ,CAAC,CAAC,CAAA;YAEzF,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;gBAC9C,OAAO,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAA;aAClD;YAED,OAAO,QAAQ,CAAA;QACjB,CAAC;KACF;IAED,aAAa,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;QAC9B,OAAO;YACL,OAAO,EAAE;gBACP,0BAA0B,EAAE,QAAQ,CAAC,KAAK;gBAC1C,mBAAmB,EAAE,QAAQ,CAAC,MAAM;gBACpC,iBAAiB,EAAE,mCAA2B;aAC/C;SACF,CAAA;IACH,CAAC;IAED,OAAO,EAAE,CAAC,0CAAmB,EAAE,oCAAiB,EAAE,0CAAoB,CAAC;IACvE,OAAO,EAAE;QACP,oBAAoB,EAApB,2CAAoB;QACpB,gBAAgB,EAAhB,mCAAgB;QAChB,mBAAmB,EAAnB,yCAAmB;KACpB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/algolia-insights/productClickedEvents/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ActionDefinition } from '@segment/actions-core';
|
|
2
|
+
import { Subscription } from '@segment/actions-core';
|
|
3
|
+
import type { Settings } from '../generated-types';
|
|
4
|
+
import type { Payload } from './generated-types';
|
|
5
|
+
export declare const productClickedEvents: ActionDefinition<Settings, Payload>;
|
|
6
|
+
export declare const productClickPresets: Subscription;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.productClickPresets = exports.productClickedEvents = void 0;
|
|
4
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
+
const algolia_insight_api_1 = require("../algolia-insight-api");
|
|
6
|
+
exports.productClickedEvents = {
|
|
7
|
+
title: 'Product Clicked Events',
|
|
8
|
+
description: 'When a product is clicked within an Algolia Search, Recommend or Predict result',
|
|
9
|
+
fields: {
|
|
10
|
+
objectID: {
|
|
11
|
+
label: 'Product ID',
|
|
12
|
+
description: 'Product ID of the clicked item.',
|
|
13
|
+
type: 'string',
|
|
14
|
+
required: true,
|
|
15
|
+
default: {
|
|
16
|
+
'@path': '$.properties.product_id'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
index: {
|
|
20
|
+
label: 'Index',
|
|
21
|
+
description: 'Name of the targeted search index.',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: true,
|
|
24
|
+
default: {
|
|
25
|
+
'@path': '$.properties.search_index'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
queryID: {
|
|
29
|
+
label: 'Query ID',
|
|
30
|
+
description: 'Query ID of the list on which the item was clicked.',
|
|
31
|
+
type: 'string',
|
|
32
|
+
required: true,
|
|
33
|
+
default: {
|
|
34
|
+
'@path': '$.properties.query_id'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
position: {
|
|
38
|
+
label: 'Position',
|
|
39
|
+
description: 'Position of the click in the list of Algolia search results.',
|
|
40
|
+
type: 'integer',
|
|
41
|
+
required: true,
|
|
42
|
+
default: {
|
|
43
|
+
'@path': '$.properties.position'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
userToken: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
required: true,
|
|
49
|
+
description: 'The ID associated with the user.',
|
|
50
|
+
label: 'userToken',
|
|
51
|
+
default: {
|
|
52
|
+
'@if': {
|
|
53
|
+
exists: { '@path': '$.userId' },
|
|
54
|
+
then: { '@path': '$.userId' },
|
|
55
|
+
else: { '@path': '$.anonymousId' }
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
timestamp: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
required: false,
|
|
62
|
+
description: 'The timestamp of the event.',
|
|
63
|
+
label: 'timestamp',
|
|
64
|
+
default: { '@path': '$.timestamp' }
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
defaultSubscription: 'type = "track" and event = "Product Clicked"',
|
|
68
|
+
perform: (request, data) => {
|
|
69
|
+
const insightEvent = {
|
|
70
|
+
...data.payload,
|
|
71
|
+
eventName: 'Product Clicked',
|
|
72
|
+
eventType: 'click',
|
|
73
|
+
objectIDs: [data.payload.objectID],
|
|
74
|
+
userToken: data.payload.userToken,
|
|
75
|
+
positions: [data.payload.position],
|
|
76
|
+
timestamp: data.payload.timestamp ? new Date(data.payload.timestamp).valueOf() : undefined
|
|
77
|
+
};
|
|
78
|
+
const insightPayload = { events: [insightEvent] };
|
|
79
|
+
return request(algolia_insight_api_1.AlgoliaBehaviourURL, {
|
|
80
|
+
method: 'post',
|
|
81
|
+
json: insightPayload
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
exports.productClickPresets = {
|
|
86
|
+
name: 'Send product clicked events to Algolia',
|
|
87
|
+
subscribe: exports.productClickedEvents.defaultSubscription,
|
|
88
|
+
partnerAction: 'productClickedEvents',
|
|
89
|
+
mapping: actions_core_1.defaultValues(exports.productClickedEvents.fields)
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/algolia-insights/productClickedEvents/index.ts"],"names":[],"mappings":";;;AACA,wDAAmE;AACnE,gEAAwF;AAI3E,QAAA,oBAAoB,GAAwC;IACvE,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EAAE,iFAAiF;IAC9F,MAAM,EAAE;QACN,QAAQ,EAAE;YACR,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,E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f,SAAS,EAAE,iBAAiB;YAC5B,SAAS,EAAE,OAAO;YAClB,SAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;YAClC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,SAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;YAClC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS;SAC3F,CAAA;QACD,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,CAAA;QAEjD,OAAO,OAAO,CAAC,yCAAmB,EAAE;YAClC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAGY,QAAA,mBAAmB,GAAiB;IAC/C,IAAI,EAAE,wCAAwC;IAC9C,SAAS,EAAE,4BAAoB,CAAC,mBAA6B;IAC7D,aAAa,EAAE,sBAAsB;IACrC,OAAO,EAAE,4BAAa,CAAC,4BAAoB,CAAC,MAAM,CAAC;CACpD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/algolia-insights/productViewedEvents/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ActionDefinition } from '@segment/actions-core';
|
|
2
|
+
import { Subscription } from '@segment/actions-core';
|
|
3
|
+
import type { Settings } from '../generated-types';
|
|
4
|
+
import type { Payload } from './generated-types';
|
|
5
|
+
export declare const productViewedEvents: ActionDefinition<Settings, Payload>;
|
|
6
|
+
export declare const productViewedPresets: Subscription;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.productViewedPresets = exports.productViewedEvents = void 0;
|
|
4
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
+
const algolia_insight_api_1 = require("../algolia-insight-api");
|
|
6
|
+
exports.productViewedEvents = {
|
|
7
|
+
title: 'Product Viewed Events',
|
|
8
|
+
description: 'Product views which can be tied back to an Algolia Search, Recommend or Predict result',
|
|
9
|
+
fields: {
|
|
10
|
+
objectID: {
|
|
11
|
+
label: 'Product ID',
|
|
12
|
+
description: 'Product ID of the clicked item.',
|
|
13
|
+
type: 'string',
|
|
14
|
+
required: true,
|
|
15
|
+
default: {
|
|
16
|
+
'@path': '$.properties.product_id'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
index: {
|
|
20
|
+
label: 'Index',
|
|
21
|
+
description: 'Name of the targeted search index.',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: true,
|
|
24
|
+
default: {
|
|
25
|
+
'@path': '$.properties.search_index'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
queryID: {
|
|
29
|
+
label: 'Query ID',
|
|
30
|
+
description: 'Query ID of the list on which the item was clicked.',
|
|
31
|
+
type: 'string',
|
|
32
|
+
required: true,
|
|
33
|
+
default: {
|
|
34
|
+
'@path': '$.properties.query_id'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
userToken: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
required: true,
|
|
40
|
+
description: 'The ID associated with the user.',
|
|
41
|
+
label: 'userToken',
|
|
42
|
+
default: {
|
|
43
|
+
'@if': {
|
|
44
|
+
exists: { '@path': '$.userId' },
|
|
45
|
+
then: { '@path': '$.userId' },
|
|
46
|
+
else: { '@path': '$.anonymousId' }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
timestamp: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
required: false,
|
|
53
|
+
description: 'The timestamp of the event.',
|
|
54
|
+
label: 'timestamp',
|
|
55
|
+
default: { '@path': '$.timestamp' }
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
defaultSubscription: 'type = "track" and event = "Product Viewed"',
|
|
59
|
+
perform: (request, data) => {
|
|
60
|
+
const insightEvent = {
|
|
61
|
+
...data.payload,
|
|
62
|
+
eventName: 'Product Viewed',
|
|
63
|
+
eventType: 'view',
|
|
64
|
+
objectIDs: [data.payload.objectID],
|
|
65
|
+
timestamp: data.payload.timestamp ? new Date(data.payload.timestamp).valueOf() : undefined,
|
|
66
|
+
userToken: data.payload.userToken
|
|
67
|
+
};
|
|
68
|
+
const insightPayload = { events: [insightEvent] };
|
|
69
|
+
return request(algolia_insight_api_1.AlgoliaBehaviourURL, {
|
|
70
|
+
method: 'post',
|
|
71
|
+
json: insightPayload
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
exports.productViewedPresets = {
|
|
76
|
+
name: 'Send product viewed events to Algolia',
|
|
77
|
+
subscribe: exports.productViewedEvents.defaultSubscription,
|
|
78
|
+
partnerAction: 'productViewedEvents',
|
|
79
|
+
mapping: actions_core_1.defaultValues(exports.productViewedEvents.fields)
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/algolia-insights/productViewedEvents/index.ts"],"names":[],"mappings":";;;AACA,wDAAmE;AACnE,gEAAuF;AAI1E,QAAA,mBAAmB,GAAwC;IACtE,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,wFAAwF;IACrG,MAAM,EAAE;QACN,QAAQ,EAAE;YACR,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,yBAAyB;aACnC;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO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AC,OAAO,CAAC,SAAS;SAClC,CAAA;QACD,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,CAAA;QAEjD,OAAO,OAAO,CAAC,yCAAmB,EAAE;YAClC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAGY,QAAA,oBAAoB,GAAiB;IAChD,IAAI,EAAE,uCAAuC;IAC7C,SAAS,EAAE,2BAAmB,CAAC,mBAA6B;IAC5D,aAAa,EAAE,qBAAqB;IACpC,OAAO,EAAE,4BAAa,CAAC,2BAAmB,CAAC,MAAM,CAAC;CACnD,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RequestClient, ModifiedResponse } from '@segment/actions-core';
|
|
2
|
+
export declare class BlackbaudSkyApi {
|
|
3
|
+
request: RequestClient;
|
|
4
|
+
constructor(request: RequestClient);
|
|
5
|
+
getExistingConstituents(searchField: string, searchText: string): Promise<ModifiedResponse>;
|
|
6
|
+
createConstituent(constituentData: object): Promise<ModifiedResponse>;
|
|
7
|
+
updateConstituent(constituentId: string, constituentData: object): Promise<ModifiedResponse>;
|
|
8
|
+
getConstituentAddressList(constituentId: string): Promise<ModifiedResponse>;
|
|
9
|
+
createConstituentAddress(constituentId: string, constituentAddressData: object): Promise<ModifiedResponse>;
|
|
10
|
+
updateConstituentAddressById(addressId: string, constituentAddressData: object): Promise<ModifiedResponse>;
|
|
11
|
+
getConstituentEmailList(constituentId: string): Promise<ModifiedResponse>;
|
|
12
|
+
createConstituentEmail(constituentId: string, constituentEmailData: object): Promise<ModifiedResponse>;
|
|
13
|
+
updateConstituentEmailById(emailId: string, constituentEmailData: object): Promise<ModifiedResponse>;
|
|
14
|
+
getConstituentOnlinePresenceList(constituentId: string): Promise<ModifiedResponse>;
|
|
15
|
+
createConstituentOnlinePresence(constituentId: string, constituentOnlinePresenceData: object): Promise<ModifiedResponse>;
|
|
16
|
+
updateConstituentOnlinePresenceById(onlinePresenceId: string, constituentOnlinePresenceData: object): Promise<ModifiedResponse>;
|
|
17
|
+
getConstituentPhoneList(constituentId: string): Promise<ModifiedResponse>;
|
|
18
|
+
createConstituentPhone(constituentId: string, constituentPhoneData: object): Promise<ModifiedResponse>;
|
|
19
|
+
updateConstituentPhoneById(phoneId: string, constituentPhoneData: object): Promise<ModifiedResponse>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlackbaudSkyApi = void 0;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
class BlackbaudSkyApi {
|
|
6
|
+
constructor(request) {
|
|
7
|
+
this.request = request;
|
|
8
|
+
}
|
|
9
|
+
async getExistingConstituents(searchField, searchText) {
|
|
10
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/constituents/search?search_field=${searchField}&search_text=${searchText}`, {
|
|
11
|
+
method: 'get'
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
async createConstituent(constituentData) {
|
|
15
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/constituents`, {
|
|
16
|
+
method: 'post',
|
|
17
|
+
json: constituentData
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
async updateConstituent(constituentId, constituentData) {
|
|
21
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/constituents/${constituentId}`, {
|
|
22
|
+
method: 'patch',
|
|
23
|
+
json: constituentData,
|
|
24
|
+
throwHttpErrors: false
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
async getConstituentAddressList(constituentId) {
|
|
28
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/constituents/${constituentId}/addresses?include_inactive=true`, {
|
|
29
|
+
method: 'get',
|
|
30
|
+
throwHttpErrors: false
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async createConstituentAddress(constituentId, constituentAddressData) {
|
|
34
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/addresses`, {
|
|
35
|
+
method: 'post',
|
|
36
|
+
json: {
|
|
37
|
+
...constituentAddressData,
|
|
38
|
+
constituent_id: constituentId
|
|
39
|
+
},
|
|
40
|
+
throwHttpErrors: false
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
async updateConstituentAddressById(addressId, constituentAddressData) {
|
|
44
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/addresses/${addressId}`, {
|
|
45
|
+
method: 'patch',
|
|
46
|
+
json: {
|
|
47
|
+
...constituentAddressData,
|
|
48
|
+
inactive: false
|
|
49
|
+
},
|
|
50
|
+
throwHttpErrors: false
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
async getConstituentEmailList(constituentId) {
|
|
54
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/constituents/${constituentId}/emailaddresses?include_inactive=true`, {
|
|
55
|
+
method: 'get',
|
|
56
|
+
throwHttpErrors: false
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
async createConstituentEmail(constituentId, constituentEmailData) {
|
|
60
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/emailaddresses`, {
|
|
61
|
+
method: 'post',
|
|
62
|
+
json: {
|
|
63
|
+
...constituentEmailData,
|
|
64
|
+
constituent_id: constituentId
|
|
65
|
+
},
|
|
66
|
+
throwHttpErrors: false
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
async updateConstituentEmailById(emailId, constituentEmailData) {
|
|
70
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/emailaddresses/${emailId}`, {
|
|
71
|
+
method: 'patch',
|
|
72
|
+
json: {
|
|
73
|
+
...constituentEmailData,
|
|
74
|
+
inactive: false
|
|
75
|
+
},
|
|
76
|
+
throwHttpErrors: false
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
async getConstituentOnlinePresenceList(constituentId) {
|
|
80
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/constituents/${constituentId}/onlinepresences?include_inactive=true`, {
|
|
81
|
+
method: 'get',
|
|
82
|
+
throwHttpErrors: false
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
async createConstituentOnlinePresence(constituentId, constituentOnlinePresenceData) {
|
|
86
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/onlinepresences`, {
|
|
87
|
+
method: 'post',
|
|
88
|
+
json: {
|
|
89
|
+
...constituentOnlinePresenceData,
|
|
90
|
+
constituent_id: constituentId
|
|
91
|
+
},
|
|
92
|
+
throwHttpErrors: false
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
async updateConstituentOnlinePresenceById(onlinePresenceId, constituentOnlinePresenceData) {
|
|
96
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/onlinepresences/${onlinePresenceId}`, {
|
|
97
|
+
method: 'patch',
|
|
98
|
+
json: {
|
|
99
|
+
...constituentOnlinePresenceData,
|
|
100
|
+
inactive: false
|
|
101
|
+
},
|
|
102
|
+
throwHttpErrors: false
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
async getConstituentPhoneList(constituentId) {
|
|
106
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/constituents/${constituentId}/phones?include_inactive=true`, {
|
|
107
|
+
method: 'get',
|
|
108
|
+
throwHttpErrors: false
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
async createConstituentPhone(constituentId, constituentPhoneData) {
|
|
112
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/phones`, {
|
|
113
|
+
method: 'post',
|
|
114
|
+
json: {
|
|
115
|
+
...constituentPhoneData,
|
|
116
|
+
constituent_id: constituentId
|
|
117
|
+
},
|
|
118
|
+
throwHttpErrors: false
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
async updateConstituentPhoneById(phoneId, constituentPhoneData) {
|
|
122
|
+
return this.request(`${constants_1.SKY_API_BASE_URL}/phones/${phoneId}`, {
|
|
123
|
+
method: 'patch',
|
|
124
|
+
json: {
|
|
125
|
+
...constituentPhoneData,
|
|
126
|
+
inactive: false
|
|
127
|
+
},
|
|
128
|
+
throwHttpErrors: false
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.BlackbaudSkyApi = BlackbaudSkyApi;
|
|
133
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/blackbaud-raisers-edge-nxt/api/index.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAE/C,MAAa,eAAe;IAG1B,YAAY,OAAsB;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,WAAmB,EAAE,UAAkB;QACnE,OAAO,IAAI,CAAC,OAAO,CACjB,GAAG,4BAAgB,qCAAqC,WAAW,gBAAgB,UAAU,EAAE,EAC/F;YACE,MAAM,EAAE,KAAK;SACd,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,eAAuB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,4BAAgB,eAAe,EAAE;YACtD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,eAAe;SACtB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,aAAqB,EAAE,eAAuB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,4BAAgB,iBAAiB,aAAa,EAAE,EAAE;YACvE,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,eAAe;YACrB,eAAe,EAAE,KAAK;SACvB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,aAAqB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,4BAAgB,iBAAiB,aAAa,kCAAkC,EAAE;YACvG,MAAM,EAAE,KAAK;YACb,eAAe,EAAE,KAAK;SACvB,C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