@datocms/cma-client 5.2.0-alpha.3 → 5.2.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/cjs/generated/Client.js +3 -3
- package/dist/cjs/generated/Client.js.map +1 -1
- package/dist/cjs/generated/resources/ItemType.js +12 -12
- package/dist/cjs/generated/resources/Role.js +8 -8
- package/dist/cjs/generated/resources/Role.js.map +1 -1
- package/dist/cjs/generated/resources/{SiteSearchSource.js → SearchIndex.js} +59 -71
- package/dist/cjs/generated/resources/SearchIndex.js.map +1 -0
- package/dist/cjs/generated/resources/{SiteSearchSourceEvent.js → SearchIndexEvent.js} +19 -19
- package/dist/cjs/generated/resources/SearchIndexEvent.js.map +1 -0
- package/dist/cjs/generated/resources/index.js +5 -5
- package/dist/cjs/generated/resources/index.js.map +1 -1
- package/dist/cjs/utilities/schemaRepository.js +131 -0
- package/dist/cjs/utilities/schemaRepository.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +273 -270
- package/dist/esm/generated/Client.d.ts +2 -2
- package/dist/esm/generated/Client.js +3 -3
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +265 -258
- package/dist/esm/generated/resources/ItemType.d.ts +12 -12
- package/dist/esm/generated/resources/ItemType.js +12 -12
- package/dist/esm/generated/resources/Role.js +8 -8
- package/dist/esm/generated/resources/Role.js.map +1 -1
- package/dist/esm/generated/resources/SearchIndex.d.ts +132 -0
- package/dist/esm/generated/resources/{SiteSearchSource.js → SearchIndex.js} +58 -70
- package/dist/esm/generated/resources/SearchIndex.js.map +1 -0
- package/dist/esm/generated/resources/SearchIndexEvent.d.ts +61 -0
- package/dist/esm/generated/resources/{SiteSearchSourceEvent.js → SearchIndexEvent.js} +18 -18
- package/dist/esm/generated/resources/SearchIndexEvent.js.map +1 -0
- package/dist/esm/generated/resources/index.d.ts +2 -2
- package/dist/esm/generated/resources/index.js +2 -2
- package/dist/esm/generated/resources/index.js.map +1 -1
- package/dist/esm/utilities/schemaRepository.d.ts +42 -2
- package/dist/esm/utilities/schemaRepository.js +132 -1
- package/dist/esm/utilities/schemaRepository.js.map +1 -1
- package/dist/types/generated/ApiTypes.d.ts +273 -270
- package/dist/types/generated/Client.d.ts +2 -2
- package/dist/types/generated/RawApiTypes.d.ts +265 -258
- package/dist/types/generated/resources/ItemType.d.ts +12 -12
- package/dist/types/generated/resources/SearchIndex.d.ts +132 -0
- package/dist/types/generated/resources/SearchIndexEvent.d.ts +61 -0
- package/dist/types/generated/resources/index.d.ts +2 -2
- package/dist/types/utilities/schemaRepository.d.ts +42 -2
- package/package.json +3 -3
- package/resources.json +83 -85
- package/src/generated/ApiTypes.ts +274 -272
- package/src/generated/Client.ts +5 -5
- package/src/generated/RawApiTypes.ts +266 -259
- package/src/generated/resources/ItemType.ts +12 -12
- package/src/generated/resources/Role.ts +8 -8
- package/src/generated/resources/SearchIndex.ts +243 -0
- package/src/generated/resources/{SiteSearchSourceEvent.ts → SearchIndexEvent.ts} +32 -34
- package/src/generated/resources/index.ts +2 -2
- package/src/utilities/schemaRepository.ts +167 -9
- package/dist/cjs/generated/resources/SiteSearchSource.js.map +0 -1
- package/dist/cjs/generated/resources/SiteSearchSourceEvent.js.map +0 -1
- package/dist/esm/generated/resources/SiteSearchSource.d.ts +0 -132
- package/dist/esm/generated/resources/SiteSearchSource.js.map +0 -1
- package/dist/esm/generated/resources/SiteSearchSourceEvent.d.ts +0 -61
- package/dist/esm/generated/resources/SiteSearchSourceEvent.js.map +0 -1
- package/dist/types/generated/resources/SiteSearchSource.d.ts +0 -132
- package/dist/types/generated/resources/SiteSearchSourceEvent.d.ts +0 -61
- package/src/generated/resources/SiteSearchSource.ts +0 -267
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Utils from '@datocms/rest-client-utils';
|
|
2
2
|
import BaseResource from '../../BaseResource';
|
|
3
|
-
export default class
|
|
3
|
+
export default class SearchIndex extends BaseResource {
|
|
4
4
|
/**
|
|
5
|
-
* List all
|
|
5
|
+
* List all search indexes for a site
|
|
6
6
|
*
|
|
7
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
7
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/instances
|
|
8
8
|
*
|
|
9
9
|
* @throws {ApiError}
|
|
10
10
|
* @throws {TimeoutError}
|
|
@@ -13,9 +13,9 @@ export default class SiteSearchSource extends BaseResource {
|
|
|
13
13
|
return this.rawList().then((body) => Utils.deserializeResponseBody(body));
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* List all
|
|
16
|
+
* List all search indexes for a site
|
|
17
17
|
*
|
|
18
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
18
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/instances
|
|
19
19
|
*
|
|
20
20
|
* @throws {ApiError}
|
|
21
21
|
* @throws {TimeoutError}
|
|
@@ -23,59 +23,53 @@ export default class SiteSearchSource extends BaseResource {
|
|
|
23
23
|
rawList() {
|
|
24
24
|
return this.client.request({
|
|
25
25
|
method: 'GET',
|
|
26
|
-
url: '/
|
|
26
|
+
url: '/search-indexes',
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* Retrieve a
|
|
30
|
+
* Retrieve a search index
|
|
31
31
|
*
|
|
32
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
32
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/self
|
|
33
33
|
*
|
|
34
34
|
* @throws {ApiError}
|
|
35
35
|
* @throws {TimeoutError}
|
|
36
36
|
*/
|
|
37
|
-
find(
|
|
38
|
-
return this.rawFind(Utils.toId(
|
|
37
|
+
find(searchIndexId) {
|
|
38
|
+
return this.rawFind(Utils.toId(searchIndexId)).then((body) => Utils.deserializeResponseBody(body));
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* Retrieve a
|
|
41
|
+
* Retrieve a search index
|
|
42
42
|
*
|
|
43
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
43
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/self
|
|
44
44
|
*
|
|
45
45
|
* @throws {ApiError}
|
|
46
46
|
* @throws {TimeoutError}
|
|
47
47
|
*/
|
|
48
|
-
rawFind(
|
|
48
|
+
rawFind(searchIndexId) {
|
|
49
49
|
return this.client.request({
|
|
50
50
|
method: 'GET',
|
|
51
|
-
url: `/
|
|
51
|
+
url: `/search-indexes/${searchIndexId}`,
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* Create
|
|
55
|
+
* Create a search index
|
|
56
56
|
*
|
|
57
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
57
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/create
|
|
58
58
|
*
|
|
59
59
|
* @throws {ApiError}
|
|
60
60
|
* @throws {TimeoutError}
|
|
61
61
|
*/
|
|
62
62
|
create(body) {
|
|
63
63
|
return this.rawCreate(Utils.serializeRequestBody(body, {
|
|
64
|
-
type: '
|
|
65
|
-
attributes: [
|
|
66
|
-
'name',
|
|
67
|
-
'enabled',
|
|
68
|
-
'build_trigger_indexing_enabled',
|
|
69
|
-
'frontend_url',
|
|
70
|
-
'user_agent_suffix',
|
|
71
|
-
],
|
|
64
|
+
type: 'search_index',
|
|
65
|
+
attributes: ['name', 'enabled', 'frontend_url', 'user_agent_suffix'],
|
|
72
66
|
relationships: ['build_triggers'],
|
|
73
67
|
})).then((body) => Utils.deserializeResponseBody(body));
|
|
74
68
|
}
|
|
75
69
|
/**
|
|
76
|
-
* Create
|
|
70
|
+
* Create a search index
|
|
77
71
|
*
|
|
78
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
72
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/create
|
|
79
73
|
*
|
|
80
74
|
* @throws {ApiError}
|
|
81
75
|
* @throws {TimeoutError}
|
|
@@ -83,122 +77,116 @@ export default class SiteSearchSource extends BaseResource {
|
|
|
83
77
|
rawCreate(body) {
|
|
84
78
|
return this.client.request({
|
|
85
79
|
method: 'POST',
|
|
86
|
-
url: '/
|
|
80
|
+
url: '/search-indexes',
|
|
87
81
|
body,
|
|
88
82
|
});
|
|
89
83
|
}
|
|
90
84
|
/**
|
|
91
|
-
* Update
|
|
85
|
+
* Update a search index
|
|
92
86
|
*
|
|
93
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
87
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/update
|
|
94
88
|
*
|
|
95
89
|
* @throws {ApiError}
|
|
96
90
|
* @throws {TimeoutError}
|
|
97
91
|
*/
|
|
98
|
-
update(
|
|
99
|
-
return this.rawUpdate(Utils.toId(
|
|
100
|
-
id: Utils.toId(
|
|
101
|
-
type: '
|
|
102
|
-
attributes: [
|
|
103
|
-
'name',
|
|
104
|
-
'enabled',
|
|
105
|
-
'build_trigger_indexing_enabled',
|
|
106
|
-
'frontend_url',
|
|
107
|
-
'user_agent_suffix',
|
|
108
|
-
],
|
|
92
|
+
update(searchIndexId, body) {
|
|
93
|
+
return this.rawUpdate(Utils.toId(searchIndexId), Utils.serializeRequestBody(body, {
|
|
94
|
+
id: Utils.toId(searchIndexId),
|
|
95
|
+
type: 'search_index',
|
|
96
|
+
attributes: ['name', 'enabled', 'frontend_url', 'user_agent_suffix'],
|
|
109
97
|
relationships: ['build_triggers'],
|
|
110
98
|
})).then((body) => Utils.deserializeResponseBody(body));
|
|
111
99
|
}
|
|
112
100
|
/**
|
|
113
|
-
* Update
|
|
101
|
+
* Update a search index
|
|
114
102
|
*
|
|
115
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
103
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/update
|
|
116
104
|
*
|
|
117
105
|
* @throws {ApiError}
|
|
118
106
|
* @throws {TimeoutError}
|
|
119
107
|
*/
|
|
120
|
-
rawUpdate(
|
|
108
|
+
rawUpdate(searchIndexId, body) {
|
|
121
109
|
return this.client.request({
|
|
122
110
|
method: 'PUT',
|
|
123
|
-
url: `/
|
|
111
|
+
url: `/search-indexes/${searchIndexId}`,
|
|
124
112
|
body,
|
|
125
113
|
});
|
|
126
114
|
}
|
|
127
115
|
/**
|
|
128
|
-
* Trigger
|
|
116
|
+
* Trigger the indexing process
|
|
129
117
|
*
|
|
130
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
118
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/trigger
|
|
131
119
|
*
|
|
132
120
|
* @throws {ApiError}
|
|
133
121
|
* @throws {TimeoutError}
|
|
134
122
|
*/
|
|
135
|
-
trigger(
|
|
136
|
-
return this.rawTrigger(Utils.toId(
|
|
123
|
+
trigger(searchIndexId) {
|
|
124
|
+
return this.rawTrigger(Utils.toId(searchIndexId));
|
|
137
125
|
}
|
|
138
126
|
/**
|
|
139
|
-
* Trigger
|
|
127
|
+
* Trigger the indexing process
|
|
140
128
|
*
|
|
141
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
129
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/trigger
|
|
142
130
|
*
|
|
143
131
|
* @throws {ApiError}
|
|
144
132
|
* @throws {TimeoutError}
|
|
145
133
|
*/
|
|
146
|
-
rawTrigger(
|
|
134
|
+
rawTrigger(searchIndexId) {
|
|
147
135
|
return this.client.request({
|
|
148
136
|
method: 'POST',
|
|
149
|
-
url: `/
|
|
137
|
+
url: `/search-indexes/${searchIndexId}/trigger`,
|
|
150
138
|
});
|
|
151
139
|
}
|
|
152
140
|
/**
|
|
153
|
-
* Abort a
|
|
141
|
+
* Abort a the current indexing process and mark it as failed
|
|
154
142
|
*
|
|
155
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
143
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/abort
|
|
156
144
|
*
|
|
157
145
|
* @throws {ApiError}
|
|
158
146
|
* @throws {TimeoutError}
|
|
159
147
|
*/
|
|
160
|
-
abort(
|
|
161
|
-
return this.rawAbort(Utils.toId(
|
|
148
|
+
abort(searchIndexId) {
|
|
149
|
+
return this.rawAbort(Utils.toId(searchIndexId));
|
|
162
150
|
}
|
|
163
151
|
/**
|
|
164
|
-
* Abort a
|
|
152
|
+
* Abort a the current indexing process and mark it as failed
|
|
165
153
|
*
|
|
166
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
154
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/abort
|
|
167
155
|
*
|
|
168
156
|
* @throws {ApiError}
|
|
169
157
|
* @throws {TimeoutError}
|
|
170
158
|
*/
|
|
171
|
-
rawAbort(
|
|
159
|
+
rawAbort(searchIndexId) {
|
|
172
160
|
return this.client.request({
|
|
173
161
|
method: 'DELETE',
|
|
174
|
-
url: `/
|
|
162
|
+
url: `/search-indexes/${searchIndexId}/abort`,
|
|
175
163
|
});
|
|
176
164
|
}
|
|
177
165
|
/**
|
|
178
|
-
* Delete a
|
|
166
|
+
* Delete a search index
|
|
179
167
|
*
|
|
180
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
168
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/destroy
|
|
181
169
|
*
|
|
182
170
|
* @throws {ApiError}
|
|
183
171
|
* @throws {TimeoutError}
|
|
184
172
|
*/
|
|
185
|
-
destroy(
|
|
186
|
-
return this.rawDestroy(Utils.toId(
|
|
173
|
+
destroy(searchIndexId) {
|
|
174
|
+
return this.rawDestroy(Utils.toId(searchIndexId)).then((body) => Utils.deserializeResponseBody(body));
|
|
187
175
|
}
|
|
188
176
|
/**
|
|
189
|
-
* Delete a
|
|
177
|
+
* Delete a search index
|
|
190
178
|
*
|
|
191
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
179
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/destroy
|
|
192
180
|
*
|
|
193
181
|
* @throws {ApiError}
|
|
194
182
|
* @throws {TimeoutError}
|
|
195
183
|
*/
|
|
196
|
-
rawDestroy(
|
|
184
|
+
rawDestroy(searchIndexId) {
|
|
197
185
|
return this.client.request({
|
|
198
186
|
method: 'DELETE',
|
|
199
|
-
url: `/
|
|
187
|
+
url: `/search-indexes/${searchIndexId}`,
|
|
200
188
|
});
|
|
201
189
|
}
|
|
202
190
|
}
|
|
203
|
-
|
|
204
|
-
//# sourceMappingURL=
|
|
191
|
+
SearchIndex.TYPE = 'search_index';
|
|
192
|
+
//# sourceMappingURL=SearchIndex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchIndex.js","sourceRoot":"","sources":["../../../../src/generated/resources/SearchIndex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IAGnD;;;;;;;OAOG;IACH,IAAI;QACF,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAClC,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA+C;YACvE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,iBAAiB;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,aAAgD;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAC3D,KAAK,CAAC,uBAAuB,CAAuC,IAAI,CAAC,CAC1E,CAAC;IACJ,C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mB,aAAa,EAAE;SACxC,CAAC,CAAC;IACL,CAAC;;AA3Oe,gBAAI,GAAG,cAAuB,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as Utils from '@datocms/rest-client-utils';
|
|
2
|
+
import BaseResource from '../../BaseResource';
|
|
3
|
+
import type * as ApiTypes from '../ApiTypes';
|
|
4
|
+
import type * as RawApiTypes from '../RawApiTypes';
|
|
5
|
+
export default class SearchIndexEvent extends BaseResource {
|
|
6
|
+
static readonly TYPE: "search_index_event";
|
|
7
|
+
/**
|
|
8
|
+
* List all search indexing events
|
|
9
|
+
*
|
|
10
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/instances
|
|
11
|
+
*
|
|
12
|
+
* @throws {ApiError}
|
|
13
|
+
* @throws {TimeoutError}
|
|
14
|
+
*/
|
|
15
|
+
list(queryParams?: ApiTypes.SearchIndexEventInstancesHrefSchema): Promise<ApiTypes.SearchIndexEventInstancesTargetSchema>;
|
|
16
|
+
/**
|
|
17
|
+
* List all search indexing events
|
|
18
|
+
*
|
|
19
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/instances
|
|
20
|
+
*
|
|
21
|
+
* @throws {ApiError}
|
|
22
|
+
* @throws {TimeoutError}
|
|
23
|
+
*/
|
|
24
|
+
rawList(queryParams?: RawApiTypes.SearchIndexEventInstancesHrefSchema): Promise<RawApiTypes.SearchIndexEventInstancesTargetSchema>;
|
|
25
|
+
/**
|
|
26
|
+
* Async iterator to auto-paginate over elements returned by list()
|
|
27
|
+
*
|
|
28
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/instances
|
|
29
|
+
*
|
|
30
|
+
* @throws {ApiError}
|
|
31
|
+
* @throws {TimeoutError}
|
|
32
|
+
*/
|
|
33
|
+
listPagedIterator(queryParams?: Utils.OmitFromKnownKeys<ApiTypes.SearchIndexEventInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<ApiTypes.SearchIndexEvent, void, unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* Async iterator to auto-paginate over elements returned by rawList()
|
|
36
|
+
*
|
|
37
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/instances
|
|
38
|
+
*
|
|
39
|
+
* @throws {ApiError}
|
|
40
|
+
* @throws {TimeoutError}
|
|
41
|
+
*/
|
|
42
|
+
rawListPagedIterator(queryParams?: Utils.OmitFromKnownKeys<RawApiTypes.SearchIndexEventInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<RawApiTypes.SearchIndexEvent, void, unknown>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve a search indexing event
|
|
45
|
+
*
|
|
46
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/self
|
|
47
|
+
*
|
|
48
|
+
* @throws {ApiError}
|
|
49
|
+
* @throws {TimeoutError}
|
|
50
|
+
*/
|
|
51
|
+
find(searchIndexEventId: string | ApiTypes.SearchIndexEventData): Promise<ApiTypes.SearchIndexEvent>;
|
|
52
|
+
/**
|
|
53
|
+
* Retrieve a search indexing event
|
|
54
|
+
*
|
|
55
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/self
|
|
56
|
+
*
|
|
57
|
+
* @throws {ApiError}
|
|
58
|
+
* @throws {TimeoutError}
|
|
59
|
+
*/
|
|
60
|
+
rawFind(searchIndexEventId: string): Promise<RawApiTypes.SearchIndexEventSelfTargetSchema>;
|
|
61
|
+
}
|
|
@@ -19,11 +19,11 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
19
19
|
};
|
|
20
20
|
import * as Utils from '@datocms/rest-client-utils';
|
|
21
21
|
import BaseResource from '../../BaseResource';
|
|
22
|
-
export default class
|
|
22
|
+
export default class SearchIndexEvent extends BaseResource {
|
|
23
23
|
/**
|
|
24
|
-
* List all
|
|
24
|
+
* List all search indexing events
|
|
25
25
|
*
|
|
26
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
26
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/instances
|
|
27
27
|
*
|
|
28
28
|
* @throws {ApiError}
|
|
29
29
|
* @throws {TimeoutError}
|
|
@@ -32,9 +32,9 @@ export default class SiteSearchSourceEvent extends BaseResource {
|
|
|
32
32
|
return this.rawList(queryParams).then((body) => Utils.deserializeResponseBody(body));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* List all
|
|
35
|
+
* List all search indexing events
|
|
36
36
|
*
|
|
37
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
37
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/instances
|
|
38
38
|
*
|
|
39
39
|
* @throws {ApiError}
|
|
40
40
|
* @throws {TimeoutError}
|
|
@@ -42,14 +42,14 @@ export default class SiteSearchSourceEvent extends BaseResource {
|
|
|
42
42
|
rawList(queryParams) {
|
|
43
43
|
return this.client.request({
|
|
44
44
|
method: 'GET',
|
|
45
|
-
url: '/
|
|
45
|
+
url: '/search-index-events',
|
|
46
46
|
queryParams,
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Async iterator to auto-paginate over elements returned by list()
|
|
51
51
|
*
|
|
52
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
52
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/instances
|
|
53
53
|
*
|
|
54
54
|
* @throws {ApiError}
|
|
55
55
|
* @throws {TimeoutError}
|
|
@@ -82,7 +82,7 @@ export default class SiteSearchSourceEvent extends BaseResource {
|
|
|
82
82
|
/**
|
|
83
83
|
* Async iterator to auto-paginate over elements returned by rawList()
|
|
84
84
|
*
|
|
85
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
85
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/instances
|
|
86
86
|
*
|
|
87
87
|
* @throws {ApiError}
|
|
88
88
|
* @throws {TimeoutError}
|
|
@@ -95,30 +95,30 @@ export default class SiteSearchSourceEvent extends BaseResource {
|
|
|
95
95
|
}, (page) => this.rawList(Object.assign(Object.assign({}, queryParams), { page })), iteratorOptions);
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* Retrieve a
|
|
98
|
+
* Retrieve a search indexing event
|
|
99
99
|
*
|
|
100
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
100
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/self
|
|
101
101
|
*
|
|
102
102
|
* @throws {ApiError}
|
|
103
103
|
* @throws {TimeoutError}
|
|
104
104
|
*/
|
|
105
|
-
find(
|
|
106
|
-
return this.rawFind(Utils.toId(
|
|
105
|
+
find(searchIndexEventId) {
|
|
106
|
+
return this.rawFind(Utils.toId(searchIndexEventId)).then((body) => Utils.deserializeResponseBody(body));
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Retrieve a
|
|
109
|
+
* Retrieve a search indexing event
|
|
110
110
|
*
|
|
111
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
111
|
+
* Read more: https://www.datocms.com/docs/content-management-api/resources/search-index_event/self
|
|
112
112
|
*
|
|
113
113
|
* @throws {ApiError}
|
|
114
114
|
* @throws {TimeoutError}
|
|
115
115
|
*/
|
|
116
|
-
rawFind(
|
|
116
|
+
rawFind(searchIndexEventId) {
|
|
117
117
|
return this.client.request({
|
|
118
118
|
method: 'GET',
|
|
119
|
-
url: `/
|
|
119
|
+
url: `/search-index-events/${searchIndexEventId}`,
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
|
|
124
|
-
//# sourceMappingURL=
|
|
123
|
+
SearchIndexEvent.TYPE = 'search_index_event';
|
|
124
|
+
//# sourceMappingURL=SearchIndexEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchIndexEvent.js","sour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J,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,kBAA0D;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAChE,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CACL,kBAA0B;QAE1B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA+C;YACvE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,wBAAwB,kBAAkB,EAAE;SAClD,CAAC,CAAC;IACL,CAAC;;AA5He,qBAAI,GAAG,oBAA6B,CAAC"}
|
|
@@ -15,7 +15,7 @@ export { default as JobResult } from './JobResult';
|
|
|
15
15
|
export { default as SubscriptionLimit } from './SubscriptionLimit';
|
|
16
16
|
export { default as SubscriptionFeature } from './SubscriptionFeature';
|
|
17
17
|
export { default as BuildEvent } from './BuildEvent';
|
|
18
|
-
export { default as
|
|
18
|
+
export { default as SearchIndexEvent } from './SearchIndexEvent';
|
|
19
19
|
export { default as Item } from './Item';
|
|
20
20
|
export { default as ItemVersion } from './ItemVersion';
|
|
21
21
|
export { default as Upload } from './Upload';
|
|
@@ -29,7 +29,7 @@ export { default as MaintenanceMode } from './MaintenanceMode';
|
|
|
29
29
|
export { default as Webhook } from './Webhook';
|
|
30
30
|
export { default as WebhookCall } from './WebhookCall';
|
|
31
31
|
export { default as BuildTrigger } from './BuildTrigger';
|
|
32
|
-
export { default as
|
|
32
|
+
export { default as SearchIndex } from './SearchIndex';
|
|
33
33
|
export { default as ItemTypeFilter } from './ItemTypeFilter';
|
|
34
34
|
export { default as UploadFilter } from './UploadFilter';
|
|
35
35
|
export { default as SiteInvitation } from './SiteInvitation';
|
|
@@ -15,7 +15,7 @@ export { default as JobResult } from './JobResult';
|
|
|
15
15
|
export { default as SubscriptionLimit } from './SubscriptionLimit';
|
|
16
16
|
export { default as SubscriptionFeature } from './SubscriptionFeature';
|
|
17
17
|
export { default as BuildEvent } from './BuildEvent';
|
|
18
|
-
export { default as
|
|
18
|
+
export { default as SearchIndexEvent } from './SearchIndexEvent';
|
|
19
19
|
export { default as Item } from './Item';
|
|
20
20
|
export { default as ItemVersion } from './ItemVersion';
|
|
21
21
|
export { default as Upload } from './Upload';
|
|
@@ -29,7 +29,7 @@ export { default as MaintenanceMode } from './MaintenanceMode';
|
|
|
29
29
|
export { default as Webhook } from './Webhook';
|
|
30
30
|
export { default as WebhookCall } from './WebhookCall';
|
|
31
31
|
export { default as BuildTrigger } from './BuildTrigger';
|
|
32
|
-
export { default as
|
|
32
|
+
export { default as SearchIndex } from './SearchIndex';
|
|
33
33
|
export { default as ItemTypeFilter } from './ItemTypeFilter';
|
|
34
34
|
export { default as UploadFilter } from './UploadFilter';
|
|
35
35
|
export { default as SiteInvitation } from './SiteInvitation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,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AE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -194,7 +194,7 @@ export declare class SchemaRepository {
|
|
|
194
194
|
* @param itemType - The item type to get fields for
|
|
195
195
|
* @returns Promise that resolves to an array of fields
|
|
196
196
|
*/
|
|
197
|
-
getRawItemTypeFields(itemType: RawApiTypes.ItemType): Promise<RawApiTypes.Field[]>;
|
|
197
|
+
getRawItemTypeFields(itemType: ApiTypes.ItemType | RawApiTypes.ItemType): Promise<RawApiTypes.Field[]>;
|
|
198
198
|
/**
|
|
199
199
|
* Gets all fieldsets for a given item type.
|
|
200
200
|
* Fieldsets are cached after the first request for performance.
|
|
@@ -208,7 +208,7 @@ export declare class SchemaRepository {
|
|
|
208
208
|
* @param itemType - The item type to get fieldsets for
|
|
209
209
|
* @returns Promise that resolves to an array of fieldsets
|
|
210
210
|
*/
|
|
211
|
-
getRawItemTypeFieldsets(itemType: RawApiTypes.ItemType): Promise<RawApiTypes.Fieldset[]>;
|
|
211
|
+
getRawItemTypeFieldsets(itemType: ApiTypes.ItemType | RawApiTypes.ItemType): Promise<RawApiTypes.Fieldset[]>;
|
|
212
212
|
/**
|
|
213
213
|
* Loads and caches all plugins from the DatoCMS API.
|
|
214
214
|
* This method is called lazily and caches the result for subsequent calls.
|
|
@@ -285,5 +285,45 @@ export declare class SchemaRepository {
|
|
|
285
285
|
* @returns Promise that resolves to array of models that embed these blocks
|
|
286
286
|
*/
|
|
287
287
|
getModelsEmbeddingBlocks(blocks: Array<ApiTypes.ItemType | RawApiTypes.ItemType>): Promise<Array<ApiTypes.ItemType>>;
|
|
288
|
+
/**
|
|
289
|
+
* Gets all block models that are directly or indirectly nested within the given item types.
|
|
290
|
+
* This method recursively traverses the schema to find all blocks that are nested
|
|
291
|
+
* within the provided item types, either directly through block fields or indirectly through
|
|
292
|
+
* other nested block models.
|
|
293
|
+
*
|
|
294
|
+
* @param itemTypes - Array of item types to find nested blocks for
|
|
295
|
+
* @returns Promise that resolves to array of all block models nested in these item types
|
|
296
|
+
*/
|
|
297
|
+
getRawNestedBlocks(itemTypes: Array<ApiTypes.ItemType | RawApiTypes.ItemType>): Promise<Array<RawApiTypes.ItemType>>;
|
|
298
|
+
/**
|
|
299
|
+
* Gets all block models that are directly or indirectly nested within the given item types.
|
|
300
|
+
* This method recursively traverses the schema to find all blocks that are nested
|
|
301
|
+
* within the provided item types, either directly through block fields or indirectly through
|
|
302
|
+
* other nested block models.
|
|
303
|
+
*
|
|
304
|
+
* @param itemTypes - Array of item types to find nested blocks for
|
|
305
|
+
* @returns Promise that resolves to array of all block models nested in these item types
|
|
306
|
+
*/
|
|
307
|
+
getNestedBlocks(itemTypes: Array<ApiTypes.ItemType | RawApiTypes.ItemType>): Promise<Array<ApiTypes.ItemType>>;
|
|
308
|
+
/**
|
|
309
|
+
* Gets all models that are directly or indirectly nested/referenced within the given item types.
|
|
310
|
+
* This method recursively traverses the schema to find all models that are referenced
|
|
311
|
+
* by the provided item types through link fields, either directly or indirectly through
|
|
312
|
+
* other referenced blocks.
|
|
313
|
+
*
|
|
314
|
+
* @param itemTypes - Array of item types to find nested models for
|
|
315
|
+
* @returns Promise that resolves to array of all models nested in these item types
|
|
316
|
+
*/
|
|
317
|
+
getRawNestedModels(itemTypes: Array<ApiTypes.ItemType | RawApiTypes.ItemType>): Promise<Array<RawApiTypes.ItemType>>;
|
|
318
|
+
/**
|
|
319
|
+
* Gets all models that are directly or indirectly nested/referenced within the given item types.
|
|
320
|
+
* This method recursively traverses the schema to find all models that are referenced
|
|
321
|
+
* by the provided item types through link fields, either directly or indirectly through
|
|
322
|
+
* other referenced blocks.
|
|
323
|
+
*
|
|
324
|
+
* @param itemTypes - Array of item types to find nested models for
|
|
325
|
+
* @returns Promise that resolves to array of all models nested in these item types
|
|
326
|
+
*/
|
|
327
|
+
getNestedModels(itemTypes: Array<ApiTypes.ItemType | RawApiTypes.ItemType>): Promise<Array<ApiTypes.ItemType>>;
|
|
288
328
|
}
|
|
289
329
|
export {};
|