prismic-ts-codegen 0.1.28 → 0.1.29

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 (811) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +23 -0
  2. package/dist/cli/configSchema.cjs +29 -36
  3. package/dist/cli/configSchema.cjs.map +1 -1
  4. package/dist/cli/configSchema.d.cts +39 -0
  5. package/dist/cli/configSchema.d.cts.map +1 -0
  6. package/dist/cli/configSchema.d.ts +39 -3
  7. package/dist/cli/configSchema.d.ts.map +1 -0
  8. package/dist/cli/configSchema.js +29 -37
  9. package/dist/cli/configSchema.js.map +1 -1
  10. package/dist/cli/constants.cjs +4 -3
  11. package/dist/cli/constants.cjs.map +1 -1
  12. package/dist/cli/constants.d.cts +5 -0
  13. package/dist/cli/constants.d.cts.map +1 -0
  14. package/dist/cli/constants.d.ts +5 -1
  15. package/dist/cli/constants.d.ts.map +1 -0
  16. package/dist/cli/constants.js +5 -4
  17. package/dist/cli/constants.js.map +1 -1
  18. package/dist/cli/loadConfig.cjs +17 -27
  19. package/dist/cli/loadConfig.cjs.map +1 -1
  20. package/dist/cli/loadConfig.js +13 -25
  21. package/dist/cli/loadConfig.js.map +1 -1
  22. package/dist/cli/loadLocaleIDs.cjs +18 -17
  23. package/dist/cli/loadLocaleIDs.cjs.map +1 -1
  24. package/dist/cli/loadLocaleIDs.js +16 -18
  25. package/dist/cli/loadLocaleIDs.js.map +1 -1
  26. package/dist/cli/loadModels.cjs +45 -70
  27. package/dist/cli/loadModels.cjs.map +1 -1
  28. package/dist/cli/loadModels.js +40 -52
  29. package/dist/cli/loadModels.js.map +1 -1
  30. package/dist/cli.cjs +78 -91
  31. package/dist/cli.cjs.map +1 -1
  32. package/dist/cli.d.cts +1 -0
  33. package/dist/cli.d.ts +1 -0
  34. package/dist/cli.js +68 -81
  35. package/dist/cli.js.map +1 -1
  36. package/dist/constants.cjs +26 -25
  37. package/dist/constants.cjs.map +1 -1
  38. package/dist/constants.js +27 -28
  39. package/dist/constants.js.map +1 -1
  40. package/dist/detectTypesProvider.cjs +22 -17
  41. package/dist/detectTypesProvider.cjs.map +1 -1
  42. package/dist/detectTypesProvider.d.cts +17 -0
  43. package/dist/detectTypesProvider.d.cts.map +1 -0
  44. package/dist/detectTypesProvider.d.ts +10 -6
  45. package/dist/detectTypesProvider.d.ts.map +1 -0
  46. package/dist/detectTypesProvider.js +21 -17
  47. package/dist/detectTypesProvider.js.map +1 -1
  48. package/dist/generateTypes.cjs +76 -85
  49. package/dist/generateTypes.cjs.map +1 -1
  50. package/dist/generateTypes.d.cts +21 -0
  51. package/dist/generateTypes.d.cts.map +1 -0
  52. package/dist/generateTypes.d.ts +20 -15
  53. package/dist/generateTypes.d.ts.map +1 -0
  54. package/dist/generateTypes.js +70 -81
  55. package/dist/generateTypes.js.map +1 -1
  56. package/dist/index.cjs +6 -8
  57. package/dist/index.d.cts +5 -0
  58. package/dist/index.d.ts +5 -6
  59. package/dist/index.js +1 -6
  60. package/dist/lib/addBlankLine.cjs +7 -9
  61. package/dist/lib/addBlankLine.cjs.map +1 -1
  62. package/dist/lib/addBlankLine.js +7 -9
  63. package/dist/lib/addBlankLine.js.map +1 -1
  64. package/dist/lib/addLine.cjs +6 -5
  65. package/dist/lib/addLine.cjs.map +1 -1
  66. package/dist/lib/addLine.js +6 -5
  67. package/dist/lib/addLine.js.map +1 -1
  68. package/dist/lib/addSection.cjs +6 -5
  69. package/dist/lib/addSection.cjs.map +1 -1
  70. package/dist/lib/addSection.js +6 -5
  71. package/dist/lib/addSection.js.map +1 -1
  72. package/dist/lib/addTrailingNewLine.cjs +6 -8
  73. package/dist/lib/addTrailingNewLine.cjs.map +1 -1
  74. package/dist/lib/addTrailingNewLine.js +7 -9
  75. package/dist/lib/addTrailingNewLine.js.map +1 -1
  76. package/dist/lib/buildCustomTypeDataType.cjs +41 -44
  77. package/dist/lib/buildCustomTypeDataType.cjs.map +1 -1
  78. package/dist/lib/buildCustomTypeDataType.js +39 -43
  79. package/dist/lib/buildCustomTypeDataType.js.map +1 -1
  80. package/dist/lib/buildCustomTypeType.cjs +50 -50
  81. package/dist/lib/buildCustomTypeType.cjs.map +1 -1
  82. package/dist/lib/buildCustomTypeType.js +44 -45
  83. package/dist/lib/buildCustomTypeType.js.map +1 -1
  84. package/dist/lib/buildFieldDocs.cjs +59 -92
  85. package/dist/lib/buildFieldDocs.cjs.map +1 -1
  86. package/dist/lib/buildFieldDocs.js +56 -89
  87. package/dist/lib/buildFieldDocs.js.map +1 -1
  88. package/dist/lib/buildFieldProperties.cjs +255 -309
  89. package/dist/lib/buildFieldProperties.cjs.map +1 -1
  90. package/dist/lib/buildFieldProperties.js +249 -304
  91. package/dist/lib/buildFieldProperties.js.map +1 -1
  92. package/dist/lib/buildSharedSliceType.cjs +106 -109
  93. package/dist/lib/buildSharedSliceType.cjs.map +1 -1
  94. package/dist/lib/buildSharedSliceType.js +98 -102
  95. package/dist/lib/buildSharedSliceType.js.map +1 -1
  96. package/dist/lib/buildTypeName.cjs +9 -11
  97. package/dist/lib/buildTypeName.cjs.map +1 -1
  98. package/dist/lib/buildTypeName.js +8 -11
  99. package/dist/lib/buildTypeName.js.map +1 -1
  100. package/dist/lib/buildUnion.cjs +5 -4
  101. package/dist/lib/buildUnion.cjs.map +1 -1
  102. package/dist/lib/buildUnion.js +6 -5
  103. package/dist/lib/buildUnion.js.map +1 -1
  104. package/dist/lib/checkHasUIDFIeld.cjs +5 -4
  105. package/dist/lib/checkHasUIDFIeld.cjs.map +1 -1
  106. package/dist/lib/checkHasUIDFIeld.js +6 -5
  107. package/dist/lib/checkHasUIDFIeld.js.map +1 -1
  108. package/dist/lib/getAPIIDPath.cjs +21 -23
  109. package/dist/lib/getAPIIDPath.cjs.map +1 -1
  110. package/dist/lib/getAPIIDPath.js +22 -24
  111. package/dist/lib/getAPIIDPath.js.map +1 -1
  112. package/dist/lib/getCacheKey.cjs +14 -22
  113. package/dist/lib/getCacheKey.cjs.map +1 -1
  114. package/dist/lib/getCacheKey.js +12 -5
  115. package/dist/lib/getCacheKey.js.map +1 -1
  116. package/dist/lib/getHumanReadableModelName.cjs +12 -17
  117. package/dist/lib/getHumanReadableModelName.cjs.map +1 -1
  118. package/dist/lib/getHumanReadableModelName.js +13 -18
  119. package/dist/lib/getHumanReadableModelName.js.map +1 -1
  120. package/dist/lib/getHumanReadablePath.cjs +13 -16
  121. package/dist/lib/getHumanReadablePath.cjs.map +1 -1
  122. package/dist/lib/getHumanReadablePath.js +13 -16
  123. package/dist/lib/getHumanReadablePath.js.map +1 -1
  124. package/dist/types.d.cts +14 -0
  125. package/dist/types.d.cts.map +1 -0
  126. package/dist/types.d.ts +13 -21
  127. package/dist/types.d.ts.map +1 -0
  128. package/package.json +35 -49
  129. package/src/cli/configSchema.ts +181 -50
  130. package/src/cli/constants.ts +1 -2
  131. package/src/cli/index.ts +14 -24
  132. package/src/cli/loadConfig.ts +5 -9
  133. package/src/cli/loadLocaleIDs.ts +1 -3
  134. package/src/cli/loadModels.ts +8 -10
  135. package/src/constants.ts +1 -2
  136. package/src/detectTypesProvider.ts +3 -8
  137. package/src/generateTypes.ts +3 -10
  138. package/src/index.ts +1 -2
  139. package/src/lib/addBlankLine.ts +1 -1
  140. package/src/lib/addLine.ts +1 -1
  141. package/src/lib/addSection.ts +1 -1
  142. package/src/lib/addTrailingNewLine.ts +1 -4
  143. package/src/lib/buildCustomTypeDataType.ts +1 -3
  144. package/src/lib/buildCustomTypeType.ts +4 -6
  145. package/src/lib/buildFieldDocs.ts +7 -23
  146. package/src/lib/buildFieldProperties.ts +25 -66
  147. package/src/lib/buildSharedSliceType.ts +8 -10
  148. package/src/lib/buildTypeName.ts +1 -1
  149. package/src/lib/buildUnion.ts +1 -1
  150. package/src/lib/getAPIIDPath.ts +2 -2
  151. package/src/lib/getCacheKey.ts +1 -3
  152. package/src/lib/getHumanReadableModelName.ts +2 -8
  153. package/src/lib/getHumanReadablePath.ts +2 -3
  154. package/src/types.ts +1 -5
  155. package/dist/_node_modules/@babel/code-frame/lib/index.cjs +0 -217
  156. package/dist/_node_modules/@babel/code-frame/lib/index.cjs.map +0 -1
  157. package/dist/_node_modules/@babel/code-frame/lib/index.js +0 -216
  158. package/dist/_node_modules/@babel/code-frame/lib/index.js.map +0 -1
  159. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs +0 -82
  160. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +0 -1
  161. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -83
  162. package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
  163. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +0 -62
  164. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs.map +0 -1
  165. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +0 -61
  166. package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
  167. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs +0 -35
  168. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +0 -1
  169. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -36
  170. package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
  171. package/dist/_node_modules/@prismicio/client/dist/Client.cjs +0 -1231
  172. package/dist/_node_modules/@prismicio/client/dist/Client.cjs.map +0 -1
  173. package/dist/_node_modules/@prismicio/client/dist/Client.js +0 -1231
  174. package/dist/_node_modules/@prismicio/client/dist/Client.js.map +0 -1
  175. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.cjs +0 -66
  176. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.cjs.map +0 -1
  177. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.js +0 -66
  178. package/dist/_node_modules/@prismicio/client/dist/buildQueryURL.js.map +0 -1
  179. package/dist/_node_modules/@prismicio/client/dist/cookie.cjs +0 -5
  180. package/dist/_node_modules/@prismicio/client/dist/cookie.cjs.map +0 -1
  181. package/dist/_node_modules/@prismicio/client/dist/cookie.js +0 -5
  182. package/dist/_node_modules/@prismicio/client/dist/cookie.js.map +0 -1
  183. package/dist/_node_modules/@prismicio/client/dist/createClient.cjs +0 -6
  184. package/dist/_node_modules/@prismicio/client/dist/createClient.cjs.map +0 -1
  185. package/dist/_node_modules/@prismicio/client/dist/createClient.js +0 -6
  186. package/dist/_node_modules/@prismicio/client/dist/createClient.js.map +0 -1
  187. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.cjs +0 -7
  188. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.cjs.map +0 -1
  189. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.js +0 -7
  190. package/dist/_node_modules/@prismicio/client/dist/errors/ForbiddenError.js.map +0 -1
  191. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.cjs +0 -7
  192. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.cjs.map +0 -1
  193. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.js +0 -7
  194. package/dist/_node_modules/@prismicio/client/dist/errors/NotFoundError.js.map +0 -1
  195. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.cjs +0 -7
  196. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.cjs.map +0 -1
  197. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.js +0 -7
  198. package/dist/_node_modules/@prismicio/client/dist/errors/ParsingError.js.map +0 -1
  199. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.cjs +0 -7
  200. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.cjs.map +0 -1
  201. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.js +0 -7
  202. package/dist/_node_modules/@prismicio/client/dist/errors/PreviewTokenExpired.js.map +0 -1
  203. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.cjs +0 -16
  204. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.cjs.map +0 -1
  205. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.js +0 -16
  206. package/dist/_node_modules/@prismicio/client/dist/errors/PrismicError.js.map +0 -1
  207. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.cjs +0 -7
  208. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.cjs.map +0 -1
  209. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.js +0 -7
  210. package/dist/_node_modules/@prismicio/client/dist/errors/RefExpiredError.js.map +0 -1
  211. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.cjs +0 -7
  212. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.cjs.map +0 -1
  213. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.js +0 -7
  214. package/dist/_node_modules/@prismicio/client/dist/errors/RefNotFoundError.js.map +0 -1
  215. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.cjs +0 -7
  216. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.cjs.map +0 -1
  217. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.js +0 -7
  218. package/dist/_node_modules/@prismicio/client/dist/errors/RepositoryNotFoundError.js.map +0 -1
  219. package/dist/_node_modules/@prismicio/client/dist/filter.cjs +0 -247
  220. package/dist/_node_modules/@prismicio/client/dist/filter.cjs.map +0 -1
  221. package/dist/_node_modules/@prismicio/client/dist/filter.js +0 -247
  222. package/dist/_node_modules/@prismicio/client/dist/filter.js.map +0 -1
  223. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.cjs +0 -13
  224. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.cjs.map +0 -1
  225. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.js +0 -13
  226. package/dist/_node_modules/@prismicio/client/dist/getRepositoryEndpoint.js.map +0 -1
  227. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.cjs +0 -17
  228. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.cjs.map +0 -1
  229. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.js +0 -17
  230. package/dist/_node_modules/@prismicio/client/dist/getRepositoryName.js.map +0 -1
  231. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.cjs +0 -47
  232. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.cjs.map +0 -1
  233. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.js +0 -47
  234. package/dist/_node_modules/@prismicio/client/dist/helpers/asLink.js.map +0 -1
  235. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.cjs +0 -27
  236. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.cjs.map +0 -1
  237. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.js +0 -27
  238. package/dist/_node_modules/@prismicio/client/dist/helpers/documentToLinkField.js.map +0 -1
  239. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.cjs +0 -12
  240. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.cjs.map +0 -1
  241. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.js +0 -12
  242. package/dist/_node_modules/@prismicio/client/dist/isRepositoryEndpoint.js.map +0 -1
  243. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.cjs +0 -7
  244. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.cjs.map +0 -1
  245. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.js +0 -7
  246. package/dist/_node_modules/@prismicio/client/dist/isRepositoryName.js.map +0 -1
  247. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.cjs +0 -11
  248. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.cjs.map +0 -1
  249. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.js +0 -11
  250. package/dist/_node_modules/@prismicio/client/dist/lib/appendFilters.js.map +0 -1
  251. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.cjs +0 -7
  252. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.cjs.map +0 -1
  253. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.js +0 -7
  254. package/dist/_node_modules/@prismicio/client/dist/lib/castArray.js.map +0 -1
  255. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.cjs +0 -7
  256. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.cjs.map +0 -1
  257. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.js +0 -7
  258. package/dist/_node_modules/@prismicio/client/dist/lib/castThunk.js.map +0 -1
  259. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.cjs +0 -8
  260. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.cjs.map +0 -1
  261. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.js +0 -8
  262. package/dist/_node_modules/@prismicio/client/dist/lib/devMsg.js.map +0 -1
  263. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.cjs +0 -9
  264. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.cjs.map +0 -1
  265. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.js +0 -9
  266. package/dist/_node_modules/@prismicio/client/dist/lib/everyTagFilter.js.map +0 -1
  267. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.cjs +0 -8
  268. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.cjs.map +0 -1
  269. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.js +0 -8
  270. package/dist/_node_modules/@prismicio/client/dist/lib/findMasterRef.js.map +0 -1
  271. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.cjs +0 -12
  272. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.cjs.map +0 -1
  273. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.js +0 -12
  274. package/dist/_node_modules/@prismicio/client/dist/lib/findRef.js.map +0 -1
  275. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.cjs +0 -8
  276. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.cjs.map +0 -1
  277. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.js +0 -8
  278. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByID.js.map +0 -1
  279. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.cjs +0 -8
  280. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.cjs.map +0 -1
  281. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.js +0 -8
  282. package/dist/_node_modules/@prismicio/client/dist/lib/findRefByLabel.js.map +0 -1
  283. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.cjs +0 -21
  284. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.cjs.map +0 -1
  285. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.js +0 -21
  286. package/dist/_node_modules/@prismicio/client/dist/lib/getPreviewCookie.js.map +0 -1
  287. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.cjs +0 -7
  288. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.cjs.map +0 -1
  289. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.js +0 -7
  290. package/dist/_node_modules/@prismicio/client/dist/lib/minifyGraphQLQuery.js.map +0 -1
  291. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.cjs +0 -49
  292. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.cjs.map +0 -1
  293. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.js +0 -49
  294. package/dist/_node_modules/@prismicio/client/dist/lib/pLimit.js.map +0 -1
  295. package/dist/_node_modules/@prismicio/client/dist/lib/request.cjs +0 -43
  296. package/dist/_node_modules/@prismicio/client/dist/lib/request.cjs.map +0 -1
  297. package/dist/_node_modules/@prismicio/client/dist/lib/request.js +0 -43
  298. package/dist/_node_modules/@prismicio/client/dist/lib/request.js.map +0 -1
  299. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.cjs +0 -9
  300. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.cjs.map +0 -1
  301. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.js +0 -9
  302. package/dist/_node_modules/@prismicio/client/dist/lib/someTagsFilter.js.map +0 -1
  303. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.cjs +0 -17
  304. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.cjs.map +0 -1
  305. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.js +0 -17
  306. package/dist/_node_modules/@prismicio/client/dist/lib/throttledLog.js.map +0 -1
  307. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.cjs +0 -8
  308. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.cjs.map +0 -1
  309. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.js +0 -8
  310. package/dist/_node_modules/@prismicio/client/dist/lib/typeFilter.js.map +0 -1
  311. package/dist/_node_modules/@prismicio/client/dist/package.json.cjs +0 -5
  312. package/dist/_node_modules/@prismicio/client/dist/package.json.cjs.map +0 -1
  313. package/dist/_node_modules/@prismicio/client/dist/package.json.js +0 -5
  314. package/dist/_node_modules/@prismicio/client/dist/package.json.js.map +0 -1
  315. package/dist/_node_modules/@prismicio/client/dist/types/model/types.cjs +0 -39
  316. package/dist/_node_modules/@prismicio/client/dist/types/model/types.cjs.map +0 -1
  317. package/dist/_node_modules/@prismicio/client/dist/types/model/types.js +0 -39
  318. package/dist/_node_modules/@prismicio/client/dist/types/model/types.js.map +0 -1
  319. package/dist/_node_modules/@prismicio/client/dist/types/value/link.cjs +0 -10
  320. package/dist/_node_modules/@prismicio/client/dist/types/value/link.cjs.map +0 -1
  321. package/dist/_node_modules/@prismicio/client/dist/types/value/link.js +0 -10
  322. package/dist/_node_modules/@prismicio/client/dist/types/value/link.js.map +0 -1
  323. package/dist/_node_modules/arrify/index.cjs +0 -10
  324. package/dist/_node_modules/arrify/index.cjs.map +0 -1
  325. package/dist/_node_modules/arrify/index.js +0 -10
  326. package/dist/_node_modules/arrify/index.js.map +0 -1
  327. package/dist/_node_modules/camelcase/index.cjs +0 -83
  328. package/dist/_node_modules/camelcase/index.cjs.map +0 -1
  329. package/dist/_node_modules/camelcase/index.js +0 -84
  330. package/dist/_node_modules/camelcase/index.js.map +0 -1
  331. package/dist/_node_modules/camelcase-keys/index.cjs +0 -55
  332. package/dist/_node_modules/camelcase-keys/index.cjs.map +0 -1
  333. package/dist/_node_modules/camelcase-keys/index.js +0 -56
  334. package/dist/_node_modules/camelcase-keys/index.js.map +0 -1
  335. package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs +0 -41
  336. package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs.map +0 -1
  337. package/dist/_node_modules/data-uri-to-buffer/dist/index.js +0 -41
  338. package/dist/_node_modules/data-uri-to-buffer/dist/index.js.map +0 -1
  339. package/dist/_node_modules/decamelize/index.cjs +0 -38
  340. package/dist/_node_modules/decamelize/index.cjs.map +0 -1
  341. package/dist/_node_modules/decamelize/index.js +0 -39
  342. package/dist/_node_modules/decamelize/index.js.map +0 -1
  343. package/dist/_node_modules/decamelize-keys/index.cjs +0 -50
  344. package/dist/_node_modules/decamelize-keys/index.cjs.map +0 -1
  345. package/dist/_node_modules/decamelize-keys/index.js +0 -51
  346. package/dist/_node_modules/decamelize-keys/index.js.map +0 -1
  347. package/dist/_node_modules/error-ex/index.cjs +0 -109
  348. package/dist/_node_modules/error-ex/index.cjs.map +0 -1
  349. package/dist/_node_modules/error-ex/index.js +0 -109
  350. package/dist/_node_modules/error-ex/index.js.map +0 -1
  351. package/dist/_node_modules/fetch-blob/file.cjs +0 -61
  352. package/dist/_node_modules/fetch-blob/file.cjs.map +0 -1
  353. package/dist/_node_modules/fetch-blob/file.js +0 -61
  354. package/dist/_node_modules/fetch-blob/file.js.map +0 -1
  355. package/dist/_node_modules/fetch-blob/index.cjs +0 -223
  356. package/dist/_node_modules/fetch-blob/index.cjs.map +0 -1
  357. package/dist/_node_modules/fetch-blob/index.js +0 -223
  358. package/dist/_node_modules/fetch-blob/index.js.map +0 -1
  359. package/dist/_node_modules/fetch-blob/streams.cjs +0 -43
  360. package/dist/_node_modules/fetch-blob/streams.cjs.map +0 -1
  361. package/dist/_node_modules/fetch-blob/streams.js +0 -42
  362. package/dist/_node_modules/fetch-blob/streams.js.map +0 -1
  363. package/dist/_node_modules/formdata-polyfill/esm.min.cjs +0 -116
  364. package/dist/_node_modules/formdata-polyfill/esm.min.cjs.map +0 -1
  365. package/dist/_node_modules/formdata-polyfill/esm.min.js +0 -116
  366. package/dist/_node_modules/formdata-polyfill/esm.min.js.map +0 -1
  367. package/dist/_node_modules/function-bind/implementation.cjs +0 -47
  368. package/dist/_node_modules/function-bind/implementation.cjs.map +0 -1
  369. package/dist/_node_modules/function-bind/implementation.js +0 -47
  370. package/dist/_node_modules/function-bind/implementation.js.map +0 -1
  371. package/dist/_node_modules/function-bind/index.cjs +0 -7
  372. package/dist/_node_modules/function-bind/index.cjs.map +0 -1
  373. package/dist/_node_modules/function-bind/index.js +0 -7
  374. package/dist/_node_modules/function-bind/index.js.map +0 -1
  375. package/dist/_node_modules/hard-rejection/index.cjs +0 -25
  376. package/dist/_node_modules/hard-rejection/index.cjs.map +0 -1
  377. package/dist/_node_modules/hard-rejection/index.js +0 -26
  378. package/dist/_node_modules/hard-rejection/index.js.map +0 -1
  379. package/dist/_node_modules/has/src/index.cjs +0 -7
  380. package/dist/_node_modules/has/src/index.cjs.map +0 -1
  381. package/dist/_node_modules/has/src/index.js +0 -7
  382. package/dist/_node_modules/has/src/index.js.map +0 -1
  383. package/dist/_node_modules/hosted-git-info/lib/from-url.cjs +0 -93
  384. package/dist/_node_modules/hosted-git-info/lib/from-url.cjs.map +0 -1
  385. package/dist/_node_modules/hosted-git-info/lib/from-url.js +0 -93
  386. package/dist/_node_modules/hosted-git-info/lib/from-url.js.map +0 -1
  387. package/dist/_node_modules/hosted-git-info/lib/hosts.cjs +0 -164
  388. package/dist/_node_modules/hosted-git-info/lib/hosts.cjs.map +0 -1
  389. package/dist/_node_modules/hosted-git-info/lib/hosts.js +0 -164
  390. package/dist/_node_modules/hosted-git-info/lib/hosts.js.map +0 -1
  391. package/dist/_node_modules/hosted-git-info/lib/index.cjs +0 -168
  392. package/dist/_node_modules/hosted-git-info/lib/index.cjs.map +0 -1
  393. package/dist/_node_modules/hosted-git-info/lib/index.js +0 -168
  394. package/dist/_node_modules/hosted-git-info/lib/index.js.map +0 -1
  395. package/dist/_node_modules/hosted-git-info/lib/parse-url.cjs +0 -51
  396. package/dist/_node_modules/hosted-git-info/lib/parse-url.cjs.map +0 -1
  397. package/dist/_node_modules/hosted-git-info/lib/parse-url.js +0 -51
  398. package/dist/_node_modules/hosted-git-info/lib/parse-url.js.map +0 -1
  399. package/dist/_node_modules/indent-string/index.cjs +0 -34
  400. package/dist/_node_modules/indent-string/index.cjs.map +0 -1
  401. package/dist/_node_modules/indent-string/index.js +0 -35
  402. package/dist/_node_modules/indent-string/index.js.map +0 -1
  403. package/dist/_node_modules/is-arrayish/index.cjs +0 -10
  404. package/dist/_node_modules/is-arrayish/index.cjs.map +0 -1
  405. package/dist/_node_modules/is-arrayish/index.js +0 -10
  406. package/dist/_node_modules/is-arrayish/index.js.map +0 -1
  407. package/dist/_node_modules/is-core-module/core.json.cjs +0 -496
  408. package/dist/_node_modules/is-core-module/core.json.cjs.map +0 -1
  409. package/dist/_node_modules/is-core-module/core.json.js +0 -496
  410. package/dist/_node_modules/is-core-module/core.json.js.map +0 -1
  411. package/dist/_node_modules/is-core-module/index.cjs +0 -62
  412. package/dist/_node_modules/is-core-module/index.cjs.map +0 -1
  413. package/dist/_node_modules/is-core-module/index.js +0 -62
  414. package/dist/_node_modules/is-core-module/index.js.map +0 -1
  415. package/dist/_node_modules/is-plain-obj/index.cjs +0 -9
  416. package/dist/_node_modules/is-plain-obj/index.cjs.map +0 -1
  417. package/dist/_node_modules/is-plain-obj/index.js +0 -9
  418. package/dist/_node_modules/is-plain-obj/index.js.map +0 -1
  419. package/dist/_node_modules/js-tokens/index.cjs +0 -27
  420. package/dist/_node_modules/js-tokens/index.cjs.map +0 -1
  421. package/dist/_node_modules/js-tokens/index.js +0 -26
  422. package/dist/_node_modules/js-tokens/index.js.map +0 -1
  423. package/dist/_node_modules/json-parse-even-better-errors/index.cjs +0 -90
  424. package/dist/_node_modules/json-parse-even-better-errors/index.cjs.map +0 -1
  425. package/dist/_node_modules/json-parse-even-better-errors/index.js +0 -90
  426. package/dist/_node_modules/json-parse-even-better-errors/index.js.map +0 -1
  427. package/dist/_node_modules/kind-of/index.cjs +0 -129
  428. package/dist/_node_modules/kind-of/index.cjs.map +0 -1
  429. package/dist/_node_modules/kind-of/index.js +0 -129
  430. package/dist/_node_modules/kind-of/index.js.map +0 -1
  431. package/dist/_node_modules/lines-and-columns/build/index.cjs +0 -67
  432. package/dist/_node_modules/lines-and-columns/build/index.cjs.map +0 -1
  433. package/dist/_node_modules/lines-and-columns/build/index.js +0 -66
  434. package/dist/_node_modules/lines-and-columns/build/index.js.map +0 -1
  435. package/dist/_node_modules/lru-cache/index.cjs +0 -1015
  436. package/dist/_node_modules/lru-cache/index.cjs.map +0 -1
  437. package/dist/_node_modules/lru-cache/index.js +0 -1015
  438. package/dist/_node_modules/lru-cache/index.js.map +0 -1
  439. package/dist/_node_modules/map-obj/index.cjs +0 -49
  440. package/dist/_node_modules/map-obj/index.cjs.map +0 -1
  441. package/dist/_node_modules/map-obj/index.js +0 -50
  442. package/dist/_node_modules/map-obj/index.js.map +0 -1
  443. package/dist/_node_modules/meow/source/index.cjs +0 -88
  444. package/dist/_node_modules/meow/source/index.cjs.map +0 -1
  445. package/dist/_node_modules/meow/source/index.js +0 -89
  446. package/dist/_node_modules/meow/source/index.js.map +0 -1
  447. package/dist/_node_modules/meow/source/options.cjs +0 -83
  448. package/dist/_node_modules/meow/source/options.cjs.map +0 -1
  449. package/dist/_node_modules/meow/source/options.js +0 -83
  450. package/dist/_node_modules/meow/source/options.js.map +0 -1
  451. package/dist/_node_modules/meow/source/parser.cjs +0 -61
  452. package/dist/_node_modules/meow/source/parser.cjs.map +0 -1
  453. package/dist/_node_modules/meow/source/parser.js +0 -61
  454. package/dist/_node_modules/meow/source/parser.js.map +0 -1
  455. package/dist/_node_modules/meow/source/utils.cjs +0 -8
  456. package/dist/_node_modules/meow/source/utils.cjs.map +0 -1
  457. package/dist/_node_modules/meow/source/utils.js +0 -8
  458. package/dist/_node_modules/meow/source/utils.js.map +0 -1
  459. package/dist/_node_modules/meow/source/validate.cjs +0 -102
  460. package/dist/_node_modules/meow/source/validate.cjs.map +0 -1
  461. package/dist/_node_modules/meow/source/validate.js +0 -102
  462. package/dist/_node_modules/meow/source/validate.js.map +0 -1
  463. package/dist/_node_modules/min-indent/index.cjs +0 -12
  464. package/dist/_node_modules/min-indent/index.cjs.map +0 -1
  465. package/dist/_node_modules/min-indent/index.js +0 -13
  466. package/dist/_node_modules/min-indent/index.js.map +0 -1
  467. package/dist/_node_modules/minimist-options/index.cjs +0 -94
  468. package/dist/_node_modules/minimist-options/index.cjs.map +0 -1
  469. package/dist/_node_modules/minimist-options/index.js +0 -95
  470. package/dist/_node_modules/minimist-options/index.js.map +0 -1
  471. package/dist/_node_modules/node-domexception/index.cjs +0 -11
  472. package/dist/_node_modules/node-domexception/index.cjs.map +0 -1
  473. package/dist/_node_modules/node-domexception/index.js +0 -10
  474. package/dist/_node_modules/node-domexception/index.js.map +0 -1
  475. package/dist/_node_modules/node-fetch/src/body.cjs +0 -262
  476. package/dist/_node_modules/node-fetch/src/body.cjs.map +0 -1
  477. package/dist/_node_modules/node-fetch/src/body.js +0 -262
  478. package/dist/_node_modules/node-fetch/src/body.js.map +0 -1
  479. package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs +0 -10
  480. package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs.map +0 -1
  481. package/dist/_node_modules/node-fetch/src/errors/abort-error.js +0 -10
  482. package/dist/_node_modules/node-fetch/src/errors/abort-error.js.map +0 -1
  483. package/dist/_node_modules/node-fetch/src/errors/base.cjs +0 -17
  484. package/dist/_node_modules/node-fetch/src/errors/base.cjs.map +0 -1
  485. package/dist/_node_modules/node-fetch/src/errors/base.js +0 -17
  486. package/dist/_node_modules/node-fetch/src/errors/base.js.map +0 -1
  487. package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs +0 -19
  488. package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs.map +0 -1
  489. package/dist/_node_modules/node-fetch/src/errors/fetch-error.js +0 -19
  490. package/dist/_node_modules/node-fetch/src/errors/fetch-error.js.map +0 -1
  491. package/dist/_node_modules/node-fetch/src/headers.cjs +0 -190
  492. package/dist/_node_modules/node-fetch/src/headers.cjs.map +0 -1
  493. package/dist/_node_modules/node-fetch/src/headers.js +0 -190
  494. package/dist/_node_modules/node-fetch/src/headers.js.map +0 -1
  495. package/dist/_node_modules/node-fetch/src/index.cjs +0 -292
  496. package/dist/_node_modules/node-fetch/src/index.cjs.map +0 -1
  497. package/dist/_node_modules/node-fetch/src/index.js +0 -292
  498. package/dist/_node_modules/node-fetch/src/index.js.map +0 -1
  499. package/dist/_node_modules/node-fetch/src/request.cjs +0 -203
  500. package/dist/_node_modules/node-fetch/src/request.cjs.map +0 -1
  501. package/dist/_node_modules/node-fetch/src/request.js +0 -203
  502. package/dist/_node_modules/node-fetch/src/request.js.map +0 -1
  503. package/dist/_node_modules/node-fetch/src/response.cjs +0 -122
  504. package/dist/_node_modules/node-fetch/src/response.cjs.map +0 -1
  505. package/dist/_node_modules/node-fetch/src/response.js +0 -123
  506. package/dist/_node_modules/node-fetch/src/response.js.map +0 -1
  507. package/dist/_node_modules/node-fetch/src/utils/get-search.cjs +0 -12
  508. package/dist/_node_modules/node-fetch/src/utils/get-search.cjs.map +0 -1
  509. package/dist/_node_modules/node-fetch/src/utils/get-search.js +0 -12
  510. package/dist/_node_modules/node-fetch/src/utils/get-search.js.map +0 -1
  511. package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs +0 -8
  512. package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs.map +0 -1
  513. package/dist/_node_modules/node-fetch/src/utils/is-redirect.js +0 -8
  514. package/dist/_node_modules/node-fetch/src/utils/is-redirect.js.map +0 -1
  515. package/dist/_node_modules/node-fetch/src/utils/is.cjs +0 -28
  516. package/dist/_node_modules/node-fetch/src/utils/is.cjs.map +0 -1
  517. package/dist/_node_modules/node-fetch/src/utils/is.js +0 -28
  518. package/dist/_node_modules/node-fetch/src/utils/is.js.map +0 -1
  519. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs +0 -356
  520. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs.map +0 -1
  521. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js +0 -356
  522. package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js.map +0 -1
  523. package/dist/_node_modules/node-fetch/src/utils/referrer.cjs +0 -149
  524. package/dist/_node_modules/node-fetch/src/utils/referrer.cjs.map +0 -1
  525. package/dist/_node_modules/node-fetch/src/utils/referrer.js +0 -149
  526. package/dist/_node_modules/node-fetch/src/utils/referrer.js.map +0 -1
  527. package/dist/_node_modules/normalize-package-data/lib/extract_description.cjs +0 -24
  528. package/dist/_node_modules/normalize-package-data/lib/extract_description.cjs.map +0 -1
  529. package/dist/_node_modules/normalize-package-data/lib/extract_description.js +0 -24
  530. package/dist/_node_modules/normalize-package-data/lib/extract_description.js.map +0 -1
  531. package/dist/_node_modules/normalize-package-data/lib/fixer.cjs +0 -438
  532. package/dist/_node_modules/normalize-package-data/lib/fixer.cjs.map +0 -1
  533. package/dist/_node_modules/normalize-package-data/lib/fixer.js +0 -438
  534. package/dist/_node_modules/normalize-package-data/lib/fixer.js.map +0 -1
  535. package/dist/_node_modules/normalize-package-data/lib/make_warning.cjs +0 -26
  536. package/dist/_node_modules/normalize-package-data/lib/make_warning.cjs.map +0 -1
  537. package/dist/_node_modules/normalize-package-data/lib/make_warning.js +0 -26
  538. package/dist/_node_modules/normalize-package-data/lib/make_warning.js.map +0 -1
  539. package/dist/_node_modules/normalize-package-data/lib/normalize.cjs +0 -58
  540. package/dist/_node_modules/normalize-package-data/lib/normalize.cjs.map +0 -1
  541. package/dist/_node_modules/normalize-package-data/lib/normalize.js +0 -59
  542. package/dist/_node_modules/normalize-package-data/lib/normalize.js.map +0 -1
  543. package/dist/_node_modules/normalize-package-data/lib/typos.json.cjs +0 -41
  544. package/dist/_node_modules/normalize-package-data/lib/typos.json.cjs.map +0 -1
  545. package/dist/_node_modules/normalize-package-data/lib/typos.json.js +0 -41
  546. package/dist/_node_modules/normalize-package-data/lib/typos.json.js.map +0 -1
  547. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +0 -90
  548. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +0 -1
  549. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.js +0 -90
  550. package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +0 -1
  551. package/dist/_node_modules/parse-json/index.cjs +0 -54
  552. package/dist/_node_modules/parse-json/index.cjs.map +0 -1
  553. package/dist/_node_modules/parse-json/index.js +0 -55
  554. package/dist/_node_modules/parse-json/index.js.map +0 -1
  555. package/dist/_node_modules/picocolors/picocolors.browser.cjs +0 -12
  556. package/dist/_node_modules/picocolors/picocolors.browser.cjs.map +0 -1
  557. package/dist/_node_modules/picocolors/picocolors.browser.js +0 -12
  558. package/dist/_node_modules/picocolors/picocolors.browser.js.map +0 -1
  559. package/dist/_node_modules/quick-lru/index.cjs +0 -235
  560. package/dist/_node_modules/quick-lru/index.cjs.map +0 -1
  561. package/dist/_node_modules/quick-lru/index.js +0 -236
  562. package/dist/_node_modules/quick-lru/index.js.map +0 -1
  563. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs +0 -159
  564. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +0 -1
  565. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js +0 -159
  566. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js.map +0 -1
  567. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs +0 -88
  568. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +0 -1
  569. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js +0 -88
  570. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js.map +0 -1
  571. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +0 -180
  572. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +0 -1
  573. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +0 -180
  574. package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +0 -1
  575. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs +0 -268
  576. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs.map +0 -1
  577. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.js +0 -268
  578. package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.js.map +0 -1
  579. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs +0 -20
  580. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs.map +0 -1
  581. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js +0 -20
  582. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js.map +0 -1
  583. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +0 -438
  584. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs.map +0 -1
  585. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +0 -438
  586. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js.map +0 -1
  587. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs +0 -26
  588. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs.map +0 -1
  589. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js +0 -26
  590. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js.map +0 -1
  591. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs +0 -58
  592. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs.map +0 -1
  593. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js +0 -59
  594. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js.map +0 -1
  595. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs +0 -41
  596. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs.map +0 -1
  597. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js +0 -41
  598. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js.map +0 -1
  599. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +0 -90
  600. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +0 -1
  601. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js +0 -90
  602. package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +0 -1
  603. package/dist/_node_modules/read-pkg/index.cjs +0 -20
  604. package/dist/_node_modules/read-pkg/index.cjs.map +0 -1
  605. package/dist/_node_modules/read-pkg/index.js +0 -20
  606. package/dist/_node_modules/read-pkg/index.js.map +0 -1
  607. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.cjs +0 -48
  608. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.cjs.map +0 -1
  609. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.js +0 -48
  610. package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.js.map +0 -1
  611. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.cjs +0 -43
  612. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.cjs.map +0 -1
  613. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.js +0 -43
  614. package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.js.map +0 -1
  615. package/dist/_node_modules/read-pkg-up/index.cjs +0 -17
  616. package/dist/_node_modules/read-pkg-up/index.cjs.map +0 -1
  617. package/dist/_node_modules/read-pkg-up/index.js +0 -17
  618. package/dist/_node_modules/read-pkg-up/index.js.map +0 -1
  619. package/dist/_node_modules/redent/index.cjs +0 -8
  620. package/dist/_node_modules/redent/index.cjs.map +0 -1
  621. package/dist/_node_modules/redent/index.js +0 -9
  622. package/dist/_node_modules/redent/index.js.map +0 -1
  623. package/dist/_node_modules/semver/classes/semver.cjs +0 -245
  624. package/dist/_node_modules/semver/classes/semver.cjs.map +0 -1
  625. package/dist/_node_modules/semver/classes/semver.js +0 -245
  626. package/dist/_node_modules/semver/classes/semver.js.map +0 -1
  627. package/dist/_node_modules/semver/functions/clean.cjs +0 -11
  628. package/dist/_node_modules/semver/functions/clean.cjs.map +0 -1
  629. package/dist/_node_modules/semver/functions/clean.js +0 -11
  630. package/dist/_node_modules/semver/functions/clean.js.map +0 -1
  631. package/dist/_node_modules/semver/functions/parse.cjs +0 -20
  632. package/dist/_node_modules/semver/functions/parse.cjs.map +0 -1
  633. package/dist/_node_modules/semver/functions/parse.js +0 -20
  634. package/dist/_node_modules/semver/functions/parse.js.map +0 -1
  635. package/dist/_node_modules/semver/functions/valid.cjs +0 -11
  636. package/dist/_node_modules/semver/functions/valid.cjs.map +0 -1
  637. package/dist/_node_modules/semver/functions/valid.js +0 -11
  638. package/dist/_node_modules/semver/functions/valid.js.map +0 -1
  639. package/dist/_node_modules/semver/internal/constants.cjs +0 -29
  640. package/dist/_node_modules/semver/internal/constants.cjs.map +0 -1
  641. package/dist/_node_modules/semver/internal/constants.js +0 -29
  642. package/dist/_node_modules/semver/internal/constants.js.map +0 -1
  643. package/dist/_node_modules/semver/internal/debug.cjs +0 -7
  644. package/dist/_node_modules/semver/internal/debug.cjs.map +0 -1
  645. package/dist/_node_modules/semver/internal/debug.js +0 -7
  646. package/dist/_node_modules/semver/internal/debug.js.map +0 -1
  647. package/dist/_node_modules/semver/internal/identifiers.cjs +0 -19
  648. package/dist/_node_modules/semver/internal/identifiers.cjs.map +0 -1
  649. package/dist/_node_modules/semver/internal/identifiers.js +0 -19
  650. package/dist/_node_modules/semver/internal/identifiers.js.map +0 -1
  651. package/dist/_node_modules/semver/internal/parse-options.cjs +0 -16
  652. package/dist/_node_modules/semver/internal/parse-options.cjs.map +0 -1
  653. package/dist/_node_modules/semver/internal/parse-options.js +0 -16
  654. package/dist/_node_modules/semver/internal/parse-options.js.map +0 -1
  655. package/dist/_node_modules/semver/internal/re.cjs +0 -82
  656. package/dist/_node_modules/semver/internal/re.cjs.map +0 -1
  657. package/dist/_node_modules/semver/internal/re.js +0 -82
  658. package/dist/_node_modules/semver/internal/re.js.map +0 -1
  659. package/dist/_node_modules/spdx-correct/index.cjs +0 -334
  660. package/dist/_node_modules/spdx-correct/index.cjs.map +0 -1
  661. package/dist/_node_modules/spdx-correct/index.js +0 -334
  662. package/dist/_node_modules/spdx-correct/index.js.map +0 -1
  663. package/dist/_node_modules/spdx-exceptions/index.json.cjs +0 -43
  664. package/dist/_node_modules/spdx-exceptions/index.json.cjs.map +0 -1
  665. package/dist/_node_modules/spdx-exceptions/index.json.js +0 -44
  666. package/dist/_node_modules/spdx-exceptions/index.json.js.map +0 -1
  667. package/dist/_node_modules/spdx-expression-parse/index.cjs +0 -11
  668. package/dist/_node_modules/spdx-expression-parse/index.cjs.map +0 -1
  669. package/dist/_node_modules/spdx-expression-parse/index.js +0 -11
  670. package/dist/_node_modules/spdx-expression-parse/index.js.map +0 -1
  671. package/dist/_node_modules/spdx-expression-parse/parse.cjs +0 -111
  672. package/dist/_node_modules/spdx-expression-parse/parse.cjs.map +0 -1
  673. package/dist/_node_modules/spdx-expression-parse/parse.js +0 -111
  674. package/dist/_node_modules/spdx-expression-parse/parse.js.map +0 -1
  675. package/dist/_node_modules/spdx-expression-parse/scan.cjs +0 -104
  676. package/dist/_node_modules/spdx-expression-parse/scan.cjs.map +0 -1
  677. package/dist/_node_modules/spdx-expression-parse/scan.js +0 -104
  678. package/dist/_node_modules/spdx-expression-parse/scan.js.map +0 -1
  679. package/dist/_node_modules/spdx-license-ids/deprecated.json.cjs +0 -30
  680. package/dist/_node_modules/spdx-license-ids/deprecated.json.cjs.map +0 -1
  681. package/dist/_node_modules/spdx-license-ids/deprecated.json.js +0 -31
  682. package/dist/_node_modules/spdx-license-ids/deprecated.json.js.map +0 -1
  683. package/dist/_node_modules/spdx-license-ids/index.json.cjs +0 -510
  684. package/dist/_node_modules/spdx-license-ids/index.json.cjs.map +0 -1
  685. package/dist/_node_modules/spdx-license-ids/index.json.js +0 -511
  686. package/dist/_node_modules/spdx-license-ids/index.json.js.map +0 -1
  687. package/dist/_node_modules/strip-indent/index.cjs +0 -12
  688. package/dist/_node_modules/strip-indent/index.cjs.map +0 -1
  689. package/dist/_node_modules/strip-indent/index.js +0 -13
  690. package/dist/_node_modules/strip-indent/index.js.map +0 -1
  691. package/dist/_node_modules/trim-newlines/index.cjs +0 -15
  692. package/dist/_node_modules/trim-newlines/index.cjs.map +0 -1
  693. package/dist/_node_modules/trim-newlines/index.js +0 -15
  694. package/dist/_node_modules/trim-newlines/index.js.map +0 -1
  695. package/dist/_node_modules/validate-npm-package-license/index.cjs +0 -71
  696. package/dist/_node_modules/validate-npm-package-license/index.cjs.map +0 -1
  697. package/dist/_node_modules/validate-npm-package-license/index.js +0 -71
  698. package/dist/_node_modules/validate-npm-package-license/index.js.map +0 -1
  699. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +0 -3822
  700. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs.map +0 -1
  701. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +0 -3822
  702. package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +0 -1
  703. package/dist/_node_modules/yallist/iterator.cjs +0 -19
  704. package/dist/_node_modules/yallist/iterator.cjs.map +0 -1
  705. package/dist/_node_modules/yallist/iterator.js +0 -19
  706. package/dist/_node_modules/yallist/iterator.js.map +0 -1
  707. package/dist/_node_modules/yallist/yallist.cjs +0 -367
  708. package/dist/_node_modules/yallist/yallist.cjs.map +0 -1
  709. package/dist/_node_modules/yallist/yallist.js +0 -367
  710. package/dist/_node_modules/yallist/yallist.js.map +0 -1
  711. package/dist/_node_modules/yargs-parser/build/lib/index.cjs +0 -56
  712. package/dist/_node_modules/yargs-parser/build/lib/index.cjs.map +0 -1
  713. package/dist/_node_modules/yargs-parser/build/lib/index.js +0 -57
  714. package/dist/_node_modules/yargs-parser/build/lib/index.js.map +0 -1
  715. package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs +0 -63
  716. package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +0 -1
  717. package/dist/_node_modules/yargs-parser/build/lib/string-utils.js +0 -63
  718. package/dist/_node_modules/yargs-parser/build/lib/string-utils.js.map +0 -1
  719. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs +0 -39
  720. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs.map +0 -1
  721. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -39
  722. package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js.map +0 -1
  723. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs +0 -15
  724. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs.map +0 -1
  725. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -16
  726. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js.map +0 -1
  727. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs +0 -847
  728. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +0 -1
  729. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js +0 -847
  730. package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +0 -1
  731. package/dist/_virtual/_commonjsHelpers.cjs +0 -9
  732. package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
  733. package/dist/_virtual/_commonjsHelpers.js +0 -9
  734. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  735. package/dist/_virtual/identifier.cjs +0 -5
  736. package/dist/_virtual/identifier.cjs.map +0 -1
  737. package/dist/_virtual/identifier.js +0 -5
  738. package/dist/_virtual/identifier.js.map +0 -1
  739. package/dist/_virtual/index.cjs +0 -5
  740. package/dist/_virtual/index.cjs.map +0 -1
  741. package/dist/_virtual/index.js +0 -5
  742. package/dist/_virtual/index.js.map +0 -1
  743. package/dist/_virtual/index2.cjs +0 -5
  744. package/dist/_virtual/index2.cjs.map +0 -1
  745. package/dist/_virtual/index2.js +0 -5
  746. package/dist/_virtual/index2.js.map +0 -1
  747. package/dist/_virtual/index3.cjs +0 -5
  748. package/dist/_virtual/index3.cjs.map +0 -1
  749. package/dist/_virtual/index3.js +0 -5
  750. package/dist/_virtual/index3.js.map +0 -1
  751. package/dist/_virtual/index4.cjs +0 -5
  752. package/dist/_virtual/index4.cjs.map +0 -1
  753. package/dist/_virtual/index4.js +0 -5
  754. package/dist/_virtual/index4.js.map +0 -1
  755. package/dist/_virtual/index5.cjs +0 -5
  756. package/dist/_virtual/index5.cjs.map +0 -1
  757. package/dist/_virtual/index5.js +0 -5
  758. package/dist/_virtual/index5.js.map +0 -1
  759. package/dist/_virtual/index6.cjs +0 -5
  760. package/dist/_virtual/index6.cjs.map +0 -1
  761. package/dist/_virtual/index6.js +0 -5
  762. package/dist/_virtual/index6.js.map +0 -1
  763. package/dist/_virtual/index7.cjs +0 -5
  764. package/dist/_virtual/index7.cjs.map +0 -1
  765. package/dist/_virtual/index7.js +0 -5
  766. package/dist/_virtual/index7.js.map +0 -1
  767. package/dist/_virtual/index8.cjs +0 -5
  768. package/dist/_virtual/index8.cjs.map +0 -1
  769. package/dist/_virtual/index8.js +0 -5
  770. package/dist/_virtual/index8.js.map +0 -1
  771. package/dist/_virtual/keyword.cjs +0 -5
  772. package/dist/_virtual/keyword.cjs.map +0 -1
  773. package/dist/_virtual/keyword.js +0 -5
  774. package/dist/_virtual/keyword.js.map +0 -1
  775. package/dist/_virtual/picocolors.browser.cjs +0 -5
  776. package/dist/_virtual/picocolors.browser.cjs.map +0 -1
  777. package/dist/_virtual/picocolors.browser.js +0 -5
  778. package/dist/_virtual/picocolors.browser.js.map +0 -1
  779. package/dist/_virtual/ponyfill.es2018.cjs +0 -5
  780. package/dist/_virtual/ponyfill.es2018.cjs.map +0 -1
  781. package/dist/_virtual/ponyfill.es2018.js +0 -5
  782. package/dist/_virtual/ponyfill.es2018.js.map +0 -1
  783. package/dist/_virtual/re.cjs +0 -5
  784. package/dist/_virtual/re.cjs.map +0 -1
  785. package/dist/_virtual/re.js +0 -5
  786. package/dist/_virtual/re.js.map +0 -1
  787. package/dist/cli/index.d.ts +0 -1
  788. package/dist/cli/loadConfig.d.ts +0 -6
  789. package/dist/cli/loadLocaleIDs.d.ts +0 -10
  790. package/dist/cli/loadModels.d.ts +0 -15
  791. package/dist/cli/types.d.ts +0 -175
  792. package/dist/constants.d.ts +0 -26
  793. package/dist/index.cjs.map +0 -1
  794. package/dist/index.js.map +0 -1
  795. package/dist/lib/addBlankLine.d.ts +0 -5
  796. package/dist/lib/addLine.d.ts +0 -1
  797. package/dist/lib/addSection.d.ts +0 -1
  798. package/dist/lib/addTrailingNewLine.d.ts +0 -5
  799. package/dist/lib/buildCustomTypeDataType.d.ts +0 -14
  800. package/dist/lib/buildCustomTypeType.d.ts +0 -17
  801. package/dist/lib/buildFieldDocs.d.ts +0 -10
  802. package/dist/lib/buildFieldProperties.d.ts +0 -15
  803. package/dist/lib/buildSharedSliceType.d.ts +0 -17
  804. package/dist/lib/buildTypeName.d.ts +0 -1
  805. package/dist/lib/buildUnion.d.ts +0 -1
  806. package/dist/lib/checkHasUIDFIeld.d.ts +0 -2
  807. package/dist/lib/getAPIIDPath.d.ts +0 -6
  808. package/dist/lib/getCacheKey.d.ts +0 -9
  809. package/dist/lib/getHumanReadableModelName.d.ts +0 -7
  810. package/dist/lib/getHumanReadablePath.d.ts +0 -6
  811. package/src/cli/types.ts +0 -192
@@ -1,247 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const formatValue = (value) => {
4
- if (Array.isArray(value)) {
5
- return `[${value.map(formatValue).join(", ")}]`;
6
- }
7
- if (typeof value === "string") {
8
- return `"${value}"`;
9
- }
10
- if (value instanceof Date) {
11
- return `${value.getTime()}`;
12
- }
13
- return `${value}`;
14
- };
15
- const pathWithArgsFilter = (name) => {
16
- const fn = (path, ...args) => {
17
- const formattedArgs = args.map(formatValue).join(", ");
18
- const joiner = path && args.length ? ", " : "";
19
- return `[${name}(${path}${joiner}${formattedArgs})]`;
20
- };
21
- return fn;
22
- };
23
- const pathFilter = (name) => {
24
- const filterFn = pathWithArgsFilter(name);
25
- const fn = (path) => {
26
- return filterFn(path);
27
- };
28
- return fn;
29
- };
30
- const argsFilter = (name) => {
31
- const filterFn = pathWithArgsFilter(name);
32
- const fn = (...args) => {
33
- return filterFn("", ...args);
34
- };
35
- return fn;
36
- };
37
- const filter = {
38
- /**
39
- * The `at` filter checks that the path matches the described value exactly.
40
- * It takes a single value for a field or an array (only for tags).
41
- *
42
- * {@link https://prismic.io/docs/rest-api-technical-reference#at}
43
- */
44
- at: pathWithArgsFilter("at"),
45
- /**
46
- * The `not` filter checks that the path doesn't match the provided value
47
- * exactly. It takes a single value for a field or an array (only for tags).
48
- *
49
- * {@link https://prismic.io/docs/rest-api-technical-reference#not}
50
- */
51
- not: pathWithArgsFilter("not"),
52
- /**
53
- * The `any` filter takes an array of values. It works exactly the same way as
54
- * the `at` operator, but checks whether the fragment matches any of the
55
- * values in the array.
56
- *
57
- * {@link https://prismic.io/docs/rest-api-technical-reference#any}
58
- */
59
- any: pathWithArgsFilter("any"),
60
- /**
61
- * The `in` filter is used specifically to retrieve an array of documents by
62
- * their IDs or UIDs. This filter is much more efficient at this than the any
63
- * filter.
64
- *
65
- * {@link https://prismic.io/docs/rest-api-technical-reference#in}
66
- */
67
- in: pathWithArgsFilter("in"),
68
- /**
69
- * The `fulltext` filter provides two capabilities:
70
- *
71
- * 1. Checking if a certain string is anywhere inside a document (this is what
72
- * you should use to make your project's search engine feature)
73
- * 2. Checking if the string is contained inside a specific custom type’s Rich
74
- * Text or Key Text fragment.
75
- *
76
- * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}
77
- */
78
- fulltext: pathWithArgsFilter("fulltext"),
79
- /**
80
- * The `has` filter checks whether a fragment has a value. It will return all
81
- * the documents of the specified type that contain a value for the specified
82
- * field.
83
- *
84
- * {@link https://prismic.io/docs/rest-api-technical-reference#has}
85
- */
86
- has: pathFilter("has"),
87
- /**
88
- * The `missing` filter checks if a fragment doesn't have a value. It will
89
- * return all the documents of the specified type that do not contain a value
90
- * for the specified field.
91
- *
92
- * {@link https://prismic.io/docs/rest-api-technical-reference#missing}
93
- */
94
- missing: pathFilter("missing"),
95
- /**
96
- * The `similar` filter takes the ID of a document, and returns a list of
97
- * documents with similar content. This allows you to build an automated
98
- * content discovery feature (for example, a "Related posts" section).
99
- *
100
- * {@link https://prismic.io/docs/rest-api-technical-reference#similar}
101
- */
102
- similar: argsFilter("similar"),
103
- /**
104
- * The `geopoint.near` filter checks that the value in the path is within the
105
- * radius of the given coordinates.
106
- *
107
- * This filter will only work for a geopoint field.
108
- *
109
- * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}
110
- */
111
- geopointNear: pathWithArgsFilter("geopoint.near"),
112
- /**
113
- * The `number.lt` filter checks that the value in the number field is less
114
- * than the value passed into the filter.
115
- *
116
- * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}
117
- */
118
- numberLessThan: pathWithArgsFilter("number.lt"),
119
- /**
120
- * The `number.gt` filter checks that the value in the number field is greater
121
- * than the value passed into the filter.
122
- *
123
- * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}
124
- */
125
- numberGreaterThan: pathWithArgsFilter("number.gt"),
126
- /**
127
- * The `number.inRange` filter checks that the value in the path is within the
128
- * two values passed into the filter.
129
- *
130
- * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}
131
- */
132
- numberInRange: pathWithArgsFilter("number.inRange"),
133
- /**
134
- * The `date.after` filter checks that the value in the path is after the date
135
- * value passed into the filter.
136
- *
137
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
138
- */
139
- dateAfter: pathWithArgsFilter("date.after"),
140
- /**
141
- * The `date.before` filter checks that the value in the path is before the
142
- * date value passed into the filter.
143
- *
144
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
145
- */
146
- dateBefore: pathWithArgsFilter("date.before"),
147
- /**
148
- * The `date.between` filter checks that the value in the path is within the
149
- * date values passed into the filter.
150
- *
151
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
152
- */
153
- dateBetween: pathWithArgsFilter("date.between"),
154
- /**
155
- * The `date.day-of-month` filter checks that the value in the path is equal
156
- * to the day of the month passed into the filter.
157
- *
158
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
159
- */
160
- dateDayOfMonth: pathWithArgsFilter("date.day-of-month"),
161
- /**
162
- * The `date.day-of-month-after` filter checks that the value in the path is
163
- * after the day of the month passed into the filter.
164
- *
165
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
166
- */
167
- dateDayOfMonthAfter: pathWithArgsFilter("date.day-of-month-after"),
168
- /**
169
- * The `date.day-of-month-before` filter checks that the value in the path is
170
- * before the day of the month passed into the filter.
171
- *
172
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
173
- */
174
- dateDayOfMonthBefore: pathWithArgsFilter("date.day-of-month-before"),
175
- /**
176
- * The `date.day-of-week` filter checks that the value in the path is equal to
177
- * the day of the week passed into the filter.
178
- *
179
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
180
- */
181
- dateDayOfWeek: pathWithArgsFilter("date.day-of-week"),
182
- /**
183
- * The `date.day-of-week-after` filter checks that the value in the path is
184
- * after the day of the week passed into the filter.
185
- *
186
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
187
- */
188
- dateDayOfWeekAfter: pathWithArgsFilter("date.day-of-week-after"),
189
- /**
190
- * The date.day-of-week-before filter checks that the value in the path is
191
- * before the day of the week passed into the filter.
192
- *
193
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
194
- */
195
- dateDayOfWeekBefore: pathWithArgsFilter("date.day-of-week-before"),
196
- /**
197
- * The `date.month` filter checks that the value in the path occurs in the
198
- * month value passed into the filter.
199
- *
200
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
201
- */
202
- dateMonth: pathWithArgsFilter("date.month"),
203
- /**
204
- * The `date.month-after` filter checks that the value in the path occurs in
205
- * any month after the value passed into the filter.
206
- *
207
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
208
- */
209
- dateMonthAfter: pathWithArgsFilter("date.month-after"),
210
- /**
211
- * The `date.month-before` filter checks that the value in the path occurs in
212
- * any month before the value passed into the filter.
213
- *
214
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
215
- */
216
- dateMonthBefore: pathWithArgsFilter("date.month-before"),
217
- /**
218
- * The `date.year` filter checks that the value in the path occurs in the year
219
- * value passed into the filter.
220
- *
221
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
222
- */
223
- dateYear: pathWithArgsFilter("date.year"),
224
- /**
225
- * The `date.hour` filter checks that the value in the path occurs within the
226
- * hour value passed into the filter.
227
- *
228
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
229
- */
230
- dateHour: pathWithArgsFilter("date.hour"),
231
- /**
232
- * The `date.hour-after` filter checks that the value in the path occurs after
233
- * the hour value passed into the filter.
234
- *
235
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
236
- */
237
- dateHourAfter: pathWithArgsFilter("date.hour-after"),
238
- /**
239
- * The `date.hour-before` filter checks that the value in the path occurs
240
- * before the hour value passed into the filter.
241
- *
242
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
243
- */
244
- dateHourBefore: pathWithArgsFilter("date.hour-before")
245
- };
246
- exports.filter = filter;
247
- //# sourceMappingURL=filter.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.cjs","sources":["../../../../../node_modules/@prismicio/client/dist/filter.js"],"sourcesContent":["const formatValue = (value) => {\n if (Array.isArray(value)) {\n return `[${value.map(formatValue).join(\", \")}]`;\n }\n if (typeof value === \"string\") {\n return `\"${value}\"`;\n }\n if (value instanceof Date) {\n return `${value.getTime()}`;\n }\n return `${value}`;\n};\nconst pathWithArgsFilter = (name) => {\n const fn = (path, ...args) => {\n const formattedArgs = args.map(formatValue).join(\", \");\n const joiner = path && args.length ? \", \" : \"\";\n return `[${name}(${path}${joiner}${formattedArgs})]`;\n };\n return fn;\n};\nconst pathFilter = (name) => {\n const filterFn = pathWithArgsFilter(name);\n const fn = (path) => {\n return filterFn(path);\n };\n return fn;\n};\nconst argsFilter = (name) => {\n const filterFn = pathWithArgsFilter(name);\n const fn = (...args) => {\n return filterFn(\"\", ...args);\n };\n return fn;\n};\nconst filter = {\n /**\n * The `at` filter checks that the path matches the described value exactly.\n * It takes a single value for a field or an array (only for tags).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#at}\n */\n at: pathWithArgsFilter(\"at\"),\n /**\n * The `not` filter checks that the path doesn't match the provided value\n * exactly. It takes a single value for a field or an array (only for tags).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#not}\n */\n not: pathWithArgsFilter(\"not\"),\n /**\n * The `any` filter takes an array of values. It works exactly the same way as\n * the `at` operator, but checks whether the fragment matches any of the\n * values in the array.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#any}\n */\n any: pathWithArgsFilter(\"any\"),\n /**\n * The `in` filter is used specifically to retrieve an array of documents by\n * their IDs or UIDs. This filter is much more efficient at this than the any\n * filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#in}\n */\n in: pathWithArgsFilter(\"in\"),\n /**\n * The `fulltext` filter provides two capabilities:\n *\n * 1. Checking if a certain string is anywhere inside a document (this is what\n * you should use to make your project's search engine feature)\n * 2. Checking if the string is contained inside a specific custom type’s Rich\n * Text or Key Text fragment.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}\n */\n fulltext: pathWithArgsFilter(\"fulltext\"),\n /**\n * The `has` filter checks whether a fragment has a value. It will return all\n * the documents of the specified type that contain a value for the specified\n * field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#has}\n */\n has: pathFilter(\"has\"),\n /**\n * The `missing` filter checks if a fragment doesn't have a value. It will\n * return all the documents of the specified type that do not contain a value\n * for the specified field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#missing}\n */\n missing: pathFilter(\"missing\"),\n /**\n * The `similar` filter takes the ID of a document, and returns a list of\n * documents with similar content. This allows you to build an automated\n * content discovery feature (for example, a \"Related posts\" section).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#similar}\n */\n similar: argsFilter(\"similar\"),\n /**\n * The `geopoint.near` filter checks that the value in the path is within the\n * radius of the given coordinates.\n *\n * This filter will only work for a geopoint field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}\n */\n geopointNear: pathWithArgsFilter(\"geopoint.near\"),\n /**\n * The `number.lt` filter checks that the value in the number field is less\n * than the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}\n */\n numberLessThan: pathWithArgsFilter(\"number.lt\"),\n /**\n * The `number.gt` filter checks that the value in the number field is greater\n * than the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}\n */\n numberGreaterThan: pathWithArgsFilter(\"number.gt\"),\n /**\n * The `number.inRange` filter checks that the value in the path is within the\n * two values passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}\n */\n numberInRange: pathWithArgsFilter(\"number.inRange\"),\n /**\n * The `date.after` filter checks that the value in the path is after the date\n * value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateAfter: pathWithArgsFilter(\"date.after\"),\n /**\n * The `date.before` filter checks that the value in the path is before the\n * date value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateBefore: pathWithArgsFilter(\"date.before\"),\n /**\n * The `date.between` filter checks that the value in the path is within the\n * date values passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateBetween: pathWithArgsFilter(\"date.between\"),\n /**\n * The `date.day-of-month` filter checks that the value in the path is equal\n * to the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonth: pathWithArgsFilter(\"date.day-of-month\"),\n /**\n * The `date.day-of-month-after` filter checks that the value in the path is\n * after the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonthAfter: pathWithArgsFilter(\"date.day-of-month-after\"),\n /**\n * The `date.day-of-month-before` filter checks that the value in the path is\n * before the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonthBefore: pathWithArgsFilter(\"date.day-of-month-before\"),\n /**\n * The `date.day-of-week` filter checks that the value in the path is equal to\n * the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeek: pathWithArgsFilter(\"date.day-of-week\"),\n /**\n * The `date.day-of-week-after` filter checks that the value in the path is\n * after the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeekAfter: pathWithArgsFilter(\"date.day-of-week-after\"),\n /**\n * The date.day-of-week-before filter checks that the value in the path is\n * before the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeekBefore: pathWithArgsFilter(\"date.day-of-week-before\"),\n /**\n * The `date.month` filter checks that the value in the path occurs in the\n * month value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonth: pathWithArgsFilter(\"date.month\"),\n /**\n * The `date.month-after` filter checks that the value in the path occurs in\n * any month after the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonthAfter: pathWithArgsFilter(\"date.month-after\"),\n /**\n * The `date.month-before` filter checks that the value in the path occurs in\n * any month before the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonthBefore: pathWithArgsFilter(\"date.month-before\"),\n /**\n * The `date.year` filter checks that the value in the path occurs in the year\n * value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateYear: pathWithArgsFilter(\"date.year\"),\n /**\n * The `date.hour` filter checks that the value in the path occurs within the\n * hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHour: pathWithArgsFilter(\"date.hour\"),\n /**\n * The `date.hour-after` filter checks that the value in the path occurs after\n * the hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHourAfter: pathWithArgsFilter(\"date.hour-after\"),\n /**\n * The `date.hour-before` filter checks that the value in the path occurs\n * before the hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHourBefore: pathWithArgsFilter(\"date.hour-before\")\n};\nexport {\n filter\n};\n//# sourceMappingURL=filter.js.map\n"],"names":[],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,247 +0,0 @@
1
- const formatValue = (value) => {
2
- if (Array.isArray(value)) {
3
- return `[${value.map(formatValue).join(", ")}]`;
4
- }
5
- if (typeof value === "string") {
6
- return `"${value}"`;
7
- }
8
- if (value instanceof Date) {
9
- return `${value.getTime()}`;
10
- }
11
- return `${value}`;
12
- };
13
- const pathWithArgsFilter = (name) => {
14
- const fn = (path, ...args) => {
15
- const formattedArgs = args.map(formatValue).join(", ");
16
- const joiner = path && args.length ? ", " : "";
17
- return `[${name}(${path}${joiner}${formattedArgs})]`;
18
- };
19
- return fn;
20
- };
21
- const pathFilter = (name) => {
22
- const filterFn = pathWithArgsFilter(name);
23
- const fn = (path) => {
24
- return filterFn(path);
25
- };
26
- return fn;
27
- };
28
- const argsFilter = (name) => {
29
- const filterFn = pathWithArgsFilter(name);
30
- const fn = (...args) => {
31
- return filterFn("", ...args);
32
- };
33
- return fn;
34
- };
35
- const filter = {
36
- /**
37
- * The `at` filter checks that the path matches the described value exactly.
38
- * It takes a single value for a field or an array (only for tags).
39
- *
40
- * {@link https://prismic.io/docs/rest-api-technical-reference#at}
41
- */
42
- at: pathWithArgsFilter("at"),
43
- /**
44
- * The `not` filter checks that the path doesn't match the provided value
45
- * exactly. It takes a single value for a field or an array (only for tags).
46
- *
47
- * {@link https://prismic.io/docs/rest-api-technical-reference#not}
48
- */
49
- not: pathWithArgsFilter("not"),
50
- /**
51
- * The `any` filter takes an array of values. It works exactly the same way as
52
- * the `at` operator, but checks whether the fragment matches any of the
53
- * values in the array.
54
- *
55
- * {@link https://prismic.io/docs/rest-api-technical-reference#any}
56
- */
57
- any: pathWithArgsFilter("any"),
58
- /**
59
- * The `in` filter is used specifically to retrieve an array of documents by
60
- * their IDs or UIDs. This filter is much more efficient at this than the any
61
- * filter.
62
- *
63
- * {@link https://prismic.io/docs/rest-api-technical-reference#in}
64
- */
65
- in: pathWithArgsFilter("in"),
66
- /**
67
- * The `fulltext` filter provides two capabilities:
68
- *
69
- * 1. Checking if a certain string is anywhere inside a document (this is what
70
- * you should use to make your project's search engine feature)
71
- * 2. Checking if the string is contained inside a specific custom type’s Rich
72
- * Text or Key Text fragment.
73
- *
74
- * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}
75
- */
76
- fulltext: pathWithArgsFilter("fulltext"),
77
- /**
78
- * The `has` filter checks whether a fragment has a value. It will return all
79
- * the documents of the specified type that contain a value for the specified
80
- * field.
81
- *
82
- * {@link https://prismic.io/docs/rest-api-technical-reference#has}
83
- */
84
- has: pathFilter("has"),
85
- /**
86
- * The `missing` filter checks if a fragment doesn't have a value. It will
87
- * return all the documents of the specified type that do not contain a value
88
- * for the specified field.
89
- *
90
- * {@link https://prismic.io/docs/rest-api-technical-reference#missing}
91
- */
92
- missing: pathFilter("missing"),
93
- /**
94
- * The `similar` filter takes the ID of a document, and returns a list of
95
- * documents with similar content. This allows you to build an automated
96
- * content discovery feature (for example, a "Related posts" section).
97
- *
98
- * {@link https://prismic.io/docs/rest-api-technical-reference#similar}
99
- */
100
- similar: argsFilter("similar"),
101
- /**
102
- * The `geopoint.near` filter checks that the value in the path is within the
103
- * radius of the given coordinates.
104
- *
105
- * This filter will only work for a geopoint field.
106
- *
107
- * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}
108
- */
109
- geopointNear: pathWithArgsFilter("geopoint.near"),
110
- /**
111
- * The `number.lt` filter checks that the value in the number field is less
112
- * than the value passed into the filter.
113
- *
114
- * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}
115
- */
116
- numberLessThan: pathWithArgsFilter("number.lt"),
117
- /**
118
- * The `number.gt` filter checks that the value in the number field is greater
119
- * than the value passed into the filter.
120
- *
121
- * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}
122
- */
123
- numberGreaterThan: pathWithArgsFilter("number.gt"),
124
- /**
125
- * The `number.inRange` filter checks that the value in the path is within the
126
- * two values passed into the filter.
127
- *
128
- * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}
129
- */
130
- numberInRange: pathWithArgsFilter("number.inRange"),
131
- /**
132
- * The `date.after` filter checks that the value in the path is after the date
133
- * value passed into the filter.
134
- *
135
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
136
- */
137
- dateAfter: pathWithArgsFilter("date.after"),
138
- /**
139
- * The `date.before` filter checks that the value in the path is before the
140
- * date value passed into the filter.
141
- *
142
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
143
- */
144
- dateBefore: pathWithArgsFilter("date.before"),
145
- /**
146
- * The `date.between` filter checks that the value in the path is within the
147
- * date values passed into the filter.
148
- *
149
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
150
- */
151
- dateBetween: pathWithArgsFilter("date.between"),
152
- /**
153
- * The `date.day-of-month` filter checks that the value in the path is equal
154
- * to the day of the month passed into the filter.
155
- *
156
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
157
- */
158
- dateDayOfMonth: pathWithArgsFilter("date.day-of-month"),
159
- /**
160
- * The `date.day-of-month-after` filter checks that the value in the path is
161
- * after the day of the month passed into the filter.
162
- *
163
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
164
- */
165
- dateDayOfMonthAfter: pathWithArgsFilter("date.day-of-month-after"),
166
- /**
167
- * The `date.day-of-month-before` filter checks that the value in the path is
168
- * before the day of the month passed into the filter.
169
- *
170
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
171
- */
172
- dateDayOfMonthBefore: pathWithArgsFilter("date.day-of-month-before"),
173
- /**
174
- * The `date.day-of-week` filter checks that the value in the path is equal to
175
- * the day of the week passed into the filter.
176
- *
177
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
178
- */
179
- dateDayOfWeek: pathWithArgsFilter("date.day-of-week"),
180
- /**
181
- * The `date.day-of-week-after` filter checks that the value in the path is
182
- * after the day of the week passed into the filter.
183
- *
184
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
185
- */
186
- dateDayOfWeekAfter: pathWithArgsFilter("date.day-of-week-after"),
187
- /**
188
- * The date.day-of-week-before filter checks that the value in the path is
189
- * before the day of the week passed into the filter.
190
- *
191
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
192
- */
193
- dateDayOfWeekBefore: pathWithArgsFilter("date.day-of-week-before"),
194
- /**
195
- * The `date.month` filter checks that the value in the path occurs in the
196
- * month value passed into the filter.
197
- *
198
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
199
- */
200
- dateMonth: pathWithArgsFilter("date.month"),
201
- /**
202
- * The `date.month-after` filter checks that the value in the path occurs in
203
- * any month after the value passed into the filter.
204
- *
205
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
206
- */
207
- dateMonthAfter: pathWithArgsFilter("date.month-after"),
208
- /**
209
- * The `date.month-before` filter checks that the value in the path occurs in
210
- * any month before the value passed into the filter.
211
- *
212
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
213
- */
214
- dateMonthBefore: pathWithArgsFilter("date.month-before"),
215
- /**
216
- * The `date.year` filter checks that the value in the path occurs in the year
217
- * value passed into the filter.
218
- *
219
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
220
- */
221
- dateYear: pathWithArgsFilter("date.year"),
222
- /**
223
- * The `date.hour` filter checks that the value in the path occurs within the
224
- * hour value passed into the filter.
225
- *
226
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
227
- */
228
- dateHour: pathWithArgsFilter("date.hour"),
229
- /**
230
- * The `date.hour-after` filter checks that the value in the path occurs after
231
- * the hour value passed into the filter.
232
- *
233
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
234
- */
235
- dateHourAfter: pathWithArgsFilter("date.hour-after"),
236
- /**
237
- * The `date.hour-before` filter checks that the value in the path occurs
238
- * before the hour value passed into the filter.
239
- *
240
- * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
241
- */
242
- dateHourBefore: pathWithArgsFilter("date.hour-before")
243
- };
244
- export {
245
- filter
246
- };
247
- //# sourceMappingURL=filter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filter.js","sources":["../../../../../node_modules/@prismicio/client/dist/filter.js"],"sourcesContent":["const formatValue = (value) => {\n if (Array.isArray(value)) {\n return `[${value.map(formatValue).join(\", \")}]`;\n }\n if (typeof value === \"string\") {\n return `\"${value}\"`;\n }\n if (value instanceof Date) {\n return `${value.getTime()}`;\n }\n return `${value}`;\n};\nconst pathWithArgsFilter = (name) => {\n const fn = (path, ...args) => {\n const formattedArgs = args.map(formatValue).join(\", \");\n const joiner = path && args.length ? \", \" : \"\";\n return `[${name}(${path}${joiner}${formattedArgs})]`;\n };\n return fn;\n};\nconst pathFilter = (name) => {\n const filterFn = pathWithArgsFilter(name);\n const fn = (path) => {\n return filterFn(path);\n };\n return fn;\n};\nconst argsFilter = (name) => {\n const filterFn = pathWithArgsFilter(name);\n const fn = (...args) => {\n return filterFn(\"\", ...args);\n };\n return fn;\n};\nconst filter = {\n /**\n * The `at` filter checks that the path matches the described value exactly.\n * It takes a single value for a field or an array (only for tags).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#at}\n */\n at: pathWithArgsFilter(\"at\"),\n /**\n * The `not` filter checks that the path doesn't match the provided value\n * exactly. It takes a single value for a field or an array (only for tags).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#not}\n */\n not: pathWithArgsFilter(\"not\"),\n /**\n * The `any` filter takes an array of values. It works exactly the same way as\n * the `at` operator, but checks whether the fragment matches any of the\n * values in the array.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#any}\n */\n any: pathWithArgsFilter(\"any\"),\n /**\n * The `in` filter is used specifically to retrieve an array of documents by\n * their IDs or UIDs. This filter is much more efficient at this than the any\n * filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#in}\n */\n in: pathWithArgsFilter(\"in\"),\n /**\n * The `fulltext` filter provides two capabilities:\n *\n * 1. Checking if a certain string is anywhere inside a document (this is what\n * you should use to make your project's search engine feature)\n * 2. Checking if the string is contained inside a specific custom type’s Rich\n * Text or Key Text fragment.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}\n */\n fulltext: pathWithArgsFilter(\"fulltext\"),\n /**\n * The `has` filter checks whether a fragment has a value. It will return all\n * the documents of the specified type that contain a value for the specified\n * field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#has}\n */\n has: pathFilter(\"has\"),\n /**\n * The `missing` filter checks if a fragment doesn't have a value. It will\n * return all the documents of the specified type that do not contain a value\n * for the specified field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#missing}\n */\n missing: pathFilter(\"missing\"),\n /**\n * The `similar` filter takes the ID of a document, and returns a list of\n * documents with similar content. This allows you to build an automated\n * content discovery feature (for example, a \"Related posts\" section).\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#similar}\n */\n similar: argsFilter(\"similar\"),\n /**\n * The `geopoint.near` filter checks that the value in the path is within the\n * radius of the given coordinates.\n *\n * This filter will only work for a geopoint field.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}\n */\n geopointNear: pathWithArgsFilter(\"geopoint.near\"),\n /**\n * The `number.lt` filter checks that the value in the number field is less\n * than the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}\n */\n numberLessThan: pathWithArgsFilter(\"number.lt\"),\n /**\n * The `number.gt` filter checks that the value in the number field is greater\n * than the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}\n */\n numberGreaterThan: pathWithArgsFilter(\"number.gt\"),\n /**\n * The `number.inRange` filter checks that the value in the path is within the\n * two values passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}\n */\n numberInRange: pathWithArgsFilter(\"number.inRange\"),\n /**\n * The `date.after` filter checks that the value in the path is after the date\n * value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateAfter: pathWithArgsFilter(\"date.after\"),\n /**\n * The `date.before` filter checks that the value in the path is before the\n * date value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateBefore: pathWithArgsFilter(\"date.before\"),\n /**\n * The `date.between` filter checks that the value in the path is within the\n * date values passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateBetween: pathWithArgsFilter(\"date.between\"),\n /**\n * The `date.day-of-month` filter checks that the value in the path is equal\n * to the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonth: pathWithArgsFilter(\"date.day-of-month\"),\n /**\n * The `date.day-of-month-after` filter checks that the value in the path is\n * after the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonthAfter: pathWithArgsFilter(\"date.day-of-month-after\"),\n /**\n * The `date.day-of-month-before` filter checks that the value in the path is\n * before the day of the month passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfMonthBefore: pathWithArgsFilter(\"date.day-of-month-before\"),\n /**\n * The `date.day-of-week` filter checks that the value in the path is equal to\n * the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeek: pathWithArgsFilter(\"date.day-of-week\"),\n /**\n * The `date.day-of-week-after` filter checks that the value in the path is\n * after the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeekAfter: pathWithArgsFilter(\"date.day-of-week-after\"),\n /**\n * The date.day-of-week-before filter checks that the value in the path is\n * before the day of the week passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateDayOfWeekBefore: pathWithArgsFilter(\"date.day-of-week-before\"),\n /**\n * The `date.month` filter checks that the value in the path occurs in the\n * month value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonth: pathWithArgsFilter(\"date.month\"),\n /**\n * The `date.month-after` filter checks that the value in the path occurs in\n * any month after the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonthAfter: pathWithArgsFilter(\"date.month-after\"),\n /**\n * The `date.month-before` filter checks that the value in the path occurs in\n * any month before the value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateMonthBefore: pathWithArgsFilter(\"date.month-before\"),\n /**\n * The `date.year` filter checks that the value in the path occurs in the year\n * value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateYear: pathWithArgsFilter(\"date.year\"),\n /**\n * The `date.hour` filter checks that the value in the path occurs within the\n * hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHour: pathWithArgsFilter(\"date.hour\"),\n /**\n * The `date.hour-after` filter checks that the value in the path occurs after\n * the hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHourAfter: pathWithArgsFilter(\"date.hour-after\"),\n /**\n * The `date.hour-before` filter checks that the value in the path occurs\n * before the hour value passed into the filter.\n *\n * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n */\n dateHourBefore: pathWithArgsFilter(\"date.hour-before\")\n};\nexport {\n filter\n};\n//# sourceMappingURL=filter.js.map\n"],"names":[],"mappings":"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","x_google_ignoreList":[0]}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const PrismicError = require("./errors/PrismicError.cjs");
4
- const isRepositoryName = require("./isRepositoryName.cjs");
5
- const getRepositoryEndpoint = (repositoryName) => {
6
- if (isRepositoryName.isRepositoryName(repositoryName)) {
7
- return `https://${repositoryName}.cdn.prismic.io/api/v2`;
8
- } else {
9
- throw new PrismicError.PrismicError(`An invalid Prismic repository name was given: ${repositoryName}`, void 0, void 0);
10
- }
11
- };
12
- exports.getRepositoryEndpoint = getRepositoryEndpoint;
13
- //# sourceMappingURL=getRepositoryEndpoint.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepositoryEndpoint.cjs","sources":["../../../../../node_modules/@prismicio/client/dist/getRepositoryEndpoint.js"],"sourcesContent":["import { PrismicError } from \"./errors/PrismicError.js\";\nimport { isRepositoryName } from \"./isRepositoryName.js\";\nconst getRepositoryEndpoint = (repositoryName) => {\n if (isRepositoryName(repositoryName)) {\n return `https://${repositoryName}.cdn.prismic.io/api/v2`;\n } else {\n throw new PrismicError(`An invalid Prismic repository name was given: ${repositoryName}`, void 0, void 0);\n }\n};\nexport {\n getRepositoryEndpoint\n};\n//# sourceMappingURL=getRepositoryEndpoint.js.map\n"],"names":["isRepositoryName","PrismicError"],"mappings":";;;;AAEK,MAAC,wBAAwB,CAAC,mBAAmB;AAChD,MAAIA,iBAAAA,iBAAiB,cAAc,GAAG;AACpC,WAAO,WAAW,cAAc;AAAA,EACpC,OAAS;AACL,UAAM,IAAIC,aAAAA,aAAa,iDAAiD,cAAc,IAAI,QAAQ,MAAM;AAAA,EACzG;AACH;;","x_google_ignoreList":[0]}
@@ -1,13 +0,0 @@
1
- import { PrismicError } from "./errors/PrismicError.js";
2
- import { isRepositoryName } from "./isRepositoryName.js";
3
- const getRepositoryEndpoint = (repositoryName) => {
4
- if (isRepositoryName(repositoryName)) {
5
- return `https://${repositoryName}.cdn.prismic.io/api/v2`;
6
- } else {
7
- throw new PrismicError(`An invalid Prismic repository name was given: ${repositoryName}`, void 0, void 0);
8
- }
9
- };
10
- export {
11
- getRepositoryEndpoint
12
- };
13
- //# sourceMappingURL=getRepositoryEndpoint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepositoryEndpoint.js","sources":["../../../../../node_modules/@prismicio/client/dist/getRepositoryEndpoint.js"],"sourcesContent":["import { PrismicError } from \"./errors/PrismicError.js\";\nimport { isRepositoryName } from \"./isRepositoryName.js\";\nconst getRepositoryEndpoint = (repositoryName) => {\n if (isRepositoryName(repositoryName)) {\n return `https://${repositoryName}.cdn.prismic.io/api/v2`;\n } else {\n throw new PrismicError(`An invalid Prismic repository name was given: ${repositoryName}`, void 0, void 0);\n }\n};\nexport {\n getRepositoryEndpoint\n};\n//# sourceMappingURL=getRepositoryEndpoint.js.map\n"],"names":[],"mappings":";;AAEK,MAAC,wBAAwB,CAAC,mBAAmB;AAChD,MAAI,iBAAiB,cAAc,GAAG;AACpC,WAAO,WAAW,cAAc;AAAA,EACpC,OAAS;AACL,UAAM,IAAI,aAAa,iDAAiD,cAAc,IAAI,QAAQ,MAAM;AAAA,EACzG;AACH;","x_google_ignoreList":[0]}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const PrismicError = require("./errors/PrismicError.cjs");
4
- const getRepositoryName = (repositoryEndpoint) => {
5
- try {
6
- const hostname = new URL(repositoryEndpoint).hostname;
7
- if (hostname.endsWith("prismic.io") || // Production
8
- hostname.endsWith("wroom.io") || // Staging
9
- hostname.endsWith("wroom.test")) {
10
- return hostname.split(".")[0];
11
- }
12
- } catch {
13
- }
14
- throw new PrismicError.PrismicError(`An invalid Prismic Document API endpoint was provided: ${repositoryEndpoint}`, void 0, void 0);
15
- };
16
- exports.getRepositoryName = getRepositoryName;
17
- //# sourceMappingURL=getRepositoryName.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepositoryName.cjs","sources":["../../../../../node_modules/@prismicio/client/dist/getRepositoryName.js"],"sourcesContent":["import { PrismicError } from \"./errors/PrismicError.js\";\nconst getRepositoryName = (repositoryEndpoint) => {\n try {\n const hostname = new URL(repositoryEndpoint).hostname;\n if (hostname.endsWith(\"prismic.io\") || // Production\n hostname.endsWith(\"wroom.io\") || // Staging\n hostname.endsWith(\"wroom.test\")) {\n return hostname.split(\".\")[0];\n }\n } catch {\n }\n throw new PrismicError(`An invalid Prismic Document API endpoint was provided: ${repositoryEndpoint}`, void 0, void 0);\n};\nexport {\n getRepositoryName\n};\n//# sourceMappingURL=getRepositoryName.js.map\n"],"names":["PrismicError"],"mappings":";;;AACK,MAAC,oBAAoB,CAAC,uBAAuB;AAChD,MAAI;AACF,UAAM,WAAW,IAAI,IAAI,kBAAkB,EAAE;AAC7C,QAAI,SAAS,SAAS,YAAY;AAAA,IAClC,SAAS,SAAS,UAAU;AAAA,IAC5B,SAAS,SAAS,YAAY,GAAG;AAC/B,aAAO,SAAS,MAAM,GAAG,EAAE,CAAC;AAAA,IAC7B;AAAA,EACL,QAAI;AAAA,EACD;AACD,QAAM,IAAIA,aAAAA,aAAa,0DAA0D,kBAAkB,IAAI,QAAQ,MAAM;AACvH;;","x_google_ignoreList":[0]}
@@ -1,17 +0,0 @@
1
- import { PrismicError } from "./errors/PrismicError.js";
2
- const getRepositoryName = (repositoryEndpoint) => {
3
- try {
4
- const hostname = new URL(repositoryEndpoint).hostname;
5
- if (hostname.endsWith("prismic.io") || // Production
6
- hostname.endsWith("wroom.io") || // Staging
7
- hostname.endsWith("wroom.test")) {
8
- return hostname.split(".")[0];
9
- }
10
- } catch {
11
- }
12
- throw new PrismicError(`An invalid Prismic Document API endpoint was provided: ${repositoryEndpoint}`, void 0, void 0);
13
- };
14
- export {
15
- getRepositoryName
16
- };
17
- //# sourceMappingURL=getRepositoryName.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepositoryName.js","sources":["../../../../../node_modules/@prismicio/client/dist/getRepositoryName.js"],"sourcesContent":["import { PrismicError } from \"./errors/PrismicError.js\";\nconst getRepositoryName = (repositoryEndpoint) => {\n try {\n const hostname = new URL(repositoryEndpoint).hostname;\n if (hostname.endsWith(\"prismic.io\") || // Production\n hostname.endsWith(\"wroom.io\") || // Staging\n hostname.endsWith(\"wroom.test\")) {\n return hostname.split(\".\")[0];\n }\n } catch {\n }\n throw new PrismicError(`An invalid Prismic Document API endpoint was provided: ${repositoryEndpoint}`, void 0, void 0);\n};\nexport {\n getRepositoryName\n};\n//# sourceMappingURL=getRepositoryName.js.map\n"],"names":[],"mappings":";AACK,MAAC,oBAAoB,CAAC,uBAAuB;AAChD,MAAI;AACF,UAAM,WAAW,IAAI,IAAI,kBAAkB,EAAE;AAC7C,QAAI,SAAS,SAAS,YAAY;AAAA,IAClC,SAAS,SAAS,UAAU;AAAA,IAC5B,SAAS,SAAS,YAAY,GAAG;AAC/B,aAAO,SAAS,MAAM,GAAG,EAAE,CAAC;AAAA,IAC7B;AAAA,EACL,QAAI;AAAA,EACD;AACD,QAAM,IAAI,aAAa,0DAA0D,kBAAkB,IAAI,QAAQ,MAAM;AACvH;","x_google_ignoreList":[0]}