Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit e9b3b2d

Browse files
committed
add dist/platform.d.ts
1 parent d458f56 commit e9b3b2d

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

dist/platform.d.ts

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
import * as t from "io-ts";
2+
export declare const SendConfigEmail: t.PartialC<{
3+
html: t.StringC;
4+
subject: t.StringC;
5+
text: t.StringC;
6+
}>;
7+
export declare type SendConfigEmail = t.TypeOf<typeof SendConfigEmail>;
8+
export declare const SendConfigHTTP: t.IntersectionC<[t.ExactC<t.TypeC<{
9+
method: t.StringC;
10+
url: t.StringC;
11+
}>>, t.PartialC<{
12+
auth: t.ExactC<t.TypeC<{
13+
password: t.StringC;
14+
username: t.StringC;
15+
}>>;
16+
data: t.UnionC<[t.StringC, t.ObjectC]>;
17+
headers: t.ObjectC;
18+
params: t.ObjectC;
19+
}>]>;
20+
export declare type SendConfigHTTP = t.TypeOf<typeof SendConfigHTTP>;
21+
export declare const SendConfigS3: t.ExactC<t.TypeC<{
22+
bucket: t.StringC;
23+
payload: t.UnionC<[t.StringC, t.ObjectC]>;
24+
prefix: t.StringC;
25+
}>>;
26+
export declare type SendConfigS3 = t.TypeOf<typeof SendConfigS3>;
27+
export declare const SendConfigSQL: t.ExactC<t.TypeC<{
28+
payload: t.UnionC<[t.StringC, t.ObjectC]>;
29+
table: t.StringC;
30+
}>>;
31+
export declare type SendConfigSQL = t.TypeOf<typeof SendConfigSQL>;
32+
export declare const SendConfigSnowflake: t.ExactC<t.TypeC<{
33+
account: t.StringC;
34+
database: t.StringC;
35+
host: t.StringC;
36+
payload: t.UnionC<[t.StringC, t.ObjectC]>;
37+
pipe_name: t.StringC;
38+
private_key: t.StringC;
39+
schema: t.StringC;
40+
stage_name: t.StringC;
41+
user: t.StringC;
42+
}>>;
43+
export declare type SendConfigSnowflake = t.TypeOf<typeof SendConfigSnowflake>;
44+
export declare const SendConfigSSE: t.ExactC<t.TypeC<{
45+
channel: t.StringC;
46+
payload: t.UnionC<[t.StringC, t.ObjectC]>;
47+
}>>;
48+
export declare type SendConfigSSE = t.TypeOf<typeof SendConfigSSE>;
49+
interface SendFunctionsWrapper {
50+
email: (config: SendConfigEmail) => void;
51+
http: (config: SendConfigHTTP) => void;
52+
s3: (config: SendConfigS3) => void;
53+
sql: (config: SendConfigSQL) => void;
54+
snowflake: (config: SendConfigSnowflake) => void;
55+
sse: (config: SendConfigSSE) => void;
56+
}
57+
export declare const sendTypeMap: {
58+
email: t.PartialC<{
59+
html: t.StringC;
60+
subject: t.StringC;
61+
text: t.StringC;
62+
}>;
63+
http: t.IntersectionC<[t.ExactC<t.TypeC<{
64+
method: t.StringC;
65+
url: t.StringC;
66+
}>>, t.PartialC<{
67+
auth: t.ExactC<t.TypeC<{
68+
password: t.StringC;
69+
username: t.StringC;
70+
}>>;
71+
data: t.UnionC<[t.StringC, t.ObjectC]>;
72+
headers: t.ObjectC;
73+
params: t.ObjectC;
74+
}>]>;
75+
s3: t.ExactC<t.TypeC<{
76+
bucket: t.StringC;
77+
payload: t.UnionC<[t.StringC, t.ObjectC]>;
78+
prefix: t.StringC;
79+
}>>;
80+
sql: t.ExactC<t.TypeC<{
81+
payload: t.UnionC<[t.StringC, t.ObjectC]>;
82+
table: t.StringC;
83+
}>>;
84+
snowflake: t.ExactC<t.TypeC<{
85+
account: t.StringC;
86+
database: t.StringC;
87+
host: t.StringC;
88+
payload: t.UnionC<[t.StringC, t.ObjectC]>;
89+
pipe_name: t.StringC;
90+
private_key: t.StringC;
91+
schema: t.StringC;
92+
stage_name: t.StringC;
93+
user: t.StringC;
94+
}>>;
95+
sse: t.ExactC<t.TypeC<{
96+
channel: t.StringC;
97+
payload: t.UnionC<[t.StringC, t.ObjectC]>;
98+
}>>;
99+
};
100+
export declare let $event: any;
101+
export declare const END_NEEDLE = "__pd_end";
102+
export declare function $end(message?: string): void;
103+
export declare let $send: SendFunctionsWrapper;
104+
export declare const $sendConfigRuntimeTypeChecker: {};
105+
export {};

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"declaration": true,
34
"module": "commonjs",
45
"outDir": "./dist",
56
"strictNullChecks": true,

0 commit comments

Comments
 (0)