@datocms/cma-client 5.1.1 → 5.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/dist/cjs/fieldTypes/rich_text.js +4 -4
  2. package/dist/cjs/fieldTypes/rich_text.js.map +1 -1
  3. package/dist/cjs/fieldTypes/single_block.js +19 -17
  4. package/dist/cjs/fieldTypes/single_block.js.map +1 -1
  5. package/dist/cjs/fieldTypes/structured_text.js +9 -21
  6. package/dist/cjs/fieldTypes/structured_text.js.map +1 -1
  7. package/dist/cjs/generated/{SchemaTypes.js → ApiTypes.js} +1 -1
  8. package/dist/cjs/generated/ApiTypes.js.map +1 -0
  9. package/dist/cjs/generated/Client.js +1 -1
  10. package/dist/cjs/generated/{SimpleSchemaTypes.js → RawApiTypes.js} +1 -1
  11. package/dist/cjs/generated/RawApiTypes.js.map +1 -0
  12. package/dist/cjs/generated/resources/AccessToken.js.map +1 -1
  13. package/dist/cjs/generated/resources/AuditLogEvent.js.map +1 -1
  14. package/dist/cjs/generated/resources/BuildEvent.js.map +1 -1
  15. package/dist/cjs/generated/resources/BuildTrigger.js.map +1 -1
  16. package/dist/cjs/generated/resources/EditingSession.js.map +1 -1
  17. package/dist/cjs/generated/resources/EmojiSuggestions.js.map +1 -1
  18. package/dist/cjs/generated/resources/Environment.js.map +1 -1
  19. package/dist/cjs/generated/resources/Field.js.map +1 -1
  20. package/dist/cjs/generated/resources/Fieldset.js.map +1 -1
  21. package/dist/cjs/generated/resources/Item.js.map +1 -1
  22. package/dist/cjs/generated/resources/ItemType.js.map +1 -1
  23. package/dist/cjs/generated/resources/ItemTypeFilter.js.map +1 -1
  24. package/dist/cjs/generated/resources/ItemVersion.js.map +1 -1
  25. package/dist/cjs/generated/resources/JobResult.js.map +1 -1
  26. package/dist/cjs/generated/resources/MaintenanceMode.js.map +1 -1
  27. package/dist/cjs/generated/resources/MenuItem.js.map +1 -1
  28. package/dist/cjs/generated/resources/Plugin.js.map +1 -1
  29. package/dist/cjs/generated/resources/PublicInfo.js.map +1 -1
  30. package/dist/cjs/generated/resources/Role.js.map +1 -1
  31. package/dist/cjs/generated/resources/ScheduledPublication.js.map +1 -1
  32. package/dist/cjs/generated/resources/ScheduledUnpublishing.js.map +1 -1
  33. package/dist/cjs/generated/resources/SchemaMenuItem.js.map +1 -1
  34. package/dist/cjs/generated/resources/SearchResult.js.map +1 -1
  35. package/dist/cjs/generated/resources/Session.js.map +1 -1
  36. package/dist/cjs/generated/resources/Site.js.map +1 -1
  37. package/dist/cjs/generated/resources/SiteInvitation.js.map +1 -1
  38. package/dist/cjs/generated/resources/SsoGroup.js.map +1 -1
  39. package/dist/cjs/generated/resources/SsoSettings.js.map +1 -1
  40. package/dist/cjs/generated/resources/SsoUser.js.map +1 -1
  41. package/dist/cjs/generated/resources/SubscriptionLimit.js.map +1 -1
  42. package/dist/cjs/generated/resources/Upload.js.map +1 -1
  43. package/dist/cjs/generated/resources/UploadCollection.js.map +1 -1
  44. package/dist/cjs/generated/resources/UploadFilter.js.map +1 -1
  45. package/dist/cjs/generated/resources/UploadRequest.js.map +1 -1
  46. package/dist/cjs/generated/resources/UploadSmartTag.js.map +1 -1
  47. package/dist/cjs/generated/resources/UploadTag.js.map +1 -1
  48. package/dist/cjs/generated/resources/UploadTrack.js.map +1 -1
  49. package/dist/cjs/generated/resources/UsageCounter.js.map +1 -1
  50. package/dist/cjs/generated/resources/User.js.map +1 -1
  51. package/dist/cjs/generated/resources/Webhook.js.map +1 -1
  52. package/dist/cjs/generated/resources/WebhookCall.js.map +1 -1
  53. package/dist/cjs/generated/resources/WhiteLabelSettings.js.map +1 -1
  54. package/dist/cjs/generated/resources/Workflow.js.map +1 -1
  55. package/dist/cjs/index.js +2 -5
  56. package/dist/cjs/index.js.map +1 -1
  57. package/dist/cjs/resources/Role.js.map +1 -1
  58. package/dist/cjs/utilities/blocks.js +7 -7
  59. package/dist/cjs/utilities/blocks.js.map +1 -1
  60. package/dist/cjs/utilities/buildBlockRecord.js.map +1 -1
  61. package/dist/cjs/utilities/{fieldValueLocalization.js → fieldValue.js} +52 -52
  62. package/dist/cjs/utilities/fieldValue.js.map +1 -0
  63. package/dist/cjs/utilities/fieldsContainingReferences.js.map +1 -1
  64. package/dist/cjs/utilities/recursiveBlocks.js +18 -19
  65. package/dist/cjs/utilities/recursiveBlocks.js.map +1 -1
  66. package/dist/cjs/utilities/schemaRepository.js.map +1 -1
  67. package/dist/esm/fieldTypes/rich_text.d.ts +6 -6
  68. package/dist/esm/fieldTypes/rich_text.js +5 -5
  69. package/dist/esm/fieldTypes/rich_text.js.map +1 -1
  70. package/dist/esm/fieldTypes/single_block.d.ts +29 -23
  71. package/dist/esm/fieldTypes/single_block.js +15 -13
  72. package/dist/esm/fieldTypes/single_block.js.map +1 -1
  73. package/dist/esm/fieldTypes/structured_text.d.ts +18 -83
  74. package/dist/esm/fieldTypes/structured_text.js +10 -22
  75. package/dist/esm/fieldTypes/structured_text.js.map +1 -1
  76. package/dist/esm/generated/{SimpleSchemaTypes.d.ts → ApiTypes.d.ts} +2 -2
  77. package/dist/esm/generated/ApiTypes.js +2 -0
  78. package/dist/esm/generated/ApiTypes.js.map +1 -0
  79. package/dist/esm/generated/Client.d.ts +1 -1
  80. package/dist/esm/generated/Client.js +1 -1
  81. package/dist/esm/generated/{SchemaTypes.d.ts → RawApiTypes.d.ts} +2 -2
  82. package/dist/esm/generated/RawApiTypes.js +2 -0
  83. package/dist/esm/generated/RawApiTypes.js.map +1 -0
  84. package/dist/esm/generated/resources/AccessToken.d.ts +14 -14
  85. package/dist/esm/generated/resources/AccessToken.js.map +1 -1
  86. package/dist/esm/generated/resources/AuditLogEvent.d.ts +4 -4
  87. package/dist/esm/generated/resources/AuditLogEvent.js.map +1 -1
  88. package/dist/esm/generated/resources/BuildEvent.d.ts +8 -8
  89. package/dist/esm/generated/resources/BuildEvent.js.map +1 -1
  90. package/dist/esm/generated/resources/BuildTrigger.d.ts +16 -16
  91. package/dist/esm/generated/resources/BuildTrigger.js.map +1 -1
  92. package/dist/esm/generated/resources/DailyUsage.d.ts +4 -4
  93. package/dist/esm/generated/resources/EditingSession.d.ts +7 -7
  94. package/dist/esm/generated/resources/EditingSession.js.map +1 -1
  95. package/dist/esm/generated/resources/EmojiSuggestions.d.ts +4 -4
  96. package/dist/esm/generated/resources/EmojiSuggestions.js.map +1 -1
  97. package/dist/esm/generated/resources/Environment.d.ts +14 -14
  98. package/dist/esm/generated/resources/Environment.js.map +1 -1
  99. package/dist/esm/generated/resources/Field.d.ts +213 -213
  100. package/dist/esm/generated/resources/Field.js.map +1 -1
  101. package/dist/esm/generated/resources/Fieldset.d.ts +12 -12
  102. package/dist/esm/generated/resources/Fieldset.js.map +1 -1
  103. package/dist/esm/generated/resources/Item.d.ts +36 -36
  104. package/dist/esm/generated/resources/Item.js.map +1 -1
  105. package/dist/esm/generated/resources/ItemType.d.ts +15 -15
  106. package/dist/esm/generated/resources/ItemType.js.map +1 -1
  107. package/dist/esm/generated/resources/ItemTypeFilter.d.ts +12 -12
  108. package/dist/esm/generated/resources/ItemTypeFilter.js.map +1 -1
  109. package/dist/esm/generated/resources/ItemVersion.d.ts +10 -10
  110. package/dist/esm/generated/resources/ItemVersion.js.map +1 -1
  111. package/dist/esm/generated/resources/JobResult.d.ts +4 -4
  112. package/dist/esm/generated/resources/JobResult.js.map +1 -1
  113. package/dist/esm/generated/resources/MaintenanceMode.d.ts +8 -8
  114. package/dist/esm/generated/resources/MaintenanceMode.js.map +1 -1
  115. package/dist/esm/generated/resources/MenuItem.d.ts +14 -14
  116. package/dist/esm/generated/resources/MenuItem.js.map +1 -1
  117. package/dist/esm/generated/resources/Plugin.d.ts +14 -14
  118. package/dist/esm/generated/resources/Plugin.js.map +1 -1
  119. package/dist/esm/generated/resources/PublicInfo.d.ts +4 -4
  120. package/dist/esm/generated/resources/PublicInfo.js.map +1 -1
  121. package/dist/esm/generated/resources/Role.d.ts +14 -14
  122. package/dist/esm/generated/resources/Role.js.map +1 -1
  123. package/dist/esm/generated/resources/ScheduledPublication.d.ts +6 -6
  124. package/dist/esm/generated/resources/ScheduledPublication.js.map +1 -1
  125. package/dist/esm/generated/resources/ScheduledUnpublishing.d.ts +6 -6
  126. package/dist/esm/generated/resources/ScheduledUnpublishing.js.map +1 -1
  127. package/dist/esm/generated/resources/SchemaMenuItem.d.ts +14 -14
  128. package/dist/esm/generated/resources/SchemaMenuItem.js.map +1 -1
  129. package/dist/esm/generated/resources/SearchResult.d.ts +6 -6
  130. package/dist/esm/generated/resources/SearchResult.js.map +1 -1
  131. package/dist/esm/generated/resources/Session.d.ts +4 -4
  132. package/dist/esm/generated/resources/Session.js.map +1 -1
  133. package/dist/esm/generated/resources/Site.d.ts +24 -24
  134. package/dist/esm/generated/resources/Site.js.map +1 -1
  135. package/dist/esm/generated/resources/SiteInvitation.d.ts +14 -14
  136. package/dist/esm/generated/resources/SiteInvitation.js.map +1 -1
  137. package/dist/esm/generated/resources/SsoGroup.d.ts +10 -10
  138. package/dist/esm/generated/resources/SsoGroup.js.map +1 -1
  139. package/dist/esm/generated/resources/SsoSettings.d.ts +8 -8
  140. package/dist/esm/generated/resources/SsoSettings.js.map +1 -1
  141. package/dist/esm/generated/resources/SsoUser.d.ts +10 -10
  142. package/dist/esm/generated/resources/SsoUser.js.map +1 -1
  143. package/dist/esm/generated/resources/SubscriptionFeature.d.ts +4 -4
  144. package/dist/esm/generated/resources/SubscriptionLimit.d.ts +6 -6
  145. package/dist/esm/generated/resources/SubscriptionLimit.js.map +1 -1
  146. package/dist/esm/generated/resources/Upload.d.ts +22 -22
  147. package/dist/esm/generated/resources/Upload.js.map +1 -1
  148. package/dist/esm/generated/resources/UploadCollection.d.ts +14 -14
  149. package/dist/esm/generated/resources/UploadCollection.js.map +1 -1
  150. package/dist/esm/generated/resources/UploadFilter.d.ts +12 -12
  151. package/dist/esm/generated/resources/UploadFilter.js.map +1 -1
  152. package/dist/esm/generated/resources/UploadRequest.d.ts +4 -4
  153. package/dist/esm/generated/resources/UploadRequest.js.map +1 -1
  154. package/dist/esm/generated/resources/UploadSmartTag.d.ts +6 -6
  155. package/dist/esm/generated/resources/UploadSmartTag.js.map +1 -1
  156. package/dist/esm/generated/resources/UploadTag.d.ts +8 -8
  157. package/dist/esm/generated/resources/UploadTag.js.map +1 -1
  158. package/dist/esm/generated/resources/UploadTrack.d.ts +10 -10
  159. package/dist/esm/generated/resources/UploadTrack.js.map +1 -1
  160. package/dist/esm/generated/resources/UsageCounter.d.ts +4 -4
  161. package/dist/esm/generated/resources/UsageCounter.js.map +1 -1
  162. package/dist/esm/generated/resources/User.d.ts +12 -12
  163. package/dist/esm/generated/resources/User.js.map +1 -1
  164. package/dist/esm/generated/resources/Webhook.d.ts +12 -12
  165. package/dist/esm/generated/resources/Webhook.js.map +1 -1
  166. package/dist/esm/generated/resources/WebhookCall.d.ts +9 -9
  167. package/dist/esm/generated/resources/WebhookCall.js.map +1 -1
  168. package/dist/esm/generated/resources/WhiteLabelSettings.d.ts +6 -6
  169. package/dist/esm/generated/resources/WhiteLabelSettings.js.map +1 -1
  170. package/dist/esm/generated/resources/Workflow.d.ts +11 -11
  171. package/dist/esm/generated/resources/Workflow.js.map +1 -1
  172. package/dist/esm/index.d.ts +5 -4
  173. package/dist/esm/index.js +1 -4
  174. package/dist/esm/index.js.map +1 -1
  175. package/dist/esm/resources/Role.d.ts +4 -4
  176. package/dist/esm/resources/Role.js.map +1 -1
  177. package/dist/esm/utilities/blocks.d.ts +17 -17
  178. package/dist/esm/utilities/blocks.js +3 -3
  179. package/dist/esm/utilities/blocks.js.map +1 -1
  180. package/dist/esm/utilities/buildBlockRecord.d.ts +5 -5
  181. package/dist/esm/utilities/buildBlockRecord.js.map +1 -1
  182. package/dist/{types/utilities/fieldValueLocalization.d.ts → esm/utilities/fieldValue.d.ts} +29 -28
  183. package/dist/esm/utilities/{fieldValueLocalization.js → fieldValue.js} +39 -39
  184. package/dist/esm/utilities/fieldValue.js.map +1 -0
  185. package/dist/esm/utilities/fieldsContainingReferences.d.ts +4 -4
  186. package/dist/esm/utilities/fieldsContainingReferences.js.map +1 -1
  187. package/dist/esm/utilities/recursiveBlocks.d.ts +13 -10
  188. package/dist/esm/utilities/recursiveBlocks.js +19 -20
  189. package/dist/esm/utilities/recursiveBlocks.js.map +1 -1
  190. package/dist/esm/utilities/schemaRepository.d.ts +29 -26
  191. package/dist/esm/utilities/schemaRepository.js.map +1 -1
  192. package/dist/types/fieldTypes/rich_text.d.ts +6 -6
  193. package/dist/types/fieldTypes/single_block.d.ts +29 -23
  194. package/dist/types/fieldTypes/structured_text.d.ts +18 -83
  195. package/dist/types/generated/{SimpleSchemaTypes.d.ts → ApiTypes.d.ts} +2 -2
  196. package/dist/types/generated/Client.d.ts +1 -1
  197. package/dist/types/generated/{SchemaTypes.d.ts → RawApiTypes.d.ts} +2 -2
  198. package/dist/types/generated/resources/AccessToken.d.ts +14 -14
  199. package/dist/types/generated/resources/AuditLogEvent.d.ts +4 -4
  200. package/dist/types/generated/resources/BuildEvent.d.ts +8 -8
  201. package/dist/types/generated/resources/BuildTrigger.d.ts +16 -16
  202. package/dist/types/generated/resources/DailyUsage.d.ts +4 -4
  203. package/dist/types/generated/resources/EditingSession.d.ts +7 -7
  204. package/dist/types/generated/resources/EmojiSuggestions.d.ts +4 -4
  205. package/dist/types/generated/resources/Environment.d.ts +14 -14
  206. package/dist/types/generated/resources/Field.d.ts +213 -213
  207. package/dist/types/generated/resources/Fieldset.d.ts +12 -12
  208. package/dist/types/generated/resources/Item.d.ts +36 -36
  209. package/dist/types/generated/resources/ItemType.d.ts +15 -15
  210. package/dist/types/generated/resources/ItemTypeFilter.d.ts +12 -12
  211. package/dist/types/generated/resources/ItemVersion.d.ts +10 -10
  212. package/dist/types/generated/resources/JobResult.d.ts +4 -4
  213. package/dist/types/generated/resources/MaintenanceMode.d.ts +8 -8
  214. package/dist/types/generated/resources/MenuItem.d.ts +14 -14
  215. package/dist/types/generated/resources/Plugin.d.ts +14 -14
  216. package/dist/types/generated/resources/PublicInfo.d.ts +4 -4
  217. package/dist/types/generated/resources/Role.d.ts +14 -14
  218. package/dist/types/generated/resources/ScheduledPublication.d.ts +6 -6
  219. package/dist/types/generated/resources/ScheduledUnpublishing.d.ts +6 -6
  220. package/dist/types/generated/resources/SchemaMenuItem.d.ts +14 -14
  221. package/dist/types/generated/resources/SearchResult.d.ts +6 -6
  222. package/dist/types/generated/resources/Session.d.ts +4 -4
  223. package/dist/types/generated/resources/Site.d.ts +24 -24
  224. package/dist/types/generated/resources/SiteInvitation.d.ts +14 -14
  225. package/dist/types/generated/resources/SsoGroup.d.ts +10 -10
  226. package/dist/types/generated/resources/SsoSettings.d.ts +8 -8
  227. package/dist/types/generated/resources/SsoUser.d.ts +10 -10
  228. package/dist/types/generated/resources/SubscriptionFeature.d.ts +4 -4
  229. package/dist/types/generated/resources/SubscriptionLimit.d.ts +6 -6
  230. package/dist/types/generated/resources/Upload.d.ts +22 -22
  231. package/dist/types/generated/resources/UploadCollection.d.ts +14 -14
  232. package/dist/types/generated/resources/UploadFilter.d.ts +12 -12
  233. package/dist/types/generated/resources/UploadRequest.d.ts +4 -4
  234. package/dist/types/generated/resources/UploadSmartTag.d.ts +6 -6
  235. package/dist/types/generated/resources/UploadTag.d.ts +8 -8
  236. package/dist/types/generated/resources/UploadTrack.d.ts +10 -10
  237. package/dist/types/generated/resources/UsageCounter.d.ts +4 -4
  238. package/dist/types/generated/resources/User.d.ts +12 -12
  239. package/dist/types/generated/resources/Webhook.d.ts +12 -12
  240. package/dist/types/generated/resources/WebhookCall.d.ts +9 -9
  241. package/dist/types/generated/resources/WhiteLabelSettings.d.ts +6 -6
  242. package/dist/types/generated/resources/Workflow.d.ts +11 -11
  243. package/dist/types/index.d.ts +5 -4
  244. package/dist/types/resources/Role.d.ts +4 -4
  245. package/dist/types/utilities/blocks.d.ts +17 -17
  246. package/dist/types/utilities/buildBlockRecord.d.ts +5 -5
  247. package/dist/{esm/utilities/fieldValueLocalization.d.ts → types/utilities/fieldValue.d.ts} +29 -28
  248. package/dist/types/utilities/fieldsContainingReferences.d.ts +4 -4
  249. package/dist/types/utilities/recursiveBlocks.d.ts +13 -10
  250. package/dist/types/utilities/schemaRepository.d.ts +29 -26
  251. package/package.json +5 -5
  252. package/src/fieldTypes/rich_text.ts +12 -12
  253. package/src/fieldTypes/single_block.ts +46 -31
  254. package/src/fieldTypes/structured_text.ts +33 -149
  255. package/src/generated/{SimpleSchemaTypes.ts → ApiTypes.ts} +2 -2
  256. package/src/generated/Client.ts +2 -2
  257. package/src/generated/{SchemaTypes.ts → RawApiTypes.ts} +2 -2
  258. package/src/generated/resources/AccessToken.ts +32 -34
  259. package/src/generated/resources/AuditLogEvent.ts +8 -8
  260. package/src/generated/resources/BuildEvent.ts +16 -18
  261. package/src/generated/resources/BuildTrigger.ts +30 -30
  262. package/src/generated/resources/DailyUsage.ts +5 -5
  263. package/src/generated/resources/EditingSession.ts +12 -12
  264. package/src/generated/resources/EmojiSuggestions.ts +7 -7
  265. package/src/generated/resources/Environment.ts +33 -39
  266. package/src/generated/resources/Field.ts +40 -54
  267. package/src/generated/resources/Fieldset.ts +28 -36
  268. package/src/generated/resources/Item.ts +99 -126
  269. package/src/generated/resources/ItemType.ts +37 -45
  270. package/src/generated/resources/ItemTypeFilter.ts +26 -26
  271. package/src/generated/resources/ItemVersion.ts +22 -26
  272. package/src/generated/resources/JobResult.ts +6 -8
  273. package/src/generated/resources/MaintenanceMode.ts +13 -13
  274. package/src/generated/resources/MenuItem.ts +34 -44
  275. package/src/generated/resources/Plugin.ts +30 -42
  276. package/src/generated/resources/PublicInfo.ts +5 -7
  277. package/src/generated/resources/Role.ts +29 -44
  278. package/src/generated/resources/ScheduledPublication.ts +13 -13
  279. package/src/generated/resources/ScheduledUnpublishing.ts +13 -13
  280. package/src/generated/resources/SchemaMenuItem.ts +34 -34
  281. package/src/generated/resources/SearchResult.ts +12 -12
  282. package/src/generated/resources/Session.ts +8 -10
  283. package/src/generated/resources/Site.ts +43 -47
  284. package/src/generated/resources/SiteInvitation.ts +30 -30
  285. package/src/generated/resources/SsoGroup.ts +20 -24
  286. package/src/generated/resources/SsoSettings.ts +14 -16
  287. package/src/generated/resources/SsoUser.ts +18 -22
  288. package/src/generated/resources/SubscriptionFeature.ts +5 -5
  289. package/src/generated/resources/SubscriptionLimit.ts +9 -9
  290. package/src/generated/resources/Upload.ts +57 -73
  291. package/src/generated/resources/UploadCollection.ts +34 -34
  292. package/src/generated/resources/UploadFilter.ts +26 -26
  293. package/src/generated/resources/UploadRequest.ts +8 -8
  294. package/src/generated/resources/UploadSmartTag.ts +12 -12
  295. package/src/generated/resources/UploadTag.ts +18 -20
  296. package/src/generated/resources/UploadTrack.ts +25 -29
  297. package/src/generated/resources/UsageCounter.ts +8 -8
  298. package/src/generated/resources/User.ts +28 -39
  299. package/src/generated/resources/Webhook.ts +26 -34
  300. package/src/generated/resources/WebhookCall.ts +17 -19
  301. package/src/generated/resources/WhiteLabelSettings.ts +11 -11
  302. package/src/generated/resources/Workflow.ts +23 -29
  303. package/src/index.ts +7 -4
  304. package/src/resources/Role.ts +6 -6
  305. package/src/utilities/blocks.ts +30 -30
  306. package/src/utilities/buildBlockRecord.ts +4 -4
  307. package/src/utilities/{fieldValueLocalization.ts → fieldValue.ts} +58 -73
  308. package/src/utilities/fieldsContainingReferences.ts +4 -4
  309. package/src/utilities/recursiveBlocks.ts +47 -44
  310. package/src/utilities/schemaRepository.ts +53 -56
  311. package/dist/cjs/generated/SchemaTypes.js.map +0 -1
  312. package/dist/cjs/generated/SimpleSchemaTypes.js.map +0 -1
  313. package/dist/cjs/utilities/fieldValueLocalization.js.map +0 -1
  314. package/dist/cjs/utilities/structuredText.js +0 -371
  315. package/dist/cjs/utilities/structuredText.js.map +0 -1
  316. package/dist/esm/generated/SchemaTypes.js +0 -2
  317. package/dist/esm/generated/SchemaTypes.js.map +0 -1
  318. package/dist/esm/generated/SimpleSchemaTypes.js +0 -2
  319. package/dist/esm/generated/SimpleSchemaTypes.js.map +0 -1
  320. package/dist/esm/utilities/fieldValueLocalization.js.map +0 -1
  321. package/dist/esm/utilities/structuredText.d.ts +0 -177
  322. package/dist/esm/utilities/structuredText.js +0 -354
  323. package/dist/esm/utilities/structuredText.js.map +0 -1
  324. package/dist/types/utilities/structuredText.d.ts +0 -177
  325. package/src/utilities/structuredText.ts +0 -590
@@ -1 +1 @@
1
- {"version":3,"file":"schemaRepository.js","sourceRoot":"","sources":["../../../src/utilities/schemaRepository.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAmBrE;;;GAGG;AACH,MAAM,OAAO,gBAAgB;IAW3B;;;OAGG;IACH,YAAY,MAAqB;QAbzB,qBAAgB,GAA2C,IAAI,CAAC;QAChE,sBAAiB,GAAsC,IAAI,GAAG,EAAE,CAAC;QACjE,kBAAa,GAAsC,IAAI,GAAG,EAAE,CAAC;QAC7D,qBAAgB,GAAqC,IAAI,GAAG,EAAE,CAAC;QAC/D,wBAAmB,GAAwC,IAAI,GAAG,EAAE,CAAC;QACrE,mBAAc,GAAyC,IAAI,CAAC;QAC5D,gBAAW,GAAoC,IAAI,GAAG,EAAE,CAAC;QACzD,yBAAoB,GAAoC,IAAI,GAAG,EAAE,CAAC;QAOxE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACW,aAAa;;YACzB,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;gBAC1B,IAAI,CAAC,gBAAgB,GAAG,CAAC,GAAS,EAAE;oBAClC,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;oBAElE,2BAA2B;oBAC3B,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;wBAChC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,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oBAAoB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YAC1D,IAAI,CAAC,MAAM,EAAE;gBACX,MAAM,IAAI,KAAK,CAAC,6BAA6B,WAAW,aAAa,CAAC,CAAC;aACxE;YAED,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF"}
@@ -1,4 +1,4 @@
1
- import type * as SchemaTypes from '../generated/SchemaTypes';
1
+ import type * as RawApiTypes from '../generated/RawApiTypes';
2
2
  import { type BlockItemInARequest } from './single_block';
3
3
  /**
4
4
  * MODULAR CONTENT FIELD TYPE SYSTEM FOR DATOCMS
@@ -43,8 +43,8 @@ export type RichTextFieldValue = string[] | null;
43
43
  /**
44
44
  * Modular Content field value for API requests - allows flexible block representations:
45
45
  * - string: Just the block ID (most common case)
46
- * - SchemaTypes.Item: Full block object with ID (for updates)
47
- * - Omit<SchemaTypes.Item, 'id'>: Block object without ID (for creation)
46
+ * - RawApiTypes.Item: Full block object with ID (for updates)
47
+ * - Omit<RawApiTypes.Item, 'id'>: Block object without ID (for creation)
48
48
  */
49
49
  export type RichTextFieldValueAsRequest = BlockItemInARequest[] | null;
50
50
  /**
@@ -53,13 +53,13 @@ export type RichTextFieldValueAsRequest = BlockItemInARequest[] | null;
53
53
  * =============================================================================
54
54
  *
55
55
  * When using the ?nested=true query parameter, the API returns Modular Content data
56
- * with embedded blocks fully populated as complete SchemaTypes.Item objects instead
56
+ * with embedded blocks fully populated as complete RawApiTypes.Item objects instead
57
57
  * of just string IDs. This provides type safety for working with fully resolved data.
58
58
  */
59
59
  /**
60
60
  * Modular Content field value with nested blocks - array of fully populated block objects
61
61
  */
62
- export type RichTextFieldValueWithNestedBlocks = SchemaTypes.Item[] | null;
62
+ export type RichTextFieldValueWithNestedBlocks = RawApiTypes.Item[] | null;
63
63
  /**
64
64
  * =============================================================================
65
65
  * TYPE GUARDS - Runtime validation functions
@@ -77,7 +77,7 @@ export declare function isRichTextFieldValue(value: unknown): value is RichTextF
77
77
  export declare function isRichTextFieldValueAsRequest(value: unknown): value is RichTextFieldValueAsRequest;
78
78
  /**
79
79
  * Type guard for Modular Content field values with nested blocks (?nested=true format).
80
- * Ensures all blocks are full SchemaTypes.Item objects with complete data.
80
+ * Ensures all blocks are full RawApiTypes.Item objects with complete data.
81
81
  */
82
82
  export declare function isRichTextFieldValueWithNestedBlocks(value: unknown): value is RichTextFieldValueWithNestedBlocks;
83
83
  import type { RichTextEditorConfiguration } from './appearance/rich_text';
@@ -1,4 +1,8 @@
1
- import type * as SchemaTypes from '../generated/SchemaTypes';
1
+ import type * as RawApiTypes from '../generated/RawApiTypes';
2
+ import type { FramedSingleBlockEditorConfiguration } from './appearance/framed_single_block';
3
+ import type { FramelessSingleBlockEditorConfiguration } from './appearance/frameless_single_block';
4
+ import type { RequiredValidator } from './validators/required';
5
+ import type { SingleBlockBlocksValidator } from './validators/single_block_blocks';
2
6
  /**
3
7
  * SINGLE BLOCK FIELD TYPE SYSTEM FOR DATOCMS
4
8
  *
@@ -39,20 +43,26 @@ export type SingleBlockFieldValue = string | null;
39
43
  * - Include full block object for updates
40
44
  * - Omit ID for new blocks being created
41
45
  */
46
+ /** Represents an existing block in a CMA request */
47
+ export type UnchangedBlockInARequest = string;
48
+ /** Represents a block we want to update in a CMA request */
49
+ export type UpdatedBlockInARequest = OptionalFields<RawApiTypes.Item, 'meta'>;
50
+ /** Represents a new block to create in a CMA request */
51
+ export type NewBlockInARequest = OptionalFields<RawApiTypes.Item, 'id' | 'meta'>;
42
52
  /**
43
53
  * Union type representing the different ways a block can be specified in API requests:
44
- * - string: Just the block ID (most common case)
45
- * - Full block object with ID (for updates)
46
- * - Block object without ID (for creation)
54
+ * - string: Just the block ID (to keep existing blocks unchanged)
55
+ * - Full block object with ID (to update an existing block)
56
+ * - Block object without ID (to create a new block)
47
57
  *
48
58
  * Also, 'meta' can always be omitted
49
59
  */
50
- export type BlockItemInARequest = string | OptionalFields<SchemaTypes.Item, 'id' | 'meta'>;
60
+ export type BlockItemInARequest = UnchangedBlockInARequest | UpdatedBlockInARequest | NewBlockInARequest;
51
61
  /**
52
62
  * Single Block field value for API requests - allows flexible block representations:
53
- * - string: Just the block ID (most common case)
54
- * - SchemaTypes.Item: Full block object with ID (for updates)
55
- * - Omit<SchemaTypes.Item, 'id'>: Block object without ID (for creation)
63
+ * - string: Just the block ID (to keep existing blocks unchanged)
64
+ * - Full block object with ID (to update an existing block)
65
+ * - Block object without ID (to create a new block)
56
66
  */
57
67
  export type SingleBlockFieldValueAsRequest = BlockItemInARequest | null;
58
68
  /**
@@ -61,13 +71,13 @@ export type SingleBlockFieldValueAsRequest = BlockItemInARequest | null;
61
71
  * =============================================================================
62
72
  *
63
73
  * When using the ?nested=true query parameter, the API returns Single Block data
64
- * with embedded block fully populated as complete SchemaTypes.Item object instead
74
+ * with embedded block fully populated as complete RawApiTypes.Item object instead
65
75
  * of just string ID. This provides type safety for working with fully resolved data.
66
76
  */
67
77
  /**
68
78
  * Single Block field value with nested block - fully populated block object
69
79
  */
70
- export type SingleBlockFieldValueWithNestedBlocks = SchemaTypes.Item | null;
80
+ export type SingleBlockFieldValueWithNestedBlocks = RawApiTypes.Item | null;
71
81
  /**
72
82
  * =============================================================================
73
83
  * SHARED UTILITY FUNCTIONS
@@ -75,19 +85,19 @@ export type SingleBlockFieldValueWithNestedBlocks = SchemaTypes.Item | null;
75
85
  * These functions are used internally and can be imported by other modules
76
86
  */
77
87
  /**
78
- * Validates if a single block item is a string ID
88
+ * Validates if the input is a valid item (either block or record) ID
79
89
  */
80
- export declare function isBlockStringId(block: unknown): block is string;
81
- export type ItemWithOptionalIdAndMeta = OptionalFields<SchemaTypes.Item, 'id' | 'meta'>;
90
+ export declare function isItemId(input: unknown): input is string;
91
+ export type ItemWithOptionalIdAndMeta = OptionalFields<RawApiTypes.Item, 'id' | 'meta'>;
82
92
  /**
83
- * Validates if a single block item is a SchemaTypes.Item object (with or without ID)
93
+ * Validates if the input is a RawApiTypes.Item object (with optional `id` and `meta`)
84
94
  */
85
- export declare function isBlockObject(block: unknown): block is ItemWithOptionalIdAndMeta;
86
- export type ItemWithOptionalMeta = OptionalFields<SchemaTypes.Item, 'meta'>;
95
+ export declare function isItemWithOptionalIdAndMeta(block: unknown): block is ItemWithOptionalIdAndMeta;
96
+ export type ItemWithOptionalMeta = OptionalFields<RawApiTypes.Item, 'meta'>;
87
97
  /**
88
- * Validates if a single block item is a complete SchemaTypes.Item object with ID
98
+ * Validates if the input is a a complete RawApiTypes.Item object with optional `meta`
89
99
  */
90
- export declare function isBlockObjectWithId(block: unknown): block is ItemWithOptionalMeta;
100
+ export declare function isItemWithOptionalMeta(block: unknown): block is ItemWithOptionalMeta;
91
101
  /**
92
102
  * =============================================================================
93
103
  * TYPE GUARDS - Runtime validation functions
@@ -105,13 +115,9 @@ export declare function isSingleBlockFieldValue(value: unknown): value is Single
105
115
  export declare function isSingleBlockFieldValueAsRequest(value: unknown): value is SingleBlockFieldValueAsRequest;
106
116
  /**
107
117
  * Type guard for Single Block field values with nested blocks (?nested=true format).
108
- * Ensures block is a full SchemaTypes.Item object with complete data.
118
+ * Ensures block is a full RawApiTypes.Item object with complete data.
109
119
  */
110
120
  export declare function isSingleBlockFieldValueWithNestedBlocks(value: unknown): value is SingleBlockFieldValueWithNestedBlocks;
111
- import type { FramedSingleBlockEditorConfiguration } from './appearance/framed_single_block';
112
- import type { FramelessSingleBlockEditorConfiguration } from './appearance/frameless_single_block';
113
- import type { RequiredValidator } from './validators/required';
114
- import type { SingleBlockBlocksValidator } from './validators/single_block_blocks';
115
121
  export type SingleBlockFieldValidators = {
116
122
  /** Only accept references to block records of the specified block models */
117
123
  single_block_blocks: SingleBlockBlocksValidator;
@@ -1,6 +1,11 @@
1
- import { type Block, type Document, type InlineBlock, type Root } from 'datocms-structured-text-utils';
2
- import type * as SchemaTypes from '../generated/SchemaTypes';
1
+ import { type Block, type Document, type InlineBlock } from 'datocms-structured-text-utils';
2
+ import type * as RawApiTypes from '../generated/RawApiTypes';
3
+ import type { StructuredTextEditorConfiguration } from './appearance/structured_text';
3
4
  import { type BlockItemInARequest } from './single_block';
5
+ import type { LengthValidator } from './validators/length';
6
+ import type { StructuredTextBlocksValidator } from './validators/structured_text_blocks';
7
+ import type { StructuredTextInlineBlocksValidator } from './validators/structured_text_inline_blocks';
8
+ import type { StructuredTextLinksValidator } from './validators/structured_text_links';
4
9
  /**
5
10
  * STRUCTURED TEXT TYPE SYSTEM FOR DATOCMS
6
11
  *
@@ -10,10 +15,10 @@ import { type BlockItemInARequest } from './single_block';
10
15
  * The challenge we're solving:
11
16
  * - DatoCMS structured text can contain "blocks" (embedded content items) in bloth 'block'
12
17
  * and 'inlineBlock' nodes
13
- * - By default, API responses contain blocks as string IDs (lightweight references)
18
+ * - By default, CMA responses contain blocks as string IDs (lightweight references)
14
19
  * - With ?nested=true parameter though, API responses contain blocks as full item objects
15
20
  * (which in turn can contain other blocks)
16
- * - For API requests, blocks can be represented as:
21
+ * - For CMA requests, blocks can be represented as:
17
22
  * 1. String IDs (referencing existing items)
18
23
  * 2. Full item objects with IDs (for updates)
19
24
  * 3. Item objects without IDs (for creation)
@@ -33,62 +38,36 @@ import { type BlockItemInARequest } from './single_block';
33
38
  /**
34
39
  * Variant of 'block' structured text node for API requests
35
40
  */
36
- export type BlockAsRequest = Omit<Block, 'item'> & {
37
- item: BlockItemInARequest;
38
- };
41
+ export type BlockAsRequest = Block<BlockItemInARequest>;
39
42
  /**
40
43
  * Variant of 'inlineBlock' structured text node for API requests
41
44
  */
42
- export type InlineBlockAsRequest = Omit<InlineBlock, 'item'> & {
43
- item: BlockItemInARequest;
44
- };
45
- /**
46
- * Generic type to transform a node that might be containing a 'block' or 'inlineBlock' as a (deeply nested) children to its variant for API requests
47
- */
48
- export type NodeAsRequest<T> = WithMappedChildren<T, DeepMapVariants<T extends {
49
- children: infer C;
50
- } ? C : never, BlockAsRequest, InlineBlockAsRequest>>;
45
+ export type InlineBlockAsRequest = InlineBlock<BlockItemInARequest>;
51
46
  /**
52
47
  * Variant of Structured Text document for API requests
53
48
  */
54
- export type DocumentAsRequest = {
55
- schema: 'dast';
56
- document: NodeAsRequest<Root>;
57
- };
49
+ export type DocumentAsRequest = Document<BlockItemInARequest>;
58
50
  /**
59
51
  * =============================================================================
60
52
  * NESTED VARIANTS - Types for API responses with ?nested=true parameter
61
53
  * =============================================================================
62
54
  *
63
- * When using the GET /items?nested=true, the API returns Structured Text documents
64
- * with embedded blocks fully populated as complete SchemaTypes.Item objects instead
55
+ * When using the GET /items?nested=true, the CMA returns Structured Text documents
56
+ * with embedded blocks fully populated as complete RawApiTypes.Item objects instead
65
57
  * of just string IDs.
66
58
  */
67
59
  /**
68
60
  * Variant of 'block' structured text node for ?nested=true API responses
69
61
  */
70
- export type BlockWithNestedBlocks = Omit<Block, 'item'> & {
71
- item: SchemaTypes.Item;
72
- };
62
+ export type BlockWithNestedBlocks = Block<RawApiTypes.Item>;
73
63
  /**
74
64
  * Variant of 'inlineBlock' structured text node for ?nested=true API responses
75
65
  */
76
- export type InlineBlockWithNestedBlocks = Omit<InlineBlock, 'item'> & {
77
- item: SchemaTypes.Item;
78
- };
79
- /**
80
- * Generic type to transform a node that might be containing a 'block' or 'inlineBlock' as a (deeply nested) children to it's variant for ?nested=true API responses
81
- */
82
- export type NodeWithNestedBlocks<T> = WithMappedChildren<T, DeepMapVariants<T extends {
83
- children: infer C;
84
- } ? C : never, BlockWithNestedBlocks, InlineBlockWithNestedBlocks>>;
66
+ export type InlineBlockWithNestedBlocks = InlineBlock<RawApiTypes.Item>;
85
67
  /**
86
68
  * Variant of Structured Text document for ?nested=true API responses
87
69
  */
88
- export type DocumentWithNestedBlocks = {
89
- schema: 'dast';
90
- document: NodeWithNestedBlocks<Root>;
91
- };
70
+ export type DocumentWithNestedBlocks = Document<RawApiTypes.Item>;
92
71
  /**
93
72
  * =============================================================================
94
73
  * MAIN APPLICATION TYPES
@@ -113,52 +92,9 @@ export declare function isStructuredTextFieldValue(value: unknown): value is Str
113
92
  export declare function isStructuredTextFieldValueAsRequest(value: unknown): value is StructuredTextFieldValueAsRequest;
114
93
  /**
115
94
  * Type guard for structured text field values with nested blocks (?nested=true format).
116
- * Ensures all block/inlineBlock nodes have full SchemaTypes.Item objects.
95
+ * Ensures all block/inlineBlock nodes have full RawApiTypes.Item objects.
117
96
  */
118
97
  export declare function isStructuredTextFieldValueWithNestedBlocks(value: unknown): value is StructuredTextFieldValueWithNestedBlocks;
119
- /**
120
- * =============================================================================
121
- * SHARED TRANSFORMATION UTILITIES
122
- * =============================================================================
123
- *
124
- * These utility types provide the machinery for automatically transforming
125
- * structured text types between their different variants. The goal is to
126
- * recursively walk through complex nested structures and apply the appropriate
127
- * transformations to Block and InlineBlock nodes while preserving all other types.
128
- */
129
- /**
130
- * Utility type that preserves the structure of T but replaces its children with ChildrenType.
131
- * If T doesn't have children, it returns T unchanged.
132
- */
133
- type WithMappedChildren<T, ChildrenType> = T extends {
134
- children: any;
135
- } ? Omit<T, 'children'> & {
136
- children: ChildrenType;
137
- } : T;
138
- /**
139
- * Generic transformation type that replace 'block' and 'inlineBlock' node types to their variants.
140
- */
141
- type MapVariants<T, BlockVariant, InlineBlockVariant> = T extends Block ? BlockVariant : T extends InlineBlock ? InlineBlockVariant : T;
142
- /**
143
- * Recursively transform a Structured Text node type using the provided variants for 'block' and 'inlineBlock' nodes.
144
- *
145
- * This handles three cases:
146
- * _ Arrays: Transform each array element recursively
147
- * _ Objects with children: Transform the object itself AND recursively transform its children
148
- * _ Leaf nodes: Apply the variant mapping
149
- */
150
- type DeepMapVariants<T, BlockVariant, InlineBlockVariant> = T extends (infer U)[] ? DeepMapVariants<U, BlockVariant, InlineBlockVariant>[] : T extends {
151
- children: infer Children;
152
- } ? T extends {
153
- children: any;
154
- } ? Omit<T, 'children'> & {
155
- children: DeepMapVariants<Children, BlockVariant, InlineBlockVariant>;
156
- } : MapVariants<T, BlockVariant, InlineBlockVariant> : MapVariants<T, BlockVariant, InlineBlockVariant>;
157
- import type { StructuredTextEditorConfiguration } from './appearance/structured_text';
158
- import type { LengthValidator } from './validators/length';
159
- import type { StructuredTextBlocksValidator } from './validators/structured_text_blocks';
160
- import type { StructuredTextInlineBlocksValidator } from './validators/structured_text_inline_blocks';
161
- import type { StructuredTextLinksValidator } from './validators/structured_text_links';
162
98
  export type StructuredTextFieldValidators = {
163
99
  /** Only accept references to block records of the specified block models */
164
100
  structured_text_blocks: StructuredTextBlocksValidator;
@@ -178,4 +114,3 @@ export type StructuredTextFieldAppearance = {
178
114
  /** Plugin configuration */
179
115
  parameters: Record<string, unknown>;
180
116
  };
181
- export {};
@@ -4,7 +4,7 @@ import type { BooleanFieldAppearance, BooleanFieldValidators, BooleanFieldValue,
4
4
  */
5
5
  type FieldAppearanceConfig<TAppearance> = TAppearance & Omit<RawFieldAttributes['appearance'], keyof TAppearance>;
6
6
  /**
7
- * Base field configuration for attributes (non-localized), extending the original SchemaTypes
7
+ * Base field configuration for attributes (non-localized), extending the original RawApiTypes
8
8
  */
9
9
  type NonLocalizedFieldAttributesForFieldType<SourceType, FieldType extends RawFieldAttributes['field_type'], FieldValue, FieldValidators, FieldAppearance> = Omit<SourceType, 'field_type' | 'default_value' | 'validators' | 'appearance' | 'localized'> & {
10
10
  field_type: FieldType;
@@ -14,7 +14,7 @@ type NonLocalizedFieldAttributesForFieldType<SourceType, FieldType extends RawFi
14
14
  appearance: FieldAppearanceConfig<FieldAppearance>;
15
15
  };
16
16
  /**
17
- * Base field configuration for attributes (localized), extending the original SchemaTypes
17
+ * Base field configuration for attributes (localized), extending the original RawApiTypes
18
18
  */
19
19
  type LocalizedFieldAttributesForFieldType<SourceType, FieldType extends RawFieldAttributes['field_type'], FieldValue, FieldValidators, FieldAppearance> = Omit<SourceType, 'field_type' | 'default_value' | 'validators' | 'appearance' | 'localized'> & {
20
20
  field_type: FieldType;
@@ -1,5 +1,5 @@
1
1
  import { type LogLevel, request } from '@datocms/rest-client-utils';
2
- import type { JobResult } from './SimpleSchemaTypes';
2
+ import type { JobResult } from './ApiTypes';
3
3
  import * as Resources from './resources';
4
4
  export type RequestOptions = {
5
5
  method: 'GET' | 'PUT' | 'POST' | 'DELETE';
@@ -4,7 +4,7 @@ import type { BooleanFieldAppearance, BooleanFieldValidators, BooleanFieldValue,
4
4
  */
5
5
  type FieldAppearanceConfig<TAppearance> = TAppearance & Omit<RawFieldAttributes['appearance'], keyof TAppearance>;
6
6
  /**
7
- * Base field configuration for attributes (non-localized), extending the original SchemaTypes
7
+ * Base field configuration for attributes (non-localized), extending the original RawApiTypes
8
8
  */
9
9
  type NonLocalizedFieldAttributesForFieldType<SourceType, FieldType extends RawFieldAttributes['field_type'], FieldValue, FieldValidators, FieldAppearance> = Omit<SourceType, 'field_type' | 'default_value' | 'validators' | 'appearance' | 'localized'> & {
10
10
  field_type: FieldType;
@@ -14,7 +14,7 @@ type NonLocalizedFieldAttributesForFieldType<SourceType, FieldType extends RawFi
14
14
  appearance: FieldAppearanceConfig<FieldAppearance>;
15
15
  };
16
16
  /**
17
- * Base field configuration for attributes (localized), extending the original SchemaTypes
17
+ * Base field configuration for attributes (localized), extending the original RawApiTypes
18
18
  */
19
19
  type LocalizedFieldAttributesForFieldType<SourceType, FieldType extends RawFieldAttributes['field_type'], FieldValue, FieldValidators, FieldAppearance> = Omit<SourceType, 'field_type' | 'default_value' | 'validators' | 'appearance' | 'localized'> & {
20
20
  field_type: FieldType;
@@ -1,6 +1,6 @@
1
1
  import BaseResource from '../../BaseResource';
2
- import type * as SchemaTypes from '../SchemaTypes';
3
- import type * as SimpleSchemaTypes from '../SimpleSchemaTypes';
2
+ import type * as ApiTypes from '../ApiTypes';
3
+ import type * as RawApiTypes from '../RawApiTypes';
4
4
  export default class AccessToken extends BaseResource {
5
5
  static readonly TYPE: "access_token";
6
6
  /**
@@ -11,7 +11,7 @@ export default class AccessToken extends BaseResource {
11
11
  * @throws {ApiError}
12
12
  * @throws {TimeoutError}
13
13
  */
14
- create(body: SimpleSchemaTypes.AccessTokenCreateSchema): Promise<SimpleSchemaTypes.AccessToken>;
14
+ create(body: ApiTypes.AccessTokenCreateSchema): Promise<ApiTypes.AccessToken>;
15
15
  /**
16
16
  * Create a new API token
17
17
  *
@@ -20,7 +20,7 @@ export default class AccessToken extends BaseResource {
20
20
  * @throws {ApiError}
21
21
  * @throws {TimeoutError}
22
22
  */
23
- rawCreate(body: SchemaTypes.AccessTokenCreateSchema): Promise<SchemaTypes.AccessTokenCreateTargetSchema>;
23
+ rawCreate(body: RawApiTypes.AccessTokenCreateSchema): Promise<RawApiTypes.AccessTokenCreateTargetSchema>;
24
24
  /**
25
25
  * Update an API token
26
26
  *
@@ -29,7 +29,7 @@ export default class AccessToken extends BaseResource {
29
29
  * @throws {ApiError}
30
30
  * @throws {TimeoutError}
31
31
  */
32
- update(accessTokenId: string | SimpleSchemaTypes.AccessTokenData, body: SimpleSchemaTypes.AccessTokenUpdateSchema): Promise<SimpleSchemaTypes.AccessToken>;
32
+ update(accessTokenId: string | ApiTypes.AccessTokenData, body: ApiTypes.AccessTokenUpdateSchema): Promise<ApiTypes.AccessToken>;
33
33
  /**
34
34
  * Update an API token
35
35
  *
@@ -38,7 +38,7 @@ export default class AccessToken extends BaseResource {
38
38
  * @throws {ApiError}
39
39
  * @throws {TimeoutError}
40
40
  */
41
- rawUpdate(accessTokenId: string, body: SchemaTypes.AccessTokenUpdateSchema): Promise<SchemaTypes.AccessTokenUpdateTargetSchema>;
41
+ rawUpdate(accessTokenId: string, body: RawApiTypes.AccessTokenUpdateSchema): Promise<RawApiTypes.AccessTokenUpdateTargetSchema>;
42
42
  /**
43
43
  * List all API tokens
44
44
  *
@@ -47,7 +47,7 @@ export default class AccessToken extends BaseResource {
47
47
  * @throws {ApiError}
48
48
  * @throws {TimeoutError}
49
49
  */
50
- list(): Promise<SimpleSchemaTypes.AccessTokenInstancesTargetSchema>;
50
+ list(): Promise<ApiTypes.AccessTokenInstancesTargetSchema>;
51
51
  /**
52
52
  * List all API tokens
53
53
  *
@@ -56,7 +56,7 @@ export default class AccessToken extends BaseResource {
56
56
  * @throws {ApiError}
57
57
  * @throws {TimeoutError}
58
58
  */
59
- rawList(): Promise<SchemaTypes.AccessTokenInstancesTargetSchema>;
59
+ rawList(): Promise<RawApiTypes.AccessTokenInstancesTargetSchema>;
60
60
  /**
61
61
  * Retrieve an API token
62
62
  *
@@ -65,7 +65,7 @@ export default class AccessToken extends BaseResource {
65
65
  * @throws {ApiError}
66
66
  * @throws {TimeoutError}
67
67
  */
68
- find(accessTokenId: string | SimpleSchemaTypes.AccessTokenData): Promise<SimpleSchemaTypes.AccessToken>;
68
+ find(accessTokenId: string | ApiTypes.AccessTokenData): Promise<ApiTypes.AccessToken>;
69
69
  /**
70
70
  * Retrieve an API token
71
71
  *
@@ -74,7 +74,7 @@ export default class AccessToken extends BaseResource {
74
74
  * @throws {ApiError}
75
75
  * @throws {TimeoutError}
76
76
  */
77
- rawFind(accessTokenId: string): Promise<SchemaTypes.AccessTokenSelfTargetSchema>;
77
+ rawFind(accessTokenId: string): Promise<RawApiTypes.AccessTokenSelfTargetSchema>;
78
78
  /**
79
79
  * Rotate API token
80
80
  *
@@ -83,7 +83,7 @@ export default class AccessToken extends BaseResource {
83
83
  * @throws {ApiError}
84
84
  * @throws {TimeoutError}
85
85
  */
86
- regenerateToken(accessTokenId: string | SimpleSchemaTypes.AccessTokenData): Promise<SimpleSchemaTypes.AccessToken>;
86
+ regenerateToken(accessTokenId: string | ApiTypes.AccessTokenData): Promise<ApiTypes.AccessToken>;
87
87
  /**
88
88
  * Rotate API token
89
89
  *
@@ -92,7 +92,7 @@ export default class AccessToken extends BaseResource {
92
92
  * @throws {ApiError}
93
93
  * @throws {TimeoutError}
94
94
  */
95
- rawRegenerateToken(accessTokenId: string): Promise<SchemaTypes.AccessTokenRegenerateTokenTargetSchema>;
95
+ rawRegenerateToken(accessTokenId: string): Promise<RawApiTypes.AccessTokenRegenerateTokenTargetSchema>;
96
96
  /**
97
97
  * Delete an API token
98
98
  *
@@ -101,7 +101,7 @@ export default class AccessToken extends BaseResource {
101
101
  * @throws {ApiError}
102
102
  * @throws {TimeoutError}
103
103
  */
104
- destroy(accessTokenId: string | SimpleSchemaTypes.AccessTokenData, queryParams?: SimpleSchemaTypes.AccessTokenDestroyHrefSchema): Promise<SimpleSchemaTypes.AccessToken>;
104
+ destroy(accessTokenId: string | ApiTypes.AccessTokenData, queryParams?: ApiTypes.AccessTokenDestroyHrefSchema): Promise<ApiTypes.AccessToken>;
105
105
  /**
106
106
  * Delete an API token
107
107
  *
@@ -110,5 +110,5 @@ export default class AccessToken extends BaseResource {
110
110
  * @throws {ApiError}
111
111
  * @throws {TimeoutError}
112
112
  */
113
- rawDestroy(accessTokenId: string, queryParams?: SchemaTypes.AccessTokenDestroyHrefSchema): Promise<SchemaTypes.AccessTokenDestroyTargetSchema>;
113
+ rawDestroy(accessTokenId: string, queryParams?: RawApiTypes.AccessTokenDestroyHrefSchema): Promise<RawApiTypes.AccessTokenDestroyTargetSchema>;
114
114
  }
@@ -1,6 +1,6 @@
1
1
  import BaseResource from '../../BaseResource';
2
- import type * as SchemaTypes from '../SchemaTypes';
3
- import type * as SimpleSchemaTypes from '../SimpleSchemaTypes';
2
+ import type * as ApiTypes from '../ApiTypes';
3
+ import type * as RawApiTypes from '../RawApiTypes';
4
4
  export default class AuditLogEvent extends BaseResource {
5
5
  static readonly TYPE: "audit_log_event";
6
6
  /**
@@ -11,7 +11,7 @@ export default class AuditLogEvent extends BaseResource {
11
11
  * @throws {ApiError}
12
12
  * @throws {TimeoutError}
13
13
  */
14
- query(body: SimpleSchemaTypes.AuditLogEventQuerySchema): Promise<SimpleSchemaTypes.AuditLogEventQueryTargetSchema>;
14
+ query(body: ApiTypes.AuditLogEventQuerySchema): Promise<ApiTypes.AuditLogEventQueryTargetSchema>;
15
15
  /**
16
16
  * List Audit Log events
17
17
  *
@@ -20,5 +20,5 @@ export default class AuditLogEvent extends BaseResource {
20
20
  * @throws {ApiError}
21
21
  * @throws {TimeoutError}
22
22
  */
23
- rawQuery(body: SchemaTypes.AuditLogEventQuerySchema): Promise<SchemaTypes.AuditLogEventQueryTargetSchema>;
23
+ rawQuery(body: RawApiTypes.AuditLogEventQuerySchema): Promise<RawApiTypes.AuditLogEventQueryTargetSchema>;
24
24
  }
@@ -1,7 +1,7 @@
1
1
  import * as Utils from '@datocms/rest-client-utils';
2
2
  import BaseResource from '../../BaseResource';
3
- import type * as SchemaTypes from '../SchemaTypes';
4
- import type * as SimpleSchemaTypes from '../SimpleSchemaTypes';
3
+ import type * as ApiTypes from '../ApiTypes';
4
+ import type * as RawApiTypes from '../RawApiTypes';
5
5
  export default class BuildEvent extends BaseResource {
6
6
  static readonly TYPE: "build_event";
7
7
  /**
@@ -12,7 +12,7 @@ export default class BuildEvent extends BaseResource {
12
12
  * @throws {ApiError}
13
13
  * @throws {TimeoutError}
14
14
  */
15
- list(queryParams?: SimpleSchemaTypes.BuildEventInstancesHrefSchema): Promise<SimpleSchemaTypes.BuildEventInstancesTargetSchema>;
15
+ list(queryParams?: ApiTypes.BuildEventInstancesHrefSchema): Promise<ApiTypes.BuildEventInstancesTargetSchema>;
16
16
  /**
17
17
  * List all deploy events
18
18
  *
@@ -21,7 +21,7 @@ export default class BuildEvent extends BaseResource {
21
21
  * @throws {ApiError}
22
22
  * @throws {TimeoutError}
23
23
  */
24
- rawList(queryParams?: SchemaTypes.BuildEventInstancesHrefSchema): Promise<SchemaTypes.BuildEventInstancesTargetSchema>;
24
+ rawList(queryParams?: RawApiTypes.BuildEventInstancesHrefSchema): Promise<RawApiTypes.BuildEventInstancesTargetSchema>;
25
25
  /**
26
26
  * Async iterator to auto-paginate over elements returned by list()
27
27
  *
@@ -30,7 +30,7 @@ export default class BuildEvent extends BaseResource {
30
30
  * @throws {ApiError}
31
31
  * @throws {TimeoutError}
32
32
  */
33
- listPagedIterator(queryParams?: Utils.OmitFromKnownKeys<SimpleSchemaTypes.BuildEventInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<SimpleSchemaTypes.BuildEvent, void, unknown>;
33
+ listPagedIterator(queryParams?: Utils.OmitFromKnownKeys<ApiTypes.BuildEventInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<ApiTypes.BuildEvent, void, unknown>;
34
34
  /**
35
35
  * Async iterator to auto-paginate over elements returned by rawList()
36
36
  *
@@ -39,7 +39,7 @@ export default class BuildEvent extends BaseResource {
39
39
  * @throws {ApiError}
40
40
  * @throws {TimeoutError}
41
41
  */
42
- rawListPagedIterator(queryParams?: Utils.OmitFromKnownKeys<SchemaTypes.BuildEventInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<SchemaTypes.BuildEvent, void, unknown>;
42
+ rawListPagedIterator(queryParams?: Utils.OmitFromKnownKeys<RawApiTypes.BuildEventInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<RawApiTypes.BuildEvent, void, unknown>;
43
43
  /**
44
44
  * Retrieve a deploy event
45
45
  *
@@ -48,7 +48,7 @@ export default class BuildEvent extends BaseResource {
48
48
  * @throws {ApiError}
49
49
  * @throws {TimeoutError}
50
50
  */
51
- find(buildEventId: string | SimpleSchemaTypes.BuildEventData): Promise<SimpleSchemaTypes.BuildEvent>;
51
+ find(buildEventId: string | ApiTypes.BuildEventData): Promise<ApiTypes.BuildEvent>;
52
52
  /**
53
53
  * Retrieve a deploy event
54
54
  *
@@ -57,5 +57,5 @@ export default class BuildEvent extends BaseResource {
57
57
  * @throws {ApiError}
58
58
  * @throws {TimeoutError}
59
59
  */
60
- rawFind(buildEventId: string): Promise<SchemaTypes.BuildEventSelfTargetSchema>;
60
+ rawFind(buildEventId: string): Promise<RawApiTypes.BuildEventSelfTargetSchema>;
61
61
  }