@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
|
@@ -117,15 +117,15 @@ export type EnvironmentIdentity = string;
|
|
|
117
117
|
*/
|
|
118
118
|
export type BuildTriggerIdentity = string;
|
|
119
119
|
/**
|
|
120
|
-
* ID of
|
|
120
|
+
* ID of search_index
|
|
121
121
|
*
|
|
122
|
-
* This interface was referenced by `
|
|
122
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
123
123
|
* via the `definition` "identity".
|
|
124
124
|
*
|
|
125
|
-
* This interface was referenced by `
|
|
125
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
126
126
|
* via the `definition` "id".
|
|
127
127
|
*/
|
|
128
|
-
export type
|
|
128
|
+
export type SearchIndexIdentity = string;
|
|
129
129
|
/**
|
|
130
130
|
* This interface was referenced by `Role`'s JSON-Schema
|
|
131
131
|
* via the `instances.targetSchema` link.
|
|
@@ -856,36 +856,35 @@ export type BuildEventInstancesHrefSchema = {
|
|
|
856
856
|
[k: string]: unknown;
|
|
857
857
|
};
|
|
858
858
|
/**
|
|
859
|
-
* ID of
|
|
859
|
+
* ID of search index event
|
|
860
860
|
*
|
|
861
|
-
* This interface was referenced by `
|
|
861
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
862
862
|
* via the `definition` "identity".
|
|
863
863
|
*
|
|
864
|
-
* This interface was referenced by `
|
|
864
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
865
865
|
* via the `definition` "id".
|
|
866
866
|
*/
|
|
867
|
-
export type
|
|
867
|
+
export type SearchIndexEventIdentity = string;
|
|
868
868
|
/**
|
|
869
|
-
* This interface was referenced by `
|
|
869
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
870
870
|
* via the `definition` "type".
|
|
871
871
|
*/
|
|
872
|
-
export type
|
|
872
|
+
export type SearchIndexEventType = 'search_index_event';
|
|
873
873
|
/**
|
|
874
|
-
* This interface was referenced by `
|
|
874
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
875
875
|
* via the `definition` "type".
|
|
876
876
|
*/
|
|
877
|
-
export type
|
|
877
|
+
export type SearchIndexType = 'search_index';
|
|
878
878
|
/**
|
|
879
|
-
* This interface was referenced by `
|
|
879
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
880
880
|
* via the `instances.targetSchema` link.
|
|
881
881
|
*/
|
|
882
|
-
export type
|
|
883
|
-
SiteSearchSourceEvent[];
|
|
882
|
+
export type SearchIndexEventInstancesTargetSchema = SearchIndexEvent[];
|
|
884
883
|
/**
|
|
885
|
-
* This interface was referenced by `
|
|
884
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
886
885
|
* via the `instances.hrefSchema` link.
|
|
887
886
|
*/
|
|
888
|
-
export type
|
|
887
|
+
export type SearchIndexEventInstancesHrefSchema = {
|
|
889
888
|
/**
|
|
890
889
|
* Parameters to control offset-based pagination
|
|
891
890
|
*/
|
|
@@ -908,7 +907,7 @@ export type SiteSearchSourceEventInstancesHrefSchema = {
|
|
|
908
907
|
*/
|
|
909
908
|
ids?: string;
|
|
910
909
|
fields?: {
|
|
911
|
-
|
|
910
|
+
search_index_id?: {
|
|
912
911
|
eq?: string;
|
|
913
912
|
};
|
|
914
913
|
event_type?: {
|
|
@@ -931,8 +930,8 @@ export type SiteSearchSourceEventInstancesHrefSchema = {
|
|
|
931
930
|
* Fields used to order results
|
|
932
931
|
*/
|
|
933
932
|
order_by?:
|
|
934
|
-
| '
|
|
935
|
-
| '
|
|
933
|
+
| 'search_index_id_asc'
|
|
934
|
+
| 'search_index_id_desc'
|
|
936
935
|
| 'created_at_asc'
|
|
937
936
|
| 'created_at_desc'
|
|
938
937
|
| 'event_type_asc'
|
|
@@ -1422,11 +1421,11 @@ export type SearchResultInstancesHrefSchema = {
|
|
|
1422
1421
|
*/
|
|
1423
1422
|
query: string;
|
|
1424
1423
|
/**
|
|
1425
|
-
* The
|
|
1424
|
+
* The search index ID or name on which the search will be performed. If not provided, the first enabled search index will be used.
|
|
1426
1425
|
*/
|
|
1427
|
-
|
|
1426
|
+
search_index_id?: string;
|
|
1428
1427
|
/**
|
|
1429
|
-
* **[Deprecated]** Use `
|
|
1428
|
+
* **[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.
|
|
1430
1429
|
*/
|
|
1431
1430
|
build_trigger_id?: string;
|
|
1432
1431
|
/**
|
|
@@ -1643,10 +1642,10 @@ export type WebhookCallInstancesHrefSchema = {
|
|
|
1643
1642
|
*/
|
|
1644
1643
|
export type BuildTriggerInstancesTargetSchema = BuildTrigger[];
|
|
1645
1644
|
/**
|
|
1646
|
-
* This interface was referenced by `
|
|
1645
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
1647
1646
|
* via the `instances.targetSchema` link.
|
|
1648
1647
|
*/
|
|
1649
|
-
export type
|
|
1648
|
+
export type SearchIndexInstancesTargetSchema = SearchIndex[];
|
|
1650
1649
|
/**
|
|
1651
1650
|
* This interface was referenced by `ItemTypeFilter`'s JSON-Schema
|
|
1652
1651
|
* via the `instances.targetSchema` link.
|
|
@@ -2095,9 +2094,9 @@ export type Role = {
|
|
|
2095
2094
|
*/
|
|
2096
2095
|
can_manage_build_triggers: boolean;
|
|
2097
2096
|
/**
|
|
2098
|
-
* Can create/edit
|
|
2097
|
+
* Can create/edit Search Indexes
|
|
2099
2098
|
*/
|
|
2100
|
-
|
|
2099
|
+
can_manage_search_indexes: boolean;
|
|
2101
2100
|
/**
|
|
2102
2101
|
* Can create/edit webhooks
|
|
2103
2102
|
*/
|
|
@@ -2131,9 +2130,9 @@ export type Role = {
|
|
|
2131
2130
|
*/
|
|
2132
2131
|
can_access_build_events_log: boolean;
|
|
2133
2132
|
/**
|
|
2134
|
-
* Can access the
|
|
2133
|
+
* Can access the search index events log
|
|
2135
2134
|
*/
|
|
2136
|
-
|
|
2135
|
+
can_access_search_index_events_log: boolean;
|
|
2137
2136
|
/**
|
|
2138
2137
|
* Allowed actions on a model (or all) for a role
|
|
2139
2138
|
*/
|
|
@@ -2277,16 +2276,16 @@ export type Role = {
|
|
|
2277
2276
|
build_trigger?: BuildTriggerIdentity | null;
|
|
2278
2277
|
}[];
|
|
2279
2278
|
/**
|
|
2280
|
-
* Allowed
|
|
2279
|
+
* Allowed search indexes for a role
|
|
2281
2280
|
*/
|
|
2282
|
-
|
|
2283
|
-
|
|
2281
|
+
positive_search_index_permissions: {
|
|
2282
|
+
search_index?: SearchIndexIdentity | null;
|
|
2284
2283
|
}[];
|
|
2285
2284
|
/**
|
|
2286
|
-
* Prohibited
|
|
2285
|
+
* Prohibited search indexes for a role
|
|
2287
2286
|
*/
|
|
2288
|
-
|
|
2289
|
-
|
|
2287
|
+
negative_search_index_permissions: {
|
|
2288
|
+
search_index?: SearchIndexIdentity | null;
|
|
2290
2289
|
}[];
|
|
2291
2290
|
inherits_permissions_from: RoleData[];
|
|
2292
2291
|
meta: RoleMeta;
|
|
@@ -2362,9 +2361,9 @@ export type RoleMeta = {
|
|
|
2362
2361
|
*/
|
|
2363
2362
|
can_manage_build_triggers: boolean;
|
|
2364
2363
|
/**
|
|
2365
|
-
* Can create/edit
|
|
2364
|
+
* Can create/edit Search Indexes
|
|
2366
2365
|
*/
|
|
2367
|
-
|
|
2366
|
+
can_manage_search_indexes: boolean;
|
|
2368
2367
|
/**
|
|
2369
2368
|
* Can create/edit webhooks
|
|
2370
2369
|
*/
|
|
@@ -2398,9 +2397,9 @@ export type RoleMeta = {
|
|
|
2398
2397
|
*/
|
|
2399
2398
|
can_access_build_events_log: boolean;
|
|
2400
2399
|
/**
|
|
2401
|
-
* Can access the
|
|
2400
|
+
* Can access the search index events log
|
|
2402
2401
|
*/
|
|
2403
|
-
|
|
2402
|
+
can_access_search_index_events_log: boolean;
|
|
2404
2403
|
/**
|
|
2405
2404
|
* Allowed actions on a model (or all) for a role
|
|
2406
2405
|
*/
|
|
@@ -2544,16 +2543,16 @@ export type RoleMeta = {
|
|
|
2544
2543
|
build_trigger?: BuildTriggerIdentity | null;
|
|
2545
2544
|
}[];
|
|
2546
2545
|
/**
|
|
2547
|
-
* Allowed
|
|
2546
|
+
* Allowed search indexes for a role
|
|
2548
2547
|
*/
|
|
2549
|
-
|
|
2550
|
-
|
|
2548
|
+
positive_search_index_permissions: {
|
|
2549
|
+
search_index?: SearchIndexIdentity | null;
|
|
2551
2550
|
}[];
|
|
2552
2551
|
/**
|
|
2553
|
-
* Prohibited
|
|
2552
|
+
* Prohibited search indexes for a role
|
|
2554
2553
|
*/
|
|
2555
|
-
|
|
2556
|
-
|
|
2554
|
+
negative_search_index_permissions: {
|
|
2555
|
+
search_index?: SearchIndexIdentity | null;
|
|
2557
2556
|
}[];
|
|
2558
2557
|
};
|
|
2559
2558
|
};
|
|
@@ -2613,9 +2612,9 @@ export type RoleAttributes = {
|
|
|
2613
2612
|
*/
|
|
2614
2613
|
can_manage_build_triggers: boolean;
|
|
2615
2614
|
/**
|
|
2616
|
-
* Can create/edit
|
|
2615
|
+
* Can create/edit Search Indexes
|
|
2617
2616
|
*/
|
|
2618
|
-
|
|
2617
|
+
can_manage_search_indexes: boolean;
|
|
2619
2618
|
/**
|
|
2620
2619
|
* Can create/edit webhooks
|
|
2621
2620
|
*/
|
|
@@ -2649,9 +2648,9 @@ export type RoleAttributes = {
|
|
|
2649
2648
|
*/
|
|
2650
2649
|
can_access_build_events_log: boolean;
|
|
2651
2650
|
/**
|
|
2652
|
-
* Can access the
|
|
2651
|
+
* Can access the search index events log
|
|
2653
2652
|
*/
|
|
2654
|
-
|
|
2653
|
+
can_access_search_index_events_log: boolean;
|
|
2655
2654
|
/**
|
|
2656
2655
|
* Allowed actions on a model (or all) for a role
|
|
2657
2656
|
*/
|
|
@@ -2795,16 +2794,16 @@ export type RoleAttributes = {
|
|
|
2795
2794
|
build_trigger?: BuildTriggerIdentity | null;
|
|
2796
2795
|
}[];
|
|
2797
2796
|
/**
|
|
2798
|
-
* Allowed
|
|
2797
|
+
* Allowed search indexes for a role
|
|
2799
2798
|
*/
|
|
2800
|
-
|
|
2801
|
-
|
|
2799
|
+
positive_search_index_permissions: {
|
|
2800
|
+
search_index?: SearchIndexIdentity | null;
|
|
2802
2801
|
}[];
|
|
2803
2802
|
/**
|
|
2804
|
-
* Prohibited
|
|
2803
|
+
* Prohibited search indexes for a role
|
|
2805
2804
|
*/
|
|
2806
|
-
|
|
2807
|
-
|
|
2805
|
+
negative_search_index_permissions: {
|
|
2806
|
+
search_index?: SearchIndexIdentity | null;
|
|
2808
2807
|
}[];
|
|
2809
2808
|
};
|
|
2810
2809
|
/**
|
|
@@ -2863,9 +2862,9 @@ export type RoleCreateSchema = {
|
|
|
2863
2862
|
*/
|
|
2864
2863
|
can_manage_shared_filters?: boolean;
|
|
2865
2864
|
/**
|
|
2866
|
-
* Can create/edit
|
|
2865
|
+
* Can create/edit Search Indexes
|
|
2867
2866
|
*/
|
|
2868
|
-
|
|
2867
|
+
can_manage_search_indexes?: boolean;
|
|
2869
2868
|
/**
|
|
2870
2869
|
* Can create/edit upload collections
|
|
2871
2870
|
*/
|
|
@@ -2907,9 +2906,9 @@ export type RoleCreateSchema = {
|
|
|
2907
2906
|
*/
|
|
2908
2907
|
can_access_build_events_log?: boolean;
|
|
2909
2908
|
/**
|
|
2910
|
-
* Can access the
|
|
2909
|
+
* Can access the search index events log
|
|
2911
2910
|
*/
|
|
2912
|
-
|
|
2911
|
+
can_access_search_index_events_log?: boolean;
|
|
2913
2912
|
/**
|
|
2914
2913
|
* Allowed actions on a model (or all) for a role
|
|
2915
2914
|
*/
|
|
@@ -3053,16 +3052,16 @@ export type RoleCreateSchema = {
|
|
|
3053
3052
|
build_trigger?: BuildTriggerIdentity | null;
|
|
3054
3053
|
}[];
|
|
3055
3054
|
/**
|
|
3056
|
-
* Allowed
|
|
3055
|
+
* Allowed search indexes for a role
|
|
3057
3056
|
*/
|
|
3058
|
-
|
|
3059
|
-
|
|
3057
|
+
positive_search_index_permissions?: {
|
|
3058
|
+
search_index?: SearchIndexIdentity | null;
|
|
3060
3059
|
}[];
|
|
3061
3060
|
/**
|
|
3062
|
-
* Prohibited
|
|
3061
|
+
* Prohibited search indexes for a role
|
|
3063
3062
|
*/
|
|
3064
|
-
|
|
3065
|
-
|
|
3063
|
+
negative_search_index_permissions?: {
|
|
3064
|
+
search_index?: SearchIndexIdentity | null;
|
|
3066
3065
|
}[];
|
|
3067
3066
|
inherits_permissions_from?: RoleData[];
|
|
3068
3067
|
meta?: RoleMeta;
|
|
@@ -3115,9 +3114,9 @@ export type RoleUpdateSchema = {
|
|
|
3115
3114
|
*/
|
|
3116
3115
|
can_manage_shared_filters?: boolean;
|
|
3117
3116
|
/**
|
|
3118
|
-
* Can create/edit
|
|
3117
|
+
* Can create/edit Search Indexes
|
|
3119
3118
|
*/
|
|
3120
|
-
|
|
3119
|
+
can_manage_search_indexes?: boolean;
|
|
3121
3120
|
/**
|
|
3122
3121
|
* Can create/edit upload collections
|
|
3123
3122
|
*/
|
|
@@ -3159,9 +3158,9 @@ export type RoleUpdateSchema = {
|
|
|
3159
3158
|
*/
|
|
3160
3159
|
can_access_build_events_log?: boolean;
|
|
3161
3160
|
/**
|
|
3162
|
-
* Can access the
|
|
3161
|
+
* Can access the search index events log
|
|
3163
3162
|
*/
|
|
3164
|
-
|
|
3163
|
+
can_access_search_index_events_log?: boolean;
|
|
3165
3164
|
/**
|
|
3166
3165
|
* Allowed actions on a model (or all) for a role
|
|
3167
3166
|
*/
|
|
@@ -3305,16 +3304,16 @@ export type RoleUpdateSchema = {
|
|
|
3305
3304
|
build_trigger?: BuildTriggerIdentity | null;
|
|
3306
3305
|
}[];
|
|
3307
3306
|
/**
|
|
3308
|
-
* Allowed
|
|
3307
|
+
* Allowed search indexes for a role
|
|
3309
3308
|
*/
|
|
3310
|
-
|
|
3311
|
-
|
|
3309
|
+
positive_search_index_permissions?: {
|
|
3310
|
+
search_index?: SearchIndexIdentity | null;
|
|
3312
3311
|
}[];
|
|
3313
3312
|
/**
|
|
3314
|
-
* Prohibited
|
|
3313
|
+
* Prohibited search indexes for a role
|
|
3315
3314
|
*/
|
|
3316
|
-
|
|
3317
|
-
|
|
3315
|
+
negative_search_index_permissions?: {
|
|
3316
|
+
search_index?: SearchIndexIdentity | null;
|
|
3318
3317
|
}[];
|
|
3319
3318
|
inherits_permissions_from?: RoleData[];
|
|
3320
3319
|
meta?: RoleMeta;
|
|
@@ -4017,9 +4016,9 @@ export type SitePlan = {
|
|
|
4017
4016
|
*/
|
|
4018
4017
|
build_triggers: null | number;
|
|
4019
4018
|
/**
|
|
4020
|
-
* Number of
|
|
4019
|
+
* Number of search indexes
|
|
4021
4020
|
*/
|
|
4022
|
-
|
|
4021
|
+
search_indexes: null | number;
|
|
4023
4022
|
/**
|
|
4024
4023
|
* Number of plugins
|
|
4025
4024
|
*/
|
|
@@ -4184,7 +4183,7 @@ export type SitePlan = {
|
|
|
4184
4183
|
amount_per_packet: number;
|
|
4185
4184
|
price: number;
|
|
4186
4185
|
};
|
|
4187
|
-
|
|
4186
|
+
search_indexes?: {
|
|
4188
4187
|
amount_per_packet: number;
|
|
4189
4188
|
price: number;
|
|
4190
4189
|
};
|
|
@@ -4261,9 +4260,9 @@ export type SitePlanAttributes = {
|
|
|
4261
4260
|
*/
|
|
4262
4261
|
build_triggers: null | number;
|
|
4263
4262
|
/**
|
|
4264
|
-
* Number of
|
|
4263
|
+
* Number of search indexes
|
|
4265
4264
|
*/
|
|
4266
|
-
|
|
4265
|
+
search_indexes: null | number;
|
|
4267
4266
|
/**
|
|
4268
4267
|
* Number of plugins
|
|
4269
4268
|
*/
|
|
@@ -4428,7 +4427,7 @@ export type SitePlanAttributes = {
|
|
|
4428
4427
|
amount_per_packet: number;
|
|
4429
4428
|
price: number;
|
|
4430
4429
|
};
|
|
4431
|
-
|
|
4430
|
+
search_indexes?: {
|
|
4432
4431
|
amount_per_packet: number;
|
|
4433
4432
|
price: number;
|
|
4434
4433
|
};
|
|
@@ -7508,14 +7507,14 @@ export type BuildEventRelationships = {
|
|
|
7508
7507
|
build_trigger: BuildTriggerData;
|
|
7509
7508
|
};
|
|
7510
7509
|
/**
|
|
7511
|
-
* Represents an event occurred during the
|
|
7510
|
+
* Represents an event occurred during the search indexing process.
|
|
7512
7511
|
*
|
|
7513
7512
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
7514
|
-
* via the `definition` "
|
|
7513
|
+
* via the `definition` "search_index_event".
|
|
7515
7514
|
*/
|
|
7516
|
-
export type
|
|
7517
|
-
id:
|
|
7518
|
-
type:
|
|
7515
|
+
export type SearchIndexEvent = {
|
|
7516
|
+
id: SearchIndexEventIdentity;
|
|
7517
|
+
type: SearchIndexEventType;
|
|
7519
7518
|
/**
|
|
7520
7519
|
* The type of activity
|
|
7521
7520
|
*/
|
|
@@ -7534,36 +7533,36 @@ export type SiteSearchSourceEvent = {
|
|
|
7534
7533
|
data: {
|
|
7535
7534
|
[k: string]: unknown;
|
|
7536
7535
|
};
|
|
7537
|
-
|
|
7536
|
+
search_index: SearchIndexData;
|
|
7538
7537
|
};
|
|
7539
|
-
export type
|
|
7538
|
+
export type SearchIndexEventSelfTargetSchema = SearchIndexEvent;
|
|
7540
7539
|
/**
|
|
7541
7540
|
* JSON API data
|
|
7542
7541
|
*
|
|
7543
|
-
* This interface was referenced by `
|
|
7542
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
7544
7543
|
* via the `definition` "data".
|
|
7545
7544
|
*/
|
|
7546
|
-
export type
|
|
7547
|
-
type:
|
|
7548
|
-
id:
|
|
7545
|
+
export type SearchIndexData = {
|
|
7546
|
+
type: SearchIndexType;
|
|
7547
|
+
id: SearchIndexIdentity;
|
|
7549
7548
|
};
|
|
7550
7549
|
/**
|
|
7551
7550
|
* JSON API data
|
|
7552
7551
|
*
|
|
7553
|
-
* This interface was referenced by `
|
|
7552
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
7554
7553
|
* via the `definition` "data".
|
|
7555
7554
|
*/
|
|
7556
|
-
export type
|
|
7557
|
-
type:
|
|
7558
|
-
id:
|
|
7555
|
+
export type SearchIndexEventData = {
|
|
7556
|
+
type: SearchIndexEventType;
|
|
7557
|
+
id: SearchIndexEventIdentity;
|
|
7559
7558
|
};
|
|
7560
7559
|
/**
|
|
7561
7560
|
* JSON API attributes
|
|
7562
7561
|
*
|
|
7563
|
-
* This interface was referenced by `
|
|
7562
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
7564
7563
|
* via the `definition` "attributes".
|
|
7565
7564
|
*/
|
|
7566
|
-
export type
|
|
7565
|
+
export type SearchIndexEventAttributes = {
|
|
7567
7566
|
/**
|
|
7568
7567
|
* The type of activity
|
|
7569
7568
|
*/
|
|
@@ -7586,11 +7585,11 @@ export type SiteSearchSourceEventAttributes = {
|
|
|
7586
7585
|
/**
|
|
7587
7586
|
* JSON API links
|
|
7588
7587
|
*
|
|
7589
|
-
* This interface was referenced by `
|
|
7588
|
+
* This interface was referenced by `SearchIndexEvent`'s JSON-Schema
|
|
7590
7589
|
* via the `definition` "relationships".
|
|
7591
7590
|
*/
|
|
7592
|
-
export type
|
|
7593
|
-
|
|
7591
|
+
export type SearchIndexEventRelationships = {
|
|
7592
|
+
search_index: SearchIndexData;
|
|
7594
7593
|
};
|
|
7595
7594
|
export type ItemCreateTargetSchema<
|
|
7596
7595
|
D extends ItemTypeDefinition = ItemTypeDefinition,
|
|
@@ -9924,20 +9923,20 @@ export type BuildTriggerUpdateSchema = {
|
|
|
9924
9923
|
};
|
|
9925
9924
|
};
|
|
9926
9925
|
/**
|
|
9927
|
-
* A
|
|
9926
|
+
* 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.
|
|
9928
9927
|
*
|
|
9929
9928
|
* This interface was referenced by `DatoApi`'s JSON-Schema
|
|
9930
|
-
* via the `definition` "
|
|
9929
|
+
* via the `definition` "search_index".
|
|
9931
9930
|
*/
|
|
9932
|
-
export type
|
|
9933
|
-
id:
|
|
9934
|
-
type:
|
|
9931
|
+
export type SearchIndex = {
|
|
9932
|
+
id: SearchIndexIdentity;
|
|
9933
|
+
type: SearchIndexType;
|
|
9935
9934
|
/**
|
|
9936
|
-
* Name of the
|
|
9935
|
+
* Name of the search index
|
|
9937
9936
|
*/
|
|
9938
9937
|
name: string;
|
|
9939
9938
|
/**
|
|
9940
|
-
* Whether the
|
|
9939
|
+
* Whether the search index is enabled or not
|
|
9941
9940
|
*/
|
|
9942
9941
|
enabled: boolean;
|
|
9943
9942
|
/**
|
|
@@ -9948,20 +9947,24 @@ export type SiteSearchSource = {
|
|
|
9948
9947
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
9949
9948
|
*/
|
|
9950
9949
|
frontend_url: string | null;
|
|
9950
|
+
/**
|
|
9951
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
9952
|
+
*/
|
|
9953
|
+
user_agent_suffix: string | null;
|
|
9951
9954
|
build_triggers: BuildTriggerData[];
|
|
9952
|
-
meta:
|
|
9955
|
+
meta: SearchIndexMeta;
|
|
9953
9956
|
};
|
|
9954
|
-
export type
|
|
9955
|
-
export type
|
|
9956
|
-
export type
|
|
9957
|
-
export type
|
|
9957
|
+
export type SearchIndexSelfTargetSchema = SearchIndex;
|
|
9958
|
+
export type SearchIndexCreateTargetSchema = SearchIndex;
|
|
9959
|
+
export type SearchIndexUpdateTargetSchema = SearchIndex;
|
|
9960
|
+
export type SearchIndexDestroyTargetSchema = SearchIndex;
|
|
9958
9961
|
/**
|
|
9959
|
-
* Meta information about the
|
|
9962
|
+
* Meta information about the search index
|
|
9960
9963
|
*
|
|
9961
|
-
* This interface was referenced by `
|
|
9964
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9962
9965
|
* via the `definition` "meta".
|
|
9963
9966
|
*/
|
|
9964
|
-
export type
|
|
9967
|
+
export type SearchIndexMeta = {
|
|
9965
9968
|
/**
|
|
9966
9969
|
* Status of the site search indexing
|
|
9967
9970
|
*/
|
|
@@ -9974,16 +9977,16 @@ export type SiteSearchSourceMeta = {
|
|
|
9974
9977
|
/**
|
|
9975
9978
|
* JSON API attributes
|
|
9976
9979
|
*
|
|
9977
|
-
* This interface was referenced by `
|
|
9980
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
9978
9981
|
* via the `definition` "attributes".
|
|
9979
9982
|
*/
|
|
9980
|
-
export type
|
|
9983
|
+
export type SearchIndexAttributes = {
|
|
9981
9984
|
/**
|
|
9982
|
-
* Name of the
|
|
9985
|
+
* Name of the search index
|
|
9983
9986
|
*/
|
|
9984
9987
|
name: string;
|
|
9985
9988
|
/**
|
|
9986
|
-
* Whether the
|
|
9989
|
+
* Whether the search index is enabled or not
|
|
9987
9990
|
*/
|
|
9988
9991
|
enabled: boolean;
|
|
9989
9992
|
/**
|
|
@@ -9994,28 +9997,32 @@ export type SiteSearchSourceAttributes = {
|
|
|
9994
9997
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
9995
9998
|
*/
|
|
9996
9999
|
frontend_url: string | null;
|
|
10000
|
+
/**
|
|
10001
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
10002
|
+
*/
|
|
10003
|
+
user_agent_suffix: string | null;
|
|
9997
10004
|
};
|
|
9998
10005
|
/**
|
|
9999
10006
|
* JSON API links
|
|
10000
10007
|
*
|
|
10001
|
-
* This interface was referenced by `
|
|
10008
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10002
10009
|
* via the `definition` "relationships".
|
|
10003
10010
|
*/
|
|
10004
|
-
export type
|
|
10011
|
+
export type SearchIndexRelationships = {
|
|
10005
10012
|
build_triggers: BuildTriggerData[];
|
|
10006
10013
|
};
|
|
10007
10014
|
/**
|
|
10008
|
-
* This interface was referenced by `
|
|
10015
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10009
10016
|
* via the `create.schema` link.
|
|
10010
10017
|
*/
|
|
10011
|
-
export type
|
|
10012
|
-
type?:
|
|
10018
|
+
export type SearchIndexCreateSchema = {
|
|
10019
|
+
type?: SearchIndexType;
|
|
10013
10020
|
/**
|
|
10014
|
-
* Name of the
|
|
10021
|
+
* Name of the search index
|
|
10015
10022
|
*/
|
|
10016
10023
|
name: string;
|
|
10017
10024
|
/**
|
|
10018
|
-
* Whether the
|
|
10025
|
+
* Whether the search index is enabled or not
|
|
10019
10026
|
*/
|
|
10020
10027
|
enabled: boolean;
|
|
10021
10028
|
/**
|
|
@@ -10026,21 +10033,25 @@ export type SiteSearchSourceCreateSchema = {
|
|
|
10026
10033
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
10027
10034
|
*/
|
|
10028
10035
|
frontend_url: string | null;
|
|
10036
|
+
/**
|
|
10037
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
10038
|
+
*/
|
|
10039
|
+
user_agent_suffix?: string | null;
|
|
10029
10040
|
build_triggers?: BuildTriggerData[];
|
|
10030
10041
|
};
|
|
10031
10042
|
/**
|
|
10032
|
-
* This interface was referenced by `
|
|
10043
|
+
* This interface was referenced by `SearchIndex`'s JSON-Schema
|
|
10033
10044
|
* via the `update.schema` link.
|
|
10034
10045
|
*/
|
|
10035
|
-
export type
|
|
10036
|
-
id?:
|
|
10037
|
-
type?:
|
|
10046
|
+
export type SearchIndexUpdateSchema = {
|
|
10047
|
+
id?: SearchIndexIdentity;
|
|
10048
|
+
type?: SearchIndexType;
|
|
10038
10049
|
/**
|
|
10039
|
-
* Name of the
|
|
10050
|
+
* Name of the search index
|
|
10040
10051
|
*/
|
|
10041
10052
|
name?: string;
|
|
10042
10053
|
/**
|
|
10043
|
-
* Whether the
|
|
10054
|
+
* Whether the search index is enabled or not
|
|
10044
10055
|
*/
|
|
10045
10056
|
enabled?: boolean;
|
|
10046
10057
|
/**
|
|
@@ -10051,6 +10062,10 @@ export type SiteSearchSourceUpdateSchema = {
|
|
|
10051
10062
|
* The public URL of the frontend. This is the starting point from which the website's spidering will start
|
|
10052
10063
|
*/
|
|
10053
10064
|
frontend_url?: string | null;
|
|
10065
|
+
/**
|
|
10066
|
+
* Optional suffix to append to the DatoCmsSearchBot user agent when indexing the website
|
|
10067
|
+
*/
|
|
10068
|
+
user_agent_suffix?: string | null;
|
|
10054
10069
|
build_triggers?: BuildTriggerData[];
|
|
10055
10070
|
};
|
|
10056
10071
|
/**
|
package/src/generated/Client.ts
CHANGED
|
@@ -55,7 +55,7 @@ export class Client {
|
|
|
55
55
|
subscriptionLimits: Resources.SubscriptionLimit;
|
|
56
56
|
subscriptionFeatures: Resources.SubscriptionFeature;
|
|
57
57
|
buildEvents: Resources.BuildEvent;
|
|
58
|
-
|
|
58
|
+
searchIndexEvents: Resources.SearchIndexEvent;
|
|
59
59
|
items: Resources.Item;
|
|
60
60
|
itemVersions: Resources.ItemVersion;
|
|
61
61
|
uploads: Resources.Upload;
|
|
@@ -69,7 +69,7 @@ export class Client {
|
|
|
69
69
|
webhooks: Resources.Webhook;
|
|
70
70
|
webhookCalls: Resources.WebhookCall;
|
|
71
71
|
buildTriggers: Resources.BuildTrigger;
|
|
72
|
-
|
|
72
|
+
searchIndexes: Resources.SearchIndex;
|
|
73
73
|
itemTypeFilters: Resources.ItemTypeFilter;
|
|
74
74
|
uploadFilters: Resources.UploadFilter;
|
|
75
75
|
siteInvitations: Resources.SiteInvitation;
|
|
@@ -110,7 +110,7 @@ export class Client {
|
|
|
110
110
|
this.subscriptionLimits = new Resources.SubscriptionLimit(this);
|
|
111
111
|
this.subscriptionFeatures = new Resources.SubscriptionFeature(this);
|
|
112
112
|
this.buildEvents = new Resources.BuildEvent(this);
|
|
113
|
-
this.
|
|
113
|
+
this.searchIndexEvents = new Resources.SearchIndexEvent(this);
|
|
114
114
|
this.items = new Resources.Item(this);
|
|
115
115
|
this.itemVersions = new Resources.ItemVersion(this);
|
|
116
116
|
this.uploads = new Resources.Upload(this);
|
|
@@ -124,7 +124,7 @@ export class Client {
|
|
|
124
124
|
this.webhooks = new Resources.Webhook(this);
|
|
125
125
|
this.webhookCalls = new Resources.WebhookCall(this);
|
|
126
126
|
this.buildTriggers = new Resources.BuildTrigger(this);
|
|
127
|
-
this.
|
|
127
|
+
this.searchIndexes = new Resources.SearchIndex(this);
|
|
128
128
|
this.itemTypeFilters = new Resources.ItemTypeFilter(this);
|
|
129
129
|
this.uploadFilters = new Resources.UploadFilter(this);
|
|
130
130
|
this.siteInvitations = new Resources.SiteInvitation(this);
|
|
@@ -151,7 +151,7 @@ export class Client {
|
|
|
151
151
|
...this.config,
|
|
152
152
|
...options,
|
|
153
153
|
logFn: this.config.logFn || console.log,
|
|
154
|
-
userAgent: '@datocms/cma-client v5.2.0-alpha.
|
|
154
|
+
userAgent: '@datocms/cma-client v5.2.0-alpha.4',
|
|
155
155
|
baseUrl: this.baseUrl,
|
|
156
156
|
preCallStack: new Error().stack,
|
|
157
157
|
extraHeaders: {
|