@crossplane-org/function-sdk-typescript 0.7.0 → 0.8.0-20261008144205-7e86220bd5e6
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/README.md +16 -16
- package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto/google/protobuf/duration.js +0 -3
- package/dist/proto/google/protobuf/duration.js.map +1 -1
- package/dist/proto/google/protobuf/struct.d.ts +35 -24
- package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
- package/dist/proto/google/protobuf/struct.js +8 -6
- package/dist/proto/google/protobuf/struct.js.map +1 -1
- package/dist/proto/run_function.d.ts.map +1 -1
- package/dist/proto/run_function.js +0 -3
- package/dist/proto/run_function.js.map +1 -1
- package/dist/response/response.d.ts +20 -29
- package/dist/response/response.d.ts.map +1 -1
- package/dist/response/response.js +11 -29
- package/dist/response/response.js.map +1 -1
- package/package.json +10 -8
|
@@ -62,7 +62,7 @@ type NamedResource = {
|
|
|
62
62
|
* name: "my-bucket",
|
|
63
63
|
* resource: Resource.fromJSON({ resource: bucketConfig })
|
|
64
64
|
* });
|
|
65
|
-
*
|
|
65
|
+
* setDesiredComposedResources(rsp, dcds);
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
68
|
export declare function updateDesiredComposedResources(cds: {
|
|
@@ -80,7 +80,6 @@ export declare function updateDesiredComposedResources(cds: {
|
|
|
80
80
|
*
|
|
81
81
|
* @param rsp - The RunFunctionResponse to add the result to
|
|
82
82
|
* @param message - The error message describing the fatal condition
|
|
83
|
-
* @returns The updated response
|
|
84
83
|
*
|
|
85
84
|
* @example
|
|
86
85
|
* ```typescript
|
|
@@ -90,7 +89,7 @@ export declare function updateDesiredComposedResources(cds: {
|
|
|
90
89
|
* }
|
|
91
90
|
* ```
|
|
92
91
|
*/
|
|
93
|
-
export declare function fatal(rsp: RunFunctionResponse, message: string):
|
|
92
|
+
export declare function fatal(rsp: RunFunctionResponse, message: string): void;
|
|
94
93
|
/**
|
|
95
94
|
* Add a normal result to the response.
|
|
96
95
|
*
|
|
@@ -137,7 +136,6 @@ export declare function warning(rsp: RunFunctionResponse, message: string): void
|
|
|
137
136
|
*
|
|
138
137
|
* @param rsp - The RunFunctionResponse to update
|
|
139
138
|
* @param dcds - A map of resource names to Resource objects to set as desired
|
|
140
|
-
* @returns The updated response
|
|
141
139
|
*
|
|
142
140
|
* @example
|
|
143
141
|
* ```typescript
|
|
@@ -145,12 +143,12 @@ export declare function warning(rsp: RunFunctionResponse, message: string): void
|
|
|
145
143
|
* dcds["my-deployment"] = Resource.fromJSON({
|
|
146
144
|
* resource: { apiVersion: "apps/v1", kind: "Deployment", ... }
|
|
147
145
|
* });
|
|
148
|
-
*
|
|
146
|
+
* setDesiredComposedResources(rsp, dcds);
|
|
149
147
|
* ```
|
|
150
148
|
*/
|
|
151
149
|
export declare function setDesiredComposedResources(rsp: RunFunctionResponse, dcds: {
|
|
152
150
|
[key: string]: Resource;
|
|
153
|
-
}):
|
|
151
|
+
}): void;
|
|
154
152
|
/**
|
|
155
153
|
* Set desired resources from unstructured Kubernetes objects.
|
|
156
154
|
*
|
|
@@ -164,11 +162,10 @@ export declare function setDesiredComposedResources(rsp: RunFunctionResponse, dc
|
|
|
164
162
|
*
|
|
165
163
|
* @param rsp - The RunFunctionResponse to update
|
|
166
164
|
* @param resources - A map of resource names to unstructured Kubernetes objects
|
|
167
|
-
* @returns The updated response
|
|
168
165
|
*
|
|
169
166
|
* @example
|
|
170
167
|
* ```typescript
|
|
171
|
-
*
|
|
168
|
+
* setDesiredResources(rsp, {
|
|
172
169
|
* "my-bucket": {
|
|
173
170
|
* apiVersion: "s3.aws.upbound.io/v1beta1",
|
|
174
171
|
* kind: "Bucket",
|
|
@@ -184,7 +181,7 @@ export declare function setDesiredComposedResources(rsp: RunFunctionResponse, dc
|
|
|
184
181
|
* });
|
|
185
182
|
* ```
|
|
186
183
|
*/
|
|
187
|
-
export declare function setDesiredResources(rsp: RunFunctionResponse, resources: Record<string, Record<string, unknown>>):
|
|
184
|
+
export declare function setDesiredResources(rsp: RunFunctionResponse, resources: Record<string, Record<string, unknown>>): void;
|
|
188
185
|
/**
|
|
189
186
|
* Update a resource by merging source into target.
|
|
190
187
|
*
|
|
@@ -217,11 +214,10 @@ export declare function update(src: Resource, tgt: Resource): Resource;
|
|
|
217
214
|
* @param params - Object containing the response and status to set
|
|
218
215
|
* @param params.rsp - The RunFunctionResponse to update
|
|
219
216
|
* @param params.status - The status object to merge into the composite resource
|
|
220
|
-
* @returns The updated response
|
|
221
217
|
*
|
|
222
218
|
* @example
|
|
223
219
|
* ```typescript
|
|
224
|
-
*
|
|
220
|
+
* setDesiredCompositeStatus({
|
|
225
221
|
* rsp,
|
|
226
222
|
* status: {
|
|
227
223
|
* phase: "Ready",
|
|
@@ -233,7 +229,7 @@ export declare function update(src: Resource, tgt: Resource): Resource;
|
|
|
233
229
|
export declare function setDesiredCompositeStatus({ rsp, status, }: {
|
|
234
230
|
rsp: RunFunctionResponse;
|
|
235
231
|
status: Record<string, unknown>;
|
|
236
|
-
}):
|
|
232
|
+
}): void;
|
|
237
233
|
/**
|
|
238
234
|
* Set a context key in the response.
|
|
239
235
|
*
|
|
@@ -244,16 +240,15 @@ export declare function setDesiredCompositeStatus({ rsp, status, }: {
|
|
|
244
240
|
* @param rsp - The RunFunctionResponse to update
|
|
245
241
|
* @param key - The context key to set
|
|
246
242
|
* @param value - The value to associate with the key (can be any JSON-serializable value)
|
|
247
|
-
* @returns The updated response
|
|
248
243
|
*
|
|
249
244
|
* @example
|
|
250
245
|
* ```typescript
|
|
251
246
|
* // Set context for next function in pipeline
|
|
252
|
-
*
|
|
253
|
-
*
|
|
247
|
+
* setContextKey(rsp, "database-endpoint", "db.example.com:5432");
|
|
248
|
+
* setContextKey(rsp, "connection-config", { host: "db.example.com", port: 5432 });
|
|
254
249
|
* ```
|
|
255
250
|
*/
|
|
256
|
-
export declare function setContextKey(rsp: RunFunctionResponse, key: string, value: unknown):
|
|
251
|
+
export declare function setContextKey(rsp: RunFunctionResponse, key: string, value: unknown): void;
|
|
257
252
|
/**
|
|
258
253
|
* Set the desired composite resource in the response.
|
|
259
254
|
*
|
|
@@ -266,18 +261,17 @@ export declare function setContextKey(rsp: RunFunctionResponse, key: string, val
|
|
|
266
261
|
* @param rsp - The RunFunctionResponse to update
|
|
267
262
|
* @param resource - The desired composite resource to set
|
|
268
263
|
* @param ready - Optional ready status (READY_TRUE, READY_FALSE, or READY_UNSPECIFIED)
|
|
269
|
-
* @returns The updated response
|
|
270
264
|
*
|
|
271
265
|
* @example
|
|
272
266
|
* ```typescript
|
|
273
267
|
* const composite = getObservedCompositeResource(req);
|
|
274
268
|
* if (composite) {
|
|
275
269
|
* // Modify and set as desired with ready status
|
|
276
|
-
*
|
|
270
|
+
* setDesiredCompositeResource(rsp, composite, Ready.READY_TRUE);
|
|
277
271
|
* }
|
|
278
272
|
* ```
|
|
279
273
|
*/
|
|
280
|
-
export declare function setDesiredCompositeResource(rsp: RunFunctionResponse, resource: Resource, ready?: Ready):
|
|
274
|
+
export declare function setDesiredCompositeResource(rsp: RunFunctionResponse, resource: Resource, ready?: Ready): void;
|
|
281
275
|
/**
|
|
282
276
|
* Set the function output in the response.
|
|
283
277
|
*
|
|
@@ -287,19 +281,18 @@ export declare function setDesiredCompositeResource(rsp: RunFunctionResponse, re
|
|
|
287
281
|
*
|
|
288
282
|
* @param rsp - The RunFunctionResponse to update
|
|
289
283
|
* @param output - The output object to set (must be JSON-serializable)
|
|
290
|
-
* @returns The updated response
|
|
291
284
|
*
|
|
292
285
|
* @example
|
|
293
286
|
* ```typescript
|
|
294
287
|
* // For operation functions
|
|
295
|
-
*
|
|
288
|
+
* setOutput(rsp, {
|
|
296
289
|
* resourcesCreated: 5,
|
|
297
290
|
* status: "success",
|
|
298
291
|
* details: { timestamp: new Date().toISOString() }
|
|
299
292
|
* });
|
|
300
293
|
* ```
|
|
301
294
|
*/
|
|
302
|
-
export declare function setOutput(rsp: RunFunctionResponse, output: Record<string, unknown>):
|
|
295
|
+
export declare function setOutput(rsp: RunFunctionResponse, output: Record<string, unknown>): void;
|
|
303
296
|
/**
|
|
304
297
|
* Add a schema requirement to the response.
|
|
305
298
|
*
|
|
@@ -315,12 +308,11 @@ export declare function setOutput(rsp: RunFunctionResponse, output: Record<strin
|
|
|
315
308
|
* @param name - A unique name to identify this schema requirement
|
|
316
309
|
* @param apiVersion - API version of the resource kind (e.g., "example.org/v1")
|
|
317
310
|
* @param kind - Kind of resource (e.g., "MyResource")
|
|
318
|
-
* @returns The updated response
|
|
319
311
|
*
|
|
320
312
|
* @example
|
|
321
313
|
* ```typescript
|
|
322
314
|
* // Request the OpenAPI schema for an XR type
|
|
323
|
-
*
|
|
315
|
+
* requireSchema(rsp, "xr-schema", "example.org/v1", "MyResource");
|
|
324
316
|
*
|
|
325
317
|
* // In the next function invocation, retrieve the schema:
|
|
326
318
|
* const [schema, ok] = getRequiredSchema(req, "xr-schema");
|
|
@@ -329,7 +321,7 @@ export declare function setOutput(rsp: RunFunctionResponse, output: Record<strin
|
|
|
329
321
|
* }
|
|
330
322
|
* ```
|
|
331
323
|
*/
|
|
332
|
-
export declare function requireSchema(rsp: RunFunctionResponse, name: string, apiVersion: string, kind: string):
|
|
324
|
+
export declare function requireSchema(rsp: RunFunctionResponse, name: string, apiVersion: string, kind: string): void;
|
|
333
325
|
/**
|
|
334
326
|
* Add a resource requirement to the response.
|
|
335
327
|
*
|
|
@@ -344,12 +336,11 @@ export declare function requireSchema(rsp: RunFunctionResponse, name: string, ap
|
|
|
344
336
|
* @param rsp - The RunFunctionResponse to update
|
|
345
337
|
* @param name - A unique name to identify this resource requirement
|
|
346
338
|
* @param selector - The resource selector specifying which resources to fetch
|
|
347
|
-
* @returns The updated response
|
|
348
339
|
*
|
|
349
340
|
* @example
|
|
350
341
|
* ```typescript
|
|
351
342
|
* // Match a specific ConfigMap by name
|
|
352
|
-
*
|
|
343
|
+
* requireResource(rsp, "app-config", {
|
|
353
344
|
* apiVersion: "v1",
|
|
354
345
|
* kind: "ConfigMap",
|
|
355
346
|
* matchName: "my-app-config",
|
|
@@ -357,7 +348,7 @@ export declare function requireSchema(rsp: RunFunctionResponse, name: string, ap
|
|
|
357
348
|
* });
|
|
358
349
|
*
|
|
359
350
|
* // Match all Secrets with specific labels
|
|
360
|
-
*
|
|
351
|
+
* requireResource(rsp, "db-secrets", {
|
|
361
352
|
* apiVersion: "v1",
|
|
362
353
|
* kind: "Secret",
|
|
363
354
|
* matchLabels: {
|
|
@@ -376,5 +367,5 @@ export declare function requireSchema(rsp: RunFunctionResponse, name: string, ap
|
|
|
376
367
|
* }
|
|
377
368
|
* ```
|
|
378
369
|
*/
|
|
379
|
-
export declare function requireResource(rsp: RunFunctionResponse, name: string, selector: ResourceSelector):
|
|
370
|
+
export declare function requireResource(rsp: RunFunctionResponse, name: string, selector: ResourceSelector): void;
|
|
380
371
|
//# sourceMappingURL=response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../src/response/response.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EAEnB,KAAK,EACL,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAGhE;;;GAGG;AACH,QAAA,MAAM,WAAW,EAAE,QAAoC,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,mBAAmB,CAsB/E;AAED,KAAK,aAAa,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;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EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAEzF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,mBAAmB,EACxB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,GACX,IAAI,CAeN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,mBAAmB,EACxB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,gBAAgB,GACzB,IAAI,CAYN"}
|
|
@@ -78,7 +78,7 @@ export function to(req, ttl) {
|
|
|
78
78
|
* name: "my-bucket",
|
|
79
79
|
* resource: Resource.fromJSON({ resource: bucketConfig })
|
|
80
80
|
* });
|
|
81
|
-
*
|
|
81
|
+
* setDesiredComposedResources(rsp, dcds);
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
84
|
export function updateDesiredComposedResources(cds, res) {
|
|
@@ -95,7 +95,6 @@ export function updateDesiredComposedResources(cds, res) {
|
|
|
95
95
|
*
|
|
96
96
|
* @param rsp - The RunFunctionResponse to add the result to
|
|
97
97
|
* @param message - The error message describing the fatal condition
|
|
98
|
-
* @returns The updated response
|
|
99
98
|
*
|
|
100
99
|
* @example
|
|
101
100
|
* ```typescript
|
|
@@ -112,7 +111,6 @@ export function fatal(rsp, message) {
|
|
|
112
111
|
message: message,
|
|
113
112
|
});
|
|
114
113
|
}
|
|
115
|
-
return rsp;
|
|
116
114
|
}
|
|
117
115
|
/**
|
|
118
116
|
* Add a normal result to the response.
|
|
@@ -174,7 +172,6 @@ export function warning(rsp, message) {
|
|
|
174
172
|
*
|
|
175
173
|
* @param rsp - The RunFunctionResponse to update
|
|
176
174
|
* @param dcds - A map of resource names to Resource objects to set as desired
|
|
177
|
-
* @returns The updated response
|
|
178
175
|
*
|
|
179
176
|
* @example
|
|
180
177
|
* ```typescript
|
|
@@ -182,7 +179,7 @@ export function warning(rsp, message) {
|
|
|
182
179
|
* dcds["my-deployment"] = Resource.fromJSON({
|
|
183
180
|
* resource: { apiVersion: "apps/v1", kind: "Deployment", ... }
|
|
184
181
|
* });
|
|
185
|
-
*
|
|
182
|
+
* setDesiredComposedResources(rsp, dcds);
|
|
186
183
|
* ```
|
|
187
184
|
*/
|
|
188
185
|
export function setDesiredComposedResources(rsp, dcds) {
|
|
@@ -192,7 +189,6 @@ export function setDesiredComposedResources(rsp, dcds) {
|
|
|
192
189
|
}
|
|
193
190
|
// Merge the new resources with existing ones
|
|
194
191
|
rsp.desired.resources = merge(rsp.desired.resources || {}, dcds);
|
|
195
|
-
return rsp;
|
|
196
192
|
}
|
|
197
193
|
/**
|
|
198
194
|
* Set desired resources from unstructured Kubernetes objects.
|
|
@@ -207,11 +203,10 @@ export function setDesiredComposedResources(rsp, dcds) {
|
|
|
207
203
|
*
|
|
208
204
|
* @param rsp - The RunFunctionResponse to update
|
|
209
205
|
* @param resources - A map of resource names to unstructured Kubernetes objects
|
|
210
|
-
* @returns The updated response
|
|
211
206
|
*
|
|
212
207
|
* @example
|
|
213
208
|
* ```typescript
|
|
214
|
-
*
|
|
209
|
+
* setDesiredResources(rsp, {
|
|
215
210
|
* "my-bucket": {
|
|
216
211
|
* apiVersion: "s3.aws.upbound.io/v1beta1",
|
|
217
212
|
* kind: "Bucket",
|
|
@@ -239,7 +234,6 @@ export function setDesiredResources(rsp, resources) {
|
|
|
239
234
|
}
|
|
240
235
|
// Merge the new resources with existing ones
|
|
241
236
|
rsp.desired.resources = merge(rsp.desired.resources || {}, convertedResources);
|
|
242
|
-
return rsp;
|
|
243
237
|
}
|
|
244
238
|
/**
|
|
245
239
|
* Update a resource by merging source into target.
|
|
@@ -275,11 +269,10 @@ export function update(src, tgt) {
|
|
|
275
269
|
* @param params - Object containing the response and status to set
|
|
276
270
|
* @param params.rsp - The RunFunctionResponse to update
|
|
277
271
|
* @param params.status - The status object to merge into the composite resource
|
|
278
|
-
* @returns The updated response
|
|
279
272
|
*
|
|
280
273
|
* @example
|
|
281
274
|
* ```typescript
|
|
282
|
-
*
|
|
275
|
+
* setDesiredCompositeStatus({
|
|
283
276
|
* rsp,
|
|
284
277
|
* status: {
|
|
285
278
|
* phase: "Ready",
|
|
@@ -305,7 +298,6 @@ export function setDesiredCompositeStatus({ rsp, status, }) {
|
|
|
305
298
|
rsp.desired.composite.resource = merge(rsp.desired.composite.resource, {
|
|
306
299
|
status: status,
|
|
307
300
|
});
|
|
308
|
-
return rsp;
|
|
309
301
|
}
|
|
310
302
|
/**
|
|
311
303
|
* Set a context key in the response.
|
|
@@ -317,13 +309,12 @@ export function setDesiredCompositeStatus({ rsp, status, }) {
|
|
|
317
309
|
* @param rsp - The RunFunctionResponse to update
|
|
318
310
|
* @param key - The context key to set
|
|
319
311
|
* @param value - The value to associate with the key (can be any JSON-serializable value)
|
|
320
|
-
* @returns The updated response
|
|
321
312
|
*
|
|
322
313
|
* @example
|
|
323
314
|
* ```typescript
|
|
324
315
|
* // Set context for next function in pipeline
|
|
325
|
-
*
|
|
326
|
-
*
|
|
316
|
+
* setContextKey(rsp, "database-endpoint", "db.example.com:5432");
|
|
317
|
+
* setContextKey(rsp, "connection-config", { host: "db.example.com", port: 5432 });
|
|
327
318
|
* ```
|
|
328
319
|
*/
|
|
329
320
|
export function setContextKey(rsp, key, value) {
|
|
@@ -331,7 +322,6 @@ export function setContextKey(rsp, key, value) {
|
|
|
331
322
|
rsp.context = {};
|
|
332
323
|
}
|
|
333
324
|
rsp.context[key] = value;
|
|
334
|
-
return rsp;
|
|
335
325
|
}
|
|
336
326
|
/**
|
|
337
327
|
* Set the desired composite resource in the response.
|
|
@@ -345,14 +335,13 @@ export function setContextKey(rsp, key, value) {
|
|
|
345
335
|
* @param rsp - The RunFunctionResponse to update
|
|
346
336
|
* @param resource - The desired composite resource to set
|
|
347
337
|
* @param ready - Optional ready status (READY_TRUE, READY_FALSE, or READY_UNSPECIFIED)
|
|
348
|
-
* @returns The updated response
|
|
349
338
|
*
|
|
350
339
|
* @example
|
|
351
340
|
* ```typescript
|
|
352
341
|
* const composite = getObservedCompositeResource(req);
|
|
353
342
|
* if (composite) {
|
|
354
343
|
* // Modify and set as desired with ready status
|
|
355
|
-
*
|
|
344
|
+
* setDesiredCompositeResource(rsp, composite, Ready.READY_TRUE);
|
|
356
345
|
* }
|
|
357
346
|
* ```
|
|
358
347
|
*/
|
|
@@ -367,7 +356,6 @@ export function setDesiredCompositeResource(rsp, resource, ready) {
|
|
|
367
356
|
connectionDetails: resource.connectionDetails,
|
|
368
357
|
ready: ready !== undefined ? ready : Ready.READY_UNSPECIFIED,
|
|
369
358
|
});
|
|
370
|
-
return rsp;
|
|
371
359
|
}
|
|
372
360
|
/**
|
|
373
361
|
* Set the function output in the response.
|
|
@@ -378,12 +366,11 @@ export function setDesiredCompositeResource(rsp, resource, ready) {
|
|
|
378
366
|
*
|
|
379
367
|
* @param rsp - The RunFunctionResponse to update
|
|
380
368
|
* @param output - The output object to set (must be JSON-serializable)
|
|
381
|
-
* @returns The updated response
|
|
382
369
|
*
|
|
383
370
|
* @example
|
|
384
371
|
* ```typescript
|
|
385
372
|
* // For operation functions
|
|
386
|
-
*
|
|
373
|
+
* setOutput(rsp, {
|
|
387
374
|
* resourcesCreated: 5,
|
|
388
375
|
* status: "success",
|
|
389
376
|
* details: { timestamp: new Date().toISOString() }
|
|
@@ -392,7 +379,6 @@ export function setDesiredCompositeResource(rsp, resource, ready) {
|
|
|
392
379
|
*/
|
|
393
380
|
export function setOutput(rsp, output) {
|
|
394
381
|
rsp.output = output;
|
|
395
|
-
return rsp;
|
|
396
382
|
}
|
|
397
383
|
/**
|
|
398
384
|
* Add a schema requirement to the response.
|
|
@@ -409,12 +395,11 @@ export function setOutput(rsp, output) {
|
|
|
409
395
|
* @param name - A unique name to identify this schema requirement
|
|
410
396
|
* @param apiVersion - API version of the resource kind (e.g., "example.org/v1")
|
|
411
397
|
* @param kind - Kind of resource (e.g., "MyResource")
|
|
412
|
-
* @returns The updated response
|
|
413
398
|
*
|
|
414
399
|
* @example
|
|
415
400
|
* ```typescript
|
|
416
401
|
* // Request the OpenAPI schema for an XR type
|
|
417
|
-
*
|
|
402
|
+
* requireSchema(rsp, "xr-schema", "example.org/v1", "MyResource");
|
|
418
403
|
*
|
|
419
404
|
* // In the next function invocation, retrieve the schema:
|
|
420
405
|
* const [schema, ok] = getRequiredSchema(req, "xr-schema");
|
|
@@ -438,7 +423,6 @@ export function requireSchema(rsp, name, apiVersion, kind) {
|
|
|
438
423
|
apiVersion,
|
|
439
424
|
kind,
|
|
440
425
|
};
|
|
441
|
-
return rsp;
|
|
442
426
|
}
|
|
443
427
|
/**
|
|
444
428
|
* Add a resource requirement to the response.
|
|
@@ -454,12 +438,11 @@ export function requireSchema(rsp, name, apiVersion, kind) {
|
|
|
454
438
|
* @param rsp - The RunFunctionResponse to update
|
|
455
439
|
* @param name - A unique name to identify this resource requirement
|
|
456
440
|
* @param selector - The resource selector specifying which resources to fetch
|
|
457
|
-
* @returns The updated response
|
|
458
441
|
*
|
|
459
442
|
* @example
|
|
460
443
|
* ```typescript
|
|
461
444
|
* // Match a specific ConfigMap by name
|
|
462
|
-
*
|
|
445
|
+
* requireResource(rsp, "app-config", {
|
|
463
446
|
* apiVersion: "v1",
|
|
464
447
|
* kind: "ConfigMap",
|
|
465
448
|
* matchName: "my-app-config",
|
|
@@ -467,7 +450,7 @@ export function requireSchema(rsp, name, apiVersion, kind) {
|
|
|
467
450
|
* });
|
|
468
451
|
*
|
|
469
452
|
* // Match all Secrets with specific labels
|
|
470
|
-
*
|
|
453
|
+
* requireResource(rsp, "db-secrets", {
|
|
471
454
|
* apiVersion: "v1",
|
|
472
455
|
* kind: "Secret",
|
|
473
456
|
* matchLabels: {
|
|
@@ -498,6 +481,5 @@ export function requireResource(rsp, name, selector) {
|
|
|
498
481
|
rsp.requirements.resources = {};
|
|
499
482
|
}
|
|
500
483
|
rsp.requirements.resources[name] = selector;
|
|
501
|
-
return rsp;
|
|
502
484
|
}
|
|
503
485
|
//# sourceMappingURL=response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../src/response/response.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,mBAAmB,EACnB,QAAQ,EACR,KAAK,EACL,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,GAAa,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,EAAE,CAAC,GAAuB,EAAE,GAAc;IACxD,qCAAqC;IACrC,IAAI,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;IAE1B,uCAAuC;IACvC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACpD,CAAC;IAED,sEAAsE;IACtE,IAAI,OAAO,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;QAC/B,OAAO,CAAC,SAAS,GAAG,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO;QACL,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,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YAAY,EAAE,CAAC;QACtB,GAAG,CAAC,YAAY,GAAG;YACjB,cAAc,EAAE,EAAE;YAClB,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,EAAE;SACZ,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC;QAChC,GAAG,CAAC,YAAY,CAAC,SAAS,GAAG,EAAE,CAAC;IAClC,CAAC;IACD,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC;AAC9C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossplane-org/function-sdk-typescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-20261008144205-7e86220bd5e6",
|
|
4
4
|
"description": "A Crossplane Function SDK for Typescript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"crossplane",
|
|
@@ -43,25 +43,27 @@
|
|
|
43
43
|
"typecheck:legacy": "npx tsc6 --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
+
"@bufbuild/protobuf": "^2.15.0",
|
|
46
47
|
"@grpc/grpc-js": "^1.14.3",
|
|
47
|
-
"@grpc/proto-loader": "^0.8.0",
|
|
48
|
-
"google-protobuf": "^4.0.1",
|
|
49
48
|
"kubernetes-models": "^5.0.0",
|
|
50
49
|
"pino": "^10.1.0",
|
|
51
|
-
"ts-deepmerge": "^8.0.0"
|
|
52
|
-
"ts-proto": "^2.10.1"
|
|
50
|
+
"ts-deepmerge": "^8.0.0"
|
|
53
51
|
},
|
|
54
52
|
"devDependencies": {
|
|
55
53
|
"@eslint/js": "^10.0.0",
|
|
56
|
-
"@types/google-protobuf": "^3.15.12",
|
|
57
54
|
"@types/node": "^25.0.3",
|
|
58
55
|
"@typescript/native": "npm:typescript@^7.0.0",
|
|
59
|
-
"@vitest/coverage-v8": "^
|
|
56
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
60
57
|
"eslint": "^10.0.2",
|
|
61
58
|
"prettier": "^3.7.4",
|
|
62
59
|
"ts-node": "^10.9.2",
|
|
60
|
+
"ts-proto": "^2.12.4",
|
|
63
61
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
64
62
|
"typescript-eslint": "^8.60.0",
|
|
65
|
-
"vitest": "^
|
|
63
|
+
"vitest": "^5.0.0"
|
|
64
|
+
},
|
|
65
|
+
"allowScripts": {
|
|
66
|
+
"protobufjs@7.6.5": true,
|
|
67
|
+
"fsevents@2.3.3": true
|
|
66
68
|
}
|
|
67
69
|
}
|