Skip to content

Commit

Permalink
fix imports and more types
Browse files Browse the repository at this point in the history
  • Loading branch information
elmarburke committed Jan 28, 2019
1 parent e47372c commit eeb7831
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion types/contact.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { datetime } from 'general';
import { datetime } from './general';

export interface Contact {
/** A unique random ID which is created on the MessageBird platform and is returned upon creation of the object. */
Expand Down
16 changes: 10 additions & 6 deletions types/conversations.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Language } from 'parsimmon';
import { datetime } from 'general';
import { datetime } from './general';
import { languages } from './voice_messages';

export interface StartConversationParameter {
/** The type of the message content. */
Expand Down Expand Up @@ -44,17 +44,21 @@ export interface TextContent {

export interface ImageContent {
/** Required for type image. An object of the form {"url": "<media url>"} containing the url of the remote media file. */
image: object;
image: File;
}

export interface AudioContent {
/** Required for type video. An object of the form {"url": "<media url>"} containing the url of the remote media file. */
video: object;
video: File;
}

export interface FileContent {
/** Required for type file. An object of the form {"url": "<media url>"} containing the url of the remote media file. */
file: object;
file: File;
}

export interface File {
url: string;
}

export interface LocationContent {
Expand Down Expand Up @@ -87,7 +91,7 @@ export interface HSMLanguage {
*/
policy: 'fallback' | 'deterministic';
/** The code of the language or locale to use, accepts both language and language_locale formats (e.g., en or en_US). */
code: Language;
code: languages;
}

export type HSMLocalizableParameters =
Expand Down
4 changes: 2 additions & 2 deletions types/lookup.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { datetime } from 'general';
import { Hlr } from 'hlr';
import { datetime } from './general';
import { Hlr } from './hlr';

export type numberType =
| 'fixed line'
Expand Down
2 changes: 1 addition & 1 deletion types/messages.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { datetime, msisdn } from 'general';
import { datetime, msisdn } from './general';

export type dataCoding = 'plain' | 'unicode' | 'auto';
export type mclass = 0 | 1;
Expand Down
4 changes: 2 additions & 2 deletions types/mms.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { datetime, msisdn } from 'general';
import { Recipients } from 'messages';
import { datetime, msisdn } from './general';
import { Recipients } from './messages';

export interface MmsObject {
/** A unique ID which is created on the MessageBird platform and is returned upon creation of the object. */
Expand Down

0 comments on commit eeb7831

Please sign in to comment.