-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use ESM import file extension syntax
- Loading branch information
Showing
110 changed files
with
226 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import { AccountID } from "../ID"; | ||
import APIInterface from "./APIInterface"; | ||
import { AccountID } from "../ID.js"; | ||
import APIInterface from "./APIInterface.js"; | ||
import { randomBytes } from "crypto"; | ||
import type { Logger } from "winston"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,23 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import AbstractAPI, { AbstractAPIParams } from "../../API/AbstractAPI"; | ||
import EndpointType from "../../API/EndpointType"; | ||
import GraphRequest, { GraphRequestCreateParams } from "../../GraphRequest"; | ||
import CloudOutgoingMessageContact from "../../Message/Contact/MessageContact/CloudOutgoingMessageContact"; | ||
import CloudOutgoingMessageInteractive from "../../Message/Interactive/MessageInteractive/Outgoing/CloudOutgoingMessageInteractive"; | ||
import CloudOutgoingMessageLocation from "../../Message/Location/MessageLocation/Outgoing/CloudOutgoingMessageLocation"; | ||
import CloudOutgoingMessageMedia from "../../Message/MessageMedia/CloudOutgoingMessageMedia"; | ||
import OutgoingMessageType from "../../Message/MessageType/OutgoingMessageType"; | ||
import AbstractAPI, { AbstractAPIParams } from "../../API/AbstractAPI.js"; | ||
import EndpointType from "../../API/EndpointType.js"; | ||
import GraphRequest, { | ||
GraphRequestCreateParams, | ||
} from "../../GraphRequest/index.js"; | ||
import CloudOutgoingMessageContact from "../../Message/Contact/MessageContact/CloudOutgoingMessageContact.js"; | ||
import CloudOutgoingMessageInteractive from "../../Message/Interactive/MessageInteractive/Outgoing/CloudOutgoingMessageInteractive.js"; | ||
import CloudOutgoingMessageLocation from "../../Message/Location/MessageLocation/Outgoing/CloudOutgoingMessageLocation.js"; | ||
import CloudOutgoingMessageMedia from "../../Message/MessageMedia/CloudOutgoingMessageMedia.js"; | ||
import OutgoingMessageType from "../../Message/MessageType/OutgoingMessageType.js"; | ||
import CloudOutgoingMessage, { | ||
CloudOutgoingMessageResponse, | ||
} from "../../Message/OutgoingMessage/CloudOutgoingMessage"; | ||
import CloudOutgoingMessageStatus from "../../Message/Status/MessageStatus/Outgoing/CloudOutgoingMessageStatus"; | ||
import CloudOutgoingStatusMessage from "../../Message/Status/StatusMessage/CloudOutgoingStatusMessage"; | ||
import CloudOutgoingMessageTemplate from "../../Message/Template/MessageTemplate/Outgoing/CloudOutgoingMessageTemplate"; | ||
import CloudOutgoingMessageText from "../../Message/Text/MessageText/Outgoing/CloudOutgoingMessageText"; | ||
} from "../../Message/OutgoingMessage/CloudOutgoingMessage.js"; | ||
import CloudOutgoingMessageStatus from "../../Message/Status/MessageStatus/Outgoing/CloudOutgoingMessageStatus.js"; | ||
import CloudOutgoingStatusMessage from "../../Message/Status/StatusMessage/CloudOutgoingStatusMessage.js"; | ||
import CloudOutgoingMessageTemplate from "../../Message/Template/MessageTemplate/Outgoing/CloudOutgoingMessageTemplate.js"; | ||
import CloudOutgoingMessageText from "../../Message/Text/MessageText/Outgoing/CloudOutgoingMessageText.js"; | ||
|
||
type CreateMessagePayload = | ||
| CloudOutgoingMessageMedia | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import AbstractAPI from "../../API/AbstractAPI"; | ||
import { EventNotificationType } from "../../EventNotification"; | ||
import CloudAPIWebhookError from "./CloudWebhookAPIError"; | ||
import AbstractAPI from "../../API/AbstractAPI.js"; | ||
import { EventNotificationType } from "../../EventNotification/index.js"; | ||
import CloudAPIWebhookError from "./CloudWebhookAPIError.js"; | ||
import { createHmac } from "crypto"; | ||
import { IncomingMessage, ServerResponse } from "http"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,12 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import AbstractAPI, { AbstractAPIParams } from "../API/AbstractAPI"; | ||
import CloudAPIInvalidParamError from "./CloudAPIInvalidParamError"; | ||
import AbstractAPI, { AbstractAPIParams } from "../API/AbstractAPI.js"; | ||
import CloudAPIInvalidParamError from "./CloudAPIInvalidParamError.js"; | ||
import CloudAPIMessage, { | ||
CloudAPIMessageParams as BaseCloudAPIMessageParams, | ||
} from "./CloudAPIMessage"; | ||
import CloudAPIWebhook from "./CloudAPIWebhook"; | ||
} from "./CloudAPIMessage/index.js"; | ||
import CloudAPIWebhook from "./CloudAPIWebhook/index.js"; | ||
|
||
export interface WhatsAppAPIParams extends AbstractAPIParams {} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import Error, { ErrorMessage } from "."; | ||
import Error, { ErrorMessage } from "./index.js"; | ||
|
||
export default interface EventNotificationError extends Error { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import Error, { ErrorMessage } from "."; | ||
import Error, { ErrorMessage } from "./index.js"; | ||
|
||
export default interface IncomingMessageError extends Error { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import Error from "."; | ||
import Error from "./index.js"; | ||
|
||
export default interface OutgoingMessageError extends Error { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { AccountID } from "../ID"; | ||
import { AccountID } from "../ID.js"; | ||
|
||
/** | ||
* WhatsApp NodeJS SDK. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import { WhatsAppPhoneNumberID } from "../ID"; | ||
import { WhatsAppPhoneNumberID } from "../ID.js"; | ||
|
||
export default interface EventNotificationMetadata { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import { AccountID, MessageID } from "../ID"; | ||
import { AccountID, MessageID } from "../ID.js"; | ||
|
||
export enum EventNotificationStatusReason { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,17 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import EventNotificationError from "../Error/EventNotificationError"; | ||
import { AccountID } from "../ID"; | ||
import CloudIncomingAudioMessage from "../Message/Audio/AudioMessage/CloudIncomingAudioMessage"; | ||
import CloudIncomingDocumentMessage from "../Message/Document/DocumentMessage/CloudIncomingDocumentMessage"; | ||
import CloudIncomingImageMessage from "../Message/Image/ImageMessage/CloudIncomingImageMessage"; | ||
import CloudIncomingStickerMessage from "../Message/Sticker/StickerMessage/CloudIncomingStickerMessage"; | ||
import CloudIncomingTextMessage from "../Message/Text/TextMessage/CloudIncomingTextMessage"; | ||
import CloudIncomingVideoMessage from "../Message/Video/VideoMessage/CloudIncomingVideoMessage"; | ||
import EventNotificationContact from "./EventNotificationContact"; | ||
import EventNotificationMetadata from "./EventNotificationMetadata"; | ||
import EventNotificationStatus from "./EventNotificationStatus"; | ||
import EventNotificationError from "../Error/EventNotificationError.js"; | ||
import { AccountID } from "../ID.js"; | ||
import CloudIncomingAudioMessage from "../Message/Audio/AudioMessage/CloudIncomingAudioMessage.js"; | ||
import CloudIncomingDocumentMessage from "../Message/Document/DocumentMessage/CloudIncomingDocumentMessage.js"; | ||
import CloudIncomingImageMessage from "../Message/Image/ImageMessage/CloudIncomingImageMessage.js"; | ||
import CloudIncomingStickerMessage from "../Message/Sticker/StickerMessage/CloudIncomingStickerMessage.js"; | ||
import CloudIncomingTextMessage from "../Message/Text/TextMessage/CloudIncomingTextMessage.js"; | ||
import CloudIncomingVideoMessage from "../Message/Video/VideoMessage/CloudIncomingVideoMessage.js"; | ||
import EventNotificationContact from "./EventNotificationContact.js"; | ||
import EventNotificationMetadata from "./EventNotificationMetadata.js"; | ||
import EventNotificationStatus from "./EventNotificationStatus.js"; | ||
|
||
export type EventNotificationChangeValueMessage = | ||
| CloudIncomingAudioMessage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import EndpointType from "../API/EndpointType"; | ||
import GraphResponse from "../GraphResponse"; | ||
import EndpointType from "../API/EndpointType.js"; | ||
import GraphResponse from "../GraphResponse/index.js"; | ||
|
||
export interface GraphRequestCreateParams extends RequestInit { | ||
endpoint?: EndpointType; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage"; | ||
import IncomingMessageType from "../../MessageType/IncomingMessageType"; | ||
import CloudIncomingMessageAudio from "../MessageAudio/CloudIncomingMessageAudio"; | ||
import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage.js"; | ||
import IncomingMessageType from "../../MessageType/IncomingMessageType.js"; | ||
import CloudIncomingMessageAudio from "../MessageAudio/CloudIncomingMessageAudio.js"; | ||
|
||
type CloudIncomingAudioMessage = | ||
CloudIncomingMessage<IncomingMessageType.Audio> & { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; | ||
import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; | ||
import CloudOutgoingMessageAudio from "../MessageAudio/CloudOutgoingMessageAudio"; | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; | ||
import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; | ||
import CloudOutgoingMessageAudio from "../MessageAudio/CloudOutgoingMessageAudio.js"; | ||
|
||
type CloudOutgoingAudioMessage = | ||
CloudOutgoingMessage<OutgoingMessageType.Audio> & { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; | ||
import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage"; | ||
import HostedOutgoingMessageAudio from "../MessageAudio/HostedOutgoingMessageAudio"; | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; | ||
import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage.js"; | ||
import HostedOutgoingMessageAudio from "../MessageAudio/HostedOutgoingMessageAudio.js"; | ||
|
||
type HostedOutgoingAudioMessage = | ||
HostedOutgoingMessage<OutgoingMessageType.Audio> & { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import CloudIncomingMessageMedia from "../../MessageMedia/CloudIncomingMessageMedia"; | ||
import IncomingMessageAudio from "./IncomingMessageAudio"; | ||
import CloudIncomingMessageMedia from "../../MessageMedia/CloudIncomingMessageMedia.js"; | ||
import IncomingMessageAudio from "./IncomingMessageAudio.js"; | ||
|
||
export default interface CloudIncomingMessageAudio | ||
extends CloudIncomingMessageMedia, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import CloudOutgoingMessageMedia from "../../MessageMedia/CloudOutgoingMessageMedia"; | ||
import CloudOutgoingMessageMedia from "../../MessageMedia/CloudOutgoingMessageMedia.js"; | ||
|
||
export default interface CloudOutgoingMessageAudio | ||
extends CloudOutgoingMessageMedia {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import HostedIncomingMessageMedia from "../../MessageMedia/HostedIncomingMessageMedia"; | ||
import IncomingMessageAudio from "./IncomingMessageAudio"; | ||
import HostedIncomingMessageMedia from "../../MessageMedia/HostedIncomingMessageMedia.js"; | ||
import IncomingMessageAudio from "./IncomingMessageAudio.js"; | ||
|
||
export default interface HostedIncomingMessageAudio | ||
extends HostedIncomingMessageMedia, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import HostedOutgoingMessageMedia from "../../MessageMedia/HostedOutgoingMessageMedia"; | ||
import HostedOutgoingMessageMedia from "../../MessageMedia/HostedOutgoingMessageMedia.js"; | ||
|
||
export default interface HostedOutgoingMessageAudio | ||
extends HostedOutgoingMessageMedia {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; | ||
import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; | ||
import CloudOutgoingMessageContact from "../MessageContact/CloudOutgoingMessageContact"; | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; | ||
import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; | ||
import CloudOutgoingMessageContact from "../MessageContact/CloudOutgoingMessageContact.js"; | ||
|
||
type CloudOutgoingContactMessage = | ||
CloudOutgoingMessage<OutgoingMessageType.Contacts> & { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; | ||
import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage"; | ||
import HostedOutgoingMessageContact from "../MessageContact/HostedOutgoingMessageContact"; | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; | ||
import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage.js"; | ||
import HostedOutgoingMessageContact from "../MessageContact/HostedOutgoingMessageContact.js"; | ||
|
||
type HostedOutgoingContactMessage = | ||
HostedOutgoingMessage<OutgoingMessageType.Contacts> & { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import OutgoingMessageContact from "./OutgoingMessageContact"; | ||
import OutgoingMessageContact from "./OutgoingMessageContact.js"; | ||
|
||
export default interface CloudOutgoingMessageContact | ||
extends OutgoingMessageContact {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import OutgoingMessageContact from "./OutgoingMessageContact"; | ||
import OutgoingMessageContact from "./OutgoingMessageContact.js"; | ||
|
||
export default interface HostedOutgoingMessageContact | ||
extends OutgoingMessageContact {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import MessageContact from "."; | ||
import MessageContact from "./index.js"; | ||
|
||
export default interface OutgoingMessageContact extends MessageContact {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import { PhoneNumber, AccountID } from "../../../ID"; | ||
import { PhoneNumber, AccountID } from "../../../ID.js"; | ||
|
||
type MessageContactDetailType = | ||
| "HOME" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage"; | ||
import IncomingMessageType from "../../MessageType/IncomingMessageType"; | ||
import CloudIncomingMessageDocument from "../MessageDocument/Incoming/CloudIncomingMessageDocument"; | ||
import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage.js"; | ||
import IncomingMessageType from "../../MessageType/IncomingMessageType.js"; | ||
import CloudIncomingMessageDocument from "../MessageDocument/Incoming/CloudIncomingMessageDocument.js"; | ||
|
||
type CloudIncomingDocumentMessage = | ||
CloudIncomingMessage<IncomingMessageType.Document> & { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; | ||
import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; | ||
import CloudOutgoingMessageDocument from "../MessageDocument/Outgoing/CloudOutgoingMessageDocument"; | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; | ||
import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; | ||
import CloudOutgoingMessageDocument from "../MessageDocument/Outgoing/CloudOutgoingMessageDocument.js"; | ||
|
||
type CloudOutgoingDocumentMessage = | ||
CloudOutgoingMessage<OutgoingMessageType.Document> & { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; | ||
import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage"; | ||
import HostedOutgoingMessageDocument from "../MessageDocument/Outgoing/HostedOutgoingMessageDocument"; | ||
import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; | ||
import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage.js"; | ||
import HostedOutgoingMessageDocument from "../MessageDocument/Outgoing/HostedOutgoingMessageDocument.js"; | ||
|
||
type HostedOutgoingDocumentMessage = | ||
HostedOutgoingMessage<OutgoingMessageType.Document> & { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import CloudIncomingMessageMedia from "../../../MessageMedia/CloudIncomingMessageMedia"; | ||
import IncomingMessageDocument from "../Incoming/IncomingMessageDocument"; | ||
import CloudIncomingMessageMedia from "../../../MessageMedia/CloudIncomingMessageMedia.js"; | ||
import IncomingMessageDocument from "../Incoming/IncomingMessageDocument.js"; | ||
|
||
export default interface CloudIncomingMessageDocument | ||
extends CloudIncomingMessageMedia, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import HostedIncomingMessageMedia from "../../../MessageMedia/HostedIncomingMessageMedia"; | ||
import IncomingMessageDocument from "./IncomingMessageDocument"; | ||
import HostedIncomingMessageMedia from "../../../MessageMedia/HostedIncomingMessageMedia.js"; | ||
import IncomingMessageDocument from "./IncomingMessageDocument.js"; | ||
|
||
export default interface HostedInterfaceMessageDocument | ||
extends HostedIncomingMessageMedia, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import MessageDocument from ".."; | ||
import MessageDocument from "../index.js"; | ||
|
||
export default interface IncomingMessageDocument extends MessageDocument { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,8 @@ | |
* @author Dom Webber <[email protected]> | ||
* @see https://greatdetail.com | ||
*/ | ||
import CloudOutgoingMessageMedia from "../../../MessageMedia/CloudOutgoingMessageMedia"; | ||
import OutgoingMessageDocument from "./OutgoingMessageDocument"; | ||
import CloudOutgoingMessageMedia from "../../../MessageMedia/CloudOutgoingMessageMedia.js"; | ||
import OutgoingMessageDocument from "./OutgoingMessageDocument.js"; | ||
|
||
export default interface CloudOutgoingMessageDocument | ||
extends CloudOutgoingMessageMedia, | ||
|
Oops, something went wrong.