@datocms/cma-client 5.2.0-alpha.3 → 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} +53 -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 +131 -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 +136 -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} +52 -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 +131 -131
- package/dist/types/generated/Client.d.ts +2 -2
- package/dist/types/generated/RawApiTypes.d.ts +136 -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 +75 -75
- package/src/generated/ApiTypes.ts +132 -133
- package/src/generated/Client.ts +5 -5
- package/src/generated/RawApiTypes.ts +137 -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 -267
|
@@ -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
|
/**
|
|
@@ -10095,24 +10095,24 @@ export type SiteSearchSourceAttributes = {
|
|
|
10095
10095
|
/**
|
|
10096
10096
|
* JSON API links
|
|
10097
10097
|
*
|
|
10098
|
-
* This interface was referenced by `
|
|
10098
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10099
10099
|
* via the `definition` "relationships".
|
|
10100
10100
|
*/
|
|
10101
|
-
export type
|
|
10101
|
+
export type SearchIndexRelationships = {
|
|
10102
10102
|
/**
|
|
10103
|
-
* The build triggers connected to this
|
|
10103
|
+
* The build triggers connected to this search index
|
|
10104
10104
|
*/
|
|
10105
10105
|
build_triggers: {
|
|
10106
10106
|
data: BuildTriggerData[];
|
|
10107
10107
|
};
|
|
10108
10108
|
};
|
|
10109
10109
|
/**
|
|
10110
|
-
* Meta information about the
|
|
10110
|
+
* Meta information about the search index
|
|
10111
10111
|
*
|
|
10112
|
-
* This interface was referenced by `
|
|
10112
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10113
10113
|
* via the `definition` "meta".
|
|
10114
10114
|
*/
|
|
10115
|
-
export type
|
|
10115
|
+
export type SearchIndexMeta = {
|
|
10116
10116
|
/**
|
|
10117
10117
|
* Status of the site search indexing
|
|
10118
10118
|
*/
|
|
@@ -10123,33 +10123,33 @@ export type SiteSearchSourceMeta = {
|
|
|
10123
10123
|
last_indexing_completed_at: string | null;
|
|
10124
10124
|
};
|
|
10125
10125
|
/**
|
|
10126
|
-
* This interface was referenced by `
|
|
10126
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10127
10127
|
* via the `instances.targetSchema` link.
|
|
10128
10128
|
*/
|
|
10129
|
-
export type
|
|
10130
|
-
data:
|
|
10129
|
+
export type SearchIndexInstancesTargetSchema = {
|
|
10130
|
+
data: SearchIndex[];
|
|
10131
10131
|
};
|
|
10132
10132
|
/**
|
|
10133
|
-
* This interface was referenced by `
|
|
10133
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10134
10134
|
* via the `self.targetSchema` link.
|
|
10135
10135
|
*/
|
|
10136
|
-
export type
|
|
10137
|
-
data:
|
|
10136
|
+
export type SearchIndexSelfTargetSchema = {
|
|
10137
|
+
data: SearchIndex;
|
|
10138
10138
|
};
|
|
10139
10139
|
/**
|
|
10140
|
-
* This interface was referenced by `
|
|
10140
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10141
10141
|
* via the `create.schema` link.
|
|
10142
10142
|
*/
|
|
10143
|
-
export type
|
|
10143
|
+
export type SearchIndexCreateSchema = {
|
|
10144
10144
|
data: {
|
|
10145
|
-
type:
|
|
10145
|
+
type: SearchIndexType;
|
|
10146
10146
|
attributes: {
|
|
10147
10147
|
/**
|
|
10148
|
-
* Name of the
|
|
10148
|
+
* Name of the search index
|
|
10149
10149
|
*/
|
|
10150
10150
|
name: string;
|
|
10151
10151
|
/**
|
|
10152
|
-
* Whether the
|
|
10152
|
+
* Whether the search index is enabled or not
|
|
10153
10153
|
*/
|
|
10154
10154
|
enabled: boolean;
|
|
10155
10155
|
/**
|
|
@@ -10170,7 +10170,7 @@ export type SiteSearchSourceCreateSchema = {
|
|
|
10170
10170
|
*/
|
|
10171
10171
|
relationships?: {
|
|
10172
10172
|
/**
|
|
10173
|
-
* The build triggers connected to this
|
|
10173
|
+
* The build triggers connected to this search index
|
|
10174
10174
|
*/
|
|
10175
10175
|
build_triggers?: {
|
|
10176
10176
|
data: BuildTriggerData[];
|
|
@@ -10179,27 +10179,27 @@ export type SiteSearchSourceCreateSchema = {
|
|
|
10179
10179
|
};
|
|
10180
10180
|
};
|
|
10181
10181
|
/**
|
|
10182
|
-
* This interface was referenced by `
|
|
10182
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10183
10183
|
* via the `create.targetSchema` link.
|
|
10184
10184
|
*/
|
|
10185
|
-
export type
|
|
10186
|
-
data:
|
|
10185
|
+
export type SearchIndexCreateTargetSchema = {
|
|
10186
|
+
data: SearchIndex;
|
|
10187
10187
|
};
|
|
10188
10188
|
/**
|
|
10189
|
-
* This interface was referenced by `
|
|
10189
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10190
10190
|
* via the `update.schema` link.
|
|
10191
10191
|
*/
|
|
10192
|
-
export type
|
|
10192
|
+
export type SearchIndexUpdateSchema = {
|
|
10193
10193
|
data: {
|
|
10194
|
-
type:
|
|
10195
|
-
id:
|
|
10194
|
+
type: SearchIndexType;
|
|
10195
|
+
id: SearchIndexIdentity;
|
|
10196
10196
|
attributes: {
|
|
10197
10197
|
/**
|
|
10198
|
-
* Name of the
|
|
10198
|
+
* Name of the search index
|
|
10199
10199
|
*/
|
|
10200
10200
|
name?: string;
|
|
10201
10201
|
/**
|
|
10202
|
-
* Whether the
|
|
10202
|
+
* Whether the search index is enabled or not
|
|
10203
10203
|
*/
|
|
10204
10204
|
enabled?: boolean;
|
|
10205
10205
|
/**
|
|
@@ -10220,7 +10220,7 @@ export type SiteSearchSourceUpdateSchema = {
|
|
|
10220
10220
|
*/
|
|
10221
10221
|
relationships?: {
|
|
10222
10222
|
/**
|
|
10223
|
-
* The build triggers connected to this
|
|
10223
|
+
* The build triggers connected to this search index
|
|
10224
10224
|
*/
|
|
10225
10225
|
build_triggers?: {
|
|
10226
10226
|
data: BuildTriggerData[];
|
|
@@ -10229,18 +10229,18 @@ export type SiteSearchSourceUpdateSchema = {
|
|
|
10229
10229
|
};
|
|
10230
10230
|
};
|
|
10231
10231
|
/**
|
|
10232
|
-
* This interface was referenced by `
|
|
10232
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10233
10233
|
* via the `update.targetSchema` link.
|
|
10234
10234
|
*/
|
|
10235
|
-
export type
|
|
10236
|
-
data:
|
|
10235
|
+
export type SearchIndexUpdateTargetSchema = {
|
|
10236
|
+
data: SearchIndex;
|
|
10237
10237
|
};
|
|
10238
10238
|
/**
|
|
10239
|
-
* This interface was referenced by `
|
|
10239
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10240
10240
|
* via the `destroy.targetSchema` link.
|
|
10241
10241
|
*/
|
|
10242
|
-
export type
|
|
10243
|
-
data:
|
|
10242
|
+
export type SearchIndexDestroyTargetSchema = {
|
|
10243
|
+
data: SearchIndex;
|
|
10244
10244
|
};
|
|
10245
10245
|
/**
|
|
10246
10246
|
* In DatoCMS you can create filters to help you (and other editors) quickly search for records
|
|
@@ -29,7 +29,7 @@ export default class Role extends BaseResource {
|
|
|
29
29
|
'environments_access',
|
|
30
30
|
'can_manage_users',
|
|
31
31
|
'can_manage_shared_filters',
|
|
32
|
-
'
|
|
32
|
+
'can_manage_search_indexes',
|
|
33
33
|
'can_manage_upload_collections',
|
|
34
34
|
'can_manage_build_triggers',
|
|
35
35
|
'can_manage_webhooks',
|
|
@@ -40,15 +40,15 @@ export default class Role extends BaseResource {
|
|
|
40
40
|
'can_manage_access_tokens',
|
|
41
41
|
'can_perform_site_search',
|
|
42
42
|
'can_access_build_events_log',
|
|
43
|
-
'
|
|
43
|
+
'can_access_search_index_events_log',
|
|
44
44
|
'positive_item_type_permissions',
|
|
45
45
|
'negative_item_type_permissions',
|
|
46
46
|
'positive_upload_permissions',
|
|
47
47
|
'negative_upload_permissions',
|
|
48
48
|
'positive_build_trigger_permissions',
|
|
49
49
|
'negative_build_trigger_permissions',
|
|
50
|
-
'
|
|
51
|
-
'
|
|
50
|
+
'positive_search_index_permissions',
|
|
51
|
+
'negative_search_index_permissions',
|
|
52
52
|
],
|
|
53
53
|
relationships: ['inherits_permissions_from'],
|
|
54
54
|
}),
|
|
@@ -100,7 +100,7 @@ export default class Role extends BaseResource {
|
|
|
100
100
|
'environments_access',
|
|
101
101
|
'can_manage_users',
|
|
102
102
|
'can_manage_shared_filters',
|
|
103
|
-
'
|
|
103
|
+
'can_manage_search_indexes',
|
|
104
104
|
'can_manage_upload_collections',
|
|
105
105
|
'can_manage_build_triggers',
|
|
106
106
|
'can_manage_webhooks',
|
|
@@ -111,15 +111,15 @@ export default class Role extends BaseResource {
|
|
|
111
111
|
'can_manage_access_tokens',
|
|
112
112
|
'can_perform_site_search',
|
|
113
113
|
'can_access_build_events_log',
|
|
114
|
-
'
|
|
114
|
+
'can_access_search_index_events_log',
|
|
115
115
|
'positive_item_type_permissions',
|
|
116
116
|
'negative_item_type_permissions',
|
|
117
117
|
'positive_upload_permissions',
|
|
118
118
|
'negative_upload_permissions',
|
|
119
119
|
'positive_build_trigger_permissions',
|
|
120
120
|
'negative_build_trigger_permissions',
|
|
121
|
-
'
|
|
122
|
-
'
|
|
121
|
+
'positive_search_index_permissions',
|
|
122
|
+
'negative_search_index_permissions',
|
|
123
123
|
],
|
|
124
124
|
relationships: ['inherits_permissions_from'],
|
|
125
125
|
}),
|