@vegan-friendly/strapi-plugin-elasticsearch 0.1.0-alpha.3 → 0.2.0

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 (109) hide show
  1. package/dist/admin/index.js +4 -4
  2. package/dist/admin/pluginId.js +1 -1
  3. package/dist/admin/src/components/Initializer/index.js +2 -1
  4. package/dist/admin/src/components/SubNavigation/index.js +10 -8
  5. package/dist/admin/src/pages/ConfigureCollectionList/index.js +40 -28
  6. package/dist/admin/src/pages/Homepage/index.js +20 -21
  7. package/dist/admin/src/pluginId.d.ts +1 -1
  8. package/dist/admin/src/utils/apiUrls.js +1 -0
  9. package/dist/admin/src/utils/axiosInstance.js +3 -4
  10. package/dist/package.json +64 -0
  11. package/dist/server/bootstrap.d.ts +4 -0
  12. package/dist/server/bootstrap.js +31 -5
  13. package/dist/server/config/index.d.ts +5 -0
  14. package/dist/server/config/index.js +2 -1
  15. package/dist/server/content-types/index.d.ts +83 -2
  16. package/dist/server/content-types/index.js +9 -5
  17. package/dist/server/content-types/indexing-logs.d.ts +32 -0
  18. package/dist/server/content-types/indexing-logs.js +22 -24
  19. package/dist/server/content-types/tasks.d.ts +46 -0
  20. package/dist/server/content-types/tasks.js +33 -38
  21. package/dist/server/controllers/configure-indexing.d.ts +11 -0
  22. package/dist/server/controllers/configure-indexing.js +3 -2
  23. package/dist/server/controllers/index.d.ts +33 -5
  24. package/dist/server/controllers/index.js +15 -11
  25. package/dist/server/controllers/log-indexing.d.ts +6 -0
  26. package/dist/server/controllers/log-indexing.js +3 -2
  27. package/dist/server/controllers/perform-indexing.d.ts +8 -0
  28. package/dist/server/controllers/perform-indexing.js +3 -2
  29. package/dist/server/controllers/perform-search.d.ts +4 -1
  30. package/dist/server/controllers/perform-search.js +11 -8
  31. package/dist/server/controllers/setup-info.d.ts +6 -0
  32. package/dist/server/controllers/setup-info.js +2 -1
  33. package/dist/server/destroy.d.ts +4 -0
  34. package/dist/server/destroy.js +2 -1
  35. package/dist/server/index.d.ts +296 -10
  36. package/dist/server/index.js +40 -21
  37. package/dist/server/middlewares/index.d.ts +2 -0
  38. package/dist/server/middlewares/index.js +2 -1
  39. package/dist/server/policies/index.d.ts +2 -0
  40. package/dist/server/policies/index.js +2 -1
  41. package/dist/server/register.d.ts +4 -0
  42. package/dist/server/register.js +2 -1
  43. package/dist/server/routes/configure-indexing.d.ts +12 -0
  44. package/dist/server/routes/configure-indexing.js +2 -1
  45. package/dist/server/routes/index.d.ts +58 -5
  46. package/dist/server/routes/index.js +15 -11
  47. package/dist/server/routes/perform-indexing.d.ts +12 -0
  48. package/dist/server/routes/perform-indexing.js +2 -1
  49. package/dist/server/routes/perform-search.d.ts +12 -0
  50. package/dist/server/routes/perform-search.js +4 -3
  51. package/dist/server/routes/run-log.d.ts +12 -0
  52. package/dist/server/routes/run-log.js +3 -2
  53. package/dist/server/routes/setup-info.d.ts +12 -0
  54. package/dist/server/routes/setup-info.js +3 -2
  55. package/dist/server/services/configure-indexing.d.ts +23 -23
  56. package/dist/server/services/configure-indexing.js +32 -20
  57. package/dist/server/services/es-interface.d.ts +5 -4
  58. package/dist/server/services/es-interface.js +19 -20
  59. package/dist/server/services/helper.d.ts +34 -33
  60. package/dist/server/services/helper.js +65 -61
  61. package/dist/server/services/index.d.ts +107 -7
  62. package/dist/server/services/index.js +23 -15
  63. package/dist/server/services/log-indexing.d.ts +8 -0
  64. package/dist/server/services/log-indexing.js +8 -7
  65. package/dist/server/services/perform-indexing.d.ts +8 -0
  66. package/dist/server/services/perform-indexing.js +35 -17
  67. package/dist/server/services/schedule-indexing.d.ts +19 -0
  68. package/dist/server/services/schedule-indexing.js +13 -12
  69. package/dist/server/services/transform-content.d.ts +7 -2
  70. package/dist/server/services/transform-content.js +4 -3
  71. package/dist/server/services/virtual-collections-indexer.d.ts +8 -0
  72. package/dist/server/services/virtual-collections-indexer.js +142 -0
  73. package/dist/server/services/virtual-collections-registry.d.ts +8 -0
  74. package/dist/server/services/virtual-collections-registry.js +32 -0
  75. package/dist/server/types/esInterface.type.d.ts +70 -0
  76. package/dist/server/types/esInterface.type.js +2 -0
  77. package/dist/server/types/index.d.ts +2 -0
  78. package/dist/server/types/index.js +18 -0
  79. package/dist/server/types/virtual-collections.d.ts +30 -0
  80. package/dist/server/types/virtual-collections.js +2 -0
  81. package/dist/server/types/virtual-collections.type.d.ts +57 -0
  82. package/dist/server/types/virtual-collections.type.js +2 -0
  83. package/package.json +6 -3
  84. package/dist/admin/components/Initializer/index.d.ts +0 -15
  85. package/dist/admin/components/Initializer/index.js +0 -25
  86. package/dist/admin/components/PluginIcon/index.d.ts +0 -8
  87. package/dist/admin/components/PluginIcon/index.js +0 -14
  88. package/dist/admin/components/SubNavigation/index.d.ts +0 -4
  89. package/dist/admin/components/SubNavigation/index.js +0 -40
  90. package/dist/admin/pages/App/index.d.ts +0 -9
  91. package/dist/admin/pages/App/index.js +0 -29
  92. package/dist/admin/pages/ConfigureCollection/index.d.ts +0 -3
  93. package/dist/admin/pages/ConfigureCollection/index.js +0 -193
  94. package/dist/admin/pages/ConfigureCollectionList/index.d.ts +0 -3
  95. package/dist/admin/pages/ConfigureCollectionList/index.js +0 -228
  96. package/dist/admin/pages/Homepage/index.d.ts +0 -3
  97. package/dist/admin/pages/Homepage/index.js +0 -155
  98. package/dist/admin/pages/ViewIndexingRunLog/index.d.ts +0 -3
  99. package/dist/admin/pages/ViewIndexingRunLog/index.js +0 -125
  100. package/dist/admin/utils/apiUrls.d.ts +0 -10
  101. package/dist/admin/utils/apiUrls.js +0 -20
  102. package/dist/admin/utils/axiosInstance.d.ts +0 -5
  103. package/dist/admin/utils/axiosInstance.js +0 -33
  104. package/dist/admin/utils/getTrad.d.ts +0 -2
  105. package/dist/admin/utils/getTrad.js +0 -8
  106. package/dist/strapi-admin.d.ts +0 -0
  107. package/dist/strapi-admin.js +0 -2
  108. package/dist/strapi-server.d.ts +0 -0
  109. package/dist/strapi-server.js +0 -2
@@ -1,10 +1,296 @@
1
- declare const register: any;
2
- declare const bootstrap: any;
3
- declare const destroy: any;
4
- declare const config: any;
5
- declare const contentTypes: any;
6
- declare const controllers: any;
7
- declare const routes: any;
8
- declare const middlewares: any;
9
- declare const policies: any;
10
- declare const services: any;
1
+ export * from './types';
2
+ declare const _default: {
3
+ register: ({ strapi }: {
4
+ strapi: any;
5
+ }) => void;
6
+ bootstrap: ({ strapi }: {
7
+ strapi: any;
8
+ }) => Promise<void>;
9
+ destroy: ({ strapi }: {
10
+ strapi: any;
11
+ }) => void;
12
+ config: {
13
+ default: {};
14
+ validator(): void;
15
+ };
16
+ controllers: {
17
+ configureIndexing: ({ strapi }: {
18
+ strapi: any;
19
+ }) => {
20
+ getContentConfig: (ctx: any) => Promise<any>;
21
+ setContentConfig: (ctx: any) => Promise<any>;
22
+ getCollectionConfig: (ctx: any) => Promise<any>;
23
+ saveCollectionConfig: (ctx: any) => Promise<any>;
24
+ exportContentConfig: (ctx: any) => Promise<any>;
25
+ importContentConfig: (ctx: any) => Promise<any>;
26
+ };
27
+ performSearch: {
28
+ search: (ctx: any) => Promise<void>;
29
+ };
30
+ logIndexing: ({ strapi }: {
31
+ strapi: any;
32
+ }) => {
33
+ fetchRecentRunsLog: (ctx: any) => Promise<any>;
34
+ };
35
+ setupInfo: ({ strapi }: {
36
+ strapi: any;
37
+ }) => {
38
+ getElasticsearchInfo: (ctx: any) => Promise<any>;
39
+ };
40
+ performIndexing: ({ strapi }: {
41
+ strapi: any;
42
+ }) => {
43
+ rebuildIndex: (ctx: any) => Promise<any>;
44
+ indexCollection: (ctx: any) => Promise<any>;
45
+ triggerIndexingTask: (ctx: any) => Promise<any>;
46
+ };
47
+ };
48
+ routes: {
49
+ config: {
50
+ type: string;
51
+ routes: {
52
+ method: string;
53
+ path: string;
54
+ handler: string;
55
+ config: {
56
+ policies: never[];
57
+ };
58
+ }[];
59
+ };
60
+ search: {
61
+ type: string;
62
+ routes: {
63
+ method: string;
64
+ path: string;
65
+ handler: string;
66
+ config: {
67
+ policies: never[];
68
+ };
69
+ }[];
70
+ };
71
+ runLog: {
72
+ type: string;
73
+ routes: {
74
+ method: string;
75
+ path: string;
76
+ handler: string;
77
+ config: {
78
+ policies: never[];
79
+ };
80
+ }[];
81
+ };
82
+ setupInfo: {
83
+ type: string;
84
+ routes: {
85
+ method: string;
86
+ path: string;
87
+ handler: string;
88
+ config: {
89
+ policies: never[];
90
+ };
91
+ }[];
92
+ };
93
+ performIndexing: {
94
+ type: string;
95
+ routes: {
96
+ method: string;
97
+ path: string;
98
+ handler: string;
99
+ config: {
100
+ policies: never[];
101
+ };
102
+ }[];
103
+ };
104
+ };
105
+ services: {
106
+ configureIndexing: ({ strapi }: {
107
+ strapi: any;
108
+ }) => {
109
+ initializeStrapiElasticsearch(): Promise<void>;
110
+ markInitialized(): Promise<void>;
111
+ isInitialized(): any;
112
+ cacheConfig(): Promise<void>;
113
+ getCollectionConfig({ collectionName }: {
114
+ collectionName: any;
115
+ }): Promise<{} | null>;
116
+ getCollectionsConfiguredForIndexing(): Promise<string[]>;
117
+ isCollectionConfiguredToBeIndexed({ collectionName }: {
118
+ collectionName: any;
119
+ }): Promise<boolean>;
120
+ getContentConfig(): Promise<any>;
121
+ importContentConfig({ config }: {
122
+ config: any;
123
+ }): Promise<any>;
124
+ setContentConfig({ collection, config }: {
125
+ collection: any;
126
+ config: any;
127
+ }): Promise<any>;
128
+ };
129
+ scheduleIndexing: ({ strapi }: {
130
+ strapi: any;
131
+ }) => {
132
+ addFullSiteIndexingTask(): Promise<any>;
133
+ addCollectionToIndex({ collectionUid }: {
134
+ collectionUid: any;
135
+ }): Promise<any>;
136
+ addItemToIndex({ collectionUid, recordId }: {
137
+ collectionUid: any;
138
+ recordId: any;
139
+ }): Promise<any>;
140
+ removeItemFromIndex({ collectionUid, recordId }: {
141
+ collectionUid: any;
142
+ recordId: any;
143
+ }): Promise<void>;
144
+ getItemsPendingToBeIndexed(): Promise<any>;
145
+ markIndexingTaskComplete(recId: any): Promise<void>;
146
+ };
147
+ esInterface: ({ strapi }: {
148
+ strapi: any;
149
+ }) => import("./types").EsInterfaceService;
150
+ indexer: ({ strapi }: {
151
+ strapi: any;
152
+ }) => {
153
+ rebuildIndex(): Promise<boolean>;
154
+ indexCollection(collectionName: any, indexName?: null): Promise<boolean>;
155
+ indexPendingData(): Promise<boolean>;
156
+ };
157
+ logIndexing: ({ strapi }: {
158
+ strapi: any;
159
+ }) => {
160
+ recordIndexingPass(message: any): Promise<void>;
161
+ recordIndexingFail(message: any): Promise<void>;
162
+ fetchIndexingLogs(count?: number): Promise<any>;
163
+ };
164
+ helper: ({ strapi }: {
165
+ strapi: any;
166
+ }) => {
167
+ getElasticsearchInfo(): Promise<{
168
+ indexingCronSchedule: any;
169
+ elasticHost: any;
170
+ elasticUserName: any;
171
+ elasticCertificate: any;
172
+ elasticIndexAlias: any;
173
+ connected: any;
174
+ initialized: any;
175
+ }>;
176
+ isCollectionDraftPublish({ collectionName }: {
177
+ collectionName: any;
178
+ }): boolean;
179
+ getPopulateAttribute({ collectionName }: {
180
+ collectionName: any;
181
+ }): true | {
182
+ populate: never;
183
+ } | undefined;
184
+ getIndexItemId({ collectionName, itemId }: {
185
+ collectionName: any;
186
+ itemId: any;
187
+ }): string;
188
+ getCurrentIndexName(): Promise<string>;
189
+ getIncrementedIndexName(): Promise<string>;
190
+ storeCurrentIndexName(indexName: any): Promise<void>;
191
+ modifySubfieldsConfigForExtractor(collectionConfig: any): any;
192
+ extractDataToIndex({ collectionName, data, collectionConfig }: {
193
+ collectionName: any;
194
+ data: any;
195
+ collectionConfig: any;
196
+ }): {};
197
+ };
198
+ transformContent: {
199
+ transform({ content, from }: {
200
+ content: any;
201
+ from: any;
202
+ }): any;
203
+ };
204
+ virtualCollectionsRegistry: ({ strapi }: {
205
+ strapi: any;
206
+ }) => import("./types").VirtualCollectionsRegistryService;
207
+ virtualCollectionsIndexer: ({ strapi }: {
208
+ strapi: any;
209
+ }) => import("./types").VirtualCollectionsIndexerService;
210
+ };
211
+ contentTypes: {
212
+ task: {
213
+ schema: {
214
+ kind: string;
215
+ collectionName: string;
216
+ info: {
217
+ singularName: string;
218
+ pluralName: string;
219
+ displayName: string;
220
+ description: string;
221
+ };
222
+ options: {
223
+ draftAndPublish: boolean;
224
+ };
225
+ pluginOptions: {
226
+ 'content-manager': {
227
+ visible: boolean;
228
+ };
229
+ 'content-type-builder': {
230
+ visible: boolean;
231
+ };
232
+ };
233
+ attributes: {
234
+ collection_name: {
235
+ type: string;
236
+ required: boolean;
237
+ };
238
+ item_id: {
239
+ type: string;
240
+ };
241
+ indexing_status: {
242
+ type: string;
243
+ enum: string[];
244
+ required: boolean;
245
+ default: string;
246
+ };
247
+ full_site_indexing: {
248
+ type: string;
249
+ };
250
+ indexing_type: {
251
+ type: string;
252
+ enum: string[];
253
+ default: string;
254
+ required: boolean;
255
+ };
256
+ };
257
+ };
258
+ };
259
+ 'indexing-log': {
260
+ schema: {
261
+ kind: string;
262
+ collectionName: string;
263
+ info: {
264
+ singularName: string;
265
+ pluralName: string;
266
+ displayName: string;
267
+ description: string;
268
+ };
269
+ options: {
270
+ draftAndPublish: boolean;
271
+ };
272
+ pluginOptions: {
273
+ 'content-manager': {
274
+ visible: boolean;
275
+ };
276
+ 'content-type-builder': {
277
+ visible: boolean;
278
+ };
279
+ };
280
+ attributes: {
281
+ status: {
282
+ type: string;
283
+ enum: string[];
284
+ required: boolean;
285
+ };
286
+ details: {
287
+ type: string;
288
+ };
289
+ };
290
+ };
291
+ };
292
+ };
293
+ policies: {};
294
+ middlewares: {};
295
+ };
296
+ export default _default;
@@ -1,23 +1,42 @@
1
1
  'use strict';
2
- const register = require('./register');
3
- const bootstrap = require('./bootstrap');
4
- const destroy = require('./destroy');
5
- const config = require('./config');
6
- const contentTypes = require('./content-types');
7
- const controllers = require('./controllers');
8
- const routes = require('./routes');
9
- const middlewares = require('./middlewares');
10
- const policies = require('./policies');
11
- const services = require('./services');
12
- module.exports = {
13
- register,
14
- bootstrap,
15
- destroy,
16
- config,
17
- controllers,
18
- routes,
19
- services,
20
- contentTypes,
21
- policies,
22
- middlewares,
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ const register_1 = __importDefault(require("./register"));
21
+ const bootstrap_1 = __importDefault(require("./bootstrap"));
22
+ const destroy_1 = __importDefault(require("./destroy"));
23
+ const config_1 = __importDefault(require("./config"));
24
+ const content_types_1 = __importDefault(require("./content-types"));
25
+ const controllers_1 = __importDefault(require("./controllers"));
26
+ const routes_1 = __importDefault(require("./routes"));
27
+ const middlewares_1 = __importDefault(require("./middlewares"));
28
+ const policies_1 = __importDefault(require("./policies"));
29
+ const services_1 = __importDefault(require("./services"));
30
+ __exportStar(require("./types"), exports);
31
+ exports.default = {
32
+ register: register_1.default,
33
+ bootstrap: bootstrap_1.default,
34
+ destroy: destroy_1.default,
35
+ config: config_1.default,
36
+ controllers: controllers_1.default,
37
+ routes: routes_1.default,
38
+ services: services_1.default,
39
+ contentTypes: content_types_1.default,
40
+ policies: policies_1.default,
41
+ middlewares: middlewares_1.default,
23
42
  };
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  'use strict';
2
- module.exports = {};
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {};
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -1,2 +1,3 @@
1
1
  'use strict';
2
- module.exports = {};
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {};
@@ -0,0 +1,4 @@
1
+ declare const _default: ({ strapi }: {
2
+ strapi: any;
3
+ }) => void;
4
+ export default _default;
@@ -1,4 +1,5 @@
1
1
  'use strict';
2
- module.exports = ({ strapi }) => {
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = ({ strapi }) => {
3
4
  // register phase
4
5
  };
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ type: string;
3
+ routes: {
4
+ method: string;
5
+ path: string;
6
+ handler: string;
7
+ config: {
8
+ policies: never[];
9
+ };
10
+ }[];
11
+ };
12
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
- module.exports = {
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
3
4
  // accessible only from admin UI
4
5
  type: 'admin',
5
6
  routes: [
@@ -1,5 +1,58 @@
1
- declare const configureIndexingRoutes: any;
2
- declare const performSearch: any;
3
- declare const runLog: any;
4
- declare const setupInfo: any;
5
- declare const performIndexing: any;
1
+ declare const _default: {
2
+ config: {
3
+ type: string;
4
+ routes: {
5
+ method: string;
6
+ path: string;
7
+ handler: string;
8
+ config: {
9
+ policies: never[];
10
+ };
11
+ }[];
12
+ };
13
+ search: {
14
+ type: string;
15
+ routes: {
16
+ method: string;
17
+ path: string;
18
+ handler: string;
19
+ config: {
20
+ policies: never[];
21
+ };
22
+ }[];
23
+ };
24
+ runLog: {
25
+ type: string;
26
+ routes: {
27
+ method: string;
28
+ path: string;
29
+ handler: string;
30
+ config: {
31
+ policies: never[];
32
+ };
33
+ }[];
34
+ };
35
+ setupInfo: {
36
+ type: string;
37
+ routes: {
38
+ method: string;
39
+ path: string;
40
+ handler: string;
41
+ config: {
42
+ policies: never[];
43
+ };
44
+ }[];
45
+ };
46
+ performIndexing: {
47
+ type: string;
48
+ routes: {
49
+ method: string;
50
+ path: string;
51
+ handler: string;
52
+ config: {
53
+ policies: never[];
54
+ };
55
+ }[];
56
+ };
57
+ };
58
+ export default _default;
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
- const configureIndexingRoutes = require('./configure-indexing');
3
- const performSearch = require('./perform-search');
4
- const runLog = require('./run-log');
5
- const setupInfo = require('./setup-info');
6
- const performIndexing = require('./perform-indexing');
7
- module.exports = {
8
- config: configureIndexingRoutes,
9
- search: performSearch,
10
- runLog: runLog,
11
- setupInfo: setupInfo,
12
- performIndexing: performIndexing
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const configure_indexing_1 = __importDefault(require("./configure-indexing"));
7
+ const perform_search_1 = __importDefault(require("./perform-search"));
8
+ const run_log_1 = __importDefault(require("./run-log"));
9
+ const setup_info_1 = __importDefault(require("./setup-info"));
10
+ const perform_indexing_1 = __importDefault(require("./perform-indexing"));
11
+ exports.default = {
12
+ config: configure_indexing_1.default,
13
+ search: perform_search_1.default,
14
+ runLog: run_log_1.default,
15
+ setupInfo: setup_info_1.default,
16
+ performIndexing: perform_indexing_1.default,
13
17
  };
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ type: string;
3
+ routes: {
4
+ method: string;
5
+ path: string;
6
+ handler: string;
7
+ config: {
8
+ policies: never[];
9
+ };
10
+ }[];
11
+ };
12
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
- module.exports = {
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
3
4
  // accessible only from admin UI
4
5
  type: 'admin',
5
6
  routes: [
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ type: string;
3
+ routes: {
4
+ method: string;
5
+ path: string;
6
+ handler: string;
7
+ config: {
8
+ policies: never[];
9
+ };
10
+ }[];
11
+ };
12
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
- module.exports = {
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
3
4
  // accessible only from admin UI
4
5
  type: 'content-api',
5
6
  routes: [
@@ -8,8 +9,8 @@ module.exports = {
8
9
  path: '/search',
9
10
  handler: 'performSearch.search',
10
11
  config: {
11
- policies: []
12
+ policies: [],
12
13
  },
13
- }
14
+ },
14
15
  ],
15
16
  };
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ type: string;
3
+ routes: {
4
+ method: string;
5
+ path: string;
6
+ handler: string;
7
+ config: {
8
+ policies: never[];
9
+ };
10
+ }[];
11
+ };
12
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
- module.exports = {
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
3
4
  // accessible only from admin UI
4
5
  type: 'admin',
5
6
  routes: [
@@ -8,6 +9,6 @@ module.exports = {
8
9
  path: '/indexing-run-log',
9
10
  handler: 'logIndexing.fetchRecentRunsLog',
10
11
  config: { policies: [] },
11
- }
12
+ },
12
13
  ],
13
14
  };
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ type: string;
3
+ routes: {
4
+ method: string;
5
+ path: string;
6
+ handler: string;
7
+ config: {
8
+ policies: never[];
9
+ };
10
+ }[];
11
+ };
12
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
- module.exports = {
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
3
4
  // accessible only from admin UI
4
5
  type: 'admin',
5
6
  routes: [
@@ -8,6 +9,6 @@ module.exports = {
8
9
  path: '/setup-info',
9
10
  handler: 'setupInfo.getElasticsearchInfo',
10
11
  config: { policies: [] },
11
- }
12
+ },
12
13
  ],
13
14
  };