@datocms/cma-client 5.2.0-alpha.3 → 5.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/Client.js +3 -3
- package/dist/cjs/generated/Client.js.map +1 -1
- package/dist/cjs/generated/resources/Role.js +8 -8
- package/dist/cjs/generated/resources/Role.js.map +1 -1
- package/dist/cjs/generated/resources/{SiteSearchSource.js → SearchIndex.js} +53 -53
- package/dist/cjs/generated/resources/SearchIndex.js.map +1 -0
- package/dist/cjs/generated/resources/{SiteSearchSourceEvent.js → SearchIndexEvent.js} +19 -19
- package/dist/cjs/generated/resources/SearchIndexEvent.js.map +1 -0
- package/dist/cjs/generated/resources/index.js +5 -5
- package/dist/cjs/generated/resources/index.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +131 -131
- package/dist/esm/generated/Client.d.ts +2 -2
- package/dist/esm/generated/Client.js +3 -3
- package/dist/esm/generated/Client.js.map +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +136 -136
- package/dist/esm/generated/resources/Role.js +8 -8
- package/dist/esm/generated/resources/Role.js.map +1 -1
- package/dist/esm/generated/resources/{SiteSearchSource.d.ts → SearchIndex.d.ts} +40 -40
- package/dist/esm/generated/resources/{SiteSearchSource.js → SearchIndex.js} +52 -52
- package/dist/esm/generated/resources/SearchIndex.js.map +1 -0
- package/dist/esm/generated/resources/SearchIndexEvent.d.ts +61 -0
- package/dist/esm/generated/resources/{SiteSearchSourceEvent.js → SearchIndexEvent.js} +18 -18
- package/dist/esm/generated/resources/SearchIndexEvent.js.map +1 -0
- package/dist/esm/generated/resources/index.d.ts +2 -2
- package/dist/esm/generated/resources/index.js +2 -2
- package/dist/esm/generated/resources/index.js.map +1 -1
- package/dist/types/generated/ApiTypes.d.ts +131 -131
- package/dist/types/generated/Client.d.ts +2 -2
- package/dist/types/generated/RawApiTypes.d.ts +136 -136
- package/dist/types/generated/resources/{SiteSearchSource.d.ts → SearchIndex.d.ts} +40 -40
- package/dist/types/generated/resources/SearchIndexEvent.d.ts +61 -0
- package/dist/types/generated/resources/index.d.ts +2 -2
- package/package.json +3 -3
- package/resources.json +75 -75
- package/src/generated/ApiTypes.ts +132 -133
- package/src/generated/Client.ts +5 -5
- package/src/generated/RawApiTypes.ts +137 -137
- package/src/generated/resources/Role.ts +8 -8
- package/src/generated/resources/SearchIndex.ts +255 -0
- package/src/generated/resources/{SiteSearchSourceEvent.ts → SearchIndexEvent.ts} +32 -34
- package/src/generated/resources/index.ts +2 -2
- package/dist/cjs/generated/resources/SiteSearchSource.js.map +0 -1
- package/dist/cjs/generated/resources/SiteSearchSourceEvent.js.map +0 -1
- package/dist/esm/generated/resources/SiteSearchSource.js.map +0 -1
- package/dist/esm/generated/resources/SiteSearchSourceEvent.d.ts +0 -61
- package/dist/esm/generated/resources/SiteSearchSourceEvent.js.map +0 -1
- package/dist/types/generated/resources/SiteSearchSourceEvent.d.ts +0 -61
- package/src/generated/resources/SiteSearchSource.ts +0 -267
|
@@ -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,sBAAsB;gBACtB,0BAA0B;gBAC1B,qBAAqB;gBACrB,kBAAkB;gBAClB,2BAA2B;gBAC3B,
|
|
1
|
+
{"version":3,"file":"Role.js","source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Y,CAAC,MAAc;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwC;YAChE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,UAAU,MAAM,YAAY;SAClC,CAAC,CAAC;IACL,CAAC;;AAjQe,SAAI,GAAG,MAAe,CAAC"}
|
|
@@ -1,132 +1,132 @@
|
|
|
1
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
|
|
5
|
-
static readonly TYPE: "
|
|
4
|
+
export default class SearchIndex extends BaseResource {
|
|
5
|
+
static readonly TYPE: "search_index";
|
|
6
6
|
/**
|
|
7
|
-
* List all
|
|
7
|
+
* List all search indexes for a site
|
|
8
8
|
*
|
|
9
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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.
|
|
14
|
+
list(): Promise<ApiTypes.SearchIndexInstancesTargetSchema>;
|
|
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}
|
|
22
22
|
*/
|
|
23
|
-
rawList(): Promise<RawApiTypes.
|
|
23
|
+
rawList(): Promise<RawApiTypes.SearchIndexInstancesTargetSchema>;
|
|
24
24
|
/**
|
|
25
|
-
* Retrieve a
|
|
25
|
+
* Retrieve a search index
|
|
26
26
|
*
|
|
27
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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(
|
|
32
|
+
find(searchIndexId: string | ApiTypes.SearchIndexData): Promise<ApiTypes.SearchIndex>;
|
|
33
33
|
/**
|
|
34
|
-
* Retrieve a
|
|
34
|
+
* Retrieve a search index
|
|
35
35
|
*
|
|
36
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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(
|
|
41
|
+
rawFind(searchIndexId: string): Promise<RawApiTypes.SearchIndexSelfTargetSchema>;
|
|
42
42
|
/**
|
|
43
|
-
* Create
|
|
43
|
+
* Create search index
|
|
44
44
|
*
|
|
45
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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.
|
|
50
|
+
create(body: ApiTypes.SearchIndexCreateSchema): Promise<ApiTypes.SearchIndex>;
|
|
51
51
|
/**
|
|
52
|
-
* Create
|
|
52
|
+
* Create search index
|
|
53
53
|
*
|
|
54
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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.
|
|
59
|
+
rawCreate(body: RawApiTypes.SearchIndexCreateSchema): Promise<RawApiTypes.SearchIndexCreateTargetSchema>;
|
|
60
60
|
/**
|
|
61
|
-
* Update
|
|
61
|
+
* Update search index
|
|
62
62
|
*
|
|
63
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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(
|
|
68
|
+
update(searchIndexId: string | ApiTypes.SearchIndexData, body: ApiTypes.SearchIndexUpdateSchema): Promise<ApiTypes.SearchIndex>;
|
|
69
69
|
/**
|
|
70
|
-
* Update
|
|
70
|
+
* Update search index
|
|
71
71
|
*
|
|
72
|
-
* 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/update
|
|
73
73
|
*
|
|
74
74
|
* @throws {ApiError}
|
|
75
75
|
* @throws {TimeoutError}
|
|
76
76
|
*/
|
|
77
|
-
rawUpdate(
|
|
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/
|
|
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(
|
|
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/
|
|
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(
|
|
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/
|
|
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(
|
|
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/
|
|
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(
|
|
113
|
+
rawAbort(searchIndexId: string): Promise<void>;
|
|
114
114
|
/**
|
|
115
|
-
* Delete a
|
|
115
|
+
* Delete a search index
|
|
116
116
|
*
|
|
117
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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(
|
|
122
|
+
destroy(searchIndexId: string | ApiTypes.SearchIndexData): Promise<ApiTypes.SearchIndex>;
|
|
123
123
|
/**
|
|
124
|
-
* Delete a
|
|
124
|
+
* Delete a search index
|
|
125
125
|
*
|
|
126
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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(
|
|
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
|
|
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,45 +23,45 @@ 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 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: '
|
|
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
|
|
76
|
+
* Create search index
|
|
77
77
|
*
|
|
78
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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: '/
|
|
86
|
+
url: '/search-indexes',
|
|
87
87
|
body,
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* Update
|
|
91
|
+
* Update search index
|
|
92
92
|
*
|
|
93
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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(
|
|
99
|
-
return this.rawUpdate(Utils.toId(
|
|
100
|
-
id: Utils.toId(
|
|
101
|
-
type: '
|
|
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
|
|
113
|
+
* Update search index
|
|
114
114
|
*
|
|
115
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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(
|
|
120
|
+
rawUpdate(searchIndexId, body) {
|
|
121
121
|
return this.client.request({
|
|
122
122
|
method: 'PUT',
|
|
123
|
-
url: `/
|
|
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/
|
|
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(
|
|
136
|
-
return this.rawTrigger(Utils.toId(
|
|
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/
|
|
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(
|
|
146
|
+
rawTrigger(searchIndexId) {
|
|
147
147
|
return this.client.request({
|
|
148
148
|
method: 'POST',
|
|
149
|
-
url: `/
|
|
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/
|
|
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(
|
|
161
|
-
return this.rawAbort(Utils.toId(
|
|
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/
|
|
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(
|
|
171
|
+
rawAbort(searchIndexId) {
|
|
172
172
|
return this.client.request({
|
|
173
173
|
method: 'DELETE',
|
|
174
|
-
url: `/
|
|
174
|
+
url: `/search-indexes/${searchIndexId}/abort`,
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
|
-
* Delete a
|
|
178
|
+
* Delete a search index
|
|
179
179
|
*
|
|
180
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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(
|
|
186
|
-
return this.rawDestroy(Utils.toId(
|
|
185
|
+
destroy(searchIndexId) {
|
|
186
|
+
return this.rawDestroy(Utils.toId(searchIndexId)).then((body) => Utils.deserializeResponseBody(body));
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
|
-
* Delete a
|
|
189
|
+
* Delete a search index
|
|
190
190
|
*
|
|
191
|
-
* Read more: https://www.datocms.com/docs/content-management-api/resources/
|
|
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(
|
|
196
|
+
rawDestroy(searchIndexId) {
|
|
197
197
|
return this.client.request({
|
|
198
198
|
method: 'DELETE',
|
|
199
|
-
url: `/
|
|
199
|
+
url: `/search-indexes/${searchIndexId}`,
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
//# sourceMappingURL=
|
|
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,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;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
|
|
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","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
|
|
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';
|