From dc7cf17acea48fa22b1b71976c40f461773db040 Mon Sep 17 00:00:00 2001 From: Dom Webber Date: Wed, 3 Jan 2024 12:10:55 +0000 Subject: [PATCH] refactor: use ESM import file extension syntax --- src/API/AbstractAPI.ts | 4 +-- src/CloudAPI/CloudAPIMessage/index.ts | 28 ++++++++++--------- src/CloudAPI/CloudAPIWebhook/index.ts | 6 ++-- src/CloudAPI/index.ts | 8 +++--- src/Error/EventNotificationError.ts | 2 +- src/Error/IncomingMessageError.ts | 2 +- src/Error/OutgoingMessageError.ts | 2 +- .../EventNotificationContact.ts | 2 +- .../EventNotificationMetadata.ts | 2 +- .../EventNotificationStatus.ts | 2 +- src/EventNotification/index.ts | 22 +++++++-------- src/GraphRequest/index.ts | 4 +-- .../AudioMessage/CloudIncomingAudioMessage.ts | 6 ++-- .../AudioMessage/CloudOutgoingAudioMessage.ts | 6 ++-- .../HostedOutgoingAudioMessage.ts | 6 ++-- .../MessageAudio/CloudIncomingMessageAudio.ts | 4 +-- .../MessageAudio/CloudOutgoingMessageAudio.ts | 2 +- .../HostedIncomingMessageAudio.ts | 4 +-- .../HostedOutgoingMessageAudio.ts | 2 +- .../CloudOutgoingContactMessage.ts | 6 ++-- .../HostedOutgoingContactMessage.ts | 6 ++-- .../CloudOutgoingMessageContact.ts | 2 +- .../HostedOutgoingMessageContact.ts | 2 +- .../MessageContact/OutgoingMessageContact.ts | 2 +- src/Message/Contact/MessageContact/index.ts | 2 +- .../CloudIncomingDocumentMessage.ts | 6 ++-- .../CloudOutgoingDocumentMessage.ts | 6 ++-- .../HostedOutgoingDocumentMessage.ts | 6 ++-- .../Incoming/CloudIncomingMessageDocument.ts | 4 +-- .../Incoming/HostedIncomingMessageDocument.ts | 4 +-- .../Incoming/IncomingMessageDocument.ts | 2 +- .../Outgoing/CloudOutgoingMessageDocument.ts | 4 +-- .../Outgoing/HostedOutgoingMessageDocument.ts | 4 +-- .../Outgoing/OutgoingMessageDocument.ts | 2 +- .../ImageMessage/CloudIncomingImageMessage.ts | 6 ++-- .../ImageMessage/CloudOutgoingImageMessage.ts | 6 ++-- .../HostedOutgoingImageMessage.ts | 6 ++-- .../Incoming/CloudIncomingMessageImage.ts | 4 +-- .../Incoming/HostedIncomingMessageImage.ts | 4 +-- .../Incoming/IncomingMessageImage.ts | 2 +- .../Outgoing/CloudOutgoingMessageImage.ts | 4 +-- .../Outgoing/HostedOutgoingMessageImage.ts | 4 +-- .../Outgoing/OutgoingMessageImage.ts | 2 +- .../IncomingMessage/CloudIncomingMessage.ts | 4 +-- .../IncomingMessage/HostedIncomingMessage.ts | 4 +-- src/Message/IncomingMessage/index.ts | 16 +++++------ .../CloudOutgoingInteractiveMessage.ts | 6 ++-- .../HostedOutgoingInteractiveMessage.ts | 6 ++-- .../CloudOutgoingMessageInteractive.ts | 2 +- .../HostedOutgoingMessageInteractive.ts | 2 +- .../Outgoing/OutgoingMessageInteractive.ts | 2 +- .../CloudOutgoingLocationMessage.ts | 6 ++-- .../HostedOutgoingLocationMessage.ts | 6 ++-- .../Outgoing/CloudOutgoingMessageLocation.ts | 2 +- .../Outgoing/HostedOutgoingMessageLocation.ts | 2 +- .../Outgoing/OutgoingMessageLocation.ts | 2 +- .../CloudIncomingMessageContext.ts | 2 +- .../HostedIncomingMessageContext.ts | 2 +- .../MessageContext/IncomingMessageContext.ts | 2 +- .../CloudIncomingMessageIdentity.ts | 2 +- .../HostedIncomingMessageIdentity.ts | 2 +- .../MessageMedia/CloudIncomingMessageMedia.ts | 2 +- .../MessageMedia/CloudOutgoingMessageMedia.ts | 2 +- .../HostedIncomingMessageMedia.ts | 2 +- .../HostedOutgoingMessageMedia.ts | 2 +- .../MessageMedia/IncomingMessageMedia.ts | 2 +- .../MessageMedia/OutgoingMessageMedia.ts | 2 +- .../CloudIncomingMessageReferral.ts | 2 +- .../HostedIncomingMessageReferral.ts | 2 +- .../CloudIncomingMessageSystem.ts | 2 +- .../HostedIncomingMessageSystem.ts | 2 +- .../MessageSystem/IncomingMessageSystem.ts | 4 +-- .../OutgoingMessage/CloudOutgoingMessage.ts | 6 ++-- .../OutgoingMessage/HostedOutgoingMessage.ts | 6 ++-- src/Message/OutgoingMessage/index.ts | 6 ++-- .../Outgoing/CloudOutgoingMessageStatus.ts | 4 +-- .../Outgoing/HostedOutgoingMessageStatus.ts | 2 +- .../Outgoing/OutgoingMessageStatus.ts | 2 +- .../CloudOutgoingStatusMessage.ts | 2 +- .../HostedOutgoingStatusMessage.ts | 2 +- .../Incoming/CloudIncomingMessageSticker.ts | 4 +-- .../Incoming/HostedIncomingMessageSticker.ts | 4 +-- .../Incoming/IncomingMessageSticker.ts | 2 +- .../Outgoing/CloudOutgoingMessageSticker.ts | 4 +-- .../Outgoing/HostedOutgoingMessageSticker.ts | 4 +-- .../Outgoing/OutgoingMessageSticker.ts | 2 +- .../CloudIncomingStickerMessage.ts | 6 ++-- .../CloudOutgoingStickerMessage.ts | 6 ++-- .../HostedOutgoingStickerMessage.ts | 6 ++-- .../Outgoing/CloudOutgoingMessageTemplate.ts | 2 +- .../Outgoing/HostedOutgoingMessageTemplate.ts | 2 +- .../Outgoing/OutgoingMessageTemplate.ts | 4 +-- .../OutgoingMessageTemplateComponent.ts | 2 +- .../CloudOutgoingTemplateMessage.ts | 6 ++-- .../HostedOutgoingTemplateMessage.ts | 6 ++-- .../Incoming/CloudIncomingMessageText.ts | 2 +- .../Incoming/HostedIncomingMessageText.ts | 2 +- .../Incoming/IncomingMessageText.ts | 2 +- .../Outgoing/CloudOutgoingMessageText.ts | 2 +- .../Outgoing/HostedOutgoingMessageText.ts | 2 +- .../Outgoing/OutgoingMessageText.ts | 2 +- .../TextMessage/CloudIncomingTextMessage.ts | 6 ++-- .../TextMessage/CloudOutgoingTextMessage.ts | 6 ++-- .../TextMessage/HostedOutgoingTextMessage.ts | 6 ++-- .../MessageVideo/CloudIncomingMessageVideo.ts | 4 +-- .../HostedIncomingMessageVideo.ts | 4 +-- .../MessageVideo/IncomingMessageVideo.ts | 2 +- .../VideoMessage/CloudIncomingVideoMessage.ts | 6 ++-- src/index.ts | 6 ++-- tsconfig.json | 3 +- 110 files changed, 226 insertions(+), 223 deletions(-) diff --git a/src/API/AbstractAPI.ts b/src/API/AbstractAPI.ts index 7fb0f49..3faeb98 100644 --- a/src/API/AbstractAPI.ts +++ b/src/API/AbstractAPI.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @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"; diff --git a/src/CloudAPI/CloudAPIMessage/index.ts b/src/CloudAPI/CloudAPIMessage/index.ts index 40b81ae..4d5e44a 100644 --- a/src/CloudAPI/CloudAPIMessage/index.ts +++ b/src/CloudAPI/CloudAPIMessage/index.ts @@ -6,21 +6,23 @@ * @author Dom Webber * @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 diff --git a/src/CloudAPI/CloudAPIWebhook/index.ts b/src/CloudAPI/CloudAPIWebhook/index.ts index e307cbf..4293ad5 100644 --- a/src/CloudAPI/CloudAPIWebhook/index.ts +++ b/src/CloudAPI/CloudAPIWebhook/index.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @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"; diff --git a/src/CloudAPI/index.ts b/src/CloudAPI/index.ts index daf69d6..3601587 100644 --- a/src/CloudAPI/index.ts +++ b/src/CloudAPI/index.ts @@ -6,12 +6,12 @@ * @author Dom Webber * @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 {} diff --git a/src/Error/EventNotificationError.ts b/src/Error/EventNotificationError.ts index 7537267..d58e955 100644 --- a/src/Error/EventNotificationError.ts +++ b/src/Error/EventNotificationError.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import Error, { ErrorMessage } from "."; +import Error, { ErrorMessage } from "./index.js"; export default interface EventNotificationError extends Error { /** diff --git a/src/Error/IncomingMessageError.ts b/src/Error/IncomingMessageError.ts index 538312f..cb07626 100644 --- a/src/Error/IncomingMessageError.ts +++ b/src/Error/IncomingMessageError.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import Error, { ErrorMessage } from "."; +import Error, { ErrorMessage } from "./index.js"; export default interface IncomingMessageError extends Error { /** diff --git a/src/Error/OutgoingMessageError.ts b/src/Error/OutgoingMessageError.ts index e404754..a03558b 100644 --- a/src/Error/OutgoingMessageError.ts +++ b/src/Error/OutgoingMessageError.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import Error from "."; +import Error from "./index.js"; export default interface OutgoingMessageError extends Error { /** diff --git a/src/EventNotification/EventNotificationContact.ts b/src/EventNotification/EventNotificationContact.ts index f5c0584..c359f9d 100644 --- a/src/EventNotification/EventNotificationContact.ts +++ b/src/EventNotification/EventNotificationContact.ts @@ -1,4 +1,4 @@ -import { AccountID } from "../ID"; +import { AccountID } from "../ID.js"; /** * WhatsApp NodeJS SDK. diff --git a/src/EventNotification/EventNotificationMetadata.ts b/src/EventNotification/EventNotificationMetadata.ts index aa0dd16..8fd89bb 100644 --- a/src/EventNotification/EventNotificationMetadata.ts +++ b/src/EventNotification/EventNotificationMetadata.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import { WhatsAppPhoneNumberID } from "../ID"; +import { WhatsAppPhoneNumberID } from "../ID.js"; export default interface EventNotificationMetadata { /** diff --git a/src/EventNotification/EventNotificationStatus.ts b/src/EventNotification/EventNotificationStatus.ts index c7a247f..57911d4 100644 --- a/src/EventNotification/EventNotificationStatus.ts +++ b/src/EventNotification/EventNotificationStatus.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import { AccountID, MessageID } from "../ID"; +import { AccountID, MessageID } from "../ID.js"; export enum EventNotificationStatusReason { /** diff --git a/src/EventNotification/index.ts b/src/EventNotification/index.ts index 42b8838..6429611 100644 --- a/src/EventNotification/index.ts +++ b/src/EventNotification/index.ts @@ -6,17 +6,17 @@ * @author Dom Webber * @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 diff --git a/src/GraphRequest/index.ts b/src/GraphRequest/index.ts index 9cee141..b88a296 100644 --- a/src/GraphRequest/index.ts +++ b/src/GraphRequest/index.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @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; diff --git a/src/Message/Audio/AudioMessage/CloudIncomingAudioMessage.ts b/src/Message/Audio/AudioMessage/CloudIncomingAudioMessage.ts index 7cbe8e8..2e4691b 100644 --- a/src/Message/Audio/AudioMessage/CloudIncomingAudioMessage.ts +++ b/src/Message/Audio/AudioMessage/CloudIncomingAudioMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @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 & { diff --git a/src/Message/Audio/AudioMessage/CloudOutgoingAudioMessage.ts b/src/Message/Audio/AudioMessage/CloudOutgoingAudioMessage.ts index ee17530..4316e3b 100644 --- a/src/Message/Audio/AudioMessage/CloudOutgoingAudioMessage.ts +++ b/src/Message/Audio/AudioMessage/CloudOutgoingAudioMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @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 & { diff --git a/src/Message/Audio/AudioMessage/HostedOutgoingAudioMessage.ts b/src/Message/Audio/AudioMessage/HostedOutgoingAudioMessage.ts index 3911691..fc8ec48 100644 --- a/src/Message/Audio/AudioMessage/HostedOutgoingAudioMessage.ts +++ b/src/Message/Audio/AudioMessage/HostedOutgoingAudioMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @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 & { diff --git a/src/Message/Audio/MessageAudio/CloudIncomingMessageAudio.ts b/src/Message/Audio/MessageAudio/CloudIncomingMessageAudio.ts index a4ed4f3..866a28f 100644 --- a/src/Message/Audio/MessageAudio/CloudIncomingMessageAudio.ts +++ b/src/Message/Audio/MessageAudio/CloudIncomingMessageAudio.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @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, diff --git a/src/Message/Audio/MessageAudio/CloudOutgoingMessageAudio.ts b/src/Message/Audio/MessageAudio/CloudOutgoingMessageAudio.ts index 22012a6..f55ca72 100644 --- a/src/Message/Audio/MessageAudio/CloudOutgoingMessageAudio.ts +++ b/src/Message/Audio/MessageAudio/CloudOutgoingMessageAudio.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudOutgoingMessageMedia from "../../MessageMedia/CloudOutgoingMessageMedia"; +import CloudOutgoingMessageMedia from "../../MessageMedia/CloudOutgoingMessageMedia.js"; export default interface CloudOutgoingMessageAudio extends CloudOutgoingMessageMedia {} diff --git a/src/Message/Audio/MessageAudio/HostedIncomingMessageAudio.ts b/src/Message/Audio/MessageAudio/HostedIncomingMessageAudio.ts index 1831117..f9f28ea 100644 --- a/src/Message/Audio/MessageAudio/HostedIncomingMessageAudio.ts +++ b/src/Message/Audio/MessageAudio/HostedIncomingMessageAudio.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @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, diff --git a/src/Message/Audio/MessageAudio/HostedOutgoingMessageAudio.ts b/src/Message/Audio/MessageAudio/HostedOutgoingMessageAudio.ts index 04bb871..18d7589 100644 --- a/src/Message/Audio/MessageAudio/HostedOutgoingMessageAudio.ts +++ b/src/Message/Audio/MessageAudio/HostedOutgoingMessageAudio.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import HostedOutgoingMessageMedia from "../../MessageMedia/HostedOutgoingMessageMedia"; +import HostedOutgoingMessageMedia from "../../MessageMedia/HostedOutgoingMessageMedia.js"; export default interface HostedOutgoingMessageAudio extends HostedOutgoingMessageMedia {} diff --git a/src/Message/Contact/ContactMessage/CloudOutgoingContactMessage.ts b/src/Message/Contact/ContactMessage/CloudOutgoingContactMessage.ts index ee179db..1b91500 100644 --- a/src/Message/Contact/ContactMessage/CloudOutgoingContactMessage.ts +++ b/src/Message/Contact/ContactMessage/CloudOutgoingContactMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @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 & { diff --git a/src/Message/Contact/ContactMessage/HostedOutgoingContactMessage.ts b/src/Message/Contact/ContactMessage/HostedOutgoingContactMessage.ts index 1cacd08..1635ed2 100644 --- a/src/Message/Contact/ContactMessage/HostedOutgoingContactMessage.ts +++ b/src/Message/Contact/ContactMessage/HostedOutgoingContactMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @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 & { diff --git a/src/Message/Contact/MessageContact/CloudOutgoingMessageContact.ts b/src/Message/Contact/MessageContact/CloudOutgoingMessageContact.ts index 4f7582e..b553d14 100644 --- a/src/Message/Contact/MessageContact/CloudOutgoingMessageContact.ts +++ b/src/Message/Contact/MessageContact/CloudOutgoingMessageContact.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageContact from "./OutgoingMessageContact"; +import OutgoingMessageContact from "./OutgoingMessageContact.js"; export default interface CloudOutgoingMessageContact extends OutgoingMessageContact {} diff --git a/src/Message/Contact/MessageContact/HostedOutgoingMessageContact.ts b/src/Message/Contact/MessageContact/HostedOutgoingMessageContact.ts index 0f59bd6..f145269 100644 --- a/src/Message/Contact/MessageContact/HostedOutgoingMessageContact.ts +++ b/src/Message/Contact/MessageContact/HostedOutgoingMessageContact.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageContact from "./OutgoingMessageContact"; +import OutgoingMessageContact from "./OutgoingMessageContact.js"; export default interface HostedOutgoingMessageContact extends OutgoingMessageContact {} diff --git a/src/Message/Contact/MessageContact/OutgoingMessageContact.ts b/src/Message/Contact/MessageContact/OutgoingMessageContact.ts index 4dbee24..799a9e1 100644 --- a/src/Message/Contact/MessageContact/OutgoingMessageContact.ts +++ b/src/Message/Contact/MessageContact/OutgoingMessageContact.ts @@ -6,6 +6,6 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageContact from "."; +import MessageContact from "./index.js"; export default interface OutgoingMessageContact extends MessageContact {} diff --git a/src/Message/Contact/MessageContact/index.ts b/src/Message/Contact/MessageContact/index.ts index ff1c8d3..866aceb 100644 --- a/src/Message/Contact/MessageContact/index.ts +++ b/src/Message/Contact/MessageContact/index.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import { PhoneNumber, AccountID } from "../../../ID"; +import { PhoneNumber, AccountID } from "../../../ID.js"; type MessageContactDetailType = | "HOME" diff --git a/src/Message/Document/DocumentMessage/CloudIncomingDocumentMessage.ts b/src/Message/Document/DocumentMessage/CloudIncomingDocumentMessage.ts index 7364708..3623ae2 100644 --- a/src/Message/Document/DocumentMessage/CloudIncomingDocumentMessage.ts +++ b/src/Message/Document/DocumentMessage/CloudIncomingDocumentMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @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 & { diff --git a/src/Message/Document/DocumentMessage/CloudOutgoingDocumentMessage.ts b/src/Message/Document/DocumentMessage/CloudOutgoingDocumentMessage.ts index 405bdfc..e5ea43c 100644 --- a/src/Message/Document/DocumentMessage/CloudOutgoingDocumentMessage.ts +++ b/src/Message/Document/DocumentMessage/CloudOutgoingDocumentMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @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 & { diff --git a/src/Message/Document/DocumentMessage/HostedOutgoingDocumentMessage.ts b/src/Message/Document/DocumentMessage/HostedOutgoingDocumentMessage.ts index 99664bc..c3657d9 100644 --- a/src/Message/Document/DocumentMessage/HostedOutgoingDocumentMessage.ts +++ b/src/Message/Document/DocumentMessage/HostedOutgoingDocumentMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @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 & { diff --git a/src/Message/Document/MessageDocument/Incoming/CloudIncomingMessageDocument.ts b/src/Message/Document/MessageDocument/Incoming/CloudIncomingMessageDocument.ts index 9045a82..9b3f5f4 100644 --- a/src/Message/Document/MessageDocument/Incoming/CloudIncomingMessageDocument.ts +++ b/src/Message/Document/MessageDocument/Incoming/CloudIncomingMessageDocument.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @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, diff --git a/src/Message/Document/MessageDocument/Incoming/HostedIncomingMessageDocument.ts b/src/Message/Document/MessageDocument/Incoming/HostedIncomingMessageDocument.ts index 7c8b5ad..bacd686 100644 --- a/src/Message/Document/MessageDocument/Incoming/HostedIncomingMessageDocument.ts +++ b/src/Message/Document/MessageDocument/Incoming/HostedIncomingMessageDocument.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @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, diff --git a/src/Message/Document/MessageDocument/Incoming/IncomingMessageDocument.ts b/src/Message/Document/MessageDocument/Incoming/IncomingMessageDocument.ts index e7c6f9d..426b04d 100644 --- a/src/Message/Document/MessageDocument/Incoming/IncomingMessageDocument.ts +++ b/src/Message/Document/MessageDocument/Incoming/IncomingMessageDocument.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageDocument from ".."; +import MessageDocument from "../index.js"; export default interface IncomingMessageDocument extends MessageDocument { /** diff --git a/src/Message/Document/MessageDocument/Outgoing/CloudOutgoingMessageDocument.ts b/src/Message/Document/MessageDocument/Outgoing/CloudOutgoingMessageDocument.ts index 2069002..3792ed0 100644 --- a/src/Message/Document/MessageDocument/Outgoing/CloudOutgoingMessageDocument.ts +++ b/src/Message/Document/MessageDocument/Outgoing/CloudOutgoingMessageDocument.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @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, diff --git a/src/Message/Document/MessageDocument/Outgoing/HostedOutgoingMessageDocument.ts b/src/Message/Document/MessageDocument/Outgoing/HostedOutgoingMessageDocument.ts index e984818..d1ac372 100644 --- a/src/Message/Document/MessageDocument/Outgoing/HostedOutgoingMessageDocument.ts +++ b/src/Message/Document/MessageDocument/Outgoing/HostedOutgoingMessageDocument.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import HostedOutgoingMessageMedia from "../../../MessageMedia/HostedOutgoingMessageMedia"; -import OutgoingMessageDocument from "./OutgoingMessageDocument"; +import HostedOutgoingMessageMedia from "../../../MessageMedia/HostedOutgoingMessageMedia.js"; +import OutgoingMessageDocument from "./OutgoingMessageDocument.js"; export default interface HostedOutgoingMessageDocument extends HostedOutgoingMessageMedia, diff --git a/src/Message/Document/MessageDocument/Outgoing/OutgoingMessageDocument.ts b/src/Message/Document/MessageDocument/Outgoing/OutgoingMessageDocument.ts index 49c5502..ef897ae 100644 --- a/src/Message/Document/MessageDocument/Outgoing/OutgoingMessageDocument.ts +++ b/src/Message/Document/MessageDocument/Outgoing/OutgoingMessageDocument.ts @@ -6,6 +6,6 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageDocument from ".."; +import MessageDocument from "../index.js"; export default interface OutgoingMessageDocument extends MessageDocument {} diff --git a/src/Message/Image/ImageMessage/CloudIncomingImageMessage.ts b/src/Message/Image/ImageMessage/CloudIncomingImageMessage.ts index e15aa54..7fef4de 100644 --- a/src/Message/Image/ImageMessage/CloudIncomingImageMessage.ts +++ b/src/Message/Image/ImageMessage/CloudIncomingImageMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage"; -import IncomingMessageType from "../../MessageType/IncomingMessageType"; -import CloudIncomingMessageImage from "../MessageImage/Incoming/CloudIncomingMessageImage"; +import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage.js"; +import IncomingMessageType from "../../MessageType/IncomingMessageType.js"; +import CloudIncomingMessageImage from "../MessageImage/Incoming/CloudIncomingMessageImage.js"; type CloudIncomingImageMessage = CloudIncomingMessage & { diff --git a/src/Message/Image/ImageMessage/CloudOutgoingImageMessage.ts b/src/Message/Image/ImageMessage/CloudOutgoingImageMessage.ts index dc9861e..55f20e0 100644 --- a/src/Message/Image/ImageMessage/CloudOutgoingImageMessage.ts +++ b/src/Message/Image/ImageMessage/CloudOutgoingImageMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; -import CloudOutgoingMessageImage from "../MessageImage/Outgoing/CloudOutgoingMessageImage"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; +import CloudOutgoingMessageImage from "../MessageImage/Outgoing/CloudOutgoingMessageImage.js"; type CloudOutgoingImageMessage = CloudOutgoingMessage & { diff --git a/src/Message/Image/ImageMessage/HostedOutgoingImageMessage.ts b/src/Message/Image/ImageMessage/HostedOutgoingImageMessage.ts index 8958cab..0caaa89 100644 --- a/src/Message/Image/ImageMessage/HostedOutgoingImageMessage.ts +++ b/src/Message/Image/ImageMessage/HostedOutgoingImageMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage"; -import HostedOutgoingMessageImage from "../MessageImage/Outgoing/HostedOutgoingMessageImage"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage.js"; +import HostedOutgoingMessageImage from "../MessageImage/Outgoing/HostedOutgoingMessageImage.js"; type HostedOutgoingImageMessage = HostedOutgoingMessage & { diff --git a/src/Message/Image/MessageImage/Incoming/CloudIncomingMessageImage.ts b/src/Message/Image/MessageImage/Incoming/CloudIncomingMessageImage.ts index b3d4c77..59e9182 100644 --- a/src/Message/Image/MessageImage/Incoming/CloudIncomingMessageImage.ts +++ b/src/Message/Image/MessageImage/Incoming/CloudIncomingMessageImage.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudIncomingMessageMedia from "../../../MessageMedia/CloudIncomingMessageMedia"; -import IncomingMessageImage from "../Incoming/IncomingMessageImage"; +import CloudIncomingMessageMedia from "../../../MessageMedia/CloudIncomingMessageMedia.js"; +import IncomingMessageImage from "../Incoming/IncomingMessageImage.js"; export default interface CloudIncomingMessageImage extends CloudIncomingMessageMedia, diff --git a/src/Message/Image/MessageImage/Incoming/HostedIncomingMessageImage.ts b/src/Message/Image/MessageImage/Incoming/HostedIncomingMessageImage.ts index 6865a27..31c7dec 100644 --- a/src/Message/Image/MessageImage/Incoming/HostedIncomingMessageImage.ts +++ b/src/Message/Image/MessageImage/Incoming/HostedIncomingMessageImage.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudIncomingMessageMedia from "../../../MessageMedia/CloudIncomingMessageMedia"; -import IncomingMessageImage from "./IncomingMessageImage"; +import CloudIncomingMessageMedia from "../../../MessageMedia/CloudIncomingMessageMedia.js"; +import IncomingMessageImage from "./IncomingMessageImage.js"; export default interface HostedIncomingMessageImage extends CloudIncomingMessageMedia, diff --git a/src/Message/Image/MessageImage/Incoming/IncomingMessageImage.ts b/src/Message/Image/MessageImage/Incoming/IncomingMessageImage.ts index dae0b36..5add044 100644 --- a/src/Message/Image/MessageImage/Incoming/IncomingMessageImage.ts +++ b/src/Message/Image/MessageImage/Incoming/IncomingMessageImage.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageImage from ".."; +import MessageImage from "../index.js"; export default interface IncomingMessageImage extends MessageImage { /** diff --git a/src/Message/Image/MessageImage/Outgoing/CloudOutgoingMessageImage.ts b/src/Message/Image/MessageImage/Outgoing/CloudOutgoingMessageImage.ts index c421dfd..1f3b509 100644 --- a/src/Message/Image/MessageImage/Outgoing/CloudOutgoingMessageImage.ts +++ b/src/Message/Image/MessageImage/Outgoing/CloudOutgoingMessageImage.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudOutgoingMessageMedia from "../../../MessageMedia/CloudOutgoingMessageMedia"; -import OutgoingMessageImage from "./OutgoingMessageImage"; +import CloudOutgoingMessageMedia from "../../../MessageMedia/CloudOutgoingMessageMedia.js"; +import OutgoingMessageImage from "./OutgoingMessageImage.js"; export default interface CloudOutgoingMessageImage extends CloudOutgoingMessageMedia, diff --git a/src/Message/Image/MessageImage/Outgoing/HostedOutgoingMessageImage.ts b/src/Message/Image/MessageImage/Outgoing/HostedOutgoingMessageImage.ts index 43784ea..9d74c58 100644 --- a/src/Message/Image/MessageImage/Outgoing/HostedOutgoingMessageImage.ts +++ b/src/Message/Image/MessageImage/Outgoing/HostedOutgoingMessageImage.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import HostedOutgoingMessageMedia from "../../../MessageMedia/HostedOutgoingMessageMedia"; -import OutgoingMessageImage from "./OutgoingMessageImage"; +import HostedOutgoingMessageMedia from "../../../MessageMedia/HostedOutgoingMessageMedia.js"; +import OutgoingMessageImage from "./OutgoingMessageImage.js"; export default interface HostedOutgoingMessageImage extends HostedOutgoingMessageMedia, diff --git a/src/Message/Image/MessageImage/Outgoing/OutgoingMessageImage.ts b/src/Message/Image/MessageImage/Outgoing/OutgoingMessageImage.ts index 279a5f5..44410f3 100644 --- a/src/Message/Image/MessageImage/Outgoing/OutgoingMessageImage.ts +++ b/src/Message/Image/MessageImage/Outgoing/OutgoingMessageImage.ts @@ -6,6 +6,6 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageImage from ".."; +import MessageImage from "../index.js"; export default interface OutgoingMessageImage extends MessageImage {} diff --git a/src/Message/IncomingMessage/CloudIncomingMessage.ts b/src/Message/IncomingMessage/CloudIncomingMessage.ts index 2325d28..ec8e2c1 100644 --- a/src/Message/IncomingMessage/CloudIncomingMessage.ts +++ b/src/Message/IncomingMessage/CloudIncomingMessage.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessage from "."; -import IncomingMessageType from "../MessageType/IncomingMessageType"; +import IncomingMessageType from "../MessageType/IncomingMessageType.js"; +import IncomingMessage from "./index.js"; export default interface CloudIncomingMessage< MessageType extends IncomingMessageType, diff --git a/src/Message/IncomingMessage/HostedIncomingMessage.ts b/src/Message/IncomingMessage/HostedIncomingMessage.ts index 4047621..7493356 100644 --- a/src/Message/IncomingMessage/HostedIncomingMessage.ts +++ b/src/Message/IncomingMessage/HostedIncomingMessage.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessage from "."; -import IncomingMessageType from "../MessageType/IncomingMessageType"; +import IncomingMessageType from "../MessageType/IncomingMessageType.js"; +import IncomingMessage from "./index.js"; export default interface HostedIncomingMessage< MessageType extends IncomingMessageType, diff --git a/src/Message/IncomingMessage/index.ts b/src/Message/IncomingMessage/index.ts index 9320cfd..e6caf11 100644 --- a/src/Message/IncomingMessage/index.ts +++ b/src/Message/IncomingMessage/index.ts @@ -6,14 +6,14 @@ * @author Dom Webber * @see https://greatdetail.com */ -import Message from ".."; -import IncomingMessageError from "../../Error/IncomingMessageError"; -import { AccountID, MessageID } from "../../ID"; -import CloudIncomingMessageContext from "../MessageContext/CloudIncomingMessageContext"; -import CloudIncomingMessageIdentity from "../MessageIdentity/CloudIncomingMessageIdentity"; -import CloudIncomingMessageReferral from "../MessageReferral/CloudIncomingMessageReferral"; -import CloudIncomingMessageSystem from "../MessageSystem/CloudIncomingMessageSystem"; -import IncomingMessageType from "../MessageType/IncomingMessageType"; +import IncomingMessageError from "../../Error/IncomingMessageError.js"; +import { AccountID, MessageID } from "../../ID.js"; +import CloudIncomingMessageContext from "../MessageContext/CloudIncomingMessageContext.js"; +import CloudIncomingMessageIdentity from "../MessageIdentity/CloudIncomingMessageIdentity.js"; +import CloudIncomingMessageReferral from "../MessageReferral/CloudIncomingMessageReferral.js"; +import CloudIncomingMessageSystem from "../MessageSystem/CloudIncomingMessageSystem.js"; +import IncomingMessageType from "../MessageType/IncomingMessageType.js"; +import Message from "../index.js"; export default interface IncomingMessage< MessageType extends IncomingMessageType, diff --git a/src/Message/Interactive/InteractiveMessage/CloudOutgoingInteractiveMessage.ts b/src/Message/Interactive/InteractiveMessage/CloudOutgoingInteractiveMessage.ts index a3c0e9a..49ed193 100644 --- a/src/Message/Interactive/InteractiveMessage/CloudOutgoingInteractiveMessage.ts +++ b/src/Message/Interactive/InteractiveMessage/CloudOutgoingInteractiveMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; -import CloudOutgoingMessageInteractive from "../MessageInteractive/Outgoing/CloudOutgoingMessageInteractive"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; +import CloudOutgoingMessageInteractive from "../MessageInteractive/Outgoing/CloudOutgoingMessageInteractive.js"; type CloudOutgoingInteractiveMessage = CloudOutgoingMessage & { diff --git a/src/Message/Interactive/InteractiveMessage/HostedOutgoingInteractiveMessage.ts b/src/Message/Interactive/InteractiveMessage/HostedOutgoingInteractiveMessage.ts index 6b183fa..547f4b7 100644 --- a/src/Message/Interactive/InteractiveMessage/HostedOutgoingInteractiveMessage.ts +++ b/src/Message/Interactive/InteractiveMessage/HostedOutgoingInteractiveMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage"; -import HostedOutgoingMessageInteractive from "../MessageInteractive/Outgoing/HostedOutgoingMessageInteractive"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage.js"; +import HostedOutgoingMessageInteractive from "../MessageInteractive/Outgoing/HostedOutgoingMessageInteractive.js"; type HostedOutgoingInteractiveMessage = HostedOutgoingMessage & { diff --git a/src/Message/Interactive/MessageInteractive/Outgoing/CloudOutgoingMessageInteractive.ts b/src/Message/Interactive/MessageInteractive/Outgoing/CloudOutgoingMessageInteractive.ts index 220add9..22458fa 100644 --- a/src/Message/Interactive/MessageInteractive/Outgoing/CloudOutgoingMessageInteractive.ts +++ b/src/Message/Interactive/MessageInteractive/Outgoing/CloudOutgoingMessageInteractive.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageInteractive from "./OutgoingMessageInteractive"; +import OutgoingMessageInteractive from "./OutgoingMessageInteractive.js"; /** * TODO: Implement This Interface. diff --git a/src/Message/Interactive/MessageInteractive/Outgoing/HostedOutgoingMessageInteractive.ts b/src/Message/Interactive/MessageInteractive/Outgoing/HostedOutgoingMessageInteractive.ts index b21a074..a7ad48e 100644 --- a/src/Message/Interactive/MessageInteractive/Outgoing/HostedOutgoingMessageInteractive.ts +++ b/src/Message/Interactive/MessageInteractive/Outgoing/HostedOutgoingMessageInteractive.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageInteractive from "./OutgoingMessageInteractive"; +import OutgoingMessageInteractive from "./OutgoingMessageInteractive.js"; /** * TODO: Implement This Interface. diff --git a/src/Message/Interactive/MessageInteractive/Outgoing/OutgoingMessageInteractive.ts b/src/Message/Interactive/MessageInteractive/Outgoing/OutgoingMessageInteractive.ts index d6f5712..4005f13 100644 --- a/src/Message/Interactive/MessageInteractive/Outgoing/OutgoingMessageInteractive.ts +++ b/src/Message/Interactive/MessageInteractive/Outgoing/OutgoingMessageInteractive.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageInteractive from ".."; +import MessageInteractive from "../index.js"; /** * TODO: Implement This Interface. diff --git a/src/Message/Location/LocationMessage/CloudOutgoingLocationMessage.ts b/src/Message/Location/LocationMessage/CloudOutgoingLocationMessage.ts index caa65a9..4acc3a3 100644 --- a/src/Message/Location/LocationMessage/CloudOutgoingLocationMessage.ts +++ b/src/Message/Location/LocationMessage/CloudOutgoingLocationMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; -import CloudOutgoingMessageLocation from "../MessageLocation/Outgoing/CloudOutgoingMessageLocation"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; +import CloudOutgoingMessageLocation from "../MessageLocation/Outgoing/CloudOutgoingMessageLocation.js"; type CloudOutgoingLocationMessage = CloudOutgoingMessage & { diff --git a/src/Message/Location/LocationMessage/HostedOutgoingLocationMessage.ts b/src/Message/Location/LocationMessage/HostedOutgoingLocationMessage.ts index 493e009..f2eb2ed 100644 --- a/src/Message/Location/LocationMessage/HostedOutgoingLocationMessage.ts +++ b/src/Message/Location/LocationMessage/HostedOutgoingLocationMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage"; -import HostedOutgoingMessageLocation from "../MessageLocation/Outgoing/HostedOutgoingMessageLocation"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage.js"; +import HostedOutgoingMessageLocation from "../MessageLocation/Outgoing/HostedOutgoingMessageLocation.js"; type HostedOutgoingLocationMessage = HostedOutgoingMessage & { diff --git a/src/Message/Location/MessageLocation/Outgoing/CloudOutgoingMessageLocation.ts b/src/Message/Location/MessageLocation/Outgoing/CloudOutgoingMessageLocation.ts index 3e5b95b..c090883 100644 --- a/src/Message/Location/MessageLocation/Outgoing/CloudOutgoingMessageLocation.ts +++ b/src/Message/Location/MessageLocation/Outgoing/CloudOutgoingMessageLocation.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageLocation from "../Outgoing/OutgoingMessageLocation"; +import OutgoingMessageLocation from "../Outgoing/OutgoingMessageLocation.js"; export default interface CloudOutgoingMessageLocation extends OutgoingMessageLocation {} diff --git a/src/Message/Location/MessageLocation/Outgoing/HostedOutgoingMessageLocation.ts b/src/Message/Location/MessageLocation/Outgoing/HostedOutgoingMessageLocation.ts index 076d32f..f1580c9 100644 --- a/src/Message/Location/MessageLocation/Outgoing/HostedOutgoingMessageLocation.ts +++ b/src/Message/Location/MessageLocation/Outgoing/HostedOutgoingMessageLocation.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageLocation from "./OutgoingMessageLocation"; +import OutgoingMessageLocation from "./OutgoingMessageLocation.js"; export default interface HostedOutgoingMessageLocation extends OutgoingMessageLocation {} diff --git a/src/Message/Location/MessageLocation/Outgoing/OutgoingMessageLocation.ts b/src/Message/Location/MessageLocation/Outgoing/OutgoingMessageLocation.ts index 187f258..2862cb7 100644 --- a/src/Message/Location/MessageLocation/Outgoing/OutgoingMessageLocation.ts +++ b/src/Message/Location/MessageLocation/Outgoing/OutgoingMessageLocation.ts @@ -6,6 +6,6 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageLocation from ".."; +import MessageLocation from "../index.js"; export default interface OutgoingMessageLocation extends MessageLocation {} diff --git a/src/Message/MessageContext/CloudIncomingMessageContext.ts b/src/Message/MessageContext/CloudIncomingMessageContext.ts index b44eb3c..2d39f55 100644 --- a/src/Message/MessageContext/CloudIncomingMessageContext.ts +++ b/src/Message/MessageContext/CloudIncomingMessageContext.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageContext from "./IncomingMessageContext"; +import IncomingMessageContext from "./IncomingMessageContext.js"; export default interface CloudIncomingMessageContext extends IncomingMessageContext {} diff --git a/src/Message/MessageContext/HostedIncomingMessageContext.ts b/src/Message/MessageContext/HostedIncomingMessageContext.ts index ad42a4b..18ec859 100644 --- a/src/Message/MessageContext/HostedIncomingMessageContext.ts +++ b/src/Message/MessageContext/HostedIncomingMessageContext.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageContext from "./IncomingMessageContext"; +import IncomingMessageContext from "./IncomingMessageContext.js"; export default interface HostedIncomingMessageContext extends IncomingMessageContext {} diff --git a/src/Message/MessageContext/IncomingMessageContext.ts b/src/Message/MessageContext/IncomingMessageContext.ts index b5eb3c8..61a6da2 100644 --- a/src/Message/MessageContext/IncomingMessageContext.ts +++ b/src/Message/MessageContext/IncomingMessageContext.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import { AccountID, MessageID } from "../../ID"; +import { AccountID, MessageID } from "../../ID.js"; export default interface IncomingMessageContext { /** diff --git a/src/Message/MessageIdentity/CloudIncomingMessageIdentity.ts b/src/Message/MessageIdentity/CloudIncomingMessageIdentity.ts index e7d282c..1bda0c7 100644 --- a/src/Message/MessageIdentity/CloudIncomingMessageIdentity.ts +++ b/src/Message/MessageIdentity/CloudIncomingMessageIdentity.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageIdentity from "./IncomingMessageIdentity"; +import IncomingMessageIdentity from "./IncomingMessageIdentity.js"; export default interface CloudIncomingMessageIdentity extends IncomingMessageIdentity {} diff --git a/src/Message/MessageIdentity/HostedIncomingMessageIdentity.ts b/src/Message/MessageIdentity/HostedIncomingMessageIdentity.ts index b21bb78..245c89a 100644 --- a/src/Message/MessageIdentity/HostedIncomingMessageIdentity.ts +++ b/src/Message/MessageIdentity/HostedIncomingMessageIdentity.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageIdentity from "./IncomingMessageIdentity"; +import IncomingMessageIdentity from "./IncomingMessageIdentity.js"; export default interface HostedIncomingMessageIdentity extends IncomingMessageIdentity {} diff --git a/src/Message/MessageMedia/CloudIncomingMessageMedia.ts b/src/Message/MessageMedia/CloudIncomingMessageMedia.ts index 1dc94cb..9f3be1c 100644 --- a/src/Message/MessageMedia/CloudIncomingMessageMedia.ts +++ b/src/Message/MessageMedia/CloudIncomingMessageMedia.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageMedia from "./IncomingMessageMedia"; +import IncomingMessageMedia from "./IncomingMessageMedia.js"; export default interface CloudIncomingMessageMedia extends IncomingMessageMedia {} diff --git a/src/Message/MessageMedia/CloudOutgoingMessageMedia.ts b/src/Message/MessageMedia/CloudOutgoingMessageMedia.ts index ee03b3e..c007d7a 100644 --- a/src/Message/MessageMedia/CloudOutgoingMessageMedia.ts +++ b/src/Message/MessageMedia/CloudOutgoingMessageMedia.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageMedia from "./OutgoingMessageMedia"; +import OutgoingMessageMedia from "./OutgoingMessageMedia.js"; export default interface CloudOutgoingMessageMedia extends OutgoingMessageMedia {} diff --git a/src/Message/MessageMedia/HostedIncomingMessageMedia.ts b/src/Message/MessageMedia/HostedIncomingMessageMedia.ts index a530ee7..cdf7349 100644 --- a/src/Message/MessageMedia/HostedIncomingMessageMedia.ts +++ b/src/Message/MessageMedia/HostedIncomingMessageMedia.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageMedia from "./IncomingMessageMedia"; +import IncomingMessageMedia from "./IncomingMessageMedia.js"; export default interface HostedIncomingMessageMedia extends IncomingMessageMedia {} diff --git a/src/Message/MessageMedia/HostedOutgoingMessageMedia.ts b/src/Message/MessageMedia/HostedOutgoingMessageMedia.ts index fcfb3c9..224d9f4 100644 --- a/src/Message/MessageMedia/HostedOutgoingMessageMedia.ts +++ b/src/Message/MessageMedia/HostedOutgoingMessageMedia.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageMedia from "./OutgoingMessageMedia"; +import OutgoingMessageMedia from "./OutgoingMessageMedia.js"; export default interface HostedOutgoingMessageMedia extends OutgoingMessageMedia { diff --git a/src/Message/MessageMedia/IncomingMessageMedia.ts b/src/Message/MessageMedia/IncomingMessageMedia.ts index 3b08cac..3b7b4ac 100644 --- a/src/Message/MessageMedia/IncomingMessageMedia.ts +++ b/src/Message/MessageMedia/IncomingMessageMedia.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageMedia from "."; +import MessageMedia from "./index.js"; export default interface IncomingMessageMedia extends MessageMedia { /** diff --git a/src/Message/MessageMedia/OutgoingMessageMedia.ts b/src/Message/MessageMedia/OutgoingMessageMedia.ts index c080059..d7ea009 100644 --- a/src/Message/MessageMedia/OutgoingMessageMedia.ts +++ b/src/Message/MessageMedia/OutgoingMessageMedia.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageMedia from "."; +import MessageMedia from "./index.js"; export default interface OutgoingMessageMedia extends MessageMedia { /** diff --git a/src/Message/MessageReferral/CloudIncomingMessageReferral.ts b/src/Message/MessageReferral/CloudIncomingMessageReferral.ts index 3565a88..9873fa4 100644 --- a/src/Message/MessageReferral/CloudIncomingMessageReferral.ts +++ b/src/Message/MessageReferral/CloudIncomingMessageReferral.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageReferral from "./IncomingMessageReferral"; +import IncomingMessageReferral from "./IncomingMessageReferral.js"; export default interface CloudIncomingMessageReferral extends IncomingMessageReferral {} diff --git a/src/Message/MessageReferral/HostedIncomingMessageReferral.ts b/src/Message/MessageReferral/HostedIncomingMessageReferral.ts index ed210c4..5796c01 100644 --- a/src/Message/MessageReferral/HostedIncomingMessageReferral.ts +++ b/src/Message/MessageReferral/HostedIncomingMessageReferral.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageReferral from "./IncomingMessageReferral"; +import IncomingMessageReferral from "./IncomingMessageReferral.js"; export default interface HostedIncomingMessageReferral extends IncomingMessageReferral {} diff --git a/src/Message/MessageSystem/CloudIncomingMessageSystem.ts b/src/Message/MessageSystem/CloudIncomingMessageSystem.ts index d49774d..9e3696d 100644 --- a/src/Message/MessageSystem/CloudIncomingMessageSystem.ts +++ b/src/Message/MessageSystem/CloudIncomingMessageSystem.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageSystem from "./IncomingMessageSystem"; +import IncomingMessageSystem from "./IncomingMessageSystem.js"; export default interface CloudIncomingMessageSystem extends IncomingMessageSystem {} diff --git a/src/Message/MessageSystem/HostedIncomingMessageSystem.ts b/src/Message/MessageSystem/HostedIncomingMessageSystem.ts index fd2f3b0..13b5c02 100644 --- a/src/Message/MessageSystem/HostedIncomingMessageSystem.ts +++ b/src/Message/MessageSystem/HostedIncomingMessageSystem.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageSystem from "./IncomingMessageSystem"; +import IncomingMessageSystem from "./IncomingMessageSystem.js"; export default interface HostedInterfaceMessageSystem extends IncomingMessageSystem {} diff --git a/src/Message/MessageSystem/IncomingMessageSystem.ts b/src/Message/MessageSystem/IncomingMessageSystem.ts index 37bdc80..9e9f268 100644 --- a/src/Message/MessageSystem/IncomingMessageSystem.ts +++ b/src/Message/MessageSystem/IncomingMessageSystem.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import { AccountID } from "../../ID"; +import { AccountID } from "../../ID.js"; export default interface IncomingMessageSystem { /** @@ -35,7 +35,7 @@ export default interface IncomingMessageSystem { * * @since 4.2.0 */ - type: "customer_changed_number" | "customer_identity_changed"; + type: "customer_changed_number" | "customer_identity_changed.js"; /** * New WhatsApp ID for the customer when their phone number is updated. diff --git a/src/Message/OutgoingMessage/CloudOutgoingMessage.ts b/src/Message/OutgoingMessage/CloudOutgoingMessage.ts index 9ef0244..acf86de 100644 --- a/src/Message/OutgoingMessage/CloudOutgoingMessage.ts +++ b/src/Message/OutgoingMessage/CloudOutgoingMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessage from "."; -import { AccountID, MessageID } from "../../ID"; -import OutgoingMessageType from "../MessageType/OutgoingMessageType"; +import { AccountID, MessageID } from "../../ID.js"; +import OutgoingMessageType from "../MessageType/OutgoingMessageType.js"; +import OutgoingMessage from "./index.js"; export interface CloudOutgoingMessageResponse { /** diff --git a/src/Message/OutgoingMessage/HostedOutgoingMessage.ts b/src/Message/OutgoingMessage/HostedOutgoingMessage.ts index 1855b07..0836a18 100644 --- a/src/Message/OutgoingMessage/HostedOutgoingMessage.ts +++ b/src/Message/OutgoingMessage/HostedOutgoingMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessage from "."; -import { AccountID, MessageID } from "../../ID"; -import OutgoingMessageType from "../MessageType/OutgoingMessageType"; +import { AccountID, MessageID } from "../../ID.js"; +import OutgoingMessageType from "../MessageType/OutgoingMessageType.js"; +import OutgoingMessage from "./index.js"; export interface HostedOutgoingMessageResponse { /** diff --git a/src/Message/OutgoingMessage/index.ts b/src/Message/OutgoingMessage/index.ts index f9d9faa..0eb9940 100644 --- a/src/Message/OutgoingMessage/index.ts +++ b/src/Message/OutgoingMessage/index.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import Message from ".."; -import { AccountID, PhoneNumber } from "../../ID"; -import OutgoingMessageType from "../MessageType/OutgoingMessageType"; +import { AccountID, PhoneNumber } from "../../ID.js"; +import OutgoingMessageType from "../MessageType/OutgoingMessageType.js"; +import Message from "../index.js"; export type OutgoingMessageRecipientType = | "individual" diff --git a/src/Message/Status/MessageStatus/Outgoing/CloudOutgoingMessageStatus.ts b/src/Message/Status/MessageStatus/Outgoing/CloudOutgoingMessageStatus.ts index be5a448..61fb3ac 100644 --- a/src/Message/Status/MessageStatus/Outgoing/CloudOutgoingMessageStatus.ts +++ b/src/Message/Status/MessageStatus/Outgoing/CloudOutgoingMessageStatus.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import { MessageID } from "../../../../ID"; -import OutgoingMessageStatus from "../Outgoing/OutgoingMessageStatus"; +import { MessageID } from "../../../../ID.js"; +import OutgoingMessageStatus from "../Outgoing/OutgoingMessageStatus.js"; export default interface CloudOutgoingMessageStatus extends OutgoingMessageStatus { diff --git a/src/Message/Status/MessageStatus/Outgoing/HostedOutgoingMessageStatus.ts b/src/Message/Status/MessageStatus/Outgoing/HostedOutgoingMessageStatus.ts index 3fcb506..0446b46 100644 --- a/src/Message/Status/MessageStatus/Outgoing/HostedOutgoingMessageStatus.ts +++ b/src/Message/Status/MessageStatus/Outgoing/HostedOutgoingMessageStatus.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageStatus from "./OutgoingMessageStatus"; +import OutgoingMessageStatus from "./OutgoingMessageStatus.js"; export default interface HostedOutgoingMessageStatus extends OutgoingMessageStatus {} diff --git a/src/Message/Status/MessageStatus/Outgoing/OutgoingMessageStatus.ts b/src/Message/Status/MessageStatus/Outgoing/OutgoingMessageStatus.ts index e2c7791..24b82ea 100644 --- a/src/Message/Status/MessageStatus/Outgoing/OutgoingMessageStatus.ts +++ b/src/Message/Status/MessageStatus/Outgoing/OutgoingMessageStatus.ts @@ -6,6 +6,6 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageStatus from ".."; +import MessageStatus from "../index.js"; export default interface OutgoingMessageStatus extends MessageStatus {} diff --git a/src/Message/Status/StatusMessage/CloudOutgoingStatusMessage.ts b/src/Message/Status/StatusMessage/CloudOutgoingStatusMessage.ts index 5df5f5a..0dc42d7 100644 --- a/src/Message/Status/StatusMessage/CloudOutgoingStatusMessage.ts +++ b/src/Message/Status/StatusMessage/CloudOutgoingStatusMessage.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudOutgoingMessageStatus from "../MessageStatus/Outgoing/CloudOutgoingMessageStatus"; +import CloudOutgoingMessageStatus from "../MessageStatus/Outgoing/CloudOutgoingMessageStatus.js"; type CloudOutgoingStatusMessage = { /** diff --git a/src/Message/Status/StatusMessage/HostedOutgoingStatusMessage.ts b/src/Message/Status/StatusMessage/HostedOutgoingStatusMessage.ts index 8895e32..00df201 100644 --- a/src/Message/Status/StatusMessage/HostedOutgoingStatusMessage.ts +++ b/src/Message/Status/StatusMessage/HostedOutgoingStatusMessage.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import HostedOutgoingMessageStatus from "../MessageStatus/Outgoing/HostedOutgoingMessageStatus"; +import HostedOutgoingMessageStatus from "../MessageStatus/Outgoing/HostedOutgoingMessageStatus.js"; type HostedOutgoingStatusMessage = HostedOutgoingMessageStatus; diff --git a/src/Message/Sticker/MessageSticker/Incoming/CloudIncomingMessageSticker.ts b/src/Message/Sticker/MessageSticker/Incoming/CloudIncomingMessageSticker.ts index 8522782..a605e17 100644 --- a/src/Message/Sticker/MessageSticker/Incoming/CloudIncomingMessageSticker.ts +++ b/src/Message/Sticker/MessageSticker/Incoming/CloudIncomingMessageSticker.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudIncomingMessageMedia from "../../../MessageMedia/CloudIncomingMessageMedia"; -import IncomingMessageSticker from "../Incoming/IncomingMessageSticker"; +import CloudIncomingMessageMedia from "../../../MessageMedia/CloudIncomingMessageMedia.js"; +import IncomingMessageSticker from "../Incoming/IncomingMessageSticker.js"; export default interface CloudIncomingMessageSticker extends CloudIncomingMessageMedia, diff --git a/src/Message/Sticker/MessageSticker/Incoming/HostedIncomingMessageSticker.ts b/src/Message/Sticker/MessageSticker/Incoming/HostedIncomingMessageSticker.ts index a0c04d1..4b4313d 100644 --- a/src/Message/Sticker/MessageSticker/Incoming/HostedIncomingMessageSticker.ts +++ b/src/Message/Sticker/MessageSticker/Incoming/HostedIncomingMessageSticker.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import HostedIncomingMessageMedia from "../../../MessageMedia/HostedIncomingMessageMedia"; -import IncomingMessageSticker from "./IncomingMessageSticker"; +import HostedIncomingMessageMedia from "../../../MessageMedia/HostedIncomingMessageMedia.js"; +import IncomingMessageSticker from "./IncomingMessageSticker.js"; export default interface HostedIncomingMessageSticker extends HostedIncomingMessageMedia, diff --git a/src/Message/Sticker/MessageSticker/Incoming/IncomingMessageSticker.ts b/src/Message/Sticker/MessageSticker/Incoming/IncomingMessageSticker.ts index 072ef4f..5ad95fa 100644 --- a/src/Message/Sticker/MessageSticker/Incoming/IncomingMessageSticker.ts +++ b/src/Message/Sticker/MessageSticker/Incoming/IncomingMessageSticker.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageSticker from ".."; +import MessageSticker from "../index.js"; export default interface IncomingMessageSticker extends MessageSticker { /** diff --git a/src/Message/Sticker/MessageSticker/Outgoing/CloudOutgoingMessageSticker.ts b/src/Message/Sticker/MessageSticker/Outgoing/CloudOutgoingMessageSticker.ts index d9a4e7e..2f7e9c5 100644 --- a/src/Message/Sticker/MessageSticker/Outgoing/CloudOutgoingMessageSticker.ts +++ b/src/Message/Sticker/MessageSticker/Outgoing/CloudOutgoingMessageSticker.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudOutgoingMessageMedia from "../../../MessageMedia/CloudOutgoingMessageMedia"; -import OutgoingMessageSticker from "./OutgoingMessageSticker"; +import CloudOutgoingMessageMedia from "../../../MessageMedia/CloudOutgoingMessageMedia.js"; +import OutgoingMessageSticker from "./OutgoingMessageSticker.js"; export default interface CloudOutgoingMessageSticker extends CloudOutgoingMessageMedia, diff --git a/src/Message/Sticker/MessageSticker/Outgoing/HostedOutgoingMessageSticker.ts b/src/Message/Sticker/MessageSticker/Outgoing/HostedOutgoingMessageSticker.ts index fe931e0..9c8c1c1 100644 --- a/src/Message/Sticker/MessageSticker/Outgoing/HostedOutgoingMessageSticker.ts +++ b/src/Message/Sticker/MessageSticker/Outgoing/HostedOutgoingMessageSticker.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import HostedOutgoingMessageMedia from "../../../MessageMedia/HostedOutgoingMessageMedia"; -import OutgoingMessageSticker from "./OutgoingMessageSticker"; +import HostedOutgoingMessageMedia from "../../../MessageMedia/HostedOutgoingMessageMedia.js"; +import OutgoingMessageSticker from "./OutgoingMessageSticker.js"; export default interface HostedOutgoingMessageSticker extends HostedOutgoingMessageMedia, diff --git a/src/Message/Sticker/MessageSticker/Outgoing/OutgoingMessageSticker.ts b/src/Message/Sticker/MessageSticker/Outgoing/OutgoingMessageSticker.ts index 69f72da..c7ee108 100644 --- a/src/Message/Sticker/MessageSticker/Outgoing/OutgoingMessageSticker.ts +++ b/src/Message/Sticker/MessageSticker/Outgoing/OutgoingMessageSticker.ts @@ -6,6 +6,6 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageSticker from ".."; +import MessageSticker from "../index.js"; export default interface OutgoingMessageSticker extends MessageSticker {} diff --git a/src/Message/Sticker/StickerMessage/CloudIncomingStickerMessage.ts b/src/Message/Sticker/StickerMessage/CloudIncomingStickerMessage.ts index d0afeb0..a10d640 100644 --- a/src/Message/Sticker/StickerMessage/CloudIncomingStickerMessage.ts +++ b/src/Message/Sticker/StickerMessage/CloudIncomingStickerMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage"; -import IncomingMessageType from "../../MessageType/IncomingMessageType"; -import CloudIncomingMessageSticker from "../MessageSticker/Incoming/CloudIncomingMessageSticker"; +import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage.js"; +import IncomingMessageType from "../../MessageType/IncomingMessageType.js"; +import CloudIncomingMessageSticker from "../MessageSticker/Incoming/CloudIncomingMessageSticker.js"; type CloudIncomingStickerMessage = CloudIncomingMessage & { diff --git a/src/Message/Sticker/StickerMessage/CloudOutgoingStickerMessage.ts b/src/Message/Sticker/StickerMessage/CloudOutgoingStickerMessage.ts index be15f23..3e7d65b 100644 --- a/src/Message/Sticker/StickerMessage/CloudOutgoingStickerMessage.ts +++ b/src/Message/Sticker/StickerMessage/CloudOutgoingStickerMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudOutgoingMessageMedia from "../../MessageMedia/CloudOutgoingMessageMedia"; -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; +import CloudOutgoingMessageMedia from "../../MessageMedia/CloudOutgoingMessageMedia.js"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; type CloudOutgoingStickerMessage = CloudOutgoingMessage & { diff --git a/src/Message/Sticker/StickerMessage/HostedOutgoingStickerMessage.ts b/src/Message/Sticker/StickerMessage/HostedOutgoingStickerMessage.ts index 066c833..560289e 100644 --- a/src/Message/Sticker/StickerMessage/HostedOutgoingStickerMessage.ts +++ b/src/Message/Sticker/StickerMessage/HostedOutgoingStickerMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import HostedOutgoingMessageMedia from "../../MessageMedia/HostedOutgoingMessageMedia"; -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage"; +import HostedOutgoingMessageMedia from "../../MessageMedia/HostedOutgoingMessageMedia.js"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage.js"; type HostedOutgoingStickerMessage = HostedOutgoingMessage & { diff --git a/src/Message/Template/MessageTemplate/Outgoing/CloudOutgoingMessageTemplate.ts b/src/Message/Template/MessageTemplate/Outgoing/CloudOutgoingMessageTemplate.ts index 81e4468..45a78db 100644 --- a/src/Message/Template/MessageTemplate/Outgoing/CloudOutgoingMessageTemplate.ts +++ b/src/Message/Template/MessageTemplate/Outgoing/CloudOutgoingMessageTemplate.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageTemplate from "../Outgoing/OutgoingMessageTemplate"; +import OutgoingMessageTemplate from "../Outgoing/OutgoingMessageTemplate.js"; export default interface CloudOutgoingMessageTemplate extends OutgoingMessageTemplate {} diff --git a/src/Message/Template/MessageTemplate/Outgoing/HostedOutgoingMessageTemplate.ts b/src/Message/Template/MessageTemplate/Outgoing/HostedOutgoingMessageTemplate.ts index 6c4bc4c..44a54cc 100644 --- a/src/Message/Template/MessageTemplate/Outgoing/HostedOutgoingMessageTemplate.ts +++ b/src/Message/Template/MessageTemplate/Outgoing/HostedOutgoingMessageTemplate.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageTemplate from "./OutgoingMessageTemplate"; +import OutgoingMessageTemplate from "./OutgoingMessageTemplate.js"; export default interface HostedOutgoingMessageTemplate extends OutgoingMessageTemplate { diff --git a/src/Message/Template/MessageTemplate/Outgoing/OutgoingMessageTemplate.ts b/src/Message/Template/MessageTemplate/Outgoing/OutgoingMessageTemplate.ts index 3c095f9..c006004 100644 --- a/src/Message/Template/MessageTemplate/Outgoing/OutgoingMessageTemplate.ts +++ b/src/Message/Template/MessageTemplate/Outgoing/OutgoingMessageTemplate.ts @@ -6,12 +6,12 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageTemplate from ".."; +import MessageTemplate from "../index.js"; import { BodyOutgoingMessageTemplateComponent, ButtonOutgoingMessageTemplateComponent, HeaderOutgoingMessageTemplateComponent, -} from "./OutgoingMessageTemplateComponent"; +} from "./OutgoingMessageTemplateComponent.js"; type OutgoingMessageTemplateLanguagePolicy = | "deterministic" diff --git a/src/Message/Template/MessageTemplate/Outgoing/OutgoingMessageTemplateComponent.ts b/src/Message/Template/MessageTemplate/Outgoing/OutgoingMessageTemplateComponent.ts index 015a7e8..4f40351 100644 --- a/src/Message/Template/MessageTemplate/Outgoing/OutgoingMessageTemplateComponent.ts +++ b/src/Message/Template/MessageTemplate/Outgoing/OutgoingMessageTemplateComponent.ts @@ -14,7 +14,7 @@ import { PayloadOutgoingMessageTemplateComponentParameter, TextOutgoingMessageTemplateComponentParameter, VideoOutgoingMessageTemplateComponentParameter, -} from "./OutgoingMessageTemplateComponentParameter"; +} from "./OutgoingMessageTemplateComponentParameter.js"; type GeneralOutgoingMessageTemplateComponentParameter = | TextOutgoingMessageTemplateComponentParameter diff --git a/src/Message/Template/TemplateMessage/CloudOutgoingTemplateMessage.ts b/src/Message/Template/TemplateMessage/CloudOutgoingTemplateMessage.ts index 7d337c0..20dc7d3 100644 --- a/src/Message/Template/TemplateMessage/CloudOutgoingTemplateMessage.ts +++ b/src/Message/Template/TemplateMessage/CloudOutgoingTemplateMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; -import CloudOutgoingMessageTemplate from "../MessageTemplate/Outgoing/CloudOutgoingMessageTemplate"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; +import CloudOutgoingMessageTemplate from "../MessageTemplate/Outgoing/CloudOutgoingMessageTemplate.js"; type CloudOutgoingTemplateMessage = CloudOutgoingMessage & { diff --git a/src/Message/Template/TemplateMessage/HostedOutgoingTemplateMessage.ts b/src/Message/Template/TemplateMessage/HostedOutgoingTemplateMessage.ts index 2245b9a..a9a0ab4 100644 --- a/src/Message/Template/TemplateMessage/HostedOutgoingTemplateMessage.ts +++ b/src/Message/Template/TemplateMessage/HostedOutgoingTemplateMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage"; -import HostedOutgoingMessageTemplate from "../MessageTemplate/Outgoing/HostedOutgoingMessageTemplate"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import HostedOutgoingMessage from "../../OutgoingMessage/HostedOutgoingMessage.js"; +import HostedOutgoingMessageTemplate from "../MessageTemplate/Outgoing/HostedOutgoingMessageTemplate.js"; type HostedOutgoingTemplateMessage = HostedOutgoingMessage & { diff --git a/src/Message/Text/MessageText/Incoming/CloudIncomingMessageText.ts b/src/Message/Text/MessageText/Incoming/CloudIncomingMessageText.ts index 5a91c12..115284d 100644 --- a/src/Message/Text/MessageText/Incoming/CloudIncomingMessageText.ts +++ b/src/Message/Text/MessageText/Incoming/CloudIncomingMessageText.ts @@ -6,6 +6,6 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageText from "../Incoming/IncomingMessageText"; +import IncomingMessageText from "../Incoming/IncomingMessageText.js"; export default interface CloudIncomingMessageText extends IncomingMessageText {} diff --git a/src/Message/Text/MessageText/Incoming/HostedIncomingMessageText.ts b/src/Message/Text/MessageText/Incoming/HostedIncomingMessageText.ts index 81bcf03..e1738d8 100644 --- a/src/Message/Text/MessageText/Incoming/HostedIncomingMessageText.ts +++ b/src/Message/Text/MessageText/Incoming/HostedIncomingMessageText.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import IncomingMessageText from "./IncomingMessageText"; +import IncomingMessageText from "./IncomingMessageText.js"; export default interface HostedIncomingMessageText extends IncomingMessageText {} diff --git a/src/Message/Text/MessageText/Incoming/IncomingMessageText.ts b/src/Message/Text/MessageText/Incoming/IncomingMessageText.ts index 59c6ce0..ee857f2 100644 --- a/src/Message/Text/MessageText/Incoming/IncomingMessageText.ts +++ b/src/Message/Text/MessageText/Incoming/IncomingMessageText.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageText from ".."; +import MessageText from "../index.js"; /** * Incoming Message Text. diff --git a/src/Message/Text/MessageText/Outgoing/CloudOutgoingMessageText.ts b/src/Message/Text/MessageText/Outgoing/CloudOutgoingMessageText.ts index cd6ffd3..eb5e00c 100644 --- a/src/Message/Text/MessageText/Outgoing/CloudOutgoingMessageText.ts +++ b/src/Message/Text/MessageText/Outgoing/CloudOutgoingMessageText.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageText from ".."; +import MessageText from "../index.js"; /** * Outgoing Text Message. diff --git a/src/Message/Text/MessageText/Outgoing/HostedOutgoingMessageText.ts b/src/Message/Text/MessageText/Outgoing/HostedOutgoingMessageText.ts index ae7cef3..d893068 100644 --- a/src/Message/Text/MessageText/Outgoing/HostedOutgoingMessageText.ts +++ b/src/Message/Text/MessageText/Outgoing/HostedOutgoingMessageText.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageText from ".."; +import MessageText from "../index.js"; /** * Outgoing Text Message. diff --git a/src/Message/Text/MessageText/Outgoing/OutgoingMessageText.ts b/src/Message/Text/MessageText/Outgoing/OutgoingMessageText.ts index b7485af..843787d 100644 --- a/src/Message/Text/MessageText/Outgoing/OutgoingMessageText.ts +++ b/src/Message/Text/MessageText/Outgoing/OutgoingMessageText.ts @@ -6,7 +6,7 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageText from ".."; +import MessageText from "../index.js"; /** * Outgoing Text Message. diff --git a/src/Message/Text/TextMessage/CloudIncomingTextMessage.ts b/src/Message/Text/TextMessage/CloudIncomingTextMessage.ts index 80e9ddd..1767e12 100644 --- a/src/Message/Text/TextMessage/CloudIncomingTextMessage.ts +++ b/src/Message/Text/TextMessage/CloudIncomingTextMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage"; -import IncomingMessageType from "../../MessageType/IncomingMessageType"; -import CloudIncomingMessageText from "../MessageText/Incoming/CloudIncomingMessageText"; +import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage.js"; +import IncomingMessageType from "../../MessageType/IncomingMessageType.js"; +import CloudIncomingMessageText from "../MessageText/Incoming/CloudIncomingMessageText.js"; type CloudIncomingTextMessage = CloudIncomingMessage & { diff --git a/src/Message/Text/TextMessage/CloudOutgoingTextMessage.ts b/src/Message/Text/TextMessage/CloudOutgoingTextMessage.ts index 185a494..f177c3c 100644 --- a/src/Message/Text/TextMessage/CloudOutgoingTextMessage.ts +++ b/src/Message/Text/TextMessage/CloudOutgoingTextMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; -import CloudOutgoingMessageText from "../MessageText/Outgoing/CloudOutgoingMessageText"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import CloudOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; +import CloudOutgoingMessageText from "../MessageText/Outgoing/CloudOutgoingMessageText.js"; type CloudOutgoingTextMessage = CloudOutgoingMessage & { diff --git a/src/Message/Text/TextMessage/HostedOutgoingTextMessage.ts b/src/Message/Text/TextMessage/HostedOutgoingTextMessage.ts index a6714bb..793dcf2 100644 --- a/src/Message/Text/TextMessage/HostedOutgoingTextMessage.ts +++ b/src/Message/Text/TextMessage/HostedOutgoingTextMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import OutgoingMessageType from "../../MessageType/OutgoingMessageType"; -import HostedOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage"; -import HostedOutgoingMessageText from "../MessageText/Outgoing/HostedOutgoingMessageText"; +import OutgoingMessageType from "../../MessageType/OutgoingMessageType.js"; +import HostedOutgoingMessage from "../../OutgoingMessage/CloudOutgoingMessage.js"; +import HostedOutgoingMessageText from "../MessageText/Outgoing/HostedOutgoingMessageText.js"; type CloudOutgoingTextMessage = HostedOutgoingMessage & { diff --git a/src/Message/Video/MessageVideo/CloudIncomingMessageVideo.ts b/src/Message/Video/MessageVideo/CloudIncomingMessageVideo.ts index 80532ad..306cbb6 100644 --- a/src/Message/Video/MessageVideo/CloudIncomingMessageVideo.ts +++ b/src/Message/Video/MessageVideo/CloudIncomingMessageVideo.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudIncomingMessageMedia from "../../MessageMedia/CloudIncomingMessageMedia"; -import IncomingMessageVideo from "./IncomingMessageVideo"; +import CloudIncomingMessageMedia from "../../MessageMedia/CloudIncomingMessageMedia.js"; +import IncomingMessageVideo from "./IncomingMessageVideo.js"; export default interface CloudIncomingMessageVideo extends CloudIncomingMessageMedia, diff --git a/src/Message/Video/MessageVideo/HostedIncomingMessageVideo.ts b/src/Message/Video/MessageVideo/HostedIncomingMessageVideo.ts index 59994f2..b341393 100644 --- a/src/Message/Video/MessageVideo/HostedIncomingMessageVideo.ts +++ b/src/Message/Video/MessageVideo/HostedIncomingMessageVideo.ts @@ -6,8 +6,8 @@ * @author Dom Webber * @see https://greatdetail.com */ -import HostedIncomingMessageMedia from "../../MessageMedia/HostedIncomingMessageMedia"; -import IncomingMessageVideo from "./IncomingMessageVideo"; +import HostedIncomingMessageMedia from "../../MessageMedia/HostedIncomingMessageMedia.js"; +import IncomingMessageVideo from "./IncomingMessageVideo.js"; export default interface HostedIncomingMessageVideo extends HostedIncomingMessageMedia, diff --git a/src/Message/Video/MessageVideo/IncomingMessageVideo.ts b/src/Message/Video/MessageVideo/IncomingMessageVideo.ts index b507621..383a4a6 100644 --- a/src/Message/Video/MessageVideo/IncomingMessageVideo.ts +++ b/src/Message/Video/MessageVideo/IncomingMessageVideo.ts @@ -6,6 +6,6 @@ * @author Dom Webber * @see https://greatdetail.com */ -import MessageVideo from "."; +import MessageVideo from "./index.js"; export default interface IncomingMessageAudio extends MessageVideo {} diff --git a/src/Message/Video/VideoMessage/CloudIncomingVideoMessage.ts b/src/Message/Video/VideoMessage/CloudIncomingVideoMessage.ts index f0e8658..2c91cac 100644 --- a/src/Message/Video/VideoMessage/CloudIncomingVideoMessage.ts +++ b/src/Message/Video/VideoMessage/CloudIncomingVideoMessage.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage"; -import IncomingMessageType from "../../MessageType/IncomingMessageType"; -import CloudIncomingMessageVideo from "../MessageVideo/CloudIncomingMessageVideo"; +import CloudIncomingMessage from "../../IncomingMessage/CloudIncomingMessage.js"; +import IncomingMessageType from "../../MessageType/IncomingMessageType.js"; +import CloudIncomingMessageVideo from "../MessageVideo/CloudIncomingMessageVideo.js"; type CloudIncomingVideoMessage = CloudIncomingMessage & { diff --git a/src/index.ts b/src/index.ts index 35af28d..db6a28b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,9 +6,9 @@ * @author Dom Webber * @see https://greatdetail.com */ -import CloudAPI from "./CloudAPI"; -import IncomingMessageType from "./Message/MessageType/IncomingMessageType"; -import OutgoingMessageType from "./Message/MessageType/OutgoingMessageType"; +import CloudAPI from "./CloudAPI/index.js"; +import IncomingMessageType from "./Message/MessageType/IncomingMessageType.js"; +import OutgoingMessageType from "./Message/MessageType/OutgoingMessageType.js"; export default CloudAPI; export { CloudAPI, OutgoingMessageType, IncomingMessageType }; diff --git a/tsconfig.json b/tsconfig.json index 491e42d..e480e67 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,8 @@ "outDir": "dist/types", "allowJs": true, "target": "ESNext", - "moduleResolution": "node", + "module": "NodeNext", + "moduleResolution": "NodeNext", "checkJs": true, "strict": true, "types": ["node", "jest"],