@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
|
@@ -119,15 +119,15 @@ export type EnvironmentIdentity = string;
|
|
|
119
119
|
*/
|
|
120
120
|
export type BuildTriggerIdentity = string;
|
|
121
121
|
/**
|
|
122
|
-
* ID of
|
|
122
|
+
* ID of search_index
|
|
123
123
|
*
|
|
124
|
-
* This interface was referenced by `
|
|
124
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
125
125
|
* via the `definition` "identity".
|
|
126
126
|
*
|
|
127
|
-
* This interface was referenced by `
|
|
127
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
128
128
|
* via the `definition` "id".
|
|
129
129
|
*/
|
|
130
|
-
export type
|
|
130
|
+
export type SearchIndexIdentity = string;
|
|
131
131
|
/**
|
|
132
132
|
* This interface was referenced by `User`'s JSON-Schema
|
|
133
133
|
* via the `definition` "type".
|
|
@@ -671,30 +671,30 @@ export type BuildEventInstancesHrefSchema = {
|
|
|
671
671
|
[k: string]: unknown;
|
|
672
672
|
};
|
|
673
673
|
/**
|
|
674
|
-
* This interface was referenced by `
|
|
674
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
675
675
|
* via the `definition` "type".
|
|
676
676
|
*/
|
|
677
|
-
export type
|
|
677
|
+
export type SearchIndexEventType = 'search_index_event';
|
|
678
678
|
/**
|
|
679
|
-
* ID of
|
|
679
|
+
* ID of search index event
|
|
680
680
|
*
|
|
681
|
-
* This interface was referenced by `
|
|
681
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
682
682
|
* via the `definition` "identity".
|
|
683
683
|
*
|
|
684
|
-
* This interface was referenced by `
|
|
684
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
685
685
|
* via the `definition` "id".
|
|
686
686
|
*/
|
|
687
|
-
export type
|
|
687
|
+
export type SearchIndexEventIdentity = string;
|
|
688
688
|
/**
|
|
689
|
-
* This interface was referenced by `
|
|
689
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
690
690
|
* via the `definition` "type".
|
|
691
691
|
*/
|
|
692
|
-
export type
|
|
692
|
+
export type SearchIndexType = 'search_index';
|
|
693
693
|
/**
|
|
694
|
-
* This interface was referenced by `
|
|
694
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
695
695
|
* via the `instances.hrefSchema` link.
|
|
696
696
|
*/
|
|
697
|
-
export type
|
|
697
|
+
export type SearchIndexEventInstancesHrefSchema = {
|
|
698
698
|
/**
|
|
699
699
|
* Parameters to control offset-based pagination
|
|
700
700
|
*/
|
|
@@ -717,7 +717,7 @@ export type SiteSearchSourceEventInstancesHrefSchema = {
|
|
|
717
717
|
*/
|
|
718
718
|
ids?: string;
|
|
719
719
|
fields?: {
|
|
720
|
-
|
|
720
|
+
search_index_id?: {
|
|
721
721
|
eq?: string;
|
|
722
722
|
};
|
|
723
723
|
event_type?: {
|
|
@@ -740,8 +740,8 @@ export type SiteSearchSourceEventInstancesHrefSchema = {
|
|
|
740
740
|
* Fields used to order results
|
|
741
741
|
*/
|
|
742
742
|
order_by?:
|
|
743
|
-
| '
|
|
744
|
-
| '
|
|
743
|
+
| 'search_index_id_asc'
|
|
744
|
+
| 'search_index_id_desc'
|
|
745
745
|
| 'created_at_asc'
|
|
746
746
|
| 'created_at_desc'
|
|
747
747
|
| 'event_type_asc'
|
|
@@ -1150,11 +1150,11 @@ export type SearchResultInstancesHrefSchema = {
|
|
|
1150
1150
|
*/
|
|
1151
1151
|
query: string;
|
|
1152
1152
|
/**
|
|
1153
|
-
* The
|
|
1153
|
+
* The search index ID or name on which the search will be performed. If not provided, the first enabled search index will be used.
|
|
1154
1154
|
*/
|
|
1155
|
-
|
|
1155
|
+
search_index_id?: string;
|
|
1156
1156
|
/**
|
|
1157
|
-
* **[Deprecated]** Use `
|
|
1157
|
+
* **[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.
|
|
1158
1158
|
*/
|
|
1159
1159
|
build_trigger_id?: string;
|
|
1160
1160
|
/**
|
|
@@ -1715,9 +1715,9 @@ export type RoleAttributes = {
|
|
|
1715
1715
|
*/
|
|
1716
1716
|
can_manage_build_triggers: boolean;
|
|
1717
1717
|
/**
|
|
1718
|
-
* Can create/edit
|
|
1718
|
+
* Can create/edit Search Indexes
|
|
1719
1719
|
*/
|
|
1720
|
-
|
|
1720
|
+
can_manage_search_indexes: boolean;
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Can create/edit webhooks
|
|
1723
1723
|
*/
|
|
@@ -1751,9 +1751,9 @@ export type RoleAttributes = {
|
|
|
1751
1751
|
*/
|
|
1752
1752
|
can_access_build_events_log: boolean;
|
|
1753
1753
|
/**
|
|
1754
|
-
* Can access the
|
|
1754
|
+
* Can access the search index events log
|
|
1755
1755
|
*/
|
|
1756
|
-
|
|
1756
|
+
can_access_search_index_events_log: boolean;
|
|
1757
1757
|
/**
|
|
1758
1758
|
* Allowed actions on a model (or all) for a role
|
|
1759
1759
|
*/
|
|
@@ -1897,16 +1897,16 @@ export type RoleAttributes = {
|
|
|
1897
1897
|
build_trigger?: BuildTriggerIdentity | null;
|
|
1898
1898
|
}[];
|
|
1899
1899
|
/**
|
|
1900
|
-
* Allowed
|
|
1900
|
+
* Allowed search indexes for a role
|
|
1901
1901
|
*/
|
|
1902
|
-
|
|
1903
|
-
|
|
1902
|
+
positive_search_index_permissions: {
|
|
1903
|
+
search_index?: SearchIndexIdentity | null;
|
|
1904
1904
|
}[];
|
|
1905
1905
|
/**
|
|
1906
|
-
* Prohibited
|
|
1906
|
+
* Prohibited search indexes for a role
|
|
1907
1907
|
*/
|
|
1908
|
-
|
|
1909
|
-
|
|
1908
|
+
negative_search_index_permissions: {
|
|
1909
|
+
search_index?: SearchIndexIdentity | null;
|
|
1910
1910
|
}[];
|
|
1911
1911
|
};
|
|
1912
1912
|
/**
|
|
@@ -1989,9 +1989,9 @@ export type RoleMeta = {
|
|
|
1989
1989
|
*/
|
|
1990
1990
|
can_manage_build_triggers: boolean;
|
|
1991
1991
|
/**
|
|
1992
|
-
* Can create/edit
|
|
1992
|
+
* Can create/edit Search Indexes
|
|
1993
1993
|
*/
|
|
1994
|
-
|
|
1994
|
+
can_manage_search_indexes: boolean;
|
|
1995
1995
|
/**
|
|
1996
1996
|
* Can create/edit webhooks
|
|
1997
1997
|
*/
|
|
@@ -2025,9 +2025,9 @@ export type RoleMeta = {
|
|
|
2025
2025
|
*/
|
|
2026
2026
|
can_access_build_events_log: boolean;
|
|
2027
2027
|
/**
|
|
2028
|
-
* Can access the
|
|
2028
|
+
* Can access the search index events log
|
|
2029
2029
|
*/
|
|
2030
|
-
|
|
2030
|
+
can_access_search_index_events_log: boolean;
|
|
2031
2031
|
/**
|
|
2032
2032
|
* Allowed actions on a model (or all) for a role
|
|
2033
2033
|
*/
|
|
@@ -2171,16 +2171,16 @@ export type RoleMeta = {
|
|
|
2171
2171
|
build_trigger?: BuildTriggerIdentity | null;
|
|
2172
2172
|
}[];
|
|
2173
2173
|
/**
|
|
2174
|
-
* Allowed
|
|
2174
|
+
* Allowed search indexes for a role
|
|
2175
2175
|
*/
|
|
2176
|
-
|
|
2177
|
-
|
|
2176
|
+
positive_search_index_permissions: {
|
|
2177
|
+
search_index?: SearchIndexIdentity | null;
|
|
2178
2178
|
}[];
|
|
2179
2179
|
/**
|
|
2180
|
-
* Prohibited
|
|
2180
|
+
* Prohibited search indexes for a role
|
|
2181
2181
|
*/
|
|
2182
|
-
|
|
2183
|
-
|
|
2182
|
+
negative_search_index_permissions: {
|
|
2183
|
+
search_index?: SearchIndexIdentity | null;
|
|
2184
2184
|
}[];
|
|
2185
2185
|
};
|
|
2186
2186
|
};
|
|
@@ -2236,9 +2236,9 @@ export type RoleCreateSchema = {
|
|
|
2236
2236
|
*/
|
|
2237
2237
|
can_manage_shared_filters?: boolean;
|
|
2238
2238
|
/**
|
|
2239
|
-
* Can create/edit
|
|
2239
|
+
* Can create/edit Search Indexes
|
|
2240
2240
|
*/
|
|
2241
|
-
|
|
2241
|
+
can_manage_search_indexes?: boolean;
|
|
2242
2242
|
/**
|
|
2243
2243
|
* Can create/edit upload collections
|
|
2244
2244
|
*/
|
|
@@ -2280,9 +2280,9 @@ export type RoleCreateSchema = {
|
|
|
2280
2280
|
*/
|
|
2281
2281
|
can_access_build_events_log?: boolean;
|
|
2282
2282
|
/**
|
|
2283
|
-
* Can access the
|
|
2283
|
+
* Can access the search index events log
|
|
2284
2284
|
*/
|
|
2285
|
-
|
|
2285
|
+
can_access_search_index_events_log?: boolean;
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Allowed actions on a model (or all) for a role
|
|
2288
2288
|
*/
|
|
@@ -2426,16 +2426,16 @@ export type RoleCreateSchema = {
|
|
|
2426
2426
|
build_trigger?: BuildTriggerIdentity | null;
|
|
2427
2427
|
}[];
|
|
2428
2428
|
/**
|
|
2429
|
-
* Allowed
|
|
2429
|
+
* Allowed search indexes for a role
|
|
2430
2430
|
*/
|
|
2431
|
-
|
|
2432
|
-
|
|
2431
|
+
positive_search_index_permissions?: {
|
|
2432
|
+
search_index?: SearchIndexIdentity | null;
|
|
2433
2433
|
}[];
|
|
2434
2434
|
/**
|
|
2435
|
-
* Prohibited
|
|
2435
|
+
* Prohibited search indexes for a role
|
|
2436
2436
|
*/
|
|
2437
|
-
|
|
2438
|
-
|
|
2437
|
+
negative_search_index_permissions?: {
|
|
2438
|
+
search_index?: SearchIndexIdentity | null;
|
|
2439
2439
|
}[];
|
|
2440
2440
|
};
|
|
2441
2441
|
/**
|
|
@@ -2512,9 +2512,9 @@ export type RoleUpdateSchema = {
|
|
|
2512
2512
|
*/
|
|
2513
2513
|
can_manage_shared_filters?: boolean;
|
|
2514
2514
|
/**
|
|
2515
|
-
* Can create/edit
|
|
2515
|
+
* Can create/edit Search Indexes
|
|
2516
2516
|
*/
|
|
2517
|
-
|
|
2517
|
+
can_manage_search_indexes?: boolean;
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Can create/edit upload collections
|
|
2520
2520
|
*/
|
|
@@ -2556,9 +2556,9 @@ export type RoleUpdateSchema = {
|
|
|
2556
2556
|
*/
|
|
2557
2557
|
can_access_build_events_log?: boolean;
|
|
2558
2558
|
/**
|
|
2559
|
-
* Can access the
|
|
2559
|
+
* Can access the search index events log
|
|
2560
2560
|
*/
|
|
2561
|
-
|
|
2561
|
+
can_access_search_index_events_log?: boolean;
|
|
2562
2562
|
/**
|
|
2563
2563
|
* Allowed actions on a model (or all) for a role
|
|
2564
2564
|
*/
|
|
@@ -2702,16 +2702,16 @@ export type RoleUpdateSchema = {
|
|
|
2702
2702
|
build_trigger?: BuildTriggerIdentity | null;
|
|
2703
2703
|
}[];
|
|
2704
2704
|
/**
|
|
2705
|
-
* Allowed
|
|
2705
|
+
* Allowed search indexes for a role
|
|
2706
2706
|
*/
|
|
2707
|
-
|
|
2708
|
-
|
|
2707
|
+
positive_search_index_permissions?: {
|
|
2708
|
+
search_index?: SearchIndexIdentity | null;
|
|
2709
2709
|
}[];
|
|
2710
2710
|
/**
|
|
2711
|
-
* Prohibited
|
|
2711
|
+
* Prohibited search indexes for a role
|
|
2712
2712
|
*/
|
|
2713
|
-
|
|
2714
|
-
|
|
2713
|
+
negative_search_index_permissions?: {
|
|
2714
|
+
search_index?: SearchIndexIdentity | null;
|
|
2715
2715
|
}[];
|
|
2716
2716
|
};
|
|
2717
2717
|
/**
|
|
@@ -3480,9 +3480,9 @@ export type SitePlanAttributes = {
|
|
|
3480
3480
|
*/
|
|
3481
3481
|
build_triggers: null | number;
|
|
3482
3482
|
/**
|
|
3483
|
-
* Number of
|
|
3483
|
+
* Number of search indexes
|
|
3484
3484
|
*/
|
|
3485
|
-
|
|
3485
|
+
search_indexes: null | number;
|
|
3486
3486
|
/**
|
|
3487
3487
|
* Number of plugins
|
|
3488
3488
|
*/
|
|
@@ -3647,7 +3647,7 @@ export type SitePlanAttributes = {
|
|
|
3647
3647
|
amount_per_packet: number;
|
|
3648
3648
|
price: number;
|
|
3649
3649
|
};
|
|
3650
|
-
|
|
3650
|
+
search_indexes?: {
|
|
3651
3651
|
amount_per_packet: number;
|
|
3652
3652
|
price: number;
|
|
3653
3653
|
};
|
|
@@ -7185,24 +7185,24 @@ export type BuildEventSelfTargetSchema = {
|
|
|
7185
7185
|
data: BuildEvent;
|
|
7186
7186
|
};
|
|
7187
7187
|
/**
|
|
7188
|
-
* Represents an event occurred during the
|
|
7188
|
+
* Represents an event occurred during the search indexing process.
|
|
7189
7189
|
*
|
|
7190
7190
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
7191
|
-
* via the `definition` "
|
|
7191
|
+
* via the `definition` "search_index_event".
|
|
7192
7192
|
*/
|
|
7193
|
-
export type
|
|
7194
|
-
type:
|
|
7195
|
-
id:
|
|
7196
|
-
attributes:
|
|
7197
|
-
relationships:
|
|
7193
|
+
export type SearchIndexEvent = {
|
|
7194
|
+
type: SearchIndexEventType;
|
|
7195
|
+
id: SearchIndexEventIdentity;
|
|
7196
|
+
attributes: SearchIndexEventAttributes;
|
|
7197
|
+
relationships: SearchIndexEventRelationships;
|
|
7198
7198
|
};
|
|
7199
7199
|
/**
|
|
7200
7200
|
* JSON API attributes
|
|
7201
7201
|
*
|
|
7202
|
-
* This interface was referenced by `
|
|
7202
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
7203
7203
|
* via the `definition` "attributes".
|
|
7204
7204
|
*/
|
|
7205
|
-
export type
|
|
7205
|
+
export type SearchIndexEventAttributes = {
|
|
7206
7206
|
/**
|
|
7207
7207
|
* The type of activity
|
|
7208
7208
|
*/
|
|
@@ -7225,53 +7225,53 @@ export type SiteSearchSourceEventAttributes = {
|
|
|
7225
7225
|
/**
|
|
7226
7226
|
* JSON API links
|
|
7227
7227
|
*
|
|
7228
|
-
* This interface was referenced by `
|
|
7228
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
7229
7229
|
* via the `definition` "relationships".
|
|
7230
7230
|
*/
|
|
7231
|
-
export type
|
|
7231
|
+
export type SearchIndexEventRelationships = {
|
|
7232
7232
|
/**
|
|
7233
|
-
* Source
|
|
7233
|
+
* Source search index
|
|
7234
7234
|
*/
|
|
7235
|
-
|
|
7236
|
-
data:
|
|
7235
|
+
search_index: {
|
|
7236
|
+
data: SearchIndexData;
|
|
7237
7237
|
};
|
|
7238
7238
|
};
|
|
7239
7239
|
/**
|
|
7240
7240
|
* JSON API data
|
|
7241
7241
|
*
|
|
7242
|
-
* This interface was referenced by `
|
|
7242
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
7243
7243
|
* via the `definition` "data".
|
|
7244
7244
|
*/
|
|
7245
|
-
export type
|
|
7246
|
-
type:
|
|
7247
|
-
id:
|
|
7245
|
+
export type SearchIndexData = {
|
|
7246
|
+
type: SearchIndexType;
|
|
7247
|
+
id: SearchIndexIdentity;
|
|
7248
7248
|
};
|
|
7249
7249
|
/**
|
|
7250
7250
|
* JSON API data
|
|
7251
7251
|
*
|
|
7252
|
-
* This interface was referenced by `
|
|
7252
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
7253
7253
|
* via the `definition` "data".
|
|
7254
7254
|
*/
|
|
7255
|
-
export type
|
|
7256
|
-
type:
|
|
7257
|
-
id:
|
|
7255
|
+
export type SearchIndexEventData = {
|
|
7256
|
+
type: SearchIndexEventType;
|
|
7257
|
+
id: SearchIndexEventIdentity;
|
|
7258
7258
|
};
|
|
7259
7259
|
/**
|
|
7260
|
-
* This interface was referenced by `
|
|
7260
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
7261
7261
|
* via the `instances.targetSchema` link.
|
|
7262
7262
|
*/
|
|
7263
|
-
export type
|
|
7264
|
-
data:
|
|
7263
|
+
export type SearchIndexEventInstancesTargetSchema = {
|
|
7264
|
+
data: SearchIndexEvent[];
|
|
7265
7265
|
meta: {
|
|
7266
7266
|
total_count: number;
|
|
7267
7267
|
};
|
|
7268
7268
|
};
|
|
7269
7269
|
/**
|
|
7270
|
-
* This interface was referenced by `
|
|
7270
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
7271
7271
|
* via the `self.targetSchema` link.
|
|
7272
7272
|
*/
|
|
7273
|
-
export type
|
|
7274
|
-
data:
|
|
7273
|
+
export type SearchIndexEventSelfTargetSchema = {
|
|
7274
|
+
data: SearchIndexEvent;
|
|
7275
7275
|
};
|
|
7276
7276
|
/**
|
|
7277
7277
|
* JSON API links
|
|
@@ -10052,31 +10052,31 @@ export type BuildTriggerDestroyTargetSchema = {
|
|
|
10052
10052
|
data: BuildTrigger;
|
|
10053
10053
|
};
|
|
10054
10054
|
/**
|
|
10055
|
-
* A
|
|
10055
|
+
* 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.
|
|
10056
10056
|
*
|
|
10057
10057
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
10058
|
-
* via the `definition` "
|
|
10058
|
+
* via the `definition` "search_index".
|
|
10059
10059
|
*/
|
|
10060
|
-
export type
|
|
10061
|
-
type:
|
|
10062
|
-
id:
|
|
10063
|
-
attributes:
|
|
10064
|
-
relationships:
|
|
10065
|
-
meta:
|
|
10060
|
+
export type SearchIndex = {
|
|
10061
|
+
type: SearchIndexType;
|
|
10062
|
+
id: SearchIndexIdentity;
|
|
10063
|
+
attributes: SearchIndexAttributes;
|
|
10064
|
+
relationships: SearchIndexRelationships;
|
|
10065
|
+
meta: SearchIndexMeta;
|
|
10066
10066
|
};
|
|
10067
10067
|
/**
|
|
10068
10068
|
* JSON API attributes
|
|
10069
10069
|
*
|
|
10070
|
-
* This interface was referenced by `
|
|
10070
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10071
10071
|
* via the `definition` "attributes".
|
|
10072
10072
|
*/
|
|
10073
|
-
export type
|
|
10073
|
+
export type SearchIndexAttributes = {
|
|
10074
10074
|
/**
|
|
10075
|
-
* Name of the
|
|
10075
|
+
* Name of the search index
|
|
10076
10076
|
*/
|
|
10077
10077
|
name: string;
|
|
10078
10078
|
/**
|
|
10079
|
-
* Whether the
|
|
10079
|
+
* Whether the search index is enabled or not
|
|
10080
10080
|
*/
|
|
10081
10081
|
enabled: boolean;
|
|
10082
10082
|
/**
|
|
@@ -10087,28 +10087,32 @@ export type SiteSearchSourceAttributes = {
|
|
|
10087
10087
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
10088
10088
|
*/
|
|
10089
10089
|
frontend_url: string | null;
|
|
10090
|
+
/**
|
|
10091
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
10092
|
+
*/
|
|
10093
|
+
user_agent_suffix: string | null;
|
|
10090
10094
|
};
|
|
10091
10095
|
/**
|
|
10092
10096
|
* JSON API links
|
|
10093
10097
|
*
|
|
10094
|
-
* This interface was referenced by `
|
|
10098
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10095
10099
|
* via the `definition` "relationships".
|
|
10096
10100
|
*/
|
|
10097
|
-
export type
|
|
10101
|
+
export type SearchIndexRelationships = {
|
|
10098
10102
|
/**
|
|
10099
|
-
* The build triggers connected to this
|
|
10103
|
+
* The build triggers connected to this search index
|
|
10100
10104
|
*/
|
|
10101
10105
|
build_triggers: {
|
|
10102
10106
|
data: BuildTriggerData[];
|
|
10103
10107
|
};
|
|
10104
10108
|
};
|
|
10105
10109
|
/**
|
|
10106
|
-
* Meta information about the
|
|
10110
|
+
* Meta information about the search index
|
|
10107
10111
|
*
|
|
10108
|
-
* This interface was referenced by `
|
|
10112
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10109
10113
|
* via the `definition` "meta".
|
|
10110
10114
|
*/
|
|
10111
|
-
export type
|
|
10115
|
+
export type SearchIndexMeta = {
|
|
10112
10116
|
/**
|
|
10113
10117
|
* Status of the site search indexing
|
|
10114
10118
|
*/
|
|
@@ -10119,33 +10123,33 @@ export type SiteSearchSourceMeta = {
|
|
|
10119
10123
|
last_indexing_completed_at: string | null;
|
|
10120
10124
|
};
|
|
10121
10125
|
/**
|
|
10122
|
-
* This interface was referenced by `
|
|
10126
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10123
10127
|
* via the `instances.targetSchema` link.
|
|
10124
10128
|
*/
|
|
10125
|
-
export type
|
|
10126
|
-
data:
|
|
10129
|
+
export type SearchIndexInstancesTargetSchema = {
|
|
10130
|
+
data: SearchIndex[];
|
|
10127
10131
|
};
|
|
10128
10132
|
/**
|
|
10129
|
-
* This interface was referenced by `
|
|
10133
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10130
10134
|
* via the `self.targetSchema` link.
|
|
10131
10135
|
*/
|
|
10132
|
-
export type
|
|
10133
|
-
data:
|
|
10136
|
+
export type SearchIndexSelfTargetSchema = {
|
|
10137
|
+
data: SearchIndex;
|
|
10134
10138
|
};
|
|
10135
10139
|
/**
|
|
10136
|
-
* This interface was referenced by `
|
|
10140
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10137
10141
|
* via the `create.schema` link.
|
|
10138
10142
|
*/
|
|
10139
|
-
export type
|
|
10143
|
+
export type SearchIndexCreateSchema = {
|
|
10140
10144
|
data: {
|
|
10141
|
-
type:
|
|
10145
|
+
type: SearchIndexType;
|
|
10142
10146
|
attributes: {
|
|
10143
10147
|
/**
|
|
10144
|
-
* Name of the
|
|
10148
|
+
* Name of the search index
|
|
10145
10149
|
*/
|
|
10146
10150
|
name: string;
|
|
10147
10151
|
/**
|
|
10148
|
-
* Whether the
|
|
10152
|
+
* Whether the search index is enabled or not
|
|
10149
10153
|
*/
|
|
10150
10154
|
enabled: boolean;
|
|
10151
10155
|
/**
|
|
@@ -10156,13 +10160,17 @@ export type SiteSearchSourceCreateSchema = {
|
|
|
10156
10160
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
10157
10161
|
*/
|
|
10158
10162
|
frontend_url: string | null;
|
|
10163
|
+
/**
|
|
10164
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
10165
|
+
*/
|
|
10166
|
+
user_agent_suffix?: string | null;
|
|
10159
10167
|
};
|
|
10160
10168
|
/**
|
|
10161
10169
|
* JSON API links
|
|
10162
10170
|
*/
|
|
10163
10171
|
relationships?: {
|
|
10164
10172
|
/**
|
|
10165
|
-
* The build triggers connected to this
|
|
10173
|
+
* The build triggers connected to this search index
|
|
10166
10174
|
*/
|
|
10167
10175
|
build_triggers?: {
|
|
10168
10176
|
data: BuildTriggerData[];
|
|
@@ -10171,27 +10179,27 @@ export type SiteSearchSourceCreateSchema = {
|
|
|
10171
10179
|
};
|
|
10172
10180
|
};
|
|
10173
10181
|
/**
|
|
10174
|
-
* This interface was referenced by `
|
|
10182
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10175
10183
|
* via the `create.targetSchema` link.
|
|
10176
10184
|
*/
|
|
10177
|
-
export type
|
|
10178
|
-
data:
|
|
10185
|
+
export type SearchIndexCreateTargetSchema = {
|
|
10186
|
+
data: SearchIndex;
|
|
10179
10187
|
};
|
|
10180
10188
|
/**
|
|
10181
|
-
* This interface was referenced by `
|
|
10189
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10182
10190
|
* via the `update.schema` link.
|
|
10183
10191
|
*/
|
|
10184
|
-
export type
|
|
10192
|
+
export type SearchIndexUpdateSchema = {
|
|
10185
10193
|
data: {
|
|
10186
|
-
type:
|
|
10187
|
-
id:
|
|
10194
|
+
type: SearchIndexType;
|
|
10195
|
+
id: SearchIndexIdentity;
|
|
10188
10196
|
attributes: {
|
|
10189
10197
|
/**
|
|
10190
|
-
* Name of the
|
|
10198
|
+
* Name of the search index
|
|
10191
10199
|
*/
|
|
10192
10200
|
name?: string;
|
|
10193
10201
|
/**
|
|
10194
|
-
* Whether the
|
|
10202
|
+
* Whether the search index is enabled or not
|
|
10195
10203
|
*/
|
|
10196
10204
|
enabled?: boolean;
|
|
10197
10205
|
/**
|
|
@@ -10202,13 +10210,17 @@ export type SiteSearchSourceUpdateSchema = {
|
|
|
10202
10210
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
10203
10211
|
*/
|
|
10204
10212
|
frontend_url?: string | null;
|
|
10213
|
+
/**
|
|
10214
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
10215
|
+
*/
|
|
10216
|
+
user_agent_suffix?: string | null;
|
|
10205
10217
|
};
|
|
10206
10218
|
/**
|
|
10207
10219
|
* JSON API links
|
|
10208
10220
|
*/
|
|
10209
10221
|
relationships?: {
|
|
10210
10222
|
/**
|
|
10211
|
-
* The build triggers connected to this
|
|
10223
|
+
* The build triggers connected to this search index
|
|
10212
10224
|
*/
|
|
10213
10225
|
build_triggers?: {
|
|
10214
10226
|
data: BuildTriggerData[];
|
|
@@ -10217,18 +10229,18 @@ export type SiteSearchSourceUpdateSchema = {
|
|
|
10217
10229
|
};
|
|
10218
10230
|
};
|
|
10219
10231
|
/**
|
|
10220
|
-
* This interface was referenced by `
|
|
10232
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10221
10233
|
* via the `update.targetSchema` link.
|
|
10222
10234
|
*/
|
|
10223
|
-
export type
|
|
10224
|
-
data:
|
|
10235
|
+
export type SearchIndexUpdateTargetSchema = {
|
|
10236
|
+
data: SearchIndex;
|
|
10225
10237
|
};
|
|
10226
10238
|
/**
|
|
10227
|
-
* This interface was referenced by `
|
|
10239
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10228
10240
|
* via the `destroy.targetSchema` link.
|
|
10229
10241
|
*/
|
|
10230
|
-
export type
|
|
10231
|
-
data:
|
|
10242
|
+
export type SearchIndexDestroyTargetSchema = {
|
|
10243
|
+
data: SearchIndex;
|
|
10232
10244
|
};
|
|
10233
10245
|
/**
|
|
10234
10246
|
* In DatoCMS you can create filters to help you (and other editors) quickly search for records
|