MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / $procs

Method $procs

packages/orm/src/client/client-impl.ts:305–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

303 }
304
305 get $procs() {
306 return Object.keys(this.$schema.procedures ?? {}).reduce((acc, name) => {
307 // Filter procedures based on slicing configuration
308 if (!isProcedureIncluded(this.$options, name)) {
309 return acc;
310 }
311 acc[name] = (input?: unknown) => this.handleProc(name, input);
312 return acc;
313 }, {} as any);
314 }
315
316 private async handleProc(name: string, input: unknown) {
317 if (!('procedures' in this.$options) || !this.$options || typeof this.$options.procedures !== 'object') {

Callers

nothing calls this directly

Calls 2

handleProcMethod · 0.95
isProcedureIncludedFunction · 0.70

Tested by

no test coverage detected