@spotify/backstage-plugin-soundcheck 0.12.2 → 0.12.3
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 +29 -0
- package/README.md +2 -510
- package/alpha/package.json +1 -1
- package/dist/alpha.esm.js +1 -1
- package/dist/esm/Card-e2275abd.esm.js +2 -0
- package/dist/esm/CertificationSidebar-bfe066d3.esm.js +2 -0
- package/dist/esm/EmptyState-a3a6154f.esm.js +2 -0
- package/dist/esm/EntitySoundcheckContent-fae7d534.esm.js +2 -0
- package/dist/esm/OverviewPageContent-9845035d.esm.js +2 -0
- package/dist/esm/{RefetchingIndicator-b4961e02.esm.js → RefetchingIndicator-8312818a.esm.js} +2 -2
- package/dist/esm/index-8da96e46.esm.js +2 -0
- package/dist/esm/index-a862b329.esm.js +2 -0
- package/dist/esm/{index-f4bdaf5c.esm.js → index-e2ac1874.esm.js} +2 -2
- package/dist/esm/routes-06f9616b.esm.js +611 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/package.json +20 -18
- package/dist/esm/Card-2862fdca.esm.js +0 -2
- package/dist/esm/CertificationSidebar-5e4230a7.esm.js +0 -2
- package/dist/esm/EmptyState-6a402254.esm.js +0 -2
- package/dist/esm/EntitySoundcheckContent-bc7bdbe2.esm.js +0 -2
- package/dist/esm/OverviewPageContent-d5467d2c.esm.js +0 -2
- package/dist/esm/index-5610fc82.esm.js +0 -2
- package/dist/esm/index-99d39b7d.esm.js +0 -2
- package/dist/esm/routes-93cd1496.esm.js +0 -599
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
import{createApiRef as O,createRouteRef as p,createSubRouteRef as E}from"@backstage/core-plugin-api";import{GraphQLClient as F}from"graphql-request";import n from"graphql-tag";import{convertLegacyRouteRef as T}from"@backstage/core-compat-api";var v=(i=>(i.Medal="MEDAL",i))(v||{}),P=(i=>(i.Asc="ASC",i.Desc="DESC",i))(P||{}),w=(i=>(i.Failed="FAILED",i.NotApplicable="NOT_APPLICABLE",i.NotReported="NOT_REPORTED",i.Passed="PASSED",i.Warning="WARNING",i))(w||{}),$=(i=>(i.CertificationLevel="CERTIFICATION_LEVEL",i.CheckPassRate="CHECK_PASS_RATE",i.Lifecycle="LIFECYCLE",i.Name="NAME",i.Owner="OWNER",i.System="SYSTEM",i.Type="TYPE",i))($||{});const S=n`
|
|
2
|
+
fragment CertificationSummary on Certification {
|
|
3
|
+
entityRef
|
|
4
|
+
program {
|
|
5
|
+
id
|
|
6
|
+
name
|
|
7
|
+
type
|
|
8
|
+
}
|
|
9
|
+
highestLevel {
|
|
10
|
+
ordinal
|
|
11
|
+
name
|
|
12
|
+
description
|
|
13
|
+
badge {
|
|
14
|
+
... on BadgeVariantMedal {
|
|
15
|
+
variant
|
|
16
|
+
options {
|
|
17
|
+
level
|
|
18
|
+
color
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`,D=n`
|
|
25
|
+
fragment check on Check {
|
|
26
|
+
id
|
|
27
|
+
name
|
|
28
|
+
description
|
|
29
|
+
}
|
|
30
|
+
`,L=n`
|
|
31
|
+
fragment CampaignLevel on Level {
|
|
32
|
+
ordinal
|
|
33
|
+
name
|
|
34
|
+
description
|
|
35
|
+
badge {
|
|
36
|
+
... on BadgeVariantMedal {
|
|
37
|
+
variant
|
|
38
|
+
options {
|
|
39
|
+
level
|
|
40
|
+
color
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
checks {
|
|
45
|
+
...check
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
${D}`,G=n`
|
|
49
|
+
fragment milestone on Milestone {
|
|
50
|
+
id
|
|
51
|
+
name
|
|
52
|
+
description
|
|
53
|
+
targetPercent
|
|
54
|
+
targetCompletionDate
|
|
55
|
+
}
|
|
56
|
+
`,A=n`
|
|
57
|
+
fragment CheckResultSummary on CheckResult {
|
|
58
|
+
id
|
|
59
|
+
name
|
|
60
|
+
result
|
|
61
|
+
timestamp
|
|
62
|
+
}
|
|
63
|
+
`,q=n`
|
|
64
|
+
fragment LevelResultDetails on LevelResult {
|
|
65
|
+
ordinal
|
|
66
|
+
name
|
|
67
|
+
description
|
|
68
|
+
badge {
|
|
69
|
+
... on BadgeVariantMedal {
|
|
70
|
+
variant
|
|
71
|
+
options {
|
|
72
|
+
level
|
|
73
|
+
color
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
certified
|
|
78
|
+
checks {
|
|
79
|
+
...CheckResultSummary
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
${A}`,N=n`
|
|
83
|
+
fragment CheckResultDetails on CheckResult {
|
|
84
|
+
id
|
|
85
|
+
name
|
|
86
|
+
description
|
|
87
|
+
result
|
|
88
|
+
timestamp
|
|
89
|
+
notes
|
|
90
|
+
}
|
|
91
|
+
`,b=n`
|
|
92
|
+
fragment OverviewLevelResult on OverviewLevelResult {
|
|
93
|
+
ordinal
|
|
94
|
+
name
|
|
95
|
+
checks {
|
|
96
|
+
check {
|
|
97
|
+
id
|
|
98
|
+
name
|
|
99
|
+
description
|
|
100
|
+
}
|
|
101
|
+
results {
|
|
102
|
+
id
|
|
103
|
+
entityRef
|
|
104
|
+
result
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
`,y=n`
|
|
109
|
+
fragment HighestLevel on LevelResult {
|
|
110
|
+
entityRef
|
|
111
|
+
ordinal
|
|
112
|
+
name
|
|
113
|
+
badge {
|
|
114
|
+
... on BadgeVariantMedal {
|
|
115
|
+
variant
|
|
116
|
+
options {
|
|
117
|
+
color
|
|
118
|
+
level
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
`,M=n`
|
|
124
|
+
fragment TrackLevel on Level {
|
|
125
|
+
ordinal
|
|
126
|
+
name
|
|
127
|
+
description
|
|
128
|
+
badge {
|
|
129
|
+
... on BadgeVariantMedal {
|
|
130
|
+
variant
|
|
131
|
+
options {
|
|
132
|
+
level
|
|
133
|
+
color
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
checks {
|
|
138
|
+
...check
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
${D}`,H=n`
|
|
142
|
+
mutation archiveCampaign($campaignId: String!) {
|
|
143
|
+
campaignArchived: archiveCampaign(campaignId: $campaignId)
|
|
144
|
+
}
|
|
145
|
+
`,B=n`
|
|
146
|
+
mutation createCampaign($input: CampaignInput!) {
|
|
147
|
+
campaign: createCampaign(input: $input) {
|
|
148
|
+
id
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
`,U=n`
|
|
152
|
+
mutation createCheck($input: CheckerInput!) {
|
|
153
|
+
check: createChecker(input: $input) {
|
|
154
|
+
id
|
|
155
|
+
filter
|
|
156
|
+
name
|
|
157
|
+
description
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
`,W=n`
|
|
161
|
+
mutation createProgram($input: ProgramInput!) {
|
|
162
|
+
program: createProgram(input: $input) {
|
|
163
|
+
id
|
|
164
|
+
ownerEntityRef
|
|
165
|
+
name
|
|
166
|
+
description
|
|
167
|
+
documentationURL
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
`,V=n`
|
|
171
|
+
mutation deleteCampaign($campaignId: String!) {
|
|
172
|
+
campaignDeleted: deleteCampaign(campaignId: $campaignId)
|
|
173
|
+
}
|
|
174
|
+
`,x=n`
|
|
175
|
+
mutation deleteChecker($checkerId: String!) {
|
|
176
|
+
deleteChecker(checkerId: $checkerId)
|
|
177
|
+
}
|
|
178
|
+
`,_=n`
|
|
179
|
+
mutation deleteProgram($programId: String!) {
|
|
180
|
+
programDeleted: deleteProgram(programId: $programId)
|
|
181
|
+
}
|
|
182
|
+
`,Y=n`
|
|
183
|
+
mutation updateCampaign($input: CampaignInput!) {
|
|
184
|
+
campaign: updateCampaign(input: $input) {
|
|
185
|
+
id
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
`,j=n`
|
|
189
|
+
mutation updateCheck($input: CheckerInput!) {
|
|
190
|
+
check: updateChecker(input: $input) {
|
|
191
|
+
id
|
|
192
|
+
filter
|
|
193
|
+
name
|
|
194
|
+
description
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
`,K=n`
|
|
198
|
+
mutation updateCollectorConfig($input: CollectorConfigInput!) {
|
|
199
|
+
collector: setCollectorConfig(input: $input) {
|
|
200
|
+
id
|
|
201
|
+
factNames
|
|
202
|
+
collectionConfigs {
|
|
203
|
+
factRefs
|
|
204
|
+
filter
|
|
205
|
+
frequency
|
|
206
|
+
cache
|
|
207
|
+
}
|
|
208
|
+
config
|
|
209
|
+
configSchema
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
`,Q=n`
|
|
213
|
+
mutation updateProgram($input: ProgramInput!) {
|
|
214
|
+
program: updateProgram(input: $input) {
|
|
215
|
+
id
|
|
216
|
+
ownerEntityRef
|
|
217
|
+
name
|
|
218
|
+
description
|
|
219
|
+
documentationURL
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
`,z=n`
|
|
223
|
+
query getAllCertifications($entityRef: String!) {
|
|
224
|
+
certifications(entityRef: $entityRef, includeFilteredChecks: false) {
|
|
225
|
+
...CertificationSummary
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
${S}`,J=n`
|
|
229
|
+
query getCampaignOwners {
|
|
230
|
+
campaignOwners
|
|
231
|
+
}
|
|
232
|
+
`,X=n`
|
|
233
|
+
query getCampaignProgress($id: String!, $first: Int, $after: String) {
|
|
234
|
+
campaignProgress(id: $id, first: $first, after: $after) {
|
|
235
|
+
checks {
|
|
236
|
+
check {
|
|
237
|
+
id
|
|
238
|
+
name
|
|
239
|
+
description
|
|
240
|
+
}
|
|
241
|
+
results {
|
|
242
|
+
id
|
|
243
|
+
entityRef
|
|
244
|
+
result
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
entityRefs
|
|
248
|
+
hasNextPage
|
|
249
|
+
totalCount
|
|
250
|
+
endCursor
|
|
251
|
+
prevCursor
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
`,Z=n`
|
|
255
|
+
query getCampaigns($filter: ListEntityFilter!) {
|
|
256
|
+
campaigns(filter: $filter) {
|
|
257
|
+
totalCount
|
|
258
|
+
edges {
|
|
259
|
+
cursor
|
|
260
|
+
node {
|
|
261
|
+
id
|
|
262
|
+
name
|
|
263
|
+
description
|
|
264
|
+
ownerEntityRef
|
|
265
|
+
supportChannel
|
|
266
|
+
archived
|
|
267
|
+
startDate
|
|
268
|
+
targetCompletionDate
|
|
269
|
+
milestones {
|
|
270
|
+
...milestone
|
|
271
|
+
}
|
|
272
|
+
track {
|
|
273
|
+
id
|
|
274
|
+
type
|
|
275
|
+
ownerEntityRef
|
|
276
|
+
name
|
|
277
|
+
description
|
|
278
|
+
documentationURL
|
|
279
|
+
filter
|
|
280
|
+
type
|
|
281
|
+
levels {
|
|
282
|
+
...CampaignLevel
|
|
283
|
+
}
|
|
284
|
+
isEditable
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
pageInfo {
|
|
289
|
+
hasNextPage
|
|
290
|
+
hasPreviousPage
|
|
291
|
+
startCursor
|
|
292
|
+
endCursor
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
${G}
|
|
297
|
+
${L}`,ee=n`
|
|
298
|
+
query getCertificationDetails($entityRef: String!) {
|
|
299
|
+
certifications(entityRef: $entityRef, includeFilteredChecks: false) {
|
|
300
|
+
program {
|
|
301
|
+
id
|
|
302
|
+
name
|
|
303
|
+
description
|
|
304
|
+
documentationURL
|
|
305
|
+
}
|
|
306
|
+
highestLevel {
|
|
307
|
+
...HighestLevel
|
|
308
|
+
}
|
|
309
|
+
levels {
|
|
310
|
+
...LevelResultDetails
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
${y}
|
|
315
|
+
${q}`,te=n`
|
|
316
|
+
query getCertificationDetailsForTrack($entityRef: String!, $programId: String!) {
|
|
317
|
+
programCertification(
|
|
318
|
+
entityRef: $entityRef
|
|
319
|
+
programId: $programId
|
|
320
|
+
includeFilteredChecks: false
|
|
321
|
+
) {
|
|
322
|
+
program {
|
|
323
|
+
id
|
|
324
|
+
name
|
|
325
|
+
description
|
|
326
|
+
documentationURL
|
|
327
|
+
type
|
|
328
|
+
}
|
|
329
|
+
highestLevel {
|
|
330
|
+
...HighestLevel
|
|
331
|
+
}
|
|
332
|
+
levels {
|
|
333
|
+
...LevelResultDetails
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
${y}
|
|
338
|
+
${q}`,ae=n`
|
|
339
|
+
query getCheckResultDetails($entityRef: String!, $programId: String!, $checkId: String!) {
|
|
340
|
+
checkResult(entityRef: $entityRef, programId: $programId, checkId: $checkId) {
|
|
341
|
+
...CheckResultDetails
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
${N}`,re=n`
|
|
345
|
+
query getCheckOwners {
|
|
346
|
+
checkOwners
|
|
347
|
+
}
|
|
348
|
+
`,ie=n`
|
|
349
|
+
query getCheckers($filter: ListEntityFilter!) {
|
|
350
|
+
checkers(filter: $filter) {
|
|
351
|
+
totalCount
|
|
352
|
+
edges {
|
|
353
|
+
cursor
|
|
354
|
+
node {
|
|
355
|
+
id
|
|
356
|
+
ownerEntityRef
|
|
357
|
+
supportChannel
|
|
358
|
+
name
|
|
359
|
+
description
|
|
360
|
+
rule
|
|
361
|
+
warning
|
|
362
|
+
passedMessage
|
|
363
|
+
failedMessage
|
|
364
|
+
filter
|
|
365
|
+
isEditable
|
|
366
|
+
schedule
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
pageInfo {
|
|
370
|
+
hasNextPage
|
|
371
|
+
hasPreviousPage
|
|
372
|
+
startCursor
|
|
373
|
+
endCursor
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
`,se=n`
|
|
378
|
+
query getEntityRefsForTechHealthFilter($ownerEntityRef: String) {
|
|
379
|
+
entityRefsForTechHealthFilter(ownerEntityRef: $ownerEntityRef)
|
|
380
|
+
}
|
|
381
|
+
`,ne=n`
|
|
382
|
+
query getFacetsForOwner($ownerEntityRef: String!) {
|
|
383
|
+
facetsForOwner(ownerEntityRef: $ownerEntityRef) {
|
|
384
|
+
types {
|
|
385
|
+
kind
|
|
386
|
+
type
|
|
387
|
+
count
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
`,ce=n`
|
|
392
|
+
query getCollectors($ids: [String!]) {
|
|
393
|
+
collectors(ids: $ids) {
|
|
394
|
+
id
|
|
395
|
+
name
|
|
396
|
+
description
|
|
397
|
+
factNames
|
|
398
|
+
config
|
|
399
|
+
isConfigurable
|
|
400
|
+
isEditable
|
|
401
|
+
collectionConfigs {
|
|
402
|
+
factRefs
|
|
403
|
+
filter
|
|
404
|
+
frequency
|
|
405
|
+
cache
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
`,oe=n`
|
|
410
|
+
query getFactSchemas($collectorId: String!, $factName: String!) {
|
|
411
|
+
factSchema(collectorId: $collectorId, factName: $factName) {
|
|
412
|
+
schema
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
`,le=n`
|
|
416
|
+
query getIndividualCheckPassRates($filter: Filter) {
|
|
417
|
+
individualCheckPassRates(filter: $filter) {
|
|
418
|
+
id
|
|
419
|
+
checkName
|
|
420
|
+
checkDescription
|
|
421
|
+
checkOwnerRef
|
|
422
|
+
snapshotPassRate
|
|
423
|
+
trendPassRates
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
`,ue=n`
|
|
427
|
+
query getIndividualEntityPassRates($filter: Filter) {
|
|
428
|
+
individualEntityPassRates(filter: $filter) {
|
|
429
|
+
id
|
|
430
|
+
entityDescription
|
|
431
|
+
entityOwnerRef
|
|
432
|
+
snapshotPassRate
|
|
433
|
+
trendPassRates
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
`,ge=n`
|
|
437
|
+
query getIndividualGroupPassRates($filter: Filter) {
|
|
438
|
+
groupPassRates(filter: $filter) {
|
|
439
|
+
id
|
|
440
|
+
groupTitle
|
|
441
|
+
memberRefs
|
|
442
|
+
snapshotPassRate
|
|
443
|
+
trendPassRates
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
`,de=n`
|
|
447
|
+
query getIndividualTrackPassRate($filter: Filter) {
|
|
448
|
+
individualTrackPassRate(filter: $filter) {
|
|
449
|
+
id
|
|
450
|
+
trackName
|
|
451
|
+
trackDescription
|
|
452
|
+
trackOwnerRef
|
|
453
|
+
levels {
|
|
454
|
+
levelOrdinal
|
|
455
|
+
levelName
|
|
456
|
+
snapshotPassRate
|
|
457
|
+
trendPassRates
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
`,he=n`
|
|
462
|
+
query getOperators {
|
|
463
|
+
operators {
|
|
464
|
+
name
|
|
465
|
+
title
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
`,pe=n`
|
|
469
|
+
query getOverallCheckPassRates($filter: Filter) {
|
|
470
|
+
overallCheckPassRates(filter: $filter)
|
|
471
|
+
}
|
|
472
|
+
`,me=n`
|
|
473
|
+
query getOverallEntityPassRates($filter: Filter) {
|
|
474
|
+
overallEntityPassRates(filter: $filter) {
|
|
475
|
+
id
|
|
476
|
+
trendPassRates
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
`,fe=n`
|
|
480
|
+
query getOverallGroupPassRates($filter: Filter) {
|
|
481
|
+
groupPassRates(filter: $filter, limit: 5) {
|
|
482
|
+
id
|
|
483
|
+
groupTitle
|
|
484
|
+
snapshotPassRate
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
`,ye=n`
|
|
488
|
+
query getOverallTrackPassRate($filter: Filter) {
|
|
489
|
+
overallTrackPassRate(filter: $filter) {
|
|
490
|
+
levelOrdinal
|
|
491
|
+
snapshotPassRate
|
|
492
|
+
trendPassRates
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
`,ke=n`
|
|
496
|
+
query getPlaylists($entityRef: String!) {
|
|
497
|
+
playlists(entityRef: $entityRef) {
|
|
498
|
+
id
|
|
499
|
+
name
|
|
500
|
+
description
|
|
501
|
+
ownerEntityRef
|
|
502
|
+
trackIds
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
`,Re=n`
|
|
506
|
+
query getProgramOverviewForOwner($ownerEntityRef: String!, $facet: FacetInput, $first: Int, $after: String) {
|
|
507
|
+
programOverviewForOwner(
|
|
508
|
+
ownerEntityRef: $ownerEntityRef
|
|
509
|
+
facet: $facet
|
|
510
|
+
includeFilteredChecks: false
|
|
511
|
+
first: $first
|
|
512
|
+
after: $after
|
|
513
|
+
) {
|
|
514
|
+
programs {
|
|
515
|
+
program {
|
|
516
|
+
id
|
|
517
|
+
name
|
|
518
|
+
type
|
|
519
|
+
}
|
|
520
|
+
highestLevels {
|
|
521
|
+
...HighestLevel
|
|
522
|
+
}
|
|
523
|
+
levels {
|
|
524
|
+
...OverviewLevelResult
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
entityRefs
|
|
528
|
+
hasNextPage
|
|
529
|
+
totalCount
|
|
530
|
+
endCursor
|
|
531
|
+
prevCursor
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
${y}
|
|
535
|
+
${b}`,Ce=n`
|
|
536
|
+
query getTrackEntities($input: TrackEntitiesInput!) {
|
|
537
|
+
trackEntities(input: $input) {
|
|
538
|
+
totalCount
|
|
539
|
+
pageInfo {
|
|
540
|
+
hasNextPage
|
|
541
|
+
hasPreviousPage
|
|
542
|
+
startCursor
|
|
543
|
+
endCursor
|
|
544
|
+
}
|
|
545
|
+
edges {
|
|
546
|
+
node {
|
|
547
|
+
entityRef
|
|
548
|
+
badge {
|
|
549
|
+
... on BadgeVariantMedal {
|
|
550
|
+
variant
|
|
551
|
+
options {
|
|
552
|
+
color
|
|
553
|
+
level
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
status {
|
|
558
|
+
total
|
|
559
|
+
passed
|
|
560
|
+
failed
|
|
561
|
+
warning
|
|
562
|
+
notApplicable
|
|
563
|
+
notReported
|
|
564
|
+
statusByLevel {
|
|
565
|
+
ordinal
|
|
566
|
+
total
|
|
567
|
+
passed
|
|
568
|
+
failed
|
|
569
|
+
warning
|
|
570
|
+
notApplicable
|
|
571
|
+
notReported
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
`,ve=n`
|
|
579
|
+
query getTrackOwners {
|
|
580
|
+
trackOwners
|
|
581
|
+
}
|
|
582
|
+
`,Pe=n`
|
|
583
|
+
query getTracks($filter: ListEntityFilter!) {
|
|
584
|
+
programs(filter: $filter) {
|
|
585
|
+
totalCount
|
|
586
|
+
edges {
|
|
587
|
+
cursor
|
|
588
|
+
node {
|
|
589
|
+
id
|
|
590
|
+
ownerEntityRef
|
|
591
|
+
name
|
|
592
|
+
description
|
|
593
|
+
documentationURL
|
|
594
|
+
filter
|
|
595
|
+
levels {
|
|
596
|
+
...TrackLevel
|
|
597
|
+
}
|
|
598
|
+
isEditable
|
|
599
|
+
type
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
pageInfo {
|
|
603
|
+
hasNextPage
|
|
604
|
+
hasPreviousPage
|
|
605
|
+
startCursor
|
|
606
|
+
endCursor
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
${M}`,we=(i,t,e)=>i();function $e(i,t=we){return{archiveCampaign(e,a){return t(r=>i.request(H,e,{...a,...r}),"archiveCampaign","mutation")},createCampaign(e,a){return t(r=>i.request(B,e,{...a,...r}),"createCampaign","mutation")},createCheck(e,a){return t(r=>i.request(U,e,{...a,...r}),"createCheck","mutation")},createProgram(e,a){return t(r=>i.request(W,e,{...a,...r}),"createProgram","mutation")},deleteCampaign(e,a){return t(r=>i.request(V,e,{...a,...r}),"deleteCampaign","mutation")},deleteChecker(e,a){return t(r=>i.request(x,e,{...a,...r}),"deleteChecker","mutation")},deleteProgram(e,a){return t(r=>i.request(_,e,{...a,...r}),"deleteProgram","mutation")},updateCampaign(e,a){return t(r=>i.request(Y,e,{...a,...r}),"updateCampaign","mutation")},updateCheck(e,a){return t(r=>i.request(j,e,{...a,...r}),"updateCheck","mutation")},updateCollectorConfig(e,a){return t(r=>i.request(K,e,{...a,...r}),"updateCollectorConfig","mutation")},updateProgram(e,a){return t(r=>i.request(Q,e,{...a,...r}),"updateProgram","mutation")},getAllCertifications(e,a){return t(r=>i.request(z,e,{...a,...r}),"getAllCertifications","query")},getCampaignOwners(e,a){return t(r=>i.request(J,e,{...a,...r}),"getCampaignOwners","query")},getCampaignProgress(e,a){return t(r=>i.request(X,e,{...a,...r}),"getCampaignProgress","query")},getCampaigns(e,a){return t(r=>i.request(Z,e,{...a,...r}),"getCampaigns","query")},getCertificationDetails(e,a){return t(r=>i.request(ee,e,{...a,...r}),"getCertificationDetails","query")},getCertificationDetailsForTrack(e,a){return t(r=>i.request(te,e,{...a,...r}),"getCertificationDetailsForTrack","query")},getCheckResultDetails(e,a){return t(r=>i.request(ae,e,{...a,...r}),"getCheckResultDetails","query")},getCheckOwners(e,a){return t(r=>i.request(re,e,{...a,...r}),"getCheckOwners","query")},getCheckers(e,a){return t(r=>i.request(ie,e,{...a,...r}),"getCheckers","query")},getEntityRefsForTechHealthFilter(e,a){return t(r=>i.request(se,e,{...a,...r}),"getEntityRefsForTechHealthFilter","query")},getFacetsForOwner(e,a){return t(r=>i.request(ne,e,{...a,...r}),"getFacetsForOwner","query")},getCollectors(e,a){return t(r=>i.request(ce,e,{...a,...r}),"getCollectors","query")},getFactSchemas(e,a){return t(r=>i.request(oe,e,{...a,...r}),"getFactSchemas","query")},getIndividualCheckPassRates(e,a){return t(r=>i.request(le,e,{...a,...r}),"getIndividualCheckPassRates","query")},getIndividualEntityPassRates(e,a){return t(r=>i.request(ue,e,{...a,...r}),"getIndividualEntityPassRates","query")},getIndividualGroupPassRates(e,a){return t(r=>i.request(ge,e,{...a,...r}),"getIndividualGroupPassRates","query")},getIndividualTrackPassRate(e,a){return t(r=>i.request(de,e,{...a,...r}),"getIndividualTrackPassRate","query")},getOperators(e,a){return t(r=>i.request(he,e,{...a,...r}),"getOperators","query")},getOverallCheckPassRates(e,a){return t(r=>i.request(pe,e,{...a,...r}),"getOverallCheckPassRates","query")},getOverallEntityPassRates(e,a){return t(r=>i.request(me,e,{...a,...r}),"getOverallEntityPassRates","query")},getOverallGroupPassRates(e,a){return t(r=>i.request(fe,e,{...a,...r}),"getOverallGroupPassRates","query")},getOverallTrackPassRate(e,a){return t(r=>i.request(ye,e,{...a,...r}),"getOverallTrackPassRate","query")},getPlaylists(e,a){return t(r=>i.request(ke,e,{...a,...r}),"getPlaylists","query")},getProgramOverviewForOwner(e,a){return t(r=>i.request(Re,e,{...a,...r}),"getProgramOverviewForOwner","query")},getTrackEntities(e,a){return t(r=>i.request(Ce,e,{...a,...r}),"getTrackEntities","query")},getTrackOwners(e,a){return t(r=>i.request(ve,e,{...a,...r}),"getTrackOwners","query")},getTracks(e,a){return t(r=>i.request(Pe,e,{...a,...r}),"getTracks","query")}}}var I=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)},s=(i,t,e)=>(I(i,t,"read from private field"),e?e.call(i):t.get(i)),h=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},k=(i,t,e,a)=>(I(i,t,"write to private field"),a?a.call(i,e):t.set(i,e),e),m,f,c,R,o;const De=O({id:"plugin.soundcheck"}),qe=i=>"response"in i&&"errors"in i.response,Ie=i=>"response"in i&&"message"in i.response;class Oe{constructor(t){h(this,m,void 0),h(this,f,void 0),h(this,c,void 0),h(this,R,a=>{var r,g,C;return qe(a)?(C=(g=(r=a.response)==null?void 0:r.errors)==null?void 0:g[0].message)!=null?C:`${a}`:Ie(a)?a.response.message:`${a}`}),h(this,o,async a=>{try{return await a()}catch(r){throw new Error(`Error from Soundcheck backend: ${s(this,R).call(this,r)}`)}}),k(this,m,t.fetchApi),k(this,f,t.discoveryApi);const e=new F("/graphql",{fetch:async(a,r)=>{const g=`${await s(this,f).getBaseUrl("soundcheck")}${a}`;return s(this,m).fetch(g,r)}});k(this,c,$e(e))}async getAllCertifications(t){return s(this,o).call(this,async()=>{const{certifications:e}=await s(this,c).getAllCertifications({entityRef:t});return e})}async getCertificationDetails(t){return s(this,o).call(this,async()=>{const{certifications:e}=await s(this,c).getCertificationDetails({entityRef:t});return e})}async getCertificationDetailsForTrack(t,e){return s(this,o).call(this,async()=>{const{programCertification:a}=await s(this,c).getCertificationDetailsForTrack({entityRef:t,programId:e});return a})}async getCheckResultDetails(t,e,a){return s(this,o).call(this,async()=>{const{checkResult:r}=await s(this,c).getCheckResultDetails({entityRef:t,programId:e,checkId:a});return r})}async getFacetsForOwner(t){return s(this,o).call(this,async()=>{const{facetsForOwner:e}=await s(this,c).getFacetsForOwner({ownerEntityRef:t});return e})}async getProgramOverviewForOwner(t,e,a,r){return s(this,o).call(this,async()=>{const{programOverviewForOwner:g}=await s(this,c).getProgramOverviewForOwner({ownerEntityRef:t,facet:e,first:a,after:r});return g})}async getTracks(t){return s(this,o).call(this,async()=>{const{programs:e}=await s(this,c).getTracks({filter:t});return e})}async createProgram(t){return s(this,o).call(this,async()=>{const{program:e}=await s(this,c).createProgram({input:t});return e})}async updateProgram(t){return s(this,o).call(this,async()=>{const{program:e}=await s(this,c).updateProgram({input:t});return e})}async deleteProgram(t){return s(this,o).call(this,async()=>{const{programDeleted:e}=await s(this,c).deleteProgram({programId:t});return e})}async getPlaylists(t){return s(this,o).call(this,async()=>{const{playlists:e}=await s(this,c).getPlaylists({entityRef:t});return e})}async getOperators(){return s(this,o).call(this,async()=>{const{operators:t}=await s(this,c).getOperators();return t})}async getChecks(t){return s(this,o).call(this,async()=>{const{checkers:e}=await s(this,c).getCheckers({filter:t});return e})}async createCheck(t){return s(this,o).call(this,async()=>{const{check:e}=await s(this,c).createCheck({input:t});return e})}async updateCheck(t){return s(this,o).call(this,async()=>{const{check:e}=await s(this,c).updateCheck({input:t});return e})}async deleteCheck(t){return s(this,o).call(this,async()=>await s(this,c).deleteChecker({checkerId:t}))}async getCollectors(t){return s(this,o).call(this,async()=>{const{collectors:e}=await s(this,c).getCollectors({ids:t});return e})}async getFactSchema(t,e){if(!(!t||!e))return s(this,o).call(this,async()=>{const{factSchema:a}=await s(this,c).getFactSchemas({collectorId:t,factName:e});return a})}async updateCollectorConfig(t){return s(this,o).call(this,async()=>{const{collector:e}=await s(this,c).updateCollectorConfig({input:t});return e})}async getOverallCheckPassRates(t){return s(this,o).call(this,async()=>await s(this,c).getOverallCheckPassRates({filter:t}))}async getIndividualCheckPassRates(t){return s(this,o).call(this,async()=>await s(this,c).getIndividualCheckPassRates({filter:t}))}async getOverallTrackPassRate(t){return s(this,o).call(this,async()=>await s(this,c).getOverallTrackPassRate({filter:t}))}async getIndividualTrackPassRate(t){return s(this,o).call(this,async()=>await s(this,c).getIndividualTrackPassRate({filter:t}))}async getOverallEntityPassRates(t){return s(this,o).call(this,async()=>await s(this,c).getOverallEntityPassRates({filter:t}))}async getIndividualEntityPassRates(t){return s(this,o).call(this,async()=>await s(this,c).getIndividualEntityPassRates({filter:t}))}async getOverallGroupPassRates(t){return s(this,o).call(this,async()=>await s(this,c).getOverallGroupPassRates({filter:t}))}async getIndividualGroupPassRates(t){return s(this,o).call(this,async()=>await s(this,c).getIndividualGroupPassRates({filter:t}))}async getEntityRefsForTechHealthFilter(t){return s(this,o).call(this,async()=>await s(this,c).getEntityRefsForTechHealthFilter({ownerEntityRef:t}))}async getTrackEntities(t){return s(this,o).call(this,async()=>await s(this,c).getTrackEntities({input:t}))}async getCampaigns(t){return s(this,o).call(this,async()=>{const{campaigns:e}=await s(this,c).getCampaigns({filter:t});return e})}async createCampaign(t){return s(this,o).call(this,async()=>{const{campaign:e}=await s(this,c).createCampaign({input:t});return e})}async updateCampaign(t){return s(this,o).call(this,async()=>{const{campaign:e}=await s(this,c).updateCampaign({input:t});return e})}async deleteCampaign(t){return s(this,o).call(this,async()=>{const{campaignDeleted:e}=await s(this,c).deleteCampaign({campaignId:t});return e})}async archiveCampaign(t){return s(this,o).call(this,async()=>{const{campaignArchived:e}=await s(this,c).archiveCampaign({campaignId:t});return e})}async getCampaignProgress(t,e,a){return s(this,o).call(this,async()=>{const{campaignProgress:r}=await s(this,c).getCampaignProgress({id:t,first:e,after:a});return r})}async getCampaignOwners(){return s(this,o).call(this,async()=>{const{campaignOwners:t}=await s(this,c).getCampaignOwners();return t})}async getCheckOwners(){return s(this,o).call(this,async()=>{const{checkOwners:t}=await s(this,c).getCheckOwners();return t})}async getTrackOwners(){return s(this,o).call(this,async()=>{const{trackOwners:t}=await s(this,c).getTrackOwners();return t})}}m=new WeakMap,f=new WeakMap,c=new WeakMap,R=new WeakMap,o=new WeakMap;const l=i=>T(E(i)),d=p({id:"soundcheck-entity"}),Ee=p({id:"soundcheck-group"}),Fe=l({id:"soundcheck-entity-certification-track-redirect",parent:d,path:"/tracks/:trackId"}),Te=l({id:"soundcheck-entity-certification",parent:d,path:"/tracks/:trackId/checks/:checkId"}),Se=l({id:"soundcheck-entity-playlist-redirect",parent:d,path:"/playlists/:playlistId"}),Le=l({id:"soundcheck-entity-playlist-track-redirect",parent:d,path:"/playlists/:playlistId/tracks/:trackId"}),Ge=l({id:"soundcheck-entity-playlist-track-redirect",parent:d,path:"/playlists/:playlistId/tracks/:trackId/checks/:checkId"}),Ae=p({id:"soundcheck-overview"}),u=p({id:"soundcheck"}),Ne=l({id:"soundcheck-checks",parent:u,path:"/checks"}),be=l({id:"soundcheck-check-details",parent:u,path:"/checks/:checkId"}),Me=l({id:"soundcheck-tracks",parent:u,path:"/tracks"}),He=l({id:"soundcheck-track-details",parent:u,path:"/tracks/:trackId"}),Be=l({id:"soundcheck-track-edit",parent:u,path:"/tracks/:trackId/edit"}),Ue=l({id:"soundcheck-campaigns",parent:u,path:"/campaigns"}),We=l({id:"soundcheck-campaign-details",parent:u,path:"/campaigns/:campaignId"}),Ve=l({id:"soundcheck-campaign-edit",parent:u,path:"/campaigns/:campaignId/edit"}),xe=l({id:"soundcheck-tech-health",parent:u,path:"/tech-health"}),_e=l({id:"soundcheck-collectors-page",parent:u,path:"/collectors"}),Ye=l({id:"soundcheck-collector-details",parent:u,path:"/collectors/:collectorId"});export{v as B,P as D,w as R,Oe as S,$ as T,Fe as a,Se as b,Te as c,Ge as d,d as e,Le as f,Ee as g,We as h,Ve as i,Ue as j,Ne as k,be as l,_e as m,Ye as n,Ae as o,Me as p,He as q,u as r,De as s,xe as t,Be as u};
|
|
611
|
+
//# sourceMappingURL=routes-06f9616b.esm.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ interface OverviewPageProps {
|
|
|
31
31
|
*/
|
|
32
32
|
declare const soundcheckPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
33
33
|
entityContent: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
34
|
+
entityCertification: _backstage_core_plugin_api.SubRouteRef;
|
|
34
35
|
}, {}, {}>;
|
|
35
36
|
/**
|
|
36
37
|
* @public
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createPlugin as
|
|
1
|
+
import{createPlugin as n,createApiFactory as r,discoveryApiRef as p,fetchApiRef as c,createRoutableExtension as e,createComponentExtension as m}from"@backstage/core-plugin-api";import{s as u,S as a,e as i,c as d,g as h,o as s,r as R}from"./esm/routes-06f9616b.esm.js";import"react";import"./esm/EmptyState-a3a6154f.esm.js";import"./esm/Card-e2275abd.esm.js";import"graphql-request";import"graphql-tag";import"@backstage/core-compat-api";import"@tanstack/react-query";import"lodash";import"@material-ui/core";import"@material-ui/lab";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/HelpOutline";import"@material-ui/icons/RemoveCircleOutline";import"@material-ui/icons/ReportProblemOutlined";import"classnames";import"@backstage/catalog-model";import"@backstage/plugin-catalog-react";import"./images/empty-state.svg";import"@backstage/core-components";import"@material-ui/core/styles/makeStyles";import"@spotify/backstage-plugin-core";import"./esm/CertificationSidebar-bfe066d3.esm.js";import"react-router-dom";import"@material-ui/icons/Schedule";import"luxon";import"./esm/license-e9e73904.esm.js";const t=n({id:"soundcheck",apis:[r({api:u,deps:{discoveryApi:p,fetchApi:c},factory:o=>new a(o)})],routes:{entityContent:i,entityCertification:d}}),v=t.provide(e({name:"EntitySoundcheckContent",component:()=>import("./esm/EntitySoundcheckContent-fae7d534.esm.js").then(o=>o.EntitySoundcheckContent),mountPoint:i})),k=t.provide(m({name:"EntitySoundcheckCard",component:{lazy:()=>import("./esm/index-e2ac1874.esm.js").then(o=>o.EntitySoundcheckCard)}})),f=t.provide(e({name:"GroupSoundcheckContent",component:()=>import("./esm/index-8da96e46.esm.js").then(o=>o.FixedGroupOverviewPage),mountPoint:h})),g=t.provide(e({name:"SoundcheckOverviewPage",component:()=>import("./esm/index-8da96e46.esm.js").then(o=>o.OverviewPage),mountPoint:s})),y=t.provide(e({name:"SoundcheckRoutingPage",component:()=>import("./esm/index-a862b329.esm.js").then(o=>o.RoutingPage),mountPoint:R}));export{k as EntitySoundcheckCard,v as EntitySoundcheckContent,f as GroupSoundcheckContent,g as SoundcheckOverviewPage,y as SoundcheckRoutingPage,t as soundcheckPlugin};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|