@meetploy/cli 1.19.0 → 1.20.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/dist/index.js +1 -62
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6354,6 +6354,7 @@ ${varProps}
|
|
|
6354
6354
|
}
|
|
6355
6355
|
const lines = [
|
|
6356
6356
|
"// This file is auto-generated by `ploy types`. Do not edit manually.",
|
|
6357
|
+
'/// <reference types="@meetploy/types/globals" />',
|
|
6357
6358
|
""
|
|
6358
6359
|
];
|
|
6359
6360
|
lines.push('declare module "@meetploy/nextjs" {');
|
|
@@ -6364,69 +6365,7 @@ ${varProps}
|
|
|
6364
6365
|
lines.push(" }");
|
|
6365
6366
|
lines.push("}");
|
|
6366
6367
|
lines.push("");
|
|
6367
|
-
const p = "@meetploy/types";
|
|
6368
6368
|
lines.push("declare global {");
|
|
6369
|
-
lines.push(
|
|
6370
|
-
` type PloyHandler<TEnv = unknown> = import("${p}").PloyHandler<TEnv>;`
|
|
6371
|
-
);
|
|
6372
|
-
lines.push(` type Ploy = PloyHandler<PloyEnv>;`);
|
|
6373
|
-
lines.push(` interface PloyRequest {`);
|
|
6374
|
-
lines.push(` readonly method: string;`);
|
|
6375
|
-
lines.push(` readonly url: string;`);
|
|
6376
|
-
lines.push(` readonly headers: Headers;`);
|
|
6377
|
-
lines.push(` readonly redirect: string;`);
|
|
6378
|
-
lines.push(` readonly signal: AbortSignal;`);
|
|
6379
|
-
lines.push(` readonly integrity: string;`);
|
|
6380
|
-
lines.push(` readonly keepalive: boolean;`);
|
|
6381
|
-
lines.push(` readonly body: ReadableStream | null;`);
|
|
6382
|
-
lines.push(` readonly bodyUsed: boolean;`);
|
|
6383
|
-
lines.push(` clone(): PloyRequest;`);
|
|
6384
|
-
lines.push(` arrayBuffer(): Promise<ArrayBuffer>;`);
|
|
6385
|
-
lines.push(` bytes(): Promise<Uint8Array>;`);
|
|
6386
|
-
lines.push(` text(): Promise<string>;`);
|
|
6387
|
-
lines.push(` json<T>(): Promise<T>;`);
|
|
6388
|
-
lines.push(` formData(): Promise<FormData>;`);
|
|
6389
|
-
lines.push(` blob(): Promise<Blob>;`);
|
|
6390
|
-
lines.push(` }`);
|
|
6391
|
-
lines.push("");
|
|
6392
|
-
lines.push(` interface PloyResponse {`);
|
|
6393
|
-
lines.push(` readonly status: number;`);
|
|
6394
|
-
lines.push(` readonly statusText: string;`);
|
|
6395
|
-
lines.push(` readonly headers: Headers;`);
|
|
6396
|
-
lines.push(` readonly ok: boolean;`);
|
|
6397
|
-
lines.push(` readonly redirected: boolean;`);
|
|
6398
|
-
lines.push(` readonly url: string;`);
|
|
6399
|
-
lines.push(` readonly body: ReadableStream | null;`);
|
|
6400
|
-
lines.push(` readonly bodyUsed: boolean;`);
|
|
6401
|
-
lines.push(` clone(): PloyResponse;`);
|
|
6402
|
-
lines.push(` arrayBuffer(): Promise<ArrayBuffer>;`);
|
|
6403
|
-
lines.push(` bytes(): Promise<Uint8Array>;`);
|
|
6404
|
-
lines.push(` text(): Promise<string>;`);
|
|
6405
|
-
lines.push(` json<T>(): Promise<T>;`);
|
|
6406
|
-
lines.push(` formData(): Promise<FormData>;`);
|
|
6407
|
-
lines.push(` blob(): Promise<Blob>;`);
|
|
6408
|
-
lines.push(` }`);
|
|
6409
|
-
lines.push("");
|
|
6410
|
-
lines.push(` // Binding types`);
|
|
6411
|
-
lines.push(` type D1Database = import("${p}").D1Database;`);
|
|
6412
|
-
lines.push(` type CacheBinding = import("${p}").CacheBinding;`);
|
|
6413
|
-
lines.push(` type QueueBinding = import("${p}").QueueBinding;`);
|
|
6414
|
-
lines.push(` type StateBinding = import("${p}").StateBinding;`);
|
|
6415
|
-
lines.push(` type WorkflowBinding = import("${p}").WorkflowBinding;`);
|
|
6416
|
-
lines.push(` type FileStorageBinding = import("${p}").FileStorageBinding;`);
|
|
6417
|
-
lines.push(` type TimerBinding = import("${p}").TimerBinding;`);
|
|
6418
|
-
lines.push(` type PloyAuth = import("${p}").PloyAuth;`);
|
|
6419
|
-
lines.push(` type PloyUser = import("${p}").PloyUser;`);
|
|
6420
|
-
lines.push("");
|
|
6421
|
-
lines.push(` // Handler and context types`);
|
|
6422
|
-
lines.push(
|
|
6423
|
-
` type WorkflowContext<TEnv = unknown, TInput = unknown> = import("${p}").WorkflowContext<TEnv, TInput>;`
|
|
6424
|
-
);
|
|
6425
|
-
lines.push(` type QueueMessageEvent = import("${p}").QueueMessageEvent;`);
|
|
6426
|
-
lines.push(` type ScheduledEvent = import("${p}").ScheduledEvent;`);
|
|
6427
|
-
lines.push(` type TimerEvent = import("${p}").TimerEvent;`);
|
|
6428
|
-
lines.push(` type ExecutionContext = import("${p}").ExecutionContext;`);
|
|
6429
|
-
lines.push("");
|
|
6430
6369
|
lines.push(" interface PloyEnv {");
|
|
6431
6370
|
for (const prop of properties) {
|
|
6432
6371
|
lines.push(` ${prop}`);
|