@fragno-dev/cloudflare-fragment 0.0.1
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/LICENSE.md +16 -0
- package/README.md +92 -0
- package/dist/browser/client/react.d.ts +290 -0
- package/dist/browser/client/react.d.ts.map +1 -0
- package/dist/browser/client/react.js +166 -0
- package/dist/browser/client/react.js.map +1 -0
- package/dist/browser/client/solid.d.ts +292 -0
- package/dist/browser/client/solid.d.ts.map +1 -0
- package/dist/browser/client/solid.js +136 -0
- package/dist/browser/client/solid.js.map +1 -0
- package/dist/browser/client/svelte.d.ts +287 -0
- package/dist/browser/client/svelte.d.ts.map +1 -0
- package/dist/browser/client/svelte.js +134 -0
- package/dist/browser/client/svelte.js.map +1 -0
- package/dist/browser/client/vanilla.d.ts +316 -0
- package/dist/browser/client/vanilla.d.ts.map +1 -0
- package/dist/browser/client/vanilla.js +160 -0
- package/dist/browser/client/vanilla.js.map +1 -0
- package/dist/browser/client/vue.d.ts +290 -0
- package/dist/browser/client/vue.d.ts.map +1 -0
- package/dist/browser/client/vue.js +133 -0
- package/dist/browser/client/vue.js.map +1 -0
- package/dist/browser/client-Bk-J98pf.d.ts +679 -0
- package/dist/browser/client-Bk-J98pf.d.ts.map +1 -0
- package/dist/browser/index.d.ts +2027 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +27 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/schema-Bt-h9kGf.js +2348 -0
- package/dist/browser/schema-Bt-h9kGf.js.map +1 -0
- package/dist/node/cloudflare-api.d.ts +106 -0
- package/dist/node/cloudflare-api.d.ts.map +1 -0
- package/dist/node/cloudflare-api.js +146 -0
- package/dist/node/cloudflare-api.js.map +1 -0
- package/dist/node/contracts.d.ts +288 -0
- package/dist/node/contracts.d.ts.map +1 -0
- package/dist/node/contracts.js +66 -0
- package/dist/node/contracts.js.map +1 -0
- package/dist/node/definition.d.ts +339 -0
- package/dist/node/definition.d.ts.map +1 -0
- package/dist/node/definition.js +417 -0
- package/dist/node/definition.js.map +1 -0
- package/dist/node/deployment-tag.d.ts +13 -0
- package/dist/node/deployment-tag.d.ts.map +1 -0
- package/dist/node/deployment-tag.js +73 -0
- package/dist/node/deployment-tag.js.map +1 -0
- package/dist/node/index.d.ts +786 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +35 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/routes.d.ts +520 -0
- package/dist/node/routes.d.ts.map +1 -0
- package/dist/node/routes.js +100 -0
- package/dist/node/routes.js.map +1 -0
- package/dist/node/schema.d.ts +11 -0
- package/dist/node/schema.d.ts.map +1 -0
- package/dist/node/schema.js +24 -0
- package/dist/node/schema.js.map +1 -0
- package/dist/node/script-name.d.ts +13 -0
- package/dist/node/script-name.d.ts.map +1 -0
- package/dist/node/script-name.js +35 -0
- package/dist/node/script-name.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +98 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { CloudflareApiClient, CloudflareDispatcherConfig } from "./cloudflare-api.js";
|
|
2
|
+
import { CloudflareDeployRequest } from "./contracts.js";
|
|
3
|
+
import { CloudflareScriptNameConfig } from "./script-name.js";
|
|
4
|
+
import * as _fragno_dev_core0 from "@fragno-dev/core";
|
|
5
|
+
import * as _fragno_dev_db0 from "@fragno-dev/db";
|
|
6
|
+
import { HookFn } from "@fragno-dev/db";
|
|
7
|
+
import * as cloudflare from "cloudflare";
|
|
8
|
+
import { ClientOptions } from "cloudflare";
|
|
9
|
+
import * as _fragno_dev_db_schema0 from "@fragno-dev/db/schema";
|
|
10
|
+
import * as _fragno_dev_db_fragment_definition_builder0 from "@fragno-dev/db/fragment-definition-builder";
|
|
11
|
+
|
|
12
|
+
//#region src/definition.d.ts
|
|
13
|
+
type CloudflareFragmentSharedConfig = CloudflareScriptNameConfig & {
|
|
14
|
+
accountId: string;
|
|
15
|
+
compatibilityDate: string;
|
|
16
|
+
compatibilityFlags?: string[];
|
|
17
|
+
scriptTags?: string[];
|
|
18
|
+
deploymentTagPrefix?: string;
|
|
19
|
+
};
|
|
20
|
+
type CloudflareFragmentApiTokenConfig = {
|
|
21
|
+
apiToken: string;
|
|
22
|
+
cloudflare?: never;
|
|
23
|
+
fetchImplementation?: ClientOptions["fetch"];
|
|
24
|
+
};
|
|
25
|
+
type CloudflareFragmentClientConfig = {
|
|
26
|
+
cloudflare: CloudflareApiClient;
|
|
27
|
+
apiToken?: never;
|
|
28
|
+
fetchImplementation?: never;
|
|
29
|
+
};
|
|
30
|
+
type CloudflareFragmentConfig = CloudflareFragmentSharedConfig & (CloudflareFragmentApiTokenConfig | CloudflareFragmentClientConfig) & ({
|
|
31
|
+
dispatcher: CloudflareDispatcherConfig;
|
|
32
|
+
dispatchNamespace?: never;
|
|
33
|
+
} | {
|
|
34
|
+
dispatchNamespace: string;
|
|
35
|
+
dispatcher?: never;
|
|
36
|
+
});
|
|
37
|
+
type DeployWorkerHookInput = {
|
|
38
|
+
deploymentId: string;
|
|
39
|
+
appId: string;
|
|
40
|
+
expectedLiveEtag: string | null;
|
|
41
|
+
scriptName: string;
|
|
42
|
+
entrypoint: string;
|
|
43
|
+
moduleContent: string;
|
|
44
|
+
compatibilityDate: string;
|
|
45
|
+
compatibilityFlags: string[];
|
|
46
|
+
};
|
|
47
|
+
type CloudflareHooksMap = {
|
|
48
|
+
deployWorker: HookFn<DeployWorkerHookInput>;
|
|
49
|
+
};
|
|
50
|
+
declare const cloudflareFragmentDefinition: _fragno_dev_core0.FragmentDefinition<CloudflareFragmentConfig, _fragno_dev_db0.FragnoPublicConfigWithDatabase, {
|
|
51
|
+
cloudflare: cloudflare.Cloudflare;
|
|
52
|
+
dispatchNamespace: string;
|
|
53
|
+
} & _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<{
|
|
54
|
+
app: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>;
|
|
55
|
+
deployment: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"appId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"format", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"entrypoint", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceCode", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"sourceByteLength", _fragno_dev_db_schema0.Column<"integer", number, number>> & Record<"compatibilityDate", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"compatibilityFlags", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"attemptCount", _fragno_dev_db_schema0.Column<"integer", number | null, number>> & Record<"startedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"completedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"errorCode", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"errorMessage", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareModifiedOn", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"cloudflareResponse", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"app", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"scriptName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"liveDeploymentId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"liveCloudflareEtag", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"firstDeploymentLeaseId", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_app_scriptName", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["scriptName"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_deployment_app_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["appId", "createdAt"]>> & Record<"idx_deployment_status_createdAt", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>, _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status", "createdAt"]>>>;
|
|
56
|
+
}>>, {
|
|
57
|
+
upsertApp: (appId: string) => _fragno_dev_db0.TxResult<{
|
|
58
|
+
id: string;
|
|
59
|
+
scriptName: string;
|
|
60
|
+
latestDeployment: {
|
|
61
|
+
id: string;
|
|
62
|
+
appId: string;
|
|
63
|
+
scriptName: string;
|
|
64
|
+
status: "queued" | "deploying" | "succeeded" | "failed";
|
|
65
|
+
format: "esmodule";
|
|
66
|
+
entrypoint: string;
|
|
67
|
+
sourceByteLength: number;
|
|
68
|
+
compatibilityDate: string;
|
|
69
|
+
compatibilityFlags: string[];
|
|
70
|
+
attemptCount: number;
|
|
71
|
+
queuedAt: string;
|
|
72
|
+
startedAt: string | null;
|
|
73
|
+
completedAt: string | null;
|
|
74
|
+
errorCode: string | null;
|
|
75
|
+
errorMessage: string | null;
|
|
76
|
+
cloudflare: {
|
|
77
|
+
etag: string | null;
|
|
78
|
+
modifiedOn: string | null;
|
|
79
|
+
} | null;
|
|
80
|
+
createdAt: string;
|
|
81
|
+
updatedAt: string;
|
|
82
|
+
} | null;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
}, [{
|
|
86
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
87
|
+
scriptName: string;
|
|
88
|
+
liveDeploymentId: string | null;
|
|
89
|
+
liveCloudflareEtag: string | null;
|
|
90
|
+
firstDeploymentLeaseId: string | null;
|
|
91
|
+
createdAt: Date;
|
|
92
|
+
updatedAt: Date;
|
|
93
|
+
} | null]>;
|
|
94
|
+
queueDeployment: (appId: string, request: CloudflareDeployRequest) => _fragno_dev_db0.TxResult<{
|
|
95
|
+
id: string;
|
|
96
|
+
appId: string;
|
|
97
|
+
scriptName: string;
|
|
98
|
+
status: "queued";
|
|
99
|
+
format: "esmodule";
|
|
100
|
+
entrypoint: string;
|
|
101
|
+
sourceByteLength: number;
|
|
102
|
+
compatibilityDate: string;
|
|
103
|
+
compatibilityFlags: string[];
|
|
104
|
+
attemptCount: number;
|
|
105
|
+
queuedAt: string;
|
|
106
|
+
startedAt: null;
|
|
107
|
+
completedAt: null;
|
|
108
|
+
errorCode: null;
|
|
109
|
+
errorMessage: null;
|
|
110
|
+
cloudflare: null;
|
|
111
|
+
createdAt: string;
|
|
112
|
+
updatedAt: string;
|
|
113
|
+
}, [{
|
|
114
|
+
id: _fragno_dev_db_schema0.FragnoId;
|
|
115
|
+
scriptName: string;
|
|
116
|
+
liveDeploymentId: string | null;
|
|
117
|
+
liveCloudflareEtag: string | null;
|
|
118
|
+
firstDeploymentLeaseId: string | null;
|
|
119
|
+
createdAt: Date;
|
|
120
|
+
updatedAt: Date;
|
|
121
|
+
} | null]>;
|
|
122
|
+
getDeployment: (deploymentId: string) => _fragno_dev_db0.TxResult<{
|
|
123
|
+
id: string;
|
|
124
|
+
appId: string;
|
|
125
|
+
scriptName: string;
|
|
126
|
+
status: "queued" | "deploying" | "succeeded" | "failed";
|
|
127
|
+
format: "esmodule";
|
|
128
|
+
entrypoint: string;
|
|
129
|
+
sourceByteLength: number;
|
|
130
|
+
compatibilityDate: string;
|
|
131
|
+
compatibilityFlags: string[];
|
|
132
|
+
attemptCount: number;
|
|
133
|
+
queuedAt: string;
|
|
134
|
+
startedAt: string | null;
|
|
135
|
+
completedAt: string | null;
|
|
136
|
+
errorCode: string | null;
|
|
137
|
+
errorMessage: string | null;
|
|
138
|
+
cloudflare: {
|
|
139
|
+
etag: string | null;
|
|
140
|
+
modifiedOn: string | null;
|
|
141
|
+
} | null;
|
|
142
|
+
createdAt: string;
|
|
143
|
+
updatedAt: string;
|
|
144
|
+
sourceCode: string;
|
|
145
|
+
} | null, {
|
|
146
|
+
id: string;
|
|
147
|
+
appId: string;
|
|
148
|
+
scriptName: string;
|
|
149
|
+
status: "queued" | "deploying" | "succeeded" | "failed";
|
|
150
|
+
format: "esmodule";
|
|
151
|
+
entrypoint: string;
|
|
152
|
+
sourceByteLength: number;
|
|
153
|
+
compatibilityDate: string;
|
|
154
|
+
compatibilityFlags: string[];
|
|
155
|
+
attemptCount: number;
|
|
156
|
+
queuedAt: string;
|
|
157
|
+
startedAt: string | null;
|
|
158
|
+
completedAt: string | null;
|
|
159
|
+
errorCode: string | null;
|
|
160
|
+
errorMessage: string | null;
|
|
161
|
+
cloudflare: {
|
|
162
|
+
etag: string | null;
|
|
163
|
+
modifiedOn: string | null;
|
|
164
|
+
} | null;
|
|
165
|
+
createdAt: string;
|
|
166
|
+
updatedAt: string;
|
|
167
|
+
sourceCode: string;
|
|
168
|
+
} | null>;
|
|
169
|
+
getAppState: (appId: string) => _fragno_dev_db0.TxResult<{
|
|
170
|
+
liveDeploymentId: string | null;
|
|
171
|
+
liveCloudflareEtag: string | null;
|
|
172
|
+
id: string;
|
|
173
|
+
scriptName: string;
|
|
174
|
+
latestDeployment: {
|
|
175
|
+
id: string;
|
|
176
|
+
appId: string;
|
|
177
|
+
scriptName: string;
|
|
178
|
+
status: "queued" | "deploying" | "succeeded" | "failed";
|
|
179
|
+
format: "esmodule";
|
|
180
|
+
entrypoint: string;
|
|
181
|
+
sourceByteLength: number;
|
|
182
|
+
compatibilityDate: string;
|
|
183
|
+
compatibilityFlags: string[];
|
|
184
|
+
attemptCount: number;
|
|
185
|
+
queuedAt: string;
|
|
186
|
+
startedAt: string | null;
|
|
187
|
+
completedAt: string | null;
|
|
188
|
+
errorCode: string | null;
|
|
189
|
+
errorMessage: string | null;
|
|
190
|
+
cloudflare: {
|
|
191
|
+
etag: string | null;
|
|
192
|
+
modifiedOn: string | null;
|
|
193
|
+
} | null;
|
|
194
|
+
createdAt: string;
|
|
195
|
+
updatedAt: string;
|
|
196
|
+
} | null;
|
|
197
|
+
createdAt: string;
|
|
198
|
+
updatedAt: string;
|
|
199
|
+
} | null, {
|
|
200
|
+
liveDeploymentId: string | null;
|
|
201
|
+
liveCloudflareEtag: string | null;
|
|
202
|
+
id: string;
|
|
203
|
+
scriptName: string;
|
|
204
|
+
latestDeployment: {
|
|
205
|
+
id: string;
|
|
206
|
+
appId: string;
|
|
207
|
+
scriptName: string;
|
|
208
|
+
status: "queued" | "deploying" | "succeeded" | "failed";
|
|
209
|
+
format: "esmodule";
|
|
210
|
+
entrypoint: string;
|
|
211
|
+
sourceByteLength: number;
|
|
212
|
+
compatibilityDate: string;
|
|
213
|
+
compatibilityFlags: string[];
|
|
214
|
+
attemptCount: number;
|
|
215
|
+
queuedAt: string;
|
|
216
|
+
startedAt: string | null;
|
|
217
|
+
completedAt: string | null;
|
|
218
|
+
errorCode: string | null;
|
|
219
|
+
errorMessage: string | null;
|
|
220
|
+
cloudflare: {
|
|
221
|
+
etag: string | null;
|
|
222
|
+
modifiedOn: string | null;
|
|
223
|
+
} | null;
|
|
224
|
+
createdAt: string;
|
|
225
|
+
updatedAt: string;
|
|
226
|
+
} | null;
|
|
227
|
+
createdAt: string;
|
|
228
|
+
updatedAt: string;
|
|
229
|
+
} | null>;
|
|
230
|
+
listApps: () => _fragno_dev_db0.TxResult<{
|
|
231
|
+
id: string;
|
|
232
|
+
scriptName: string;
|
|
233
|
+
latestDeployment: {
|
|
234
|
+
id: string;
|
|
235
|
+
appId: string;
|
|
236
|
+
scriptName: string;
|
|
237
|
+
status: "queued" | "deploying" | "succeeded" | "failed";
|
|
238
|
+
format: "esmodule";
|
|
239
|
+
entrypoint: string;
|
|
240
|
+
sourceByteLength: number;
|
|
241
|
+
compatibilityDate: string;
|
|
242
|
+
compatibilityFlags: string[];
|
|
243
|
+
attemptCount: number;
|
|
244
|
+
queuedAt: string;
|
|
245
|
+
startedAt: string | null;
|
|
246
|
+
completedAt: string | null;
|
|
247
|
+
errorCode: string | null;
|
|
248
|
+
errorMessage: string | null;
|
|
249
|
+
cloudflare: {
|
|
250
|
+
etag: string | null;
|
|
251
|
+
modifiedOn: string | null;
|
|
252
|
+
} | null;
|
|
253
|
+
createdAt: string;
|
|
254
|
+
updatedAt: string;
|
|
255
|
+
} | null;
|
|
256
|
+
createdAt: string;
|
|
257
|
+
updatedAt: string;
|
|
258
|
+
}[], {
|
|
259
|
+
id: string;
|
|
260
|
+
scriptName: string;
|
|
261
|
+
latestDeployment: {
|
|
262
|
+
id: string;
|
|
263
|
+
appId: string;
|
|
264
|
+
scriptName: string;
|
|
265
|
+
status: "queued" | "deploying" | "succeeded" | "failed";
|
|
266
|
+
format: "esmodule";
|
|
267
|
+
entrypoint: string;
|
|
268
|
+
sourceByteLength: number;
|
|
269
|
+
compatibilityDate: string;
|
|
270
|
+
compatibilityFlags: string[];
|
|
271
|
+
attemptCount: number;
|
|
272
|
+
queuedAt: string;
|
|
273
|
+
startedAt: string | null;
|
|
274
|
+
completedAt: string | null;
|
|
275
|
+
errorCode: string | null;
|
|
276
|
+
errorMessage: string | null;
|
|
277
|
+
cloudflare: {
|
|
278
|
+
etag: string | null;
|
|
279
|
+
modifiedOn: string | null;
|
|
280
|
+
} | null;
|
|
281
|
+
createdAt: string;
|
|
282
|
+
updatedAt: string;
|
|
283
|
+
} | null;
|
|
284
|
+
createdAt: string;
|
|
285
|
+
updatedAt: string;
|
|
286
|
+
}[]>;
|
|
287
|
+
listAppDeployments: (appId: string) => _fragno_dev_db0.TxResult<{
|
|
288
|
+
id: string;
|
|
289
|
+
appId: string;
|
|
290
|
+
scriptName: string;
|
|
291
|
+
status: "queued" | "deploying" | "succeeded" | "failed";
|
|
292
|
+
format: "esmodule";
|
|
293
|
+
entrypoint: string;
|
|
294
|
+
sourceByteLength: number;
|
|
295
|
+
compatibilityDate: string;
|
|
296
|
+
compatibilityFlags: string[];
|
|
297
|
+
attemptCount: number;
|
|
298
|
+
queuedAt: string;
|
|
299
|
+
startedAt: string | null;
|
|
300
|
+
completedAt: string | null;
|
|
301
|
+
errorCode: string | null;
|
|
302
|
+
errorMessage: string | null;
|
|
303
|
+
cloudflare: {
|
|
304
|
+
etag: string | null;
|
|
305
|
+
modifiedOn: string | null;
|
|
306
|
+
} | null;
|
|
307
|
+
createdAt: string;
|
|
308
|
+
updatedAt: string;
|
|
309
|
+
}[] | null, {
|
|
310
|
+
id: string;
|
|
311
|
+
appId: string;
|
|
312
|
+
scriptName: string;
|
|
313
|
+
status: "queued" | "deploying" | "succeeded" | "failed";
|
|
314
|
+
format: "esmodule";
|
|
315
|
+
entrypoint: string;
|
|
316
|
+
sourceByteLength: number;
|
|
317
|
+
compatibilityDate: string;
|
|
318
|
+
compatibilityFlags: string[];
|
|
319
|
+
attemptCount: number;
|
|
320
|
+
queuedAt: string;
|
|
321
|
+
startedAt: string | null;
|
|
322
|
+
completedAt: string | null;
|
|
323
|
+
errorCode: string | null;
|
|
324
|
+
errorMessage: string | null;
|
|
325
|
+
cloudflare: {
|
|
326
|
+
etag: string | null;
|
|
327
|
+
modifiedOn: string | null;
|
|
328
|
+
} | null;
|
|
329
|
+
createdAt: string;
|
|
330
|
+
updatedAt: string;
|
|
331
|
+
}[] | null>;
|
|
332
|
+
}, {
|
|
333
|
+
cloudflare: {
|
|
334
|
+
getClient: () => cloudflare.Cloudflare;
|
|
335
|
+
};
|
|
336
|
+
}, {}, {}, _fragno_dev_db0.DatabaseServiceContext<CloudflareHooksMap>, _fragno_dev_db0.DatabaseRequestContext<CloudflareHooksMap>, _fragno_dev_db_fragment_definition_builder0.DatabaseRequestStorage, []>;
|
|
337
|
+
//#endregion
|
|
338
|
+
export { CloudflareFragmentConfig, CloudflareHooksMap, DeployWorkerHookInput, cloudflareFragmentDefinition };
|
|
339
|
+
//# sourceMappingURL=definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","names":[],"sources":["../../src/definition.ts"],"mappings":";;;;;;;;;;;;KAwFK,8BAAA,GAAiC,0BAAA;EACpC,SAAA;EACA,iBAAA;EACA,kBAAA;EACA,UAAA;EACA,mBAAA;AAAA;AAAA,KAGG,gCAAA;EACH,QAAA;EACA,UAAA;EACA,mBAAA,GAAsB,aAAA;AAAA;AAAA,KAGnB,8BAAA;EACH,UAAA,EAAY,mBAAA;EACZ,QAAA;EACA,mBAAA;AAAA;AAAA,KAGU,wBAAA,GAA2B,8BAAA,IACpC,gCAAA,GAAmC,8BAAA;EAG9B,UAAA,EAAY,0BAAA;EACZ,iBAAA;AAAA;EAGA,iBAAA;EACA,UAAA;AAAA;AAAA,KAII,qBAAA;EACV,YAAA;EACA,KAAA;EACA,gBAAA;EACA,UAAA;EACA,UAAA;EACA,aAAA;EACA,iBAAA;EACA,kBAAA;AAAA;AAAA,KAGU,kBAAA;EACV,YAAA,EAAc,MAAA,CAAO,qBAAA;AAAA;AAAA,cA6JV,4BAAA,oBAA4B,kBAAA,CAAA,wBAAA,EAAA,eAAA,CAAA,8BAAA;cAAA,UAAA,CAAA,UAAA;;;;;;gDA+VD,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAgCM,OAAA,EAAW,uBAAA,qBAAuB,QAAA;;;;;;;;;;;;;;;;;;;;QAAA,sBAAA,CAAA,QAAA;;;;;;;;2CAAA,eAAA,CA0F7B,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAA,eAAA,CAcT,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA,eAAA,CAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA+DO,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAA,UAAA,CAAA,UAAA;EAAA;AAAA"}
|