@pilot-status/sdk 0.1.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -14
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +16 -1
- package/dist/client.js.map +1 -1
- package/dist/http.d.ts +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/messages.test.d.ts +2 -0
- package/dist/messages.test.d.ts.map +1 -0
- package/dist/messages.test.js +107 -0
- package/dist/messages.test.js.map +1 -0
- package/dist/numbers.test.d.ts +2 -0
- package/dist/numbers.test.d.ts.map +1 -0
- package/dist/numbers.test.js +57 -0
- package/dist/numbers.test.js.map +1 -0
- package/dist/resources/api-keys.d.ts.map +1 -1
- package/dist/resources/api-keys.js +3 -0
- package/dist/resources/api-keys.js.map +1 -1
- package/dist/resources/groups.d.ts +8 -0
- package/dist/resources/groups.d.ts.map +1 -0
- package/dist/resources/groups.js +13 -0
- package/dist/resources/groups.js.map +1 -0
- package/dist/resources/groups.test.d.ts +2 -0
- package/dist/resources/groups.test.d.ts.map +1 -0
- package/dist/resources/groups.test.js +19 -0
- package/dist/resources/groups.test.js.map +1 -0
- package/dist/resources/media.d.ts +8 -0
- package/dist/resources/media.d.ts.map +1 -0
- package/dist/resources/media.js +14 -0
- package/dist/resources/media.js.map +1 -0
- package/dist/resources/messages.d.ts +2 -2
- package/dist/resources/messages.d.ts.map +1 -1
- package/dist/resources/messages.js +26 -7
- package/dist/resources/messages.js.map +1 -1
- package/dist/resources/newsletters.d.ts +8 -0
- package/dist/resources/newsletters.d.ts.map +1 -0
- package/dist/resources/newsletters.js +13 -0
- package/dist/resources/newsletters.js.map +1 -0
- package/dist/resources/newsletters.test.d.ts +2 -0
- package/dist/resources/newsletters.test.d.ts.map +1 -0
- package/dist/resources/newsletters.test.js +19 -0
- package/dist/resources/newsletters.test.js.map +1 -0
- package/dist/resources/numbers.d.ts +5 -1
- package/dist/resources/numbers.d.ts.map +1 -1
- package/dist/resources/numbers.js +30 -0
- package/dist/resources/numbers.js.map +1 -1
- package/dist/resources/remote-pairing.d.ts +10 -0
- package/dist/resources/remote-pairing.d.ts.map +1 -0
- package/dist/resources/remote-pairing.js +25 -0
- package/dist/resources/remote-pairing.js.map +1 -0
- package/dist/resources/templates.d.ts +9 -0
- package/dist/resources/templates.d.ts.map +1 -0
- package/dist/resources/templates.js +19 -0
- package/dist/resources/templates.js.map +1 -0
- package/dist/resources/templates.test.d.ts +2 -0
- package/dist/resources/templates.test.d.ts.map +1 -0
- package/dist/resources/templates.test.js +28 -0
- package/dist/resources/templates.test.js.map +1 -0
- package/dist/types.d.ts +123 -15
- package/dist/types.d.ts.map +1 -1
- package/dist/webhooks/parse.d.ts.map +1 -1
- package/dist/webhooks/parse.js +101 -68
- package/dist/webhooks/parse.js.map +1 -1
- package/dist/webhooks/types.d.ts +105 -76
- package/dist/webhooks/types.d.ts.map +1 -1
- package/dist/webhooks/types.js +7 -0
- package/dist/webhooks/types.js.map +1 -1
- package/package.json +8 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { describe, it, expect, vi } from "vitest";
|
|
2
|
+
import { NewslettersResource } from "./newsletters.js";
|
|
3
|
+
function mockHttp() {
|
|
4
|
+
return {
|
|
5
|
+
requestJson: vi.fn(),
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
describe("NewslettersResource", () => {
|
|
9
|
+
it("should call GET /v1/newsletters on list", async () => {
|
|
10
|
+
const http = mockHttp();
|
|
11
|
+
const newsletters = new NewslettersResource(http);
|
|
12
|
+
await newsletters.list();
|
|
13
|
+
expect(http.requestJson).toHaveBeenCalledWith(expect.objectContaining({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/v1/newsletters",
|
|
16
|
+
}));
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=newsletters.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"newsletters.test.js","sourceRoot":"","sources":["../../src/resources/newsletters.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGvD,SAAS,QAAQ;IACb,OAAO;QACH,WAAW,EAAE,EAAE,CAAC,EAAE,EAAE;KAChB,CAAC;AACb,CAAC;AAED,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;QACrD,MAAM,IAAI,GAAG,QAAQ,EAAE,CAAC;QACxB,MAAM,WAAW,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAElD,MAAM,WAAW,CAAC,IAAI,EAAE,CAAC;QAEzB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,oBAAoB,CACzC,MAAM,CAAC,gBAAgB,CAAC;YACpB,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,iBAAiB;SAC1B,CAAC,CACL,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type { HttpClient } from "../http.js";
|
|
2
|
-
import type { CreateNumberInput, CreateNumberResult, NumberStatusResult } from "../types.js";
|
|
2
|
+
import type { CreateNumberInput, CreateNumberResult, DeleteNumberResult, NumberConnectResult, NumberStatusResult, RemotePairingInput, RemotePairingResult, WhatsAppNumberListItem } from "../types.js";
|
|
3
3
|
export declare class NumbersResource {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(http: HttpClient);
|
|
6
6
|
create(input: CreateNumberInput): Promise<CreateNumberResult>;
|
|
7
|
+
list(): Promise<WhatsAppNumberListItem[]>;
|
|
8
|
+
connect(id: string): Promise<NumberConnectResult>;
|
|
7
9
|
getStatus(id: string): Promise<NumberStatusResult>;
|
|
10
|
+
delete(id: string): Promise<DeleteNumberResult>;
|
|
11
|
+
remotePairing(input: RemotePairingInput): Promise<RemotePairingResult>;
|
|
8
12
|
}
|
|
9
13
|
//# sourceMappingURL=numbers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../src/resources/numbers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../src/resources/numbers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EACR,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACzB,MAAM,aAAa,CAAC;AAErB,qBAAa,eAAe;;gBAGZ,IAAI,EAAE,UAAU;IAItB,MAAM,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAYjE,IAAI,IAAI,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAOrC,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAOjD,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAOlD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAO/C,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAY/E"}
|
|
@@ -14,11 +14,41 @@ export class NumbersResource {
|
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
+
async list() {
|
|
18
|
+
return this.#http.requestJson({
|
|
19
|
+
method: "GET",
|
|
20
|
+
path: "/v1/numbers",
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
async connect(id) {
|
|
24
|
+
return this.#http.requestJson({
|
|
25
|
+
method: "GET",
|
|
26
|
+
path: `/v1/numbers/${encodeURIComponent(id)}/connect`,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
17
29
|
async getStatus(id) {
|
|
18
30
|
return this.#http.requestJson({
|
|
19
31
|
method: "GET",
|
|
20
32
|
path: `/v1/numbers/${encodeURIComponent(id)}/status`,
|
|
21
33
|
});
|
|
22
34
|
}
|
|
35
|
+
async delete(id) {
|
|
36
|
+
return this.#http.requestJson({
|
|
37
|
+
method: "DELETE",
|
|
38
|
+
path: `/v1/numbers/${encodeURIComponent(id)}`,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
async remotePairing(input) {
|
|
42
|
+
return this.#http.requestJson({
|
|
43
|
+
method: "POST",
|
|
44
|
+
path: "/v1/numbers/remote-pairing",
|
|
45
|
+
body: {
|
|
46
|
+
name: input.name,
|
|
47
|
+
number: input.number,
|
|
48
|
+
...(input.linkToApiKey !== undefined ? { linkToApiKey: input.linkToApiKey } : {}),
|
|
49
|
+
...(input.sendViaWhatsApp !== undefined ? { sendViaWhatsApp: input.sendViaWhatsApp } : {}),
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
}
|
|
23
53
|
}
|
|
24
54
|
//# sourceMappingURL=numbers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../src/resources/numbers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"numbers.js","sourceRoot":"","sources":["../../src/resources/numbers.ts"],"names":[],"mappings":"AAYA,MAAM,OAAO,eAAe;IACf,KAAK,CAAa;IAE3B,YAAY,IAAgB;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAA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AAE,MAAM;YACd,IAAI,EAAE,4BAA4B;YAClC,IAAI,EAAE;gBACF,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,GAAG,CAAC,KAAK,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3F,GAAG,CAAC,KAAK,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC3F;SACF,CAAC,CAAC;IACL,CAAC;CACA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { RemotePairingConnectResult, RemotePairingInfo, RemotePairingStatus } from "../types.js";
|
|
3
|
+
export declare class RemotePairingResource {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
getInfo(token: string): Promise<RemotePairingInfo>;
|
|
7
|
+
getStatus(token: string): Promise<RemotePairingStatus>;
|
|
8
|
+
connect(token: string): Promise<RemotePairingConnectResult>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=remote-pairing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-pairing.d.ts","sourceRoot":"","sources":["../../src/resources/remote-pairing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EACV,0BAA0B,EAC1B,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAErB,qBAAa,qBAAqB;;gBAGpB,IAAI,EAAE,UAAU;IAItB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAOlD,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAOtD,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAMlE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export class RemotePairingResource {
|
|
2
|
+
#http;
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.#http = http;
|
|
5
|
+
}
|
|
6
|
+
async getInfo(token) {
|
|
7
|
+
return this.#http.requestJson({
|
|
8
|
+
method: "GET",
|
|
9
|
+
path: `/v1/remote-pairing/${encodeURIComponent(token)}`,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
async getStatus(token) {
|
|
13
|
+
return this.#http.requestJson({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: `/v1/remote-pairing/${encodeURIComponent(token)}/status`,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
async connect(token) {
|
|
19
|
+
return this.#http.requestJson({
|
|
20
|
+
method: "POST",
|
|
21
|
+
path: `/v1/remote-pairing/${encodeURIComponent(token)}/connect`,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=remote-pairing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-pairing.js","sourceRoot":"","sources":["../../src/resources/remote-pairing.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,qBAAqB;IACvB,KAAK,CAAa;IAE3B,YAAY,IAAgB;QAC1B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAoB;YAC/C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,sBAAsB,kBAAkB,CAAC,KAAK,CAAC,EAAE;SACxD,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,KAAa;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAsB;YACjD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,sBAAsB,kBAAkB,CAAC,KAAK,CAAC,SAAS;SAC/D,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAA6B;YACxD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,sBAAsB,kBAAkB,CAAC,KAAK,CAAC,UAAU;SAChE,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HttpClient } from "../http.js";
|
|
2
|
+
import type { TemplateDetail, TemplateListItem } from "../types.js";
|
|
3
|
+
export declare class TemplatesResource {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
list(): Promise<TemplateListItem[]>;
|
|
7
|
+
get(id: string): Promise<TemplateDetail>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/resources/templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpE,qBAAa,iBAAiB;;gBAGd,IAAI,EAAE,UAAU;IAItB,IAAI,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAOnC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAMjD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class TemplatesResource {
|
|
2
|
+
#http;
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.#http = http;
|
|
5
|
+
}
|
|
6
|
+
async list() {
|
|
7
|
+
return this.#http.requestJson({
|
|
8
|
+
method: "GET",
|
|
9
|
+
path: "/v1/templates",
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
async get(id) {
|
|
13
|
+
return this.#http.requestJson({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: `/v1/templates/${encodeURIComponent(id)}`,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/resources/templates.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,iBAAiB;IACjB,KAAK,CAAa;IAE3B,YAAY,IAAgB;QACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAqB;YAC9C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,eAAe;SACxB,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAiB;YAC1C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,iBAAiB,kBAAkB,CAAC,EAAE,CAAC,EAAE;SAClD,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.test.d.ts","sourceRoot":"","sources":["../../src/resources/templates.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { describe, it, expect, vi } from "vitest";
|
|
2
|
+
import { TemplatesResource } from "./templates.js";
|
|
3
|
+
function mockHttp() {
|
|
4
|
+
return {
|
|
5
|
+
requestJson: vi.fn(),
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
describe("TemplatesResource", () => {
|
|
9
|
+
it("should call GET /v1/templates on list", async () => {
|
|
10
|
+
const http = mockHttp();
|
|
11
|
+
const templates = new TemplatesResource(http);
|
|
12
|
+
await templates.list();
|
|
13
|
+
expect(http.requestJson).toHaveBeenCalledWith(expect.objectContaining({
|
|
14
|
+
method: "GET",
|
|
15
|
+
path: "/v1/templates",
|
|
16
|
+
}));
|
|
17
|
+
});
|
|
18
|
+
it("should call GET /v1/templates/:id on get", async () => {
|
|
19
|
+
const http = mockHttp();
|
|
20
|
+
const templates = new TemplatesResource(http);
|
|
21
|
+
await templates.get("tpl_1");
|
|
22
|
+
expect(http.requestJson).toHaveBeenCalledWith(expect.objectContaining({
|
|
23
|
+
method: "GET",
|
|
24
|
+
path: "/v1/templates/tpl_1",
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=templates.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.test.js","sourceRoot":"","sources":["../../src/resources/templates.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGnD,SAAS,QAAQ;IACb,OAAO;QACH,WAAW,EAAE,EAAE,CAAC,EAAE,EAAE;KAChB,CAAC;AACb,CAAC;AAED,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;QACnD,MAAM,IAAI,GAAG,QAAQ,EAAE,CAAC;QACxB,MAAM,SAAS,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAE9C,MAAM,SAAS,CAAC,IAAI,EAAE,CAAC;QAEvB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,oBAAoB,CACzC,MAAM,CAAC,gBAAgB,CAAC;YACpB,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,eAAe;SACxB,CAAC,CACL,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;QACtD,MAAM,IAAI,GAAG,QAAQ,EAAE,CAAC;QACxB,MAAM,SAAS,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAE9C,MAAM,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAE7B,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,oBAAoB,CACzC,MAAM,CAAC,gBAAgB,CAAC;YACpB,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,qBAAqB;SAC9B,CAAC,CACL,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,57 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export type
|
|
1
|
+
export type MessageStatus = "QUEUED" | "SENT" | "DELIVERED" | "FAILED" | "READ" | "CANCELED";
|
|
2
|
+
export type ButtonType = "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "COPY_CODE";
|
|
3
|
+
export type Button = {
|
|
4
|
+
type: ButtonType;
|
|
5
|
+
label: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
phone_number?: string;
|
|
8
|
+
example?: string[];
|
|
9
|
+
};
|
|
10
|
+
export type MarketingOptions = {
|
|
11
|
+
aiRewriteEnabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type SendMessageHeader = {
|
|
14
|
+
type: "text" | "image" | "video" | "document";
|
|
15
|
+
content: string;
|
|
16
|
+
};
|
|
17
|
+
export type CancelMessagesResult = {
|
|
18
|
+
cancelled: string[];
|
|
19
|
+
failed: Array<{
|
|
20
|
+
id: string;
|
|
21
|
+
reason: string;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export type RemotePairingInfo = {
|
|
25
|
+
valid: boolean;
|
|
26
|
+
name?: string;
|
|
27
|
+
maskedNumber?: string;
|
|
28
|
+
state?: string;
|
|
29
|
+
reason?: string;
|
|
30
|
+
};
|
|
31
|
+
export type RemotePairingStatus = {
|
|
32
|
+
state: string;
|
|
33
|
+
isFullyConnected: boolean;
|
|
34
|
+
};
|
|
35
|
+
export type RemotePairingConnectResult = {
|
|
36
|
+
qrcodeBase64: string | null;
|
|
37
|
+
pairingCode: string | null;
|
|
38
|
+
};
|
|
3
39
|
export type SendMessageInput = {
|
|
4
|
-
templateId
|
|
5
|
-
destinationNumber
|
|
40
|
+
templateId?: string;
|
|
41
|
+
destinationNumber?: string;
|
|
42
|
+
groupId?: string;
|
|
43
|
+
newsletterId?: string;
|
|
6
44
|
variables?: Record<string, string>;
|
|
45
|
+
labels?: string[];
|
|
7
46
|
deliverAt?: string;
|
|
8
47
|
deliverUntil?: string;
|
|
48
|
+
marketingOptions?: MarketingOptions;
|
|
49
|
+
media?: string;
|
|
50
|
+
mediaType?: "image" | "video" | "document";
|
|
51
|
+
buttons?: Button[];
|
|
52
|
+
text?: string;
|
|
53
|
+
header?: SendMessageHeader;
|
|
54
|
+
footer?: string;
|
|
9
55
|
};
|
|
10
56
|
export type SendMessageAccepted = {
|
|
11
57
|
id: string;
|
|
@@ -13,6 +59,7 @@ export type SendMessageAccepted = {
|
|
|
13
59
|
status: MessageStatus;
|
|
14
60
|
createdAt: string;
|
|
15
61
|
origin: string;
|
|
62
|
+
sourceNumber: string | null;
|
|
16
63
|
};
|
|
17
64
|
export type MessageDetails = {
|
|
18
65
|
id: string;
|
|
@@ -44,20 +91,11 @@ export type DashboardStats = {
|
|
|
44
91
|
read: number;
|
|
45
92
|
};
|
|
46
93
|
};
|
|
47
|
-
export type OptInCheckResult = {
|
|
48
|
-
authorized: boolean;
|
|
49
|
-
required: boolean;
|
|
50
|
-
enabled: boolean;
|
|
51
|
-
reason: "OPTIN_DISABLED" | "NON_DEFAULT_INSTANCE" | "NOT_LIVE" | "MISSING_PROJECT" | "INVALID_PHONE" | "NO_OPTIN" | null;
|
|
52
|
-
firstOptInAt: string | null;
|
|
53
|
-
lastSeenAt: string | null;
|
|
54
|
-
};
|
|
55
94
|
export type Project = {
|
|
56
95
|
id: string;
|
|
57
96
|
name: string;
|
|
58
97
|
slug: string;
|
|
59
98
|
description: string;
|
|
60
|
-
productionApproved: boolean;
|
|
61
99
|
createdAt: string;
|
|
62
100
|
};
|
|
63
101
|
export type CreateProjectInput = {
|
|
@@ -68,24 +106,24 @@ export type ApiKeyCreateInput = {
|
|
|
68
106
|
name: string;
|
|
69
107
|
webhookId?: string | null;
|
|
70
108
|
whatsappInstanceId?: string | null;
|
|
109
|
+
whatsappNumberId?: string | null;
|
|
71
110
|
retentionDays?: number;
|
|
72
111
|
};
|
|
73
112
|
export type ApiKeyCreated = {
|
|
74
113
|
id: string;
|
|
75
114
|
name: string;
|
|
76
|
-
environment: Environment;
|
|
77
115
|
key: string;
|
|
78
116
|
keyPrefix: string;
|
|
79
117
|
createdAt: string;
|
|
80
118
|
webhookId: string | null;
|
|
81
119
|
whatsappInstanceId: string | null;
|
|
120
|
+
whatsappNumberId: string | null;
|
|
82
121
|
retentionDays: number;
|
|
83
122
|
};
|
|
84
123
|
export type ApiKeyListItem = {
|
|
85
124
|
id: string;
|
|
86
125
|
name: string;
|
|
87
126
|
keyPrefix: string;
|
|
88
|
-
environment: Environment;
|
|
89
127
|
lastUsedAt: string | null;
|
|
90
128
|
createdAt: string;
|
|
91
129
|
webhookId: string | null;
|
|
@@ -105,6 +143,23 @@ export type ApiKeyListItem = {
|
|
|
105
143
|
} | null;
|
|
106
144
|
retentionDays: number;
|
|
107
145
|
};
|
|
146
|
+
export type NumberListItemApiKeyRef = {
|
|
147
|
+
name: string;
|
|
148
|
+
keyPrefix: string;
|
|
149
|
+
keyLast4: string | null;
|
|
150
|
+
};
|
|
151
|
+
export type WhatsAppNumberListItem = {
|
|
152
|
+
id: string;
|
|
153
|
+
instanceName: string;
|
|
154
|
+
number: string;
|
|
155
|
+
createdAt: string;
|
|
156
|
+
updatedAt: string;
|
|
157
|
+
lastValidatedAt?: string;
|
|
158
|
+
name: string;
|
|
159
|
+
apiKeys: NumberListItemApiKeyRef[];
|
|
160
|
+
state: string;
|
|
161
|
+
isFullyConnected: boolean;
|
|
162
|
+
};
|
|
108
163
|
export type WhatsAppNumberInstance = {
|
|
109
164
|
id: string;
|
|
110
165
|
tenantId: string;
|
|
@@ -118,19 +173,72 @@ export type WhatsAppNumberInstance = {
|
|
|
118
173
|
name: string;
|
|
119
174
|
status: string;
|
|
120
175
|
quality: "GOOD" | "UNKNOWN";
|
|
176
|
+
isFullyConnected?: boolean;
|
|
121
177
|
};
|
|
122
178
|
export type CreateNumberInput = {
|
|
123
179
|
name: string;
|
|
124
180
|
number: string;
|
|
125
181
|
linkToApiKey?: boolean;
|
|
126
182
|
};
|
|
183
|
+
export type NumberLinkBundle = {
|
|
184
|
+
qrcodeBase64: string | null;
|
|
185
|
+
pairingCode: string | null;
|
|
186
|
+
};
|
|
127
187
|
export type CreateNumberResult = {
|
|
128
188
|
instance: WhatsAppNumberInstance;
|
|
129
189
|
qrcodeBase64: string | null;
|
|
190
|
+
pairingCode: string | null;
|
|
130
191
|
linkedApiKeyId: string | null;
|
|
131
192
|
};
|
|
193
|
+
export type NumberConnectResult = {
|
|
194
|
+
qrcodeBase64: string | null;
|
|
195
|
+
pairingCode: string | null;
|
|
196
|
+
};
|
|
132
197
|
export type NumberStatusResult = {
|
|
133
198
|
id: string;
|
|
134
199
|
state: string;
|
|
135
200
|
};
|
|
201
|
+
export type RemotePairingInput = {
|
|
202
|
+
name: string;
|
|
203
|
+
number: string;
|
|
204
|
+
linkToApiKey?: boolean;
|
|
205
|
+
sendViaWhatsApp?: boolean;
|
|
206
|
+
};
|
|
207
|
+
export type RemotePairingResult = {
|
|
208
|
+
instance: WhatsAppNumberInstance;
|
|
209
|
+
linkedApiKeyId: string | null;
|
|
210
|
+
};
|
|
211
|
+
export type TemplateListItem = {
|
|
212
|
+
id: string;
|
|
213
|
+
name: string;
|
|
214
|
+
category: string;
|
|
215
|
+
latestVersion?: {
|
|
216
|
+
variables?: string[];
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
export type TemplateDetail = {
|
|
220
|
+
id: string;
|
|
221
|
+
name: string;
|
|
222
|
+
category: string;
|
|
223
|
+
latestVersion?: {
|
|
224
|
+
variables?: string[];
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
export type GroupListItem = {
|
|
228
|
+
id: string;
|
|
229
|
+
subject: string;
|
|
230
|
+
};
|
|
231
|
+
export type NewsletterListItem = {
|
|
232
|
+
id: string;
|
|
233
|
+
name: string;
|
|
234
|
+
};
|
|
235
|
+
export type DeleteNumberResult = {
|
|
236
|
+
success: boolean;
|
|
237
|
+
};
|
|
238
|
+
export type MediaDownloadResult = {
|
|
239
|
+
base64: string;
|
|
240
|
+
mimeType: string;
|
|
241
|
+
fileName: string | null;
|
|
242
|
+
mediaId: string;
|
|
243
|
+
};
|
|
136
244
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE7F,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,KAAK,GAAG,cAAc,GAAG,WAAW,CAAC;AAE9E,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,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GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/webhooks/parse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/webhooks/parse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAuKvD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,oBAAoB,CAE3E;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,oBAAoB,CAExF"}
|