@mattisvensson/strapi-plugin-webatlas 0.11.7 → 0.11.9

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.
@@ -0,0 +1,308 @@
1
+ declare const _default: {
2
+ register: ({ strapi }: {
3
+ strapi: import('@strapi/types/dist/core').Strapi;
4
+ }) => void;
5
+ bootstrap: ({ strapi }: {
6
+ strapi: import('@strapi/types/dist/core').Strapi;
7
+ }) => Promise<void>;
8
+ destroy: ({ strapi }: {
9
+ strapi: import('@strapi/types/dist/core').Strapi;
10
+ }) => void;
11
+ config: {
12
+ default: {
13
+ selectedContentTypes: any[];
14
+ navigation: {
15
+ maxDepth: number;
16
+ };
17
+ };
18
+ validator(): void;
19
+ };
20
+ controllers: {
21
+ admin: () => {
22
+ updateConfig(ctx: any): Promise<any>;
23
+ getConfig(ctx: any): Promise<any>;
24
+ getRoute(ctx: any): Promise<any>;
25
+ getAllRoutes(ctx: any): Promise<any>;
26
+ getRelatedRoute(ctx: any): Promise<any>;
27
+ getProhibitedRouteIds(ctx: any): Promise<any>;
28
+ getNavigation(ctx: any): Promise<any>;
29
+ createNavigation(ctx: any): Promise<any>;
30
+ updateNavigation(ctx: any): Promise<any>;
31
+ updateNavigationItemStructure(ctx: any): Promise<any>;
32
+ deleteNavigation(ctx: any): Promise<any>;
33
+ checkUniquePath(ctx: any): Promise<any>;
34
+ };
35
+ client: ({ strapi }: {
36
+ strapi: import('@strapi/types/dist/core').Strapi;
37
+ }) => {
38
+ getEntityByPath(ctx: any): Promise<any>;
39
+ getNavigation(ctx: any): Promise<any>;
40
+ };
41
+ };
42
+ routes: {
43
+ admin: {
44
+ type: string;
45
+ routes: {
46
+ method: string;
47
+ path: string;
48
+ handler: string;
49
+ config: {
50
+ policies: (string | {
51
+ name: string;
52
+ config: {
53
+ actions: string[];
54
+ };
55
+ })[];
56
+ };
57
+ }[];
58
+ };
59
+ 'content-api': {
60
+ type: string;
61
+ routes: {
62
+ method: string;
63
+ path: string;
64
+ handler: string;
65
+ config: {
66
+ policies: any[];
67
+ };
68
+ }[];
69
+ };
70
+ };
71
+ services: {
72
+ admin: ({ strapi }: {
73
+ strapi: any;
74
+ }) => {
75
+ updateConfig(newConfig: Partial<import('../../types').PluginConfig>): Promise<import('../../types').PluginConfig | "Error. Couldn't update config">;
76
+ getConfig(): Promise<any>;
77
+ getRoute(documentId: string): Promise<any>;
78
+ getAllRoutes(): Promise<any>;
79
+ getRelatedRoute(documentId: string): Promise<any>;
80
+ getProhibitedRouteIds(documentId: string): Promise<string[]>;
81
+ getNavigation(documentId?: string, variant?: import('../../types').StructuredNavigationVariant | "namesOnly"): Promise<any>;
82
+ createNavigation(name: string, visible: boolean): Promise<any>;
83
+ updateNavigation(documentId: string, data: import('../../types').NavigationInput): Promise<any>;
84
+ deleteNavigation(documentId: string): Promise<any>;
85
+ updateNavigationItemStructure(navigationId: string, navigationItems: import('../../types').NestedNavItem[]): Promise<boolean>;
86
+ checkUniquePath(initialPath: string, targetRouteDocumentId?: string): Promise<string>;
87
+ };
88
+ client: ({ strapi }: {
89
+ strapi: any;
90
+ }) => {
91
+ getEntityByPath(slug: string, populate: string, populateDeepDepth: string, fields: any, status?: "published" | "draft"): Promise<any>;
92
+ getNavigation(id: string, name: string, slug: string, documentId: string, variant?: import('../../types').StructuredNavigationVariant): Promise<any>;
93
+ };
94
+ };
95
+ contentTypes: {
96
+ route: {
97
+ schema: {
98
+ collectionName: string;
99
+ info: {
100
+ singularName: string;
101
+ pluralName: string;
102
+ displayName: string;
103
+ name: string;
104
+ };
105
+ options: {
106
+ increments: boolean;
107
+ timestamps: boolean;
108
+ comment: string;
109
+ };
110
+ pluginOptions: {
111
+ 'content-manager': {
112
+ visible: boolean;
113
+ };
114
+ 'content-type-builder': {
115
+ visible: boolean;
116
+ };
117
+ };
118
+ attributes: {
119
+ relatedContentType: {
120
+ type: string;
121
+ required: boolean;
122
+ configurable: boolean;
123
+ };
124
+ relatedId: {
125
+ type: string;
126
+ required: boolean;
127
+ configurable: boolean;
128
+ };
129
+ relatedDocumentId: {
130
+ type: string;
131
+ required: boolean;
132
+ configurable: boolean;
133
+ };
134
+ title: {
135
+ type: string;
136
+ required: boolean;
137
+ configurable: boolean;
138
+ };
139
+ path: {
140
+ type: string;
141
+ configurable: boolean;
142
+ };
143
+ canonicalPath: {
144
+ type: string;
145
+ configurable: boolean;
146
+ };
147
+ slug: {
148
+ type: string;
149
+ configurable: boolean;
150
+ };
151
+ uidPath: {
152
+ type: string;
153
+ configurable: boolean;
154
+ };
155
+ isOverride: {
156
+ type: string;
157
+ default: boolean;
158
+ configurable: boolean;
159
+ };
160
+ active: {
161
+ type: string;
162
+ default: boolean;
163
+ configurable: boolean;
164
+ };
165
+ navitem: {
166
+ type: string;
167
+ configurable: boolean;
168
+ relation: string;
169
+ target: string;
170
+ mappedBy: string;
171
+ };
172
+ type: {
173
+ type: string;
174
+ enum: string[];
175
+ default: string;
176
+ configurable: boolean;
177
+ required: boolean;
178
+ };
179
+ parent: {
180
+ type: string;
181
+ relation: string;
182
+ target: string;
183
+ inversedBy: string;
184
+ configurable: boolean;
185
+ };
186
+ children: {
187
+ type: string;
188
+ relation: string;
189
+ target: string;
190
+ mappedBy: string;
191
+ configurable: boolean;
192
+ };
193
+ };
194
+ };
195
+ };
196
+ navigation: {
197
+ schema: {
198
+ collectionName: string;
199
+ info: {
200
+ singularName: string;
201
+ pluralName: string;
202
+ displayName: string;
203
+ name: string;
204
+ };
205
+ options: {
206
+ increments: boolean;
207
+ timestamps: boolean;
208
+ comment: string;
209
+ };
210
+ pluginOptions: {
211
+ 'content-manager': {
212
+ visible: boolean;
213
+ };
214
+ 'content-type-builder': {
215
+ visible: boolean;
216
+ };
217
+ };
218
+ attributes: {
219
+ name: {
220
+ type: string;
221
+ configurable: boolean;
222
+ required: boolean;
223
+ };
224
+ slug: {
225
+ type: string;
226
+ target: string;
227
+ configurable: boolean;
228
+ required: boolean;
229
+ };
230
+ visible: {
231
+ type: string;
232
+ default: boolean;
233
+ configurable: boolean;
234
+ };
235
+ items: {
236
+ type: string;
237
+ configurable: boolean;
238
+ relation: string;
239
+ target: string;
240
+ mappedBy: string;
241
+ };
242
+ };
243
+ };
244
+ };
245
+ navitem: {
246
+ schema: {
247
+ collectionName: string;
248
+ info: {
249
+ singularName: string;
250
+ pluralName: string;
251
+ displayName: string;
252
+ name: string;
253
+ };
254
+ options: {
255
+ increments: boolean;
256
+ timestamps: boolean;
257
+ comment: string;
258
+ };
259
+ pluginOptions: {
260
+ 'content-manager': {
261
+ visible: boolean;
262
+ };
263
+ 'content-type-builder': {
264
+ visible: boolean;
265
+ };
266
+ };
267
+ attributes: {
268
+ navigation: {
269
+ type: string;
270
+ configurable: boolean;
271
+ relation: string;
272
+ target: string;
273
+ inversedBy: string;
274
+ };
275
+ route: {
276
+ type: string;
277
+ configurable: boolean;
278
+ relation: string;
279
+ target: string;
280
+ inversedBy: string;
281
+ };
282
+ parent: {
283
+ type: string;
284
+ configurable: boolean;
285
+ relation: string;
286
+ target: string;
287
+ };
288
+ order: {
289
+ type: string;
290
+ default: number;
291
+ };
292
+ };
293
+ };
294
+ };
295
+ };
296
+ policies: {
297
+ 'has-permissions': (policyContext: any, config: any, { strapi }: any) => boolean;
298
+ };
299
+ middlewares: {
300
+ addWebatlasField: ({ strapi }: {
301
+ strapi: import('@strapi/types/dist/core').Strapi;
302
+ }) => (ctx: any, next: any) => Promise<void>;
303
+ enrichRoutePicker: ({ strapi }: {
304
+ strapi: import('@strapi/types/dist/core').Strapi;
305
+ }) => (ctx: any, next: any) => Promise<void>;
306
+ };
307
+ };
308
+ export default _default;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@mattisvensson/strapi-plugin-webatlas",
3
3
  "description": "A strapi plugin to manage URL routes and navigations.",
4
4
  "license": "MIT",
5
- "version": "0.11.7",
5
+ "version": "0.11.9",
6
6
  "keywords": [
7
7
  "strapi",
8
8
  "plugin",