@backstage/plugin-catalog-backend-module-bitbucket-server 0.5.12 → 0.5.13-next.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @backstage/plugin-catalog-backend-module-bitbucket-server
2
2
 
3
+ ## 0.5.13-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-plugin-api@1.9.3-next.0
9
+ - @backstage/plugin-catalog-node@2.2.3-next.0
10
+ - @backstage/plugin-events-node@0.4.24-next.0
11
+
3
12
  ## 0.5.12
4
13
 
5
14
  ### Patch Changes
@@ -0,0 +1,406 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "catalog": {
6
+ "type": "object",
7
+ "properties": {
8
+ "providers": {
9
+ "type": "object",
10
+ "properties": {
11
+ "bitbucketServer": {
12
+ "anyOf": [
13
+ {
14
+ "type": "object",
15
+ "properties": {
16
+ "catalogPath": {
17
+ "type": "string",
18
+ "description": "(Optional) Path to the catalog file. Default to \"/catalog-info.yaml\".",
19
+ "visibility": "frontend"
20
+ },
21
+ "filters": {
22
+ "type": "object",
23
+ "properties": {
24
+ "repoSlug": {
25
+ "type": "string",
26
+ "description": "(Optional) Regular expression filter for the repository slug.",
27
+ "visibility": "frontend"
28
+ },
29
+ "projectKey": {
30
+ "type": "string",
31
+ "description": "(Optional) Regular expression filter for the project key.",
32
+ "visibility": "frontend"
33
+ },
34
+ "skipArchivedRepos": {
35
+ "type": "boolean",
36
+ "description": "(Optional) Skip archived repositories"
37
+ }
38
+ },
39
+ "description": "(Optional) Filters applied to discovered catalog files in repositories.",
40
+ "visibility": "frontend"
41
+ },
42
+ "validateLocationsExist": {
43
+ "type": "boolean",
44
+ "description": "(Optional) Whether to validate locations that exist before emitting them. Default: `false`."
45
+ },
46
+ "schedule": {
47
+ "type": "object",
48
+ "properties": {
49
+ "frequency": {
50
+ "anyOf": [
51
+ {
52
+ "type": "object",
53
+ "properties": {
54
+ "cron": {
55
+ "type": "string",
56
+ "description": "A crontab style string."
57
+ }
58
+ },
59
+ "required": [
60
+ "cron"
61
+ ]
62
+ },
63
+ {
64
+ "type": "string"
65
+ },
66
+ {
67
+ "type": "object",
68
+ "properties": {
69
+ "years": {
70
+ "type": "number"
71
+ },
72
+ "months": {
73
+ "type": "number"
74
+ },
75
+ "weeks": {
76
+ "type": "number"
77
+ },
78
+ "days": {
79
+ "type": "number"
80
+ },
81
+ "hours": {
82
+ "type": "number"
83
+ },
84
+ "minutes": {
85
+ "type": "number"
86
+ },
87
+ "seconds": {
88
+ "type": "number"
89
+ },
90
+ "milliseconds": {
91
+ "type": "number"
92
+ }
93
+ },
94
+ "description": "Human friendly durations object."
95
+ },
96
+ {
97
+ "type": "object",
98
+ "properties": {
99
+ "trigger": {
100
+ "type": "string",
101
+ "const": "manual"
102
+ }
103
+ },
104
+ "required": [
105
+ "trigger"
106
+ ]
107
+ }
108
+ ],
109
+ "description": "How often you want the task to run. The system does its best to avoid overlapping invocations."
110
+ },
111
+ "timeout": {
112
+ "anyOf": [
113
+ {
114
+ "type": "string"
115
+ },
116
+ {
117
+ "type": "object",
118
+ "properties": {
119
+ "years": {
120
+ "type": "number"
121
+ },
122
+ "months": {
123
+ "type": "number"
124
+ },
125
+ "weeks": {
126
+ "type": "number"
127
+ },
128
+ "days": {
129
+ "type": "number"
130
+ },
131
+ "hours": {
132
+ "type": "number"
133
+ },
134
+ "minutes": {
135
+ "type": "number"
136
+ },
137
+ "seconds": {
138
+ "type": "number"
139
+ },
140
+ "milliseconds": {
141
+ "type": "number"
142
+ }
143
+ },
144
+ "description": "Human friendly durations object."
145
+ }
146
+ ],
147
+ "description": "The maximum amount of time that a single task invocation can take, before it's considered timed out and gets \"released\" such that a new invocation is permitted to take place (possibly, then, on a different worker)."
148
+ },
149
+ "initialDelay": {
150
+ "anyOf": [
151
+ {
152
+ "type": "string"
153
+ },
154
+ {
155
+ "type": "object",
156
+ "properties": {
157
+ "years": {
158
+ "type": "number"
159
+ },
160
+ "months": {
161
+ "type": "number"
162
+ },
163
+ "weeks": {
164
+ "type": "number"
165
+ },
166
+ "days": {
167
+ "type": "number"
168
+ },
169
+ "hours": {
170
+ "type": "number"
171
+ },
172
+ "minutes": {
173
+ "type": "number"
174
+ },
175
+ "seconds": {
176
+ "type": "number"
177
+ },
178
+ "milliseconds": {
179
+ "type": "number"
180
+ }
181
+ },
182
+ "description": "Human friendly durations object."
183
+ }
184
+ ],
185
+ "description": "The amount of time that should pass before the first invocation happens."
186
+ },
187
+ "scope": {
188
+ "type": "string",
189
+ "enum": [
190
+ "global",
191
+ "local"
192
+ ],
193
+ "description": "Sets the scope of concurrency control / locking to apply for invocations of this task."
194
+ }
195
+ },
196
+ "required": [
197
+ "frequency",
198
+ "timeout"
199
+ ],
200
+ "description": "(Optional) TaskScheduleDefinition for the refresh."
201
+ }
202
+ }
203
+ },
204
+ {
205
+ "type": "object",
206
+ "additionalProperties": {
207
+ "type": "object",
208
+ "properties": {
209
+ "catalogPath": {
210
+ "type": "string",
211
+ "description": "(Optional) Path to the catalog file. Default to \"/catalog-info.yaml\".",
212
+ "visibility": "frontend"
213
+ },
214
+ "filters": {
215
+ "type": "object",
216
+ "properties": {
217
+ "repoSlug": {
218
+ "type": "string",
219
+ "description": "(Optional) Regular expression filter for the repository slug.",
220
+ "visibility": "frontend"
221
+ },
222
+ "projectKey": {
223
+ "type": "string",
224
+ "description": "(Optional) Regular expression filter for the project key.",
225
+ "visibility": "frontend"
226
+ },
227
+ "skipArchivedRepos": {
228
+ "type": "boolean",
229
+ "description": "(Optional) Skip archived repositories"
230
+ }
231
+ },
232
+ "description": "(Optional) Filters applied to discovered catalog files in repositories.",
233
+ "visibility": "frontend"
234
+ },
235
+ "validateLocationsExist": {
236
+ "type": "boolean",
237
+ "description": "(Optional) Whether to validate locations that exist before emitting them. Default: `false`."
238
+ },
239
+ "schedule": {
240
+ "type": "object",
241
+ "properties": {
242
+ "frequency": {
243
+ "anyOf": [
244
+ {
245
+ "type": "object",
246
+ "properties": {
247
+ "cron": {
248
+ "type": "string",
249
+ "description": "A crontab style string."
250
+ }
251
+ },
252
+ "required": [
253
+ "cron"
254
+ ]
255
+ },
256
+ {
257
+ "type": "string"
258
+ },
259
+ {
260
+ "type": "object",
261
+ "properties": {
262
+ "years": {
263
+ "type": "number"
264
+ },
265
+ "months": {
266
+ "type": "number"
267
+ },
268
+ "weeks": {
269
+ "type": "number"
270
+ },
271
+ "days": {
272
+ "type": "number"
273
+ },
274
+ "hours": {
275
+ "type": "number"
276
+ },
277
+ "minutes": {
278
+ "type": "number"
279
+ },
280
+ "seconds": {
281
+ "type": "number"
282
+ },
283
+ "milliseconds": {
284
+ "type": "number"
285
+ }
286
+ },
287
+ "description": "Human friendly durations object."
288
+ },
289
+ {
290
+ "type": "object",
291
+ "properties": {
292
+ "trigger": {
293
+ "type": "string",
294
+ "const": "manual"
295
+ }
296
+ },
297
+ "required": [
298
+ "trigger"
299
+ ]
300
+ }
301
+ ],
302
+ "description": "How often you want the task to run. The system does its best to avoid overlapping invocations."
303
+ },
304
+ "timeout": {
305
+ "anyOf": [
306
+ {
307
+ "type": "string"
308
+ },
309
+ {
310
+ "type": "object",
311
+ "properties": {
312
+ "years": {
313
+ "type": "number"
314
+ },
315
+ "months": {
316
+ "type": "number"
317
+ },
318
+ "weeks": {
319
+ "type": "number"
320
+ },
321
+ "days": {
322
+ "type": "number"
323
+ },
324
+ "hours": {
325
+ "type": "number"
326
+ },
327
+ "minutes": {
328
+ "type": "number"
329
+ },
330
+ "seconds": {
331
+ "type": "number"
332
+ },
333
+ "milliseconds": {
334
+ "type": "number"
335
+ }
336
+ },
337
+ "description": "Human friendly durations object."
338
+ }
339
+ ],
340
+ "description": "The maximum amount of time that a single task invocation can take, before it's considered timed out and gets \"released\" such that a new invocation is permitted to take place (possibly, then, on a different worker)."
341
+ },
342
+ "initialDelay": {
343
+ "anyOf": [
344
+ {
345
+ "type": "string"
346
+ },
347
+ {
348
+ "type": "object",
349
+ "properties": {
350
+ "years": {
351
+ "type": "number"
352
+ },
353
+ "months": {
354
+ "type": "number"
355
+ },
356
+ "weeks": {
357
+ "type": "number"
358
+ },
359
+ "days": {
360
+ "type": "number"
361
+ },
362
+ "hours": {
363
+ "type": "number"
364
+ },
365
+ "minutes": {
366
+ "type": "number"
367
+ },
368
+ "seconds": {
369
+ "type": "number"
370
+ },
371
+ "milliseconds": {
372
+ "type": "number"
373
+ }
374
+ },
375
+ "description": "Human friendly durations object."
376
+ }
377
+ ],
378
+ "description": "The amount of time that should pass before the first invocation happens."
379
+ },
380
+ "scope": {
381
+ "type": "string",
382
+ "enum": [
383
+ "global",
384
+ "local"
385
+ ],
386
+ "description": "Sets the scope of concurrency control / locking to apply for invocations of this task."
387
+ }
388
+ },
389
+ "required": [
390
+ "frequency",
391
+ "timeout"
392
+ ],
393
+ "description": "(Optional) TaskScheduleDefinition for the refresh."
394
+ }
395
+ }
396
+ }
397
+ }
398
+ ],
399
+ "description": "BitbucketServerEntityProvider configuration\n\nUses \"default\" as default id for the single config variant."
400
+ }
401
+ }
402
+ }
403
+ }
404
+ }
405
+ }
406
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-bitbucket-server",
3
- "version": "0.5.12",
3
+ "version": "0.5.13-next.0",
4
4
  "backstage": {
5
5
  "role": "backend-plugin-module",
6
6
  "pluginId": "catalog",
@@ -51,7 +51,7 @@
51
51
  }
52
52
  },
53
53
  "files": [
54
- "config.d.ts",
54
+ "config.schema.json",
55
55
  "dist"
56
56
  ],
57
57
  "scripts": {
@@ -64,20 +64,20 @@
64
64
  "test": "backstage-cli package test"
65
65
  },
66
66
  "dependencies": {
67
- "@backstage/backend-plugin-api": "^1.9.2",
68
- "@backstage/catalog-model": "^1.9.0",
69
- "@backstage/config": "^1.3.8",
70
- "@backstage/errors": "^1.3.1",
71
- "@backstage/integration": "^2.0.3",
72
- "@backstage/plugin-catalog-common": "^1.1.10",
73
- "@backstage/plugin-catalog-node": "^2.2.2",
74
- "@backstage/plugin-events-node": "^0.4.23"
67
+ "@backstage/backend-plugin-api": "1.9.3-next.0",
68
+ "@backstage/catalog-model": "1.9.0",
69
+ "@backstage/config": "1.3.8",
70
+ "@backstage/errors": "1.3.1",
71
+ "@backstage/integration": "2.0.3",
72
+ "@backstage/plugin-catalog-common": "1.1.10",
73
+ "@backstage/plugin-catalog-node": "2.2.3-next.0",
74
+ "@backstage/plugin-events-node": "0.4.24-next.0"
75
75
  },
76
76
  "devDependencies": {
77
- "@backstage/backend-test-utils": "^1.11.4",
78
- "@backstage/cli": "^0.36.3",
79
- "@backstage/plugin-events-backend-test-utils": "^0.1.56",
77
+ "@backstage/backend-test-utils": "1.11.5-next.0",
78
+ "@backstage/cli": "0.36.4-next.0",
79
+ "@backstage/plugin-events-backend-test-utils": "0.1.57-next.0",
80
80
  "msw": "^1.0.0"
81
81
  },
82
- "configSchema": "config.d.ts"
82
+ "configSchema": "config.schema.json"
83
83
  }
package/config.d.ts DELETED
@@ -1,104 +0,0 @@
1
- /*
2
- * Copyright 2022 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- import { SchedulerServiceTaskScheduleDefinitionConfig } from '@backstage/backend-plugin-api';
18
-
19
- export interface Config {
20
- catalog?: {
21
- providers?: {
22
- /**
23
- * BitbucketServerEntityProvider configuration
24
- *
25
- * Uses "default" as default id for the single config variant.
26
- */
27
- bitbucketServer?:
28
- | {
29
- /**
30
- * (Optional) Path to the catalog file. Default to "/catalog-info.yaml".
31
- * @visibility frontend
32
- */
33
- catalogPath?: string;
34
- /**
35
- * (Optional) Filters applied to discovered catalog files in repositories.
36
- * @visibility frontend
37
- */
38
- filters?: {
39
- /**
40
- * (Optional) Regular expression filter for the repository slug.
41
- * @visibility frontend
42
- */
43
- repoSlug?: string;
44
- /**
45
- * (Optional) Regular expression filter for the project key.
46
- * @visibility frontend
47
- */
48
- projectKey?: string;
49
- /**
50
- * (Optional) Skip archived repositories
51
- */
52
- skipArchivedRepos?: boolean;
53
- };
54
- /**
55
- * (Optional) Whether to validate locations that exist before emitting them.
56
- * Default: `false`.
57
- */
58
- validateLocationsExist?: boolean;
59
- /**
60
- * (Optional) TaskScheduleDefinition for the refresh.
61
- */
62
- schedule?: SchedulerServiceTaskScheduleDefinitionConfig;
63
- }
64
- | {
65
- [name: string]: {
66
- /**
67
- * (Optional) Path to the catalog file. Default to "/catalog-info.yaml".
68
- * @visibility frontend
69
- */
70
- catalogPath?: string;
71
- /**
72
- * (Optional) Filters applied to discovered catalog files in repositories.
73
- * @visibility frontend
74
- */
75
- filters?: {
76
- /**
77
- * (Optional) Regular expression filter for the repository slug.
78
- * @visibility frontend
79
- */
80
- repoSlug?: string;
81
- /**
82
- * (Optional) Regular expression filter for the project key.
83
- * @visibility frontend
84
- */
85
- projectKey?: string;
86
- /**
87
- * (Optional) Skip archived repositories
88
- */
89
- skipArchivedRepos?: boolean;
90
- };
91
- /**
92
- * (Optional) Whether to validate locations that exist before emitting them.
93
- * Default: `false`.
94
- */
95
- validateLocationsExist?: boolean;
96
- /**
97
- * (Optional) TaskScheduleDefinition for the refresh.
98
- */
99
- schedule?: SchedulerServiceTaskScheduleDefinitionConfig;
100
- };
101
- };
102
- };
103
- };
104
- }