metamigo-api: runs in docker now

* great typescript module import refactor
* refactor metamigo-cli so it is the entrypoint for the db, api, and
  worker
This commit is contained in:
Abel Luck 2023-06-02 14:05:20 +00:00
parent b45e2e8c11
commit 696ba16cb7
78 changed files with 319 additions and 180 deletions

View file

@ -1,4 +1,4 @@
import { SignaldGeneratedApi, JsonMessageEnvelopev1 } from "./generated";
import { SignaldGeneratedApi, JsonMessageEnvelopev1 } from "./generated.js";
export class SignaldAPI extends SignaldGeneratedApi {
constructor() {

View file

@ -2,7 +2,7 @@
Date: Mon Jan 03 2022 09:59:39 GMT+0000 (Coordinated Universal Time)
Version: 0.15.0-40-56a6c9d2
*/
import { JSONTransport } from "./util";
import { JSONTransport } from "./util.js";
export type JsonAccountListv0 = {
accounts?: JsonAccountv0[];

View file

@ -1,5 +1,5 @@
export { SignaldAPI } from "./api";
export { JSONTransport, EventTypes } from "./util";
export { SignaldError, CaptchaRequiredException } from "./error";
import "./util";
export * from "./generated";
export { SignaldAPI } from "./api.js";
export { JSONTransport, EventTypes } from "./util.js";
export { SignaldError, CaptchaRequiredException } from "./error.js";
import "./util.js";
export * from "./generated.js";

View file

@ -2,7 +2,7 @@ import EventEmitter from "eventemitter3";
import { v4 as uuid } from "uuid";
import * as backoff from "backoff";
import * as net from "net";
import { throwOnError } from "./error";
import { throwOnError } from "./error.js";
export interface EventTypes {
/**