@datocms/cma-client 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/Client.js.map +1 -1
- package/dist/cjs/generated/resources/AccessToken.js +36 -0
- package/dist/cjs/generated/resources/AccessToken.js.map +1 -1
- package/dist/cjs/generated/resources/AuditLogEvent.js +6 -0
- package/dist/cjs/generated/resources/AuditLogEvent.js.map +1 -1
- package/dist/cjs/generated/resources/BuildEvent.js +12 -0
- package/dist/cjs/generated/resources/BuildEvent.js.map +1 -1
- package/dist/cjs/generated/resources/BuildTrigger.js +54 -0
- package/dist/cjs/generated/resources/BuildTrigger.js.map +1 -1
- package/dist/cjs/generated/resources/DailyUsage.js +6 -0
- package/dist/cjs/generated/resources/DailyUsage.js.map +1 -1
- package/dist/cjs/generated/resources/EditingSession.js +15 -0
- package/dist/cjs/generated/resources/EditingSession.js.map +1 -1
- package/dist/cjs/generated/resources/Environment.js +30 -0
- package/dist/cjs/generated/resources/Environment.js.map +1 -1
- package/dist/cjs/generated/resources/Field.js +48 -0
- package/dist/cjs/generated/resources/Field.js.map +1 -1
- package/dist/cjs/generated/resources/Fieldset.js +30 -0
- package/dist/cjs/generated/resources/Fieldset.js.map +1 -1
- package/dist/cjs/generated/resources/Item.js +114 -0
- package/dist/cjs/generated/resources/Item.js.map +1 -1
- package/dist/cjs/generated/resources/ItemType.js +36 -0
- package/dist/cjs/generated/resources/ItemType.js.map +1 -1
- package/dist/cjs/generated/resources/ItemTypeFilter.js +33 -3
- package/dist/cjs/generated/resources/ItemTypeFilter.js.map +1 -1
- package/dist/cjs/generated/resources/ItemVersion.js +24 -0
- package/dist/cjs/generated/resources/ItemVersion.js.map +1 -1
- package/dist/cjs/generated/resources/JobResult.js +6 -0
- package/dist/cjs/generated/resources/JobResult.js.map +1 -1
- package/dist/cjs/generated/resources/MaintenanceMode.js +18 -0
- package/dist/cjs/generated/resources/MaintenanceMode.js.map +1 -1
- package/dist/cjs/generated/resources/MenuItem.js +32 -2
- package/dist/cjs/generated/resources/MenuItem.js.map +1 -1
- package/dist/cjs/generated/resources/Plugin.js +36 -0
- package/dist/cjs/generated/resources/Plugin.js.map +1 -1
- package/dist/cjs/generated/resources/PublicInfo.js +6 -0
- package/dist/cjs/generated/resources/PublicInfo.js.map +1 -1
- package/dist/cjs/generated/resources/Role.js +30 -0
- package/dist/cjs/generated/resources/Role.js.map +1 -1
- package/dist/cjs/generated/resources/ScheduledPublication.js +12 -0
- package/dist/cjs/generated/resources/ScheduledPublication.js.map +1 -1
- package/dist/cjs/generated/resources/ScheduledUnpublishing.js +12 -0
- package/dist/cjs/generated/resources/ScheduledUnpublishing.js.map +1 -1
- package/dist/cjs/generated/resources/SearchResult.js +12 -0
- package/dist/cjs/generated/resources/SearchResult.js.map +1 -1
- package/dist/cjs/generated/resources/Session.js +6 -0
- package/dist/cjs/generated/resources/Session.js.map +1 -1
- package/dist/cjs/generated/resources/Site.js +18 -0
- package/dist/cjs/generated/resources/Site.js.map +1 -1
- package/dist/cjs/generated/resources/SiteInvitation.js +36 -0
- package/dist/cjs/generated/resources/SiteInvitation.js.map +1 -1
- package/dist/cjs/generated/resources/SsoGroup.js +24 -0
- package/dist/cjs/generated/resources/SsoGroup.js.map +1 -1
- package/dist/cjs/generated/resources/SsoSettings.js +18 -0
- package/dist/cjs/generated/resources/SsoSettings.js.map +1 -1
- package/dist/cjs/generated/resources/SsoUser.js +24 -0
- package/dist/cjs/generated/resources/SsoUser.js.map +1 -1
- package/dist/cjs/generated/resources/SubscriptionFeature.js +6 -0
- package/dist/cjs/generated/resources/SubscriptionFeature.js.map +1 -1
- package/dist/cjs/generated/resources/SubscriptionLimit.js +12 -0
- package/dist/cjs/generated/resources/SubscriptionLimit.js.map +1 -1
- package/dist/cjs/generated/resources/Upload.js +66 -0
- package/dist/cjs/generated/resources/Upload.js.map +1 -1
- package/dist/cjs/generated/resources/UploadFilter.js +30 -0
- package/dist/cjs/generated/resources/UploadFilter.js.map +1 -1
- package/dist/cjs/generated/resources/UploadRequest.js +6 -0
- package/dist/cjs/generated/resources/UploadRequest.js.map +1 -1
- package/dist/cjs/generated/resources/UploadSmartTag.js +12 -0
- package/dist/cjs/generated/resources/UploadSmartTag.js.map +1 -1
- package/dist/cjs/generated/resources/UploadTag.js +18 -0
- package/dist/cjs/generated/resources/UploadTag.js.map +1 -1
- package/dist/cjs/generated/resources/UsageCounter.js +6 -0
- package/dist/cjs/generated/resources/UsageCounter.js.map +1 -1
- package/dist/cjs/generated/resources/User.js +30 -0
- package/dist/cjs/generated/resources/User.js.map +1 -1
- package/dist/cjs/generated/resources/Webhook.js +30 -0
- package/dist/cjs/generated/resources/Webhook.js.map +1 -1
- package/dist/cjs/generated/resources/WebhookCall.js +18 -0
- package/dist/cjs/generated/resources/WebhookCall.js.map +1 -1
- package/dist/cjs/generated/resources/WhiteLabelSettings.js +12 -0
- package/dist/cjs/generated/resources/WhiteLabelSettings.js.map +1 -1
- package/dist/cjs/generated/resources/Workflow.js +30 -0
- package/dist/cjs/generated/resources/Workflow.js.map +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/buildBlockRecord.d.ts +2 -0
- package/dist/esm/generated/Client.d.ts +9 -0
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/SchemaTypes.d.ts +185 -44
- package/dist/esm/generated/SimpleSchemaTypes.d.ts +190 -41
- package/dist/esm/generated/resources/AccessToken.d.ts +36 -0
- package/dist/esm/generated/resources/AccessToken.js +36 -0
- package/dist/esm/generated/resources/AccessToken.js.map +1 -1
- package/dist/esm/generated/resources/AuditLogEvent.d.ts +6 -0
- package/dist/esm/generated/resources/AuditLogEvent.js +6 -0
- package/dist/esm/generated/resources/AuditLogEvent.js.map +1 -1
- package/dist/esm/generated/resources/BuildEvent.d.ts +12 -0
- package/dist/esm/generated/resources/BuildEvent.js +12 -0
- package/dist/esm/generated/resources/BuildEvent.js.map +1 -1
- package/dist/esm/generated/resources/BuildTrigger.d.ts +54 -0
- package/dist/esm/generated/resources/BuildTrigger.js +54 -0
- package/dist/esm/generated/resources/BuildTrigger.js.map +1 -1
- package/dist/esm/generated/resources/DailyUsage.d.ts +6 -0
- package/dist/esm/generated/resources/DailyUsage.js +6 -0
- package/dist/esm/generated/resources/DailyUsage.js.map +1 -1
- package/dist/esm/generated/resources/EditingSession.d.ts +15 -0
- package/dist/esm/generated/resources/EditingSession.js +15 -0
- package/dist/esm/generated/resources/EditingSession.js.map +1 -1
- package/dist/esm/generated/resources/Environment.d.ts +30 -0
- package/dist/esm/generated/resources/Environment.js +30 -0
- package/dist/esm/generated/resources/Environment.js.map +1 -1
- package/dist/esm/generated/resources/Field.d.ts +48 -0
- package/dist/esm/generated/resources/Field.js +48 -0
- package/dist/esm/generated/resources/Field.js.map +1 -1
- package/dist/esm/generated/resources/Fieldset.d.ts +30 -0
- package/dist/esm/generated/resources/Fieldset.js +30 -0
- package/dist/esm/generated/resources/Fieldset.js.map +1 -1
- package/dist/esm/generated/resources/Item.d.ts +114 -0
- package/dist/esm/generated/resources/Item.js +114 -0
- package/dist/esm/generated/resources/Item.js.map +1 -1
- package/dist/esm/generated/resources/ItemType.d.ts +36 -0
- package/dist/esm/generated/resources/ItemType.js +36 -0
- package/dist/esm/generated/resources/ItemType.js.map +1 -1
- package/dist/esm/generated/resources/ItemTypeFilter.d.ts +30 -0
- package/dist/esm/generated/resources/ItemTypeFilter.js +33 -3
- package/dist/esm/generated/resources/ItemTypeFilter.js.map +1 -1
- package/dist/esm/generated/resources/ItemVersion.d.ts +24 -0
- package/dist/esm/generated/resources/ItemVersion.js +24 -0
- package/dist/esm/generated/resources/ItemVersion.js.map +1 -1
- package/dist/esm/generated/resources/JobResult.d.ts +6 -0
- package/dist/esm/generated/resources/JobResult.js +6 -0
- package/dist/esm/generated/resources/JobResult.js.map +1 -1
- package/dist/esm/generated/resources/MaintenanceMode.d.ts +18 -0
- package/dist/esm/generated/resources/MaintenanceMode.js +18 -0
- package/dist/esm/generated/resources/MaintenanceMode.js.map +1 -1
- package/dist/esm/generated/resources/MenuItem.d.ts +30 -0
- package/dist/esm/generated/resources/MenuItem.js +32 -2
- package/dist/esm/generated/resources/MenuItem.js.map +1 -1
- package/dist/esm/generated/resources/Plugin.d.ts +36 -0
- package/dist/esm/generated/resources/Plugin.js +36 -0
- package/dist/esm/generated/resources/Plugin.js.map +1 -1
- package/dist/esm/generated/resources/PublicInfo.d.ts +6 -0
- package/dist/esm/generated/resources/PublicInfo.js +6 -0
- package/dist/esm/generated/resources/PublicInfo.js.map +1 -1
- package/dist/esm/generated/resources/Role.d.ts +30 -0
- package/dist/esm/generated/resources/Role.js +30 -0
- package/dist/esm/generated/resources/Role.js.map +1 -1
- package/dist/esm/generated/resources/ScheduledPublication.d.ts +12 -0
- package/dist/esm/generated/resources/ScheduledPublication.js +12 -0
- package/dist/esm/generated/resources/ScheduledPublication.js.map +1 -1
- package/dist/esm/generated/resources/ScheduledUnpublishing.d.ts +12 -0
- package/dist/esm/generated/resources/ScheduledUnpublishing.js +12 -0
- package/dist/esm/generated/resources/ScheduledUnpublishing.js.map +1 -1
- package/dist/esm/generated/resources/SearchResult.d.ts +12 -0
- package/dist/esm/generated/resources/SearchResult.js +12 -0
- package/dist/esm/generated/resources/SearchResult.js.map +1 -1
- package/dist/esm/generated/resources/Session.d.ts +6 -0
- package/dist/esm/generated/resources/Session.js +6 -0
- package/dist/esm/generated/resources/Session.js.map +1 -1
- package/dist/esm/generated/resources/Site.d.ts +18 -0
- package/dist/esm/generated/resources/Site.js +18 -0
- package/dist/esm/generated/resources/Site.js.map +1 -1
- package/dist/esm/generated/resources/SiteInvitation.d.ts +36 -0
- package/dist/esm/generated/resources/SiteInvitation.js +36 -0
- package/dist/esm/generated/resources/SiteInvitation.js.map +1 -1
- package/dist/esm/generated/resources/SsoGroup.d.ts +24 -0
- package/dist/esm/generated/resources/SsoGroup.js +24 -0
- package/dist/esm/generated/resources/SsoGroup.js.map +1 -1
- package/dist/esm/generated/resources/SsoSettings.d.ts +18 -0
- package/dist/esm/generated/resources/SsoSettings.js +18 -0
- package/dist/esm/generated/resources/SsoSettings.js.map +1 -1
- package/dist/esm/generated/resources/SsoUser.d.ts +24 -0
- package/dist/esm/generated/resources/SsoUser.js +24 -0
- package/dist/esm/generated/resources/SsoUser.js.map +1 -1
- package/dist/esm/generated/resources/SubscriptionFeature.d.ts +6 -0
- package/dist/esm/generated/resources/SubscriptionFeature.js +6 -0
- package/dist/esm/generated/resources/SubscriptionFeature.js.map +1 -1
- package/dist/esm/generated/resources/SubscriptionLimit.d.ts +12 -0
- package/dist/esm/generated/resources/SubscriptionLimit.js +12 -0
- package/dist/esm/generated/resources/SubscriptionLimit.js.map +1 -1
- package/dist/esm/generated/resources/Upload.d.ts +66 -0
- package/dist/esm/generated/resources/Upload.js +66 -0
- package/dist/esm/generated/resources/Upload.js.map +1 -1
- package/dist/esm/generated/resources/UploadFilter.d.ts +30 -0
- package/dist/esm/generated/resources/UploadFilter.js +30 -0
- package/dist/esm/generated/resources/UploadFilter.js.map +1 -1
- package/dist/esm/generated/resources/UploadRequest.d.ts +6 -0
- package/dist/esm/generated/resources/UploadRequest.js +6 -0
- package/dist/esm/generated/resources/UploadRequest.js.map +1 -1
- package/dist/esm/generated/resources/UploadSmartTag.d.ts +12 -0
- package/dist/esm/generated/resources/UploadSmartTag.js +12 -0
- package/dist/esm/generated/resources/UploadSmartTag.js.map +1 -1
- package/dist/esm/generated/resources/UploadTag.d.ts +18 -0
- package/dist/esm/generated/resources/UploadTag.js +18 -0
- package/dist/esm/generated/resources/UploadTag.js.map +1 -1
- package/dist/esm/generated/resources/UsageCounter.d.ts +6 -0
- package/dist/esm/generated/resources/UsageCounter.js +6 -0
- package/dist/esm/generated/resources/UsageCounter.js.map +1 -1
- package/dist/esm/generated/resources/User.d.ts +30 -0
- package/dist/esm/generated/resources/User.js +30 -0
- package/dist/esm/generated/resources/User.js.map +1 -1
- package/dist/esm/generated/resources/Webhook.d.ts +30 -0
- package/dist/esm/generated/resources/Webhook.js +30 -0
- package/dist/esm/generated/resources/Webhook.js.map +1 -1
- package/dist/esm/generated/resources/WebhookCall.d.ts +18 -0
- package/dist/esm/generated/resources/WebhookCall.js +18 -0
- package/dist/esm/generated/resources/WebhookCall.js.map +1 -1
- package/dist/esm/generated/resources/WhiteLabelSettings.d.ts +12 -0
- package/dist/esm/generated/resources/WhiteLabelSettings.js +12 -0
- package/dist/esm/generated/resources/WhiteLabelSettings.js.map +1 -1
- package/dist/esm/generated/resources/Workflow.d.ts +30 -0
- package/dist/esm/generated/resources/Workflow.js +30 -0
- package/dist/esm/generated/resources/Workflow.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/buildBlockRecord.d.ts +2 -0
- package/dist/types/generated/Client.d.ts +9 -0
- package/dist/types/generated/SchemaTypes.d.ts +185 -44
- package/dist/types/generated/SimpleSchemaTypes.d.ts +190 -41
- package/dist/types/generated/resources/AccessToken.d.ts +36 -0
- package/dist/types/generated/resources/AuditLogEvent.d.ts +6 -0
- package/dist/types/generated/resources/BuildEvent.d.ts +12 -0
- package/dist/types/generated/resources/BuildTrigger.d.ts +54 -0
- package/dist/types/generated/resources/DailyUsage.d.ts +6 -0
- package/dist/types/generated/resources/EditingSession.d.ts +15 -0
- package/dist/types/generated/resources/Environment.d.ts +30 -0
- package/dist/types/generated/resources/Field.d.ts +48 -0
- package/dist/types/generated/resources/Fieldset.d.ts +30 -0
- package/dist/types/generated/resources/Item.d.ts +114 -0
- package/dist/types/generated/resources/ItemType.d.ts +36 -0
- package/dist/types/generated/resources/ItemTypeFilter.d.ts +30 -0
- package/dist/types/generated/resources/ItemVersion.d.ts +24 -0
- package/dist/types/generated/resources/JobResult.d.ts +6 -0
- package/dist/types/generated/resources/MaintenanceMode.d.ts +18 -0
- package/dist/types/generated/resources/MenuItem.d.ts +30 -0
- package/dist/types/generated/resources/Plugin.d.ts +36 -0
- package/dist/types/generated/resources/PublicInfo.d.ts +6 -0
- package/dist/types/generated/resources/Role.d.ts +30 -0
- package/dist/types/generated/resources/ScheduledPublication.d.ts +12 -0
- package/dist/types/generated/resources/ScheduledUnpublishing.d.ts +12 -0
- package/dist/types/generated/resources/SearchResult.d.ts +12 -0
- package/dist/types/generated/resources/Session.d.ts +6 -0
- package/dist/types/generated/resources/Site.d.ts +18 -0
- package/dist/types/generated/resources/SiteInvitation.d.ts +36 -0
- package/dist/types/generated/resources/SsoGroup.d.ts +24 -0
- package/dist/types/generated/resources/SsoSettings.d.ts +18 -0
- package/dist/types/generated/resources/SsoUser.d.ts +24 -0
- package/dist/types/generated/resources/SubscriptionFeature.d.ts +6 -0
- package/dist/types/generated/resources/SubscriptionLimit.d.ts +12 -0
- package/dist/types/generated/resources/Upload.d.ts +66 -0
- package/dist/types/generated/resources/UploadFilter.d.ts +30 -0
- package/dist/types/generated/resources/UploadRequest.d.ts +6 -0
- package/dist/types/generated/resources/UploadSmartTag.d.ts +12 -0
- package/dist/types/generated/resources/UploadTag.d.ts +18 -0
- package/dist/types/generated/resources/UsageCounter.d.ts +6 -0
- package/dist/types/generated/resources/User.d.ts +30 -0
- package/dist/types/generated/resources/Webhook.d.ts +30 -0
- package/dist/types/generated/resources/WebhookCall.d.ts +18 -0
- package/dist/types/generated/resources/WhiteLabelSettings.d.ts +12 -0
- package/dist/types/generated/resources/Workflow.d.ts +30 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +4 -4
- package/src/generated/Client.ts +9 -0
- package/src/generated/SchemaTypes.ts +192 -45
- package/src/generated/SimpleSchemaTypes.ts +199 -42
- package/src/generated/resources/AccessToken.ts +36 -0
- package/src/generated/resources/AuditLogEvent.ts +6 -0
- package/src/generated/resources/BuildEvent.ts +12 -0
- package/src/generated/resources/BuildTrigger.ts +54 -0
- package/src/generated/resources/DailyUsage.ts +6 -0
- package/src/generated/resources/EditingSession.ts +15 -0
- package/src/generated/resources/Environment.ts +30 -0
- package/src/generated/resources/Field.ts +48 -0
- package/src/generated/resources/Fieldset.ts +30 -0
- package/src/generated/resources/Item.ts +114 -0
- package/src/generated/resources/ItemType.ts +36 -0
- package/src/generated/resources/ItemTypeFilter.ts +33 -3
- package/src/generated/resources/ItemVersion.ts +24 -0
- package/src/generated/resources/JobResult.ts +6 -0
- package/src/generated/resources/MaintenanceMode.ts +18 -0
- package/src/generated/resources/MenuItem.ts +32 -2
- package/src/generated/resources/Plugin.ts +36 -0
- package/src/generated/resources/PublicInfo.ts +6 -0
- package/src/generated/resources/Role.ts +30 -0
- package/src/generated/resources/ScheduledPublication.ts +12 -0
- package/src/generated/resources/ScheduledUnpublishing.ts +12 -0
- package/src/generated/resources/SearchResult.ts +12 -0
- package/src/generated/resources/Session.ts +6 -0
- package/src/generated/resources/Site.ts +18 -0
- package/src/generated/resources/SiteInvitation.ts +36 -0
- package/src/generated/resources/SsoGroup.ts +24 -0
- package/src/generated/resources/SsoSettings.ts +18 -0
- package/src/generated/resources/SsoUser.ts +24 -0
- package/src/generated/resources/SubscriptionFeature.ts +6 -0
- package/src/generated/resources/SubscriptionLimit.ts +12 -0
- package/src/generated/resources/Upload.ts +66 -0
- package/src/generated/resources/UploadFilter.ts +30 -0
- package/src/generated/resources/UploadRequest.ts +6 -0
- package/src/generated/resources/UploadSmartTag.ts +12 -0
- package/src/generated/resources/UploadTag.ts +18 -0
- package/src/generated/resources/UsageCounter.ts +6 -0
- package/src/generated/resources/User.ts +30 -0
- package/src/generated/resources/Webhook.ts +30 -0
- package/src/generated/resources/WebhookCall.ts +18 -0
- package/src/generated/resources/WhiteLabelSettings.ts +12 -0
- package/src/generated/resources/Workflow.ts +30 -0
- package/src/index.ts +1 -1
|
@@ -303,6 +303,23 @@ export declare type MenuItemType = 'menu_item';
|
|
|
303
303
|
* via the `definition` "type".
|
|
304
304
|
*/
|
|
305
305
|
export declare type ItemTypeType = 'item_type';
|
|
306
|
+
/**
|
|
307
|
+
* JSON API type field
|
|
308
|
+
*
|
|
309
|
+
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
310
|
+
* via the `definition` "type".
|
|
311
|
+
*/
|
|
312
|
+
export declare type ItemTypeFilterType = 'item_type_filter';
|
|
313
|
+
/**
|
|
314
|
+
* ID of filter
|
|
315
|
+
*
|
|
316
|
+
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
317
|
+
* via the `definition` "identity".
|
|
318
|
+
*
|
|
319
|
+
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
320
|
+
* via the `definition` "id".
|
|
321
|
+
*/
|
|
322
|
+
export declare type ItemTypeFilterIdentity = string;
|
|
306
323
|
/**
|
|
307
324
|
* This interface was referenced by `MenuItem`'s JSON-Schema
|
|
308
325
|
* via the `instances.targetSchema` link.
|
|
@@ -611,7 +628,7 @@ export declare type ItemInstancesHrefSchema = {
|
|
|
611
628
|
[k: string]: unknown;
|
|
612
629
|
};
|
|
613
630
|
/**
|
|
614
|
-
* Fields used to order results. You
|
|
631
|
+
* Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
|
|
615
632
|
*/
|
|
616
633
|
order_by?: string;
|
|
617
634
|
/**
|
|
@@ -1023,6 +1040,10 @@ export declare type SearchResultInstancesHrefSchema = {
|
|
|
1023
1040
|
* Attributes to filter search results
|
|
1024
1041
|
*/
|
|
1025
1042
|
filter: {
|
|
1043
|
+
/**
|
|
1044
|
+
* When any value is passed, it enables the fuzzy search: the Levenshtein Edit Distance is used to match more results.
|
|
1045
|
+
*/
|
|
1046
|
+
fuzzy?: string;
|
|
1026
1047
|
/**
|
|
1027
1048
|
* Text to search
|
|
1028
1049
|
*/
|
|
@@ -1159,23 +1180,6 @@ export declare type WebhookCallInstancesHrefSchema = {
|
|
|
1159
1180
|
* via the `instances.targetSchema` link.
|
|
1160
1181
|
*/
|
|
1161
1182
|
export declare type BuildTriggerInstancesTargetSchema = BuildTrigger[];
|
|
1162
|
-
/**
|
|
1163
|
-
* ID of filter
|
|
1164
|
-
*
|
|
1165
|
-
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
1166
|
-
* via the `definition` "identity".
|
|
1167
|
-
*
|
|
1168
|
-
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
1169
|
-
* via the `definition` "id".
|
|
1170
|
-
*/
|
|
1171
|
-
export declare type ItemTypeFilterIdentity = string;
|
|
1172
|
-
/**
|
|
1173
|
-
* JSON API type field
|
|
1174
|
-
*
|
|
1175
|
-
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
1176
|
-
* via the `definition` "type".
|
|
1177
|
-
*/
|
|
1178
|
-
export declare type ItemTypeFilterType = 'item_type_filter';
|
|
1179
1183
|
/**
|
|
1180
1184
|
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
1181
1185
|
* via the `instances.targetSchema` link.
|
|
@@ -3662,10 +3666,11 @@ export declare type MenuItem = {
|
|
|
3662
3666
|
*/
|
|
3663
3667
|
position: number;
|
|
3664
3668
|
/**
|
|
3665
|
-
* Opens link in new tab (used together with `external_url`)
|
|
3669
|
+
* Opens link in new tab (to be used together with `external_url`)
|
|
3666
3670
|
*/
|
|
3667
3671
|
open_in_new_tab: boolean;
|
|
3668
3672
|
item_type: ItemTypeData | null;
|
|
3673
|
+
item_type_filter: ItemTypeFilterData | null;
|
|
3669
3674
|
parent: null | MenuItemData;
|
|
3670
3675
|
children: MenuItemData[];
|
|
3671
3676
|
};
|
|
@@ -3683,6 +3688,16 @@ export declare type ItemTypeData = {
|
|
|
3683
3688
|
type: ItemTypeType;
|
|
3684
3689
|
id: ItemTypeIdentity;
|
|
3685
3690
|
};
|
|
3691
|
+
/**
|
|
3692
|
+
* JSON API data
|
|
3693
|
+
*
|
|
3694
|
+
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
3695
|
+
* via the `definition` "data".
|
|
3696
|
+
*/
|
|
3697
|
+
export declare type ItemTypeFilterData = {
|
|
3698
|
+
type: ItemTypeFilterType;
|
|
3699
|
+
id: ItemTypeFilterIdentity;
|
|
3700
|
+
};
|
|
3686
3701
|
/**
|
|
3687
3702
|
* JSON API data
|
|
3688
3703
|
*
|
|
@@ -3713,7 +3728,7 @@ export declare type MenuItemAttributes = {
|
|
|
3713
3728
|
*/
|
|
3714
3729
|
position: number;
|
|
3715
3730
|
/**
|
|
3716
|
-
* Opens link in new tab (used together with `external_url`)
|
|
3731
|
+
* Opens link in new tab (to be used together with `external_url`)
|
|
3717
3732
|
*/
|
|
3718
3733
|
open_in_new_tab: boolean;
|
|
3719
3734
|
};
|
|
@@ -3725,6 +3740,7 @@ export declare type MenuItemAttributes = {
|
|
|
3725
3740
|
*/
|
|
3726
3741
|
export declare type MenuItemRelationships = {
|
|
3727
3742
|
item_type: ItemTypeData | null;
|
|
3743
|
+
item_type_filter: ItemTypeFilterData | null;
|
|
3728
3744
|
parent: null | MenuItemData;
|
|
3729
3745
|
children: MenuItemData[];
|
|
3730
3746
|
};
|
|
@@ -3745,12 +3761,13 @@ export declare type MenuItemCreateSchema = {
|
|
|
3745
3761
|
/**
|
|
3746
3762
|
* Ordering index
|
|
3747
3763
|
*/
|
|
3748
|
-
position
|
|
3764
|
+
position?: number;
|
|
3749
3765
|
/**
|
|
3750
|
-
* Opens link in new tab (used together with `external_url`)
|
|
3766
|
+
* Opens link in new tab (to be used together with `external_url`)
|
|
3751
3767
|
*/
|
|
3752
3768
|
open_in_new_tab?: boolean;
|
|
3753
3769
|
item_type?: ItemTypeData | null;
|
|
3770
|
+
item_type_filter?: ItemTypeFilterData | null;
|
|
3754
3771
|
parent?: null | MenuItemData;
|
|
3755
3772
|
};
|
|
3756
3773
|
/**
|
|
@@ -3773,10 +3790,11 @@ export declare type MenuItemUpdateSchema = {
|
|
|
3773
3790
|
*/
|
|
3774
3791
|
position?: number;
|
|
3775
3792
|
/**
|
|
3776
|
-
* Opens link in new tab (used together with `external_url`)
|
|
3793
|
+
* Opens link in new tab (to be used together with `external_url`)
|
|
3777
3794
|
*/
|
|
3778
3795
|
open_in_new_tab?: boolean;
|
|
3779
3796
|
item_type?: ItemTypeData | null;
|
|
3797
|
+
item_type_filter?: ItemTypeFilterData | null;
|
|
3780
3798
|
parent?: null | MenuItemData;
|
|
3781
3799
|
};
|
|
3782
3800
|
/**
|
|
@@ -6134,6 +6152,14 @@ export declare type ItemMeta = {
|
|
|
6134
6152
|
* Whether the current record is valid or not
|
|
6135
6153
|
*/
|
|
6136
6154
|
is_valid: boolean;
|
|
6155
|
+
/**
|
|
6156
|
+
* Whether the current version of the record is valid or not
|
|
6157
|
+
*/
|
|
6158
|
+
is_current_version_valid: null | boolean;
|
|
6159
|
+
/**
|
|
6160
|
+
* Whether the published version of record is valid or not
|
|
6161
|
+
*/
|
|
6162
|
+
is_published_version_valid: null | boolean;
|
|
6137
6163
|
/**
|
|
6138
6164
|
* The ID of the current record version
|
|
6139
6165
|
*/
|
|
@@ -6221,6 +6247,14 @@ export declare type ItemCreateSchema = {
|
|
|
6221
6247
|
* Whether the current record is valid or not
|
|
6222
6248
|
*/
|
|
6223
6249
|
is_valid?: boolean;
|
|
6250
|
+
/**
|
|
6251
|
+
* Whether the current version of the record is valid or not
|
|
6252
|
+
*/
|
|
6253
|
+
is_current_version_valid?: null | boolean;
|
|
6254
|
+
/**
|
|
6255
|
+
* Whether the published version of the record is valid or not
|
|
6256
|
+
*/
|
|
6257
|
+
is_published_version_valid?: null | boolean;
|
|
6224
6258
|
/**
|
|
6225
6259
|
* The ID of the current record version
|
|
6226
6260
|
*/
|
|
@@ -6277,6 +6311,14 @@ export declare type ItemUpdateSchema = {
|
|
|
6277
6311
|
* The ID of the current record version (for optimistic locking, see the example)
|
|
6278
6312
|
*/
|
|
6279
6313
|
current_version?: string;
|
|
6314
|
+
/**
|
|
6315
|
+
* Whether the current version of the record is valid or not
|
|
6316
|
+
*/
|
|
6317
|
+
is_current_version_valid?: null | boolean;
|
|
6318
|
+
/**
|
|
6319
|
+
* Whether the published version of record is valid or not
|
|
6320
|
+
*/
|
|
6321
|
+
is_published_version_valid?: null | boolean;
|
|
6280
6322
|
/**
|
|
6281
6323
|
* The new stage to move the record to
|
|
6282
6324
|
*/
|
|
@@ -7807,11 +7849,40 @@ export declare type ItemTypeFilter = {
|
|
|
7807
7849
|
*/
|
|
7808
7850
|
name: string;
|
|
7809
7851
|
/**
|
|
7810
|
-
* The actual filter
|
|
7852
|
+
* The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
|
|
7811
7853
|
*/
|
|
7812
7854
|
filter: {
|
|
7813
7855
|
[k: string]: unknown;
|
|
7814
7856
|
};
|
|
7857
|
+
/**
|
|
7858
|
+
* The columns to show with this filter
|
|
7859
|
+
*/
|
|
7860
|
+
columns: [
|
|
7861
|
+
{
|
|
7862
|
+
/**
|
|
7863
|
+
* Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
|
|
7864
|
+
*/
|
|
7865
|
+
name: string;
|
|
7866
|
+
/**
|
|
7867
|
+
* The percentage width for the column (float, from 0 to 1.0)
|
|
7868
|
+
*/
|
|
7869
|
+
width: number;
|
|
7870
|
+
},
|
|
7871
|
+
...{
|
|
7872
|
+
/**
|
|
7873
|
+
* Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
|
|
7874
|
+
*/
|
|
7875
|
+
name: string;
|
|
7876
|
+
/**
|
|
7877
|
+
* The percentage width for the column (float, from 0 to 1.0)
|
|
7878
|
+
*/
|
|
7879
|
+
width: number;
|
|
7880
|
+
}[]
|
|
7881
|
+
] | null;
|
|
7882
|
+
/**
|
|
7883
|
+
* The ordering to apply with this filter, or `null` for the default model ordering. It follows the form of the `order_by` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
|
|
7884
|
+
*/
|
|
7885
|
+
order_by: string | null;
|
|
7815
7886
|
/**
|
|
7816
7887
|
* Whether it's a shared filter or not
|
|
7817
7888
|
*/
|
|
@@ -7822,16 +7893,6 @@ export declare type ItemTypeFilterCreateTargetSchema = ItemTypeFilter;
|
|
|
7822
7893
|
export declare type ItemTypeFilterUpdateTargetSchema = ItemTypeFilter;
|
|
7823
7894
|
export declare type ItemTypeFilterSelfTargetSchema = ItemTypeFilter;
|
|
7824
7895
|
export declare type ItemTypeFilterDestroyTargetSchema = ItemTypeFilter;
|
|
7825
|
-
/**
|
|
7826
|
-
* JSON API data
|
|
7827
|
-
*
|
|
7828
|
-
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
7829
|
-
* via the `definition` "data".
|
|
7830
|
-
*/
|
|
7831
|
-
export declare type ItemTypeFilterData = {
|
|
7832
|
-
type: ItemTypeFilterType;
|
|
7833
|
-
id: ItemTypeFilterIdentity;
|
|
7834
|
-
};
|
|
7835
7896
|
/**
|
|
7836
7897
|
* JSON API attributes
|
|
7837
7898
|
*
|
|
@@ -7844,11 +7905,40 @@ export declare type ItemTypeFilterAttributes = {
|
|
|
7844
7905
|
*/
|
|
7845
7906
|
name: string;
|
|
7846
7907
|
/**
|
|
7847
|
-
* The actual filter
|
|
7908
|
+
* The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
|
|
7848
7909
|
*/
|
|
7849
7910
|
filter: {
|
|
7850
7911
|
[k: string]: unknown;
|
|
7851
7912
|
};
|
|
7913
|
+
/**
|
|
7914
|
+
* The columns to show with this filter
|
|
7915
|
+
*/
|
|
7916
|
+
columns: [
|
|
7917
|
+
{
|
|
7918
|
+
/**
|
|
7919
|
+
* Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
|
|
7920
|
+
*/
|
|
7921
|
+
name: string;
|
|
7922
|
+
/**
|
|
7923
|
+
* The percentage width for the column (float, from 0 to 1.0)
|
|
7924
|
+
*/
|
|
7925
|
+
width: number;
|
|
7926
|
+
},
|
|
7927
|
+
...{
|
|
7928
|
+
/**
|
|
7929
|
+
* Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
|
|
7930
|
+
*/
|
|
7931
|
+
name: string;
|
|
7932
|
+
/**
|
|
7933
|
+
* The percentage width for the column (float, from 0 to 1.0)
|
|
7934
|
+
*/
|
|
7935
|
+
width: number;
|
|
7936
|
+
}[]
|
|
7937
|
+
] | null;
|
|
7938
|
+
/**
|
|
7939
|
+
* The ordering to apply with this filter, or `null` for the default model ordering. It follows the form of the `order_by` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
|
|
7940
|
+
*/
|
|
7941
|
+
order_by: string | null;
|
|
7852
7942
|
/**
|
|
7853
7943
|
* Whether it's a shared filter or not
|
|
7854
7944
|
*/
|
|
@@ -7874,15 +7964,44 @@ export declare type ItemTypeFilterCreateSchema = {
|
|
|
7874
7964
|
*/
|
|
7875
7965
|
name: string;
|
|
7876
7966
|
/**
|
|
7877
|
-
* The actual filter
|
|
7967
|
+
* The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
|
|
7878
7968
|
*/
|
|
7879
|
-
filter
|
|
7969
|
+
filter?: {
|
|
7880
7970
|
[k: string]: unknown;
|
|
7881
7971
|
};
|
|
7972
|
+
/**
|
|
7973
|
+
* The columns to show with this filter
|
|
7974
|
+
*/
|
|
7975
|
+
columns?: [
|
|
7976
|
+
{
|
|
7977
|
+
/**
|
|
7978
|
+
* Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
|
|
7979
|
+
*/
|
|
7980
|
+
name: string;
|
|
7981
|
+
/**
|
|
7982
|
+
* The percentage width for the column (float, from 0 to 1.0)
|
|
7983
|
+
*/
|
|
7984
|
+
width: number;
|
|
7985
|
+
},
|
|
7986
|
+
...{
|
|
7987
|
+
/**
|
|
7988
|
+
* Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
|
|
7989
|
+
*/
|
|
7990
|
+
name: string;
|
|
7991
|
+
/**
|
|
7992
|
+
* The percentage width for the column (float, from 0 to 1.0)
|
|
7993
|
+
*/
|
|
7994
|
+
width: number;
|
|
7995
|
+
}[]
|
|
7996
|
+
] | null;
|
|
7997
|
+
/**
|
|
7998
|
+
* The ordering to apply with this filter, or `null` for the default model ordering. It follows the form of the `order_by` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
|
|
7999
|
+
*/
|
|
8000
|
+
order_by?: string | null;
|
|
7882
8001
|
/**
|
|
7883
8002
|
* Whether it's a shared filter or not
|
|
7884
8003
|
*/
|
|
7885
|
-
shared
|
|
8004
|
+
shared?: boolean;
|
|
7886
8005
|
item_type: ItemTypeData;
|
|
7887
8006
|
};
|
|
7888
8007
|
/**
|
|
@@ -7895,17 +8014,47 @@ export declare type ItemTypeFilterUpdateSchema = {
|
|
|
7895
8014
|
/**
|
|
7896
8015
|
* The name of the filter
|
|
7897
8016
|
*/
|
|
7898
|
-
name
|
|
8017
|
+
name?: string;
|
|
8018
|
+
/**
|
|
8019
|
+
* The columns to show with this filter
|
|
8020
|
+
*/
|
|
8021
|
+
columns?: [
|
|
8022
|
+
{
|
|
8023
|
+
/**
|
|
8024
|
+
* Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
|
|
8025
|
+
*/
|
|
8026
|
+
name: string;
|
|
8027
|
+
/**
|
|
8028
|
+
* The percentage width for the column (float, from 0 to 1.0)
|
|
8029
|
+
*/
|
|
8030
|
+
width: number;
|
|
8031
|
+
},
|
|
8032
|
+
...{
|
|
8033
|
+
/**
|
|
8034
|
+
* Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
|
|
8035
|
+
*/
|
|
8036
|
+
name: string;
|
|
8037
|
+
/**
|
|
8038
|
+
* The percentage width for the column (float, from 0 to 1.0)
|
|
8039
|
+
*/
|
|
8040
|
+
width: number;
|
|
8041
|
+
}[]
|
|
8042
|
+
] | null;
|
|
8043
|
+
/**
|
|
8044
|
+
* The ordering to apply with this filter, or `null` for the default model ordering. It follows the form of the `order_by` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
|
|
8045
|
+
*/
|
|
8046
|
+
order_by?: string | null;
|
|
7899
8047
|
/**
|
|
7900
8048
|
* Whether it's a shared filter or not
|
|
7901
8049
|
*/
|
|
7902
8050
|
shared?: boolean;
|
|
7903
8051
|
/**
|
|
7904
|
-
* The actual filter
|
|
8052
|
+
* The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
|
|
7905
8053
|
*/
|
|
7906
|
-
filter
|
|
8054
|
+
filter?: {
|
|
7907
8055
|
[k: string]: unknown;
|
|
7908
8056
|
};
|
|
8057
|
+
item_type?: ItemTypeData;
|
|
7909
8058
|
};
|
|
7910
8059
|
/**
|
|
7911
8060
|
* In DatoCMS you can create filters to help you (and other editors) quickly search for uploads
|
|
@@ -7,72 +7,108 @@ export default class AccessToken extends BaseResource {
|
|
|
7
7
|
* Create a new API token
|
|
8
8
|
*
|
|
9
9
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/create
|
|
10
|
+
*
|
|
11
|
+
* @throws {ApiError}
|
|
12
|
+
* @throws {TimeoutError}
|
|
10
13
|
*/
|
|
11
14
|
create(body: SimpleSchemaTypes.AccessTokenCreateSchema): Promise<SimpleSchemaTypes.AccessToken>;
|
|
12
15
|
/**
|
|
13
16
|
* Create a new API token
|
|
14
17
|
*
|
|
15
18
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/create
|
|
19
|
+
*
|
|
20
|
+
* @throws {ApiError}
|
|
21
|
+
* @throws {TimeoutError}
|
|
16
22
|
*/
|
|
17
23
|
rawCreate(body: SchemaTypes.AccessTokenCreateSchema): Promise<SchemaTypes.AccessTokenCreateTargetSchema>;
|
|
18
24
|
/**
|
|
19
25
|
* Update an API token
|
|
20
26
|
*
|
|
21
27
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/update
|
|
28
|
+
*
|
|
29
|
+
* @throws {ApiError}
|
|
30
|
+
* @throws {TimeoutError}
|
|
22
31
|
*/
|
|
23
32
|
update(accessTokenId: string | SimpleSchemaTypes.AccessTokenData, body: SimpleSchemaTypes.AccessTokenUpdateSchema): Promise<SimpleSchemaTypes.AccessToken>;
|
|
24
33
|
/**
|
|
25
34
|
* Update an API token
|
|
26
35
|
*
|
|
27
36
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/update
|
|
37
|
+
*
|
|
38
|
+
* @throws {ApiError}
|
|
39
|
+
* @throws {TimeoutError}
|
|
28
40
|
*/
|
|
29
41
|
rawUpdate(accessTokenId: string, body: SchemaTypes.AccessTokenUpdateSchema): Promise<SchemaTypes.AccessTokenUpdateTargetSchema>;
|
|
30
42
|
/**
|
|
31
43
|
* List all API tokens
|
|
32
44
|
*
|
|
33
45
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/instances
|
|
46
|
+
*
|
|
47
|
+
* @throws {ApiError}
|
|
48
|
+
* @throws {TimeoutError}
|
|
34
49
|
*/
|
|
35
50
|
list(): Promise<SimpleSchemaTypes.AccessTokenInstancesTargetSchema>;
|
|
36
51
|
/**
|
|
37
52
|
* List all API tokens
|
|
38
53
|
*
|
|
39
54
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/instances
|
|
55
|
+
*
|
|
56
|
+
* @throws {ApiError}
|
|
57
|
+
* @throws {TimeoutError}
|
|
40
58
|
*/
|
|
41
59
|
rawList(): Promise<SchemaTypes.AccessTokenInstancesTargetSchema>;
|
|
42
60
|
/**
|
|
43
61
|
* Retrieve an API token
|
|
44
62
|
*
|
|
45
63
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/self
|
|
64
|
+
*
|
|
65
|
+
* @throws {ApiError}
|
|
66
|
+
* @throws {TimeoutError}
|
|
46
67
|
*/
|
|
47
68
|
find(accessTokenId: string | SimpleSchemaTypes.AccessTokenData): Promise<SimpleSchemaTypes.AccessToken>;
|
|
48
69
|
/**
|
|
49
70
|
* Retrieve an API token
|
|
50
71
|
*
|
|
51
72
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/self
|
|
73
|
+
*
|
|
74
|
+
* @throws {ApiError}
|
|
75
|
+
* @throws {TimeoutError}
|
|
52
76
|
*/
|
|
53
77
|
rawFind(accessTokenId: string): Promise<SchemaTypes.AccessTokenSelfTargetSchema>;
|
|
54
78
|
/**
|
|
55
79
|
* Rotate API token
|
|
56
80
|
*
|
|
57
81
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/regenerate_token
|
|
82
|
+
*
|
|
83
|
+
* @throws {ApiError}
|
|
84
|
+
* @throws {TimeoutError}
|
|
58
85
|
*/
|
|
59
86
|
regenerateToken(accessTokenId: string | SimpleSchemaTypes.AccessTokenData): Promise<SimpleSchemaTypes.AccessToken>;
|
|
60
87
|
/**
|
|
61
88
|
* Rotate API token
|
|
62
89
|
*
|
|
63
90
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/regenerate_token
|
|
91
|
+
*
|
|
92
|
+
* @throws {ApiError}
|
|
93
|
+
* @throws {TimeoutError}
|
|
64
94
|
*/
|
|
65
95
|
rawRegenerateToken(accessTokenId: string): Promise<SchemaTypes.AccessTokenRegenerateTokenTargetSchema>;
|
|
66
96
|
/**
|
|
67
97
|
* Delete an API token
|
|
68
98
|
*
|
|
69
99
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/destroy
|
|
100
|
+
*
|
|
101
|
+
* @throws {ApiError}
|
|
102
|
+
* @throws {TimeoutError}
|
|
70
103
|
*/
|
|
71
104
|
destroy(accessTokenId: string | SimpleSchemaTypes.AccessTokenData, queryParams?: SimpleSchemaTypes.AccessTokenDestroyHrefSchema): Promise<SimpleSchemaTypes.AccessToken>;
|
|
72
105
|
/**
|
|
73
106
|
* Delete an API token
|
|
74
107
|
*
|
|
75
108
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/destroy
|
|
109
|
+
*
|
|
110
|
+
* @throws {ApiError}
|
|
111
|
+
* @throws {TimeoutError}
|
|
76
112
|
*/
|
|
77
113
|
rawDestroy(accessTokenId: string, queryParams?: SchemaTypes.AccessTokenDestroyHrefSchema): Promise<SchemaTypes.AccessTokenDestroyTargetSchema>;
|
|
78
114
|
}
|
|
@@ -24,6 +24,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
24
24
|
* Create a new API token
|
|
25
25
|
*
|
|
26
26
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/create
|
|
27
|
+
*
|
|
28
|
+
* @throws {ApiError}
|
|
29
|
+
* @throws {TimeoutError}
|
|
27
30
|
*/
|
|
28
31
|
AccessToken.prototype.create = function (body) {
|
|
29
32
|
return this.rawCreate(Utils.serializeRequestBody(body, {
|
|
@@ -43,6 +46,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
43
46
|
* Create a new API token
|
|
44
47
|
*
|
|
45
48
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/create
|
|
49
|
+
*
|
|
50
|
+
* @throws {ApiError}
|
|
51
|
+
* @throws {TimeoutError}
|
|
46
52
|
*/
|
|
47
53
|
AccessToken.prototype.rawCreate = function (body) {
|
|
48
54
|
return this.client.request({
|
|
@@ -55,6 +61,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
55
61
|
* Update an API token
|
|
56
62
|
*
|
|
57
63
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/update
|
|
64
|
+
*
|
|
65
|
+
* @throws {ApiError}
|
|
66
|
+
* @throws {TimeoutError}
|
|
58
67
|
*/
|
|
59
68
|
AccessToken.prototype.update = function (accessTokenId, body) {
|
|
60
69
|
return this.rawUpdate(Utils.toId(accessTokenId), Utils.serializeRequestBody(body, {
|
|
@@ -75,6 +84,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
75
84
|
* Update an API token
|
|
76
85
|
*
|
|
77
86
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/update
|
|
87
|
+
*
|
|
88
|
+
* @throws {ApiError}
|
|
89
|
+
* @throws {TimeoutError}
|
|
78
90
|
*/
|
|
79
91
|
AccessToken.prototype.rawUpdate = function (accessTokenId, body) {
|
|
80
92
|
return this.client.request({
|
|
@@ -87,6 +99,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
87
99
|
* List all API tokens
|
|
88
100
|
*
|
|
89
101
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/instances
|
|
102
|
+
*
|
|
103
|
+
* @throws {ApiError}
|
|
104
|
+
* @throws {TimeoutError}
|
|
90
105
|
*/
|
|
91
106
|
AccessToken.prototype.list = function () {
|
|
92
107
|
return this.rawList().then(function (body) {
|
|
@@ -97,6 +112,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
97
112
|
* List all API tokens
|
|
98
113
|
*
|
|
99
114
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/instances
|
|
115
|
+
*
|
|
116
|
+
* @throws {ApiError}
|
|
117
|
+
* @throws {TimeoutError}
|
|
100
118
|
*/
|
|
101
119
|
AccessToken.prototype.rawList = function () {
|
|
102
120
|
return this.client.request({
|
|
@@ -108,6 +126,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
108
126
|
* Retrieve an API token
|
|
109
127
|
*
|
|
110
128
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/self
|
|
129
|
+
*
|
|
130
|
+
* @throws {ApiError}
|
|
131
|
+
* @throws {TimeoutError}
|
|
111
132
|
*/
|
|
112
133
|
AccessToken.prototype.find = function (accessTokenId) {
|
|
113
134
|
return this.rawFind(Utils.toId(accessTokenId)).then(function (body) {
|
|
@@ -118,6 +139,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
118
139
|
* Retrieve an API token
|
|
119
140
|
*
|
|
120
141
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/self
|
|
142
|
+
*
|
|
143
|
+
* @throws {ApiError}
|
|
144
|
+
* @throws {TimeoutError}
|
|
121
145
|
*/
|
|
122
146
|
AccessToken.prototype.rawFind = function (accessTokenId) {
|
|
123
147
|
return this.client.request({
|
|
@@ -129,6 +153,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
129
153
|
* Rotate API token
|
|
130
154
|
*
|
|
131
155
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/regenerate_token
|
|
156
|
+
*
|
|
157
|
+
* @throws {ApiError}
|
|
158
|
+
* @throws {TimeoutError}
|
|
132
159
|
*/
|
|
133
160
|
AccessToken.prototype.regenerateToken = function (accessTokenId) {
|
|
134
161
|
return this.rawRegenerateToken(Utils.toId(accessTokenId)).then(function (body) {
|
|
@@ -139,6 +166,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
139
166
|
* Rotate API token
|
|
140
167
|
*
|
|
141
168
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/regenerate_token
|
|
169
|
+
*
|
|
170
|
+
* @throws {ApiError}
|
|
171
|
+
* @throws {TimeoutError}
|
|
142
172
|
*/
|
|
143
173
|
AccessToken.prototype.rawRegenerateToken = function (accessTokenId) {
|
|
144
174
|
return this.client.request({
|
|
@@ -150,6 +180,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
150
180
|
* Delete an API token
|
|
151
181
|
*
|
|
152
182
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/destroy
|
|
183
|
+
*
|
|
184
|
+
* @throws {ApiError}
|
|
185
|
+
* @throws {TimeoutError}
|
|
153
186
|
*/
|
|
154
187
|
AccessToken.prototype.destroy = function (accessTokenId, queryParams) {
|
|
155
188
|
return this.rawDestroy(Utils.toId(accessTokenId), queryParams).then(function (body) {
|
|
@@ -160,6 +193,9 @@ var AccessToken = /** @class */ (function (_super) {
|
|
|
160
193
|
* Delete an API token
|
|
161
194
|
*
|
|
162
195
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/destroy
|
|
196
|
+
*
|
|
197
|
+
* @throws {ApiError}
|
|
198
|
+
* @throws {TimeoutError}
|
|
163
199
|
*/
|
|
164
200
|
AccessToken.prototype.rawDestroy = function (accessTokenId, queryParams) {
|
|
165
201
|
return this.client.request({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessToken.js","sourceRoot":"","sources":["../../../../src/generated/resources/AccessToken.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAyC,+BAAY;IAArD;;
|
|
1
|
+
{"version":3,"file":"AccessToken.js","sourceRoot":"","sources":["../../../../src/generated/resources/AccessToken.ts"],"names":[],"mappings":"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"}
|
|
@@ -7,12 +7,18 @@ export default class AuditLogEvent extends BaseResource {
|
|
|
7
7
|
* List Audit Log events
|
|
8
8
|
*
|
|
9
9
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/audit-log_event/query
|
|
10
|
+
*
|
|
11
|
+
* @throws {ApiError}
|
|
12
|
+
* @throws {TimeoutError}
|
|
10
13
|
*/
|
|
11
14
|
query(body: SimpleSchemaTypes.AuditLogEventQuerySchema): Promise<SimpleSchemaTypes.AuditLogEventQueryTargetSchema>;
|
|
12
15
|
/**
|
|
13
16
|
* List Audit Log events
|
|
14
17
|
*
|
|
15
18
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/audit-log_event/query
|
|
19
|
+
*
|
|
20
|
+
* @throws {ApiError}
|
|
21
|
+
* @throws {TimeoutError}
|
|
16
22
|
*/
|
|
17
23
|
rawQuery(body: SchemaTypes.AuditLogEventQuerySchema): Promise<SchemaTypes.AuditLogEventQueryTargetSchema>;
|
|
18
24
|
}
|
|
@@ -24,6 +24,9 @@ var AuditLogEvent = /** @class */ (function (_super) {
|
|
|
24
24
|
* List Audit Log events
|
|
25
25
|
*
|
|
26
26
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/audit-log_event/query
|
|
27
|
+
*
|
|
28
|
+
* @throws {ApiError}
|
|
29
|
+
* @throws {TimeoutError}
|
|
27
30
|
*/
|
|
28
31
|
AuditLogEvent.prototype.query = function (body) {
|
|
29
32
|
return this.rawQuery(Utils.serializeRequestBody(body, {
|
|
@@ -38,6 +41,9 @@ var AuditLogEvent = /** @class */ (function (_super) {
|
|
|
38
41
|
* List Audit Log events
|
|
39
42
|
*
|
|
40
43
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/audit-log_event/query
|
|
44
|
+
*
|
|
45
|
+
* @throws {ApiError}
|
|
46
|
+
* @throws {TimeoutError}
|
|
41
47
|
*/
|
|
42
48
|
AuditLogEvent.prototype.rawQuery = function (body) {
|
|
43
49
|
return this.client.request({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditLogEvent.js","sourceRoot":"","sources":["../../../../src/generated/resources/AuditLogEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAA2C,iCAAY;IAAvD;;
|
|
1
|
+
{"version":3,"file":"AuditLogEvent.js","sourceRoot":"","sources":["../../../../src/generated/resources/AuditLogEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAA2C,iCAAY;IAAvD;;IA0CA,CAAC;IAvCC;;;;;;;OAOG;IACH,6BAAK,GAAL,UAAM,IAAgD;QACpD,OAAO,IAAI,CAAC,QAAQ,CAClB,KAAK,CAAC,oBAAoB,CAAuC,IAAI,EAAE;YACrE,IAAI,EAAE,iBAAiB;YACvB,UAAU,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,cAAc,CAAC;YACpD,aAAa,EAAE,EAAE;SAClB,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,gCAAQ,GAAR,UACE,IAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6C;YACrE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAxCe,kBAAI,GAAsB,iBAAiB,CAAC;IAyC9D,oBAAC;CAAA,AA1CD,CAA2C,YAAY,GA0CtD;eA1CoB,aAAa"}
|