@pikku/addon-baserow 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 +234 -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 +154 -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 +22 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +22 -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 +167 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +175 -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 +10 -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 +41 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +75 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_baserow.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowBatchCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowBatchCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowBatchDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowBatchDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowBatchUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowBatchUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowGetAllInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RowUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_BASEROW_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/baserow-api.service.d.ts +10 -0
- package/dist/src/baserow-api.service.d.ts.map +1 -0
- package/dist/src/baserow-api.service.js +139 -0
- package/dist/src/baserow-api.service.js.map +1 -0
- package/dist/src/baserow.credential.d.ts +5 -0
- package/dist/src/baserow.credential.d.ts.map +1 -0
- package/dist/src/baserow.credential.js +13 -0
- package/dist/src/baserow.credential.js.map +1 -0
- package/dist/src/baserow.types.d.ts +7 -0
- package/dist/src/baserow.types.d.ts.map +1 -0
- package/dist/src/baserow.types.js +8 -0
- package/dist/src/baserow.types.js.map +1 -0
- package/dist/src/baserow.variable.d.ts +5 -0
- package/dist/src/baserow.variable.d.ts.map +1 -0
- package/dist/src/baserow.variable.js +11 -0
- package/dist/src/baserow.variable.js.map +1 -0
- package/dist/src/functions/rowBatchCreate.function.d.ts +17 -0
- package/dist/src/functions/rowBatchCreate.function.d.ts.map +1 -0
- package/dist/src/functions/rowBatchCreate.function.js +16 -0
- package/dist/src/functions/rowBatchCreate.function.js.map +1 -0
- package/dist/src/functions/rowBatchDelete.function.d.ts +17 -0
- package/dist/src/functions/rowBatchDelete.function.d.ts.map +1 -0
- package/dist/src/functions/rowBatchDelete.function.js +16 -0
- package/dist/src/functions/rowBatchDelete.function.js.map +1 -0
- package/dist/src/functions/rowBatchUpdate.function.d.ts +17 -0
- package/dist/src/functions/rowBatchUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/rowBatchUpdate.function.js +16 -0
- package/dist/src/functions/rowBatchUpdate.function.js.map +1 -0
- package/dist/src/functions/rowCreate.function.d.ts +17 -0
- package/dist/src/functions/rowCreate.function.d.ts.map +1 -0
- package/dist/src/functions/rowCreate.function.js +16 -0
- package/dist/src/functions/rowCreate.function.js.map +1 -0
- package/dist/src/functions/rowDelete.function.d.ts +17 -0
- package/dist/src/functions/rowDelete.function.d.ts.map +1 -0
- package/dist/src/functions/rowDelete.function.js +16 -0
- package/dist/src/functions/rowDelete.function.js.map +1 -0
- package/dist/src/functions/rowGet.function.d.ts +17 -0
- package/dist/src/functions/rowGet.function.d.ts.map +1 -0
- package/dist/src/functions/rowGet.function.js +16 -0
- package/dist/src/functions/rowGet.function.js.map +1 -0
- package/dist/src/functions/rowGetAll.function.d.ts +29 -0
- package/dist/src/functions/rowGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/rowGetAll.function.js +19 -0
- package/dist/src/functions/rowGetAll.function.js.map +1 -0
- package/dist/src/functions/rowUpdate.function.d.ts +21 -0
- package/dist/src/functions/rowUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/rowUpdate.function.js +17 -0
- package/dist/src/functions/rowUpdate.function.js.map +1 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +9 -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,234 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rowGetAll": {
|
|
3
|
+
"pikkuFuncId": "rowGetAll",
|
|
4
|
+
"functionType": "user",
|
|
5
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
6
|
+
"sessionless": true,
|
|
7
|
+
"name": "rowGetAll",
|
|
8
|
+
"services": {
|
|
9
|
+
"optimized": true,
|
|
10
|
+
"services": [
|
|
11
|
+
"baserow"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"inputSchemaName": "RowGetAllInput",
|
|
15
|
+
"outputSchemaName": "RowGetAllOutput",
|
|
16
|
+
"inputs": [
|
|
17
|
+
"RowGetAllInput"
|
|
18
|
+
],
|
|
19
|
+
"outputs": [
|
|
20
|
+
"RowGetAllOutput"
|
|
21
|
+
],
|
|
22
|
+
"implementationHash": "1f2e10d7f0e00fc3",
|
|
23
|
+
"description": "List rows in a table",
|
|
24
|
+
"isDirectFunction": false,
|
|
25
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/database/baserow/src/functions/rowGetAll.function.ts",
|
|
26
|
+
"exportedName": "rowGetAll",
|
|
27
|
+
"contractHash": "9bff644a706f9d70",
|
|
28
|
+
"inputHash": "24ca05c3",
|
|
29
|
+
"outputHash": "bce6fb9d"
|
|
30
|
+
},
|
|
31
|
+
"rowCreate": {
|
|
32
|
+
"pikkuFuncId": "rowCreate",
|
|
33
|
+
"functionType": "user",
|
|
34
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
35
|
+
"sessionless": true,
|
|
36
|
+
"name": "rowCreate",
|
|
37
|
+
"services": {
|
|
38
|
+
"optimized": true,
|
|
39
|
+
"services": [
|
|
40
|
+
"baserow"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"inputSchemaName": "RowCreateInput",
|
|
44
|
+
"outputSchemaName": "RowCreateOutput",
|
|
45
|
+
"inputs": [
|
|
46
|
+
"RowCreateInput"
|
|
47
|
+
],
|
|
48
|
+
"outputs": [
|
|
49
|
+
"RowCreateOutput"
|
|
50
|
+
],
|
|
51
|
+
"implementationHash": "4e0bad44b743148a",
|
|
52
|
+
"description": "Create a row",
|
|
53
|
+
"isDirectFunction": false,
|
|
54
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/database/baserow/src/functions/rowCreate.function.ts",
|
|
55
|
+
"exportedName": "rowCreate",
|
|
56
|
+
"contractHash": "86cda99a8e851154",
|
|
57
|
+
"inputHash": "b6ab2cb1",
|
|
58
|
+
"outputHash": "7fbc0d13"
|
|
59
|
+
},
|
|
60
|
+
"rowGet": {
|
|
61
|
+
"pikkuFuncId": "rowGet",
|
|
62
|
+
"functionType": "user",
|
|
63
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
64
|
+
"sessionless": true,
|
|
65
|
+
"name": "rowGet",
|
|
66
|
+
"services": {
|
|
67
|
+
"optimized": true,
|
|
68
|
+
"services": [
|
|
69
|
+
"baserow"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"inputSchemaName": "RowGetInput",
|
|
73
|
+
"outputSchemaName": "RowGetOutput",
|
|
74
|
+
"inputs": [
|
|
75
|
+
"RowGetInput"
|
|
76
|
+
],
|
|
77
|
+
"outputs": [
|
|
78
|
+
"RowGetOutput"
|
|
79
|
+
],
|
|
80
|
+
"implementationHash": "1103138a067c161f",
|
|
81
|
+
"description": "Retrieve a row",
|
|
82
|
+
"isDirectFunction": false,
|
|
83
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/database/baserow/src/functions/rowGet.function.ts",
|
|
84
|
+
"exportedName": "rowGet",
|
|
85
|
+
"contractHash": "c1329181f9c4be8b",
|
|
86
|
+
"inputHash": "38db0d79",
|
|
87
|
+
"outputHash": "c0d3d903"
|
|
88
|
+
},
|
|
89
|
+
"rowUpdate": {
|
|
90
|
+
"pikkuFuncId": "rowUpdate",
|
|
91
|
+
"functionType": "user",
|
|
92
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
93
|
+
"sessionless": true,
|
|
94
|
+
"name": "rowUpdate",
|
|
95
|
+
"services": {
|
|
96
|
+
"optimized": true,
|
|
97
|
+
"services": [
|
|
98
|
+
"baserow"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"inputSchemaName": "RowUpdateInput",
|
|
102
|
+
"outputSchemaName": "RowUpdateOutput",
|
|
103
|
+
"inputs": [
|
|
104
|
+
"RowUpdateInput"
|
|
105
|
+
],
|
|
106
|
+
"outputs": [
|
|
107
|
+
"RowUpdateOutput"
|
|
108
|
+
],
|
|
109
|
+
"implementationHash": "80c242802f34892b",
|
|
110
|
+
"description": "Update a row",
|
|
111
|
+
"isDirectFunction": false,
|
|
112
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/database/baserow/src/functions/rowUpdate.function.ts",
|
|
113
|
+
"exportedName": "rowUpdate",
|
|
114
|
+
"contractHash": "51ba34f4b536ecb2",
|
|
115
|
+
"inputHash": "7dd4e0ee",
|
|
116
|
+
"outputHash": "ff982a80"
|
|
117
|
+
},
|
|
118
|
+
"rowDelete": {
|
|
119
|
+
"pikkuFuncId": "rowDelete",
|
|
120
|
+
"functionType": "user",
|
|
121
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
122
|
+
"sessionless": true,
|
|
123
|
+
"name": "rowDelete",
|
|
124
|
+
"services": {
|
|
125
|
+
"optimized": true,
|
|
126
|
+
"services": [
|
|
127
|
+
"baserow"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"inputSchemaName": "RowDeleteInput",
|
|
131
|
+
"outputSchemaName": "RowDeleteOutput",
|
|
132
|
+
"inputs": [
|
|
133
|
+
"RowDeleteInput"
|
|
134
|
+
],
|
|
135
|
+
"outputs": [
|
|
136
|
+
"RowDeleteOutput"
|
|
137
|
+
],
|
|
138
|
+
"implementationHash": "e34a0e4fbccd025a",
|
|
139
|
+
"description": "Delete a row",
|
|
140
|
+
"isDirectFunction": false,
|
|
141
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/database/baserow/src/functions/rowDelete.function.ts",
|
|
142
|
+
"exportedName": "rowDelete",
|
|
143
|
+
"contractHash": "27659133ece75a55",
|
|
144
|
+
"inputHash": "f88f8993",
|
|
145
|
+
"outputHash": "df9ac2b4"
|
|
146
|
+
},
|
|
147
|
+
"rowBatchCreate": {
|
|
148
|
+
"pikkuFuncId": "rowBatchCreate",
|
|
149
|
+
"functionType": "user",
|
|
150
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
151
|
+
"sessionless": true,
|
|
152
|
+
"name": "rowBatchCreate",
|
|
153
|
+
"services": {
|
|
154
|
+
"optimized": true,
|
|
155
|
+
"services": [
|
|
156
|
+
"baserow"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"inputSchemaName": "RowBatchCreateInput",
|
|
160
|
+
"outputSchemaName": "RowBatchCreateOutput",
|
|
161
|
+
"inputs": [
|
|
162
|
+
"RowBatchCreateInput"
|
|
163
|
+
],
|
|
164
|
+
"outputs": [
|
|
165
|
+
"RowBatchCreateOutput"
|
|
166
|
+
],
|
|
167
|
+
"implementationHash": "2eacf71b416255b9",
|
|
168
|
+
"description": "Create up to 200 rows in one request",
|
|
169
|
+
"isDirectFunction": false,
|
|
170
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/database/baserow/src/functions/rowBatchCreate.function.ts",
|
|
171
|
+
"exportedName": "rowBatchCreate",
|
|
172
|
+
"contractHash": "dc0613681e59e649",
|
|
173
|
+
"inputHash": "971d6140",
|
|
174
|
+
"outputHash": "d97b29c5"
|
|
175
|
+
},
|
|
176
|
+
"rowBatchUpdate": {
|
|
177
|
+
"pikkuFuncId": "rowBatchUpdate",
|
|
178
|
+
"functionType": "user",
|
|
179
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
180
|
+
"sessionless": true,
|
|
181
|
+
"name": "rowBatchUpdate",
|
|
182
|
+
"services": {
|
|
183
|
+
"optimized": true,
|
|
184
|
+
"services": [
|
|
185
|
+
"baserow"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"inputSchemaName": "RowBatchUpdateInput",
|
|
189
|
+
"outputSchemaName": "RowBatchUpdateOutput",
|
|
190
|
+
"inputs": [
|
|
191
|
+
"RowBatchUpdateInput"
|
|
192
|
+
],
|
|
193
|
+
"outputs": [
|
|
194
|
+
"RowBatchUpdateOutput"
|
|
195
|
+
],
|
|
196
|
+
"implementationHash": "86b3d00a4838ecc8",
|
|
197
|
+
"description": "Update up to 200 rows in one request",
|
|
198
|
+
"isDirectFunction": false,
|
|
199
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/database/baserow/src/functions/rowBatchUpdate.function.ts",
|
|
200
|
+
"exportedName": "rowBatchUpdate",
|
|
201
|
+
"contractHash": "71a24f98c323a58e",
|
|
202
|
+
"inputHash": "ac84c049",
|
|
203
|
+
"outputHash": "fd4380a7"
|
|
204
|
+
},
|
|
205
|
+
"rowBatchDelete": {
|
|
206
|
+
"pikkuFuncId": "rowBatchDelete",
|
|
207
|
+
"functionType": "user",
|
|
208
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
209
|
+
"sessionless": true,
|
|
210
|
+
"name": "rowBatchDelete",
|
|
211
|
+
"services": {
|
|
212
|
+
"optimized": true,
|
|
213
|
+
"services": [
|
|
214
|
+
"baserow"
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
"inputSchemaName": "RowBatchDeleteInput",
|
|
218
|
+
"outputSchemaName": "RowBatchDeleteOutput",
|
|
219
|
+
"inputs": [
|
|
220
|
+
"RowBatchDeleteInput"
|
|
221
|
+
],
|
|
222
|
+
"outputs": [
|
|
223
|
+
"RowBatchDeleteOutput"
|
|
224
|
+
],
|
|
225
|
+
"implementationHash": "c9abd92cadcc00ec",
|
|
226
|
+
"description": "Delete up to 200 rows in one request",
|
|
227
|
+
"isDirectFunction": false,
|
|
228
|
+
"sourceFile": "/home/runner/work/addons/addons/packages/database/baserow/src/functions/rowBatchDelete.function.ts",
|
|
229
|
+
"exportedName": "rowBatchDelete",
|
|
230
|
+
"contractHash": "1c91bd7015c7ed2e",
|
|
231
|
+
"inputHash": "acea0b83",
|
|
232
|
+
"outputHash": "79338ac6"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions-meta.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/function/pikku-functions-meta.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-functions-meta.gen.json' with { type: 'json' };
|
|
6
|
+
pikkuState('@pikku/addon-baserow', 'function', 'meta', metaData);
|
|
7
|
+
//# sourceMappingURL=pikku-functions-meta.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions-meta.gen.js","sourceRoot":"","sources":["../../../.pikku/function/pikku-functions-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,QAAQ,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC5E,UAAU,CAAC,sBAAsB,EAAE,UAAU,EAAE,MAAM,EAAE,QAAyB,CAAC,CAAA"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rowGetAll": {
|
|
3
|
+
"pikkuFuncId": "rowGetAll",
|
|
4
|
+
"functionType": "user",
|
|
5
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
6
|
+
"sessionless": true,
|
|
7
|
+
"name": "rowGetAll",
|
|
8
|
+
"inputSchemaName": "RowGetAllInput",
|
|
9
|
+
"outputSchemaName": "RowGetAllOutput",
|
|
10
|
+
"inputs": [
|
|
11
|
+
"RowGetAllInput"
|
|
12
|
+
],
|
|
13
|
+
"outputs": [
|
|
14
|
+
"RowGetAllOutput"
|
|
15
|
+
],
|
|
16
|
+
"implementationHash": "1f2e10d7f0e00fc3",
|
|
17
|
+
"contractHash": "9bff644a706f9d70",
|
|
18
|
+
"inputHash": "24ca05c3",
|
|
19
|
+
"outputHash": "bce6fb9d"
|
|
20
|
+
},
|
|
21
|
+
"rowCreate": {
|
|
22
|
+
"pikkuFuncId": "rowCreate",
|
|
23
|
+
"functionType": "user",
|
|
24
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
25
|
+
"sessionless": true,
|
|
26
|
+
"name": "rowCreate",
|
|
27
|
+
"inputSchemaName": "RowCreateInput",
|
|
28
|
+
"outputSchemaName": "RowCreateOutput",
|
|
29
|
+
"inputs": [
|
|
30
|
+
"RowCreateInput"
|
|
31
|
+
],
|
|
32
|
+
"outputs": [
|
|
33
|
+
"RowCreateOutput"
|
|
34
|
+
],
|
|
35
|
+
"implementationHash": "4e0bad44b743148a",
|
|
36
|
+
"contractHash": "86cda99a8e851154",
|
|
37
|
+
"inputHash": "b6ab2cb1",
|
|
38
|
+
"outputHash": "7fbc0d13"
|
|
39
|
+
},
|
|
40
|
+
"rowGet": {
|
|
41
|
+
"pikkuFuncId": "rowGet",
|
|
42
|
+
"functionType": "user",
|
|
43
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
44
|
+
"sessionless": true,
|
|
45
|
+
"name": "rowGet",
|
|
46
|
+
"inputSchemaName": "RowGetInput",
|
|
47
|
+
"outputSchemaName": "RowGetOutput",
|
|
48
|
+
"inputs": [
|
|
49
|
+
"RowGetInput"
|
|
50
|
+
],
|
|
51
|
+
"outputs": [
|
|
52
|
+
"RowGetOutput"
|
|
53
|
+
],
|
|
54
|
+
"implementationHash": "1103138a067c161f",
|
|
55
|
+
"contractHash": "c1329181f9c4be8b",
|
|
56
|
+
"inputHash": "38db0d79",
|
|
57
|
+
"outputHash": "c0d3d903"
|
|
58
|
+
},
|
|
59
|
+
"rowUpdate": {
|
|
60
|
+
"pikkuFuncId": "rowUpdate",
|
|
61
|
+
"functionType": "user",
|
|
62
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
63
|
+
"sessionless": true,
|
|
64
|
+
"name": "rowUpdate",
|
|
65
|
+
"inputSchemaName": "RowUpdateInput",
|
|
66
|
+
"outputSchemaName": "RowUpdateOutput",
|
|
67
|
+
"inputs": [
|
|
68
|
+
"RowUpdateInput"
|
|
69
|
+
],
|
|
70
|
+
"outputs": [
|
|
71
|
+
"RowUpdateOutput"
|
|
72
|
+
],
|
|
73
|
+
"implementationHash": "80c242802f34892b",
|
|
74
|
+
"contractHash": "51ba34f4b536ecb2",
|
|
75
|
+
"inputHash": "7dd4e0ee",
|
|
76
|
+
"outputHash": "ff982a80"
|
|
77
|
+
},
|
|
78
|
+
"rowDelete": {
|
|
79
|
+
"pikkuFuncId": "rowDelete",
|
|
80
|
+
"functionType": "user",
|
|
81
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
82
|
+
"sessionless": true,
|
|
83
|
+
"name": "rowDelete",
|
|
84
|
+
"inputSchemaName": "RowDeleteInput",
|
|
85
|
+
"outputSchemaName": "RowDeleteOutput",
|
|
86
|
+
"inputs": [
|
|
87
|
+
"RowDeleteInput"
|
|
88
|
+
],
|
|
89
|
+
"outputs": [
|
|
90
|
+
"RowDeleteOutput"
|
|
91
|
+
],
|
|
92
|
+
"implementationHash": "e34a0e4fbccd025a",
|
|
93
|
+
"contractHash": "27659133ece75a55",
|
|
94
|
+
"inputHash": "f88f8993",
|
|
95
|
+
"outputHash": "df9ac2b4"
|
|
96
|
+
},
|
|
97
|
+
"rowBatchCreate": {
|
|
98
|
+
"pikkuFuncId": "rowBatchCreate",
|
|
99
|
+
"functionType": "user",
|
|
100
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
101
|
+
"sessionless": true,
|
|
102
|
+
"name": "rowBatchCreate",
|
|
103
|
+
"inputSchemaName": "RowBatchCreateInput",
|
|
104
|
+
"outputSchemaName": "RowBatchCreateOutput",
|
|
105
|
+
"inputs": [
|
|
106
|
+
"RowBatchCreateInput"
|
|
107
|
+
],
|
|
108
|
+
"outputs": [
|
|
109
|
+
"RowBatchCreateOutput"
|
|
110
|
+
],
|
|
111
|
+
"implementationHash": "2eacf71b416255b9",
|
|
112
|
+
"contractHash": "dc0613681e59e649",
|
|
113
|
+
"inputHash": "971d6140",
|
|
114
|
+
"outputHash": "d97b29c5"
|
|
115
|
+
},
|
|
116
|
+
"rowBatchUpdate": {
|
|
117
|
+
"pikkuFuncId": "rowBatchUpdate",
|
|
118
|
+
"functionType": "user",
|
|
119
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
120
|
+
"sessionless": true,
|
|
121
|
+
"name": "rowBatchUpdate",
|
|
122
|
+
"inputSchemaName": "RowBatchUpdateInput",
|
|
123
|
+
"outputSchemaName": "RowBatchUpdateOutput",
|
|
124
|
+
"inputs": [
|
|
125
|
+
"RowBatchUpdateInput"
|
|
126
|
+
],
|
|
127
|
+
"outputs": [
|
|
128
|
+
"RowBatchUpdateOutput"
|
|
129
|
+
],
|
|
130
|
+
"implementationHash": "86b3d00a4838ecc8",
|
|
131
|
+
"contractHash": "71a24f98c323a58e",
|
|
132
|
+
"inputHash": "ac84c049",
|
|
133
|
+
"outputHash": "fd4380a7"
|
|
134
|
+
},
|
|
135
|
+
"rowBatchDelete": {
|
|
136
|
+
"pikkuFuncId": "rowBatchDelete",
|
|
137
|
+
"functionType": "user",
|
|
138
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
139
|
+
"sessionless": true,
|
|
140
|
+
"name": "rowBatchDelete",
|
|
141
|
+
"inputSchemaName": "RowBatchDeleteInput",
|
|
142
|
+
"outputSchemaName": "RowBatchDeleteOutput",
|
|
143
|
+
"inputs": [
|
|
144
|
+
"RowBatchDeleteInput"
|
|
145
|
+
],
|
|
146
|
+
"outputs": [
|
|
147
|
+
"RowBatchDeleteOutput"
|
|
148
|
+
],
|
|
149
|
+
"implementationHash": "c9abd92cadcc00ec",
|
|
150
|
+
"contractHash": "1c91bd7015c7ed2e",
|
|
151
|
+
"inputHash": "acea0b83",
|
|
152
|
+
"outputHash": "79338ac6"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -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 type { FunctionsMeta } from '@pikku/core'
|
|
6
|
+
import metaData from './pikku-functions-meta.gen.json' with { type: 'json' }
|
|
7
|
+
pikkuState('@pikku/addon-baserow', 'function', 'meta', metaData as FunctionsMeta)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/function/pikku-functions.gen.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/* Import and register functions used by RPCs */
|
|
5
|
+
import { addFunction } from '@pikku/core/function';
|
|
6
|
+
import { rowBatchCreate } from '../../src/functions/rowBatchCreate.function.js';
|
|
7
|
+
import { rowBatchDelete } from '../../src/functions/rowBatchDelete.function.js';
|
|
8
|
+
import { rowBatchUpdate } from '../../src/functions/rowBatchUpdate.function.js';
|
|
9
|
+
import { rowCreate } from '../../src/functions/rowCreate.function.js';
|
|
10
|
+
import { rowDelete } from '../../src/functions/rowDelete.function.js';
|
|
11
|
+
import { rowGet } from '../../src/functions/rowGet.function.js';
|
|
12
|
+
import { rowGetAll } from '../../src/functions/rowGetAll.function.js';
|
|
13
|
+
import { rowUpdate } from '../../src/functions/rowUpdate.function.js';
|
|
14
|
+
addFunction('rowBatchCreate', rowBatchCreate, '@pikku/addon-baserow');
|
|
15
|
+
addFunction('rowBatchDelete', rowBatchDelete, '@pikku/addon-baserow');
|
|
16
|
+
addFunction('rowBatchUpdate', rowBatchUpdate, '@pikku/addon-baserow');
|
|
17
|
+
addFunction('rowCreate', rowCreate, '@pikku/addon-baserow');
|
|
18
|
+
addFunction('rowDelete', rowDelete, '@pikku/addon-baserow');
|
|
19
|
+
addFunction('rowGet', rowGet, '@pikku/addon-baserow');
|
|
20
|
+
addFunction('rowGetAll', rowGetAll, '@pikku/addon-baserow');
|
|
21
|
+
addFunction('rowUpdate', rowUpdate, '@pikku/addon-baserow');
|
|
22
|
+
//# sourceMappingURL=pikku-functions.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-functions.gen.js","sourceRoot":"","sources":["../../../.pikku/function/pikku-functions.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,gDAAgD;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA;AAErE,WAAW,CAAC,gBAAgB,EAAE,cAAc,EAAE,sBAAsB,CAAC,CAAA;AACrE,WAAW,CAAC,gBAAgB,EAAE,cAAc,EAAE,sBAAsB,CAAC,CAAA;AACrE,WAAW,CAAC,gBAAgB,EAAE,cAAc,EAAE,sBAAsB,CAAC,CAAA;AACrE,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,sBAAsB,CAAC,CAAA;AAC3D,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,sBAAsB,CAAC,CAAA;AAC3D,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,sBAAsB,CAAC,CAAA;AACrD,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,sBAAsB,CAAC,CAAA;AAC3D,WAAW,CAAC,WAAW,EAAE,SAAS,EAAE,sBAAsB,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/* Import and register functions used by RPCs */
|
|
5
|
+
import { addFunction } from '@pikku/core/function'
|
|
6
|
+
import { rowBatchCreate } from '../../src/functions/rowBatchCreate.function.js'
|
|
7
|
+
import { rowBatchDelete } from '../../src/functions/rowBatchDelete.function.js'
|
|
8
|
+
import { rowBatchUpdate } from '../../src/functions/rowBatchUpdate.function.js'
|
|
9
|
+
import { rowCreate } from '../../src/functions/rowCreate.function.js'
|
|
10
|
+
import { rowDelete } from '../../src/functions/rowDelete.function.js'
|
|
11
|
+
import { rowGet } from '../../src/functions/rowGet.function.js'
|
|
12
|
+
import { rowGetAll } from '../../src/functions/rowGetAll.function.js'
|
|
13
|
+
import { rowUpdate } from '../../src/functions/rowUpdate.function.js'
|
|
14
|
+
|
|
15
|
+
addFunction('rowBatchCreate', rowBatchCreate, '@pikku/addon-baserow')
|
|
16
|
+
addFunction('rowBatchDelete', rowBatchDelete, '@pikku/addon-baserow')
|
|
17
|
+
addFunction('rowBatchUpdate', rowBatchUpdate, '@pikku/addon-baserow')
|
|
18
|
+
addFunction('rowCreate', rowCreate, '@pikku/addon-baserow')
|
|
19
|
+
addFunction('rowDelete', rowDelete, '@pikku/addon-baserow')
|
|
20
|
+
addFunction('rowGet', rowGet, '@pikku/addon-baserow')
|
|
21
|
+
addFunction('rowGetAll', rowGetAll, '@pikku/addon-baserow')
|
|
22
|
+
addFunction('rowUpdate', rowUpdate, '@pikku/addon-baserow')
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* HTTP-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { AssertHTTPWiringParams } from '@pikku/core/http';
|
|
8
|
+
import type { PikkuFunction, PikkuFunctionSessionless, PikkuPermission, PikkuMiddleware, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
9
|
+
import type { CoreHTTPFunctionWiring, HTTPMethod, HTTPRouteBaseConfig } from '@pikku/core/http';
|
|
10
|
+
/**
|
|
11
|
+
* Type definition for HTTP API wirings with type-safe path parameters.
|
|
12
|
+
* Supports both authenticated and unauthenticated functions.
|
|
13
|
+
*
|
|
14
|
+
* @template In - Input type for the HTTP wiring
|
|
15
|
+
* @template Out - Output type for the HTTP wiring
|
|
16
|
+
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
17
|
+
*/
|
|
18
|
+
type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out, Route, PikkuFunction<In, Out, 'rpc' | 'session'>, PikkuFunctionSessionless<In, Out, 'rpc' | 'session'>, PikkuPermission<In>, PikkuMiddleware>;
|
|
19
|
+
/**
|
|
20
|
+
* Registers an HTTP wiring with the Pikku framework.
|
|
21
|
+
*
|
|
22
|
+
* @template In - Input type for the HTTP wiring
|
|
23
|
+
* @template Out - Output type for the HTTP wiring
|
|
24
|
+
* @template Route - String literal type for the HTTP path (e.g., "/users/:id")
|
|
25
|
+
* @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
|
|
26
|
+
*/
|
|
27
|
+
export declare const wireHTTP: <In, Out, Route extends string>(httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Registers HTTP middleware either globally or for a specific route pattern.
|
|
30
|
+
*
|
|
31
|
+
* When a string route pattern is provided along with middleware, the middleware
|
|
32
|
+
* is applied only to that route. Otherwise, if an array is provided, it is treated
|
|
33
|
+
* as global middleware (applied to all routes).
|
|
34
|
+
*
|
|
35
|
+
* @param routeOrMiddleware - Either a global middleware array or a route pattern string
|
|
36
|
+
* @param middleware - The middleware array to apply when a route pattern is specified
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* // Add global HTTP middleware
|
|
41
|
+
* addHTTPMiddleware([authMiddleware, loggingMiddleware])
|
|
42
|
+
*
|
|
43
|
+
* // Add route-specific middleware
|
|
44
|
+
* addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare const addHTTPMiddleware: (routeOrMiddleware: PikkuMiddleware[] | string, middleware?: PikkuMiddleware[]) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Registers HTTP permissions either globally or for a specific route pattern.
|
|
50
|
+
*
|
|
51
|
+
* When a string route pattern is provided along with permissions, the permissions
|
|
52
|
+
* are applied only to that route. Permissions can be passed as an array or as a
|
|
53
|
+
* permission group object.
|
|
54
|
+
*
|
|
55
|
+
* @param pattern - Route pattern string (e.g., '*' for all routes, '/api/*' for specific routes)
|
|
56
|
+
* @param permissions - The permissions to apply for the specified route pattern
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```typescript
|
|
60
|
+
* // Add global HTTP permissions
|
|
61
|
+
* addHTTPPermission('*', { global: globalPermission })
|
|
62
|
+
*
|
|
63
|
+
* // Add route-specific permissions
|
|
64
|
+
* addHTTPPermission('/api/admin/*', { admin: adminPermission })
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
export declare const addHTTPPermission: <In = unknown>(pattern: string, permissions: Record<string, PikkuPermission<In>> | PikkuPermission<In>[]) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Route configuration for wireHTTPRoutes with proper typing
|
|
70
|
+
*/
|
|
71
|
+
type HTTPRouteConfig = HTTPRouteBaseConfig & {
|
|
72
|
+
method: HTTPMethod;
|
|
73
|
+
route: string;
|
|
74
|
+
func: PikkuFunctionConfig<any, any, any, any, any, any>;
|
|
75
|
+
auth?: boolean;
|
|
76
|
+
permissions?: Record<string, PikkuPermission | PikkuPermission[]>;
|
|
77
|
+
middleware?: PikkuMiddleware[];
|
|
78
|
+
sse?: boolean;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Typed route map for wireHTTPRoutes
|
|
82
|
+
*/
|
|
83
|
+
type TypedHTTPRouteMap = {
|
|
84
|
+
[key: string]: HTTPRouteConfig | TypedHTTPRouteMap | TypedHTTPRouteContract;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Typed route contract for defineHTTPRoutes
|
|
88
|
+
*/
|
|
89
|
+
type TypedHTTPRouteContract<T extends TypedHTTPRouteMap = TypedHTTPRouteMap> = TypedHTTPRoutesGroupConfig & {
|
|
90
|
+
routes: T;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Group config with typed middleware/permissions
|
|
94
|
+
*/
|
|
95
|
+
type TypedHTTPRoutesGroupConfig = {
|
|
96
|
+
basePath?: string;
|
|
97
|
+
tags?: string[];
|
|
98
|
+
auth?: boolean;
|
|
99
|
+
middleware?: PikkuMiddleware[];
|
|
100
|
+
permissions?: Record<string, PikkuPermission | PikkuPermission[]>;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Full config for wireHTTPRoutes
|
|
104
|
+
*/
|
|
105
|
+
type TypedWireHTTPRoutesConfig = TypedHTTPRoutesGroupConfig & {
|
|
106
|
+
routes: TypedHTTPRouteMap | HTTPRouteConfig[];
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Type-safe helper for defining route contracts that can be composed.
|
|
110
|
+
*/
|
|
111
|
+
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>;
|
|
112
|
+
export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & {
|
|
113
|
+
routes: T;
|
|
114
|
+
}): TypedHTTPRouteContract<T>;
|
|
115
|
+
/**
|
|
116
|
+
* Wires multiple HTTP routes from a nested map or array configuration.
|
|
117
|
+
*/
|
|
118
|
+
export declare const wireHTTPRoutes: (config: TypedWireHTTPRoutesConfig) => void;
|
|
119
|
+
export {};
|
|
120
|
+
//# sourceMappingURL=pikku-http-types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-http-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/http/pikku-http-types.gen.ts"],"names":[],"mappings":"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"}
|