move queues
This commit is contained in:
parent
6cbc7468fb
commit
23e7616416
@ -1,7 +1,7 @@
|
|||||||
import { Queue } from "quirrel/blitz";
|
import { Queue } from "quirrel/blitz";
|
||||||
import twilio from "twilio";
|
import twilio from "twilio";
|
||||||
|
|
||||||
import db from "../../../db";
|
import db from "../../../../db";
|
||||||
import insertMessagesQueue from "./insert-messages";
|
import insertMessagesQueue from "./insert-messages";
|
||||||
|
|
||||||
type Payload = {
|
type Payload = {
|
@ -1,8 +1,8 @@
|
|||||||
import { Queue } from "quirrel/blitz";
|
import { Queue } from "quirrel/blitz";
|
||||||
import type { MessageInstance } from "twilio/lib/rest/api/v2010/account/message";
|
import type { MessageInstance } from "twilio/lib/rest/api/v2010/account/message";
|
||||||
|
|
||||||
import db, { MessageStatus, Direction, Message } from "../../../db";
|
import db, { MessageStatus, Direction, Message } from "../../../../db";
|
||||||
import { encrypt } from "../../../db/_encryption";
|
import { encrypt } from "../../../../db/_encryption";
|
||||||
|
|
||||||
type Payload = {
|
type Payload = {
|
||||||
customerId: string;
|
customerId: string;
|
@ -1,7 +1,7 @@
|
|||||||
import { Queue } from "quirrel/blitz";
|
import { Queue } from "quirrel/blitz";
|
||||||
import twilio from "twilio";
|
import twilio from "twilio";
|
||||||
|
|
||||||
import db from "../../../db";
|
import db from "../../../../db";
|
||||||
|
|
||||||
type Payload = {
|
type Payload = {
|
||||||
id: string;
|
id: string;
|
@ -1,7 +1,7 @@
|
|||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import { faPaperPlane } from "@fortawesome/pro-regular-svg-icons";
|
import { faPaperPlane } from "@fortawesome/pro-regular-svg-icons";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { useMutation, useQuery, useRouter } from "blitz";
|
import { useMutation, useQuery } from "blitz";
|
||||||
|
|
||||||
import sendMessage from "../mutations/send-message";
|
import sendMessage from "../mutations/send-message";
|
||||||
import { Direction, Message, MessageStatus } from "../../../db";
|
import { Direction, Message, MessageStatus } from "../../../db";
|
||||||
|
@ -6,7 +6,7 @@ import db, { Direction, MessageStatus } from "../../../db";
|
|||||||
import getCurrentCustomer from "../../customers/queries/get-current-customer";
|
import getCurrentCustomer from "../../customers/queries/get-current-customer";
|
||||||
import getCustomerPhoneNumber from "../../phone-numbers/queries/get-customer-phone-number";
|
import getCustomerPhoneNumber from "../../phone-numbers/queries/get-customer-phone-number";
|
||||||
import { encrypt } from "../../../db/_encryption";
|
import { encrypt } from "../../../db/_encryption";
|
||||||
import sendMessageQueue from "../../api/queue/send-message";
|
import sendMessageQueue from "../../messages/api/queue/send-message";
|
||||||
import appLogger from "../../../integrations/logger";
|
import appLogger from "../../../integrations/logger";
|
||||||
|
|
||||||
const logger = appLogger.child({ mutation: "send-message" });
|
const logger = appLogger.child({ mutation: "send-message" });
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Queue } from "quirrel/blitz";
|
import { Queue } from "quirrel/blitz";
|
||||||
import twilio from "twilio";
|
import twilio from "twilio";
|
||||||
|
|
||||||
import db from "../../../db";
|
import db from "../../../../db";
|
||||||
|
|
||||||
type Payload = {
|
type Payload = {
|
||||||
customerId: string;
|
customerId: string;
|
@ -4,9 +4,9 @@ import twilio from "twilio";
|
|||||||
|
|
||||||
import db from "../../../db";
|
import db from "../../../db";
|
||||||
import getCurrentCustomer from "../../customers/queries/get-current-customer";
|
import getCurrentCustomer from "../../customers/queries/get-current-customer";
|
||||||
import fetchMessagesQueue from "../../api/queue/fetch-messages";
|
import fetchMessagesQueue from "../../messages/api/queue/fetch-messages";
|
||||||
import fetchCallsQueue from "../../api/queue/fetch-calls";
|
import fetchCallsQueue from "../../phone-calls/api/queue/fetch-calls";
|
||||||
import setTwilioWebhooks from "../../api/queue/set-twilio-webhooks";
|
import setTwilioWebhooks from "../api/queue/set-twilio-webhooks";
|
||||||
|
|
||||||
const Body = z.object({
|
const Body = z.object({
|
||||||
phoneNumberSid: z.string(),
|
phoneNumberSid: z.string(),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Queue } from "quirrel/blitz";
|
import { Queue } from "quirrel/blitz";
|
||||||
import twilio from "twilio";
|
import twilio from "twilio";
|
||||||
|
|
||||||
import db from "../../../db";
|
import db from "../../../../db";
|
||||||
import insertCallsQueue from "./insert-calls";
|
import insertCallsQueue from "./insert-calls";
|
||||||
|
|
||||||
type Payload = {
|
type Payload = {
|
@ -1,7 +1,7 @@
|
|||||||
import { Queue } from "quirrel/blitz";
|
import { Queue } from "quirrel/blitz";
|
||||||
import type { CallInstance } from "twilio/lib/rest/api/v2010/account/call";
|
import type { CallInstance } from "twilio/lib/rest/api/v2010/account/call";
|
||||||
|
|
||||||
import db, { Direction, CallStatus } from "../../../db";
|
import db, { Direction, CallStatus } from "../../../../db";
|
||||||
|
|
||||||
type Payload = {
|
type Payload = {
|
||||||
customerId: string;
|
customerId: string;
|
Loading…
Reference in New Issue
Block a user