Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { DestinationDefinition } from '@segment/actions-core'
import type { Settings } from './generated-types'
import memoraDestination from '../memora'

const destination: DestinationDefinition<Settings> = {
...memoraDestination,
name: 'Memora Internal',
slug: 'actions-memora-internal'
}

export default destination
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Generated file. DO NOT MODIFY IT BY HAND.

export interface Payload {
/**
* Enable batching of requests to Memora. Batches are uploaded as CSV files.
*/
enable_batching?: boolean
/**
* Maximum number of profiles to include in each CSV import. Actual batch sizes may be lower.
*/
batch_size?: number
/**
* The Memora Store ID to use for this profile. This should be a valid Memora Store associated with your Twilio account.
*/
memora_store: string
/**
* Contact identifiers (email and/or phone). At least one identifier is required.
*/
contact_identifiers: {
/**
* User email address
*/
email?: string
/**
* User phone number
*/
phone?: string
}
/**
* Additional contact traits for the profile. These fields are dynamically loaded from the selected Memora Store.
*/
contact_traits?: {
[k: string]: unknown
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import nock from 'nock'
import { createTestIntegration } from '@segment/actions-core'
import Destination from '../index'
import { BASE_URL, API_VERSION } from '../index'
import { API_VERSION, BASE_URL } from '../versioning-info'

const testDestination = createTestIntegration(Destination)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import type { DestinationDefinition } from '@segment/actions-core'
import type { Settings } from './generated-types'

import upsertProfile from './upsertProfile'

export const API_VERSION = 'v1'
export const BASE_URL = 'https://memory.twilio.com'
import { API_VERSION, BASE_URL } from './versioning-info'

const destination: DestinationDefinition<Settings> = {
name: 'Memora',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import nock from 'nock'
import { createTestEvent, createTestIntegration } from '@segment/actions-core'
import Destination from '../../index'
import { BASE_URL, API_VERSION } from '../../index'
import { API_VERSION, BASE_URL } from '../../versioning-info'

const testDestination = createTestIntegration(Destination)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type { ActionDefinition } from '@segment/actions-core'
import type { Settings } from '../generated-types'
import type { Payload } from './generated-types'
import { IntegrationError, createRequestClient } from '@segment/actions-core'
import { API_VERSION, BASE_URL } from '../index'
import type { Logger } from '@segment/actions-core/destination-kit'
import { API_VERSION, BASE_URL } from '../versioning-info'

const action: ActionDefinition<Settings, Payload> = {
title: 'Upsert Profile',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const API_VERSION = 'v1'
export const BASE_URL = 'https://memory.twilio.com'
Loading