11import nock from 'nock'
22import { createTestEvent , createTestIntegration } from '@segment/actions-core'
3- import type { RequestClient , ExecuteInput , Logger } from '@segment/actions-core'
3+ import type { RequestClient , Logger } from '@segment/actions-core'
44import Destination from '../../index'
55import { API_VERSION } from '../../versioning-info'
66import { BASE_URL } from '../../constants'
77import type { Payload } from '../generated-types'
8- import type { Settings } from '../../generated-types'
98
109const testDestination = createTestIntegration ( Destination )
1110
@@ -141,7 +140,7 @@ describe('Memora.upsertProfile', () => {
141140 profile_traits : { 'Contact.$.firstName' : 'Test' }
142141 }
143142
144- const executeInput : ExecuteInput < Settings , Payload > = {
143+ const executeInput = {
145144 payload,
146145 settings : defaultSettings
147146 }
@@ -163,7 +162,7 @@ describe('Memora.upsertProfile', () => {
163162 profile_traits : { }
164163 }
165164
166- const executeInput : ExecuteInput < Settings , Payload > = {
165+ const executeInput = {
167166 payload,
168167 settings : defaultSettings
169168 }
@@ -190,7 +189,7 @@ describe('Memora.upsertProfile', () => {
190189 }
191190 }
192191
193- const executeInput : ExecuteInput < Settings , Payload > = {
192+ const executeInput = {
194193 payload,
195194 settings : defaultSettings
196195 }
@@ -631,7 +630,7 @@ describe('Memora.upsertProfile', () => {
631630 }
632631 }
633632
634- const executeInput : ExecuteInput < Settings , Payload > = {
633+ const executeInput = {
635634 payload,
636635 settings : defaultSettings
637636 }
@@ -661,7 +660,7 @@ describe('Memora.upsertProfile', () => {
661660 profile_traits : { 'Contact.$.firstName' : 'Test' }
662661 }
663662
664- const executeInput : ExecuteInput < Settings , Payload > = {
663+ const executeInput = {
665664 payload,
666665 settings : defaultSettings
667666 }
@@ -690,7 +689,7 @@ describe('Memora.upsertProfile', () => {
690689 profile_traits : { 'Contact.$.firstName' : 'John' }
691690 }
692691
693- const executeInput : ExecuteInput < Settings , Payload > = {
692+ const executeInput = {
694693 payload,
695694 settings : defaultSettings
696695 }
@@ -772,7 +771,7 @@ describe('Memora.upsertProfile', () => {
772771 throw new Error ( 'performBatch is not defined' )
773772 }
774773
775- const executeInput : ExecuteInput < Settings , Payload [ ] > = {
774+ const executeInput = {
776775 payload : [ ] ,
777776 settings : defaultSettings
778777 }
@@ -856,7 +855,7 @@ describe('Memora.upsertProfile', () => {
856855 }
857856 ]
858857
859- const executeInput : ExecuteInput < Settings , Payload [ ] > = {
858+ const executeInput = {
860859 payload : payloads ,
861860 settings : defaultSettings
862861 }
@@ -930,7 +929,7 @@ describe('Memora.upsertProfile', () => {
930929 }
931930 ]
932931
933- const executeInput : ExecuteInput < Settings , Payload [ ] > = {
932+ const executeInput = {
934933 payload : payloads ,
935934 settings : defaultSettings ,
936935 logger : mockLogger
@@ -982,7 +981,7 @@ describe('Memora.upsertProfile', () => {
982981 }
983982 ]
984983
985- const executeInput : ExecuteInput < Settings , Payload [ ] > = {
984+ const executeInput = {
986985 payload : payloads ,
987986 settings : defaultSettings
988987 }
@@ -1136,7 +1135,7 @@ describe('Memora.upsertProfile', () => {
11361135 }
11371136 ]
11381137
1139- const executeInput : ExecuteInput < Settings , Payload [ ] > = {
1138+ const executeInput = {
11401139 payload : payloads ,
11411140 settings : defaultSettings
11421141 }
0 commit comments