@datocms/cma-client 5.2.0-alpha.3 → 5.2.0-alpha.5
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/README.md +4 -0
- package/dist/cjs/generated/Client.js +3 -3
- package/dist/cjs/generated/Client.js.map +1 -1
- package/dist/cjs/generated/resources/ItemType.js +12 -12
- package/dist/cjs/generated/resources/Role.js +8 -8
- package/dist/cjs/generated/resources/Role.js.map +1 -1
- package/dist/cjs/generated/resources/{SiteSearchSource.js → SearchIndex.js} +59 -71
- package/dist/cjs/generated/resources/SearchIndex.js.map +1 -0
- package/dist/cjs/generated/resources/{SiteSearchSourceEvent.js → SearchIndexEvent.js} +19 -19
- package/dist/cjs/generated/resources/SearchIndexEvent.js.map +1 -0
- package/dist/cjs/generated/resources/index.js +5 -5
- package/dist/cjs/generated/resources/index.js.map +1 -1
- package/dist/cjs/utilities/schemaRepository.js +131 -0
- package/dist/cjs/utilities/schemaRepository.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +273 -270
- package/dist/esm/generated/Client.d.ts +2 -2
- package/dist/esm/generated/Client.js +3 -3
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +265 -258
- package/dist/esm/generated/resources/ItemType.d.ts +12 -12
- package/dist/esm/generated/resources/ItemType.js +12 -12
- package/dist/esm/generated/resources/Role.js +8 -8
- package/dist/esm/generated/resources/Role.js.map +1 -1
- package/dist/esm/generated/resources/SearchIndex.d.ts +132 -0
- package/dist/esm/generated/resources/{SiteSearchSource.js → SearchIndex.js} +58 -70
- package/dist/esm/generated/resources/SearchIndex.js.map +1 -0
- package/dist/esm/generated/resources/SearchIndexEvent.d.ts +61 -0
- package/dist/esm/generated/resources/{SiteSearchSourceEvent.js → SearchIndexEvent.js} +18 -18
- package/dist/esm/generated/resources/SearchIndexEvent.js.map +1 -0
- package/dist/esm/generated/resources/index.d.ts +2 -2
- package/dist/esm/generated/resources/index.js +2 -2
- package/dist/esm/generated/resources/index.js.map +1 -1
- package/dist/esm/utilities/schemaRepository.d.ts +42 -2
- package/dist/esm/utilities/schemaRepository.js +132 -1
- package/dist/esm/utilities/schemaRepository.js.map +1 -1
- package/dist/types/generated/ApiTypes.d.ts +273 -270
- package/dist/types/generated/Client.d.ts +2 -2
- package/dist/types/generated/RawApiTypes.d.ts +265 -258
- package/dist/types/generated/resources/ItemType.d.ts +12 -12
- package/dist/types/generated/resources/SearchIndex.d.ts +132 -0
- package/dist/types/generated/resources/SearchIndexEvent.d.ts +61 -0
- package/dist/types/generated/resources/index.d.ts +2 -2
- package/dist/types/utilities/schemaRepository.d.ts +42 -2
- package/package.json +3 -3
- package/resources.json +83 -85
- package/src/generated/ApiTypes.ts +274 -272
- package/src/generated/Client.ts +5 -5
- package/src/generated/RawApiTypes.ts +266 -259
- package/src/generated/resources/ItemType.ts +12 -12
- package/src/generated/resources/Role.ts +8 -8
- package/src/generated/resources/SearchIndex.ts +243 -0
- package/src/generated/resources/{SiteSearchSourceEvent.ts → SearchIndexEvent.ts} +32 -34
- package/src/generated/resources/index.ts +2 -2
- package/src/utilities/schemaRepository.ts +167 -9
- package/dist/cjs/generated/resources/SiteSearchSource.js.map +0 -1
- package/dist/cjs/generated/resources/SiteSearchSourceEvent.js.map +0 -1
- package/dist/esm/generated/resources/SiteSearchSource.d.ts +0 -132
- package/dist/esm/generated/resources/SiteSearchSource.js.map +0 -1
- package/dist/esm/generated/resources/SiteSearchSourceEvent.d.ts +0 -61
- package/dist/esm/generated/resources/SiteSearchSourceEvent.js.map +0 -1
- package/dist/types/generated/resources/SiteSearchSource.d.ts +0 -132
- package/dist/types/generated/resources/SiteSearchSourceEvent.d.ts +0 -61
- package/src/generated/resources/SiteSearchSource.ts +0 -267
|
@@ -91,15 +91,15 @@ export type EnvironmentIdentity = string;
|
|
|
91
91
|
*/
|
|
92
92
|
export type BuildTriggerIdentity = string;
|
|
93
93
|
/**
|
|
94
|
-
* ID of
|
|
94
|
+
* ID of search_index
|
|
95
95
|
*
|
|
96
|
-
* This interface was referenced by `
|
|
96
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
97
97
|
* via the `definition` "identity".
|
|
98
98
|
*
|
|
99
|
-
* This interface was referenced by `
|
|
99
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
100
100
|
* via the `definition` "id".
|
|
101
101
|
*/
|
|
102
|
-
export type
|
|
102
|
+
export type SearchIndexIdentity = string;
|
|
103
103
|
/**
|
|
104
104
|
* This interface was referenced by `User`'s JSON-Schema
|
|
105
105
|
* via the `definition` "type".
|
|
@@ -631,30 +631,30 @@ export type BuildEventInstancesHrefSchema = {
|
|
|
631
631
|
[k: string]: unknown;
|
|
632
632
|
};
|
|
633
633
|
/**
|
|
634
|
-
* This interface was referenced by `
|
|
634
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
635
635
|
* via the `definition` "type".
|
|
636
636
|
*/
|
|
637
|
-
export type
|
|
637
|
+
export type SearchIndexEventType = 'search_index_event';
|
|
638
638
|
/**
|
|
639
|
-
* ID of
|
|
639
|
+
* ID of search index event
|
|
640
640
|
*
|
|
641
|
-
* This interface was referenced by `
|
|
641
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
642
642
|
* via the `definition` "identity".
|
|
643
643
|
*
|
|
644
|
-
* This interface was referenced by `
|
|
644
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
645
645
|
* via the `definition` "id".
|
|
646
646
|
*/
|
|
647
|
-
export type
|
|
647
|
+
export type SearchIndexEventIdentity = string;
|
|
648
648
|
/**
|
|
649
|
-
* This interface was referenced by `
|
|
649
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
650
650
|
* via the `definition` "type".
|
|
651
651
|
*/
|
|
652
|
-
export type
|
|
652
|
+
export type SearchIndexType = 'search_index';
|
|
653
653
|
/**
|
|
654
|
-
* This interface was referenced by `
|
|
654
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
655
655
|
* via the `instances.hrefSchema` link.
|
|
656
656
|
*/
|
|
657
|
-
export type
|
|
657
|
+
export type SearchIndexEventInstancesHrefSchema = {
|
|
658
658
|
/**
|
|
659
659
|
* Parameters to control offset-based pagination
|
|
660
660
|
*/
|
|
@@ -677,7 +677,7 @@ export type SiteSearchSourceEventInstancesHrefSchema = {
|
|
|
677
677
|
*/
|
|
678
678
|
ids?: string;
|
|
679
679
|
fields?: {
|
|
680
|
-
|
|
680
|
+
search_index_id?: {
|
|
681
681
|
eq?: string;
|
|
682
682
|
};
|
|
683
683
|
event_type?: {
|
|
@@ -695,7 +695,7 @@ export type SiteSearchSourceEventInstancesHrefSchema = {
|
|
|
695
695
|
/**
|
|
696
696
|
* Fields used to order results
|
|
697
697
|
*/
|
|
698
|
-
order_by?: '
|
|
698
|
+
order_by?: 'search_index_id_asc' | 'search_index_id_desc' | 'created_at_asc' | 'created_at_desc' | 'event_type_asc' | 'event_type_desc';
|
|
699
699
|
[k: string]: unknown;
|
|
700
700
|
};
|
|
701
701
|
/**
|
|
@@ -712,19 +712,19 @@ export type ItemInstancesHrefSchema<D extends ItemTypeDefinition = ItemTypeDefin
|
|
|
712
712
|
*/
|
|
713
713
|
filter?: {
|
|
714
714
|
/**
|
|
715
|
-
* Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`
|
|
715
|
+
* Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`. You can combine it with meta fields (like `_published_at`, `_status`), but _must not_ use model-specific fields
|
|
716
716
|
*/
|
|
717
717
|
ids?: string;
|
|
718
718
|
/**
|
|
719
|
-
* Model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`.
|
|
719
|
+
* Model/Block model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. When passing a single element, you can use both meta fields and model-specific fields (note: model-specific fields only work with models, not block models). When passing multiple comma-separated values, you can use meta fields but _must not_ use model-specific fields
|
|
720
720
|
*/
|
|
721
721
|
type?: string;
|
|
722
722
|
/**
|
|
723
|
-
* Textual query to match.
|
|
723
|
+
* Textual query to match. Can be combined with other filters. When used, only records (not blocks) are returned. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
|
|
724
724
|
*/
|
|
725
725
|
query?: string;
|
|
726
726
|
/**
|
|
727
|
-
*
|
|
727
|
+
* Filter by record fields. Meta fields (like `_published_at`, `_status`) can be used in most cases. Model-specific fields (like `title`, `name`) require `filter[type]` to specify a single model, and only work with models (not block models). Same syntax as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): use square brackets to indicate nesting levels. E.g. `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for field names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
|
|
728
728
|
*/
|
|
729
729
|
fields?: ToItemHrefSchemaField<D>;
|
|
730
730
|
/**
|
|
@@ -785,7 +785,7 @@ export type ItemSelfHrefSchema = {
|
|
|
785
785
|
*/
|
|
786
786
|
nested?: boolean;
|
|
787
787
|
/**
|
|
788
|
-
* Whether you want the currently published versions (`published
|
|
788
|
+
* Whether you want the currently published versions (`published`) of your records, or the latest available (`current`, default)
|
|
789
789
|
*/
|
|
790
790
|
version?: string;
|
|
791
791
|
[k: string]: unknown;
|
|
@@ -1098,11 +1098,11 @@ export type SearchResultInstancesHrefSchema = {
|
|
|
1098
1098
|
*/
|
|
1099
1099
|
query: string;
|
|
1100
1100
|
/**
|
|
1101
|
-
* The
|
|
1101
|
+
* The search index ID on which the search will be performed. If not provided, the first enabled search index will be used.
|
|
1102
1102
|
*/
|
|
1103
|
-
|
|
1103
|
+
search_index_id?: string;
|
|
1104
1104
|
/**
|
|
1105
|
-
*
|
|
1105
|
+
* The build trigger ID or name on which the search will be performed.
|
|
1106
1106
|
*/
|
|
1107
1107
|
build_trigger_id?: string;
|
|
1108
1108
|
/**
|
|
@@ -1581,7 +1581,7 @@ export type RoleAttributes = {
|
|
|
1581
1581
|
*/
|
|
1582
1582
|
can_edit_site: boolean;
|
|
1583
1583
|
/**
|
|
1584
|
-
* Can create
|
|
1584
|
+
* Can create and edit models and plugins
|
|
1585
1585
|
*/
|
|
1586
1586
|
can_edit_schema: boolean;
|
|
1587
1587
|
/**
|
|
@@ -1601,31 +1601,31 @@ export type RoleAttributes = {
|
|
|
1601
1601
|
*/
|
|
1602
1602
|
environments_access: 'all' | 'primary_only' | 'sandbox_only' | 'none';
|
|
1603
1603
|
/**
|
|
1604
|
-
* Can create
|
|
1604
|
+
* Can create and edit roles and invite/remove collaborators
|
|
1605
1605
|
*/
|
|
1606
1606
|
can_manage_users: boolean;
|
|
1607
1607
|
/**
|
|
1608
|
-
* Can create
|
|
1608
|
+
* Can create and edit shared filters (both for models and the media area)
|
|
1609
1609
|
*/
|
|
1610
1610
|
can_manage_shared_filters: boolean;
|
|
1611
1611
|
/**
|
|
1612
|
-
* Can create
|
|
1612
|
+
* Can create and edit upload collections
|
|
1613
1613
|
*/
|
|
1614
1614
|
can_manage_upload_collections: boolean;
|
|
1615
1615
|
/**
|
|
1616
|
-
* Can create
|
|
1616
|
+
* Can create and edit build triggers
|
|
1617
1617
|
*/
|
|
1618
1618
|
can_manage_build_triggers: boolean;
|
|
1619
1619
|
/**
|
|
1620
|
-
* Can create
|
|
1620
|
+
* Can create and edit search indexes
|
|
1621
1621
|
*/
|
|
1622
|
-
|
|
1622
|
+
can_manage_search_indexes: boolean;
|
|
1623
1623
|
/**
|
|
1624
|
-
* Can create
|
|
1624
|
+
* Can create and edit webhooks
|
|
1625
1625
|
*/
|
|
1626
1626
|
can_manage_webhooks: boolean;
|
|
1627
1627
|
/**
|
|
1628
|
-
* Can create
|
|
1628
|
+
* Can create and delete sandbox environments and promote them to primary environment
|
|
1629
1629
|
*/
|
|
1630
1630
|
can_manage_environments: boolean;
|
|
1631
1631
|
/**
|
|
@@ -1637,7 +1637,7 @@ export type RoleAttributes = {
|
|
|
1637
1637
|
*/
|
|
1638
1638
|
can_access_audit_log: boolean;
|
|
1639
1639
|
/**
|
|
1640
|
-
* Can create
|
|
1640
|
+
* Can create and edit workflows
|
|
1641
1641
|
*/
|
|
1642
1642
|
can_manage_workflows: boolean;
|
|
1643
1643
|
/**
|
|
@@ -1653,9 +1653,9 @@ export type RoleAttributes = {
|
|
|
1653
1653
|
*/
|
|
1654
1654
|
can_access_build_events_log: boolean;
|
|
1655
1655
|
/**
|
|
1656
|
-
* Can access the
|
|
1656
|
+
* Can access the search index events log
|
|
1657
1657
|
*/
|
|
1658
|
-
|
|
1658
|
+
can_access_search_index_events_log: boolean;
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Allowed actions on a model (or all) for a role
|
|
1661
1661
|
*/
|
|
@@ -1765,16 +1765,16 @@ export type RoleAttributes = {
|
|
|
1765
1765
|
build_trigger?: BuildTriggerIdentity | null;
|
|
1766
1766
|
}[];
|
|
1767
1767
|
/**
|
|
1768
|
-
*
|
|
1768
|
+
* Search indexes that can be triggered by a role
|
|
1769
1769
|
*/
|
|
1770
|
-
|
|
1771
|
-
|
|
1770
|
+
positive_search_index_permissions: {
|
|
1771
|
+
search_index?: SearchIndexIdentity | null;
|
|
1772
1772
|
}[];
|
|
1773
1773
|
/**
|
|
1774
|
-
*
|
|
1774
|
+
* Search indexes that can't be triggered by a role
|
|
1775
1775
|
*/
|
|
1776
|
-
|
|
1777
|
-
|
|
1776
|
+
negative_search_index_permissions: {
|
|
1777
|
+
search_index?: SearchIndexIdentity | null;
|
|
1778
1778
|
}[];
|
|
1779
1779
|
};
|
|
1780
1780
|
/**
|
|
@@ -1821,7 +1821,7 @@ export type RoleMeta = {
|
|
|
1821
1821
|
*/
|
|
1822
1822
|
can_edit_site: boolean;
|
|
1823
1823
|
/**
|
|
1824
|
-
* Can create
|
|
1824
|
+
* Can create and edit models and plugins
|
|
1825
1825
|
*/
|
|
1826
1826
|
can_edit_schema: boolean;
|
|
1827
1827
|
/**
|
|
@@ -1841,31 +1841,31 @@ export type RoleMeta = {
|
|
|
1841
1841
|
*/
|
|
1842
1842
|
environments_access: 'all' | 'primary_only' | 'sandbox_only' | 'none';
|
|
1843
1843
|
/**
|
|
1844
|
-
* Can create
|
|
1844
|
+
* Can create and edit roles and invite/remove collaborators
|
|
1845
1845
|
*/
|
|
1846
1846
|
can_manage_users: boolean;
|
|
1847
1847
|
/**
|
|
1848
|
-
* Can create
|
|
1848
|
+
* Can create and edit shared filters (both for models and the media area)
|
|
1849
1849
|
*/
|
|
1850
1850
|
can_manage_shared_filters: boolean;
|
|
1851
1851
|
/**
|
|
1852
|
-
* Can create
|
|
1852
|
+
* Can create and edit upload collections
|
|
1853
1853
|
*/
|
|
1854
1854
|
can_manage_upload_collections: boolean;
|
|
1855
1855
|
/**
|
|
1856
|
-
* Can create
|
|
1856
|
+
* Can create and edit build triggers
|
|
1857
1857
|
*/
|
|
1858
1858
|
can_manage_build_triggers: boolean;
|
|
1859
1859
|
/**
|
|
1860
|
-
* Can create
|
|
1860
|
+
* Can create and edit search indexes
|
|
1861
1861
|
*/
|
|
1862
|
-
|
|
1862
|
+
can_manage_search_indexes: boolean;
|
|
1863
1863
|
/**
|
|
1864
|
-
* Can create
|
|
1864
|
+
* Can create and edit webhooks
|
|
1865
1865
|
*/
|
|
1866
1866
|
can_manage_webhooks: boolean;
|
|
1867
1867
|
/**
|
|
1868
|
-
* Can create
|
|
1868
|
+
* Can create and delete sandbox environments and promote them to primary environment
|
|
1869
1869
|
*/
|
|
1870
1870
|
can_manage_environments: boolean;
|
|
1871
1871
|
/**
|
|
@@ -1877,7 +1877,7 @@ export type RoleMeta = {
|
|
|
1877
1877
|
*/
|
|
1878
1878
|
can_access_audit_log: boolean;
|
|
1879
1879
|
/**
|
|
1880
|
-
* Can create
|
|
1880
|
+
* Can create and edit workflows
|
|
1881
1881
|
*/
|
|
1882
1882
|
can_manage_workflows: boolean;
|
|
1883
1883
|
/**
|
|
@@ -1893,9 +1893,9 @@ export type RoleMeta = {
|
|
|
1893
1893
|
*/
|
|
1894
1894
|
can_access_build_events_log: boolean;
|
|
1895
1895
|
/**
|
|
1896
|
-
* Can access the
|
|
1896
|
+
* Can access the search index events log
|
|
1897
1897
|
*/
|
|
1898
|
-
|
|
1898
|
+
can_access_search_index_events_log: boolean;
|
|
1899
1899
|
/**
|
|
1900
1900
|
* Allowed actions on a model (or all) for a role
|
|
1901
1901
|
*/
|
|
@@ -2005,16 +2005,16 @@ export type RoleMeta = {
|
|
|
2005
2005
|
build_trigger?: BuildTriggerIdentity | null;
|
|
2006
2006
|
}[];
|
|
2007
2007
|
/**
|
|
2008
|
-
*
|
|
2008
|
+
* Search indexes that can be triggered by a role
|
|
2009
2009
|
*/
|
|
2010
|
-
|
|
2011
|
-
|
|
2010
|
+
positive_search_index_permissions: {
|
|
2011
|
+
search_index?: SearchIndexIdentity | null;
|
|
2012
2012
|
}[];
|
|
2013
2013
|
/**
|
|
2014
|
-
*
|
|
2014
|
+
* Search indexes that can't be triggered by a role
|
|
2015
2015
|
*/
|
|
2016
|
-
|
|
2017
|
-
|
|
2016
|
+
negative_search_index_permissions: {
|
|
2017
|
+
search_index?: SearchIndexIdentity | null;
|
|
2018
2018
|
}[];
|
|
2019
2019
|
};
|
|
2020
2020
|
};
|
|
@@ -2042,7 +2042,7 @@ export type RoleCreateSchema = {
|
|
|
2042
2042
|
*/
|
|
2043
2043
|
can_edit_site?: boolean;
|
|
2044
2044
|
/**
|
|
2045
|
-
* Can create
|
|
2045
|
+
* Can create and edit models and plugins
|
|
2046
2046
|
*/
|
|
2047
2047
|
can_edit_schema?: boolean;
|
|
2048
2048
|
/**
|
|
@@ -2062,31 +2062,31 @@ export type RoleCreateSchema = {
|
|
|
2062
2062
|
*/
|
|
2063
2063
|
environments_access?: 'all' | 'primary_only' | 'sandbox_only' | 'none';
|
|
2064
2064
|
/**
|
|
2065
|
-
* Can create
|
|
2065
|
+
* Can create and edit roles and invite/remove collaborators
|
|
2066
2066
|
*/
|
|
2067
2067
|
can_manage_users?: boolean;
|
|
2068
2068
|
/**
|
|
2069
|
-
* Can create
|
|
2069
|
+
* Can create and edit shared filters (both for models and the media area)
|
|
2070
2070
|
*/
|
|
2071
2071
|
can_manage_shared_filters?: boolean;
|
|
2072
2072
|
/**
|
|
2073
|
-
* Can create
|
|
2073
|
+
* Can create and edit search indexes
|
|
2074
2074
|
*/
|
|
2075
|
-
|
|
2075
|
+
can_manage_search_indexes?: boolean;
|
|
2076
2076
|
/**
|
|
2077
|
-
* Can create
|
|
2077
|
+
* Can create and edit upload collections
|
|
2078
2078
|
*/
|
|
2079
2079
|
can_manage_upload_collections?: boolean;
|
|
2080
2080
|
/**
|
|
2081
|
-
* Can create
|
|
2081
|
+
* Can create and edit build triggers
|
|
2082
2082
|
*/
|
|
2083
2083
|
can_manage_build_triggers?: boolean;
|
|
2084
2084
|
/**
|
|
2085
|
-
* Can create
|
|
2085
|
+
* Can create and edit webhooks
|
|
2086
2086
|
*/
|
|
2087
2087
|
can_manage_webhooks?: boolean;
|
|
2088
2088
|
/**
|
|
2089
|
-
* Can create
|
|
2089
|
+
* Can create and delete sandbox environments and promote them to primary environment
|
|
2090
2090
|
*/
|
|
2091
2091
|
can_manage_environments?: boolean;
|
|
2092
2092
|
/**
|
|
@@ -2098,7 +2098,7 @@ export type RoleCreateSchema = {
|
|
|
2098
2098
|
*/
|
|
2099
2099
|
can_access_audit_log?: boolean;
|
|
2100
2100
|
/**
|
|
2101
|
-
* Can create
|
|
2101
|
+
* Can create and edit workflows
|
|
2102
2102
|
*/
|
|
2103
2103
|
can_manage_workflows?: boolean;
|
|
2104
2104
|
/**
|
|
@@ -2114,9 +2114,9 @@ export type RoleCreateSchema = {
|
|
|
2114
2114
|
*/
|
|
2115
2115
|
can_access_build_events_log?: boolean;
|
|
2116
2116
|
/**
|
|
2117
|
-
* Can access the
|
|
2117
|
+
* Can access the search index events log
|
|
2118
2118
|
*/
|
|
2119
|
-
|
|
2119
|
+
can_access_search_index_events_log?: boolean;
|
|
2120
2120
|
/**
|
|
2121
2121
|
* Allowed actions on a model (or all) for a role
|
|
2122
2122
|
*/
|
|
@@ -2226,16 +2226,16 @@ export type RoleCreateSchema = {
|
|
|
2226
2226
|
build_trigger?: BuildTriggerIdentity | null;
|
|
2227
2227
|
}[];
|
|
2228
2228
|
/**
|
|
2229
|
-
*
|
|
2229
|
+
* Search indexes that can be triggered by a role
|
|
2230
2230
|
*/
|
|
2231
|
-
|
|
2232
|
-
|
|
2231
|
+
positive_search_index_permissions?: {
|
|
2232
|
+
search_index?: SearchIndexIdentity | null;
|
|
2233
2233
|
}[];
|
|
2234
2234
|
/**
|
|
2235
|
-
*
|
|
2235
|
+
* Search indexes that can't be triggered by a role
|
|
2236
2236
|
*/
|
|
2237
|
-
|
|
2238
|
-
|
|
2237
|
+
negative_search_index_permissions?: {
|
|
2238
|
+
search_index?: SearchIndexIdentity | null;
|
|
2239
2239
|
}[];
|
|
2240
2240
|
};
|
|
2241
2241
|
/**
|
|
@@ -2284,7 +2284,7 @@ export type RoleUpdateSchema = {
|
|
|
2284
2284
|
*/
|
|
2285
2285
|
can_edit_site?: boolean;
|
|
2286
2286
|
/**
|
|
2287
|
-
* Can create
|
|
2287
|
+
* Can create and edit models and plugins
|
|
2288
2288
|
*/
|
|
2289
2289
|
can_edit_schema?: boolean;
|
|
2290
2290
|
/**
|
|
@@ -2304,31 +2304,31 @@ export type RoleUpdateSchema = {
|
|
|
2304
2304
|
*/
|
|
2305
2305
|
environments_access?: 'all' | 'primary_only' | 'sandbox_only' | 'none';
|
|
2306
2306
|
/**
|
|
2307
|
-
* Can create
|
|
2307
|
+
* Can create and edit roles and invite/remove collaborators
|
|
2308
2308
|
*/
|
|
2309
2309
|
can_manage_users?: boolean;
|
|
2310
2310
|
/**
|
|
2311
|
-
* Can create
|
|
2311
|
+
* Can create and edit shared filters (both for models and the media area)
|
|
2312
2312
|
*/
|
|
2313
2313
|
can_manage_shared_filters?: boolean;
|
|
2314
2314
|
/**
|
|
2315
|
-
* Can create
|
|
2315
|
+
* Can create and edit search indexes
|
|
2316
2316
|
*/
|
|
2317
|
-
|
|
2317
|
+
can_manage_search_indexes?: boolean;
|
|
2318
2318
|
/**
|
|
2319
|
-
* Can create
|
|
2319
|
+
* Can create and edit upload collections
|
|
2320
2320
|
*/
|
|
2321
2321
|
can_manage_upload_collections?: boolean;
|
|
2322
2322
|
/**
|
|
2323
|
-
* Can create
|
|
2323
|
+
* Can create and edit build triggers
|
|
2324
2324
|
*/
|
|
2325
2325
|
can_manage_build_triggers?: boolean;
|
|
2326
2326
|
/**
|
|
2327
|
-
* Can create
|
|
2327
|
+
* Can create and edit webhooks
|
|
2328
2328
|
*/
|
|
2329
2329
|
can_manage_webhooks?: boolean;
|
|
2330
2330
|
/**
|
|
2331
|
-
* Can create
|
|
2331
|
+
* Can create and delete sandbox environments and promote them to primary environment
|
|
2332
2332
|
*/
|
|
2333
2333
|
can_manage_environments?: boolean;
|
|
2334
2334
|
/**
|
|
@@ -2340,7 +2340,7 @@ export type RoleUpdateSchema = {
|
|
|
2340
2340
|
*/
|
|
2341
2341
|
can_access_audit_log?: boolean;
|
|
2342
2342
|
/**
|
|
2343
|
-
* Can create
|
|
2343
|
+
* Can create and edit workflows
|
|
2344
2344
|
*/
|
|
2345
2345
|
can_manage_workflows?: boolean;
|
|
2346
2346
|
/**
|
|
@@ -2356,9 +2356,9 @@ export type RoleUpdateSchema = {
|
|
|
2356
2356
|
*/
|
|
2357
2357
|
can_access_build_events_log?: boolean;
|
|
2358
2358
|
/**
|
|
2359
|
-
* Can access the
|
|
2359
|
+
* Can access the search index events log
|
|
2360
2360
|
*/
|
|
2361
|
-
|
|
2361
|
+
can_access_search_index_events_log?: boolean;
|
|
2362
2362
|
/**
|
|
2363
2363
|
* Allowed actions on a model (or all) for a role
|
|
2364
2364
|
*/
|
|
@@ -2468,16 +2468,16 @@ export type RoleUpdateSchema = {
|
|
|
2468
2468
|
build_trigger?: BuildTriggerIdentity | null;
|
|
2469
2469
|
}[];
|
|
2470
2470
|
/**
|
|
2471
|
-
*
|
|
2471
|
+
* Search indexes that can be triggered by a role
|
|
2472
2472
|
*/
|
|
2473
|
-
|
|
2474
|
-
|
|
2473
|
+
positive_search_index_permissions?: {
|
|
2474
|
+
search_index?: SearchIndexIdentity | null;
|
|
2475
2475
|
}[];
|
|
2476
2476
|
/**
|
|
2477
|
-
*
|
|
2477
|
+
* Search indexes that can't be triggered by a role
|
|
2478
2478
|
*/
|
|
2479
|
-
|
|
2480
|
-
|
|
2479
|
+
negative_search_index_permissions?: {
|
|
2480
|
+
search_index?: SearchIndexIdentity | null;
|
|
2481
2481
|
}[];
|
|
2482
2482
|
};
|
|
2483
2483
|
/**
|
|
@@ -3246,9 +3246,9 @@ export type SitePlanAttributes = {
|
|
|
3246
3246
|
*/
|
|
3247
3247
|
build_triggers: null | number;
|
|
3248
3248
|
/**
|
|
3249
|
-
* Number of
|
|
3249
|
+
* Number of search indexes
|
|
3250
3250
|
*/
|
|
3251
|
-
|
|
3251
|
+
search_indexes: null | number;
|
|
3252
3252
|
/**
|
|
3253
3253
|
* Number of plugins
|
|
3254
3254
|
*/
|
|
@@ -3413,7 +3413,7 @@ export type SitePlanAttributes = {
|
|
|
3413
3413
|
amount_per_packet: number;
|
|
3414
3414
|
price: number;
|
|
3415
3415
|
};
|
|
3416
|
-
|
|
3416
|
+
search_indexes?: {
|
|
3417
3417
|
amount_per_packet: number;
|
|
3418
3418
|
price: number;
|
|
3419
3419
|
};
|
|
@@ -4177,7 +4177,26 @@ export type UploadCollectionReorderJobSchema = {
|
|
|
4177
4177
|
data: UploadCollection[];
|
|
4178
4178
|
};
|
|
4179
4179
|
/**
|
|
4180
|
-
* The way you define the kind of content you can edit inside
|
|
4180
|
+
* The way you define the kind of content you can edit inside a DatoCMS project passes through the concept of **models** and **block models**. For backward-compatibility reasons, the API refers to both as "item types".
|
|
4181
|
+
*
|
|
4182
|
+
* ## Models
|
|
4183
|
+
*
|
|
4184
|
+
* Models are much like database tables — they define the structure of your main content types (e.g., blog posts, products, landing pages). Each model is composed of fields with custom validations. Records created from models exist independently and can be referenced by other records through link fields.
|
|
4185
|
+
*
|
|
4186
|
+
* ## Block Models
|
|
4187
|
+
*
|
|
4188
|
+
* Block models define complex and repeatable structures that can be embedded inside records. They are the foundation behind features like [Modular Content](/docs/content-modelling/modular-content.md) and [Structured Text](/docs/content-modelling/structured-text.md).
|
|
4189
|
+
*
|
|
4190
|
+
* ### Key differences:
|
|
4191
|
+
*
|
|
4192
|
+
* - **Models** create standalone records that can be referenced and have independent value
|
|
4193
|
+
* - **Block models** create blocks that only exist within parent records and cannot be referenced via link fields
|
|
4194
|
+
* - Block models defined in the library can be reused across different models
|
|
4195
|
+
* - When a record gets deleted, all the blocks it contains are deleted with it
|
|
4196
|
+
* - Blocks do not count towards your plan's records limit
|
|
4197
|
+
*
|
|
4198
|
+
* You can distinguish between models and block models using the `modular_block` attribute: `true` indicates a block model, `false` indicates a regular model.
|
|
4199
|
+
*
|
|
4181
4200
|
*
|
|
4182
4201
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
4183
4202
|
* via the `definition` "item_type".
|
|
@@ -4197,11 +4216,11 @@ export type ItemType = {
|
|
|
4197
4216
|
*/
|
|
4198
4217
|
export type ItemTypeAttributes = {
|
|
4199
4218
|
/**
|
|
4200
|
-
* Name of the model
|
|
4219
|
+
* Name of the model/block model
|
|
4201
4220
|
*/
|
|
4202
4221
|
name: string;
|
|
4203
4222
|
/**
|
|
4204
|
-
* API key of the model
|
|
4223
|
+
* API key of the model/block model
|
|
4205
4224
|
*/
|
|
4206
4225
|
api_key: string;
|
|
4207
4226
|
/**
|
|
@@ -4209,11 +4228,11 @@ export type ItemTypeAttributes = {
|
|
|
4209
4228
|
*/
|
|
4210
4229
|
collection_appeareance?: 'compact' | 'table';
|
|
4211
4230
|
/**
|
|
4212
|
-
* The way the model collection should be presented to the editors
|
|
4231
|
+
* The way the model/block model collection should be presented to the editors
|
|
4213
4232
|
*/
|
|
4214
4233
|
collection_appearance: 'compact' | 'table';
|
|
4215
4234
|
/**
|
|
4216
|
-
* Whether the model is single-instance or not
|
|
4235
|
+
* Whether the model is single-instance or not. This property only applies to models, not block models
|
|
4217
4236
|
*/
|
|
4218
4237
|
singleton: boolean;
|
|
4219
4238
|
/**
|
|
@@ -4221,43 +4240,43 @@ export type ItemTypeAttributes = {
|
|
|
4221
4240
|
*/
|
|
4222
4241
|
all_locales_required: boolean;
|
|
4223
4242
|
/**
|
|
4224
|
-
* Whether editors can sort records via drag & drop or not
|
|
4243
|
+
* Whether editors can sort records via drag & drop or not. Must be false for block models
|
|
4225
4244
|
*/
|
|
4226
4245
|
sortable: boolean;
|
|
4227
4246
|
/**
|
|
4228
|
-
* Whether this
|
|
4247
|
+
* Whether this is a block model or not. Block models define structures that can be embedded inside records, while regular models create standalone records
|
|
4229
4248
|
*/
|
|
4230
4249
|
modular_block: boolean;
|
|
4231
4250
|
/**
|
|
4232
|
-
* Whether draft/published mode is active or not
|
|
4251
|
+
* Whether draft/published mode is active or not. Must be false for block models
|
|
4233
4252
|
*/
|
|
4234
4253
|
draft_mode_active: boolean;
|
|
4235
4254
|
/**
|
|
4236
|
-
* Whether draft records can be saved without satisfying the validations or not
|
|
4255
|
+
* Whether draft records can be saved without satisfying the validations or not. Must be false for block models
|
|
4237
4256
|
*/
|
|
4238
4257
|
draft_saving_active: boolean;
|
|
4239
4258
|
/**
|
|
4240
|
-
* Whether editors can organize records in a tree or not
|
|
4259
|
+
* Whether editors can organize records in a tree or not. Must be false for block models
|
|
4241
4260
|
*/
|
|
4242
4261
|
tree: boolean;
|
|
4243
4262
|
/**
|
|
4244
|
-
* If an ordering field is set, this
|
|
4263
|
+
* If an ordering field is set, this field specifies the sorting direction. This property does not apply to block models
|
|
4245
4264
|
*/
|
|
4246
4265
|
ordering_direction: null | 'asc' | 'desc';
|
|
4247
4266
|
/**
|
|
4248
|
-
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field
|
|
4267
|
+
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field. This property does not apply to block models
|
|
4249
4268
|
*/
|
|
4250
4269
|
ordering_meta: null | 'created_at' | 'updated_at' | 'first_published_at' | 'published_at';
|
|
4251
4270
|
/**
|
|
4252
|
-
* If this model is single-instance, this tells the single-instance record has already been created or not
|
|
4271
|
+
* If this model is single-instance, this tells whether the single-instance record has already been created or not. This property only applies to models, not block models
|
|
4253
4272
|
*/
|
|
4254
4273
|
has_singleton_item: boolean;
|
|
4255
4274
|
/**
|
|
4256
|
-
* A hint shown to editors to help them understand the purpose of this model/block
|
|
4275
|
+
* A hint shown to editors to help them understand the purpose of this model/block model
|
|
4257
4276
|
*/
|
|
4258
4277
|
hint: string | null;
|
|
4259
4278
|
/**
|
|
4260
|
-
* Whether inverse relationships fields are expressed in GraphQL or not
|
|
4279
|
+
* Whether inverse relationships fields are expressed in GraphQL or not. Must be false for block models
|
|
4261
4280
|
*/
|
|
4262
4281
|
inverse_relationships_enabled: boolean;
|
|
4263
4282
|
};
|
|
@@ -4269,19 +4288,19 @@ export type ItemTypeAttributes = {
|
|
|
4269
4288
|
*/
|
|
4270
4289
|
export type ItemTypeRelationships = {
|
|
4271
4290
|
/**
|
|
4272
|
-
* The
|
|
4291
|
+
* The record instance related to this model. This relationship only applies to single-instance models, not block models
|
|
4273
4292
|
*/
|
|
4274
4293
|
singleton_item: {
|
|
4275
4294
|
data: ItemData | null;
|
|
4276
4295
|
};
|
|
4277
4296
|
/**
|
|
4278
|
-
* The list of
|
|
4297
|
+
* The list of fields for this model/block model
|
|
4279
4298
|
*/
|
|
4280
4299
|
fields: {
|
|
4281
4300
|
data: FieldData[];
|
|
4282
4301
|
};
|
|
4283
4302
|
/**
|
|
4284
|
-
* The list of
|
|
4303
|
+
* The list of fieldsets for this model/block model
|
|
4285
4304
|
*/
|
|
4286
4305
|
fieldsets: {
|
|
4287
4306
|
data: FieldsetData[];
|
|
@@ -4299,25 +4318,25 @@ export type ItemTypeRelationships = {
|
|
|
4299
4318
|
data: FieldData | null;
|
|
4300
4319
|
};
|
|
4301
4320
|
/**
|
|
4302
|
-
* The field to use as fallback title for SEO purposes
|
|
4321
|
+
* The field to use as fallback title for SEO purposes. This relationship does not apply to block models
|
|
4303
4322
|
*/
|
|
4304
4323
|
title_field: {
|
|
4305
4324
|
data: FieldData | null;
|
|
4306
4325
|
};
|
|
4307
4326
|
/**
|
|
4308
|
-
* The field to use as fallback image for SEO purposes
|
|
4327
|
+
* The field to use as fallback image for SEO purposes. This relationship does not apply to block models
|
|
4309
4328
|
*/
|
|
4310
4329
|
image_preview_field: {
|
|
4311
4330
|
data: FieldData | null;
|
|
4312
4331
|
};
|
|
4313
4332
|
/**
|
|
4314
|
-
* The field to use as fallback description for SEO purposes
|
|
4333
|
+
* The field to use as fallback description for SEO purposes. This relationship does not apply to block models
|
|
4315
4334
|
*/
|
|
4316
4335
|
excerpt_field: {
|
|
4317
4336
|
data: FieldData | null;
|
|
4318
4337
|
};
|
|
4319
4338
|
/**
|
|
4320
|
-
* The field upon which the collection is sorted
|
|
4339
|
+
* The field upon which the collection is sorted. This relationship does not apply to block models
|
|
4321
4340
|
*/
|
|
4322
4341
|
ordering_field: {
|
|
4323
4342
|
data: FieldData | null;
|
|
@@ -4370,14 +4389,14 @@ export type WorkflowData = {
|
|
|
4370
4389
|
id: WorkflowIdentity;
|
|
4371
4390
|
};
|
|
4372
4391
|
/**
|
|
4373
|
-
* Meta information regarding the
|
|
4392
|
+
* Meta information regarding the model/block model
|
|
4374
4393
|
*
|
|
4375
4394
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
4376
4395
|
* via the `definition` "meta".
|
|
4377
4396
|
*/
|
|
4378
4397
|
export type ItemTypeMeta = {
|
|
4379
4398
|
/**
|
|
4380
|
-
* If this model is single-instance, this tells the single-instance record has already been created or not
|
|
4399
|
+
* If this model is single-instance, this tells whether the single-instance record has already been created or not. This property only applies to models, not block models
|
|
4381
4400
|
*/
|
|
4382
4401
|
has_singleton_item: boolean;
|
|
4383
4402
|
};
|
|
@@ -4394,15 +4413,15 @@ export type ItemTypeCreateSchema = {
|
|
|
4394
4413
|
*/
|
|
4395
4414
|
attributes: {
|
|
4396
4415
|
/**
|
|
4397
|
-
* Name of the model
|
|
4416
|
+
* Name of the model/block model
|
|
4398
4417
|
*/
|
|
4399
4418
|
name: string;
|
|
4400
4419
|
/**
|
|
4401
|
-
* API key of the model
|
|
4420
|
+
* API key of the model/block model
|
|
4402
4421
|
*/
|
|
4403
4422
|
api_key: string;
|
|
4404
4423
|
/**
|
|
4405
|
-
* Whether the model is single-instance or not
|
|
4424
|
+
* Whether the model is single-instance or not. This property only applies to models, not block models
|
|
4406
4425
|
*/
|
|
4407
4426
|
singleton?: boolean;
|
|
4408
4427
|
/**
|
|
@@ -4410,31 +4429,31 @@ export type ItemTypeCreateSchema = {
|
|
|
4410
4429
|
*/
|
|
4411
4430
|
all_locales_required?: boolean;
|
|
4412
4431
|
/**
|
|
4413
|
-
* Whether editors can sort records via drag & drop or not
|
|
4432
|
+
* Whether editors can sort records via drag & drop or not. Must be false for block models
|
|
4414
4433
|
*/
|
|
4415
4434
|
sortable?: boolean;
|
|
4416
4435
|
/**
|
|
4417
|
-
* Whether this
|
|
4436
|
+
* Whether this is a block model or not. Block models define structures that can be embedded inside records, while regular models create standalone records
|
|
4418
4437
|
*/
|
|
4419
4438
|
modular_block?: boolean;
|
|
4420
4439
|
/**
|
|
4421
|
-
* Whether draft/published mode is active or not
|
|
4440
|
+
* Whether draft/published mode is active or not. Must be false for block models
|
|
4422
4441
|
*/
|
|
4423
4442
|
draft_mode_active?: boolean;
|
|
4424
4443
|
/**
|
|
4425
|
-
* Whether draft records can be saved without satisfying the validations or not
|
|
4444
|
+
* Whether draft records can be saved without satisfying the validations or not. Must be false for block models
|
|
4426
4445
|
*/
|
|
4427
4446
|
draft_saving_active?: boolean;
|
|
4428
4447
|
/**
|
|
4429
|
-
* Whether editors can organize records in a tree or not
|
|
4448
|
+
* Whether editors can organize records in a tree or not. Must be false for block models
|
|
4430
4449
|
*/
|
|
4431
4450
|
tree?: boolean;
|
|
4432
4451
|
/**
|
|
4433
|
-
* If an ordering field is set, this
|
|
4452
|
+
* If an ordering field is set, this field specifies the sorting direction. This property does not apply to block models
|
|
4434
4453
|
*/
|
|
4435
4454
|
ordering_direction?: null | 'asc' | 'desc';
|
|
4436
4455
|
/**
|
|
4437
|
-
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field
|
|
4456
|
+
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field. This property does not apply to block models
|
|
4438
4457
|
*/
|
|
4439
4458
|
ordering_meta?: null | 'created_at' | 'updated_at' | 'first_published_at' | 'published_at';
|
|
4440
4459
|
/**
|
|
@@ -4442,21 +4461,21 @@ export type ItemTypeCreateSchema = {
|
|
|
4442
4461
|
*/
|
|
4443
4462
|
collection_appeareance?: 'compact' | 'table';
|
|
4444
4463
|
/**
|
|
4445
|
-
* The way the model collection should be presented to the editors
|
|
4464
|
+
* The way the model/block model collection should be presented to the editors
|
|
4446
4465
|
*/
|
|
4447
4466
|
collection_appearance?: 'compact' | 'table';
|
|
4448
4467
|
/**
|
|
4449
|
-
* A hint shown to editors to help them understand the purpose of this model/block
|
|
4468
|
+
* A hint shown to editors to help them understand the purpose of this model/block model
|
|
4450
4469
|
*/
|
|
4451
4470
|
hint?: string | null;
|
|
4452
4471
|
/**
|
|
4453
|
-
* Whether inverse relationships fields are expressed in GraphQL or not
|
|
4472
|
+
* Whether inverse relationships fields are expressed in GraphQL or not. Must be false for block models
|
|
4454
4473
|
*/
|
|
4455
4474
|
inverse_relationships_enabled?: boolean;
|
|
4456
4475
|
};
|
|
4457
4476
|
relationships?: {
|
|
4458
4477
|
/**
|
|
4459
|
-
* The field upon which the collection is sorted
|
|
4478
|
+
* The field upon which the collection is sorted. This relationship does not apply to block models
|
|
4460
4479
|
*/
|
|
4461
4480
|
ordering_field?: {
|
|
4462
4481
|
data: FieldData | null;
|
|
@@ -4474,19 +4493,19 @@ export type ItemTypeCreateSchema = {
|
|
|
4474
4493
|
data: FieldData | null;
|
|
4475
4494
|
};
|
|
4476
4495
|
/**
|
|
4477
|
-
* The field to use as fallback title for SEO purposes
|
|
4496
|
+
* The field to use as fallback title for SEO purposes. This relationship does not apply to block models
|
|
4478
4497
|
*/
|
|
4479
4498
|
title_field?: {
|
|
4480
4499
|
data: FieldData | null;
|
|
4481
4500
|
};
|
|
4482
4501
|
/**
|
|
4483
|
-
* The field to use as fallback image for SEO purposes
|
|
4502
|
+
* The field to use as fallback image for SEO purposes. This relationship does not apply to block models
|
|
4484
4503
|
*/
|
|
4485
4504
|
image_preview_field?: {
|
|
4486
4505
|
data: FieldData | null;
|
|
4487
4506
|
};
|
|
4488
4507
|
/**
|
|
4489
|
-
* The field to use as fallback description for SEO purposes
|
|
4508
|
+
* The field to use as fallback description for SEO purposes. This relationship does not apply to block models
|
|
4490
4509
|
*/
|
|
4491
4510
|
excerpt_field?: {
|
|
4492
4511
|
data: FieldData | null;
|
|
@@ -4521,11 +4540,11 @@ export type ItemTypeUpdateSchema = {
|
|
|
4521
4540
|
*/
|
|
4522
4541
|
attributes?: {
|
|
4523
4542
|
/**
|
|
4524
|
-
* Name of the model
|
|
4543
|
+
* Name of the model/block model
|
|
4525
4544
|
*/
|
|
4526
4545
|
name?: string;
|
|
4527
4546
|
/**
|
|
4528
|
-
* API key of the model
|
|
4547
|
+
* API key of the model/block model
|
|
4529
4548
|
*/
|
|
4530
4549
|
api_key?: string;
|
|
4531
4550
|
/**
|
|
@@ -4533,11 +4552,11 @@ export type ItemTypeUpdateSchema = {
|
|
|
4533
4552
|
*/
|
|
4534
4553
|
collection_appeareance?: 'compact' | 'table';
|
|
4535
4554
|
/**
|
|
4536
|
-
* The way the model collection should be presented to the editors
|
|
4555
|
+
* The way the model/block model collection should be presented to the editors
|
|
4537
4556
|
*/
|
|
4538
4557
|
collection_appearance?: 'compact' | 'table';
|
|
4539
4558
|
/**
|
|
4540
|
-
* Whether the model is single-instance or not
|
|
4559
|
+
* Whether the model is single-instance or not. This property only applies to models, not block models
|
|
4541
4560
|
*/
|
|
4542
4561
|
singleton?: boolean;
|
|
4543
4562
|
/**
|
|
@@ -4545,49 +4564,49 @@ export type ItemTypeUpdateSchema = {
|
|
|
4545
4564
|
*/
|
|
4546
4565
|
all_locales_required?: boolean;
|
|
4547
4566
|
/**
|
|
4548
|
-
* Whether editors can sort records via drag & drop or not
|
|
4567
|
+
* Whether editors can sort records via drag & drop or not. Must be false for block models
|
|
4549
4568
|
*/
|
|
4550
4569
|
sortable?: boolean;
|
|
4551
4570
|
/**
|
|
4552
|
-
* Whether this
|
|
4571
|
+
* Whether this is a block model or not. Block models define structures that can be embedded inside records, while regular models create standalone records
|
|
4553
4572
|
*/
|
|
4554
4573
|
modular_block?: boolean;
|
|
4555
4574
|
/**
|
|
4556
|
-
* Whether draft/published mode is active or not
|
|
4575
|
+
* Whether draft/published mode is active or not. Must be false for block models
|
|
4557
4576
|
*/
|
|
4558
4577
|
draft_mode_active?: boolean;
|
|
4559
4578
|
/**
|
|
4560
|
-
* Whether draft records can be saved without satisfying the validations or not
|
|
4579
|
+
* Whether draft records can be saved without satisfying the validations or not. Must be false for block models
|
|
4561
4580
|
*/
|
|
4562
4581
|
draft_saving_active?: boolean;
|
|
4563
4582
|
/**
|
|
4564
|
-
* Whether editors can organize records in a tree or not
|
|
4583
|
+
* Whether editors can organize records in a tree or not. Must be false for block models
|
|
4565
4584
|
*/
|
|
4566
4585
|
tree?: boolean;
|
|
4567
4586
|
/**
|
|
4568
|
-
* If an ordering field is set, this
|
|
4587
|
+
* If an ordering field is set, this field specifies the sorting direction. This property does not apply to block models
|
|
4569
4588
|
*/
|
|
4570
4589
|
ordering_direction?: null | 'asc' | 'desc';
|
|
4571
4590
|
/**
|
|
4572
|
-
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field
|
|
4591
|
+
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field. This property does not apply to block models
|
|
4573
4592
|
*/
|
|
4574
4593
|
ordering_meta?: null | 'created_at' | 'updated_at' | 'first_published_at' | 'published_at';
|
|
4575
4594
|
/**
|
|
4576
|
-
* If this model is single-instance, this tells the single-instance record has already been created or not
|
|
4595
|
+
* If this model is single-instance, this tells whether the single-instance record has already been created or not. This property only applies to models, not block models
|
|
4577
4596
|
*/
|
|
4578
4597
|
has_singleton_item?: boolean;
|
|
4579
4598
|
/**
|
|
4580
|
-
* A hint shown to editors to help them understand the purpose of this model/block
|
|
4599
|
+
* A hint shown to editors to help them understand the purpose of this model/block model
|
|
4581
4600
|
*/
|
|
4582
4601
|
hint?: string | null;
|
|
4583
4602
|
/**
|
|
4584
|
-
* Whether inverse relationships fields are expressed in GraphQL or not
|
|
4603
|
+
* Whether inverse relationships fields are expressed in GraphQL or not. Must be false for block models
|
|
4585
4604
|
*/
|
|
4586
4605
|
inverse_relationships_enabled?: boolean;
|
|
4587
4606
|
};
|
|
4588
4607
|
relationships?: {
|
|
4589
4608
|
/**
|
|
4590
|
-
* The field upon which the collection is sorted
|
|
4609
|
+
* The field upon which the collection is sorted. This relationship does not apply to block models
|
|
4591
4610
|
*/
|
|
4592
4611
|
ordering_field?: {
|
|
4593
4612
|
data: FieldData | null;
|
|
@@ -4605,19 +4624,19 @@ export type ItemTypeUpdateSchema = {
|
|
|
4605
4624
|
data: FieldData | null;
|
|
4606
4625
|
};
|
|
4607
4626
|
/**
|
|
4608
|
-
* The field to use as fallback title for SEO purposes
|
|
4627
|
+
* The field to use as fallback title for SEO purposes. This relationship does not apply to block models
|
|
4609
4628
|
*/
|
|
4610
4629
|
title_field?: {
|
|
4611
4630
|
data: FieldData | null;
|
|
4612
4631
|
};
|
|
4613
4632
|
/**
|
|
4614
|
-
* The field to use as fallback image for SEO purposes
|
|
4633
|
+
* The field to use as fallback image for SEO purposes. This relationship does not apply to block models
|
|
4615
4634
|
*/
|
|
4616
4635
|
image_preview_field?: {
|
|
4617
4636
|
data: FieldData | null;
|
|
4618
4637
|
};
|
|
4619
4638
|
/**
|
|
4620
|
-
* The field to use as fallback description for SEO purposes
|
|
4639
|
+
* The field to use as fallback description for SEO purposes. This relationship does not apply to block models
|
|
4621
4640
|
*/
|
|
4622
4641
|
excerpt_field?: {
|
|
4623
4642
|
data: FieldData | null;
|
|
@@ -4631,7 +4650,7 @@ export type ItemTypeUpdateSchema = {
|
|
|
4631
4650
|
};
|
|
4632
4651
|
meta?: {
|
|
4633
4652
|
/**
|
|
4634
|
-
* If this model is single-instance, this tells the single-instance record has already been created or not
|
|
4653
|
+
* If this model is single-instance, this tells whether the single-instance record has already been created or not. This property only applies to models, not block models
|
|
4635
4654
|
*/
|
|
4636
4655
|
has_singleton_item?: boolean;
|
|
4637
4656
|
};
|
|
@@ -6722,7 +6741,7 @@ export type SubscriptionFeatureInstancesTargetSchema = {
|
|
|
6722
6741
|
data: SubscriptionFeature[];
|
|
6723
6742
|
};
|
|
6724
6743
|
/**
|
|
6725
|
-
* Represents an event occurred during the deploy process of
|
|
6744
|
+
* Represents an event occurred during the deploy process of a build trigger.
|
|
6726
6745
|
*
|
|
6727
6746
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
6728
6747
|
* via the `definition` "build_event".
|
|
@@ -6807,24 +6826,24 @@ export type BuildEventSelfTargetSchema = {
|
|
|
6807
6826
|
data: BuildEvent;
|
|
6808
6827
|
};
|
|
6809
6828
|
/**
|
|
6810
|
-
* Represents an event occurred during the
|
|
6829
|
+
* Represents an event occurred during the indexing process via search indexes.
|
|
6811
6830
|
*
|
|
6812
6831
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
6813
|
-
* via the `definition` "
|
|
6832
|
+
* via the `definition` "search_index_event".
|
|
6814
6833
|
*/
|
|
6815
|
-
export type
|
|
6816
|
-
type:
|
|
6817
|
-
id:
|
|
6818
|
-
attributes:
|
|
6819
|
-
relationships:
|
|
6834
|
+
export type SearchIndexEvent = {
|
|
6835
|
+
type: SearchIndexEventType;
|
|
6836
|
+
id: SearchIndexEventIdentity;
|
|
6837
|
+
attributes: SearchIndexEventAttributes;
|
|
6838
|
+
relationships: SearchIndexEventRelationships;
|
|
6820
6839
|
};
|
|
6821
6840
|
/**
|
|
6822
6841
|
* JSON API attributes
|
|
6823
6842
|
*
|
|
6824
|
-
* This interface was referenced by `
|
|
6843
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6825
6844
|
* via the `definition` "attributes".
|
|
6826
6845
|
*/
|
|
6827
|
-
export type
|
|
6846
|
+
export type SearchIndexEventAttributes = {
|
|
6828
6847
|
/**
|
|
6829
6848
|
* The type of activity
|
|
6830
6849
|
*/
|
|
@@ -6843,53 +6862,53 @@ export type SiteSearchSourceEventAttributes = {
|
|
|
6843
6862
|
/**
|
|
6844
6863
|
* JSON API links
|
|
6845
6864
|
*
|
|
6846
|
-
* This interface was referenced by `
|
|
6865
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6847
6866
|
* via the `definition` "relationships".
|
|
6848
6867
|
*/
|
|
6849
|
-
export type
|
|
6868
|
+
export type SearchIndexEventRelationships = {
|
|
6850
6869
|
/**
|
|
6851
|
-
* Source
|
|
6870
|
+
* Source search index
|
|
6852
6871
|
*/
|
|
6853
|
-
|
|
6854
|
-
data:
|
|
6872
|
+
search_index: {
|
|
6873
|
+
data: SearchIndexData;
|
|
6855
6874
|
};
|
|
6856
6875
|
};
|
|
6857
6876
|
/**
|
|
6858
6877
|
* JSON API data
|
|
6859
6878
|
*
|
|
6860
|
-
* This interface was referenced by `
|
|
6879
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
6861
6880
|
* via the `definition` "data".
|
|
6862
6881
|
*/
|
|
6863
|
-
export type
|
|
6864
|
-
type:
|
|
6865
|
-
id:
|
|
6882
|
+
export type SearchIndexData = {
|
|
6883
|
+
type: SearchIndexType;
|
|
6884
|
+
id: SearchIndexIdentity;
|
|
6866
6885
|
};
|
|
6867
6886
|
/**
|
|
6868
6887
|
* JSON API data
|
|
6869
6888
|
*
|
|
6870
|
-
* This interface was referenced by `
|
|
6889
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6871
6890
|
* via the `definition` "data".
|
|
6872
6891
|
*/
|
|
6873
|
-
export type
|
|
6874
|
-
type:
|
|
6875
|
-
id:
|
|
6892
|
+
export type SearchIndexEventData = {
|
|
6893
|
+
type: SearchIndexEventType;
|
|
6894
|
+
id: SearchIndexEventIdentity;
|
|
6876
6895
|
};
|
|
6877
6896
|
/**
|
|
6878
|
-
* This interface was referenced by `
|
|
6897
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6879
6898
|
* via the `instances.targetSchema` link.
|
|
6880
6899
|
*/
|
|
6881
|
-
export type
|
|
6882
|
-
data:
|
|
6900
|
+
export type SearchIndexEventInstancesTargetSchema = {
|
|
6901
|
+
data: SearchIndexEvent[];
|
|
6883
6902
|
meta: {
|
|
6884
6903
|
total_count: number;
|
|
6885
6904
|
};
|
|
6886
6905
|
};
|
|
6887
6906
|
/**
|
|
6888
|
-
* This interface was referenced by `
|
|
6907
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6889
6908
|
* via the `self.targetSchema` link.
|
|
6890
6909
|
*/
|
|
6891
|
-
export type
|
|
6892
|
-
data:
|
|
6910
|
+
export type SearchIndexEventSelfTargetSchema = {
|
|
6911
|
+
data: SearchIndexEvent;
|
|
6893
6912
|
};
|
|
6894
6913
|
/**
|
|
6895
6914
|
* JSON API links
|
|
@@ -9273,6 +9292,10 @@ export type BuildTriggerAttributes = {
|
|
|
9273
9292
|
* Name of the build trigger
|
|
9274
9293
|
*/
|
|
9275
9294
|
name: string;
|
|
9295
|
+
/**
|
|
9296
|
+
* Whether the build trigger is enabled or not
|
|
9297
|
+
*/
|
|
9298
|
+
enabled: boolean;
|
|
9276
9299
|
/**
|
|
9277
9300
|
* The type of build trigger
|
|
9278
9301
|
*/
|
|
@@ -9304,7 +9327,7 @@ export type BuildTriggerAttributes = {
|
|
|
9304
9327
|
*/
|
|
9305
9328
|
indexing_status: string;
|
|
9306
9329
|
/**
|
|
9307
|
-
* The public URL of the frontend.
|
|
9330
|
+
* The public URL of the frontend.
|
|
9308
9331
|
*/
|
|
9309
9332
|
frontend_url: string | null;
|
|
9310
9333
|
/**
|
|
@@ -9315,10 +9338,6 @@ export type BuildTriggerAttributes = {
|
|
|
9315
9338
|
* Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
|
|
9316
9339
|
*/
|
|
9317
9340
|
indexing_enabled: boolean;
|
|
9318
|
-
/**
|
|
9319
|
-
* Whether the build trigger is enabled or not
|
|
9320
|
-
*/
|
|
9321
|
-
enabled: boolean;
|
|
9322
9341
|
};
|
|
9323
9342
|
/**
|
|
9324
9343
|
* This interface was referenced by `BuildTrigger`'s JSON-Schema
|
|
@@ -9357,13 +9376,13 @@ export type BuildTriggerCreateSchema = {
|
|
|
9357
9376
|
/**
|
|
9358
9377
|
* Wether Site Search is enabled or not. With Site Search, everytime the website is built, DatoCMS will respider it to get updated content
|
|
9359
9378
|
*/
|
|
9360
|
-
indexing_enabled
|
|
9379
|
+
indexing_enabled?: boolean;
|
|
9361
9380
|
/**
|
|
9362
9381
|
* Whether the build trigger is enabled or not
|
|
9363
9382
|
*/
|
|
9364
9383
|
enabled?: boolean;
|
|
9365
9384
|
/**
|
|
9366
|
-
* The public URL of the frontend.
|
|
9385
|
+
* The public URL of the frontend.
|
|
9367
9386
|
*/
|
|
9368
9387
|
frontend_url: string | null;
|
|
9369
9388
|
/**
|
|
@@ -9412,7 +9431,7 @@ export type BuildTriggerUpdateSchema = {
|
|
|
9412
9431
|
*/
|
|
9413
9432
|
enabled?: boolean;
|
|
9414
9433
|
/**
|
|
9415
|
-
* The public URL of the frontend.
|
|
9434
|
+
* The public URL of the frontend.
|
|
9416
9435
|
*/
|
|
9417
9436
|
frontend_url?: string | null;
|
|
9418
9437
|
/**
|
|
@@ -9443,39 +9462,35 @@ export type BuildTriggerDestroyTargetSchema = {
|
|
|
9443
9462
|
data: BuildTrigger;
|
|
9444
9463
|
};
|
|
9445
9464
|
/**
|
|
9446
|
-
* A
|
|
9465
|
+
* A Search Index is used to index a website to provide DatoCMS Site Search functionality.
|
|
9447
9466
|
*
|
|
9448
9467
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
9449
|
-
* via the `definition` "
|
|
9468
|
+
* via the `definition` "search_index".
|
|
9450
9469
|
*/
|
|
9451
|
-
export type
|
|
9452
|
-
type:
|
|
9453
|
-
id:
|
|
9454
|
-
attributes:
|
|
9455
|
-
relationships:
|
|
9456
|
-
meta:
|
|
9470
|
+
export type SearchIndex = {
|
|
9471
|
+
type: SearchIndexType;
|
|
9472
|
+
id: SearchIndexIdentity;
|
|
9473
|
+
attributes: SearchIndexAttributes;
|
|
9474
|
+
relationships: SearchIndexRelationships;
|
|
9475
|
+
meta: SearchIndexMeta;
|
|
9457
9476
|
};
|
|
9458
9477
|
/**
|
|
9459
9478
|
* JSON API attributes
|
|
9460
9479
|
*
|
|
9461
|
-
* This interface was referenced by `
|
|
9480
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9462
9481
|
* via the `definition` "attributes".
|
|
9463
9482
|
*/
|
|
9464
|
-
export type
|
|
9483
|
+
export type SearchIndexAttributes = {
|
|
9465
9484
|
/**
|
|
9466
|
-
* Name of the
|
|
9485
|
+
* Name of the search index
|
|
9467
9486
|
*/
|
|
9468
9487
|
name: string;
|
|
9469
9488
|
/**
|
|
9470
|
-
* Whether the
|
|
9489
|
+
* Whether the search index is enabled or not
|
|
9471
9490
|
*/
|
|
9472
9491
|
enabled: boolean;
|
|
9473
9492
|
/**
|
|
9474
|
-
*
|
|
9475
|
-
*/
|
|
9476
|
-
build_trigger_indexing_enabled: boolean;
|
|
9477
|
-
/**
|
|
9478
|
-
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
9493
|
+
* The public URL of the website. This is the starting point from which the website's spidering will start
|
|
9479
9494
|
*/
|
|
9480
9495
|
frontend_url: string | null;
|
|
9481
9496
|
/**
|
|
@@ -9486,26 +9501,26 @@ export type SiteSearchSourceAttributes = {
|
|
|
9486
9501
|
/**
|
|
9487
9502
|
* JSON API links
|
|
9488
9503
|
*
|
|
9489
|
-
* This interface was referenced by `
|
|
9504
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9490
9505
|
* via the `definition` "relationships".
|
|
9491
9506
|
*/
|
|
9492
|
-
export type
|
|
9507
|
+
export type SearchIndexRelationships = {
|
|
9493
9508
|
/**
|
|
9494
|
-
* The build triggers
|
|
9509
|
+
* The build triggers that can trigger this search index
|
|
9495
9510
|
*/
|
|
9496
9511
|
build_triggers: {
|
|
9497
9512
|
data: BuildTriggerData[];
|
|
9498
9513
|
};
|
|
9499
9514
|
};
|
|
9500
9515
|
/**
|
|
9501
|
-
* Meta information about the
|
|
9516
|
+
* Meta information about the search index
|
|
9502
9517
|
*
|
|
9503
|
-
* This interface was referenced by `
|
|
9518
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9504
9519
|
* via the `definition` "meta".
|
|
9505
9520
|
*/
|
|
9506
|
-
export type
|
|
9521
|
+
export type SearchIndexMeta = {
|
|
9507
9522
|
/**
|
|
9508
|
-
* Status of the
|
|
9523
|
+
* Status of the search indexing
|
|
9509
9524
|
*/
|
|
9510
9525
|
indexing_status: 'unstarted' | 'pending' | 'success' | 'failed';
|
|
9511
9526
|
/**
|
|
@@ -9514,41 +9529,37 @@ export type SiteSearchSourceMeta = {
|
|
|
9514
9529
|
last_indexing_completed_at: string | null;
|
|
9515
9530
|
};
|
|
9516
9531
|
/**
|
|
9517
|
-
* This interface was referenced by `
|
|
9532
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9518
9533
|
* via the `instances.targetSchema` link.
|
|
9519
9534
|
*/
|
|
9520
|
-
export type
|
|
9521
|
-
data:
|
|
9535
|
+
export type SearchIndexInstancesTargetSchema = {
|
|
9536
|
+
data: SearchIndex[];
|
|
9522
9537
|
};
|
|
9523
9538
|
/**
|
|
9524
|
-
* This interface was referenced by `
|
|
9539
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9525
9540
|
* via the `self.targetSchema` link.
|
|
9526
9541
|
*/
|
|
9527
|
-
export type
|
|
9528
|
-
data:
|
|
9542
|
+
export type SearchIndexSelfTargetSchema = {
|
|
9543
|
+
data: SearchIndex;
|
|
9529
9544
|
};
|
|
9530
9545
|
/**
|
|
9531
|
-
* This interface was referenced by `
|
|
9546
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9532
9547
|
* via the `create.schema` link.
|
|
9533
9548
|
*/
|
|
9534
|
-
export type
|
|
9549
|
+
export type SearchIndexCreateSchema = {
|
|
9535
9550
|
data: {
|
|
9536
|
-
type:
|
|
9551
|
+
type: SearchIndexType;
|
|
9537
9552
|
attributes: {
|
|
9538
9553
|
/**
|
|
9539
|
-
* Name of the
|
|
9554
|
+
* Name of the search index
|
|
9540
9555
|
*/
|
|
9541
9556
|
name: string;
|
|
9542
9557
|
/**
|
|
9543
|
-
* Whether the
|
|
9558
|
+
* Whether the search index is enabled or not
|
|
9544
9559
|
*/
|
|
9545
9560
|
enabled: boolean;
|
|
9546
9561
|
/**
|
|
9547
|
-
*
|
|
9548
|
-
*/
|
|
9549
|
-
build_trigger_indexing_enabled?: boolean;
|
|
9550
|
-
/**
|
|
9551
|
-
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
9562
|
+
* The public URL of the website. This is the starting point from which the website's spidering will start
|
|
9552
9563
|
*/
|
|
9553
9564
|
frontend_url: string | null;
|
|
9554
9565
|
/**
|
|
@@ -9561,7 +9572,7 @@ export type SiteSearchSourceCreateSchema = {
|
|
|
9561
9572
|
*/
|
|
9562
9573
|
relationships?: {
|
|
9563
9574
|
/**
|
|
9564
|
-
* The build triggers
|
|
9575
|
+
* The build triggers that can trigger this search index
|
|
9565
9576
|
*/
|
|
9566
9577
|
build_triggers?: {
|
|
9567
9578
|
data: BuildTriggerData[];
|
|
@@ -9570,35 +9581,31 @@ export type SiteSearchSourceCreateSchema = {
|
|
|
9570
9581
|
};
|
|
9571
9582
|
};
|
|
9572
9583
|
/**
|
|
9573
|
-
* This interface was referenced by `
|
|
9584
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9574
9585
|
* via the `create.targetSchema` link.
|
|
9575
9586
|
*/
|
|
9576
|
-
export type
|
|
9577
|
-
data:
|
|
9587
|
+
export type SearchIndexCreateTargetSchema = {
|
|
9588
|
+
data: SearchIndex;
|
|
9578
9589
|
};
|
|
9579
9590
|
/**
|
|
9580
|
-
* This interface was referenced by `
|
|
9591
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9581
9592
|
* via the `update.schema` link.
|
|
9582
9593
|
*/
|
|
9583
|
-
export type
|
|
9594
|
+
export type SearchIndexUpdateSchema = {
|
|
9584
9595
|
data: {
|
|
9585
|
-
type:
|
|
9586
|
-
id:
|
|
9596
|
+
type: SearchIndexType;
|
|
9597
|
+
id: SearchIndexIdentity;
|
|
9587
9598
|
attributes: {
|
|
9588
9599
|
/**
|
|
9589
|
-
* Name of the
|
|
9600
|
+
* Name of the search index
|
|
9590
9601
|
*/
|
|
9591
9602
|
name?: string;
|
|
9592
9603
|
/**
|
|
9593
|
-
* Whether the
|
|
9604
|
+
* Whether the search index is enabled or not
|
|
9594
9605
|
*/
|
|
9595
9606
|
enabled?: boolean;
|
|
9596
9607
|
/**
|
|
9597
|
-
*
|
|
9598
|
-
*/
|
|
9599
|
-
build_trigger_indexing_enabled?: boolean;
|
|
9600
|
-
/**
|
|
9601
|
-
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
9608
|
+
* The public URL of the website. This is the starting point from which the website's spidering will start
|
|
9602
9609
|
*/
|
|
9603
9610
|
frontend_url?: string | null;
|
|
9604
9611
|
/**
|
|
@@ -9611,7 +9618,7 @@ export type SiteSearchSourceUpdateSchema = {
|
|
|
9611
9618
|
*/
|
|
9612
9619
|
relationships?: {
|
|
9613
9620
|
/**
|
|
9614
|
-
* The build triggers
|
|
9621
|
+
* The build triggers that can trigger this search index
|
|
9615
9622
|
*/
|
|
9616
9623
|
build_triggers?: {
|
|
9617
9624
|
data: BuildTriggerData[];
|
|
@@ -9620,18 +9627,18 @@ export type SiteSearchSourceUpdateSchema = {
|
|
|
9620
9627
|
};
|
|
9621
9628
|
};
|
|
9622
9629
|
/**
|
|
9623
|
-
* This interface was referenced by `
|
|
9630
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9624
9631
|
* via the `update.targetSchema` link.
|
|
9625
9632
|
*/
|
|
9626
|
-
export type
|
|
9627
|
-
data:
|
|
9633
|
+
export type SearchIndexUpdateTargetSchema = {
|
|
9634
|
+
data: SearchIndex;
|
|
9628
9635
|
};
|
|
9629
9636
|
/**
|
|
9630
|
-
* This interface was referenced by `
|
|
9637
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9631
9638
|
* via the `destroy.targetSchema` link.
|
|
9632
9639
|
*/
|
|
9633
|
-
export type
|
|
9634
|
-
data:
|
|
9640
|
+
export type SearchIndexDestroyTargetSchema = {
|
|
9641
|
+
data: SearchIndex;
|
|
9635
9642
|
};
|
|
9636
9643
|
/**
|
|
9637
9644
|
* In DatoCMS you can create filters to help you (and other editors) quickly search for records
|