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