@spotify/backstage-plugin-soundcheck 0.12.2 → 0.12.4

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 (35) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +2 -510
  3. package/alpha/package.json +1 -1
  4. package/config.d.ts +0 -4
  5. package/dist/alpha.esm.js +1 -1
  6. package/dist/esm/Card-Dj5kNp2Q.esm.js +2 -0
  7. package/dist/esm/CertificationSidebar-CVyVchB8.esm.js +2 -0
  8. package/dist/esm/EmptyState-CFyDYjmm.esm.js +2 -0
  9. package/dist/esm/EntitySoundcheckContent-Dm1OGOA5.esm.js +2 -0
  10. package/dist/esm/OverviewPageContent-DW92KphH.esm.js +2 -0
  11. package/dist/esm/{RefetchingIndicator-b4961e02.esm.js → RefetchingIndicator-CdGa4YBG.esm.js} +2 -2
  12. package/dist/esm/chartUtils-CDPSRCm-.esm.js +2 -0
  13. package/dist/esm/{index-f4bdaf5c.esm.js → index-ChMeGQBh.esm.js} +2 -2
  14. package/dist/esm/index-DNAl7tKw.esm.js +2 -0
  15. package/dist/esm/index-e9SWucyI.esm.js +2 -0
  16. package/dist/esm/{license-e9e73904.esm.js → license-CQErZDIh.esm.js} +1 -1
  17. package/dist/esm/routes-DcGwdXHX.esm.js +699 -0
  18. package/dist/images/git-dark.svg +1 -0
  19. package/dist/images/github-dark.svg +1 -0
  20. package/dist/images/github-light.svg +1 -0
  21. package/dist/images/pagerduty-dark.png +0 -0
  22. package/dist/index.d.ts +2 -1
  23. package/dist/index.esm.js +1 -1
  24. package/package.json +20 -19
  25. package/dist/esm/Card-2862fdca.esm.js +0 -2
  26. package/dist/esm/CertificationSidebar-5e4230a7.esm.js +0 -2
  27. package/dist/esm/EmptyState-6a402254.esm.js +0 -2
  28. package/dist/esm/EntitySoundcheckContent-bc7bdbe2.esm.js +0 -2
  29. package/dist/esm/OverviewPageContent-d5467d2c.esm.js +0 -2
  30. package/dist/esm/chartUtils-080232d7.esm.js +0 -2
  31. package/dist/esm/index-5610fc82.esm.js +0 -2
  32. package/dist/esm/index-99d39b7d.esm.js +0 -2
  33. package/dist/esm/routes-93cd1496.esm.js +0 -599
  34. package/dist/images/octocat.svg +0 -17
  35. package/dist/images/settings.svg +0 -90
@@ -0,0 +1,699 @@
1
+ import{createApiRef as O,createRouteRef as d,createSubRouteRef as S}from"@backstage/core-plugin-api";import{GraphQLClient as E}from"graphql-request";import n from"graphql-tag";import{convertLegacyRouteRef as F}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 T=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
+ `,q=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
+ ${q}`,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
+ `,I=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}`,H=n`
83
+ fragment CheckResultDetails on CheckResult {
84
+ id
85
+ name
86
+ description
87
+ result
88
+ timestamp
89
+ notes
90
+ }
91
+ `,N=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
+ `,f=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
+ `,b=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
+ ${q}`,M=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
+ `,x=n`
161
+ mutation createProgram($input: ProgramInput!) {
162
+ program: createProgram(input: $input) {
163
+ id
164
+ ownerEntityRef
165
+ name
166
+ description
167
+ documentationURL
168
+ }
169
+ }
170
+ `,W=n`
171
+ mutation deleteCampaign($campaignId: String!) {
172
+ campaignDeleted: deleteCampaign(campaignId: $campaignId)
173
+ }
174
+ `,V=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
+ ${T}`,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
+ ${f}
315
+ ${I}`,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
+ ${f}
338
+ ${I}`,ae=n`
339
+ query getCertificationStatus($input: CertificationStatusInput!) {
340
+ certificationStatus(input: $input) {
341
+ numberOfEntities
342
+ statusByLevel {
343
+ ordinal
344
+ passed
345
+ failed
346
+ cumulativelyPassed
347
+ cumulativelyFailed
348
+ notReported
349
+ }
350
+ }
351
+ }
352
+ `,re=n`
353
+ query getCertificationStatusHistory($input: CertificationStatusHistoryInput!) {
354
+ certificationStatusHistory(input: $input) {
355
+ numberOfEntities
356
+ history {
357
+ statusByLevel {
358
+ ordinal
359
+ passed
360
+ failed
361
+ cumulativelyPassed
362
+ cumulativelyFailed
363
+ notReported
364
+ }
365
+ }
366
+ }
367
+ }
368
+ `,ie=n`
369
+ query getCheckResultDetails($entityRef: String!, $programId: String!, $checkId: String!) {
370
+ checkResult(entityRef: $entityRef, programId: $programId, checkId: $checkId) {
371
+ ...CheckResultDetails
372
+ }
373
+ }
374
+ ${H}`,se=n`
375
+ query getCheckOwners {
376
+ checkOwners
377
+ }
378
+ `,ne=n`
379
+ query getCheckStatus($input: CheckStatusInput!) {
380
+ checkStatus(input: $input) {
381
+ numberOfEntities
382
+ passed
383
+ failed
384
+ warning
385
+ notApplicable
386
+ notReported
387
+ }
388
+ }
389
+ `,ce=n`
390
+ query getCheckStatusHistory($input: CheckStatusHistoryInput!) {
391
+ checkStatusHistory(input: $input) {
392
+ numberOfEntities
393
+ history {
394
+ passed
395
+ failed
396
+ warning
397
+ notApplicable
398
+ notReported
399
+ }
400
+ }
401
+ }
402
+ `,oe=n`
403
+ query getCheckers($filter: ListEntityFilter!) {
404
+ checkers(filter: $filter) {
405
+ totalCount
406
+ edges {
407
+ cursor
408
+ node {
409
+ id
410
+ ownerEntityRef
411
+ supportChannel
412
+ name
413
+ description
414
+ rule
415
+ warning
416
+ passedMessage
417
+ failedMessage
418
+ filter
419
+ isEditable
420
+ schedule
421
+ }
422
+ }
423
+ pageInfo {
424
+ hasNextPage
425
+ hasPreviousPage
426
+ startCursor
427
+ endCursor
428
+ }
429
+ }
430
+ }
431
+ `,ue=n`
432
+ query getEntityRefsForTechHealthFilter($ownerEntityRef: String) {
433
+ entityRefsForTechHealthFilter(ownerEntityRef: $ownerEntityRef)
434
+ }
435
+ `,le=n`
436
+ query getFacetsForOwner($ownerEntityRef: String!) {
437
+ facetsForOwner(ownerEntityRef: $ownerEntityRef) {
438
+ types {
439
+ kind
440
+ type
441
+ count
442
+ }
443
+ }
444
+ }
445
+ `,ge=n`
446
+ query getCollectors($ids: [String!]) {
447
+ collectors(ids: $ids) {
448
+ id
449
+ name
450
+ description
451
+ factNames
452
+ config
453
+ isConfigurable
454
+ isEditable
455
+ collectionConfigs {
456
+ factRefs
457
+ filter
458
+ frequency
459
+ cache
460
+ }
461
+ }
462
+ }
463
+ `,he=n`
464
+ query getFactSchemas($collectorId: String!, $factName: String!) {
465
+ factSchema(collectorId: $collectorId, factName: $factName) {
466
+ schema
467
+ }
468
+ }
469
+ `,pe=n`
470
+ query getIndividualCheckPassRates($filter: Filter) {
471
+ individualCheckPassRates(filter: $filter) {
472
+ id
473
+ checkName
474
+ checkDescription
475
+ checkOwnerRef
476
+ snapshotPassRate
477
+ trendPassRates
478
+ }
479
+ }
480
+ `,de=n`
481
+ query getIndividualEntityPassRates($input: PassRatesInput) {
482
+ individualEntityPassRates(input: $input) {
483
+ totalCount
484
+ edges {
485
+ cursor
486
+ node {
487
+ id
488
+ entityDescription
489
+ entityOwnerRef
490
+ snapshotPassRate
491
+ trendPassRates
492
+ }
493
+ }
494
+ pageInfo {
495
+ hasNextPage
496
+ hasPreviousPage
497
+ startCursor
498
+ endCursor
499
+ }
500
+ }
501
+ }
502
+ `,me=n`
503
+ query getIndividualGroupPassRates($input: PassRatesInput) {
504
+ groupPassRates(input: $input) {
505
+ totalCount
506
+ edges {
507
+ cursor
508
+ node {
509
+ id
510
+ groupTitle
511
+ memberRefs
512
+ snapshotPassRate
513
+ trendPassRates
514
+ }
515
+ }
516
+ pageInfo {
517
+ hasNextPage
518
+ hasPreviousPage
519
+ startCursor
520
+ endCursor
521
+ }
522
+ }
523
+ }
524
+ `,ye=n`
525
+ query getIndividualTrackPassRate($filter: Filter) {
526
+ individualTrackPassRate(filter: $filter) {
527
+ id
528
+ trackName
529
+ trackDescription
530
+ trackOwnerRef
531
+ levels {
532
+ levelOrdinal
533
+ levelName
534
+ snapshotPassRate
535
+ trendPassRates
536
+ }
537
+ }
538
+ }
539
+ `,fe=n`
540
+ query getOperators {
541
+ operators {
542
+ name
543
+ title
544
+ }
545
+ }
546
+ `,Ce=n`
547
+ query getOverallCheckPassRates($filter: Filter) {
548
+ overallCheckPassRates(filter: $filter)
549
+ }
550
+ `,ke=n`
551
+ query getOverallEntityPassRates($filter: Filter) {
552
+ overallEntityPassRates(filter: $filter) {
553
+ id
554
+ trendPassRates
555
+ }
556
+ }
557
+ `,Re=n`
558
+ query getOverallGroupPassRates($input: PassRatesInput) {
559
+ groupPassRates(input: $input) {
560
+ totalCount
561
+ edges {
562
+ cursor
563
+ node {
564
+ id
565
+ groupTitle
566
+ snapshotPassRate
567
+ }
568
+ }
569
+ pageInfo {
570
+ hasNextPage
571
+ hasPreviousPage
572
+ startCursor
573
+ endCursor
574
+ }
575
+ }
576
+ }
577
+ `,ve=n`
578
+ query getOverallTrackPassRate($filter: Filter) {
579
+ overallTrackPassRate(filter: $filter) {
580
+ levelOrdinal
581
+ snapshotPassRate
582
+ trendPassRates
583
+ }
584
+ }
585
+ `,Pe=n`
586
+ query getPlaylists($entityRef: String!) {
587
+ playlists(entityRef: $entityRef) {
588
+ id
589
+ name
590
+ description
591
+ ownerEntityRef
592
+ trackIds
593
+ }
594
+ }
595
+ `,we=n`
596
+ query getProgramOverviewForOwner($ownerEntityRef: String!, $facet: FacetInput, $first: Int, $after: String) {
597
+ programOverviewForOwner(
598
+ ownerEntityRef: $ownerEntityRef
599
+ facet: $facet
600
+ includeFilteredChecks: false
601
+ first: $first
602
+ after: $after
603
+ ) {
604
+ programs {
605
+ program {
606
+ id
607
+ name
608
+ type
609
+ }
610
+ highestLevels {
611
+ ...HighestLevel
612
+ }
613
+ levels {
614
+ ...OverviewLevelResult
615
+ }
616
+ }
617
+ entityRefs
618
+ hasNextPage
619
+ totalCount
620
+ endCursor
621
+ prevCursor
622
+ }
623
+ }
624
+ ${f}
625
+ ${N}`,$e=n`
626
+ query getTrackEntities($input: TrackEntitiesInput!) {
627
+ trackEntities(input: $input) {
628
+ totalCount
629
+ pageInfo {
630
+ hasNextPage
631
+ hasPreviousPage
632
+ startCursor
633
+ endCursor
634
+ }
635
+ edges {
636
+ node {
637
+ entityRef
638
+ badge {
639
+ ... on BadgeVariantMedal {
640
+ variant
641
+ options {
642
+ color
643
+ level
644
+ }
645
+ }
646
+ }
647
+ status {
648
+ passed
649
+ failed
650
+ warning
651
+ notApplicable
652
+ notReported
653
+ statusByLevel {
654
+ ordinal
655
+ passed
656
+ failed
657
+ warning
658
+ notApplicable
659
+ notReported
660
+ }
661
+ }
662
+ }
663
+ }
664
+ }
665
+ }
666
+ `,qe=n`
667
+ query getTrackOwners {
668
+ trackOwners
669
+ }
670
+ `,Ie=n`
671
+ query getTracks($filter: ListEntityFilter!) {
672
+ programs(filter: $filter) {
673
+ totalCount
674
+ edges {
675
+ cursor
676
+ node {
677
+ id
678
+ ownerEntityRef
679
+ name
680
+ description
681
+ documentationURL
682
+ filter
683
+ levels {
684
+ ...TrackLevel
685
+ }
686
+ isEditable
687
+ type
688
+ }
689
+ }
690
+ pageInfo {
691
+ hasNextPage
692
+ hasPreviousPage
693
+ startCursor
694
+ endCursor
695
+ }
696
+ }
697
+ }
698
+ ${b}`,De=(i,t,e,a)=>i();function Oe(i,t=De){return{archiveCampaign(e,a){return t(r=>i.request(M,e,{...a,...r}),"archiveCampaign","mutation",e)},createCampaign(e,a){return t(r=>i.request(B,e,{...a,...r}),"createCampaign","mutation",e)},createCheck(e,a){return t(r=>i.request(U,e,{...a,...r}),"createCheck","mutation",e)},createProgram(e,a){return t(r=>i.request(x,e,{...a,...r}),"createProgram","mutation",e)},deleteCampaign(e,a){return t(r=>i.request(W,e,{...a,...r}),"deleteCampaign","mutation",e)},deleteChecker(e,a){return t(r=>i.request(V,e,{...a,...r}),"deleteChecker","mutation",e)},deleteProgram(e,a){return t(r=>i.request(_,e,{...a,...r}),"deleteProgram","mutation",e)},updateCampaign(e,a){return t(r=>i.request(Y,e,{...a,...r}),"updateCampaign","mutation",e)},updateCheck(e,a){return t(r=>i.request(j,e,{...a,...r}),"updateCheck","mutation",e)},updateCollectorConfig(e,a){return t(r=>i.request(K,e,{...a,...r}),"updateCollectorConfig","mutation",e)},updateProgram(e,a){return t(r=>i.request(Q,e,{...a,...r}),"updateProgram","mutation",e)},getAllCertifications(e,a){return t(r=>i.request(z,e,{...a,...r}),"getAllCertifications","query",e)},getCampaignOwners(e,a){return t(r=>i.request(J,e,{...a,...r}),"getCampaignOwners","query",e)},getCampaignProgress(e,a){return t(r=>i.request(X,e,{...a,...r}),"getCampaignProgress","query",e)},getCampaigns(e,a){return t(r=>i.request(Z,e,{...a,...r}),"getCampaigns","query",e)},getCertificationDetails(e,a){return t(r=>i.request(ee,e,{...a,...r}),"getCertificationDetails","query",e)},getCertificationDetailsForTrack(e,a){return t(r=>i.request(te,e,{...a,...r}),"getCertificationDetailsForTrack","query",e)},getCertificationStatus(e,a){return t(r=>i.request(ae,e,{...a,...r}),"getCertificationStatus","query",e)},getCertificationStatusHistory(e,a){return t(r=>i.request(re,e,{...a,...r}),"getCertificationStatusHistory","query",e)},getCheckResultDetails(e,a){return t(r=>i.request(ie,e,{...a,...r}),"getCheckResultDetails","query",e)},getCheckOwners(e,a){return t(r=>i.request(se,e,{...a,...r}),"getCheckOwners","query",e)},getCheckStatus(e,a){return t(r=>i.request(ne,e,{...a,...r}),"getCheckStatus","query",e)},getCheckStatusHistory(e,a){return t(r=>i.request(ce,e,{...a,...r}),"getCheckStatusHistory","query",e)},getCheckers(e,a){return t(r=>i.request(oe,e,{...a,...r}),"getCheckers","query",e)},getEntityRefsForTechHealthFilter(e,a){return t(r=>i.request(ue,e,{...a,...r}),"getEntityRefsForTechHealthFilter","query",e)},getFacetsForOwner(e,a){return t(r=>i.request(le,e,{...a,...r}),"getFacetsForOwner","query",e)},getCollectors(e,a){return t(r=>i.request(ge,e,{...a,...r}),"getCollectors","query",e)},getFactSchemas(e,a){return t(r=>i.request(he,e,{...a,...r}),"getFactSchemas","query",e)},getIndividualCheckPassRates(e,a){return t(r=>i.request(pe,e,{...a,...r}),"getIndividualCheckPassRates","query",e)},getIndividualEntityPassRates(e,a){return t(r=>i.request(de,e,{...a,...r}),"getIndividualEntityPassRates","query",e)},getIndividualGroupPassRates(e,a){return t(r=>i.request(me,e,{...a,...r}),"getIndividualGroupPassRates","query",e)},getIndividualTrackPassRate(e,a){return t(r=>i.request(ye,e,{...a,...r}),"getIndividualTrackPassRate","query",e)},getOperators(e,a){return t(r=>i.request(fe,e,{...a,...r}),"getOperators","query",e)},getOverallCheckPassRates(e,a){return t(r=>i.request(Ce,e,{...a,...r}),"getOverallCheckPassRates","query",e)},getOverallEntityPassRates(e,a){return t(r=>i.request(ke,e,{...a,...r}),"getOverallEntityPassRates","query",e)},getOverallGroupPassRates(e,a){return t(r=>i.request(Re,e,{...a,...r}),"getOverallGroupPassRates","query",e)},getOverallTrackPassRate(e,a){return t(r=>i.request(ve,e,{...a,...r}),"getOverallTrackPassRate","query",e)},getPlaylists(e,a){return t(r=>i.request(Pe,e,{...a,...r}),"getPlaylists","query",e)},getProgramOverviewForOwner(e,a){return t(r=>i.request(we,e,{...a,...r}),"getProgramOverviewForOwner","query",e)},getTrackEntities(e,a){return t(r=>i.request($e,e,{...a,...r}),"getTrackEntities","query",e)},getTrackOwners(e,a){return t(r=>i.request(qe,e,{...a,...r}),"getTrackOwners","query",e)},getTracks(e,a){return t(r=>i.request(Ie,e,{...a,...r}),"getTracks","query",e)}}}var D=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)},s=(i,t,e)=>(D(i,t,"read from private field"),e?e.call(i):t.get(i)),p=(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)},C=(i,t,e,a)=>(D(i,t,"write to private field"),a?a.call(i,e):t.set(i,e),e),m,y,c,k,o;const Se=O({id:"plugin.soundcheck"}),Ee=i=>"response"in i&&"errors"in i.response,Fe=i=>"response"in i&&"message"in i.response;class Te{constructor(t){p(this,m,void 0),p(this,y,void 0),p(this,c,void 0),p(this,k,a=>{var r,g,R;return Ee(a)?(R=(g=(r=a.response)==null?void 0:r.errors)==null?void 0:g[0].message)!=null?R:`${a}`:Fe(a)?a.response.message:`${a}`}),p(this,o,async a=>{try{return await a()}catch(r){throw new Error(`Error from Soundcheck backend: ${s(this,k).call(this,r)}`)}}),C(this,m,t.fetchApi),C(this,y,t.discoveryApi);const e=new E("/graphql",{fetch:async(a,r)=>{const g=`${await s(this,y).getBaseUrl("soundcheck")}${a}`;return s(this,m).fetch(g,r)}});C(this,c,Oe(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({input:t}))}async getOverallGroupPassRates(t){return s(this,o).call(this,async()=>await s(this,c).getOverallGroupPassRates({input:t}))}async getIndividualGroupPassRates(t){return s(this,o).call(this,async()=>await s(this,c).getIndividualGroupPassRates({input: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})}async getCertificationStatus(t){return s(this,o).call(this,async()=>s(this,c).getCertificationStatus({input:t}))}async getCertificationStatusHistory(t){return s(this,o).call(this,async()=>s(this,c).getCertificationStatusHistory({input:t}))}async getCheckStatus(t){return s(this,o).call(this,async()=>s(this,c).getCheckStatus({input:t}))}async getCheckStatusHistory(t){return s(this,o).call(this,async()=>s(this,c).getCheckStatusHistory({input:t}))}}m=new WeakMap,y=new WeakMap,c=new WeakMap,k=new WeakMap,o=new WeakMap;const u=i=>F(S(i)),h=d({id:"soundcheck-entity"}),Le=d({id:"soundcheck-group"}),Ge=u({id:"soundcheck-entity-certification-track-redirect",parent:h,path:"/tracks/:trackId"}),Ae=u({id:"soundcheck-entity-certification",parent:h,path:"/tracks/:trackId/checks/:checkId"}),He=u({id:"soundcheck-entity-playlist-redirect",parent:h,path:"/playlists/:playlistId"}),Ne=u({id:"soundcheck-entity-playlist-track-redirect",parent:h,path:"/playlists/:playlistId/tracks/:trackId"}),be=u({id:"soundcheck-entity-playlist-track-redirect",parent:h,path:"/playlists/:playlistId/tracks/:trackId/checks/:checkId"}),Me=d({id:"soundcheck-overview"}),l=d({id:"soundcheck"}),Be=u({id:"soundcheck-checks",parent:l,path:"/checks"}),Ue=u({id:"soundcheck-check-details",parent:l,path:"/checks/:checkId"}),xe=u({id:"soundcheck-tracks",parent:l,path:"/tracks"}),We=u({id:"soundcheck-track-details",parent:l,path:"/tracks/:trackId"}),Ve=u({id:"soundcheck-track-edit",parent:l,path:"/tracks/:trackId/edit"}),_e=u({id:"soundcheck-campaigns",parent:l,path:"/campaigns"}),Ye=u({id:"soundcheck-campaign-details",parent:l,path:"/campaigns/:campaignId"}),je=u({id:"soundcheck-campaign-edit",parent:l,path:"/campaigns/:campaignId/edit"}),Ke=u({id:"soundcheck-tech-health",parent:l,path:"/tech-health"}),Qe=u({id:"soundcheck-collectors-page",parent:l,path:"/collectors"}),ze=u({id:"soundcheck-collector-details",parent:l,path:"/collectors/:collectorId"});export{v as B,P as D,w as R,Te as S,$ as T,He as a,Ge as b,Ae as c,be as d,h as e,Ne as f,Le as g,Ye as h,je as i,_e as j,Be as k,Ue as l,Qe as m,ze as n,Me as o,xe as p,We as q,l as r,Se as s,Ke as t,Ve as u};
699
+ //# sourceMappingURL=routes-DcGwdXHX.esm.js.map
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="92pt" height="92pt" viewBox="0 0 92 92"><defs><clipPath id="a"><path d="M0 .113h91.887V92H0Zm0 0"/></clipPath></defs><g clip-path="url(#a)"><path style="stroke:none;fill-rule:nonzero;fill:#fff;fill-opacity:1" d="M90.156 41.965 50.036 1.848a5.918 5.918 0 0 0-8.372 0l-8.328 8.332 10.566 10.566a7.03 7.03 0 0 1 7.23 1.684 7.034 7.034 0 0 1 1.669 7.277l10.187 10.184a7.028 7.028 0 0 1 7.278 1.672 7.04 7.04 0 0 1 0 9.957 7.05 7.05 0 0 1-9.965 0 7.044 7.044 0 0 1-1.528-7.66l-9.5-9.497V59.36a7.04 7.04 0 0 1 1.86 11.29 7.04 7.04 0 0 1-9.957 0 7.04 7.04 0 0 1 0-9.958 7.06 7.06 0 0 1 2.304-1.539V33.926a7.049 7.049 0 0 1-3.82-9.234L29.242 14.272 1.73 41.777a5.925 5.925 0 0 0 0 8.371L41.852 90.27a5.925 5.925 0 0 0 8.37 0l39.934-39.934a5.925 5.925 0 0 0 0-8.371"/></g></svg>