@cloudflare/workers-types 4.20230724.0 → 4.20230807.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.
@@ -1104,12 +1104,28 @@ declare abstract class Fetcher {
1104
1104
  queue(
1105
1105
  queueName: string,
1106
1106
  messages: ServiceBindingQueueMessage[]
1107
- ): Promise<QueueResponse>;
1107
+ ): Promise<FetcherQueueResult>;
1108
+ scheduled(options?: FetcherScheduledOptions): Promise<FetcherScheduledResult>;
1108
1109
  }
1109
1110
  declare interface FetcherPutOptions {
1110
1111
  expiration?: number;
1111
1112
  expirationTtl?: number;
1112
1113
  }
1114
+ declare interface FetcherScheduledOptions {
1115
+ scheduledTime?: Date;
1116
+ cron?: string;
1117
+ }
1118
+ declare interface FetcherScheduledResult {
1119
+ outcome: string;
1120
+ noRetry: boolean;
1121
+ }
1122
+ declare interface FetcherQueueResult {
1123
+ outcome: string;
1124
+ retryAll: boolean;
1125
+ ackAll: boolean;
1126
+ explicitRetries: string[];
1127
+ explicitAcks: string[];
1128
+ }
1113
1129
  declare interface ServiceBindingQueueMessage<Body = unknown> {
1114
1130
  id: string;
1115
1131
  timestamp: Date;
@@ -1237,13 +1253,6 @@ declare interface MessageSendRequest<Body = unknown> {
1237
1253
  body: Body;
1238
1254
  contentType?: QueueContentType;
1239
1255
  }
1240
- declare interface QueueResponse {
1241
- outcome: number;
1242
- retryAll: boolean;
1243
- ackAll: boolean;
1244
- explicitRetries: string[];
1245
- explicitAcks: string[];
1246
- }
1247
1256
  declare interface Message<Body = unknown> {
1248
1257
  readonly id: string;
1249
1258
  readonly timestamp: Date;
@@ -1937,6 +1946,7 @@ declare interface SqlStorage {
1937
1946
  declare abstract class SqlStorageStatement {}
1938
1947
  declare abstract class SqlStorageCursor {
1939
1948
  raw(): IterableIterator<((ArrayBuffer | string | number) | null)[]>;
1949
+ get columnNames(): string[];
1940
1950
  [Symbol.iterator](): IterableIterator<
1941
1951
  Record<string, (ArrayBuffer | string | number) | null>
1942
1952
  >;
@@ -1106,12 +1106,28 @@ export declare abstract class Fetcher {
1106
1106
  queue(
1107
1107
  queueName: string,
1108
1108
  messages: ServiceBindingQueueMessage[]
1109
- ): Promise<QueueResponse>;
1109
+ ): Promise<FetcherQueueResult>;
1110
+ scheduled(options?: FetcherScheduledOptions): Promise<FetcherScheduledResult>;
1110
1111
  }
1111
1112
  export interface FetcherPutOptions {
1112
1113
  expiration?: number;
1113
1114
  expirationTtl?: number;
1114
1115
  }
1116
+ export interface FetcherScheduledOptions {
1117
+ scheduledTime?: Date;
1118
+ cron?: string;
1119
+ }
1120
+ export interface FetcherScheduledResult {
1121
+ outcome: string;
1122
+ noRetry: boolean;
1123
+ }
1124
+ export interface FetcherQueueResult {
1125
+ outcome: string;
1126
+ retryAll: boolean;
1127
+ ackAll: boolean;
1128
+ explicitRetries: string[];
1129
+ explicitAcks: string[];
1130
+ }
1115
1131
  export interface ServiceBindingQueueMessage<Body = unknown> {
1116
1132
  id: string;
1117
1133
  timestamp: Date;
@@ -1239,13 +1255,6 @@ export interface MessageSendRequest<Body = unknown> {
1239
1255
  body: Body;
1240
1256
  contentType?: QueueContentType;
1241
1257
  }
1242
- export interface QueueResponse {
1243
- outcome: number;
1244
- retryAll: boolean;
1245
- ackAll: boolean;
1246
- explicitRetries: string[];
1247
- explicitAcks: string[];
1248
- }
1249
1258
  export interface Message<Body = unknown> {
1250
1259
  readonly id: string;
1251
1260
  readonly timestamp: Date;
@@ -1942,6 +1951,7 @@ export interface SqlStorage {
1942
1951
  export declare abstract class SqlStorageStatement {}
1943
1952
  export declare abstract class SqlStorageCursor {
1944
1953
  raw(): IterableIterator<((ArrayBuffer | string | number) | null)[]>;
1954
+ get columnNames(): string[];
1945
1955
  [Symbol.iterator](): IterableIterator<
1946
1956
  Record<string, (ArrayBuffer | string | number) | null>
1947
1957
  >;
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20230724.0"
10
+ "version": "4.20230807.0"
11
11
  }