@segment/action-destinations 3.233.0-streams.5 → 3.234.0-segment-cleanup.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/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
- package/dist/destinations/display-video-360/addToAudience/generated-types.d.ts +1 -1
- package/dist/destinations/display-video-360/addToAudience/index.js +5 -2
- package/dist/destinations/display-video-360/addToAudience/index.js.map +1 -1
- package/dist/destinations/display-video-360/errors.d.ts +2 -1
- package/dist/destinations/display-video-360/errors.js +7 -4
- package/dist/destinations/display-video-360/errors.js.map +1 -1
- package/dist/destinations/display-video-360/index.js +19 -12
- package/dist/destinations/display-video-360/index.js.map +1 -1
- package/dist/destinations/display-video-360/properties.d.ts +1 -1
- package/dist/destinations/display-video-360/properties.js +14 -17
- package/dist/destinations/display-video-360/properties.js.map +1 -1
- package/dist/destinations/display-video-360/removeFromAudience/generated-types.d.ts +1 -1
- package/dist/destinations/display-video-360/removeFromAudience/index.js +5 -2
- package/dist/destinations/display-video-360/removeFromAudience/index.js.map +1 -1
- package/dist/destinations/display-video-360/shared.d.ts +8 -1
- package/dist/destinations/display-video-360/shared.js +29 -8
- package/dist/destinations/display-video-360/shared.js.map +1 -1
- package/dist/destinations/engage/utils/track.d.ts +17 -17
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup.types.d.ts +0 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail.types.d.ts +0 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +5 -41
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/s3.d.ts +0 -9
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/s3.js +1 -22
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/s3.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js +1 -37
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/operations.d.ts +1 -20
- package/dist/destinations/liveramp-audiences/operations.js +1 -67
- package/dist/destinations/liveramp-audiences/operations.js.map +1 -1
- package/dist/destinations/segment/generated-types.d.ts +0 -1
- package/dist/destinations/segment/index.js +3 -13
- package/dist/destinations/segment/index.js.map +1 -1
- package/dist/destinations/segment/properties.d.ts +1 -1
- package/dist/destinations/segment/properties.js +3 -3
- package/dist/destinations/segment/properties.js.map +1 -1
- package/dist/destinations/segment/sendGroup/index.js +5 -16
- package/dist/destinations/segment/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment/sendIdentify/index.js +5 -16
- package/dist/destinations/segment/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment/sendPage/index.js +5 -16
- package/dist/destinations/segment/sendPage/index.js.map +1 -1
- package/dist/destinations/segment/sendScreen/index.js +5 -16
- package/dist/destinations/segment/sendScreen/index.js.map +1 -1
- package/dist/destinations/segment/sendTrack/index.js +5 -16
- package/dist/destinations/segment/sendTrack/index.js.map +1 -1
- package/dist/destinations/segment-profiles/generated-types.d.ts +0 -1
- package/dist/destinations/segment-profiles/index.js +0 -18
- package/dist/destinations/segment-profiles/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendGroup/index.js +5 -20
- package/dist/destinations/segment-profiles/sendGroup/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendIdentify/index.js +5 -20
- package/dist/destinations/segment-profiles/sendIdentify/index.js.map +1 -1
- package/dist/destinations/segment-profiles/sendSubscription/index.js +5 -21
- package/dist/destinations/segment-profiles/sendSubscription/index.js.map +1 -1
- package/package.json +3 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/liveramp-audiences/audienceEnteredS3/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/liveramp-audiences/audienceEnteredS3/index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ACtI,CAAA;KACF;IAED,eAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;IAE7B,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,yBAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAE/D,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,2CAA8B,CAAC,KAAK,IAAI,EAAE;QAI7E,OAAO,aAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;KAC1E;SAAM;QAIL,OAAO,0BAAc,CAAC,KAAK,CAAC,OAAO,EAAE;YACnC,iBAAiB,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,cAAc;YACvE,UAAU,EAAE,IAAI;YAChB,QAAQ;YACR,YAAY;YACZ,MAAM,EAAE;gBACN,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,kBAAkB;gBAClD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,aAAa;gBACzC,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,iBAAiB;gBAClD,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,iBAAiB;aACvD;SACF,CAAC,CAAA;KACH;AACH,CAAC;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { ModifiedResponse, RequestOptions } from '@segment/actions-core';
|
|
3
3
|
import { Payload } from './generated-types';
|
|
4
|
-
import { Writable } from 'stream';
|
|
5
4
|
declare function validateS3(payload: Payload): void;
|
|
6
5
|
declare function uploadS3(payload: Payload, filename: string, fileContent: Buffer, request: <Data = unknown>(url: string, options?: RequestOptions) => Promise<ModifiedResponse<Data>>): Promise<ModifiedResponse<unknown>>;
|
|
7
|
-
export declare class S3WriteStream extends Writable {
|
|
8
|
-
buffer: Buffer;
|
|
9
|
-
constructor();
|
|
10
|
-
_construct(callback: (error?: Error) => void): void;
|
|
11
|
-
_write(chunk: any, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
12
|
-
_final(callback: (error?: Error) => void): void;
|
|
13
|
-
_destroy(_error: Error, callback: (error?: Error) => void): void;
|
|
14
|
-
}
|
|
15
6
|
export { validateS3, uploadS3 };
|
|
@@ -3,10 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.uploadS3 = exports.validateS3 =
|
|
6
|
+
exports.uploadS3 = exports.validateS3 = void 0;
|
|
7
7
|
const s3_1 = __importDefault(require("../../../lib/AWS/s3"));
|
|
8
8
|
const actions_core_1 = require("@segment/actions-core");
|
|
9
|
-
const stream_1 = require("stream");
|
|
10
9
|
function validateS3(payload) {
|
|
11
10
|
if (!payload.s3_aws_access_key) {
|
|
12
11
|
throw new actions_core_1.InvalidAuthenticationError('Selected S3 upload mode, but missing AWS Access Key');
|
|
@@ -35,24 +34,4 @@ async function uploadS3(payload, filename, fileContent, request) {
|
|
|
35
34
|
});
|
|
36
35
|
}
|
|
37
36
|
exports.uploadS3 = uploadS3;
|
|
38
|
-
class S3WriteStream extends stream_1.Writable {
|
|
39
|
-
constructor() {
|
|
40
|
-
super({ objectMode: false });
|
|
41
|
-
this.buffer = Buffer.from('');
|
|
42
|
-
}
|
|
43
|
-
_construct(callback) {
|
|
44
|
-
callback();
|
|
45
|
-
}
|
|
46
|
-
_write(chunk, _encoding, callback) {
|
|
47
|
-
this.buffer = Buffer.concat([this.buffer, chunk]);
|
|
48
|
-
callback();
|
|
49
|
-
}
|
|
50
|
-
_final(callback) {
|
|
51
|
-
callback();
|
|
52
|
-
}
|
|
53
|
-
_destroy(_error, callback) {
|
|
54
|
-
callback();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.S3WriteStream = S3WriteStream;
|
|
58
37
|
//# sourceMappingURL=s3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s3.js","sourceRoot":"","sources":["../../../../src/destinations/liveramp-audiences/audienceEnteredS3/s3.ts"],"names":[],"mappings":";;;;;;AAAA,6DAA0D;AAC1D,wDAAoG;
|
|
1
|
+
{"version":3,"file":"s3.js","sourceRoot":"","sources":["../../../../src/destinations/liveramp-audiences/audienceEnteredS3/s3.ts"],"names":[],"mappings":";;;;;;AAAA,6DAA0D;AAC1D,wDAAoG;AAGpG,SAAS,UAAU,CAAC,OAAgB;IAClC,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE;QAC9B,MAAM,IAAI,yCAA0B,CAAC,qDAAqD,CAAC,CAAA;KAC5F;IAED,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE;QAC9B,MAAM,IAAI,yCAA0B,CAAC,qDAAqD,CAAC,CAAA;KAC5F;IAED,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE;QAC/B,MAAM,IAAI,yCAA0B,CAAC,yDAAyD,CAAC,CAAA;KAChG;IAED,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;QAC1B,MAAM,IAAI,yCAA0B,CAAC,iDAAiD,CAAC,CAAA;KACxF;AACH,CAAC;AA6BQ,gCAAU;AA3BnB,KAAK,UAAU,QAAQ,CACrB,OAAgB,EAChB,QAAgB,EAChB,WAAmB,EACnB,OAAmG;IAEnG,MAAM,MAAM,GAAG,KAAK,CAAA;IACpB,MAAM,IAAI,GAAG,MAAM,YAAwB,CACzC,OAAO,CAAC,kBAA4B,EACpC,OAAO,CAAC,aAAuB,EAC/B,QAAQ,EACR,MAAM,EACN,WAAW,EACX,OAAO,CAAC,iBAA2B,EACnC,OAAO,CAAC,iBAA2B,CACpC,CAAA;IACD,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QAC7D,MAAM,IAAI,yCAA0B,CAAC,yDAAyD,CAAC,CAAA;KAChG;IAED,OAAO,MAAM,OAAO,CAAC,WAAW,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE;QACxD,OAAO,EAAE,IAAI,CAAC,OAAiC;QAC/C,MAAM;QACN,IAAI,EAAE,IAAI,CAAC,IAAI;KAChB,CAAC,CAAA;AACJ,CAAC;AAEoB,4BAAQ"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const actions_core_1 = require("@segment/actions-core");
|
|
7
4
|
const sftp_1 = require("./sftp");
|
|
8
5
|
const operations_1 = require("../operations");
|
|
9
6
|
const awsClient_1 = require("../awsClient");
|
|
10
|
-
const fs_1 = __importDefault(require("fs"));
|
|
11
7
|
const properties_1 = require("../properties");
|
|
12
|
-
const promises_1 = require("stream/promises");
|
|
13
8
|
const action = {
|
|
14
9
|
title: 'Audience Entered (SFTP)',
|
|
15
10
|
description: 'Uploads audience membership data to a file through SFTP for LiveRamp ingestion.',
|
|
@@ -27,7 +22,7 @@ const action = {
|
|
|
27
22
|
},
|
|
28
23
|
sftp_folder_path: {
|
|
29
24
|
label: 'Folder Path',
|
|
30
|
-
description: 'Path within the LiveRamp SFTP server to
|
|
25
|
+
description: 'Path within the LiveRamp SFTP server to upload the files to. This path must exist and all subfolders must be pre-created.',
|
|
31
26
|
type: 'string',
|
|
32
27
|
default: { '@template': '/uploads/' },
|
|
33
28
|
format: 'uri-reference'
|
|
@@ -99,37 +94,6 @@ const action = {
|
|
|
99
94
|
features,
|
|
100
95
|
rawData
|
|
101
96
|
});
|
|
102
|
-
},
|
|
103
|
-
async performBatchStream(_request, { payload }) {
|
|
104
|
-
const samplePayload = await new Promise((resolve, reject) => {
|
|
105
|
-
payload
|
|
106
|
-
.once('data', (data) => {
|
|
107
|
-
payload.pause();
|
|
108
|
-
payload.unshift(data);
|
|
109
|
-
resolve(data[0]);
|
|
110
|
-
})
|
|
111
|
-
.on('error', (err) => {
|
|
112
|
-
reject(err);
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
const fileName = samplePayload.filename;
|
|
116
|
-
const filePath = `/tmp/${fileName}`;
|
|
117
|
-
const csv = new operations_1.ObjectToCSVTransformer();
|
|
118
|
-
const fileStream = fs_1.default.createWriteStream(filePath);
|
|
119
|
-
await promises_1.pipeline(payload, csv, fileStream);
|
|
120
|
-
const sftpClient = new sftp_1.Client();
|
|
121
|
-
console.time('sftpConnect');
|
|
122
|
-
await sftpClient.connect({
|
|
123
|
-
host: properties_1.LIVERAMP_SFTP_SERVER,
|
|
124
|
-
port: properties_1.LIVERAMP_SFTP_PORT,
|
|
125
|
-
username: csv.sftp.sftpUsername,
|
|
126
|
-
password: csv.sftp.sftpPassword
|
|
127
|
-
});
|
|
128
|
-
console.timeEnd('sftpConnect');
|
|
129
|
-
console.time('sftpUpload');
|
|
130
|
-
await sftpClient.fastPut(filePath, `/uploads/varada_test/${fileName}`);
|
|
131
|
-
console.timeEnd('sftpUpload');
|
|
132
|
-
fs_1.default.unlinkSync(filePath);
|
|
133
97
|
}
|
|
134
98
|
};
|
|
135
99
|
async function processData(input) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/liveramp-audiences/audienceEnteredSftp/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dest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BAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;IAE/B,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,yBAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAE/D,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,2CAA8B,CAAC,KAAK,IAAI,EAAE;QAI7E,MAAM,UAAU,GAAG,IAAI,aAAU,EAAE,CAAA;QACnC,OAAO,iBAAU,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAA;KACzE;SAAM;QAIL,OAAO,0BAAc,CAAC,KAAK,CAAC,OAAO,EAAE;YACnC,iBAAiB,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,cAAc;YACvE,UAAU,EAAE,MAAM;YAClB,QAAQ;YACR,YAAY;YACZ,QAAQ,EAAE;gBACR,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,aAAa;gBAC7C,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,aAAa;gBAC7C,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,gBAAgB;aACnD;SACF,CAAC,CAAA;KACH;AACH,CAAC;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { RequestClient, ExecuteInput } from '@segment/actions-core';
|
|
3
3
|
import type { Payload as s3Payload } from './audienceEnteredS3/generated-types';
|
|
4
4
|
import type { Payload as sftpPayload } from './audienceEnteredSftp/generated-types';
|
|
5
|
-
import { Transform } from 'stream';
|
|
6
5
|
export declare type RawData = {
|
|
7
6
|
context?: {
|
|
8
7
|
personas?: {
|
|
@@ -21,28 +20,10 @@ export declare type ProcessDataInput<T extends s3Payload | sftpPayload> = {
|
|
|
21
20
|
export declare type ExecuteInputRaw<Settings, Payload, RawData, AudienceSettings = unknown> = ExecuteInput<Settings, Payload, AudienceSettings> & {
|
|
22
21
|
rawData?: RawData;
|
|
23
22
|
};
|
|
24
|
-
export declare type SFTPCreds = {
|
|
25
|
-
sftpUsername: string;
|
|
26
|
-
sftpPassword: string;
|
|
27
|
-
};
|
|
28
|
-
export declare type S3Creds = {
|
|
29
|
-
s3_aws_access_key: string;
|
|
30
|
-
s3_aws_secret_key: string;
|
|
31
|
-
s3_aws_bucket_name: string;
|
|
32
|
-
s3_aws_region: string;
|
|
33
|
-
file_name: string;
|
|
34
|
-
};
|
|
35
|
-
declare class ObjectToCSVTransformer extends Transform {
|
|
36
|
-
headerWritten: boolean;
|
|
37
|
-
sftp: SFTPCreds;
|
|
38
|
-
s3: S3Creds;
|
|
39
|
-
constructor(options?: {});
|
|
40
|
-
_transform(payloads: s3Payload[] | sftpPayload[], _encoding: any, callback: (err?: Error) => void): void;
|
|
41
|
-
}
|
|
42
23
|
declare function generateFile(payloads: s3Payload[] | sftpPayload[]): {
|
|
43
24
|
filename: string;
|
|
44
25
|
fileContents: Buffer;
|
|
45
26
|
};
|
|
46
27
|
declare function enquoteIdentifier(identifier: string): string;
|
|
47
28
|
declare const normalize: (key: string, value: string) => string;
|
|
48
|
-
export { generateFile, enquoteIdentifier, normalize
|
|
29
|
+
export { generateFile, enquoteIdentifier, normalize };
|
|
@@ -1,73 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.normalize = exports.enquoteIdentifier = exports.generateFile = void 0;
|
|
4
4
|
const crypto_1 = require("crypto");
|
|
5
|
-
const stream_1 = require("stream");
|
|
6
|
-
class ObjectToCSVTransformer extends stream_1.Transform {
|
|
7
|
-
constructor(options = {}) {
|
|
8
|
-
super(Object.assign({ objectMode: true }, options));
|
|
9
|
-
this.headerWritten = false;
|
|
10
|
-
}
|
|
11
|
-
_transform(payloads, _encoding, callback) {
|
|
12
|
-
const rows = [];
|
|
13
|
-
try {
|
|
14
|
-
for (const payload of payloads) {
|
|
15
|
-
if (!this.headerWritten) {
|
|
16
|
-
const headers = ['audience_key'];
|
|
17
|
-
if (!this.sftp && payload.sftp_password && payload.sftp_username) {
|
|
18
|
-
this.sftp = {
|
|
19
|
-
sftpPassword: payload.sftp_password,
|
|
20
|
-
sftpUsername: payload.sftp_username
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
if (!this.s3 && payload.s3_aws_access_key) {
|
|
24
|
-
this.s3 = {
|
|
25
|
-
s3_aws_access_key: payload.s3_aws_access_key,
|
|
26
|
-
s3_aws_region: payload.s3_aws_region,
|
|
27
|
-
s3_aws_secret_key: payload.s3_aws_secret_key,
|
|
28
|
-
s3_aws_bucket_name: payload.s3_aws_bucket_name,
|
|
29
|
-
file_name: payload.filename
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
if (payloads[0].identifier_data) {
|
|
33
|
-
for (const identifier of Object.getOwnPropertyNames(payloads[0].identifier_data)) {
|
|
34
|
-
headers.push(identifier);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if (payloads[0].unhashed_identifier_data) {
|
|
38
|
-
for (const identifier of Object.getOwnPropertyNames(payloads[0].unhashed_identifier_data)) {
|
|
39
|
-
headers.push(identifier);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
this.push(Buffer.from(headers.join(',') + '\n'));
|
|
43
|
-
this.headerWritten = true;
|
|
44
|
-
}
|
|
45
|
-
const row = [enquoteIdentifier(payload.audience_key)];
|
|
46
|
-
if (payload.identifier_data) {
|
|
47
|
-
for (const key in payload.identifier_data) {
|
|
48
|
-
if (Object.prototype.hasOwnProperty.call(payload.identifier_data, key)) {
|
|
49
|
-
row.push(enquoteIdentifier(String(payload.identifier_data[key])));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
if (payload.unhashed_identifier_data) {
|
|
54
|
-
for (const key in payload.unhashed_identifier_data) {
|
|
55
|
-
if (Object.prototype.hasOwnProperty.call(payload.unhashed_identifier_data, key)) {
|
|
56
|
-
row.push(`"${hash(normalize(key, String(payload.unhashed_identifier_data[key])))}"`);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
rows.push(Buffer.from(row.join(',') + '\n'));
|
|
61
|
-
}
|
|
62
|
-
this.push(Buffer.concat(rows));
|
|
63
|
-
callback();
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
callback(error);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.ObjectToCSVTransformer = ObjectToCSVTransformer;
|
|
71
5
|
function generateFile(payloads) {
|
|
72
6
|
const headers = new Set();
|
|
73
7
|
headers.add('audience_key');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/destinations/liveramp-audiences/operations.ts"],"names":[],"mappings":";;;AACA,mCAAmC;
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/destinations/liveramp-audiences/operations.ts"],"names":[],"mappings":";;;AACA,mCAAmC;AAgCnC,SAAS,YAAY,CAAC,QAAqC;IAEzD,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAA;IACjC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;IAG3B,IAAI,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAG1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;QAC3B,MAAM,GAAG,GAAa,CAAC,iBAAiB,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA;QAG/D,IAAI,OA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= {
|
|
|
21
21
|
description: 'The **Write Key** of a Segment source.',
|
|
22
22
|
type: 'string',
|
|
23
23
|
required: true
|
|
24
|
-
},
|
|
25
|
-
endpoint: {
|
|
26
|
-
label: 'Endpoint Region',
|
|
27
|
-
description: 'The region to send your data.',
|
|
28
|
-
type: 'string',
|
|
29
|
-
format: 'text',
|
|
30
|
-
choices: Object.keys(properties_1.SEGMENT_ENDPOINTS).map((key) => ({
|
|
31
|
-
label: properties_1.SEGMENT_ENDPOINTS[key].label,
|
|
32
|
-
value: key
|
|
33
|
-
})),
|
|
34
|
-
default: properties_1.DEFAULT_SEGMENT_ENDPOINT
|
|
35
24
|
}
|
|
36
25
|
},
|
|
37
26
|
testAuthentication: async (request, { settings }) => {
|
|
38
|
-
const { source_write_key
|
|
39
|
-
|
|
27
|
+
const { source_write_key } = settings;
|
|
28
|
+
const AWS_REGION = process.env['AWS_REGION'] || properties_1.DEFAULT_SEGMENT_ENDPOINT;
|
|
29
|
+
return request(`${properties_1.SEGMENT_ENDPOINTS[AWS_REGION].cdn}/projects/${source_write_key}/settings`);
|
|
40
30
|
}
|
|
41
31
|
},
|
|
42
32
|
extendRequest({ settings }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment/index.ts"],"names":[],"mappings":";;;;;AAGA,kEAAyC;AACzC,4DAAmC;AACnC,8DAAqC;AACrC,0DAAiC;AACjC,4DAAmC;AAEnC,6CAA0E;AAE1E,MAAM,WAAW,GAAoC;IAEnD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,gBAAgB,EAAE;gBAChB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,wCAAwC;gBACrD,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/segment/index.ts"],"names":[],"mappings":";;;;;AAGA,kEAAyC;AACzC,4DAAmC;AACnC,8DAAqC;AACrC,0DAAiC;AACjC,4DAAmC;AAEnC,6CAA0E;AAE1E,MAAM,WAAW,GAAoC;IAEnD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,gBAAgB,EAAE;gBAChB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,wCAAwC;gBACrD,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClD,MAAM,EAAE,gBAAgB,EAAE,GAAG,QAAQ,CAAA;YACrC,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,qCAAwB,CAAA;YACxE,OAAO,OAAO,CAAC,GAAG,8BAAiB,CAAC,UAAU,CAAC,CAAC,GAAG,aAAa,gBAAgB,WAAW,CAAC,CAAA;QAC9F,CAAC;KACF;IACD,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,SAAS,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;aAC1F;SACF,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,YAAY,EAAZ,sBAAY;QACZ,SAAS,EAAT,mBAAS;QACT,UAAU,EAAV,oBAAU;QACV,QAAQ,EAAR,kBAAQ;QACR,SAAS,EAAT,mBAAS;KACV;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEFAULT_SEGMENT_ENDPOINT = exports.SEGMENT_ENDPOINTS = void 0;
|
|
4
4
|
exports.SEGMENT_ENDPOINTS = {
|
|
5
|
-
|
|
5
|
+
'us-west-2': {
|
|
6
6
|
label: 'North America',
|
|
7
7
|
url: 'https://api.segment.io/v1',
|
|
8
8
|
cdn: 'https://cdn.segment.com/v1'
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
'eu-west-1': {
|
|
11
11
|
label: 'Europe',
|
|
12
12
|
url: 'https://events.eu1.segmentapis.com/v1',
|
|
13
13
|
cdn: 'https://cdn.segment.com/v1'
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
|
-
exports.DEFAULT_SEGMENT_ENDPOINT = '
|
|
16
|
+
exports.DEFAULT_SEGMENT_ENDPOINT = 'us-west-2';
|
|
17
17
|
//# sourceMappingURL=properties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/segment/properties.ts"],"names":[],"mappings":";;;AAMa,QAAA,iBAAiB,GAAuC;IACnE,
|
|
1
|
+
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/segment/properties.ts"],"names":[],"mappings":";;;AAMa,QAAA,iBAAiB,GAAuC;IACnE,WAAW,EAAE;QACX,KAAK,EAAE,eAAe;QACtB,GAAG,EAAE,2BAA2B;QAChC,GAAG,EAAE,4BAA4B;KAClC;IACD,WAAW,EAAE;QACX,KAAK,EAAE,QAAQ;QACf,GAAG,EAAE,uCAAuC;QAC5C,GAAG,EAAE,4BAA4B;KAClC;CACF,CAAA;AAEY,QAAA,wBAAwB,GAAG,WAAW,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const segment_properties_1 = require("../segment-properties");
|
|
4
|
-
const properties_1 = require("../properties");
|
|
5
4
|
const errors_1 = require("../errors");
|
|
6
5
|
const action = {
|
|
7
6
|
title: 'Send Group',
|
|
@@ -26,7 +25,7 @@ const action = {
|
|
|
26
25
|
timezone: segment_properties_1.timezone,
|
|
27
26
|
traits: segment_properties_1.traits
|
|
28
27
|
},
|
|
29
|
-
perform: (
|
|
28
|
+
perform: (_request, { payload, statsContext }) => {
|
|
30
29
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
31
30
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
32
31
|
}
|
|
@@ -51,21 +50,11 @@ const action = {
|
|
|
51
50
|
},
|
|
52
51
|
traits: {
|
|
53
52
|
...payload?.traits
|
|
54
|
-
}
|
|
53
|
+
},
|
|
54
|
+
type: 'group'
|
|
55
55
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
if (features && features['actions-segment-tapi-internal-enabled']) {
|
|
60
|
-
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendGroup']);
|
|
61
|
-
const payload = { ...groupPayload, type: 'group' };
|
|
62
|
-
return { batch: [payload] };
|
|
63
|
-
}
|
|
64
|
-
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
65
|
-
return request(`${selectedSegmentEndpoint}/group`, {
|
|
66
|
-
method: 'POST',
|
|
67
|
-
json: groupPayload
|
|
68
|
-
});
|
|
56
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendGroup']);
|
|
57
|
+
return { batch: [groupPayload] };
|
|
69
58
|
}
|
|
70
59
|
};
|
|
71
60
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendGroup/index.ts"],"names":[],"mappings":";;AAGA,8DAkB8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendGroup/index.ts"],"names":[],"mappings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EAAE,QAAQ;gBAC3B,OAAO,EAAE,OAAO,EAAE,OAAO;gBACzB,EAAE,EAAE,OAAO,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,OAAO,EAAE,IAAI;gBACnB,MAAM,EAAE,OAAO,EAAE,MAAM;gBACvB,SAAS,EAAE,OAAO,EAAE,UAAU;gBAC9B,QAAQ,EAAE,OAAO,EAAE,QAAQ;aAC5B;YACD,MAAM,EAAE;gBACN,GAAG,OAAO,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,OAAO;SACd,CAAA;QAID,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAA;QAC/F,OAAO,EAAE,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,CAAA;IAClC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const segment_properties_1 = require("../segment-properties");
|
|
4
|
-
const properties_1 = require("../properties");
|
|
5
4
|
const errors_1 = require("../errors");
|
|
6
5
|
const action = {
|
|
7
6
|
title: 'Send Identify',
|
|
@@ -26,7 +25,7 @@ const action = {
|
|
|
26
25
|
group_id: segment_properties_1.group_id,
|
|
27
26
|
traits: segment_properties_1.traits
|
|
28
27
|
},
|
|
29
|
-
perform: (
|
|
28
|
+
perform: (_request, { payload, statsContext }) => {
|
|
30
29
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
31
30
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
32
31
|
}
|
|
@@ -51,21 +50,11 @@ const action = {
|
|
|
51
50
|
},
|
|
52
51
|
traits: {
|
|
53
52
|
...payload?.traits
|
|
54
|
-
}
|
|
53
|
+
},
|
|
54
|
+
type: 'identify'
|
|
55
55
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
if (features && features['actions-segment-tapi-internal-enabled']) {
|
|
60
|
-
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendIdentify']);
|
|
61
|
-
const payload = { ...identifyPayload, type: 'identify' };
|
|
62
|
-
return { batch: [payload] };
|
|
63
|
-
}
|
|
64
|
-
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
65
|
-
return request(`${selectedSegmentEndpoint}/identify`, {
|
|
66
|
-
method: 'POST',
|
|
67
|
-
json: identifyPayload
|
|
68
|
-
});
|
|
56
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendIdentify']);
|
|
57
|
+
return { batch: [identifyPayload] };
|
|
69
58
|
}
|
|
70
59
|
};
|
|
71
60
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAkB8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendIdentify/index.ts"],"names":[],"mappings":";;AAGA,8DAkB8B;AAC9B,sCAAkE;AAElE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,gIAAgI;IAClI,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,WAAW,EAAX,gCAAW;QACX,mBAAmB,EAAnB,wCAAmB;QACnB,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,MAAM,EAAN,2BAAM;QACN,QAAQ,EAAR,6BAAQ;QACR,OAAO,EAAP,4BAAO;QACP,gBAAgB,EAAhB,qCAAgB;QAChB,IAAI,EAAJ,yBAAI;QACJ,MAAM,E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CAAA;IACrC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const segment_properties_1 = require("../segment-properties");
|
|
4
|
-
const properties_1 = require("../properties");
|
|
5
4
|
const errors_1 = require("../errors");
|
|
6
5
|
const action = {
|
|
7
6
|
title: 'Send Page',
|
|
@@ -28,7 +27,7 @@ const action = {
|
|
|
28
27
|
group_id: segment_properties_1.group_id,
|
|
29
28
|
properties: segment_properties_1.properties
|
|
30
29
|
},
|
|
31
|
-
perform: (
|
|
30
|
+
perform: (_request, { payload, statsContext }) => {
|
|
32
31
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
33
32
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
34
33
|
}
|
|
@@ -61,21 +60,11 @@ const action = {
|
|
|
61
60
|
title: payload?.page?.title,
|
|
62
61
|
url: payload?.page?.url,
|
|
63
62
|
...payload?.properties
|
|
64
|
-
}
|
|
63
|
+
},
|
|
64
|
+
type: 'page'
|
|
65
65
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
if (features && features['actions-segment-tapi-internal-enabled']) {
|
|
70
|
-
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendPage']);
|
|
71
|
-
const payload = { ...pagePayload, type: 'page' };
|
|
72
|
-
return { batch: [payload] };
|
|
73
|
-
}
|
|
74
|
-
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
75
|
-
return request(`${selectedSegmentEndpoint}/page`, {
|
|
76
|
-
method: 'POST',
|
|
77
|
-
json: pagePayload
|
|
78
|
-
});
|
|
66
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendPage']);
|
|
67
|
+
return { batch: [pagePayload] };
|
|
79
68
|
}
|
|
80
69
|
};
|
|
81
70
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendPage/index.ts"],"names":[],"mappings":";;AAGA,8DAoB8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendPage/index.ts"],"names":[],"mappings":";;AAGA,8DAoB8B;AAC9B,sCAAkE;AAElE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,uFAAuF;IACpG,mBAAmB,EAAE,eAAe;IACpC,MAAM,EAAE;QACN,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,SAAS,EAAT,8BAAS;QACT,aAAa,EAAb,kCAAa;QACb,WAAW,EAAX,gCAAW;QACX,mBAAmB,EAAnB,wCAAmB;QACnB,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,MAAM,EAAN,2BAAM;QACN,QAAQ,EAAR,6BAAQ;QACR,OAAO,EAAP,4BAAO;QACP,gBAAgB,EAAhB,qCAAgB;QAChB,IAAI,EAAJ,yBAAI;QACJ,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,QAAQ,EAAR,6BAAQ;QACR,QAAQ,EAAR,6BAAQ;QACR,UAAU,EAAV,+BAAU;KACX;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;QAC/C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QAED,MAAM,WAAW,GAAW;YAC1B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,SAAS,EAAE,OAAO,EAAE,SAAS;YAC7B,IAAI,EAAE,OAAO,EAAE,SAAS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2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const segment_properties_1 = require("../segment-properties");
|
|
4
|
-
const properties_1 = require("../properties");
|
|
5
4
|
const errors_1 = require("../errors");
|
|
6
5
|
const action = {
|
|
7
6
|
title: 'Send Screen',
|
|
@@ -27,7 +26,7 @@ const action = {
|
|
|
27
26
|
group_id: segment_properties_1.group_id,
|
|
28
27
|
properties: segment_properties_1.properties
|
|
29
28
|
},
|
|
30
|
-
perform: (
|
|
29
|
+
perform: (_request, { payload, statsContext }) => {
|
|
31
30
|
if (!payload.anonymous_id && !payload.user_id) {
|
|
32
31
|
throw errors_1.MissingUserOrAnonymousIdThrowableError;
|
|
33
32
|
}
|
|
@@ -53,21 +52,11 @@ const action = {
|
|
|
53
52
|
properties: {
|
|
54
53
|
name: payload?.screen_name,
|
|
55
54
|
...payload?.properties
|
|
56
|
-
}
|
|
55
|
+
},
|
|
56
|
+
type: 'screen'
|
|
57
57
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
if (features && features['actions-segment-tapi-internal-enabled']) {
|
|
62
|
-
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendScreen']);
|
|
63
|
-
const payload = { ...screenPayload, type: 'screen' };
|
|
64
|
-
return { batch: [payload] };
|
|
65
|
-
}
|
|
66
|
-
const selectedSegmentEndpoint = properties_1.SEGMENT_ENDPOINTS[settings.endpoint].url;
|
|
67
|
-
return request(`${selectedSegmentEndpoint}/screen`, {
|
|
68
|
-
method: 'POST',
|
|
69
|
-
json: screenPayload
|
|
70
|
-
});
|
|
58
|
+
statsContext?.statsClient?.incr('tapi_internal', 1, [...statsContext.tags, 'action:sendScreen']);
|
|
59
|
+
return { batch: [screenPayload] };
|
|
71
60
|
}
|
|
72
61
|
};
|
|
73
62
|
exports.default = action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendScreen/index.ts"],"names":[],"mappings":";;AAGA,8DAmB8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/segment/sendScreen/index.ts"],"names":[],"mappings":";;AAGA,8DAmB8B;AAC9B,sCAAkE;AAElE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,8FAA8F;IAC3G,mBAAmB,EAAE,iBAAiB;IACtC,MAAM,EAAE;QACN,OAAO,EAAP,4BAAO;QACP,YAAY,EAAZ,iCAAY;QACZ,SAAS,EAAT,8BAAS;QACT,WAAW,EAAX,gCAAW;QACX,WAAW,EAAX,gCAAW;QACX,mBAAmB,EAAnB,wCAAmB;QACnB,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,MAAM,EAAN,2BAAM;QACN,QAAQ,EAAR,6BAAQ;QACR,OAAO,EAAP,4BAAO;QACP,gBAAgB,EAAhB,qCAAgB;QAChB,IAAI,EAAJ,yBAAI;QACJ,MAAM,EAAN,2BAAM;QACN,UAAU,EAAV,+BAAU;QACV,QAAQ,EAAR,6BAAQ;QACR,QAAQ,EAAR,6BAAQ;QACR,UAAU,EAAV,+BAAU;KACX;IACD,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE;QAC/C,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YAC7C,MAAM,+CAAsC,CAAA;SAC7C;QAED,MAAM,aAAa,GAAW;YAC5B,MAAM,EAAE,OAAO,EAAE,OAAO;YACxB,WAAW,EAAE,OAAO,EAAE,YAAY;YAClC,SAAS,EAAE,OAAO,EAAE,SAAS;YAC7B,IAAI,EAAE,OAAO,EAAE,WAAW;YAC1B,OAAO,EAAE;gBACP,GAAG,EAAE,OAAO,EAAE,WAAW;gBACzB,QAAQ,EAAE,OAAO,EAAE,mBAAmB;gBACtC,MAAM,EAAE,OAAO,EAAE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