@pikku/addon-woocommerce 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 +437 -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 +287 -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 +36 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +36 -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 +209 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +224 -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 +17 -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 +69 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +131 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_woocommerce.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CustomerUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrderUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ProductUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_WOOCOMMERCE_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/functions/customerCreate.function.d.ts +37 -0
- package/dist/src/functions/customerCreate.function.d.ts.map +1 -0
- package/dist/src/functions/customerCreate.function.js +21 -0
- package/dist/src/functions/customerCreate.function.js.map +1 -0
- package/dist/src/functions/customerDelete.function.d.ts +21 -0
- package/dist/src/functions/customerDelete.function.d.ts.map +1 -0
- package/dist/src/functions/customerDelete.function.js +17 -0
- package/dist/src/functions/customerDelete.function.js.map +1 -0
- package/dist/src/functions/customerGet.function.d.ts +25 -0
- package/dist/src/functions/customerGet.function.d.ts.map +1 -0
- package/dist/src/functions/customerGet.function.js +18 -0
- package/dist/src/functions/customerGet.function.js.map +1 -0
- package/dist/src/functions/customerGetAll.function.d.ts +17 -0
- package/dist/src/functions/customerGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/customerGetAll.function.js +16 -0
- package/dist/src/functions/customerGetAll.function.js.map +1 -0
- package/dist/src/functions/customerUpdate.function.d.ts +29 -0
- package/dist/src/functions/customerUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/customerUpdate.function.js +19 -0
- package/dist/src/functions/customerUpdate.function.js.map +1 -0
- package/dist/src/functions/orderCreate.function.d.ts +29 -0
- package/dist/src/functions/orderCreate.function.d.ts.map +1 -0
- package/dist/src/functions/orderCreate.function.js +19 -0
- package/dist/src/functions/orderCreate.function.js.map +1 -0
- package/dist/src/functions/orderDelete.function.d.ts +21 -0
- package/dist/src/functions/orderDelete.function.d.ts.map +1 -0
- package/dist/src/functions/orderDelete.function.js +17 -0
- package/dist/src/functions/orderDelete.function.js.map +1 -0
- package/dist/src/functions/orderGet.function.d.ts +21 -0
- package/dist/src/functions/orderGet.function.d.ts.map +1 -0
- package/dist/src/functions/orderGet.function.js +17 -0
- package/dist/src/functions/orderGet.function.js.map +1 -0
- package/dist/src/functions/orderGetAll.function.d.ts +17 -0
- package/dist/src/functions/orderGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/orderGetAll.function.js +16 -0
- package/dist/src/functions/orderGetAll.function.js.map +1 -0
- package/dist/src/functions/orderUpdate.function.d.ts +25 -0
- package/dist/src/functions/orderUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/orderUpdate.function.js +18 -0
- package/dist/src/functions/orderUpdate.function.js.map +1 -0
- package/dist/src/functions/productCreate.function.d.ts +37 -0
- package/dist/src/functions/productCreate.function.d.ts.map +1 -0
- package/dist/src/functions/productCreate.function.js +21 -0
- package/dist/src/functions/productCreate.function.js.map +1 -0
- package/dist/src/functions/productDelete.function.d.ts +21 -0
- package/dist/src/functions/productDelete.function.d.ts.map +1 -0
- package/dist/src/functions/productDelete.function.js +17 -0
- package/dist/src/functions/productDelete.function.js.map +1 -0
- package/dist/src/functions/productGet.function.d.ts +25 -0
- package/dist/src/functions/productGet.function.d.ts.map +1 -0
- package/dist/src/functions/productGet.function.js +18 -0
- package/dist/src/functions/productGet.function.js.map +1 -0
- package/dist/src/functions/productGetAll.function.d.ts +17 -0
- package/dist/src/functions/productGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/productGetAll.function.js +16 -0
- package/dist/src/functions/productGetAll.function.js.map +1 -0
- package/dist/src/functions/productUpdate.function.d.ts +29 -0
- package/dist/src/functions/productUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/productUpdate.function.js +19 -0
- package/dist/src/functions/productUpdate.function.js.map +1 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +16 -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/dist/src/woocommerce-api.service.d.ts +10 -0
- package/dist/src/woocommerce-api.service.d.ts.map +1 -0
- package/dist/src/woocommerce-api.service.js +177 -0
- package/dist/src/woocommerce-api.service.js.map +1 -0
- package/dist/src/woocommerce.credential.d.ts +5 -0
- package/dist/src/woocommerce.credential.d.ts.map +1 -0
- package/dist/src/woocommerce.credential.js +13 -0
- package/dist/src/woocommerce.credential.js.map +1 -0
- package/dist/src/woocommerce.types.d.ts +7 -0
- package/dist/src/woocommerce.types.d.ts.map +1 -0
- package/dist/src/woocommerce.types.js +8 -0
- package/dist/src/woocommerce.types.js.map +1 -0
- package/dist/src/woocommerce.variable.d.ts +5 -0
- package/dist/src/woocommerce.variable.d.ts.map +1 -0
- package/dist/src/woocommerce.variable.js +11 -0
- package/dist/src/woocommerce.variable.js.map +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,KAAK;IAC1B,cAAc,EAAE,KAAK;IACrB,UAAU,EAAE,KAAK;IACjB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,KAAK;IACpB,oBAAoB,EAAE,KAAK;IAC3B,iBAAiB,EAAE,KAAK;CAChB,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
import type { SingletonServices } from '../types/application-types.d.js'
|
|
5
|
+
import type { Services } from '../types/application-types.d.js'
|
|
6
|
+
|
|
7
|
+
// Singleton services map: true if required, false if available but unused
|
|
8
|
+
export const requiredSingletonServices = {
|
|
9
|
+
'agentRunService': false,
|
|
10
|
+
'aiAgentRunner': false,
|
|
11
|
+
'aiRunState': false,
|
|
12
|
+
'aiStorage': false,
|
|
13
|
+
'audit': false,
|
|
14
|
+
'auditLog': false,
|
|
15
|
+
'config': true,
|
|
16
|
+
'content': false,
|
|
17
|
+
'credentialService': false,
|
|
18
|
+
'deploymentService': false,
|
|
19
|
+
'emailService': false,
|
|
20
|
+
'eventHub': false,
|
|
21
|
+
'jwt': false,
|
|
22
|
+
'logger': true,
|
|
23
|
+
'metaService': false,
|
|
24
|
+
'queueService': false,
|
|
25
|
+
'schedulerService': false,
|
|
26
|
+
'schema': true,
|
|
27
|
+
'secrets': true,
|
|
28
|
+
'sessionStore': false,
|
|
29
|
+
'variables': true,
|
|
30
|
+
'woocommerce': false,
|
|
31
|
+
'workflowRunService': false,
|
|
32
|
+
'workflowService': false,
|
|
33
|
+
} as const
|
|
34
|
+
|
|
35
|
+
// Wire services map: true if required, false if available but unused
|
|
36
|
+
export const requiredWireServices = {
|
|
37
|
+
} as const
|
|
38
|
+
|
|
39
|
+
// Type exports
|
|
40
|
+
export type RequiredSingletonServices = Required<Pick<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>> & Partial<Omit<SingletonServices, 'config' | 'logger' | 'schema' | 'secrets' | 'variables'>>
|
|
41
|
+
|
|
42
|
+
export type RequiredWireServices = Partial<Services>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
+
*/
|
|
7
|
+
export * from './function/pikku-function-types.gen.js';
|
|
8
|
+
export * from './trigger/pikku-trigger-types.gen.js';
|
|
9
|
+
export * from './console/pikku-node-types.gen.js';
|
|
10
|
+
export * from './secrets/pikku-secret-types.gen.js';
|
|
11
|
+
export * from './addon/pikku-addon-types.gen.js';
|
|
12
|
+
//# sourceMappingURL=pikku-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-types.gen.d.ts","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAGH,cAAc,wCAAwC,CAAA;AAGtD,cAAc,sCAAsC,CAAA;AAGpD,cAAc,mCAAmC,CAAA;AAGjD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
+
*/
|
|
7
|
+
// Core function, middleware, and permission types
|
|
8
|
+
export * from './function/pikku-function-types.gen.js';
|
|
9
|
+
// Trigger wiring types
|
|
10
|
+
export * from './trigger/pikku-trigger-types.gen.js';
|
|
11
|
+
// Node wiring types
|
|
12
|
+
export * from './console/pikku-node-types.gen.js';
|
|
13
|
+
// Secret definition types
|
|
14
|
+
export * from './secrets/pikku-secret-types.gen.js';
|
|
15
|
+
// Addon types
|
|
16
|
+
export * from './addon/pikku-addon-types.gen.js';
|
|
17
|
+
//# sourceMappingURL=pikku-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-types.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,kDAAkD;AAClD,cAAc,wCAAwC,CAAA;AAEtD,uBAAuB;AACvB,cAAc,sCAAsC,CAAA;AAEpD,oBAAoB;AACpB,cAAc,mCAAmC,CAAA;AAEjD,0BAA0B;AAC1B,cAAc,qCAAqC,CAAA;AAEnD,cAAc;AACd,cAAc,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Main type export hub - re-exports all wiring-specific types
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Core function, middleware, and permission types
|
|
9
|
+
export * from './function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
// Trigger wiring types
|
|
12
|
+
export * from './trigger/pikku-trigger-types.gen.js'
|
|
13
|
+
|
|
14
|
+
// Node wiring types
|
|
15
|
+
export * from './console/pikku-node-types.gen.js'
|
|
16
|
+
|
|
17
|
+
// Secret definition types
|
|
18
|
+
export * from './secrets/pikku-secret-types.gen.js'
|
|
19
|
+
|
|
20
|
+
// Addon types
|
|
21
|
+
export * from './addon/pikku-addon-types.gen.js'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { CoreQueueWorker } from '@pikku/core/queue';
|
|
8
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
/**
|
|
10
|
+
* Type definition for queue workers that process background jobs.
|
|
11
|
+
*
|
|
12
|
+
* @template In - Input type for the queue job
|
|
13
|
+
* @template Out - Output type for the queue job
|
|
14
|
+
*/
|
|
15
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>;
|
|
16
|
+
/**
|
|
17
|
+
* Registers a queue worker with the Pikku framework.
|
|
18
|
+
* Workers process background jobs from queues.
|
|
19
|
+
*
|
|
20
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
21
|
+
*/
|
|
22
|
+
export declare const wireQueueWorker: (queueWorker: QueueWiring<any, any>) => void;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=pikku-queue-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,mBAAmB,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAElF;;;;;GAKG;AACH,KAAK,WAAW,CAAC,EAAE,EAAE,GAAG,IAAI,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC,CAAA;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,aAAa,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,SAEjE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
|
|
8
|
+
/**
|
|
9
|
+
* Registers a queue worker with the Pikku framework.
|
|
10
|
+
* Workers process background jobs from queues.
|
|
11
|
+
*
|
|
12
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
13
|
+
*/
|
|
14
|
+
export const wireQueueWorker = (queueWorker) => {
|
|
15
|
+
wireQueueWorkerCore(queueWorker);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=pikku-queue-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.js","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAmB,eAAe,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAW3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAkC,EAAE,EAAE;IACpE,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CoreQueueWorker, wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
|
|
9
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Type definition for queue workers that process background jobs.
|
|
13
|
+
*
|
|
14
|
+
* @template In - Input type for the queue job
|
|
15
|
+
* @template Out - Output type for the queue job
|
|
16
|
+
*/
|
|
17
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Registers a queue worker with the Pikku framework.
|
|
21
|
+
* Workers process background jobs from queues.
|
|
22
|
+
*
|
|
23
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
24
|
+
*/
|
|
25
|
+
export const wireQueueWorker = (queueWorker: QueueWiring<any, any>) => {
|
|
26
|
+
wireQueueWorkerCore(queueWorker as any)
|
|
27
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
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_woocommerce = {
|
|
13
|
+
/** WooCommerce API key */
|
|
14
|
+
apiKey: string;
|
|
15
|
+
}
|
|
16
|
+
export type CustomerCreateInput = {
|
|
17
|
+
email?: string | undefined;
|
|
18
|
+
first_name?: string | undefined;
|
|
19
|
+
last_name?: string | undefined;
|
|
20
|
+
username?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export type CustomerCreateOutput = {
|
|
23
|
+
id?: number | undefined;
|
|
24
|
+
email?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
export type CustomerDeleteInput = {
|
|
27
|
+
customerId: string;
|
|
28
|
+
}
|
|
29
|
+
export type CustomerDeleteOutput = {
|
|
30
|
+
id?: number | undefined;
|
|
31
|
+
}
|
|
32
|
+
export type CustomerGetAllInput = {
|
|
33
|
+
per_page?: number | undefined;
|
|
34
|
+
page?: number | undefined;
|
|
35
|
+
}
|
|
36
|
+
export type CustomerGetAllOutput = {
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
}[]
|
|
39
|
+
export type CustomerGetInput = {
|
|
40
|
+
customerId: string;
|
|
41
|
+
}
|
|
42
|
+
export type CustomerGetOutput = {
|
|
43
|
+
id?: number | undefined;
|
|
44
|
+
email?: string | undefined;
|
|
45
|
+
}
|
|
46
|
+
export type CustomerUpdateInput = {
|
|
47
|
+
customerId: string;
|
|
48
|
+
first_name?: string | undefined;
|
|
49
|
+
last_name?: string | undefined;
|
|
50
|
+
}
|
|
51
|
+
export type CustomerUpdateOutput = {
|
|
52
|
+
id?: number | undefined;
|
|
53
|
+
}
|
|
54
|
+
export type OrderCreateInput = {
|
|
55
|
+
status?: string | undefined;
|
|
56
|
+
currency?: string | undefined;
|
|
57
|
+
customer_id?: number | undefined;
|
|
58
|
+
}
|
|
59
|
+
export type OrderCreateOutput = {
|
|
60
|
+
id?: number | undefined;
|
|
61
|
+
}
|
|
62
|
+
export type OrderDeleteInput = {
|
|
63
|
+
orderId: string;
|
|
64
|
+
}
|
|
65
|
+
export type OrderDeleteOutput = {
|
|
66
|
+
id?: number | undefined;
|
|
67
|
+
}
|
|
68
|
+
export type OrderGetAllInput = {
|
|
69
|
+
per_page?: number | undefined;
|
|
70
|
+
page?: number | undefined;
|
|
71
|
+
}
|
|
72
|
+
export type OrderGetAllOutput = {
|
|
73
|
+
[key: string]: unknown;
|
|
74
|
+
}[]
|
|
75
|
+
export type OrderGetInput = {
|
|
76
|
+
orderId: string;
|
|
77
|
+
}
|
|
78
|
+
export type OrderGetOutput = {
|
|
79
|
+
id?: number | undefined;
|
|
80
|
+
}
|
|
81
|
+
export type OrderUpdateInput = {
|
|
82
|
+
orderId: string;
|
|
83
|
+
status?: string | undefined;
|
|
84
|
+
}
|
|
85
|
+
export type OrderUpdateOutput = {
|
|
86
|
+
id?: number | undefined;
|
|
87
|
+
}
|
|
88
|
+
export type ProductCreateInput = {
|
|
89
|
+
name?: string | undefined;
|
|
90
|
+
type?: string | undefined;
|
|
91
|
+
description?: string | undefined;
|
|
92
|
+
regular_price?: string | undefined;
|
|
93
|
+
}
|
|
94
|
+
export type ProductCreateOutput = {
|
|
95
|
+
id?: number | undefined;
|
|
96
|
+
name?: string | undefined;
|
|
97
|
+
}
|
|
98
|
+
export type ProductDeleteInput = {
|
|
99
|
+
productId: string;
|
|
100
|
+
}
|
|
101
|
+
export type ProductDeleteOutput = {
|
|
102
|
+
id?: number | undefined;
|
|
103
|
+
}
|
|
104
|
+
export type ProductGetAllInput = {
|
|
105
|
+
per_page?: number | undefined;
|
|
106
|
+
page?: number | undefined;
|
|
107
|
+
}
|
|
108
|
+
export type ProductGetAllOutput = {
|
|
109
|
+
[key: string]: unknown;
|
|
110
|
+
}[]
|
|
111
|
+
export type ProductGetInput = {
|
|
112
|
+
productId: string;
|
|
113
|
+
}
|
|
114
|
+
export type ProductGetOutput = {
|
|
115
|
+
id?: number | undefined;
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
}
|
|
118
|
+
export type ProductUpdateInput = {
|
|
119
|
+
productId: string;
|
|
120
|
+
name?: string | undefined;
|
|
121
|
+
regular_price?: string | undefined;
|
|
122
|
+
}
|
|
123
|
+
export type ProductUpdateOutput = {
|
|
124
|
+
id?: number | undefined;
|
|
125
|
+
}
|
|
126
|
+
export type VariableSchema_WOOCOMMERCE_BASE_URL = "https://example.com/wp-json/wc/v3"
|
|
127
|
+
|
|
128
|
+
interface RPCHandler<I, O> {
|
|
129
|
+
input: I;
|
|
130
|
+
output: O;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type RPCMap = {
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
// No addon packages, use RPCMap directly
|
|
139
|
+
export type FlattenedRPCMap = RPCMap
|
|
140
|
+
|
|
141
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
142
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
143
|
+
? false
|
|
144
|
+
: [T] extends [void | null | undefined]
|
|
145
|
+
? true
|
|
146
|
+
: false
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
150
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
151
|
+
? [name: Name]
|
|
152
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
153
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
154
|
+
|
|
155
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
156
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
157
|
+
? [name: Name]
|
|
158
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
159
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
160
|
+
|
|
161
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
162
|
+
|
|
163
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
type FlattenedAgentMap = AgentMap
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
170
|
+
|
|
171
|
+
interface AIAgentInput {
|
|
172
|
+
message: string
|
|
173
|
+
threadId: string
|
|
174
|
+
resourceId: string
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
178
|
+
name: Name,
|
|
179
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
180
|
+
options?: { startNode?: string }
|
|
181
|
+
) => Promise<{ runId: string }>
|
|
182
|
+
|
|
183
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
184
|
+
name: Name,
|
|
185
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
186
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
187
|
+
|
|
188
|
+
export type TypedWorkflowStatus = (
|
|
189
|
+
workflowName: string,
|
|
190
|
+
runId: string
|
|
191
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
192
|
+
|
|
193
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
194
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
195
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
196
|
+
name: Name,
|
|
197
|
+
input: AIAgentInput
|
|
198
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
199
|
+
|
|
200
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
201
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
202
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
203
|
+
name: Name,
|
|
204
|
+
input: AIAgentInput,
|
|
205
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
206
|
+
) => Promise<void>
|
|
207
|
+
|
|
208
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
209
|
+
|
|
@@ -0,0 +1,224 @@
|
|
|
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_woocommerce = {
|
|
13
|
+
/** WooCommerce API key */
|
|
14
|
+
apiKey: string;
|
|
15
|
+
}
|
|
16
|
+
export type CustomerCreateInput = {
|
|
17
|
+
email?: string | undefined;
|
|
18
|
+
first_name?: string | undefined;
|
|
19
|
+
last_name?: string | undefined;
|
|
20
|
+
username?: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export type CustomerCreateOutput = {
|
|
23
|
+
id?: number | undefined;
|
|
24
|
+
email?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
export type CustomerDeleteInput = {
|
|
27
|
+
customerId: string;
|
|
28
|
+
}
|
|
29
|
+
export type CustomerDeleteOutput = {
|
|
30
|
+
id?: number | undefined;
|
|
31
|
+
}
|
|
32
|
+
export type CustomerGetAllInput = {
|
|
33
|
+
per_page?: number | undefined;
|
|
34
|
+
page?: number | undefined;
|
|
35
|
+
}
|
|
36
|
+
export type CustomerGetAllOutput = {
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
}[]
|
|
39
|
+
export type CustomerGetInput = {
|
|
40
|
+
customerId: string;
|
|
41
|
+
}
|
|
42
|
+
export type CustomerGetOutput = {
|
|
43
|
+
id?: number | undefined;
|
|
44
|
+
email?: string | undefined;
|
|
45
|
+
}
|
|
46
|
+
export type CustomerUpdateInput = {
|
|
47
|
+
customerId: string;
|
|
48
|
+
first_name?: string | undefined;
|
|
49
|
+
last_name?: string | undefined;
|
|
50
|
+
}
|
|
51
|
+
export type CustomerUpdateOutput = {
|
|
52
|
+
id?: number | undefined;
|
|
53
|
+
}
|
|
54
|
+
export type OrderCreateInput = {
|
|
55
|
+
status?: string | undefined;
|
|
56
|
+
currency?: string | undefined;
|
|
57
|
+
customer_id?: number | undefined;
|
|
58
|
+
}
|
|
59
|
+
export type OrderCreateOutput = {
|
|
60
|
+
id?: number | undefined;
|
|
61
|
+
}
|
|
62
|
+
export type OrderDeleteInput = {
|
|
63
|
+
orderId: string;
|
|
64
|
+
}
|
|
65
|
+
export type OrderDeleteOutput = {
|
|
66
|
+
id?: number | undefined;
|
|
67
|
+
}
|
|
68
|
+
export type OrderGetAllInput = {
|
|
69
|
+
per_page?: number | undefined;
|
|
70
|
+
page?: number | undefined;
|
|
71
|
+
}
|
|
72
|
+
export type OrderGetAllOutput = {
|
|
73
|
+
[key: string]: unknown;
|
|
74
|
+
}[]
|
|
75
|
+
export type OrderGetInput = {
|
|
76
|
+
orderId: string;
|
|
77
|
+
}
|
|
78
|
+
export type OrderGetOutput = {
|
|
79
|
+
id?: number | undefined;
|
|
80
|
+
}
|
|
81
|
+
export type OrderUpdateInput = {
|
|
82
|
+
orderId: string;
|
|
83
|
+
status?: string | undefined;
|
|
84
|
+
}
|
|
85
|
+
export type OrderUpdateOutput = {
|
|
86
|
+
id?: number | undefined;
|
|
87
|
+
}
|
|
88
|
+
export type ProductCreateInput = {
|
|
89
|
+
name?: string | undefined;
|
|
90
|
+
type?: string | undefined;
|
|
91
|
+
description?: string | undefined;
|
|
92
|
+
regular_price?: string | undefined;
|
|
93
|
+
}
|
|
94
|
+
export type ProductCreateOutput = {
|
|
95
|
+
id?: number | undefined;
|
|
96
|
+
name?: string | undefined;
|
|
97
|
+
}
|
|
98
|
+
export type ProductDeleteInput = {
|
|
99
|
+
productId: string;
|
|
100
|
+
}
|
|
101
|
+
export type ProductDeleteOutput = {
|
|
102
|
+
id?: number | undefined;
|
|
103
|
+
}
|
|
104
|
+
export type ProductGetAllInput = {
|
|
105
|
+
per_page?: number | undefined;
|
|
106
|
+
page?: number | undefined;
|
|
107
|
+
}
|
|
108
|
+
export type ProductGetAllOutput = {
|
|
109
|
+
[key: string]: unknown;
|
|
110
|
+
}[]
|
|
111
|
+
export type ProductGetInput = {
|
|
112
|
+
productId: string;
|
|
113
|
+
}
|
|
114
|
+
export type ProductGetOutput = {
|
|
115
|
+
id?: number | undefined;
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
}
|
|
118
|
+
export type ProductUpdateInput = {
|
|
119
|
+
productId: string;
|
|
120
|
+
name?: string | undefined;
|
|
121
|
+
regular_price?: string | undefined;
|
|
122
|
+
}
|
|
123
|
+
export type ProductUpdateOutput = {
|
|
124
|
+
id?: number | undefined;
|
|
125
|
+
}
|
|
126
|
+
export type VariableSchema_WOOCOMMERCE_BASE_URL = "https://example.com/wp-json/wc/v3"
|
|
127
|
+
|
|
128
|
+
interface RPCHandler<I, O> {
|
|
129
|
+
input: I;
|
|
130
|
+
output: O;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type RPCMap = {
|
|
134
|
+
readonly 'productGetAll': RPCHandler<ProductGetAllInput, ProductGetAllOutput>,
|
|
135
|
+
readonly 'productCreate': RPCHandler<ProductCreateInput, ProductCreateOutput>,
|
|
136
|
+
readonly 'productGet': RPCHandler<ProductGetInput, ProductGetOutput>,
|
|
137
|
+
readonly 'productUpdate': RPCHandler<ProductUpdateInput, ProductUpdateOutput>,
|
|
138
|
+
readonly 'productDelete': RPCHandler<ProductDeleteInput, ProductDeleteOutput>,
|
|
139
|
+
readonly 'orderGetAll': RPCHandler<OrderGetAllInput, OrderGetAllOutput>,
|
|
140
|
+
readonly 'orderCreate': RPCHandler<OrderCreateInput, OrderCreateOutput>,
|
|
141
|
+
readonly 'orderGet': RPCHandler<OrderGetInput, OrderGetOutput>,
|
|
142
|
+
readonly 'orderUpdate': RPCHandler<OrderUpdateInput, OrderUpdateOutput>,
|
|
143
|
+
readonly 'orderDelete': RPCHandler<OrderDeleteInput, OrderDeleteOutput>,
|
|
144
|
+
readonly 'customerGetAll': RPCHandler<CustomerGetAllInput, CustomerGetAllOutput>,
|
|
145
|
+
readonly 'customerCreate': RPCHandler<CustomerCreateInput, CustomerCreateOutput>,
|
|
146
|
+
readonly 'customerGet': RPCHandler<CustomerGetInput, CustomerGetOutput>,
|
|
147
|
+
readonly 'customerUpdate': RPCHandler<CustomerUpdateInput, CustomerUpdateOutput>,
|
|
148
|
+
readonly 'customerDelete': RPCHandler<CustomerDeleteInput, CustomerDeleteOutput>,
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
// No addon packages, use RPCMap directly
|
|
154
|
+
export type FlattenedRPCMap = RPCMap
|
|
155
|
+
|
|
156
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
157
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
158
|
+
? false
|
|
159
|
+
: [T] extends [void | null | undefined]
|
|
160
|
+
? true
|
|
161
|
+
: false
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
165
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
166
|
+
? [name: Name]
|
|
167
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
168
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
169
|
+
|
|
170
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
171
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
172
|
+
? [name: Name]
|
|
173
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
174
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
175
|
+
|
|
176
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
177
|
+
|
|
178
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
type FlattenedAgentMap = AgentMap
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
185
|
+
|
|
186
|
+
interface AIAgentInput {
|
|
187
|
+
message: string
|
|
188
|
+
threadId: string
|
|
189
|
+
resourceId: string
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
193
|
+
name: Name,
|
|
194
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
195
|
+
options?: { startNode?: string }
|
|
196
|
+
) => Promise<{ runId: string }>
|
|
197
|
+
|
|
198
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
199
|
+
name: Name,
|
|
200
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
201
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
202
|
+
|
|
203
|
+
export type TypedWorkflowStatus = (
|
|
204
|
+
workflowName: string,
|
|
205
|
+
runId: string
|
|
206
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
207
|
+
|
|
208
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
209
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
210
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
211
|
+
name: Name,
|
|
212
|
+
input: AIAgentInput
|
|
213
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
214
|
+
|
|
215
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
216
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
217
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
218
|
+
name: Name,
|
|
219
|
+
input: AIAgentInput,
|
|
220
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
221
|
+
) => Promise<void>
|
|
222
|
+
|
|
223
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
224
|
+
|
|
@@ -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-woocommerce', '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,0BAA0B,EAAE,KAAK,EAAE,MAAM,EAAE,QAAkC,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"productGetAll": "productGetAll",
|
|
3
|
+
"productCreate": "productCreate",
|
|
4
|
+
"productGet": "productGet",
|
|
5
|
+
"productUpdate": "productUpdate",
|
|
6
|
+
"productDelete": "productDelete",
|
|
7
|
+
"orderGetAll": "orderGetAll",
|
|
8
|
+
"orderCreate": "orderCreate",
|
|
9
|
+
"orderGet": "orderGet",
|
|
10
|
+
"orderUpdate": "orderUpdate",
|
|
11
|
+
"orderDelete": "orderDelete",
|
|
12
|
+
"customerGetAll": "customerGetAll",
|
|
13
|
+
"customerCreate": "customerCreate",
|
|
14
|
+
"customerGet": "customerGet",
|
|
15
|
+
"customerUpdate": "customerUpdate",
|
|
16
|
+
"customerDelete": "customerDelete"
|
|
17
|
+
}
|
|
@@ -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-woocommerce', 'rpc', 'meta', metaData as Record<string, string>)
|