@develit-io/backend-sdk 5.30.3 → 5.30.4

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.
@@ -1,252 +0,0 @@
1
- import * as alchemy_cloudflare from 'alchemy/cloudflare';
2
- import { KVNamespace, D1Database, Queue, R2Bucket, DurableObjectNamespace, Bindings, Worker } from 'alchemy/cloudflare';
3
- import { P as Project } from '../shared/backend-sdk.CP78x0gl.cjs';
4
- import { E as Environment } from '../shared/backend-sdk.CYcpgphg.cjs';
5
- import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.CdngrAa0.cjs';
6
- export { c as composeWorkerArguments, e as extractWorkerCrons, a as extractWorkerVars, l as loadWorkerConfig } from '../shared/backend-sdk.CdngrAa0.cjs';
7
-
8
- declare class Deployment {
9
- project: Project;
10
- environment: Environment;
11
- constructor({ project }: {
12
- project: Project;
13
- });
14
- /**
15
- * Finalizes the deployment and correctly quits the Alchemy process.
16
- */
17
- /**
18
- * Creates an instance of Cloudflare KV.
19
- */
20
- kv(options: {
21
- /**
22
- * Name of the instance. Do not include a 'kv' prefix.
23
- */
24
- resourceName: string;
25
- }): Promise<KVNamespace>;
26
- /**
27
- * Creates an instance of Cloudflare D1.
28
- */
29
- d1(options: {
30
- /**
31
- * Name of the instance. Do not include a 'd1' prefix.
32
- */
33
- resourceName: string;
34
- }): Promise<D1Database>;
35
- /**
36
- * Creates an instance of Cloudflare Queue. A DLQ is created automatically.
37
- */
38
- queue(options: {
39
- /**
40
- * Name of the instance. Do not include a 'queue' prefix.
41
- */
42
- resourceName: string;
43
- /**
44
- * The number of seconds to delay delivery of messages to the instance.
45
- */
46
- deliveryDelay?: number;
47
- /**
48
- * The number of seconds a message will remain in the instance before being deleted.
49
- */
50
- messageRetentionPeriod?: number;
51
- }): Promise<Queue<unknown>>;
52
- /**
53
- * Creates an instance of Cloudflare Queue as a DLQ.
54
- */
55
- dlq(options: {
56
- /**
57
- * Name of the instance. Do not include a 'dlq' or 'queue' prefix.
58
- */
59
- resourceName: string;
60
- /**
61
- * The number of seconds to delay delivery of messages to the instance.
62
- */
63
- deliveryDelay?: number;
64
- /**
65
- * The number of seconds a message will remain in the instance before being deleted.
66
- */
67
- messageRetentionPeriod?: number;
68
- }): Promise<Queue<unknown>>;
69
- /**
70
- * Creates an instance of Cloudflare R2.
71
- */
72
- r2(options: {
73
- /**
74
- * Name of the instance. Do not include an 'r2' prefix.
75
- */
76
- resourceName: string;
77
- /**
78
- * The storage class that the instance should take on.
79
- */
80
- storageClass?: 'Standard' | 'InfrequentAccess';
81
- }): Promise<R2Bucket>;
82
- /**
83
- * Creates an instance of Cloudflare Durable Object.
84
- */
85
- durableObject(options: {
86
- /**
87
- * Name of the instance class. Do not include a 'durable-object' or 'do' prefix.
88
- */
89
- className: string;
90
- }): Promise<DurableObjectNamespace<any>>;
91
- /**
92
- * Creates an instance of Cloudflare Worker.
93
- */
94
- worker(options: {
95
- /**
96
- * Name of the instance. Do not include the 'worker' prefix.
97
- */
98
- resourceName: string;
99
- /**
100
- * Type of the instance.
101
- */
102
- resource?: WorkerType$1;
103
- /**
104
- * Path to the root of the instance.
105
- */
106
- path: string;
107
- /**
108
- * Custom domains to bind to the instance.
109
- */
110
- domains?: string[];
111
- /**
112
- * Static assets for the instance.
113
- */
114
- assets?: Bindings;
115
- /**
116
- * Cron expressions for the triggers of the instange.
117
- */
118
- crons?: string[];
119
- /**
120
- * Bindings of the instance.
121
- */
122
- bindings?: Bindings;
123
- /**
124
- * Event sources for the instance to consume.
125
- */
126
- eventSources?: Queue[];
127
- }): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
128
- /**
129
- * Creates an instance of Cloudflare Worker as a service.
130
- */
131
- service(options: {
132
- /**
133
- * Name of the instance. Do not include a 'service' prefix.
134
- */
135
- resourceName: string;
136
- /**
137
- * Bindings of the instance.
138
- */
139
- bindings?: Bindings;
140
- /**
141
- * Event sources for the instance to consume.
142
- */
143
- eventSources?: Queue[];
144
- }): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
145
- /**
146
- * Creates an instance of Cloudflare Worker as an orchestrator.
147
- */
148
- orchestrator(options: {
149
- /**
150
- * Name of the instance. Do not include an 'orchestrator' prefix.
151
- */
152
- resourceName: string;
153
- /**
154
- * Custom domains to bind to the instance.
155
- */
156
- domains?: string[];
157
- /**
158
- * Bindings of the instance.
159
- */
160
- bindings?: Bindings;
161
- /**
162
- * Event sources for the instance to consume.
163
- */
164
- eventSources?: Queue[];
165
- }): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
166
- /**
167
- * Creates an instance of Cloudflare Worker as a client.
168
- */
169
- client(options: {
170
- /**
171
- * Name of the instance. Do not include a 'client' prefix.
172
- */
173
- resourceName: string;
174
- /**
175
- * Custom domains to bind to the instance.
176
- */
177
- domains?: string[];
178
- /**
179
- * Bindings of the instance.
180
- */
181
- bindings?: Bindings;
182
- /**
183
- * Environment variables of the instance.
184
- */
185
- variables?: Bindings;
186
- }): Promise<Worker<{
187
- [x: string]: alchemy_cloudflare.Binding;
188
- } & {
189
- ASSETS: alchemy_cloudflare.Assets;
190
- }>>;
191
- }
192
-
193
- declare const composeD1Arguments: ({ resourceName, }: {
194
- resourceName: string;
195
- }) => {
196
- name: string;
197
- primaryLocationHint: "weur";
198
- };
199
-
200
- declare const composeDlqArguments: ({ resourceName, deliveryDelay, messageRetentionPeriod, }: {
201
- resourceName: string;
202
- deliveryDelay?: number;
203
- messageRetentionPeriod?: number;
204
- }) => {
205
- name: string;
206
- settings: {
207
- deliveryDelay: number;
208
- messageRetentionPeriod: number;
209
- };
210
- };
211
-
212
- declare const composeKvArguments: ({ resourceName, }: {
213
- resourceName: string;
214
- }) => {
215
- title: string;
216
- };
217
-
218
- declare const composeQueueArguments: ({ resourceName, dlq, deliveryDelay, messageRetentionPeriod, }: {
219
- resourceName: string;
220
- dlq: Queue;
221
- deliveryDelay?: number;
222
- messageRetentionPeriod?: number;
223
- }) => {
224
- name: string;
225
- dlq: Queue;
226
- settings: {
227
- deliveryDelay: number;
228
- messageRetentionPeriod: number;
229
- };
230
- };
231
-
232
- declare const composeR2Arguments: ({ resourceName, storageClass, }: {
233
- resourceName: string;
234
- storageClass?: "Standard" | "InfrequentAccess";
235
- }) => {
236
- name: string;
237
- storageClass: "Standard" | "InfrequentAccess";
238
- jurisdiction: "eu";
239
- locationHint: string;
240
- };
241
-
242
- declare const composeIdentifierName: ({ resource, resourceName, }: {
243
- resource: Resource | WorkerType;
244
- resourceName: string;
245
- }) => string;
246
- declare const composeResourceName: ({ project, environment, resourceName, }: {
247
- project: Project;
248
- environment: Environment;
249
- resourceName: string;
250
- }) => string;
251
-
252
- export { Deployment, composeD1Arguments, composeDlqArguments, composeIdentifierName, composeKvArguments, composeQueueArguments, composeR2Arguments, composeResourceName };
@@ -1,252 +0,0 @@
1
- import * as alchemy_cloudflare from 'alchemy/cloudflare';
2
- import { KVNamespace, D1Database, Queue, R2Bucket, DurableObjectNamespace, Bindings, Worker } from 'alchemy/cloudflare';
3
- import { P as Project } from '../shared/backend-sdk.CP78x0gl.mjs';
4
- import { E as Environment } from '../shared/backend-sdk.CYcpgphg.mjs';
5
- import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.C-0xIdM4.mjs';
6
- export { c as composeWorkerArguments, e as extractWorkerCrons, a as extractWorkerVars, l as loadWorkerConfig } from '../shared/backend-sdk.C-0xIdM4.mjs';
7
-
8
- declare class Deployment {
9
- project: Project;
10
- environment: Environment;
11
- constructor({ project }: {
12
- project: Project;
13
- });
14
- /**
15
- * Finalizes the deployment and correctly quits the Alchemy process.
16
- */
17
- /**
18
- * Creates an instance of Cloudflare KV.
19
- */
20
- kv(options: {
21
- /**
22
- * Name of the instance. Do not include a 'kv' prefix.
23
- */
24
- resourceName: string;
25
- }): Promise<KVNamespace>;
26
- /**
27
- * Creates an instance of Cloudflare D1.
28
- */
29
- d1(options: {
30
- /**
31
- * Name of the instance. Do not include a 'd1' prefix.
32
- */
33
- resourceName: string;
34
- }): Promise<D1Database>;
35
- /**
36
- * Creates an instance of Cloudflare Queue. A DLQ is created automatically.
37
- */
38
- queue(options: {
39
- /**
40
- * Name of the instance. Do not include a 'queue' prefix.
41
- */
42
- resourceName: string;
43
- /**
44
- * The number of seconds to delay delivery of messages to the instance.
45
- */
46
- deliveryDelay?: number;
47
- /**
48
- * The number of seconds a message will remain in the instance before being deleted.
49
- */
50
- messageRetentionPeriod?: number;
51
- }): Promise<Queue<unknown>>;
52
- /**
53
- * Creates an instance of Cloudflare Queue as a DLQ.
54
- */
55
- dlq(options: {
56
- /**
57
- * Name of the instance. Do not include a 'dlq' or 'queue' prefix.
58
- */
59
- resourceName: string;
60
- /**
61
- * The number of seconds to delay delivery of messages to the instance.
62
- */
63
- deliveryDelay?: number;
64
- /**
65
- * The number of seconds a message will remain in the instance before being deleted.
66
- */
67
- messageRetentionPeriod?: number;
68
- }): Promise<Queue<unknown>>;
69
- /**
70
- * Creates an instance of Cloudflare R2.
71
- */
72
- r2(options: {
73
- /**
74
- * Name of the instance. Do not include an 'r2' prefix.
75
- */
76
- resourceName: string;
77
- /**
78
- * The storage class that the instance should take on.
79
- */
80
- storageClass?: 'Standard' | 'InfrequentAccess';
81
- }): Promise<R2Bucket>;
82
- /**
83
- * Creates an instance of Cloudflare Durable Object.
84
- */
85
- durableObject(options: {
86
- /**
87
- * Name of the instance class. Do not include a 'durable-object' or 'do' prefix.
88
- */
89
- className: string;
90
- }): Promise<DurableObjectNamespace<any>>;
91
- /**
92
- * Creates an instance of Cloudflare Worker.
93
- */
94
- worker(options: {
95
- /**
96
- * Name of the instance. Do not include the 'worker' prefix.
97
- */
98
- resourceName: string;
99
- /**
100
- * Type of the instance.
101
- */
102
- resource?: WorkerType$1;
103
- /**
104
- * Path to the root of the instance.
105
- */
106
- path: string;
107
- /**
108
- * Custom domains to bind to the instance.
109
- */
110
- domains?: string[];
111
- /**
112
- * Static assets for the instance.
113
- */
114
- assets?: Bindings;
115
- /**
116
- * Cron expressions for the triggers of the instange.
117
- */
118
- crons?: string[];
119
- /**
120
- * Bindings of the instance.
121
- */
122
- bindings?: Bindings;
123
- /**
124
- * Event sources for the instance to consume.
125
- */
126
- eventSources?: Queue[];
127
- }): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
128
- /**
129
- * Creates an instance of Cloudflare Worker as a service.
130
- */
131
- service(options: {
132
- /**
133
- * Name of the instance. Do not include a 'service' prefix.
134
- */
135
- resourceName: string;
136
- /**
137
- * Bindings of the instance.
138
- */
139
- bindings?: Bindings;
140
- /**
141
- * Event sources for the instance to consume.
142
- */
143
- eventSources?: Queue[];
144
- }): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
145
- /**
146
- * Creates an instance of Cloudflare Worker as an orchestrator.
147
- */
148
- orchestrator(options: {
149
- /**
150
- * Name of the instance. Do not include an 'orchestrator' prefix.
151
- */
152
- resourceName: string;
153
- /**
154
- * Custom domains to bind to the instance.
155
- */
156
- domains?: string[];
157
- /**
158
- * Bindings of the instance.
159
- */
160
- bindings?: Bindings;
161
- /**
162
- * Event sources for the instance to consume.
163
- */
164
- eventSources?: Queue[];
165
- }): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
166
- /**
167
- * Creates an instance of Cloudflare Worker as a client.
168
- */
169
- client(options: {
170
- /**
171
- * Name of the instance. Do not include a 'client' prefix.
172
- */
173
- resourceName: string;
174
- /**
175
- * Custom domains to bind to the instance.
176
- */
177
- domains?: string[];
178
- /**
179
- * Bindings of the instance.
180
- */
181
- bindings?: Bindings;
182
- /**
183
- * Environment variables of the instance.
184
- */
185
- variables?: Bindings;
186
- }): Promise<Worker<{
187
- [x: string]: alchemy_cloudflare.Binding;
188
- } & {
189
- ASSETS: alchemy_cloudflare.Assets;
190
- }>>;
191
- }
192
-
193
- declare const composeD1Arguments: ({ resourceName, }: {
194
- resourceName: string;
195
- }) => {
196
- name: string;
197
- primaryLocationHint: "weur";
198
- };
199
-
200
- declare const composeDlqArguments: ({ resourceName, deliveryDelay, messageRetentionPeriod, }: {
201
- resourceName: string;
202
- deliveryDelay?: number;
203
- messageRetentionPeriod?: number;
204
- }) => {
205
- name: string;
206
- settings: {
207
- deliveryDelay: number;
208
- messageRetentionPeriod: number;
209
- };
210
- };
211
-
212
- declare const composeKvArguments: ({ resourceName, }: {
213
- resourceName: string;
214
- }) => {
215
- title: string;
216
- };
217
-
218
- declare const composeQueueArguments: ({ resourceName, dlq, deliveryDelay, messageRetentionPeriod, }: {
219
- resourceName: string;
220
- dlq: Queue;
221
- deliveryDelay?: number;
222
- messageRetentionPeriod?: number;
223
- }) => {
224
- name: string;
225
- dlq: Queue;
226
- settings: {
227
- deliveryDelay: number;
228
- messageRetentionPeriod: number;
229
- };
230
- };
231
-
232
- declare const composeR2Arguments: ({ resourceName, storageClass, }: {
233
- resourceName: string;
234
- storageClass?: "Standard" | "InfrequentAccess";
235
- }) => {
236
- name: string;
237
- storageClass: "Standard" | "InfrequentAccess";
238
- jurisdiction: "eu";
239
- locationHint: string;
240
- };
241
-
242
- declare const composeIdentifierName: ({ resource, resourceName, }: {
243
- resource: Resource | WorkerType;
244
- resourceName: string;
245
- }) => string;
246
- declare const composeResourceName: ({ project, environment, resourceName, }: {
247
- project: Project;
248
- environment: Environment;
249
- resourceName: string;
250
- }) => string;
251
-
252
- export { Deployment, composeD1Arguments, composeDlqArguments, composeIdentifierName, composeKvArguments, composeQueueArguments, composeR2Arguments, composeResourceName };