@robinpath/sanity 0.1.0
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 +107 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/sanity.d.ts +214 -0
- package/dist/sanity.d.ts.map +1 -0
- package/dist/sanity.js +135 -0
- package/dist/sanity.js.map +1 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# @robinpath/sanity
|
|
2
|
+
|
|
3
|
+
> Sanity module for RobinPath.
|
|
4
|
+
|
|
5
|
+
   
|
|
6
|
+
|
|
7
|
+
## Why use this module?
|
|
8
|
+
|
|
9
|
+
The `sanity` module lets you:
|
|
10
|
+
|
|
11
|
+
- query
|
|
12
|
+
- getDocument
|
|
13
|
+
- createDocument
|
|
14
|
+
- createOrReplace
|
|
15
|
+
- patch
|
|
16
|
+
|
|
17
|
+
All functions are callable directly from RobinPath scripts with a simple, consistent API.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @robinpath/sanity
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
**1. Set up credentials**
|
|
28
|
+
|
|
29
|
+
```robinpath
|
|
30
|
+
sanity.setCredentials "your-credentials"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**2. query**
|
|
34
|
+
|
|
35
|
+
```robinpath
|
|
36
|
+
sanity.query
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Available Functions
|
|
40
|
+
|
|
41
|
+
| Function | Description |
|
|
42
|
+
|----------|-------------|
|
|
43
|
+
| `sanity.setCredentials` | Configure sanity credentials. |
|
|
44
|
+
| `sanity.query` | query |
|
|
45
|
+
| `sanity.getDocument` | getDocument |
|
|
46
|
+
| `sanity.createDocument` | createDocument |
|
|
47
|
+
| `sanity.createOrReplace` | createOrReplace |
|
|
48
|
+
| `sanity.patch` | patch |
|
|
49
|
+
| `sanity.deleteDocument` | deleteDocument |
|
|
50
|
+
| `sanity.uploadAsset` | uploadAsset |
|
|
51
|
+
| `sanity.getAsset` | getAsset |
|
|
52
|
+
| `sanity.listDatasets` | listDatasets |
|
|
53
|
+
| `sanity.createDataset` | createDataset |
|
|
54
|
+
| `sanity.deleteDataset` | deleteDataset |
|
|
55
|
+
| `sanity.mutate` | mutate |
|
|
56
|
+
| `sanity.listDocumentsByType` | listDocumentsByType |
|
|
57
|
+
| `sanity.getProject` | getProject |
|
|
58
|
+
| `sanity.exportDataset` | exportDataset |
|
|
59
|
+
| `sanity.importDataset` | importDataset |
|
|
60
|
+
|
|
61
|
+
## Examples
|
|
62
|
+
|
|
63
|
+
### query
|
|
64
|
+
|
|
65
|
+
```robinpath
|
|
66
|
+
sanity.query
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### getDocument
|
|
70
|
+
|
|
71
|
+
```robinpath
|
|
72
|
+
sanity.getDocument
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### createDocument
|
|
76
|
+
|
|
77
|
+
```robinpath
|
|
78
|
+
sanity.createDocument
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Integration with RobinPath
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
import { RobinPath } from "@wiredwp/robinpath";
|
|
85
|
+
import Module from "@robinpath/sanity";
|
|
86
|
+
|
|
87
|
+
const rp = new RobinPath();
|
|
88
|
+
rp.registerModule(Module.name, Module.functions);
|
|
89
|
+
rp.registerModuleMeta(Module.name, Module.functionMetadata);
|
|
90
|
+
|
|
91
|
+
const result = await rp.executeScript(`
|
|
92
|
+
sanity.setCredentials "your-credentials"
|
|
93
|
+
sanity.query
|
|
94
|
+
`);
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Full API Reference
|
|
98
|
+
|
|
99
|
+
See [MODULE.md](./MODULE.md) for complete documentation including all parameters, return types, error handling, and advanced examples.
|
|
100
|
+
|
|
101
|
+
## Related Modules
|
|
102
|
+
|
|
103
|
+
- [`@robinpath/json`](../json) — JSON module for complementary functionality
|
|
104
|
+
|
|
105
|
+
## License
|
|
106
|
+
|
|
107
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ModuleAdapter } from "@wiredwp/robinpath";
|
|
2
|
+
declare const SanityModule: ModuleAdapter;
|
|
3
|
+
export default SanityModule;
|
|
4
|
+
export { SanityModule };
|
|
5
|
+
export { SanityFunctions, SanityFunctionMetadata, SanityModuleMetadata } from "./sanity.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,QAAA,MAAM,YAAY,EAAE,aAMnB,CAAC;AAEF,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SanityFunctions, SanityFunctionMetadata, SanityModuleMetadata } from "./sanity.js";
|
|
2
|
+
const SanityModule = {
|
|
3
|
+
name: "sanity",
|
|
4
|
+
functions: SanityFunctions,
|
|
5
|
+
functionMetadata: SanityFunctionMetadata,
|
|
6
|
+
moduleMetadata: SanityModuleMetadata,
|
|
7
|
+
global: false,
|
|
8
|
+
}; // as ModuleAdapter
|
|
9
|
+
export default SanityModule;
|
|
10
|
+
export { SanityModule };
|
|
11
|
+
export { SanityFunctions, SanityFunctionMetadata, SanityModuleMetadata } from "./sanity.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE5F,MAAM,YAAY,GAAkB;IAClC,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,eAAe;IAC1B,gBAAgB,EAAE,sBAA6B;IAC/C,cAAc,EAAE,oBAA2B;IAC3C,MAAM,EAAE,KAAK;CACd,CAAC,CAAC,mBAAmB;AAEtB,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/sanity.d.ts
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import type { BuiltinHandler } from "@wiredwp/robinpath";
|
|
2
|
+
export declare const SanityFunctions: Record<string, BuiltinHandler>;
|
|
3
|
+
export declare const SanityFunctionMetadata: {
|
|
4
|
+
setCredentials: {
|
|
5
|
+
description: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
name: string;
|
|
8
|
+
dataType: string;
|
|
9
|
+
description: string;
|
|
10
|
+
formInputType: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
returnType: string;
|
|
14
|
+
returnDescription: string;
|
|
15
|
+
};
|
|
16
|
+
query: {
|
|
17
|
+
description: string;
|
|
18
|
+
parameters: {
|
|
19
|
+
name: string;
|
|
20
|
+
dataType: string;
|
|
21
|
+
description: string;
|
|
22
|
+
formInputType: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
}[];
|
|
25
|
+
returnType: string;
|
|
26
|
+
returnDescription: string;
|
|
27
|
+
};
|
|
28
|
+
getDocument: {
|
|
29
|
+
description: string;
|
|
30
|
+
parameters: {
|
|
31
|
+
name: string;
|
|
32
|
+
dataType: string;
|
|
33
|
+
description: string;
|
|
34
|
+
formInputType: string;
|
|
35
|
+
required: boolean;
|
|
36
|
+
}[];
|
|
37
|
+
returnType: string;
|
|
38
|
+
returnDescription: string;
|
|
39
|
+
};
|
|
40
|
+
createDocument: {
|
|
41
|
+
description: string;
|
|
42
|
+
parameters: {
|
|
43
|
+
name: string;
|
|
44
|
+
dataType: string;
|
|
45
|
+
description: string;
|
|
46
|
+
formInputType: string;
|
|
47
|
+
required: boolean;
|
|
48
|
+
}[];
|
|
49
|
+
returnType: string;
|
|
50
|
+
returnDescription: string;
|
|
51
|
+
};
|
|
52
|
+
createOrReplace: {
|
|
53
|
+
description: string;
|
|
54
|
+
parameters: {
|
|
55
|
+
name: string;
|
|
56
|
+
dataType: string;
|
|
57
|
+
description: string;
|
|
58
|
+
formInputType: string;
|
|
59
|
+
required: boolean;
|
|
60
|
+
}[];
|
|
61
|
+
returnType: string;
|
|
62
|
+
returnDescription: string;
|
|
63
|
+
};
|
|
64
|
+
patch: {
|
|
65
|
+
description: string;
|
|
66
|
+
parameters: {
|
|
67
|
+
name: string;
|
|
68
|
+
dataType: string;
|
|
69
|
+
description: string;
|
|
70
|
+
formInputType: string;
|
|
71
|
+
required: boolean;
|
|
72
|
+
}[];
|
|
73
|
+
returnType: string;
|
|
74
|
+
returnDescription: string;
|
|
75
|
+
};
|
|
76
|
+
deleteDocument: {
|
|
77
|
+
description: string;
|
|
78
|
+
parameters: {
|
|
79
|
+
name: string;
|
|
80
|
+
dataType: string;
|
|
81
|
+
description: string;
|
|
82
|
+
formInputType: string;
|
|
83
|
+
required: boolean;
|
|
84
|
+
}[];
|
|
85
|
+
returnType: string;
|
|
86
|
+
returnDescription: string;
|
|
87
|
+
};
|
|
88
|
+
uploadAsset: {
|
|
89
|
+
description: string;
|
|
90
|
+
parameters: {
|
|
91
|
+
name: string;
|
|
92
|
+
dataType: string;
|
|
93
|
+
description: string;
|
|
94
|
+
formInputType: string;
|
|
95
|
+
required: boolean;
|
|
96
|
+
}[];
|
|
97
|
+
returnType: string;
|
|
98
|
+
returnDescription: string;
|
|
99
|
+
};
|
|
100
|
+
getAsset: {
|
|
101
|
+
description: string;
|
|
102
|
+
parameters: {
|
|
103
|
+
name: string;
|
|
104
|
+
dataType: string;
|
|
105
|
+
description: string;
|
|
106
|
+
formInputType: string;
|
|
107
|
+
required: boolean;
|
|
108
|
+
}[];
|
|
109
|
+
returnType: string;
|
|
110
|
+
returnDescription: string;
|
|
111
|
+
};
|
|
112
|
+
listDatasets: {
|
|
113
|
+
description: string;
|
|
114
|
+
parameters: {
|
|
115
|
+
name: string;
|
|
116
|
+
dataType: string;
|
|
117
|
+
description: string;
|
|
118
|
+
formInputType: string;
|
|
119
|
+
required: boolean;
|
|
120
|
+
}[];
|
|
121
|
+
returnType: string;
|
|
122
|
+
returnDescription: string;
|
|
123
|
+
};
|
|
124
|
+
createDataset: {
|
|
125
|
+
description: string;
|
|
126
|
+
parameters: {
|
|
127
|
+
name: string;
|
|
128
|
+
dataType: string;
|
|
129
|
+
description: string;
|
|
130
|
+
formInputType: string;
|
|
131
|
+
required: boolean;
|
|
132
|
+
}[];
|
|
133
|
+
returnType: string;
|
|
134
|
+
returnDescription: string;
|
|
135
|
+
};
|
|
136
|
+
deleteDataset: {
|
|
137
|
+
description: string;
|
|
138
|
+
parameters: {
|
|
139
|
+
name: string;
|
|
140
|
+
dataType: string;
|
|
141
|
+
description: string;
|
|
142
|
+
formInputType: string;
|
|
143
|
+
required: boolean;
|
|
144
|
+
}[];
|
|
145
|
+
returnType: string;
|
|
146
|
+
returnDescription: string;
|
|
147
|
+
};
|
|
148
|
+
mutate: {
|
|
149
|
+
description: string;
|
|
150
|
+
parameters: {
|
|
151
|
+
name: string;
|
|
152
|
+
dataType: string;
|
|
153
|
+
description: string;
|
|
154
|
+
formInputType: string;
|
|
155
|
+
required: boolean;
|
|
156
|
+
}[];
|
|
157
|
+
returnType: string;
|
|
158
|
+
returnDescription: string;
|
|
159
|
+
};
|
|
160
|
+
listDocumentsByType: {
|
|
161
|
+
description: string;
|
|
162
|
+
parameters: {
|
|
163
|
+
name: string;
|
|
164
|
+
dataType: string;
|
|
165
|
+
description: string;
|
|
166
|
+
formInputType: string;
|
|
167
|
+
required: boolean;
|
|
168
|
+
}[];
|
|
169
|
+
returnType: string;
|
|
170
|
+
returnDescription: string;
|
|
171
|
+
};
|
|
172
|
+
getProject: {
|
|
173
|
+
description: string;
|
|
174
|
+
parameters: {
|
|
175
|
+
name: string;
|
|
176
|
+
dataType: string;
|
|
177
|
+
description: string;
|
|
178
|
+
formInputType: string;
|
|
179
|
+
required: boolean;
|
|
180
|
+
}[];
|
|
181
|
+
returnType: string;
|
|
182
|
+
returnDescription: string;
|
|
183
|
+
};
|
|
184
|
+
exportDataset: {
|
|
185
|
+
description: string;
|
|
186
|
+
parameters: {
|
|
187
|
+
name: string;
|
|
188
|
+
dataType: string;
|
|
189
|
+
description: string;
|
|
190
|
+
formInputType: string;
|
|
191
|
+
required: boolean;
|
|
192
|
+
}[];
|
|
193
|
+
returnType: string;
|
|
194
|
+
returnDescription: string;
|
|
195
|
+
};
|
|
196
|
+
importDataset: {
|
|
197
|
+
description: string;
|
|
198
|
+
parameters: {
|
|
199
|
+
name: string;
|
|
200
|
+
dataType: string;
|
|
201
|
+
description: string;
|
|
202
|
+
formInputType: string;
|
|
203
|
+
required: boolean;
|
|
204
|
+
}[];
|
|
205
|
+
returnType: string;
|
|
206
|
+
returnDescription: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
export declare const SanityModuleMetadata: {
|
|
210
|
+
description: string;
|
|
211
|
+
methods: string[];
|
|
212
|
+
category: string;
|
|
213
|
+
};
|
|
214
|
+
//# sourceMappingURL=sanity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanity.d.ts","sourceRoot":"","sources":["../src/sanity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAA2C,MAAM,oBAAoB,CAAC;AAyHlG,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAE1D,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBlC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;CAIhC,CAAC"}
|
package/dist/sanity.js
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
const config = new Map();
|
|
2
|
+
function getConfig(key) {
|
|
3
|
+
const val = config.get(key);
|
|
4
|
+
if (!val)
|
|
5
|
+
throw new Error(`Sanity: "${key}" not configured. Call sanity.setCredentials first.`);
|
|
6
|
+
return val;
|
|
7
|
+
}
|
|
8
|
+
async function apiCall(path, method = "GET", body) {
|
|
9
|
+
const res = await fetch(`https://${getConfig("projectId")}.api.sanity.io/v2023-08-01${path}`, {
|
|
10
|
+
method,
|
|
11
|
+
headers: { "Authorization": `Bearer ${getConfig("dataset")}`, "Content-Type": "application/json", Accept: "application/json" },
|
|
12
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
13
|
+
});
|
|
14
|
+
if (!res.ok) {
|
|
15
|
+
const t = await res.text();
|
|
16
|
+
throw new Error(`Sanity API error (${res.status}): ${t}`);
|
|
17
|
+
}
|
|
18
|
+
const ct = res.headers.get("content-type");
|
|
19
|
+
return ct && ct.includes("application/json") ? res.json() : res.text();
|
|
20
|
+
}
|
|
21
|
+
const setCredentials = (args) => {
|
|
22
|
+
const projectId = args[0];
|
|
23
|
+
const dataset = args[1];
|
|
24
|
+
const token = args[2];
|
|
25
|
+
if (!projectId || !dataset || !token)
|
|
26
|
+
throw new Error("sanity.setCredentials requires projectId, dataset, token.");
|
|
27
|
+
config.set("projectId", projectId);
|
|
28
|
+
config.set("dataset", dataset);
|
|
29
|
+
config.set("token", token);
|
|
30
|
+
return "Sanity credentials configured.";
|
|
31
|
+
};
|
|
32
|
+
const query = async (args) => {
|
|
33
|
+
const id = args[0];
|
|
34
|
+
return apiCall(id ? `/query/${id}` : `/query`);
|
|
35
|
+
};
|
|
36
|
+
const getDocument = async (args) => {
|
|
37
|
+
const id = args[0];
|
|
38
|
+
return apiCall(id ? `/getDocument/${id}` : `/getDocument`);
|
|
39
|
+
};
|
|
40
|
+
const createDocument = async (args) => {
|
|
41
|
+
const id = args[0];
|
|
42
|
+
const data = args[1] ?? args[0];
|
|
43
|
+
return apiCall(`/createDocument`, "POST", typeof data === "object" ? data : { value: data });
|
|
44
|
+
};
|
|
45
|
+
const createOrReplace = async (args) => {
|
|
46
|
+
const id = args[0];
|
|
47
|
+
const data = args[1] ?? args[0];
|
|
48
|
+
return apiCall(`/createOrReplace`, "POST", typeof data === "object" ? data : { value: data });
|
|
49
|
+
};
|
|
50
|
+
const patch = async (args) => {
|
|
51
|
+
const id = args[0];
|
|
52
|
+
if (!id)
|
|
53
|
+
throw new Error("sanity.patch requires an ID.");
|
|
54
|
+
const data = args[1] ?? {};
|
|
55
|
+
return apiCall(`/patch/${id}`, "PUT", typeof data === "object" ? data : { value: data });
|
|
56
|
+
};
|
|
57
|
+
const deleteDocument = async (args) => {
|
|
58
|
+
const id = args[0];
|
|
59
|
+
if (!id)
|
|
60
|
+
throw new Error("sanity.deleteDocument requires an ID.");
|
|
61
|
+
return apiCall(`/deleteDocument/${id}`, "DELETE");
|
|
62
|
+
};
|
|
63
|
+
const uploadAsset = async (args) => {
|
|
64
|
+
const id = args[0];
|
|
65
|
+
const data = args[1] ?? args[0];
|
|
66
|
+
return apiCall(`/uploadAsset`, "POST", typeof data === "object" ? data : { value: data });
|
|
67
|
+
};
|
|
68
|
+
const getAsset = async (args) => {
|
|
69
|
+
const id = args[0];
|
|
70
|
+
return apiCall(id ? `/getAsset/${id}` : `/getAsset`);
|
|
71
|
+
};
|
|
72
|
+
const listDatasets = async (args) => {
|
|
73
|
+
const id = args[0];
|
|
74
|
+
return apiCall(id ? `/listDatasets/${id}` : `/listDatasets`);
|
|
75
|
+
};
|
|
76
|
+
const createDataset = async (args) => {
|
|
77
|
+
const id = args[0];
|
|
78
|
+
const data = args[1] ?? args[0];
|
|
79
|
+
return apiCall(`/createDataset`, "POST", typeof data === "object" ? data : { value: data });
|
|
80
|
+
};
|
|
81
|
+
const deleteDataset = async (args) => {
|
|
82
|
+
const id = args[0];
|
|
83
|
+
if (!id)
|
|
84
|
+
throw new Error("sanity.deleteDataset requires an ID.");
|
|
85
|
+
return apiCall(`/deleteDataset/${id}`, "DELETE");
|
|
86
|
+
};
|
|
87
|
+
const mutate = async (args) => {
|
|
88
|
+
const id = args[0];
|
|
89
|
+
return apiCall(`/mutate${id ? `/${id}` : ""}`);
|
|
90
|
+
};
|
|
91
|
+
const listDocumentsByType = async (args) => {
|
|
92
|
+
const id = args[0];
|
|
93
|
+
return apiCall(id ? `/listDocumentsByType/${id}` : `/listDocumentsByType`);
|
|
94
|
+
};
|
|
95
|
+
const getProject = async (args) => {
|
|
96
|
+
const id = args[0];
|
|
97
|
+
return apiCall(id ? `/getProject/${id}` : `/getProject`);
|
|
98
|
+
};
|
|
99
|
+
const exportDataset = async (args) => {
|
|
100
|
+
const id = args[0];
|
|
101
|
+
return apiCall(id ? `/exportDataset/${id}` : `/exportDataset`);
|
|
102
|
+
};
|
|
103
|
+
const importDataset = async (args) => {
|
|
104
|
+
const id = args[0];
|
|
105
|
+
const data = args[1] ?? args[0];
|
|
106
|
+
return apiCall(`/importDataset`, "POST", typeof data === "object" ? data : { value: data });
|
|
107
|
+
};
|
|
108
|
+
export const SanityFunctions = {
|
|
109
|
+
setCredentials, query, getDocument, createDocument, createOrReplace, patch, deleteDocument, uploadAsset, getAsset, listDatasets, createDataset, deleteDataset, mutate, listDocumentsByType, getProject, exportDataset, importDataset,
|
|
110
|
+
};
|
|
111
|
+
export const SanityFunctionMetadata = {
|
|
112
|
+
setCredentials: { description: "Configure sanity credentials.", parameters: [{ name: "projectId", dataType: "string", description: "projectId", formInputType: "text", required: true }, { name: "dataset", dataType: "string", description: "dataset", formInputType: "text", required: true }, { name: "token", dataType: "string", description: "token", formInputType: "text", required: true }], returnType: "object", returnDescription: "API response." },
|
|
113
|
+
query: { description: "query", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
114
|
+
getDocument: { description: "getDocument", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
115
|
+
createDocument: { description: "createDocument", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
116
|
+
createOrReplace: { description: "createOrReplace", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
117
|
+
patch: { description: "patch", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
118
|
+
deleteDocument: { description: "deleteDocument", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
119
|
+
uploadAsset: { description: "uploadAsset", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
120
|
+
getAsset: { description: "getAsset", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
121
|
+
listDatasets: { description: "listDatasets", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
122
|
+
createDataset: { description: "createDataset", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
123
|
+
deleteDataset: { description: "deleteDataset", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
124
|
+
mutate: { description: "mutate", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
125
|
+
listDocumentsByType: { description: "listDocumentsByType", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
126
|
+
getProject: { description: "getProject", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
127
|
+
exportDataset: { description: "exportDataset", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
128
|
+
importDataset: { description: "importDataset", parameters: [{ name: "input", dataType: "string", description: "Input parameter", formInputType: "text", required: false }], returnType: "object", returnDescription: "API response." },
|
|
129
|
+
};
|
|
130
|
+
export const SanityModuleMetadata = {
|
|
131
|
+
description: "Sanity — documents, datasets, assets, and GROQ queries.",
|
|
132
|
+
methods: Object.keys(SanityFunctions),
|
|
133
|
+
category: "cms",
|
|
134
|
+
};
|
|
135
|
+
//# sourceMappingURL=sanity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanity.js","sourceRoot":"","sources":["../src/sanity.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEzC,SAAS,SAAS,CAAC,GAAW;IAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,GAAG;QAAE,MAAM,IAAI,KAAK,CAAC,YAAY,GAAG,qDAAqD,CAAC,CAAC;IAChG,OAAO,GAAG,CAAC;AACb,CAAC;AAED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,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE;CACvO,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,EAAE,yDAAyD;IACtE,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC;IACrC,QAAQ,EAAE,KAAK;CAChB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@robinpath/sanity",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@wiredwp/robinpath": ">=0.20.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@wiredwp/robinpath": "^0.30.1",
|
|
27
|
+
"typescript": "^5.6.0"
|
|
28
|
+
}
|
|
29
|
+
}
|