@cloudflare/workers-types 4.20230801.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.
- package/experimental/index.d.ts +17 -8
- package/experimental/index.ts +17 -8
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -1104,12 +1104,28 @@ declare abstract class Fetcher {
|
|
|
1104
1104
|
queue(
|
|
1105
1105
|
queueName: string,
|
|
1106
1106
|
messages: ServiceBindingQueueMessage[]
|
|
1107
|
-
): Promise<
|
|
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;
|
package/experimental/index.ts
CHANGED
|
@@ -1106,12 +1106,28 @@ export declare abstract class Fetcher {
|
|
|
1106
1106
|
queue(
|
|
1107
1107
|
queueName: string,
|
|
1108
1108
|
messages: ServiceBindingQueueMessage[]
|
|
1109
|
-
): Promise<
|
|
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;
|
package/package.json
CHANGED