Skip to content

Commit 9620814

Browse files
committed
Fix typescript errors
1 parent cd5ef78 commit 9620814

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

lib/dataExport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default class DataExport {
3636
}
3737

3838
interface CreateDataExportData {
39-
createdAtBefore: string;
40-
createdAtAfter: string;
39+
createdAtBefore: number;
40+
createdAtAfter: number;
4141
}
4242

4343
type DataExportByIdData = OperationById;

lib/phoneCallRedirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ export default class PhoneCallRedirect {
2323

2424
interface CreatePhoneRedirectData {
2525
phone: string;
26-
customAttributes: JavascriptObject;
26+
customAttributes?: JavascriptObject;
2727
}

test/integration/dataExport.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client} from '../../dist';
1+
import { Client } from '../../dist';
22
import assert from 'assert';
33
import { token } from './utils/config';
44

@@ -8,9 +8,10 @@ describe('dataExport', () => {
88

99
it('create', async () => {
1010
const response = await client.dataExport.create({
11-
phone: '+353871234567'
11+
createdAtAfter: 1670000000,
12+
createdAtBefore: 1670940528,
1213
});
13-
dataExport = response.id;
14+
dataExport = response.job_identifier;
1415

1516
assert.notEqual(response, undefined);
1617
});

0 commit comments

Comments
 (0)