@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.
- package/dist/cjs/fieldTypes/rich_text.js +4 -4
- package/dist/cjs/fieldTypes/rich_text.js.map +1 -1
- package/dist/cjs/fieldTypes/single_block.js +19 -17
- package/dist/cjs/fieldTypes/single_block.js.map +1 -1
- package/dist/cjs/fieldTypes/structured_text.js +9 -21
- package/dist/cjs/fieldTypes/structured_text.js.map +1 -1
- package/dist/cjs/generated/{SchemaTypes.js → ApiTypes.js} +1 -1
- package/dist/cjs/generated/ApiTypes.js.map +1 -0
- package/dist/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/{SimpleSchemaTypes.js → RawApiTypes.js} +1 -1
- package/dist/cjs/generated/RawApiTypes.js.map +1 -0
- package/dist/cjs/generated/resources/AccessToken.js.map +1 -1
- package/dist/cjs/generated/resources/AuditLogEvent.js.map +1 -1
- package/dist/cjs/generated/resources/BuildEvent.js.map +1 -1
- package/dist/cjs/generated/resources/BuildTrigger.js.map +1 -1
- package/dist/cjs/generated/resources/EditingSession.js.map +1 -1
- package/dist/cjs/generated/resources/EmojiSuggestions.js.map +1 -1
- package/dist/cjs/generated/resources/Environment.js.map +1 -1
- package/dist/cjs/generated/resources/Field.js.map +1 -1
- package/dist/cjs/generated/resources/Fieldset.js.map +1 -1
- package/dist/cjs/generated/resources/Item.js.map +1 -1
- package/dist/cjs/generated/resources/ItemType.js.map +1 -1
- package/dist/cjs/generated/resources/ItemTypeFilter.js.map +1 -1
- package/dist/cjs/generated/resources/ItemVersion.js.map +1 -1
- package/dist/cjs/generated/resources/JobResult.js.map +1 -1
- package/dist/cjs/generated/resources/MaintenanceMode.js.map +1 -1
- package/dist/cjs/generated/resources/MenuItem.js.map +1 -1
- package/dist/cjs/generated/resources/Plugin.js.map +1 -1
- package/dist/cjs/generated/resources/PublicInfo.js.map +1 -1
- package/dist/cjs/generated/resources/Role.js.map +1 -1
- package/dist/cjs/generated/resources/ScheduledPublication.js.map +1 -1
- package/dist/cjs/generated/resources/ScheduledUnpublishing.js.map +1 -1
- package/dist/cjs/generated/resources/SchemaMenuItem.js.map +1 -1
- package/dist/cjs/generated/resources/SearchResult.js.map +1 -1
- package/dist/cjs/generated/resources/Session.js.map +1 -1
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/cjs/generated/resources/SiteInvitation.js.map +1 -1
- package/dist/cjs/generated/resources/SsoGroup.js.map +1 -1
- package/dist/cjs/generated/resources/SsoSettings.js.map +1 -1
- package/dist/cjs/generated/resources/SsoUser.js.map +1 -1
- package/dist/cjs/generated/resources/SubscriptionLimit.js.map +1 -1
- package/dist/cjs/generated/resources/Upload.js.map +1 -1
- package/dist/cjs/generated/resources/UploadCollection.js.map +1 -1
- package/dist/cjs/generated/resources/UploadFilter.js.map +1 -1
- package/dist/cjs/generated/resources/UploadRequest.js.map +1 -1
- package/dist/cjs/generated/resources/UploadSmartTag.js.map +1 -1
- package/dist/cjs/generated/resources/UploadTag.js.map +1 -1
- package/dist/cjs/generated/resources/UploadTrack.js.map +1 -1
- package/dist/cjs/generated/resources/UsageCounter.js.map +1 -1
- package/dist/cjs/generated/resources/User.js.map +1 -1
- package/dist/cjs/generated/resources/Webhook.js.map +1 -1
- package/dist/cjs/generated/resources/WebhookCall.js.map +1 -1
- package/dist/cjs/generated/resources/WhiteLabelSettings.js.map +1 -1
- package/dist/cjs/generated/resources/Workflow.js.map +1 -1
- package/dist/cjs/index.js +2 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/resources/Role.js.map +1 -1
- package/dist/cjs/utilities/blocks.js +7 -7
- package/dist/cjs/utilities/blocks.js.map +1 -1
- package/dist/cjs/utilities/buildBlockRecord.js.map +1 -1
- package/dist/cjs/utilities/{fieldValueLocalization.js → fieldValue.js} +52 -52
- package/dist/cjs/utilities/fieldValue.js.map +1 -0
- package/dist/cjs/utilities/fieldsContainingReferences.js.map +1 -1
- package/dist/cjs/utilities/recursiveBlocks.js +18 -19
- package/dist/cjs/utilities/recursiveBlocks.js.map +1 -1
- package/dist/cjs/utilities/schemaRepository.js.map +1 -1
- package/dist/esm/fieldTypes/rich_text.d.ts +6 -6
- package/dist/esm/fieldTypes/rich_text.js +5 -5
- package/dist/esm/fieldTypes/rich_text.js.map +1 -1
- package/dist/esm/fieldTypes/single_block.d.ts +29 -23
- package/dist/esm/fieldTypes/single_block.js +15 -13
- package/dist/esm/fieldTypes/single_block.js.map +1 -1
- package/dist/esm/fieldTypes/structured_text.d.ts +18 -83
- package/dist/esm/fieldTypes/structured_text.js +10 -22
- package/dist/esm/fieldTypes/structured_text.js.map +1 -1
- package/dist/esm/generated/{SimpleSchemaTypes.d.ts → ApiTypes.d.ts} +2 -2
- package/dist/esm/generated/ApiTypes.js +2 -0
- package/dist/esm/generated/ApiTypes.js.map +1 -0
- package/dist/esm/generated/Client.d.ts +1 -1
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/{SchemaTypes.d.ts → RawApiTypes.d.ts} +2 -2
- package/dist/esm/generated/RawApiTypes.js +2 -0
- package/dist/esm/generated/RawApiTypes.js.map +1 -0
- package/dist/esm/generated/resources/AccessToken.d.ts +14 -14
- package/dist/esm/generated/resources/AccessToken.js.map +1 -1
- package/dist/esm/generated/resources/AuditLogEvent.d.ts +4 -4
- package/dist/esm/generated/resources/AuditLogEvent.js.map +1 -1
- package/dist/esm/generated/resources/BuildEvent.d.ts +8 -8
- package/dist/esm/generated/resources/BuildEvent.js.map +1 -1
- package/dist/esm/generated/resources/BuildTrigger.d.ts +16 -16
- package/dist/esm/generated/resources/BuildTrigger.js.map +1 -1
- package/dist/esm/generated/resources/DailyUsage.d.ts +4 -4
- package/dist/esm/generated/resources/EditingSession.d.ts +7 -7
- package/dist/esm/generated/resources/EditingSession.js.map +1 -1
- package/dist/esm/generated/resources/EmojiSuggestions.d.ts +4 -4
- package/dist/esm/generated/resources/EmojiSuggestions.js.map +1 -1
- package/dist/esm/generated/resources/Environment.d.ts +14 -14
- package/dist/esm/generated/resources/Environment.js.map +1 -1
- package/dist/esm/generated/resources/Field.d.ts +213 -213
- package/dist/esm/generated/resources/Field.js.map +1 -1
- package/dist/esm/generated/resources/Fieldset.d.ts +12 -12
- package/dist/esm/generated/resources/Fieldset.js.map +1 -1
- package/dist/esm/generated/resources/Item.d.ts +36 -36
- package/dist/esm/generated/resources/Item.js.map +1 -1
- package/dist/esm/generated/resources/ItemType.d.ts +15 -15
- package/dist/esm/generated/resources/ItemType.js.map +1 -1
- package/dist/esm/generated/resources/ItemTypeFilter.d.ts +12 -12
- package/dist/esm/generated/resources/ItemTypeFilter.js.map +1 -1
- package/dist/esm/generated/resources/ItemVersion.d.ts +10 -10
- package/dist/esm/generated/resources/ItemVersion.js.map +1 -1
- package/dist/esm/generated/resources/JobResult.d.ts +4 -4
- package/dist/esm/generated/resources/JobResult.js.map +1 -1
- package/dist/esm/generated/resources/MaintenanceMode.d.ts +8 -8
- package/dist/esm/generated/resources/MaintenanceMode.js.map +1 -1
- package/dist/esm/generated/resources/MenuItem.d.ts +14 -14
- package/dist/esm/generated/resources/MenuItem.js.map +1 -1
- package/dist/esm/generated/resources/Plugin.d.ts +14 -14
- package/dist/esm/generated/resources/Plugin.js.map +1 -1
- package/dist/esm/generated/resources/PublicInfo.d.ts +4 -4
- package/dist/esm/generated/resources/PublicInfo.js.map +1 -1
- package/dist/esm/generated/resources/Role.d.ts +14 -14
- package/dist/esm/generated/resources/Role.js.map +1 -1
- package/dist/esm/generated/resources/ScheduledPublication.d.ts +6 -6
- package/dist/esm/generated/resources/ScheduledPublication.js.map +1 -1
- package/dist/esm/generated/resources/ScheduledUnpublishing.d.ts +6 -6
- package/dist/esm/generated/resources/ScheduledUnpublishing.js.map +1 -1
- package/dist/esm/generated/resources/SchemaMenuItem.d.ts +14 -14
- package/dist/esm/generated/resources/SchemaMenuItem.js.map +1 -1
- package/dist/esm/generated/resources/SearchResult.d.ts +6 -6
- package/dist/esm/generated/resources/SearchResult.js.map +1 -1
- package/dist/esm/generated/resources/Session.d.ts +4 -4
- package/dist/esm/generated/resources/Session.js.map +1 -1
- package/dist/esm/generated/resources/Site.d.ts +24 -24
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/esm/generated/resources/SiteInvitation.d.ts +14 -14
- package/dist/esm/generated/resources/SiteInvitation.js.map +1 -1
- package/dist/esm/generated/resources/SsoGroup.d.ts +10 -10
- package/dist/esm/generated/resources/SsoGroup.js.map +1 -1
- package/dist/esm/generated/resources/SsoSettings.d.ts +8 -8
- package/dist/esm/generated/resources/SsoSettings.js.map +1 -1
- package/dist/esm/generated/resources/SsoUser.d.ts +10 -10
- package/dist/esm/generated/resources/SsoUser.js.map +1 -1
- package/dist/esm/generated/resources/SubscriptionFeature.d.ts +4 -4
- package/dist/esm/generated/resources/SubscriptionLimit.d.ts +6 -6
- package/dist/esm/generated/resources/SubscriptionLimit.js.map +1 -1
- package/dist/esm/generated/resources/Upload.d.ts +22 -22
- package/dist/esm/generated/resources/Upload.js.map +1 -1
- package/dist/esm/generated/resources/UploadCollection.d.ts +14 -14
- package/dist/esm/generated/resources/UploadCollection.js.map +1 -1
- package/dist/esm/generated/resources/UploadFilter.d.ts +12 -12
- package/dist/esm/generated/resources/UploadFilter.js.map +1 -1
- package/dist/esm/generated/resources/UploadRequest.d.ts +4 -4
- package/dist/esm/generated/resources/UploadRequest.js.map +1 -1
- package/dist/esm/generated/resources/UploadSmartTag.d.ts +6 -6
- package/dist/esm/generated/resources/UploadSmartTag.js.map +1 -1
- package/dist/esm/generated/resources/UploadTag.d.ts +8 -8
- package/dist/esm/generated/resources/UploadTag.js.map +1 -1
- package/dist/esm/generated/resources/UploadTrack.d.ts +10 -10
- package/dist/esm/generated/resources/UploadTrack.js.map +1 -1
- package/dist/esm/generated/resources/UsageCounter.d.ts +4 -4
- package/dist/esm/generated/resources/UsageCounter.js.map +1 -1
- package/dist/esm/generated/resources/User.d.ts +12 -12
- package/dist/esm/generated/resources/User.js.map +1 -1
- package/dist/esm/generated/resources/Webhook.d.ts +12 -12
- package/dist/esm/generated/resources/Webhook.js.map +1 -1
- package/dist/esm/generated/resources/WebhookCall.d.ts +9 -9
- package/dist/esm/generated/resources/WebhookCall.js.map +1 -1
- package/dist/esm/generated/resources/WhiteLabelSettings.d.ts +6 -6
- package/dist/esm/generated/resources/WhiteLabelSettings.js.map +1 -1
- package/dist/esm/generated/resources/Workflow.d.ts +11 -11
- package/dist/esm/generated/resources/Workflow.js.map +1 -1
- package/dist/esm/index.d.ts +5 -4
- package/dist/esm/index.js +1 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/resources/Role.d.ts +4 -4
- package/dist/esm/resources/Role.js.map +1 -1
- package/dist/esm/utilities/blocks.d.ts +17 -17
- package/dist/esm/utilities/blocks.js +3 -3
- package/dist/esm/utilities/blocks.js.map +1 -1
- package/dist/esm/utilities/buildBlockRecord.d.ts +5 -5
- package/dist/esm/utilities/buildBlockRecord.js.map +1 -1
- package/dist/{types/utilities/fieldValueLocalization.d.ts → esm/utilities/fieldValue.d.ts} +29 -28
- package/dist/esm/utilities/{fieldValueLocalization.js → fieldValue.js} +39 -39
- package/dist/esm/utilities/fieldValue.js.map +1 -0
- package/dist/esm/utilities/fieldsContainingReferences.d.ts +4 -4
- package/dist/esm/utilities/fieldsContainingReferences.js.map +1 -1
- package/dist/esm/utilities/recursiveBlocks.d.ts +13 -10
- package/dist/esm/utilities/recursiveBlocks.js +19 -20
- package/dist/esm/utilities/recursiveBlocks.js.map +1 -1
- package/dist/esm/utilities/schemaRepository.d.ts +29 -26
- package/dist/esm/utilities/schemaRepository.js.map +1 -1
- package/dist/types/fieldTypes/rich_text.d.ts +6 -6
- package/dist/types/fieldTypes/single_block.d.ts +29 -23
- package/dist/types/fieldTypes/structured_text.d.ts +18 -83
- package/dist/types/generated/{SimpleSchemaTypes.d.ts → ApiTypes.d.ts} +2 -2
- package/dist/types/generated/Client.d.ts +1 -1
- package/dist/types/generated/{SchemaTypes.d.ts → RawApiTypes.d.ts} +2 -2
- package/dist/types/generated/resources/AccessToken.d.ts +14 -14
- package/dist/types/generated/resources/AuditLogEvent.d.ts +4 -4
- package/dist/types/generated/resources/BuildEvent.d.ts +8 -8
- package/dist/types/generated/resources/BuildTrigger.d.ts +16 -16
- package/dist/types/generated/resources/DailyUsage.d.ts +4 -4
- package/dist/types/generated/resources/EditingSession.d.ts +7 -7
- package/dist/types/generated/resources/EmojiSuggestions.d.ts +4 -4
- package/dist/types/generated/resources/Environment.d.ts +14 -14
- package/dist/types/generated/resources/Field.d.ts +213 -213
- package/dist/types/generated/resources/Fieldset.d.ts +12 -12
- package/dist/types/generated/resources/Item.d.ts +36 -36
- package/dist/types/generated/resources/ItemType.d.ts +15 -15
- package/dist/types/generated/resources/ItemTypeFilter.d.ts +12 -12
- package/dist/types/generated/resources/ItemVersion.d.ts +10 -10
- package/dist/types/generated/resources/JobResult.d.ts +4 -4
- package/dist/types/generated/resources/MaintenanceMode.d.ts +8 -8
- package/dist/types/generated/resources/MenuItem.d.ts +14 -14
- package/dist/types/generated/resources/Plugin.d.ts +14 -14
- package/dist/types/generated/resources/PublicInfo.d.ts +4 -4
- package/dist/types/generated/resources/Role.d.ts +14 -14
- package/dist/types/generated/resources/ScheduledPublication.d.ts +6 -6
- package/dist/types/generated/resources/ScheduledUnpublishing.d.ts +6 -6
- package/dist/types/generated/resources/SchemaMenuItem.d.ts +14 -14
- package/dist/types/generated/resources/SearchResult.d.ts +6 -6
- package/dist/types/generated/resources/Session.d.ts +4 -4
- package/dist/types/generated/resources/Site.d.ts +24 -24
- package/dist/types/generated/resources/SiteInvitation.d.ts +14 -14
- package/dist/types/generated/resources/SsoGroup.d.ts +10 -10
- package/dist/types/generated/resources/SsoSettings.d.ts +8 -8
- package/dist/types/generated/resources/SsoUser.d.ts +10 -10
- package/dist/types/generated/resources/SubscriptionFeature.d.ts +4 -4
- package/dist/types/generated/resources/SubscriptionLimit.d.ts +6 -6
- package/dist/types/generated/resources/Upload.d.ts +22 -22
- package/dist/types/generated/resources/UploadCollection.d.ts +14 -14
- package/dist/types/generated/resources/UploadFilter.d.ts +12 -12
- package/dist/types/generated/resources/UploadRequest.d.ts +4 -4
- package/dist/types/generated/resources/UploadSmartTag.d.ts +6 -6
- package/dist/types/generated/resources/UploadTag.d.ts +8 -8
- package/dist/types/generated/resources/UploadTrack.d.ts +10 -10
- package/dist/types/generated/resources/UsageCounter.d.ts +4 -4
- package/dist/types/generated/resources/User.d.ts +12 -12
- package/dist/types/generated/resources/Webhook.d.ts +12 -12
- package/dist/types/generated/resources/WebhookCall.d.ts +9 -9
- package/dist/types/generated/resources/WhiteLabelSettings.d.ts +6 -6
- package/dist/types/generated/resources/Workflow.d.ts +11 -11
- package/dist/types/index.d.ts +5 -4
- package/dist/types/resources/Role.d.ts +4 -4
- package/dist/types/utilities/blocks.d.ts +17 -17
- package/dist/types/utilities/buildBlockRecord.d.ts +5 -5
- package/dist/{esm/utilities/fieldValueLocalization.d.ts → types/utilities/fieldValue.d.ts} +29 -28
- package/dist/types/utilities/fieldsContainingReferences.d.ts +4 -4
- package/dist/types/utilities/recursiveBlocks.d.ts +13 -10
- package/dist/types/utilities/schemaRepository.d.ts +29 -26
- package/package.json +5 -5
- package/src/fieldTypes/rich_text.ts +12 -12
- package/src/fieldTypes/single_block.ts +46 -31
- package/src/fieldTypes/structured_text.ts +33 -149
- package/src/generated/{SimpleSchemaTypes.ts → ApiTypes.ts} +2 -2
- package/src/generated/Client.ts +2 -2
- package/src/generated/{SchemaTypes.ts → RawApiTypes.ts} +2 -2
- package/src/generated/resources/AccessToken.ts +32 -34
- package/src/generated/resources/AuditLogEvent.ts +8 -8
- package/src/generated/resources/BuildEvent.ts +16 -18
- package/src/generated/resources/BuildTrigger.ts +30 -30
- package/src/generated/resources/DailyUsage.ts +5 -5
- package/src/generated/resources/EditingSession.ts +12 -12
- package/src/generated/resources/EmojiSuggestions.ts +7 -7
- package/src/generated/resources/Environment.ts +33 -39
- package/src/generated/resources/Field.ts +40 -54
- package/src/generated/resources/Fieldset.ts +28 -36
- package/src/generated/resources/Item.ts +99 -126
- package/src/generated/resources/ItemType.ts +37 -45
- package/src/generated/resources/ItemTypeFilter.ts +26 -26
- package/src/generated/resources/ItemVersion.ts +22 -26
- package/src/generated/resources/JobResult.ts +6 -8
- package/src/generated/resources/MaintenanceMode.ts +13 -13
- package/src/generated/resources/MenuItem.ts +34 -44
- package/src/generated/resources/Plugin.ts +30 -42
- package/src/generated/resources/PublicInfo.ts +5 -7
- package/src/generated/resources/Role.ts +29 -44
- package/src/generated/resources/ScheduledPublication.ts +13 -13
- package/src/generated/resources/ScheduledUnpublishing.ts +13 -13
- package/src/generated/resources/SchemaMenuItem.ts +34 -34
- package/src/generated/resources/SearchResult.ts +12 -12
- package/src/generated/resources/Session.ts +8 -10
- package/src/generated/resources/Site.ts +43 -47
- package/src/generated/resources/SiteInvitation.ts +30 -30
- package/src/generated/resources/SsoGroup.ts +20 -24
- package/src/generated/resources/SsoSettings.ts +14 -16
- package/src/generated/resources/SsoUser.ts +18 -22
- package/src/generated/resources/SubscriptionFeature.ts +5 -5
- package/src/generated/resources/SubscriptionLimit.ts +9 -9
- package/src/generated/resources/Upload.ts +57 -73
- package/src/generated/resources/UploadCollection.ts +34 -34
- package/src/generated/resources/UploadFilter.ts +26 -26
- package/src/generated/resources/UploadRequest.ts +8 -8
- package/src/generated/resources/UploadSmartTag.ts +12 -12
- package/src/generated/resources/UploadTag.ts +18 -20
- package/src/generated/resources/UploadTrack.ts +25 -29
- package/src/generated/resources/UsageCounter.ts +8 -8
- package/src/generated/resources/User.ts +28 -39
- package/src/generated/resources/Webhook.ts +26 -34
- package/src/generated/resources/WebhookCall.ts +17 -19
- package/src/generated/resources/WhiteLabelSettings.ts +11 -11
- package/src/generated/resources/Workflow.ts +23 -29
- package/src/index.ts +7 -4
- package/src/resources/Role.ts +6 -6
- package/src/utilities/blocks.ts +30 -30
- package/src/utilities/buildBlockRecord.ts +4 -4
- package/src/utilities/{fieldValueLocalization.ts → fieldValue.ts} +58 -73
- package/src/utilities/fieldsContainingReferences.ts +4 -4
- package/src/utilities/recursiveBlocks.ts +47 -44
- package/src/utilities/schemaRepository.ts +53 -56
- package/dist/cjs/generated/SchemaTypes.js.map +0 -1
- package/dist/cjs/generated/SimpleSchemaTypes.js.map +0 -1
- package/dist/cjs/utilities/fieldValueLocalization.js.map +0 -1
- package/dist/cjs/utilities/structuredText.js +0 -371
- package/dist/cjs/utilities/structuredText.js.map +0 -1
- package/dist/esm/generated/SchemaTypes.js +0 -2
- package/dist/esm/generated/SchemaTypes.js.map +0 -1
- package/dist/esm/generated/SimpleSchemaTypes.js +0 -2
- package/dist/esm/generated/SimpleSchemaTypes.js.map +0 -1
- package/dist/esm/utilities/fieldValueLocalization.js.map +0 -1
- package/dist/esm/utilities/structuredText.d.ts +0 -177
- package/dist/esm/utilities/structuredText.js +0 -354
- package/dist/esm/utilities/structuredText.js.map +0 -1
- package/dist/types/utilities/structuredText.d.ts +0 -177
- 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;
|
|
1
|
+
{"version":3,"file":"schemaRepository.js","sourceRoot":"","sources":["../../../src/utilities/schemaRepository.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAoBrE;;;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,GA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G,IAAI,CAAC,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
|
|
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
|
-
* -
|
|
47
|
-
* - Omit<
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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 (
|
|
45
|
-
* - Full block object with ID (
|
|
46
|
-
* - Block object without ID (
|
|
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 =
|
|
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 (
|
|
54
|
-
* -
|
|
55
|
-
* -
|
|
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
|
|
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 =
|
|
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
|
|
88
|
+
* Validates if the input is a valid item (either block or record) ID
|
|
79
89
|
*/
|
|
80
|
-
export declare function
|
|
81
|
-
export type ItemWithOptionalIdAndMeta = OptionalFields<
|
|
90
|
+
export declare function isItemId(input: unknown): input is string;
|
|
91
|
+
export type ItemWithOptionalIdAndMeta = OptionalFields<RawApiTypes.Item, 'id' | 'meta'>;
|
|
82
92
|
/**
|
|
83
|
-
* Validates if
|
|
93
|
+
* Validates if the input is a RawApiTypes.Item object (with optional `id` and `meta`)
|
|
84
94
|
*/
|
|
85
|
-
export declare function
|
|
86
|
-
export type ItemWithOptionalMeta = OptionalFields<
|
|
95
|
+
export declare function isItemWithOptionalIdAndMeta(block: unknown): block is ItemWithOptionalIdAndMeta;
|
|
96
|
+
export type ItemWithOptionalMeta = OptionalFields<RawApiTypes.Item, 'meta'>;
|
|
87
97
|
/**
|
|
88
|
-
* Validates if
|
|
98
|
+
* Validates if the input is a a complete RawApiTypes.Item object with optional `meta`
|
|
89
99
|
*/
|
|
90
|
-
export declare function
|
|
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
|
|
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
|
|
2
|
-
import type * as
|
|
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,
|
|
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
|
|
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 =
|
|
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 =
|
|
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
|
|
64
|
-
* with embedded blocks fully populated as complete
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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 './
|
|
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
|
|
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
|
|
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
|
|
3
|
-
import type * as
|
|
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:
|
|
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:
|
|
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 |
|
|
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:
|
|
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<
|
|
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<
|
|
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 |
|
|
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<
|
|
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 |
|
|
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<
|
|
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 |
|
|
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?:
|
|
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
|
|
3
|
-
import type * as
|
|
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:
|
|
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:
|
|
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
|
|
4
|
-
import type * as
|
|
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?:
|
|
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?:
|
|
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<
|
|
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<
|
|
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 |
|
|
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<
|
|
60
|
+
rawFind(buildEventId: string): Promise<RawApiTypes.BuildEventSelfTargetSchema>;
|
|
61
61
|
}
|