@starlightcms/js-sdk 4.0.0-beta.2 → 4.0.0-beta.3

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.
Files changed (304) hide show
  1. package/dist/index.cjs +397 -0
  2. package/dist/index.d.cts +5087 -0
  3. package/dist/index.d.cts.map +1 -0
  4. package/dist/index.d.mts +5087 -0
  5. package/dist/index.d.mts.map +1 -0
  6. package/dist/index.mjs +391 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +18 -13
  9. package/dist/cjs/client.d.ts +0 -42
  10. package/dist/cjs/client.d.ts.map +0 -1
  11. package/dist/cjs/client.js +0 -145
  12. package/dist/cjs/client.js.map +0 -1
  13. package/dist/cjs/errors.d.ts +0 -40
  14. package/dist/cjs/errors.d.ts.map +0 -1
  15. package/dist/cjs/errors.js +0 -18
  16. package/dist/cjs/errors.js.map +0 -1
  17. package/dist/cjs/index.d.ts +0 -29
  18. package/dist/cjs/index.d.ts.map +0 -1
  19. package/dist/cjs/index.js +0 -47
  20. package/dist/cjs/index.js.map +0 -1
  21. package/dist/cjs/instances/Collection/index.d.ts +0 -5
  22. package/dist/cjs/instances/Collection/index.d.ts.map +0 -1
  23. package/dist/cjs/instances/Collection/index.js +0 -14
  24. package/dist/cjs/instances/Collection/index.js.map +0 -1
  25. package/dist/cjs/instances/Collection/types.d.ts +0 -79
  26. package/dist/cjs/instances/Collection/types.d.ts.map +0 -1
  27. package/dist/cjs/instances/Collection/types.js +0 -3
  28. package/dist/cjs/instances/Collection/types.js.map +0 -1
  29. package/dist/cjs/instances/Form/index.d.ts +0 -5
  30. package/dist/cjs/instances/Form/index.d.ts.map +0 -1
  31. package/dist/cjs/instances/Form/index.js +0 -14
  32. package/dist/cjs/instances/Form/index.js.map +0 -1
  33. package/dist/cjs/instances/Form/types.d.ts +0 -46
  34. package/dist/cjs/instances/Form/types.d.ts.map +0 -1
  35. package/dist/cjs/instances/Form/types.js +0 -3
  36. package/dist/cjs/instances/Form/types.js.map +0 -1
  37. package/dist/cjs/instances/Model/index.d.ts +0 -5
  38. package/dist/cjs/instances/Model/index.d.ts.map +0 -1
  39. package/dist/cjs/instances/Model/index.js +0 -34
  40. package/dist/cjs/instances/Model/index.js.map +0 -1
  41. package/dist/cjs/instances/Model/types.d.ts +0 -102
  42. package/dist/cjs/instances/Model/types.d.ts.map +0 -1
  43. package/dist/cjs/instances/Model/types.js +0 -3
  44. package/dist/cjs/instances/Model/types.js.map +0 -1
  45. package/dist/cjs/instances/ModelCategory/index.d.ts +0 -5
  46. package/dist/cjs/instances/ModelCategory/index.d.ts.map +0 -1
  47. package/dist/cjs/instances/ModelCategory/index.js +0 -14
  48. package/dist/cjs/instances/ModelCategory/index.js.map +0 -1
  49. package/dist/cjs/instances/ModelCategory/types.d.ts +0 -76
  50. package/dist/cjs/instances/ModelCategory/types.d.ts.map +0 -1
  51. package/dist/cjs/instances/ModelCategory/types.js +0 -3
  52. package/dist/cjs/instances/ModelCategory/types.js.map +0 -1
  53. package/dist/cjs/selectors/Collection/index.d.ts +0 -5
  54. package/dist/cjs/selectors/Collection/index.d.ts.map +0 -1
  55. package/dist/cjs/selectors/Collection/index.js +0 -26
  56. package/dist/cjs/selectors/Collection/index.js.map +0 -1
  57. package/dist/cjs/selectors/Collection/types.d.ts +0 -98
  58. package/dist/cjs/selectors/Collection/types.d.ts.map +0 -1
  59. package/dist/cjs/selectors/Collection/types.js +0 -3
  60. package/dist/cjs/selectors/Collection/types.js.map +0 -1
  61. package/dist/cjs/selectors/Entry/index.d.ts +0 -5
  62. package/dist/cjs/selectors/Entry/index.d.ts.map +0 -1
  63. package/dist/cjs/selectors/Entry/index.js +0 -14
  64. package/dist/cjs/selectors/Entry/index.js.map +0 -1
  65. package/dist/cjs/selectors/Entry/types.d.ts +0 -138
  66. package/dist/cjs/selectors/Entry/types.d.ts.map +0 -1
  67. package/dist/cjs/selectors/Entry/types.js +0 -3
  68. package/dist/cjs/selectors/Entry/types.js.map +0 -1
  69. package/dist/cjs/selectors/Form/index.d.ts +0 -4
  70. package/dist/cjs/selectors/Form/index.d.ts.map +0 -1
  71. package/dist/cjs/selectors/Form/index.js +0 -18
  72. package/dist/cjs/selectors/Form/index.js.map +0 -1
  73. package/dist/cjs/selectors/Form/types.d.ts +0 -22
  74. package/dist/cjs/selectors/Form/types.d.ts.map +0 -1
  75. package/dist/cjs/selectors/Form/types.js +0 -3
  76. package/dist/cjs/selectors/Form/types.js.map +0 -1
  77. package/dist/cjs/selectors/Media/index.d.ts +0 -5
  78. package/dist/cjs/selectors/Media/index.d.ts.map +0 -1
  79. package/dist/cjs/selectors/Media/index.js +0 -14
  80. package/dist/cjs/selectors/Media/index.js.map +0 -1
  81. package/dist/cjs/selectors/Media/types.d.ts +0 -49
  82. package/dist/cjs/selectors/Media/types.d.ts.map +0 -1
  83. package/dist/cjs/selectors/Media/types.js +0 -3
  84. package/dist/cjs/selectors/Media/types.js.map +0 -1
  85. package/dist/cjs/selectors/Model/index.d.ts +0 -5
  86. package/dist/cjs/selectors/Model/index.d.ts.map +0 -1
  87. package/dist/cjs/selectors/Model/index.js +0 -26
  88. package/dist/cjs/selectors/Model/index.js.map +0 -1
  89. package/dist/cjs/selectors/Model/types.d.ts +0 -78
  90. package/dist/cjs/selectors/Model/types.d.ts.map +0 -1
  91. package/dist/cjs/selectors/Model/types.js +0 -3
  92. package/dist/cjs/selectors/Model/types.js.map +0 -1
  93. package/dist/cjs/selectors/ModelCategory/index.d.ts +0 -5
  94. package/dist/cjs/selectors/ModelCategory/index.d.ts.map +0 -1
  95. package/dist/cjs/selectors/ModelCategory/index.js +0 -26
  96. package/dist/cjs/selectors/ModelCategory/index.js.map +0 -1
  97. package/dist/cjs/selectors/ModelCategory/types.d.ts +0 -87
  98. package/dist/cjs/selectors/ModelCategory/types.d.ts.map +0 -1
  99. package/dist/cjs/selectors/ModelCategory/types.js +0 -3
  100. package/dist/cjs/selectors/ModelCategory/types.js.map +0 -1
  101. package/dist/cjs/selectors/Search/index.d.ts +0 -5
  102. package/dist/cjs/selectors/Search/index.d.ts.map +0 -1
  103. package/dist/cjs/selectors/Search/index.js +0 -11
  104. package/dist/cjs/selectors/Search/index.js.map +0 -1
  105. package/dist/cjs/selectors/Search/types.d.ts +0 -90
  106. package/dist/cjs/selectors/Search/types.d.ts.map +0 -1
  107. package/dist/cjs/selectors/Search/types.js +0 -3
  108. package/dist/cjs/selectors/Search/types.js.map +0 -1
  109. package/dist/cjs/selectors/Singleton/index.d.ts +0 -5
  110. package/dist/cjs/selectors/Singleton/index.d.ts.map +0 -1
  111. package/dist/cjs/selectors/Singleton/index.js +0 -14
  112. package/dist/cjs/selectors/Singleton/index.js.map +0 -1
  113. package/dist/cjs/selectors/Singleton/types.d.ts +0 -64
  114. package/dist/cjs/selectors/Singleton/types.d.ts.map +0 -1
  115. package/dist/cjs/selectors/Singleton/types.js +0 -3
  116. package/dist/cjs/selectors/Singleton/types.js.map +0 -1
  117. package/dist/cjs/types/entities.d.ts +0 -362
  118. package/dist/cjs/types/entities.d.ts.map +0 -1
  119. package/dist/cjs/types/entities.js +0 -3
  120. package/dist/cjs/types/entities.js.map +0 -1
  121. package/dist/cjs/types/fields.d.ts +0 -123
  122. package/dist/cjs/types/fields.d.ts.map +0 -1
  123. package/dist/cjs/types/fields.js +0 -3
  124. package/dist/cjs/types/fields.js.map +0 -1
  125. package/dist/cjs/types/groups.d.ts +0 -30
  126. package/dist/cjs/types/groups.d.ts.map +0 -1
  127. package/dist/cjs/types/groups.js +0 -3
  128. package/dist/cjs/types/groups.js.map +0 -1
  129. package/dist/cjs/types/index.d.ts +0 -629
  130. package/dist/cjs/types/index.d.ts.map +0 -1
  131. package/dist/cjs/types/index.js +0 -24
  132. package/dist/cjs/types/index.js.map +0 -1
  133. package/dist/cjs/types/instances.d.ts +0 -4
  134. package/dist/cjs/types/instances.d.ts.map +0 -1
  135. package/dist/cjs/types/instances.js +0 -3
  136. package/dist/cjs/types/instances.js.map +0 -1
  137. package/dist/cjs/types/selectors.d.ts +0 -8
  138. package/dist/cjs/types/selectors.d.ts.map +0 -1
  139. package/dist/cjs/types/selectors.js +0 -3
  140. package/dist/cjs/types/selectors.js.map +0 -1
  141. package/dist/cjs/types/utilities.d.ts +0 -83
  142. package/dist/cjs/types/utilities.d.ts.map +0 -1
  143. package/dist/cjs/types/utilities.js +0 -3
  144. package/dist/cjs/types/utilities.js.map +0 -1
  145. package/dist/cjs/types/visual.d.ts +0 -185
  146. package/dist/cjs/types/visual.d.ts.map +0 -1
  147. package/dist/cjs/types/visual.js +0 -3
  148. package/dist/cjs/types/visual.js.map +0 -1
  149. package/dist/cjs/utils/image.d.ts +0 -72
  150. package/dist/cjs/utils/image.d.ts.map +0 -1
  151. package/dist/cjs/utils/image.js +0 -101
  152. package/dist/cjs/utils/image.js.map +0 -1
  153. package/dist/cjs/utils/index.d.ts +0 -2
  154. package/dist/cjs/utils/index.d.ts.map +0 -1
  155. package/dist/cjs/utils/index.js +0 -18
  156. package/dist/cjs/utils/index.js.map +0 -1
  157. package/dist/esm/client.d.ts +0 -42
  158. package/dist/esm/client.d.ts.map +0 -1
  159. package/dist/esm/client.js +0 -139
  160. package/dist/esm/client.js.map +0 -1
  161. package/dist/esm/errors.d.ts +0 -40
  162. package/dist/esm/errors.d.ts.map +0 -1
  163. package/dist/esm/errors.js +0 -14
  164. package/dist/esm/errors.js.map +0 -1
  165. package/dist/esm/index.d.ts +0 -29
  166. package/dist/esm/index.d.ts.map +0 -1
  167. package/dist/esm/index.js +0 -29
  168. package/dist/esm/index.js.map +0 -1
  169. package/dist/esm/instances/Collection/index.d.ts +0 -5
  170. package/dist/esm/instances/Collection/index.d.ts.map +0 -1
  171. package/dist/esm/instances/Collection/index.js +0 -11
  172. package/dist/esm/instances/Collection/index.js.map +0 -1
  173. package/dist/esm/instances/Collection/types.d.ts +0 -79
  174. package/dist/esm/instances/Collection/types.d.ts.map +0 -1
  175. package/dist/esm/instances/Collection/types.js +0 -2
  176. package/dist/esm/instances/Collection/types.js.map +0 -1
  177. package/dist/esm/instances/Form/index.d.ts +0 -5
  178. package/dist/esm/instances/Form/index.d.ts.map +0 -1
  179. package/dist/esm/instances/Form/index.js +0 -11
  180. package/dist/esm/instances/Form/index.js.map +0 -1
  181. package/dist/esm/instances/Form/types.d.ts +0 -46
  182. package/dist/esm/instances/Form/types.d.ts.map +0 -1
  183. package/dist/esm/instances/Form/types.js +0 -2
  184. package/dist/esm/instances/Form/types.js.map +0 -1
  185. package/dist/esm/instances/Model/index.d.ts +0 -5
  186. package/dist/esm/instances/Model/index.d.ts.map +0 -1
  187. package/dist/esm/instances/Model/index.js +0 -28
  188. package/dist/esm/instances/Model/index.js.map +0 -1
  189. package/dist/esm/instances/Model/types.d.ts +0 -102
  190. package/dist/esm/instances/Model/types.d.ts.map +0 -1
  191. package/dist/esm/instances/Model/types.js +0 -2
  192. package/dist/esm/instances/Model/types.js.map +0 -1
  193. package/dist/esm/instances/ModelCategory/index.d.ts +0 -5
  194. package/dist/esm/instances/ModelCategory/index.d.ts.map +0 -1
  195. package/dist/esm/instances/ModelCategory/index.js +0 -11
  196. package/dist/esm/instances/ModelCategory/index.js.map +0 -1
  197. package/dist/esm/instances/ModelCategory/types.d.ts +0 -76
  198. package/dist/esm/instances/ModelCategory/types.d.ts.map +0 -1
  199. package/dist/esm/instances/ModelCategory/types.js +0 -2
  200. package/dist/esm/instances/ModelCategory/types.js.map +0 -1
  201. package/dist/esm/selectors/Collection/index.d.ts +0 -5
  202. package/dist/esm/selectors/Collection/index.d.ts.map +0 -1
  203. package/dist/esm/selectors/Collection/index.js +0 -20
  204. package/dist/esm/selectors/Collection/index.js.map +0 -1
  205. package/dist/esm/selectors/Collection/types.d.ts +0 -98
  206. package/dist/esm/selectors/Collection/types.d.ts.map +0 -1
  207. package/dist/esm/selectors/Collection/types.js +0 -2
  208. package/dist/esm/selectors/Collection/types.js.map +0 -1
  209. package/dist/esm/selectors/Entry/index.d.ts +0 -5
  210. package/dist/esm/selectors/Entry/index.d.ts.map +0 -1
  211. package/dist/esm/selectors/Entry/index.js +0 -11
  212. package/dist/esm/selectors/Entry/index.js.map +0 -1
  213. package/dist/esm/selectors/Entry/types.d.ts +0 -138
  214. package/dist/esm/selectors/Entry/types.d.ts.map +0 -1
  215. package/dist/esm/selectors/Entry/types.js +0 -2
  216. package/dist/esm/selectors/Entry/types.js.map +0 -1
  217. package/dist/esm/selectors/Form/index.d.ts +0 -4
  218. package/dist/esm/selectors/Form/index.d.ts.map +0 -1
  219. package/dist/esm/selectors/Form/index.js +0 -12
  220. package/dist/esm/selectors/Form/index.js.map +0 -1
  221. package/dist/esm/selectors/Form/types.d.ts +0 -22
  222. package/dist/esm/selectors/Form/types.d.ts.map +0 -1
  223. package/dist/esm/selectors/Form/types.js +0 -2
  224. package/dist/esm/selectors/Form/types.js.map +0 -1
  225. package/dist/esm/selectors/Media/index.d.ts +0 -5
  226. package/dist/esm/selectors/Media/index.d.ts.map +0 -1
  227. package/dist/esm/selectors/Media/index.js +0 -11
  228. package/dist/esm/selectors/Media/index.js.map +0 -1
  229. package/dist/esm/selectors/Media/types.d.ts +0 -49
  230. package/dist/esm/selectors/Media/types.d.ts.map +0 -1
  231. package/dist/esm/selectors/Media/types.js +0 -2
  232. package/dist/esm/selectors/Media/types.js.map +0 -1
  233. package/dist/esm/selectors/Model/index.d.ts +0 -5
  234. package/dist/esm/selectors/Model/index.d.ts.map +0 -1
  235. package/dist/esm/selectors/Model/index.js +0 -20
  236. package/dist/esm/selectors/Model/index.js.map +0 -1
  237. package/dist/esm/selectors/Model/types.d.ts +0 -78
  238. package/dist/esm/selectors/Model/types.d.ts.map +0 -1
  239. package/dist/esm/selectors/Model/types.js +0 -2
  240. package/dist/esm/selectors/Model/types.js.map +0 -1
  241. package/dist/esm/selectors/ModelCategory/index.d.ts +0 -5
  242. package/dist/esm/selectors/ModelCategory/index.d.ts.map +0 -1
  243. package/dist/esm/selectors/ModelCategory/index.js +0 -20
  244. package/dist/esm/selectors/ModelCategory/index.js.map +0 -1
  245. package/dist/esm/selectors/ModelCategory/types.d.ts +0 -87
  246. package/dist/esm/selectors/ModelCategory/types.d.ts.map +0 -1
  247. package/dist/esm/selectors/ModelCategory/types.js +0 -2
  248. package/dist/esm/selectors/ModelCategory/types.js.map +0 -1
  249. package/dist/esm/selectors/Search/index.d.ts +0 -5
  250. package/dist/esm/selectors/Search/index.d.ts.map +0 -1
  251. package/dist/esm/selectors/Search/index.js +0 -8
  252. package/dist/esm/selectors/Search/index.js.map +0 -1
  253. package/dist/esm/selectors/Search/types.d.ts +0 -90
  254. package/dist/esm/selectors/Search/types.d.ts.map +0 -1
  255. package/dist/esm/selectors/Search/types.js +0 -2
  256. package/dist/esm/selectors/Search/types.js.map +0 -1
  257. package/dist/esm/selectors/Singleton/index.d.ts +0 -5
  258. package/dist/esm/selectors/Singleton/index.d.ts.map +0 -1
  259. package/dist/esm/selectors/Singleton/index.js +0 -11
  260. package/dist/esm/selectors/Singleton/index.js.map +0 -1
  261. package/dist/esm/selectors/Singleton/types.d.ts +0 -64
  262. package/dist/esm/selectors/Singleton/types.d.ts.map +0 -1
  263. package/dist/esm/selectors/Singleton/types.js +0 -2
  264. package/dist/esm/selectors/Singleton/types.js.map +0 -1
  265. package/dist/esm/types/entities.d.ts +0 -362
  266. package/dist/esm/types/entities.d.ts.map +0 -1
  267. package/dist/esm/types/entities.js +0 -2
  268. package/dist/esm/types/entities.js.map +0 -1
  269. package/dist/esm/types/fields.d.ts +0 -123
  270. package/dist/esm/types/fields.d.ts.map +0 -1
  271. package/dist/esm/types/fields.js +0 -2
  272. package/dist/esm/types/fields.js.map +0 -1
  273. package/dist/esm/types/groups.d.ts +0 -30
  274. package/dist/esm/types/groups.d.ts.map +0 -1
  275. package/dist/esm/types/groups.js +0 -2
  276. package/dist/esm/types/groups.js.map +0 -1
  277. package/dist/esm/types/index.d.ts +0 -629
  278. package/dist/esm/types/index.d.ts.map +0 -1
  279. package/dist/esm/types/index.js +0 -8
  280. package/dist/esm/types/index.js.map +0 -1
  281. package/dist/esm/types/instances.d.ts +0 -4
  282. package/dist/esm/types/instances.d.ts.map +0 -1
  283. package/dist/esm/types/instances.js +0 -2
  284. package/dist/esm/types/instances.js.map +0 -1
  285. package/dist/esm/types/selectors.d.ts +0 -8
  286. package/dist/esm/types/selectors.d.ts.map +0 -1
  287. package/dist/esm/types/selectors.js +0 -2
  288. package/dist/esm/types/selectors.js.map +0 -1
  289. package/dist/esm/types/utilities.d.ts +0 -83
  290. package/dist/esm/types/utilities.d.ts.map +0 -1
  291. package/dist/esm/types/utilities.js +0 -2
  292. package/dist/esm/types/utilities.js.map +0 -1
  293. package/dist/esm/types/visual.d.ts +0 -185
  294. package/dist/esm/types/visual.d.ts.map +0 -1
  295. package/dist/esm/types/visual.js +0 -2
  296. package/dist/esm/types/visual.js.map +0 -1
  297. package/dist/esm/utils/image.d.ts +0 -72
  298. package/dist/esm/utils/image.d.ts.map +0 -1
  299. package/dist/esm/utils/image.js +0 -96
  300. package/dist/esm/utils/image.js.map +0 -1
  301. package/dist/esm/utils/index.d.ts +0 -2
  302. package/dist/esm/utils/index.d.ts.map +0 -1
  303. package/dist/esm/utils/index.js +0 -2
  304. package/dist/esm/utils/index.js.map +0 -1
@@ -1,629 +0,0 @@
1
- import { CollectionEntityTypes, SerializedData } from './entities';
2
- import { DynamicModelSelector } from '../selectors/Model';
3
- import { DynamicModelInstance } from '../instances/Model';
4
- import { SingletonSelector } from '../selectors/Singleton';
5
- import { DynamicCollectionSelector } from '../selectors/Collection';
6
- import { MediaSelector } from '../selectors/Media';
7
- import { SearchSelector } from '../selectors/Search';
8
- import { CollectionInstance } from '../instances/Collection';
9
- import { FormInstance } from '../instances/Form';
10
- import { DynamicFormSelector } from '../selectors/Form/types';
11
- export * from './entities';
12
- export * from './fields';
13
- export * from './groups';
14
- export * from './instances';
15
- export * from './selectors';
16
- export * from './utilities';
17
- export * from './visual';
18
- /**
19
- * This is a utility type that allows any string to be used as a URL, but
20
- * provides a default one which can be used by IDEs to provide auto-completion.
21
- * The default URL points to version 2 of the Query API.
22
- */
23
- export type BaseUrl = 'https://query.starlightcms.io/v2' | string;
24
- /**
25
- * The available options to configure a {@link StarlightClient}.
26
- *
27
- * `workspace` is required when creating new clients or configuring the
28
- * {@apilink default | default client}.
29
- * @group Client
30
- */
31
- export type StarlightConfig = {
32
- /**
33
- * The ID of the workspace that the client should use to request data.
34
- *
35
- * Note: the current APIs only support using workspace IDs as identifiers,
36
- * and **not** slugs. Slug support will be added in the future. You can find
37
- * the workspace ID in the left-side menu on the Starlight interface or below
38
- * the workspace name in the workspace list.
39
- */
40
- workspace?: string;
41
- /**
42
- * The Starlight Query API URL, including the version, and without a trailing
43
- * slash. Defaults to the production Query API URL.
44
- *
45
- * You only need to set this if you're not using Starlight's production APIs.
46
- */
47
- baseUrl?: BaseUrl;
48
- /**
49
- * When true, logs all API requests in the console. Defaults to false.
50
- */
51
- debug?: boolean;
52
- };
53
- /**
54
- * The Starlight client is the main entry point for any requests you might want
55
- * to make to Starlight's APIs.
56
- *
57
- * There's two ways of interacting with a client: using the
58
- * {@apilink default | default client} exported by the SDK or creating a new
59
- * client instance using the
60
- * {@apilink makeStarlightClient | makeStarlightClient function}. Follow the
61
- * provided links to learn how to use each method.
62
- *
63
- * Either way you choose to interact, all clients expose the same methods and
64
- * accessors that provide ways to request data. These methods and accessors
65
- * return Selector or Instance objects, which are documented in the sections
66
- * of the same name found in this API's sidebar.
67
- *
68
- * @group Client
69
- */
70
- export interface StarlightClient<D extends WorkspaceModelDefinition = DefaultModelDefinition> {
71
- /**
72
- * Updates the client configuration. See {@link StarlightConfig} to see all
73
- * the available options.
74
- *
75
- * If you want to use the {@apilink default | default SDK client}, you need to
76
- * set its workspace using this method in your application. You should run
77
- * this method only once, and as soon as possible in your application
78
- * lifecycle. For instance, when using React:
79
- *
80
- * ```js
81
- * // src/index.js
82
- * import { createRoot } from "react-dom/client"
83
- * import Starlight from '@starlightcms/js-sdk'
84
- * import MyApp from './MyApp.js'
85
- *
86
- * // We only need to run this once. In this case, we're
87
- * // running it before initializing our React app.
88
- * Starlight.configure({
89
- * workspace: '1234567890'
90
- * })
91
- *
92
- * const rootElement = document.getElementById("root")
93
- * const root = createRoot(rootElement)
94
- *
95
- * root.render(<MyApp />)
96
- * ```
97
- *
98
- * @param config A configuration object. See {@link StarlightConfig} to view
99
- * all available options.
100
- * @category Other Methods
101
- */
102
- configure(config: StarlightConfig): void;
103
- /**
104
- * Logs a message (or any kind of data, really) into the console if the debug
105
- * configuration is true. Uses `console.log` internally.
106
- *
107
- * This function's type definition is the same as the `console.log` function.
108
- *
109
- * @param message The data that will be logged.
110
- * @param optionalParams Additional data to be logged or string substitutions.
111
- * @see [MDN documentation on console.log](https://developer.mozilla.org/en-US/docs/web/api/console/log)
112
- * @internal
113
- */
114
- log(message?: unknown, ...optionalParams: unknown[]): void;
115
- /**
116
- * Returns the base API URL for requests, including the configured workspace.
117
- * Doesn't include a trailing slash.
118
- *
119
- * @internal
120
- */
121
- getBaseUrl(): string;
122
- /**
123
- * Returns a Promise that results in a response or throws a StarlightError.
124
- * The response will be the parsed JSON data sent by the API.
125
- *
126
- * This method is used internally by all Selectors and Instances to request
127
- * data to Starlight's Query API, but it can also be used standalone if
128
- * desired.
129
- *
130
- * This method automatically prefixes the given path with the API URL, but it
131
- * doesn't include a trailing slash, so be sure to include one at the start
132
- * of your path.
133
- *
134
- * @param path The path to GET. Will be prefixed with the API URL. Must start
135
- * with a forward slash (/).
136
- * @param params An optional object of values that will be converted to a
137
- * string and passed as GET params.
138
- * @param options An optional configuration object passed to the fetch method.
139
- * Check [MDN documentation on fetch](https://developer.mozilla.org/en-US/docs/Web/API/fetch)
140
- * to see the available options.
141
- * @typeParam T - The shape of the expected response on success. Client
142
- * methods generally pass {@link StarlightItemResponse} or
143
- * {@link StarlightListResponse} types here.
144
- * @throws {@link StarlightError} on any errors.
145
- * @category Other Methods
146
- */
147
- get<T = Record<string, unknown>>(path: string, params?: BaseRequestParameters, options?: RequestInit): Promise<T>;
148
- /**
149
- * Returns a {@link DynamicModelSelector}, which is a {@link ModelSelector}
150
- * with support for creating {@apilink ModelInstance | ModelInstances} using the dynamic syntax.
151
- *
152
- * This is an accessor, which means that it should be used just like a common
153
- * object parameter. For instance:
154
- *
155
- * ```ts
156
- * import Starlight from '@starlightcms/js-sdk'
157
- *
158
- * const response = await Starlight.models.list()
159
- * ```
160
- *
161
- * See {@link DynamicModelSelector} for more info.
162
- *
163
- * @category Selector Accessors
164
- */
165
- get models(): DynamicModelSelector<D>;
166
- /**
167
- * Returns a {@link DynamicModelInstance}, which is a
168
- * {@link ModelInstance} with support for creating
169
- * {@apilink ModelCategoryInstance | ModelCategoryInstances} using the dynamic syntax. For instance:
170
- *
171
- * ```ts
172
- * import Starlight from '@starlightcms/js-sdk'
173
- *
174
- * const response = await Starlight.model('posts').entries.list()
175
- * ```
176
- *
177
- * See {@link DynamicModelInstance} for more info.
178
- *
179
- * @category Instance Methods
180
- */
181
- model<S extends keyof D>(slug: S): DynamicModelInstance<D[S]>;
182
- /**
183
- * Returns a {@link DynamicFormSelector}, which provides support for creating
184
- * {@apilink FormInstance | FormInstances} using the dynamic syntax.
185
- *
186
- * This is an accessor, which means that it should be used just like a common
187
- * object parameter. For instance:
188
- *
189
- * ```ts
190
- * import Starlight from '@starlightcms/js-sdk'
191
- *
192
- * const response = await Starlight.forms.signup.get()
193
- * ```
194
- *
195
- * See {@link DynamicFormSelector} for more info.
196
- *
197
- * @category Selector Accessors
198
- */
199
- get forms(): DynamicFormSelector;
200
- /**
201
- * Returns a {@link FormInstance}, which provides methods to retrieve basic information
202
- * about a Starlight form and its schema. For instance:
203
- *
204
- * ```ts
205
- * import Starlight from '@starlightcms/js-sdk'
206
- *
207
- * const response = await Starlight.form('signup').schema()
208
- * ```
209
- *
210
- * See {@link FormInstance} for more info.
211
- *
212
- * @category Instance Methods
213
- */
214
- form(slug: string | number): FormInstance;
215
- /**
216
- * Returns a {@link SingletonSelector}.
217
- *
218
- * This is an accessor, which means that it should be used just like a common
219
- * object parameter. For instance:
220
- *
221
- * ```ts
222
- * import Starlight from '@starlightcms/js-sdk'
223
- *
224
- * const response = await Starlight.singletons.list()
225
- * ```
226
- *
227
- * See {@link SingletonSelector} for more info.
228
- *
229
- * @category Selector Accessors
230
- */
231
- get singletons(): SingletonSelector;
232
- /**
233
- * Returns a {@link DynamicCollectionSelector}, which is a
234
- * {@link CollectionSelector} with support for creating
235
- * {@apilink CollectionInstance | CollectionInstances} using the dynamic syntax.
236
- *
237
- * This is an accessor, which means that it should be used just like a common
238
- * object parameter. For instance:
239
- *
240
- * ```ts
241
- * import Starlight from '@starlightcms/js-sdk'
242
- *
243
- * const response = await Starlight.collections.list()
244
- * ```
245
- *
246
- * See {@link DynamicCollectionSelector} for more info.
247
- *
248
- * @category Selector Accessors
249
- */
250
- get collections(): DynamicCollectionSelector;
251
- /**
252
- * Returns a {@link CollectionInstance}. For instance:
253
- *
254
- * ```ts
255
- * import Starlight from '@starlightcms/js-sdk'
256
- *
257
- * const response = await Starlight.collection('featured-posts').items()
258
- * ```
259
- *
260
- * See {@link CollectionInstance} for more info.
261
- *
262
- * @example Typing the returned CollectionInstance.
263
- * ```ts
264
- * import Starlight, { MediaObject } from '@starlightcms/js-sdk'
265
- *
266
- * const response = await Starlight.collection<MediaObject>('carousel-images').items()
267
- * ```
268
- *
269
- * @typeParam T - The type of entity this Collection holds. You can pass this
270
- * type parameter to correctly type the response of the
271
- * {@apilink CollectionInstance.items} method.
272
- * @category Instance Methods
273
- */
274
- collection<T extends CollectionEntityTypes>(slug: string | number): CollectionInstance<T>;
275
- /**
276
- * Returns a {@link MediaSelector}.
277
- *
278
- * This is an accessor, which means that it should be used just like a common
279
- * object parameter. For instance:
280
- *
281
- * ```ts
282
- * import Starlight from '@starlightcms/js-sdk'
283
- *
284
- * const response = await Starlight.media.list()
285
- * ```
286
- *
287
- * See {@link MediaSelector} for more info.
288
- *
289
- * @category Selector Accessors
290
- */
291
- get media(): MediaSelector;
292
- /**
293
- * Returns a {@link SearchSelector}.
294
- *
295
- * This is an accessor, which means that it should be used just like a common
296
- * object parameter. For instance:
297
- *
298
- * ```ts
299
- * import Starlight from '@starlightcms/js-sdk'
300
- *
301
- * const response = await Starlight.search.entries()
302
- * ```
303
- *
304
- * See {@link SearchSelector} for more info.
305
- *
306
- * @category Selector Accessors
307
- */
308
- get search(): SearchSelector;
309
- }
310
- /**
311
- * This type adds support for the dynamic syntax to the StarlightClient
312
- * interface, which allows users to create
313
- * {@apilink DynamicModelInstance| DynamicModelInstances} dynamically.
314
- * See {@link StarlightClient} to learn which methods it provides. Also see
315
- * {@doclink requests-and-responses#dynamic-syntax | Dynamic Instances}
316
- * documentation to learn more about the dynamic syntax.
317
- *
318
- *
319
- * This allows TypeScript to correctly type all models defined by the user
320
- * in the DefaultModelDefinition type, aside from letting the user using any
321
- * "unknown" model slug, which is provided by the WorkspaceModelDefinition type.
322
- *
323
- * This type is only aware of the DefaultModelDefinition type because the
324
- * StarlightClient uses it by default when no model definition type is passed.
325
- *
326
- * @group Client
327
- */
328
- export type DynamicStarlightClient<T extends WorkspaceModelDefinition> = StarlightClient<T> & {
329
- [K in keyof T]: DynamicModelInstance<T[K]>;
330
- };
331
- /**
332
- * This interface represents an API response that returns a single entity, like
333
- * a single {@link Entry} or a single {@link MediaObject}, for instance.
334
- *
335
- * It contains only one field: `data`. This field type is generic and
336
- * depends on the kind of request that was made to the API.
337
- *
338
- * All SDK request methods that returna single entity
339
- * will return this interface.
340
- *
341
- * @group Client
342
- */
343
- export interface StarlightItemResponse<T> {
344
- /**
345
- * The entity returned by the API request. Its type depends on which request
346
- * was made. SDK methods will generally type this parameter automatically.
347
- */
348
- data: T;
349
- }
350
- /**
351
- * This interface represents an API response that returns a list of entities,
352
- * like a list of {@apilink Entry | Entries} or a list of items from a
353
- * {@link Collection}.
354
- *
355
- * It contains a `data` parameter, which is an array of items with a generic
356
- * type that depends on the kind of request that was made, and two metadata
357
- * objects: `links` and `meta`. Metadata is useful for pagination.
358
- *
359
- * All SDK request methods that return a list of entities will return this
360
- * interface.
361
- *
362
- * @group Client
363
- */
364
- export interface StarlightListResponse<T> {
365
- /**
366
- * The list of entities returned by the API request. Its type depends on which
367
- * request was made. SDK methods will generally type
368
- * this parameter automatically.
369
- */
370
- data: T[];
371
- /**
372
- * An object containing useful links for easier pagination. All links points
373
- * to the same list requested, but with a varying `page` parameter.
374
- */
375
- links: {
376
- /**
377
- * A link for the first page of the list.
378
- */
379
- first: string;
380
- /**
381
- * A link for the last page of the list.
382
- */
383
- last: string;
384
- /**
385
- * A link to the previous page of the list, if there's any.
386
- */
387
- prev?: string;
388
- /**
389
- * A link to the next page of the list, if there's any.
390
- */
391
- next?: string;
392
- };
393
- /**
394
- * An object with useful metadata related to the current list. It can be used
395
- * in applications to create pagination logic and interfaces.
396
- *
397
- * `from` and `to` are indexes indicating which items start and finish the
398
- * current page of the list. For instance, in a list with 100 items with 15
399
- * items per page, on the first page, `from` and `to` will be `1` and `15`
400
- * respectively.
401
- */
402
- meta: {
403
- /**
404
- * The number of the current page.
405
- */
406
- current_page: number;
407
- /**
408
- * The number of the last page for the current list.
409
- */
410
- last_page: number;
411
- /**
412
- * The index of the first item on this page out of all list items.
413
- */
414
- from: number;
415
- /**
416
- * The index of the last item on this page out of all list items.
417
- */
418
- to: number;
419
- /**
420
- * The number of items per page.
421
- */
422
- per_page: number;
423
- /**
424
- * The total number of items in the current list.
425
- */
426
- total: number;
427
- };
428
- }
429
- /**
430
- * The DefaultModelDefinition type is used to correctly type Entry data when
431
- * requesting it using a StarlightClient.
432
- *
433
- * Without using a DefaultModelDefinition, Entry data will be typed as a
434
- * "generic" JS object which can hold any kind of data:
435
- *
436
- * ```ts
437
- * import Starlight from '@starlightcms/js-sdk'
438
- *
439
- * // response type will be StarlightItemResponse<Entry> on request success.
440
- * const response = await Starlight.posts.entries.get('hello-world')
441
- *
442
- * // helloWorld type is Entry<Record<string, unknown>>. This means that
443
- * // `data` can hold anything, which is not type-safe.
444
- * const helloWorld = response.data
445
- * ```
446
- *
447
- * One way of safely adding type information to Entry objects is by passing a
448
- * data definition type to the EntrySelector when requesting something:
449
- *
450
- * ```ts
451
- * import Starlight, { Group, VisualField, MediaField } from '@starlightcms/js-sdk'
452
- *
453
- * type PostFields = {
454
- * info: Group<{
455
- * featured_image: MediaField
456
- * content: VisualField
457
- * }>
458
- * }
459
- *
460
- * // response type will now be StarlightItemResponse<Entry<PostsFields>>.
461
- * const response = await Starlight.posts.entries<PostFields>.get('hello-world')
462
- *
463
- * // Now, helloWorld type is Entry<PostsFields>.
464
- * const helloWorld = response.data
465
- *
466
- * // Which means we can safely access its data, and IDEs will
467
- * // auto-complete the data field name below:
468
- * console.log(helloWorld.data.info.featured_image)
469
- * ```
470
- *
471
- * Note that we used **Groups** and **Fields** to define our data shape. We
472
- * recommend using these types, which are exported by this SDK, because they map
473
- * to the group and field types available in the Starlight admin when creating
474
- * models, and should simplify the type definition process. All available Group
475
- * and Field types are documented in the
476
- * {@apilink BooleanField | Data Fields} and
477
- * {@apilink Group | Data Groups} sections of this API.
478
- *
479
- * However, passing model definition types around your application is not ideal,
480
- * and actually unnecessary. Using the `DefaultModelDefinition` type, all model
481
- * definitions can be automatically inferred.
482
- *
483
- * To get started, you need to create a
484
- * [type declaration file](https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html)
485
- * in which you'll define all your types. You can name it anything and place it
486
- * anywhere inside your project, but we recommend naming it `starlight.d.ts` and
487
- * placing it in the root folder of your source code, so it can be easily
488
- * imported later in your application if you ever need to reference these types.
489
- *
490
- * In this file, you can place all your model type definitions (including type
491
- * definitions for Singleton data, if you want!). Finally, you just need to
492
- * add a "module definition block" that will tell the SDK which types you expect
493
- * to receive when requesting models.
494
- *
495
- * Here's a complete exemple defining two models, Posts and Magazines:
496
- *
497
- * ```ts
498
- * import {
499
- * Group,
500
- * RepeaterGroup,
501
- * StringField,
502
- * VisualField,
503
- * MediaField
504
- * } from '@starlightcms/js-sdk'
505
- *
506
- * type PostFields = {
507
- * info: Group<{
508
- * featured_image: MediaField
509
- * content: VisualField
510
- * }>
511
- * }
512
- *
513
- * type MagazineFields = {
514
- * info: Group<{
515
- * cover_image: MediaField
516
- * content: VisualField
517
- * }>
518
- * page_previews: RepeaterGroup<{
519
- * image: MediaField
520
- * description: StringField
521
- * }>
522
- * metadata: Group<{
523
- * issue_number: StringField
524
- * issue_year: StringField
525
- * }>
526
- * }
527
- *
528
- * declare module '@starlightcms/js-sdk' {
529
- * export interface DefaultModelDefinition {
530
- * // Notice how each key in this interface is a Model slug!
531
- * posts: PostFields
532
- * magazines: MagazineFields
533
- * }
534
- * }
535
- * ```
536
- *
537
- * After creating this file, types should be automatically inferred without the
538
- * need to pass them around:
539
- *
540
- * ```ts
541
- * import Starlight from '@starlightcms/js-sdk'
542
- *
543
- * // response type will be StarlightItemResponse<Entry<PostsFields>>,
544
- * // which was implicitly inferred by the SDK because of the `posts`
545
- * // property we added to the `DefaultModelDefinition` above.
546
- * const response = await Starlight.posts.entries.get('hello-world')
547
- *
548
- * // helloWorld type is Entry<PostsFields>
549
- * const helloWorld = response.data
550
- *
551
- * // Auto-complete will work just as before when we explicitly type the Entry!
552
- * console.log(helloWorld.data.info.featured_image)
553
- * ```
554
- *
555
- * @group Client
556
- */
557
- export interface DefaultModelDefinition extends WorkspaceModelDefinition {
558
- }
559
- /**
560
- * This type is only used as a base for the DefaultModelDefinition type.
561
- *
562
- * @internal
563
- */
564
- export interface WorkspaceModelDefinition {
565
- [slug: string]: SerializedData;
566
- }
567
- /**
568
- * An object that accepts any string, number and boolean values.
569
- * Used as the base for most request parameter interfaces in the SDK.
570
- *
571
- * @group Request Parameters
572
- */
573
- export interface BaseRequestParameters {
574
- [key: string]: string | number | boolean | undefined;
575
- }
576
- /**
577
- * Request parameters used by most SDK `list()` methods.
578
- *
579
- * @group Request Parameters
580
- */
581
- export interface ListRequestParameters extends BaseRequestParameters {
582
- /**
583
- * The page requested.
584
- */
585
- page?: number;
586
- /**
587
- * The limit of items per page.
588
- */
589
- limit?: number;
590
- /**
591
- * A search query string.
592
- *
593
- * For instance, searching for "out" will match both "check out!" and
594
- * "about us". Search is not case-sensitive.
595
- */
596
- query?: string;
597
- }
598
- /**
599
- * Request parameters used by most SDK methods that support advanced querying.
600
- *
601
- * @group Request Parameters
602
- */
603
- export interface QueryableRequestParameters {
604
- /**
605
- * A search query string that matches a specific word within boundaries.
606
- * Search is not case-sensitive.
607
- *
608
- * For instance, searching for "phone" will match "This is my phone!"
609
- * but won't match "This is my telephone!".
610
- */
611
- 'query:word'?: string;
612
- /**
613
- * A comma-separated list of fields to look up on when searching using
614
- * `query` or `query:word`. If undefined, all text fields will be searched on,
615
- * including Visual Editor fields. Search is not case-sensitive.
616
- *
617
- * For instance, to limit search on the "content" and "summary" fields of a
618
- * model, pass `'content,summary'`.
619
- */
620
- fields?: string;
621
- /**
622
- * If defined, removes the given item from the list. Useful to create "related
623
- * posts" lists.
624
- *
625
- * Note: this field only accepts IDs, and not slugs. Only one ID is allowed.
626
- */
627
- except?: number;
628
- }
629
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OA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AAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
@@ -1,8 +0,0 @@
1
- export * from './entities';
2
- export * from './fields';
3
- export * from './groups';
4
- export * from './instances';
5
- export * from './selectors';
6
- export * from './utilities';
7
- export * from './visual';
8
- //# sourceMappingURL=index.js.map