Skip to content

Commit

Permalink
Merge pull request #22 from peoray/update-files
Browse files Browse the repository at this point in the history
Clean up files and folders
  • Loading branch information
peoray authored Jan 10, 2024
2 parents 5a07437 + ff01712 commit 749de11
Show file tree
Hide file tree
Showing 36 changed files with 7,011 additions and 4,682 deletions.
1 change: 0 additions & 1 deletion .env.sample

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Campaign } from './campaign'
import { Campaign } from '../src/services/messaging/campaign'
import {
IFetchCampaignHistoryResponse,
IFetchCampaignsResponse,
ISendCampaign,
ISendCampaignResponse,
} from '../../../types'
} from '../src/types'

const campaignInstance = new Campaign('api-key')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Contact } from './contact'
import { IDeleteContactResponse, IFetchContactsResponse } from '../../../types'
import { Contact } from '../src/services/messaging/contact'
import { IDeleteContactResponse, IFetchContactsResponse } from '../src/types'

const contactInstance = new Contact('api-key')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Insights } from './insights'
import { Insights } from '../src/services/insights/insights'
import {
IGetBalanceResponse,
IHistoryResponse,
ISearchResponse,
IStatusResponse,
} from '../../types'
} from '../src/types'

jest.mock('../../api')
jest.mock('../src/api')
describe('Token class', () => {
const apiKey = 'your_api_key'
let insightsInstance: Insights
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Message } from './message'
import { Message } from '../src/services/messaging/message'
import {
ISendBulkMessage,
ISendMessage,
ISendMessageResponse,
} from '../../../types'
} from '../src/types'

const message = new Message('api-key')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Number } from './number'
import { Number } from '../src/services/messaging/number'
import {
ISendMessageWithNumber,
ISendMessageWithNumberResponse,
} from '../../../types'
} from '../src/types'

const numberInstance = new Number('api-key')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Phonebook } from './phonebook'
import { Phonebook } from '../src/services/messaging/phonebook'
import {
IFetchPhonebooksResponse,
IPhonebook,
IPhonebookResponse,
} from '../../../types'
} from '../src/types'

const phonebookInstance = new Phonebook('api-key')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { SenderId } from './index'
import { SenderId } from '../src/services/messaging/sender-id'
import {
ISenderIDResponse,
IRequestSenderID,
IRequestSenderIDResponse,
} from '../../../types'
} from '../src/types'

const message = new SenderId('api-key')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Template } from './template'
import { IDeviceTemplate, IDeviceTemplateResponse } from '../../../types'
import { Template } from '../src/services/messaging/template'
import { IDeviceTemplate, IDeviceTemplateResponse } from '../src/types'

const templateInstance = new Template('api-key')

Expand Down
6 changes: 3 additions & 3 deletions src/services/token/token.spec.ts → __tests__/token.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Token } from './token'
import { Token } from '../src/services/token/token'
import {
ISendToken,
ISendTokenResponse,
Expand All @@ -12,9 +12,9 @@ import {
IVerifyToken,
IInAppTokenResponse,
IInAppToken,
} from '../../types'
} from '../src/types'

jest.mock('../../api')
jest.mock('../src/api')
describe('Token class', () => {
const apiKey = 'your_api_key'
let tokenInstance: Token
Expand Down
5 changes: 0 additions & 5 deletions global.d.ts

This file was deleted.

18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "termii-nodejs-client",
"version": "0.3.0",
"version": "0.4.0",
"description": "Nodejs SDK wrapper for Termii API written with Typescript support",
"author": "Emmanuel Raymond",
"module": "dist/termii.esm.js",
Expand Down Expand Up @@ -44,18 +44,16 @@
],
"license": "MIT",
"devDependencies": {
"@types/jest": "^29.5.3",
"@types/node": "^20.4.8",
"class-validator": "^0.14.0",
"dotenv": "^16.3.1",
"jest": "^29.6.2",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.8",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"tsdx": "^0.14.1",
"tslib": "^2.6.1",
"typescript": "^5.1.6"
"tslib": "^2.6.2",
"typescript": "^5.3.3"
},
"dependencies": {
"axios": "^1.3.6"
"axios": "^1.6.5"
}
}
Loading

0 comments on commit 749de11

Please sign in to comment.