@datocms/cma-client 5.2.0-alpha.2 → 5.2.0-alpha.4
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 +3 -3
- package/dist/cjs/generated/Client.js.map +1 -1
- 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} +55 -53
- 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/esm/generated/ApiTypes.d.ts +147 -131
- 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 +148 -136
- package/dist/esm/generated/resources/Role.js +8 -8
- package/dist/esm/generated/resources/Role.js.map +1 -1
- package/dist/esm/generated/resources/{SiteSearchSource.d.ts → SearchIndex.d.ts} +40 -40
- package/dist/esm/generated/resources/{SiteSearchSource.js → SearchIndex.js} +54 -52
- 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/types/generated/ApiTypes.d.ts +147 -131
- package/dist/types/generated/Client.d.ts +2 -2
- package/dist/types/generated/RawApiTypes.d.ts +148 -136
- package/dist/types/generated/resources/{SiteSearchSource.d.ts → SearchIndex.d.ts} +40 -40
- package/dist/types/generated/resources/SearchIndexEvent.d.ts +61 -0
- package/dist/types/generated/resources/index.d.ts +2 -2
- package/package.json +3 -3
- package/resources.json +79 -77
- package/src/generated/ApiTypes.ts +148 -133
- package/src/generated/Client.ts +5 -5
- package/src/generated/RawApiTypes.ts +149 -137
- package/src/generated/resources/Role.ts +8 -8
- package/src/generated/resources/SearchIndex.ts +255 -0
- package/src/generated/resources/{SiteSearchSourceEvent.ts → SearchIndexEvent.ts} +32 -34
- package/src/generated/resources/index.ts +2 -2
- 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.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/SiteSearchSourceEvent.d.ts +0 -61
- package/src/generated/resources/SiteSearchSource.ts +0 -265
|
@@ -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
|
/**
|
|
@@ -1098,11 +1098,11 @@ export type SearchResultInstancesHrefSchema = {
|
|
|
1098
1098
|
*/
|
|
1099
1099
|
query: string;
|
|
1100
1100
|
/**
|
|
1101
|
-
* The
|
|
1101
|
+
* The search index ID or name 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
|
-
* **[Deprecated]** Use `
|
|
1105
|
+
* **[Deprecated]** Use `search_index_id` instead. The build trigger ID or name on which the search will be performed. This parameter is only supported for backward compatibility and will return an error if the build trigger has multiple search indexes associated.
|
|
1106
1106
|
*/
|
|
1107
1107
|
build_trigger_id?: string;
|
|
1108
1108
|
/**
|
|
@@ -1617,9 +1617,9 @@ export type RoleAttributes = {
|
|
|
1617
1617
|
*/
|
|
1618
1618
|
can_manage_build_triggers: boolean;
|
|
1619
1619
|
/**
|
|
1620
|
-
* Can create/edit
|
|
1620
|
+
* Can create/edit Search Indexes
|
|
1621
1621
|
*/
|
|
1622
|
-
|
|
1622
|
+
can_manage_search_indexes: boolean;
|
|
1623
1623
|
/**
|
|
1624
1624
|
* Can create/edit webhooks
|
|
1625
1625
|
*/
|
|
@@ -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
|
-
* Allowed
|
|
1768
|
+
* Allowed search indexes for a role
|
|
1769
1769
|
*/
|
|
1770
|
-
|
|
1771
|
-
|
|
1770
|
+
positive_search_index_permissions: {
|
|
1771
|
+
search_index?: SearchIndexIdentity | null;
|
|
1772
1772
|
}[];
|
|
1773
1773
|
/**
|
|
1774
|
-
* Prohibited
|
|
1774
|
+
* Prohibited search indexes for a role
|
|
1775
1775
|
*/
|
|
1776
|
-
|
|
1777
|
-
|
|
1776
|
+
negative_search_index_permissions: {
|
|
1777
|
+
search_index?: SearchIndexIdentity | null;
|
|
1778
1778
|
}[];
|
|
1779
1779
|
};
|
|
1780
1780
|
/**
|
|
@@ -1857,9 +1857,9 @@ export type RoleMeta = {
|
|
|
1857
1857
|
*/
|
|
1858
1858
|
can_manage_build_triggers: boolean;
|
|
1859
1859
|
/**
|
|
1860
|
-
* Can create/edit
|
|
1860
|
+
* Can create/edit Search Indexes
|
|
1861
1861
|
*/
|
|
1862
|
-
|
|
1862
|
+
can_manage_search_indexes: boolean;
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Can create/edit webhooks
|
|
1865
1865
|
*/
|
|
@@ -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
|
-
* Allowed
|
|
2008
|
+
* Allowed search indexes for a role
|
|
2009
2009
|
*/
|
|
2010
|
-
|
|
2011
|
-
|
|
2010
|
+
positive_search_index_permissions: {
|
|
2011
|
+
search_index?: SearchIndexIdentity | null;
|
|
2012
2012
|
}[];
|
|
2013
2013
|
/**
|
|
2014
|
-
* Prohibited
|
|
2014
|
+
* Prohibited search indexes for a role
|
|
2015
2015
|
*/
|
|
2016
|
-
|
|
2017
|
-
|
|
2016
|
+
negative_search_index_permissions: {
|
|
2017
|
+
search_index?: SearchIndexIdentity | null;
|
|
2018
2018
|
}[];
|
|
2019
2019
|
};
|
|
2020
2020
|
};
|
|
@@ -2070,9 +2070,9 @@ export type RoleCreateSchema = {
|
|
|
2070
2070
|
*/
|
|
2071
2071
|
can_manage_shared_filters?: boolean;
|
|
2072
2072
|
/**
|
|
2073
|
-
* Can create/edit
|
|
2073
|
+
* Can create/edit Search Indexes
|
|
2074
2074
|
*/
|
|
2075
|
-
|
|
2075
|
+
can_manage_search_indexes?: boolean;
|
|
2076
2076
|
/**
|
|
2077
2077
|
* Can create/edit upload collections
|
|
2078
2078
|
*/
|
|
@@ -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
|
-
* Allowed
|
|
2229
|
+
* Allowed search indexes for a role
|
|
2230
2230
|
*/
|
|
2231
|
-
|
|
2232
|
-
|
|
2231
|
+
positive_search_index_permissions?: {
|
|
2232
|
+
search_index?: SearchIndexIdentity | null;
|
|
2233
2233
|
}[];
|
|
2234
2234
|
/**
|
|
2235
|
-
* Prohibited
|
|
2235
|
+
* Prohibited search indexes for a role
|
|
2236
2236
|
*/
|
|
2237
|
-
|
|
2238
|
-
|
|
2237
|
+
negative_search_index_permissions?: {
|
|
2238
|
+
search_index?: SearchIndexIdentity | null;
|
|
2239
2239
|
}[];
|
|
2240
2240
|
};
|
|
2241
2241
|
/**
|
|
@@ -2312,9 +2312,9 @@ export type RoleUpdateSchema = {
|
|
|
2312
2312
|
*/
|
|
2313
2313
|
can_manage_shared_filters?: boolean;
|
|
2314
2314
|
/**
|
|
2315
|
-
* Can create/edit
|
|
2315
|
+
* Can create/edit Search Indexes
|
|
2316
2316
|
*/
|
|
2317
|
-
|
|
2317
|
+
can_manage_search_indexes?: boolean;
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Can create/edit upload collections
|
|
2320
2320
|
*/
|
|
@@ -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
|
-
* Allowed
|
|
2471
|
+
* Allowed search indexes for a role
|
|
2472
2472
|
*/
|
|
2473
|
-
|
|
2474
|
-
|
|
2473
|
+
positive_search_index_permissions?: {
|
|
2474
|
+
search_index?: SearchIndexIdentity | null;
|
|
2475
2475
|
}[];
|
|
2476
2476
|
/**
|
|
2477
|
-
* Prohibited
|
|
2477
|
+
* Prohibited search indexes for 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
|
};
|
|
@@ -6807,24 +6807,24 @@ export type BuildEventSelfTargetSchema = {
|
|
|
6807
6807
|
data: BuildEvent;
|
|
6808
6808
|
};
|
|
6809
6809
|
/**
|
|
6810
|
-
* Represents an event occurred during the
|
|
6810
|
+
* Represents an event occurred during the search indexing process.
|
|
6811
6811
|
*
|
|
6812
6812
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
6813
|
-
* via the `definition` "
|
|
6813
|
+
* via the `definition` "search_index_event".
|
|
6814
6814
|
*/
|
|
6815
|
-
export type
|
|
6816
|
-
type:
|
|
6817
|
-
id:
|
|
6818
|
-
attributes:
|
|
6819
|
-
relationships:
|
|
6815
|
+
export type SearchIndexEvent = {
|
|
6816
|
+
type: SearchIndexEventType;
|
|
6817
|
+
id: SearchIndexEventIdentity;
|
|
6818
|
+
attributes: SearchIndexEventAttributes;
|
|
6819
|
+
relationships: SearchIndexEventRelationships;
|
|
6820
6820
|
};
|
|
6821
6821
|
/**
|
|
6822
6822
|
* JSON API attributes
|
|
6823
6823
|
*
|
|
6824
|
-
* This interface was referenced by `
|
|
6824
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6825
6825
|
* via the `definition` "attributes".
|
|
6826
6826
|
*/
|
|
6827
|
-
export type
|
|
6827
|
+
export type SearchIndexEventAttributes = {
|
|
6828
6828
|
/**
|
|
6829
6829
|
* The type of activity
|
|
6830
6830
|
*/
|
|
@@ -6843,53 +6843,53 @@ export type SiteSearchSourceEventAttributes = {
|
|
|
6843
6843
|
/**
|
|
6844
6844
|
* JSON API links
|
|
6845
6845
|
*
|
|
6846
|
-
* This interface was referenced by `
|
|
6846
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6847
6847
|
* via the `definition` "relationships".
|
|
6848
6848
|
*/
|
|
6849
|
-
export type
|
|
6849
|
+
export type SearchIndexEventRelationships = {
|
|
6850
6850
|
/**
|
|
6851
|
-
* Source
|
|
6851
|
+
* Source search index
|
|
6852
6852
|
*/
|
|
6853
|
-
|
|
6854
|
-
data:
|
|
6853
|
+
search_index: {
|
|
6854
|
+
data: SearchIndexData;
|
|
6855
6855
|
};
|
|
6856
6856
|
};
|
|
6857
6857
|
/**
|
|
6858
6858
|
* JSON API data
|
|
6859
6859
|
*
|
|
6860
|
-
* This interface was referenced by `
|
|
6860
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
6861
6861
|
* via the `definition` "data".
|
|
6862
6862
|
*/
|
|
6863
|
-
export type
|
|
6864
|
-
type:
|
|
6865
|
-
id:
|
|
6863
|
+
export type SearchIndexData = {
|
|
6864
|
+
type: SearchIndexType;
|
|
6865
|
+
id: SearchIndexIdentity;
|
|
6866
6866
|
};
|
|
6867
6867
|
/**
|
|
6868
6868
|
* JSON API data
|
|
6869
6869
|
*
|
|
6870
|
-
* This interface was referenced by `
|
|
6870
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6871
6871
|
* via the `definition` "data".
|
|
6872
6872
|
*/
|
|
6873
|
-
export type
|
|
6874
|
-
type:
|
|
6875
|
-
id:
|
|
6873
|
+
export type SearchIndexEventData = {
|
|
6874
|
+
type: SearchIndexEventType;
|
|
6875
|
+
id: SearchIndexEventIdentity;
|
|
6876
6876
|
};
|
|
6877
6877
|
/**
|
|
6878
|
-
* This interface was referenced by `
|
|
6878
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6879
6879
|
* via the `instances.targetSchema` link.
|
|
6880
6880
|
*/
|
|
6881
|
-
export type
|
|
6882
|
-
data:
|
|
6881
|
+
export type SearchIndexEventInstancesTargetSchema = {
|
|
6882
|
+
data: SearchIndexEvent[];
|
|
6883
6883
|
meta: {
|
|
6884
6884
|
total_count: number;
|
|
6885
6885
|
};
|
|
6886
6886
|
};
|
|
6887
6887
|
/**
|
|
6888
|
-
* This interface was referenced by `
|
|
6888
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
6889
6889
|
* via the `self.targetSchema` link.
|
|
6890
6890
|
*/
|
|
6891
|
-
export type
|
|
6892
|
-
data:
|
|
6891
|
+
export type SearchIndexEventSelfTargetSchema = {
|
|
6892
|
+
data: SearchIndexEvent;
|
|
6893
6893
|
};
|
|
6894
6894
|
/**
|
|
6895
6895
|
* JSON API links
|
|
@@ -9443,31 +9443,31 @@ export type BuildTriggerDestroyTargetSchema = {
|
|
|
9443
9443
|
data: BuildTrigger;
|
|
9444
9444
|
};
|
|
9445
9445
|
/**
|
|
9446
|
-
* A
|
|
9446
|
+
* A Search Index represents a website that should be indexed by DatoCMS Site Search. When enabled, DatoCMS will periodically spider the website to update the search index.
|
|
9447
9447
|
*
|
|
9448
9448
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
9449
|
-
* via the `definition` "
|
|
9449
|
+
* via the `definition` "search_index".
|
|
9450
9450
|
*/
|
|
9451
|
-
export type
|
|
9452
|
-
type:
|
|
9453
|
-
id:
|
|
9454
|
-
attributes:
|
|
9455
|
-
relationships:
|
|
9456
|
-
meta:
|
|
9451
|
+
export type SearchIndex = {
|
|
9452
|
+
type: SearchIndexType;
|
|
9453
|
+
id: SearchIndexIdentity;
|
|
9454
|
+
attributes: SearchIndexAttributes;
|
|
9455
|
+
relationships: SearchIndexRelationships;
|
|
9456
|
+
meta: SearchIndexMeta;
|
|
9457
9457
|
};
|
|
9458
9458
|
/**
|
|
9459
9459
|
* JSON API attributes
|
|
9460
9460
|
*
|
|
9461
|
-
* This interface was referenced by `
|
|
9461
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9462
9462
|
* via the `definition` "attributes".
|
|
9463
9463
|
*/
|
|
9464
|
-
export type
|
|
9464
|
+
export type SearchIndexAttributes = {
|
|
9465
9465
|
/**
|
|
9466
|
-
* Name of the
|
|
9466
|
+
* Name of the search index
|
|
9467
9467
|
*/
|
|
9468
9468
|
name: string;
|
|
9469
9469
|
/**
|
|
9470
|
-
* Whether the
|
|
9470
|
+
* Whether the search index is enabled or not
|
|
9471
9471
|
*/
|
|
9472
9472
|
enabled: boolean;
|
|
9473
9473
|
/**
|
|
@@ -9478,28 +9478,32 @@ export type SiteSearchSourceAttributes = {
|
|
|
9478
9478
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
9479
9479
|
*/
|
|
9480
9480
|
frontend_url: string | null;
|
|
9481
|
+
/**
|
|
9482
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
9483
|
+
*/
|
|
9484
|
+
user_agent_suffix: string | null;
|
|
9481
9485
|
};
|
|
9482
9486
|
/**
|
|
9483
9487
|
* JSON API links
|
|
9484
9488
|
*
|
|
9485
|
-
* This interface was referenced by `
|
|
9489
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9486
9490
|
* via the `definition` "relationships".
|
|
9487
9491
|
*/
|
|
9488
|
-
export type
|
|
9492
|
+
export type SearchIndexRelationships = {
|
|
9489
9493
|
/**
|
|
9490
|
-
* The build triggers connected to this
|
|
9494
|
+
* The build triggers connected to this search index
|
|
9491
9495
|
*/
|
|
9492
9496
|
build_triggers: {
|
|
9493
9497
|
data: BuildTriggerData[];
|
|
9494
9498
|
};
|
|
9495
9499
|
};
|
|
9496
9500
|
/**
|
|
9497
|
-
* Meta information about the
|
|
9501
|
+
* Meta information about the search index
|
|
9498
9502
|
*
|
|
9499
|
-
* This interface was referenced by `
|
|
9503
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9500
9504
|
* via the `definition` "meta".
|
|
9501
9505
|
*/
|
|
9502
|
-
export type
|
|
9506
|
+
export type SearchIndexMeta = {
|
|
9503
9507
|
/**
|
|
9504
9508
|
* Status of the site search indexing
|
|
9505
9509
|
*/
|
|
@@ -9510,33 +9514,33 @@ export type SiteSearchSourceMeta = {
|
|
|
9510
9514
|
last_indexing_completed_at: string | null;
|
|
9511
9515
|
};
|
|
9512
9516
|
/**
|
|
9513
|
-
* This interface was referenced by `
|
|
9517
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9514
9518
|
* via the `instances.targetSchema` link.
|
|
9515
9519
|
*/
|
|
9516
|
-
export type
|
|
9517
|
-
data:
|
|
9520
|
+
export type SearchIndexInstancesTargetSchema = {
|
|
9521
|
+
data: SearchIndex[];
|
|
9518
9522
|
};
|
|
9519
9523
|
/**
|
|
9520
|
-
* This interface was referenced by `
|
|
9524
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9521
9525
|
* via the `self.targetSchema` link.
|
|
9522
9526
|
*/
|
|
9523
|
-
export type
|
|
9524
|
-
data:
|
|
9527
|
+
export type SearchIndexSelfTargetSchema = {
|
|
9528
|
+
data: SearchIndex;
|
|
9525
9529
|
};
|
|
9526
9530
|
/**
|
|
9527
|
-
* This interface was referenced by `
|
|
9531
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9528
9532
|
* via the `create.schema` link.
|
|
9529
9533
|
*/
|
|
9530
|
-
export type
|
|
9534
|
+
export type SearchIndexCreateSchema = {
|
|
9531
9535
|
data: {
|
|
9532
|
-
type:
|
|
9536
|
+
type: SearchIndexType;
|
|
9533
9537
|
attributes: {
|
|
9534
9538
|
/**
|
|
9535
|
-
* Name of the
|
|
9539
|
+
* Name of the search index
|
|
9536
9540
|
*/
|
|
9537
9541
|
name: string;
|
|
9538
9542
|
/**
|
|
9539
|
-
* Whether the
|
|
9543
|
+
* Whether the search index is enabled or not
|
|
9540
9544
|
*/
|
|
9541
9545
|
enabled: boolean;
|
|
9542
9546
|
/**
|
|
@@ -9547,13 +9551,17 @@ export type SiteSearchSourceCreateSchema = {
|
|
|
9547
9551
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
9548
9552
|
*/
|
|
9549
9553
|
frontend_url: string | null;
|
|
9554
|
+
/**
|
|
9555
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
9556
|
+
*/
|
|
9557
|
+
user_agent_suffix?: string | null;
|
|
9550
9558
|
};
|
|
9551
9559
|
/**
|
|
9552
9560
|
* JSON API links
|
|
9553
9561
|
*/
|
|
9554
9562
|
relationships?: {
|
|
9555
9563
|
/**
|
|
9556
|
-
* The build triggers connected to this
|
|
9564
|
+
* The build triggers connected to this search index
|
|
9557
9565
|
*/
|
|
9558
9566
|
build_triggers?: {
|
|
9559
9567
|
data: BuildTriggerData[];
|
|
@@ -9562,27 +9570,27 @@ export type SiteSearchSourceCreateSchema = {
|
|
|
9562
9570
|
};
|
|
9563
9571
|
};
|
|
9564
9572
|
/**
|
|
9565
|
-
* This interface was referenced by `
|
|
9573
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9566
9574
|
* via the `create.targetSchema` link.
|
|
9567
9575
|
*/
|
|
9568
|
-
export type
|
|
9569
|
-
data:
|
|
9576
|
+
export type SearchIndexCreateTargetSchema = {
|
|
9577
|
+
data: SearchIndex;
|
|
9570
9578
|
};
|
|
9571
9579
|
/**
|
|
9572
|
-
* This interface was referenced by `
|
|
9580
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9573
9581
|
* via the `update.schema` link.
|
|
9574
9582
|
*/
|
|
9575
|
-
export type
|
|
9583
|
+
export type SearchIndexUpdateSchema = {
|
|
9576
9584
|
data: {
|
|
9577
|
-
type:
|
|
9578
|
-
id:
|
|
9585
|
+
type: SearchIndexType;
|
|
9586
|
+
id: SearchIndexIdentity;
|
|
9579
9587
|
attributes: {
|
|
9580
9588
|
/**
|
|
9581
|
-
* Name of the
|
|
9589
|
+
* Name of the search index
|
|
9582
9590
|
*/
|
|
9583
9591
|
name?: string;
|
|
9584
9592
|
/**
|
|
9585
|
-
* Whether the
|
|
9593
|
+
* Whether the search index is enabled or not
|
|
9586
9594
|
*/
|
|
9587
9595
|
enabled?: boolean;
|
|
9588
9596
|
/**
|
|
@@ -9593,13 +9601,17 @@ export type SiteSearchSourceUpdateSchema = {
|
|
|
9593
9601
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
9594
9602
|
*/
|
|
9595
9603
|
frontend_url?: string | null;
|
|
9604
|
+
/**
|
|
9605
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
9606
|
+
*/
|
|
9607
|
+
user_agent_suffix?: string | null;
|
|
9596
9608
|
};
|
|
9597
9609
|
/**
|
|
9598
9610
|
* JSON API links
|
|
9599
9611
|
*/
|
|
9600
9612
|
relationships?: {
|
|
9601
9613
|
/**
|
|
9602
|
-
* The build triggers connected to this
|
|
9614
|
+
* The build triggers connected to this search index
|
|
9603
9615
|
*/
|
|
9604
9616
|
build_triggers?: {
|
|
9605
9617
|
data: BuildTriggerData[];
|
|
@@ -9608,18 +9620,18 @@ export type SiteSearchSourceUpdateSchema = {
|
|
|
9608
9620
|
};
|
|
9609
9621
|
};
|
|
9610
9622
|
/**
|
|
9611
|
-
* This interface was referenced by `
|
|
9623
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9612
9624
|
* via the `update.targetSchema` link.
|
|
9613
9625
|
*/
|
|
9614
|
-
export type
|
|
9615
|
-
data:
|
|
9626
|
+
export type SearchIndexUpdateTargetSchema = {
|
|
9627
|
+
data: SearchIndex;
|
|
9616
9628
|
};
|
|
9617
9629
|
/**
|
|
9618
|
-
* This interface was referenced by `
|
|
9630
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9619
9631
|
* via the `destroy.targetSchema` link.
|
|
9620
9632
|
*/
|
|
9621
|
-
export type
|
|
9622
|
-
data:
|
|
9633
|
+
export type SearchIndexDestroyTargetSchema = {
|
|
9634
|
+
data: SearchIndex;
|
|
9623
9635
|
};
|
|
9624
9636
|
/**
|
|
9625
9637
|
* In DatoCMS you can create filters to help you (and other editors) quickly search for records
|