@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.
Files changed (48) hide show
  1. package/dist/cjs/generated/Client.js +3 -3
  2. package/dist/cjs/generated/Client.js.map +1 -1
  3. package/dist/cjs/generated/resources/Role.js +8 -8
  4. package/dist/cjs/generated/resources/Role.js.map +1 -1
  5. package/dist/cjs/generated/resources/{SiteSearchSource.js → SearchIndex.js} +53 -53
  6. package/dist/cjs/generated/resources/SearchIndex.js.map +1 -0
  7. package/dist/cjs/generated/resources/{SiteSearchSourceEvent.js → SearchIndexEvent.js} +19 -19
  8. package/dist/cjs/generated/resources/SearchIndexEvent.js.map +1 -0
  9. package/dist/cjs/generated/resources/index.js +5 -5
  10. package/dist/cjs/generated/resources/index.js.map +1 -1
  11. package/dist/esm/generated/ApiTypes.d.ts +131 -131
  12. package/dist/esm/generated/Client.d.ts +2 -2
  13. package/dist/esm/generated/Client.js +3 -3
  14. package/dist/esm/generated/Client.js.map +1 -1
  15. package/dist/esm/generated/RawApiTypes.d.ts +136 -136
  16. package/dist/esm/generated/resources/Role.js +8 -8
  17. package/dist/esm/generated/resources/Role.js.map +1 -1
  18. package/dist/esm/generated/resources/{SiteSearchSource.d.ts → SearchIndex.d.ts} +40 -40
  19. package/dist/esm/generated/resources/{SiteSearchSource.js → SearchIndex.js} +52 -52
  20. package/dist/esm/generated/resources/SearchIndex.js.map +1 -0
  21. package/dist/esm/generated/resources/SearchIndexEvent.d.ts +61 -0
  22. package/dist/esm/generated/resources/{SiteSearchSourceEvent.js → SearchIndexEvent.js} +18 -18
  23. package/dist/esm/generated/resources/SearchIndexEvent.js.map +1 -0
  24. package/dist/esm/generated/resources/index.d.ts +2 -2
  25. package/dist/esm/generated/resources/index.js +2 -2
  26. package/dist/esm/generated/resources/index.js.map +1 -1
  27. package/dist/types/generated/ApiTypes.d.ts +131 -131
  28. package/dist/types/generated/Client.d.ts +2 -2
  29. package/dist/types/generated/RawApiTypes.d.ts +136 -136
  30. package/dist/types/generated/resources/{SiteSearchSource.d.ts → SearchIndex.d.ts} +40 -40
  31. package/dist/types/generated/resources/SearchIndexEvent.d.ts +61 -0
  32. package/dist/types/generated/resources/index.d.ts +2 -2
  33. package/package.json +3 -3
  34. package/resources.json +75 -75
  35. package/src/generated/ApiTypes.ts +132 -133
  36. package/src/generated/Client.ts +5 -5
  37. package/src/generated/RawApiTypes.ts +137 -137
  38. package/src/generated/resources/Role.ts +8 -8
  39. package/src/generated/resources/SearchIndex.ts +255 -0
  40. package/src/generated/resources/{SiteSearchSourceEvent.ts → SearchIndexEvent.ts} +32 -34
  41. package/src/generated/resources/index.ts +2 -2
  42. package/dist/cjs/generated/resources/SiteSearchSource.js.map +0 -1
  43. package/dist/cjs/generated/resources/SiteSearchSourceEvent.js.map +0 -1
  44. package/dist/esm/generated/resources/SiteSearchSource.js.map +0 -1
  45. package/dist/esm/generated/resources/SiteSearchSourceEvent.d.ts +0 -61
  46. package/dist/esm/generated/resources/SiteSearchSourceEvent.js.map +0 -1
  47. package/dist/types/generated/resources/SiteSearchSourceEvent.d.ts +0 -61
  48. package/src/generated/resources/SiteSearchSource.ts +0 -267
@@ -1 +1 @@
1
- {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/generated/resources/Role.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,YAAY;IAG5C;;;;;;;OAOG;IACH,MAAM,CAAC,IAA+B;QACpC,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAA+B,IAAI,EAAE;YAC7D,IAAI,EAAE,MAAM;YACZ,UAAU,EAAE;gBACV,MAAM;gBACN,kBAAkB;gBAClB,eAAe;gBACf,iBAAiB;gBACjB,iBAAiB;gBACjB,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
1
  import BaseResource from '../../BaseResource';
2
2
  import type * as ApiTypes from '../ApiTypes';
3
3
  import type * as RawApiTypes from '../RawApiTypes';
4
- export default class SiteSearchSource extends BaseResource {
5
- static readonly TYPE: "site_search_source";
4
+ export default class SearchIndex extends BaseResource {
5
+ static readonly TYPE: "search_index";
6
6
  /**
7
- * List all site search sources for a site
7
+ * List all search indexes for a site
8
8
  *
9
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/instances
9
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/instances
10
10
  *
11
11
  * @throws {ApiError}
12
12
  * @throws {TimeoutError}
13
13
  */
14
- list(): Promise<ApiTypes.SiteSearchSourceInstancesTargetSchema>;
14
+ list(): Promise<ApiTypes.SearchIndexInstancesTargetSchema>;
15
15
  /**
16
- * List all site search sources for a site
16
+ * List all search indexes for a site
17
17
  *
18
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/instances
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}
22
22
  */
23
- rawList(): Promise<RawApiTypes.SiteSearchSourceInstancesTargetSchema>;
23
+ rawList(): Promise<RawApiTypes.SearchIndexInstancesTargetSchema>;
24
24
  /**
25
- * Retrieve a site search source
25
+ * Retrieve a search index
26
26
  *
27
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/self
27
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/self
28
28
  *
29
29
  * @throws {ApiError}
30
30
  * @throws {TimeoutError}
31
31
  */
32
- find(siteSearchSourceId: string | ApiTypes.SiteSearchSourceData): Promise<ApiTypes.SiteSearchSource>;
32
+ find(searchIndexId: string | ApiTypes.SearchIndexData): Promise<ApiTypes.SearchIndex>;
33
33
  /**
34
- * Retrieve a site search source
34
+ * Retrieve a search index
35
35
  *
36
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/self
36
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/self
37
37
  *
38
38
  * @throws {ApiError}
39
39
  * @throws {TimeoutError}
40
40
  */
41
- rawFind(siteSearchSourceId: string): Promise<RawApiTypes.SiteSearchSourceSelfTargetSchema>;
41
+ rawFind(searchIndexId: string): Promise<RawApiTypes.SearchIndexSelfTargetSchema>;
42
42
  /**
43
- * Create site search source
43
+ * Create search index
44
44
  *
45
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/create
45
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/create
46
46
  *
47
47
  * @throws {ApiError}
48
48
  * @throws {TimeoutError}
49
49
  */
50
- create(body: ApiTypes.SiteSearchSourceCreateSchema): Promise<ApiTypes.SiteSearchSource>;
50
+ create(body: ApiTypes.SearchIndexCreateSchema): Promise<ApiTypes.SearchIndex>;
51
51
  /**
52
- * Create site search source
52
+ * Create search index
53
53
  *
54
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/create
54
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/create
55
55
  *
56
56
  * @throws {ApiError}
57
57
  * @throws {TimeoutError}
58
58
  */
59
- rawCreate(body: RawApiTypes.SiteSearchSourceCreateSchema): Promise<RawApiTypes.SiteSearchSourceCreateTargetSchema>;
59
+ rawCreate(body: RawApiTypes.SearchIndexCreateSchema): Promise<RawApiTypes.SearchIndexCreateTargetSchema>;
60
60
  /**
61
- * Update site search source
61
+ * Update search index
62
62
  *
63
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/update
63
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/update
64
64
  *
65
65
  * @throws {ApiError}
66
66
  * @throws {TimeoutError}
67
67
  */
68
- update(siteSearchSourceId: string | ApiTypes.SiteSearchSourceData, body: ApiTypes.SiteSearchSourceUpdateSchema): Promise<ApiTypes.SiteSearchSource>;
68
+ update(searchIndexId: string | ApiTypes.SearchIndexData, body: ApiTypes.SearchIndexUpdateSchema): Promise<ApiTypes.SearchIndex>;
69
69
  /**
70
- * Update site search source
70
+ * Update search index
71
71
  *
72
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/update
72
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/update
73
73
  *
74
74
  * @throws {ApiError}
75
75
  * @throws {TimeoutError}
76
76
  */
77
- rawUpdate(siteSearchSourceId: string, body: RawApiTypes.SiteSearchSourceUpdateSchema): Promise<RawApiTypes.SiteSearchSourceUpdateTargetSchema>;
77
+ rawUpdate(searchIndexId: string, body: RawApiTypes.SearchIndexUpdateSchema): Promise<RawApiTypes.SearchIndexUpdateTargetSchema>;
78
78
  /**
79
79
  * Trigger a site search indexing
80
80
  *
81
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/trigger
81
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/trigger
82
82
  *
83
83
  * @throws {ApiError}
84
84
  * @throws {TimeoutError}
85
85
  */
86
- trigger(siteSearchSourceId: string | ApiTypes.SiteSearchSourceData): Promise<void>;
86
+ trigger(searchIndexId: string | ApiTypes.SearchIndexData): Promise<void>;
87
87
  /**
88
88
  * Trigger a site search indexing
89
89
  *
90
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/trigger
90
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/trigger
91
91
  *
92
92
  * @throws {ApiError}
93
93
  * @throws {TimeoutError}
94
94
  */
95
- rawTrigger(siteSearchSourceId: string): Promise<void>;
95
+ rawTrigger(searchIndexId: string): Promise<void>;
96
96
  /**
97
97
  * Abort a site search spidering and mark it as failed
98
98
  *
99
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/abort
99
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/abort
100
100
  *
101
101
  * @throws {ApiError}
102
102
  * @throws {TimeoutError}
103
103
  */
104
- abort(siteSearchSourceId: string | ApiTypes.SiteSearchSourceData): Promise<void>;
104
+ abort(searchIndexId: string | ApiTypes.SearchIndexData): Promise<void>;
105
105
  /**
106
106
  * Abort a site search spidering and mark it as failed
107
107
  *
108
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/abort
108
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/abort
109
109
  *
110
110
  * @throws {ApiError}
111
111
  * @throws {TimeoutError}
112
112
  */
113
- rawAbort(siteSearchSourceId: string): Promise<void>;
113
+ rawAbort(searchIndexId: string): Promise<void>;
114
114
  /**
115
- * Delete a site search source
115
+ * Delete a search index
116
116
  *
117
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/destroy
117
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/destroy
118
118
  *
119
119
  * @throws {ApiError}
120
120
  * @throws {TimeoutError}
121
121
  */
122
- destroy(siteSearchSourceId: string | ApiTypes.SiteSearchSourceData): Promise<ApiTypes.SiteSearchSource>;
122
+ destroy(searchIndexId: string | ApiTypes.SearchIndexData): Promise<ApiTypes.SearchIndex>;
123
123
  /**
124
- * Delete a site search source
124
+ * Delete a search index
125
125
  *
126
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/destroy
126
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/destroy
127
127
  *
128
128
  * @throws {ApiError}
129
129
  * @throws {TimeoutError}
130
130
  */
131
- rawDestroy(siteSearchSourceId: string): Promise<RawApiTypes.SiteSearchSourceDestroyTargetSchema>;
131
+ rawDestroy(searchIndexId: string): Promise<RawApiTypes.SearchIndexDestroyTargetSchema>;
132
132
  }
@@ -1,10 +1,10 @@
1
1
  import * as Utils from '@datocms/rest-client-utils';
2
2
  import BaseResource from '../../BaseResource';
3
- export default class SiteSearchSource extends BaseResource {
3
+ export default class SearchIndex extends BaseResource {
4
4
  /**
5
- * List all site search sources for a site
5
+ * List all search indexes for a site
6
6
  *
7
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/instances
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 site search sources for a site
16
+ * List all search indexes for a site
17
17
  *
18
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/instances
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,45 +23,45 @@ export default class SiteSearchSource extends BaseResource {
23
23
  rawList() {
24
24
  return this.client.request({
25
25
  method: 'GET',
26
- url: '/site-search-sources',
26
+ url: '/search-indexes',
27
27
  });
28
28
  }
29
29
  /**
30
- * Retrieve a site search source
30
+ * Retrieve a search index
31
31
  *
32
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/self
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(siteSearchSourceId) {
38
- return this.rawFind(Utils.toId(siteSearchSourceId)).then((body) => Utils.deserializeResponseBody(body));
37
+ find(searchIndexId) {
38
+ return this.rawFind(Utils.toId(searchIndexId)).then((body) => Utils.deserializeResponseBody(body));
39
39
  }
40
40
  /**
41
- * Retrieve a site search source
41
+ * Retrieve a search index
42
42
  *
43
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/self
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(siteSearchSourceId) {
48
+ rawFind(searchIndexId) {
49
49
  return this.client.request({
50
50
  method: 'GET',
51
- url: `/site-search-sources/${siteSearchSourceId}`,
51
+ url: `/search-indexes/${searchIndexId}`,
52
52
  });
53
53
  }
54
54
  /**
55
- * Create site search source
55
+ * Create search index
56
56
  *
57
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/create
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: 'site_search_source',
64
+ type: 'search_index',
65
65
  attributes: [
66
66
  'name',
67
67
  'enabled',
@@ -73,9 +73,9 @@ export default class SiteSearchSource extends BaseResource {
73
73
  })).then((body) => Utils.deserializeResponseBody(body));
74
74
  }
75
75
  /**
76
- * Create site search source
76
+ * Create search index
77
77
  *
78
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/create
78
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/create
79
79
  *
80
80
  * @throws {ApiError}
81
81
  * @throws {TimeoutError}
@@ -83,22 +83,22 @@ export default class SiteSearchSource extends BaseResource {
83
83
  rawCreate(body) {
84
84
  return this.client.request({
85
85
  method: 'POST',
86
- url: '/site-search-sources',
86
+ url: '/search-indexes',
87
87
  body,
88
88
  });
89
89
  }
90
90
  /**
91
- * Update site search source
91
+ * Update search index
92
92
  *
93
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/update
93
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/update
94
94
  *
95
95
  * @throws {ApiError}
96
96
  * @throws {TimeoutError}
97
97
  */
98
- update(siteSearchSourceId, body) {
99
- return this.rawUpdate(Utils.toId(siteSearchSourceId), Utils.serializeRequestBody(body, {
100
- id: Utils.toId(siteSearchSourceId),
101
- type: 'site_search_source',
98
+ update(searchIndexId, body) {
99
+ return this.rawUpdate(Utils.toId(searchIndexId), Utils.serializeRequestBody(body, {
100
+ id: Utils.toId(searchIndexId),
101
+ type: 'search_index',
102
102
  attributes: [
103
103
  'name',
104
104
  'enabled',
@@ -110,95 +110,95 @@ export default class SiteSearchSource extends BaseResource {
110
110
  })).then((body) => Utils.deserializeResponseBody(body));
111
111
  }
112
112
  /**
113
- * Update site search source
113
+ * Update search index
114
114
  *
115
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/update
115
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/update
116
116
  *
117
117
  * @throws {ApiError}
118
118
  * @throws {TimeoutError}
119
119
  */
120
- rawUpdate(siteSearchSourceId, body) {
120
+ rawUpdate(searchIndexId, body) {
121
121
  return this.client.request({
122
122
  method: 'PUT',
123
- url: `/site-search-sources/${siteSearchSourceId}`,
123
+ url: `/search-indexes/${searchIndexId}`,
124
124
  body,
125
125
  });
126
126
  }
127
127
  /**
128
128
  * Trigger a site search indexing
129
129
  *
130
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/trigger
130
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/trigger
131
131
  *
132
132
  * @throws {ApiError}
133
133
  * @throws {TimeoutError}
134
134
  */
135
- trigger(siteSearchSourceId) {
136
- return this.rawTrigger(Utils.toId(siteSearchSourceId));
135
+ trigger(searchIndexId) {
136
+ return this.rawTrigger(Utils.toId(searchIndexId));
137
137
  }
138
138
  /**
139
139
  * Trigger a site search indexing
140
140
  *
141
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/trigger
141
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/trigger
142
142
  *
143
143
  * @throws {ApiError}
144
144
  * @throws {TimeoutError}
145
145
  */
146
- rawTrigger(siteSearchSourceId) {
146
+ rawTrigger(searchIndexId) {
147
147
  return this.client.request({
148
148
  method: 'POST',
149
- url: `/site-search-sources/${siteSearchSourceId}/trigger`,
149
+ url: `/search-indexes/${searchIndexId}/trigger`,
150
150
  });
151
151
  }
152
152
  /**
153
153
  * Abort a site search spidering and mark it as failed
154
154
  *
155
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/abort
155
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/abort
156
156
  *
157
157
  * @throws {ApiError}
158
158
  * @throws {TimeoutError}
159
159
  */
160
- abort(siteSearchSourceId) {
161
- return this.rawAbort(Utils.toId(siteSearchSourceId));
160
+ abort(searchIndexId) {
161
+ return this.rawAbort(Utils.toId(searchIndexId));
162
162
  }
163
163
  /**
164
164
  * Abort a site search spidering and mark it as failed
165
165
  *
166
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/abort
166
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/abort
167
167
  *
168
168
  * @throws {ApiError}
169
169
  * @throws {TimeoutError}
170
170
  */
171
- rawAbort(siteSearchSourceId) {
171
+ rawAbort(searchIndexId) {
172
172
  return this.client.request({
173
173
  method: 'DELETE',
174
- url: `/site-search-sources/${siteSearchSourceId}/abort`,
174
+ url: `/search-indexes/${searchIndexId}/abort`,
175
175
  });
176
176
  }
177
177
  /**
178
- * Delete a site search source
178
+ * Delete a search index
179
179
  *
180
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/destroy
180
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/destroy
181
181
  *
182
182
  * @throws {ApiError}
183
183
  * @throws {TimeoutError}
184
184
  */
185
- destroy(siteSearchSourceId) {
186
- return this.rawDestroy(Utils.toId(siteSearchSourceId)).then((body) => Utils.deserializeResponseBody(body));
185
+ destroy(searchIndexId) {
186
+ return this.rawDestroy(Utils.toId(searchIndexId)).then((body) => Utils.deserializeResponseBody(body));
187
187
  }
188
188
  /**
189
- * Delete a site search source
189
+ * Delete a search index
190
190
  *
191
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source/destroy
191
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/search-index/destroy
192
192
  *
193
193
  * @throws {ApiError}
194
194
  * @throws {TimeoutError}
195
195
  */
196
- rawDestroy(siteSearchSourceId) {
196
+ rawDestroy(searchIndexId) {
197
197
  return this.client.request({
198
198
  method: 'DELETE',
199
- url: `/site-search-sources/${siteSearchSourceId}`,
199
+ url: `/search-indexes/${searchIndexId}`,
200
200
  });
201
201
  }
202
202
  }
203
- SiteSearchSource.TYPE = 'site_search_source';
204
- //# sourceMappingURL=SiteSearchSource.js.map
203
+ SearchIndex.TYPE = 'search_index';
204
+ //# 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,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CACL,aAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA0C;YAClE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,mBAAmB,aAAa,EAAE;SACxC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAsC;QAC3C,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CA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D,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,aAAqB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO;YAC/B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,mBAAmB,aAAa,UAAU;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,aAAgD;QACpD,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC;IAClD,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAqB;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO;YAC/B,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,mBAAmB,aAAa,QAAQ;SAC9C,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,aAAgD;QACtD,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAC9D,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CACR,aAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6C;YACrE,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,mBAAmB,aAAa,EAAE;SACxC,CAAC,CAAC;IACL,CAAC;;AAvPe,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 SiteSearchSourceEvent extends BaseResource {
22
+ export default class SearchIndexEvent extends BaseResource {
23
23
  /**
24
- * List all site search indexing events
24
+ * List all search indexing events
25
25
  *
26
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source_event/instances
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 site search indexing events
35
+ * List all search indexing events
36
36
  *
37
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source_event/instances
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: '/site-search-source-events',
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/site-search_source_event/instances
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/site-search_source_event/instances
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 site search indexing event
98
+ * Retrieve a search indexing event
99
99
  *
100
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source_event/self
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(siteSearchSourceEventId) {
106
- return this.rawFind(Utils.toId(siteSearchSourceEventId)).then((body) => Utils.deserializeResponseBody(body));
105
+ find(searchIndexEventId) {
106
+ return this.rawFind(Utils.toId(searchIndexEventId)).then((body) => Utils.deserializeResponseBody(body));
107
107
  }
108
108
  /**
109
- * Retrieve a site search indexing event
109
+ * Retrieve a search indexing event
110
110
  *
111
- * Read more: https://www.datocms.com/docs/content-management-api/resources/site-search_source_event/self
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(siteSearchSourceEventId) {
116
+ rawFind(searchIndexEventId) {
117
117
  return this.client.request({
118
118
  method: 'GET',
119
- url: `/site-search-source-events/${siteSearchSourceEventId}`,
119
+ url: `/search-index-events/${searchIndexEventId}`,
120
120
  });
121
121
  }
122
122
  }
123
- SiteSearchSourceEvent.TYPE = 'site_search_source_event';
124
- //# sourceMappingURL=SiteSearchSourceEvent.js.map
123
+ SearchIndexEvent.TYPE = 'search_index_event';
124
+ //# sourceMappingURL=SearchIndexEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchIndexEvent.js","sourceRoot":"","sources":["../../../../src/generated/resources/SearchIndexEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,YAAY;IAGxD;;;;;;;OAOG;IACH,IAAI,CAAC,WAA0D;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAC7C,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CACL,WAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,sBAAsB;YAC3B,WAAW;SACZ,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACI,iBAAiB,CACtB,WAGC,EACD,eAAuC;;;;gBAEvC,KAA4B,eAAA,KAAA,cAAA,IAAI,CAAC,oBAAoB,CACnD,WAAW,EACX,eAAe,CAChB,CAAA,IAAA;oBAH2B,cAG3B;oBAH2B,WAG3B;;wBAHU,MAAM,OAAO,KAAA,CAAA;wBAItB,oBAAM,KAAK,CAAC,qBAAqB,CAE/B,OAAO,CAAC,CAAA,CAAC;;;;;iBACZ;;;;;;;;;QACH,CAAC;KAAA;IAED;;;;;;;OAOG;IACH,oBAAoB,CAClB,WAGC,EACD,eAAuC;QAEvC,KAAK,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;QAExC,OAAO,KAAK,CAAC,eAAe,CAG1B;YACE,YAAY,EAAE,EAAE;YAChB,QAAQ,EAAE,GAAG;SACd,EACD,CAAC,IAA6D,EAAE,EAAE,CAChE,IAAI,CAAC,OAAO,iCAAM,WAAW,KAAE,IAAI,IAAG,EACxC,eAAe,CAChB,CAAC;IACJ,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 SiteSearchSourceEvent } from './SiteSearchSourceEvent';
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 SiteSearchSource } from './SiteSearchSource';
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';