@pikku/addon-amqp 0.0.2
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 +12 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +67 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js +78 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +106 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts +2 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.js +10 -0
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.ts +11 -0
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +47 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js +18 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +82 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +7 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.js +2 -0
- package/dist/.pikku/console/pikku-node-types.gen.js.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/dist/.pikku/credentials/pikku-credentials-meta.gen.json +10 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts +15 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js +13 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.ts +23 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +490 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.js +334 -0
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.ts +754 -0
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +31 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +7 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.json +21 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.js +8 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +8 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
- package/dist/.pikku/pikku-services.gen.d.ts +35 -0
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-services.gen.js +30 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/pikku-services.gen.ts +42 -0
- package/dist/.pikku/pikku-types.gen.d.ts +12 -0
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-types.gen.js +17 -0
- package/dist/.pikku/pikku-types.gen.js.map +1 -0
- package/dist/.pikku/pikku-types.gen.ts +21 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +106 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +107 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +3 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/dist/.pikku/schemas/register.gen.d.ts +2 -0
- package/dist/.pikku/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/schemas/register.gen.js +13 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +19 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_amqp.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/SendMessageInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/SendMessageOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_AMQP_BASE_URL.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +6 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +12 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +21 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +114 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +34 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +6 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +10 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +15 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -0
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.ts +23 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +90 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/amqp-api.service.d.ts +10 -0
- package/dist/src/amqp-api.service.d.ts.map +1 -0
- package/dist/src/amqp-api.service.js +80 -0
- package/dist/src/amqp-api.service.js.map +1 -0
- package/dist/src/amqp.credential.d.ts +5 -0
- package/dist/src/amqp.credential.d.ts.map +1 -0
- package/dist/src/amqp.credential.js +13 -0
- package/dist/src/amqp.credential.js.map +1 -0
- package/dist/src/amqp.types.d.ts +7 -0
- package/dist/src/amqp.types.d.ts.map +1 -0
- package/dist/src/amqp.types.js +8 -0
- package/dist/src/amqp.types.js.map +1 -0
- package/dist/src/amqp.variable.d.ts +5 -0
- package/dist/src/amqp.variable.d.ts.map +1 -0
- package/dist/src/amqp.variable.js +11 -0
- package/dist/src/amqp.variable.js.map +1 -0
- package/dist/src/functions/sendMessage.function.d.ts +25 -0
- package/dist/src/functions/sendMessage.function.d.ts.map +1 -0
- package/dist/src/functions/sendMessage.function.js +18 -0
- package/dist/src/functions/sendMessage.function.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/services.d.ts +2 -0
- package/dist/src/services.d.ts.map +1 -0
- package/dist/src/services.js +14 -0
- package/dist/src/services.js.map +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
export type CredentialSchema_amqp = {
|
|
13
|
+
/** AMQP API key */
|
|
14
|
+
apiKey: string;
|
|
15
|
+
}
|
|
16
|
+
export type SendMessageInput = {
|
|
17
|
+
sink?: string | undefined;
|
|
18
|
+
message?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
export type SendMessageOutput = {
|
|
21
|
+
id?: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
export type VariableSchema_AMQP_BASE_URL = "https://amqp.local"
|
|
24
|
+
|
|
25
|
+
interface RPCHandler<I, O> {
|
|
26
|
+
input: I;
|
|
27
|
+
output: O;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type RPCMap = {
|
|
31
|
+
readonly 'sendMessage': RPCHandler<SendMessageInput, SendMessageOutput>,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
// No addon packages, use RPCMap directly
|
|
37
|
+
export type FlattenedRPCMap = RPCMap
|
|
38
|
+
|
|
39
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
40
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
41
|
+
? false
|
|
42
|
+
: [T] extends [void | null | undefined]
|
|
43
|
+
? true
|
|
44
|
+
: false
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
48
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
49
|
+
? [name: Name]
|
|
50
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
51
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
52
|
+
|
|
53
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
54
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
55
|
+
? [name: Name]
|
|
56
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
57
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
58
|
+
|
|
59
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
60
|
+
|
|
61
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
type FlattenedAgentMap = AgentMap
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
68
|
+
|
|
69
|
+
interface AIAgentInput {
|
|
70
|
+
message: string
|
|
71
|
+
threadId: string
|
|
72
|
+
resourceId: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
76
|
+
name: Name,
|
|
77
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
78
|
+
options?: { startNode?: string }
|
|
79
|
+
) => Promise<{ runId: string }>
|
|
80
|
+
|
|
81
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
82
|
+
name: Name,
|
|
83
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
84
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
85
|
+
|
|
86
|
+
export type TypedWorkflowStatus = (
|
|
87
|
+
workflowName: string,
|
|
88
|
+
runId: string
|
|
89
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
90
|
+
|
|
91
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
92
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
93
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
94
|
+
name: Name,
|
|
95
|
+
input: AIAgentInput
|
|
96
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
97
|
+
|
|
98
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
99
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
100
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
101
|
+
name: Name,
|
|
102
|
+
input: AIAgentInput,
|
|
103
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
104
|
+
) => Promise<void>
|
|
105
|
+
|
|
106
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
107
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal';
|
|
5
|
+
import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState('@pikku/addon-amqp', 'rpc', 'meta', metaData);
|
|
7
|
+
//# sourceMappingURL=pikku-rpc-wirings-meta.internal.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-rpc-wirings-meta.internal.gen.js","sourceRoot":"","sources":["../../../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,QAAQ,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACvF,UAAU,CAAC,mBAAmB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal'
|
|
5
|
+
import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' }
|
|
6
|
+
pikkuState('@pikku/addon-amqp', 'rpc', 'meta', metaData as Record<string, string>)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Scheduler-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CoreScheduledTask } from '@pikku/core/scheduler';
|
|
8
|
+
import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* Type definition for scheduled tasks that run at specified intervals.
|
|
11
|
+
* These are sessionless functions that execute based on cron expressions.
|
|
12
|
+
*/
|
|
13
|
+
type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>;
|
|
14
|
+
/**
|
|
15
|
+
* Registers a scheduled task with the Pikku framework.
|
|
16
|
+
* Tasks run based on cron expressions and are sessionless.
|
|
17
|
+
*
|
|
18
|
+
* @param task - Scheduled task definition with cron expression and handler
|
|
19
|
+
*/
|
|
20
|
+
export declare const wireScheduler: (task: SchedulerWiring) => void;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=pikku-scheduler-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scheduler-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scheduler/pikku-scheduler-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAsC,MAAM,uBAAuB,CAAA;AAC7F,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAEnG;;;GAGG;AACH,KAAK,eAAe,GAAG,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,GAAG,KAAK,CAAC,EAAE,eAAe,CAAC,CAAA;AAE7G;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,MAAM,eAAe,SAElD,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Scheduler-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireScheduler as wireSchedulerCore } from '@pikku/core/scheduler';
|
|
8
|
+
/**
|
|
9
|
+
* Registers a scheduled task with the Pikku framework.
|
|
10
|
+
* Tasks run based on cron expressions and are sessionless.
|
|
11
|
+
*
|
|
12
|
+
* @param task - Scheduled task definition with cron expression and handler
|
|
13
|
+
*/
|
|
14
|
+
export const wireScheduler = (task) => {
|
|
15
|
+
wireSchedulerCore(task);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=pikku-scheduler-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-scheduler-types.gen.js","sourceRoot":"","sources":["../../../.pikku/scheduler/pikku-scheduler-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAqB,aAAa,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAS7F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAqB,EAAE,EAAE;IACrD,iBAAiB,CAAC,IAAW,CAAC,CAAA;AAChC,CAAC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Scheduler-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CoreScheduledTask, wireScheduler as wireSchedulerCore } from '@pikku/core/scheduler'
|
|
9
|
+
import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Type definition for scheduled tasks that run at specified intervals.
|
|
13
|
+
* These are sessionless functions that execute based on cron expressions.
|
|
14
|
+
*/
|
|
15
|
+
type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Registers a scheduled task with the Pikku framework.
|
|
19
|
+
* Tasks run based on cron expressions and are sessionless.
|
|
20
|
+
*
|
|
21
|
+
* @param task - Scheduled task definition with cron expression and handler
|
|
22
|
+
*/
|
|
23
|
+
export const wireScheduler = (task: SchedulerWiring) => {
|
|
24
|
+
wireSchedulerCore(task as any)
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/schemas/register.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { addSchema } from '@pikku/core/schema';
|
|
5
|
+
import * as SendMessageInput from './schemas/SendMessageInput.schema.json' with { type: 'json' };
|
|
6
|
+
addSchema('SendMessageInput', SendMessageInput, '@pikku/addon-amqp');
|
|
7
|
+
import * as SendMessageOutput from './schemas/SendMessageOutput.schema.json' with { type: 'json' };
|
|
8
|
+
addSchema('SendMessageOutput', SendMessageOutput, '@pikku/addon-amqp');
|
|
9
|
+
import * as CredentialSchema_amqp from './schemas/CredentialSchema_amqp.schema.json' with { type: 'json' };
|
|
10
|
+
addSchema('CredentialSchema_amqp', CredentialSchema_amqp, '@pikku/addon-amqp');
|
|
11
|
+
import * as VariableSchema_AMQP_BASE_URL from './schemas/VariableSchema_AMQP_BASE_URL.schema.json' with { type: 'json' };
|
|
12
|
+
addSchema('VariableSchema_AMQP_BASE_URL', VariableSchema_AMQP_BASE_URL, '@pikku/addon-amqp');
|
|
13
|
+
//# sourceMappingURL=register.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.gen.js","sourceRoot":"","sources":["../../../.pikku/schemas/register.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,OAAO,KAAK,gBAAgB,MAAM,wCAAwC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAChG,SAAS,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;AAGpE,OAAO,KAAK,iBAAiB,MAAM,yCAAyC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAClG,SAAS,CAAC,mBAAmB,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,CAAA;AAGtE,OAAO,KAAK,qBAAqB,MAAM,6CAA6C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC1G,SAAS,CAAC,uBAAuB,EAAE,qBAAqB,EAAE,mBAAmB,CAAC,CAAA;AAG9E,OAAO,KAAK,4BAA4B,MAAM,oDAAoD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACxH,SAAS,CAAC,8BAA8B,EAAE,4BAA4B,EAAE,mBAAmB,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { addSchema } from '@pikku/core/schema'
|
|
5
|
+
|
|
6
|
+
import * as SendMessageInput from './schemas/SendMessageInput.schema.json' with { type: 'json' }
|
|
7
|
+
addSchema('SendMessageInput', SendMessageInput, '@pikku/addon-amqp')
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
import * as SendMessageOutput from './schemas/SendMessageOutput.schema.json' with { type: 'json' }
|
|
11
|
+
addSchema('SendMessageOutput', SendMessageOutput, '@pikku/addon-amqp')
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import * as CredentialSchema_amqp from './schemas/CredentialSchema_amqp.schema.json' with { type: 'json' }
|
|
15
|
+
addSchema('CredentialSchema_amqp', CredentialSchema_amqp, '@pikku/addon-amqp')
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as VariableSchema_AMQP_BASE_URL from './schemas/VariableSchema_AMQP_BASE_URL.schema.json' with { type: 'json' }
|
|
19
|
+
addSchema('VariableSchema_AMQP_BASE_URL', VariableSchema_AMQP_BASE_URL, '@pikku/addon-amqp')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"apiKey":{"type":"string","description":"AMQP API key"}},"required":["apiKey"],"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sink":{"type":"string"},"message":{"type":"string"}},"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"}},"additionalProperties":false}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"$schema":"https://json-schema.org/draft/2020-12/schema","default":"https://amqp.local","type":"string","enum":["https://amqp.local"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-secret-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-secret-types.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secret-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
|
|
5
|
+
import type { SecretService } from '@pikku/core/services';
|
|
6
|
+
export interface CredentialsMap {
|
|
7
|
+
}
|
|
8
|
+
export type SecretId = keyof CredentialsMap;
|
|
9
|
+
export declare class TypedSecretService extends CoreTypedSecretService<CredentialsMap> {
|
|
10
|
+
constructor(secrets: SecretService);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=pikku-secrets.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-secrets.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,WAAW,cAAc;CAE9B;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAA;AAM3C,qBAAa,kBAAmB,SAAQ,sBAAsB,CAAC,cAAc,CAAC;gBAChE,OAAO,EAAE,aAAa;CAGnC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
|
|
5
|
+
const CREDENTIALS_META = {};
|
|
6
|
+
export class TypedSecretService extends CoreTypedSecretService {
|
|
7
|
+
constructor(secrets) {
|
|
8
|
+
super(secrets, CREDENTIALS_META);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=pikku-secrets.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-secrets.gen.js","sourceRoot":"","sources":["../../../.pikku/secrets/pikku-secrets.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,IAAI,sBAAsB,EAAuB,MAAM,sBAAsB,CAAA;AASxG,MAAM,gBAAgB,GAAmC,EAExD,CAAA;AAED,MAAM,OAAO,kBAAmB,SAAQ,sBAAsC;IAC5E,YAAY,OAAsB;QAChC,KAAK,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAA;IAClC,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import { TypedSecretService as CoreTypedSecretService, type CredentialMeta } from '@pikku/core/services'
|
|
5
|
+
import type { SecretService } from '@pikku/core/services'
|
|
6
|
+
|
|
7
|
+
export interface CredentialsMap {
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type SecretId = keyof CredentialsMap
|
|
12
|
+
|
|
13
|
+
const CREDENTIALS_META: Record<string, CredentialMeta> = {
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class TypedSecretService extends CoreTypedSecretService<CredentialsMap> {
|
|
18
|
+
constructor(secrets: SecretService) {
|
|
19
|
+
super(secrets, CREDENTIALS_META)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Trigger-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CorePikkuTriggerFunction, CorePikkuTriggerFunctionConfig, CoreTrigger } from '@pikku/core/trigger';
|
|
8
|
+
import type { CoreNodeConfig } from '@pikku/core/node';
|
|
9
|
+
import type { SingletonServices } from '../../types/application-types.d.js';
|
|
10
|
+
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
11
|
+
/**
|
|
12
|
+
* A trigger function that sets up a subscription and returns a teardown function.
|
|
13
|
+
* The trigger is fired via wire.trigger.invoke(data).
|
|
14
|
+
*
|
|
15
|
+
* @template TInput - Input type (configuration passed when wired)
|
|
16
|
+
* @template TOutput - Output type produced when trigger fires
|
|
17
|
+
*/
|
|
18
|
+
export type PikkuTriggerFunction<TInput = unknown, TOutput = unknown> = CorePikkuTriggerFunction<TInput, TOutput, SingletonServices>;
|
|
19
|
+
/**
|
|
20
|
+
* Configuration object for creating a trigger function with metadata
|
|
21
|
+
*/
|
|
22
|
+
export type PikkuTriggerFunctionConfig<TInput = unknown, TOutput = unknown, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = CorePikkuTriggerFunctionConfig<TInput, TOutput, SingletonServices, InputSchema, OutputSchema>;
|
|
23
|
+
/**
|
|
24
|
+
* Helper type to infer the output type from a Standard Schema
|
|
25
|
+
*/
|
|
26
|
+
type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output> ? Output : never;
|
|
27
|
+
/**
|
|
28
|
+
* Configuration object for trigger functions with Zod schema validation.
|
|
29
|
+
* Use this when you want to define input/output schemas using Zod.
|
|
30
|
+
* Types are automatically inferred from the schemas.
|
|
31
|
+
*/
|
|
32
|
+
export type PikkuTriggerFunctionConfigWithSchema<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined> = {
|
|
33
|
+
title?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
tags?: string[];
|
|
36
|
+
func: PikkuTriggerFunction<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>;
|
|
37
|
+
input: InputSchema;
|
|
38
|
+
output?: OutputSchema;
|
|
39
|
+
node?: CoreNodeConfig;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Type definition for trigger wirings.
|
|
43
|
+
* Declares a trigger name and its target pikku function.
|
|
44
|
+
*/
|
|
45
|
+
export type TriggerWiring = CoreTrigger;
|
|
46
|
+
/**
|
|
47
|
+
* A trigger source with the subscription function, using project-specific services.
|
|
48
|
+
*
|
|
49
|
+
* @template TInput - Input type passed to the trigger function
|
|
50
|
+
* @template TOutput - Output type produced when trigger fires
|
|
51
|
+
*/
|
|
52
|
+
export type TriggerSource<TInput = unknown, TOutput = unknown> = {
|
|
53
|
+
name: string;
|
|
54
|
+
func: PikkuTriggerFunctionConfig<TInput, TOutput>;
|
|
55
|
+
} & (unknown extends TInput ? {
|
|
56
|
+
input?: TInput;
|
|
57
|
+
} : {
|
|
58
|
+
input: TInput;
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* Creates a trigger function configuration.
|
|
62
|
+
* Use this to define trigger functions that set up subscriptions.
|
|
63
|
+
*
|
|
64
|
+
* @param triggerOrConfig - Function definition or configuration object
|
|
65
|
+
* @returns The normalized configuration object
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* export const redisSubscribeTrigger = pikkuTriggerFunc<
|
|
70
|
+
* { channel: string },
|
|
71
|
+
* { message: string }
|
|
72
|
+
* >(async ({ redis }, { channel }, { trigger }) => {
|
|
73
|
+
* const subscriber = redis.duplicate()
|
|
74
|
+
* await subscriber.subscribe(channel, (msg) => {
|
|
75
|
+
* trigger.invoke({ message: msg })
|
|
76
|
+
* })
|
|
77
|
+
* return () => subscriber.unsubscribe()
|
|
78
|
+
* })
|
|
79
|
+
*
|
|
80
|
+
* export const redisSubscribeTrigger = pikkuTriggerFunc({
|
|
81
|
+
* title: 'Redis Subscribe Trigger',
|
|
82
|
+
* description: 'Listens to Redis pub/sub channel',
|
|
83
|
+
* input: z.object({ channel: z.string() }),
|
|
84
|
+
* output: z.object({ message: z.string() }),
|
|
85
|
+
* func: async ({ redis }, { channel }, { trigger }) => {
|
|
86
|
+
* const subscriber = redis.duplicate()
|
|
87
|
+
* await subscriber.subscribe(channel, (msg) => {
|
|
88
|
+
* trigger.invoke({ message: msg })
|
|
89
|
+
* })
|
|
90
|
+
* return () => subscriber.unsubscribe()
|
|
91
|
+
* }
|
|
92
|
+
* })
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
export declare function pikkuTriggerFunc<InputSchema extends StandardSchemaV1, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuTriggerFunctionConfigWithSchema<InputSchema, OutputSchema>): PikkuTriggerFunctionConfig<InferSchemaOutput<InputSchema>, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, InputSchema, OutputSchema>;
|
|
96
|
+
export declare function pikkuTriggerFunc<TInput, TOutput = unknown>(triggerOrConfig: PikkuTriggerFunction<TInput, TOutput> | PikkuTriggerFunctionConfig<TInput, TOutput>): PikkuTriggerFunctionConfig<TInput, TOutput>;
|
|
97
|
+
/**
|
|
98
|
+
* Registers a trigger with the Pikku framework.
|
|
99
|
+
* Declares a trigger name and its target pikku function.
|
|
100
|
+
* Runs everywhere — inspector extracts at build time.
|
|
101
|
+
*
|
|
102
|
+
* @param trigger - Trigger definition with name and function config
|
|
103
|
+
*/
|
|
104
|
+
export declare const wireTrigger: (trigger: TriggerWiring) => void;
|
|
105
|
+
/**
|
|
106
|
+
* Registers a trigger source with the Pikku framework.
|
|
107
|
+
* Provides the subscription function and input data.
|
|
108
|
+
* Only imported in the trigger worker process.
|
|
109
|
+
*
|
|
110
|
+
* @param source - Trigger source with name, func, and input
|
|
111
|
+
*/
|
|
112
|
+
export declare const wireTriggerSource: <TInput = unknown, TOutput = unknown>(source: TriggerSource<TInput, TOutput>) => void;
|
|
113
|
+
export {};
|
|
114
|
+
//# sourceMappingURL=pikku-trigger-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-trigger-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Trigger-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireTrigger as wireTriggerCore, wireTriggerSource as wireTriggerSourceCore } from '@pikku/core/trigger';
|
|
8
|
+
export function pikkuTriggerFunc(triggerOrConfig) {
|
|
9
|
+
if (typeof triggerOrConfig === 'function') {
|
|
10
|
+
return { func: triggerOrConfig };
|
|
11
|
+
}
|
|
12
|
+
return triggerOrConfig;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Registers a trigger with the Pikku framework.
|
|
16
|
+
* Declares a trigger name and its target pikku function.
|
|
17
|
+
* Runs everywhere — inspector extracts at build time.
|
|
18
|
+
*
|
|
19
|
+
* @param trigger - Trigger definition with name and function config
|
|
20
|
+
*/
|
|
21
|
+
export const wireTrigger = (trigger) => {
|
|
22
|
+
wireTriggerCore(trigger);
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Registers a trigger source with the Pikku framework.
|
|
26
|
+
* Provides the subscription function and input data.
|
|
27
|
+
* Only imported in the trigger worker process.
|
|
28
|
+
*
|
|
29
|
+
* @param source - Trigger source with name, func, and input
|
|
30
|
+
*/
|
|
31
|
+
export const wireTriggerSource = (source) => {
|
|
32
|
+
wireTriggerSourceCore(source);
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=pikku-trigger-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-trigger-types.gen.js","sourceRoot":"","sources":["../../../.pikku/trigger/pikku-trigger-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAyE,WAAW,IAAI,eAAe,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAyHvL,MAAM,UAAU,gBAAgB,CAAC,eAAoB;IACnD,IAAI,OAAO,eAAe,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,CAAA;IAClC,CAAC;IACD,OAAO,eAAe,CAAA;AACxB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,OAAsB,EACtB,EAAE;IACF,eAAe,CAAC,OAAc,CAAC,CAAA;AACjC,CAAC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,MAAsC,EACtC,EAAE;IACF,qBAAqB,CAAC,MAAa,CAAC,CAAA;AACtC,CAAC,CAAA"}
|