@spotify/backstage-plugin-soundcheck 0.11.2 → 0.12.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.
@@ -0,0 +1,599 @@
1
+ import{createApiRef as E,createRouteRef as p,createSubRouteRef as F}from"@backstage/core-plugin-api";import{GraphQLClient as O}from"graphql-request";import n from"graphql-tag";import{convertLegacyRouteRef as T}from"@backstage/core-compat-api";var v=(r=>(r.Medal="MEDAL",r))(v||{}),P=(r=>(r.Asc="ASC",r.Desc="DESC",r))(P||{}),$=(r=>(r.Failed="FAILED",r.NotApplicable="NOT_APPLICABLE",r.NotReported="NOT_REPORTED",r.Passed="PASSED",r.Warning="WARNING",r))($||{}),w=(r=>(r.CertificationLevel="CERTIFICATION_LEVEL",r.CheckPassRate="CHECK_PASS_RATE",r.Lifecycle="LIFECYCLE",r.Name="NAME",r.Owner="OWNER",r.System="SYSTEM",r.Type="TYPE",r))(w||{});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
+ `,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}`,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 getCampaignProgress($id: String!, $first: Int, $after: String) {
230
+ campaignProgress(id: $id, first: $first, after: $after) {
231
+ checks {
232
+ check {
233
+ id
234
+ name
235
+ description
236
+ }
237
+ results {
238
+ id
239
+ entityRef
240
+ result
241
+ }
242
+ }
243
+ entityRefs
244
+ hasNextPage
245
+ totalCount
246
+ endCursor
247
+ prevCursor
248
+ }
249
+ }
250
+ `,X=n`
251
+ query getCampaigns($filter: ListEntityFilter!) {
252
+ campaigns(filter: $filter) {
253
+ totalCount
254
+ edges {
255
+ cursor
256
+ node {
257
+ id
258
+ name
259
+ description
260
+ ownerEntityRef
261
+ supportChannel
262
+ archived
263
+ startDate
264
+ targetCompletionDate
265
+ milestones {
266
+ ...milestone
267
+ }
268
+ track {
269
+ id
270
+ type
271
+ ownerEntityRef
272
+ name
273
+ description
274
+ documentationURL
275
+ filter
276
+ type
277
+ levels {
278
+ ...CampaignLevel
279
+ }
280
+ isEditable
281
+ }
282
+ }
283
+ }
284
+ pageInfo {
285
+ hasNextPage
286
+ hasPreviousPage
287
+ startCursor
288
+ endCursor
289
+ }
290
+ }
291
+ }
292
+ ${G}
293
+ ${L}`,Z=n`
294
+ query getCertificationDetails($entityRef: String!) {
295
+ certifications(entityRef: $entityRef, includeFilteredChecks: false) {
296
+ program {
297
+ id
298
+ name
299
+ description
300
+ documentationURL
301
+ }
302
+ highestLevel {
303
+ ...HighestLevel
304
+ }
305
+ levels {
306
+ ...LevelResultDetails
307
+ }
308
+ }
309
+ }
310
+ ${y}
311
+ ${I}`,ee=n`
312
+ query getCertificationDetailsForTrack($entityRef: String!, $programId: String!) {
313
+ programCertification(
314
+ entityRef: $entityRef
315
+ programId: $programId
316
+ includeFilteredChecks: false
317
+ ) {
318
+ program {
319
+ id
320
+ name
321
+ description
322
+ documentationURL
323
+ type
324
+ }
325
+ highestLevel {
326
+ ...HighestLevel
327
+ }
328
+ levels {
329
+ ...LevelResultDetails
330
+ }
331
+ }
332
+ }
333
+ ${y}
334
+ ${I}`,te=n`
335
+ query getCheckResultDetails($entityRef: String!, $programId: String!, $checkId: String!) {
336
+ checkResult(entityRef: $entityRef, programId: $programId, checkId: $checkId) {
337
+ ...CheckResultDetails
338
+ }
339
+ }
340
+ ${N}`,ae=n`
341
+ query getCheckers($filter: ListEntityFilter!) {
342
+ checkers(filter: $filter) {
343
+ totalCount
344
+ edges {
345
+ cursor
346
+ node {
347
+ id
348
+ ownerEntityRef
349
+ supportChannel
350
+ name
351
+ description
352
+ rule
353
+ warning
354
+ passedMessage
355
+ failedMessage
356
+ filter
357
+ isEditable
358
+ schedule
359
+ }
360
+ }
361
+ pageInfo {
362
+ hasNextPage
363
+ hasPreviousPage
364
+ startCursor
365
+ endCursor
366
+ }
367
+ }
368
+ }
369
+ `,re=n`
370
+ query getEntityRefsForTechHealthFilter($ownerEntityRef: String) {
371
+ entityRefsForTechHealthFilter(ownerEntityRef: $ownerEntityRef)
372
+ }
373
+ `,ie=n`
374
+ query getFacetsForOwner($ownerEntityRef: String!) {
375
+ facetsForOwner(ownerEntityRef: $ownerEntityRef) {
376
+ types {
377
+ kind
378
+ type
379
+ count
380
+ }
381
+ }
382
+ }
383
+ `,se=n`
384
+ query getCollectors($ids: [String!]) {
385
+ collectors(ids: $ids) {
386
+ id
387
+ name
388
+ description
389
+ factNames
390
+ config
391
+ isConfigurable
392
+ isEditable
393
+ collectionConfigs {
394
+ factRefs
395
+ filter
396
+ frequency
397
+ cache
398
+ }
399
+ }
400
+ }
401
+ `,ne=n`
402
+ query getFactSchemas($collectorId: String!, $factName: String!) {
403
+ factSchema(collectorId: $collectorId, factName: $factName) {
404
+ schema
405
+ }
406
+ }
407
+ `,ce=n`
408
+ query getIndividualCheckPassRates($filter: Filter) {
409
+ individualCheckPassRates(filter: $filter) {
410
+ id
411
+ checkName
412
+ checkDescription
413
+ checkOwnerRef
414
+ snapshotPassRate
415
+ trendPassRates
416
+ }
417
+ }
418
+ `,oe=n`
419
+ query getIndividualEntityPassRates($filter: Filter) {
420
+ individualEntityPassRates(filter: $filter) {
421
+ id
422
+ entityDescription
423
+ entityOwnerRef
424
+ snapshotPassRate
425
+ trendPassRates
426
+ }
427
+ }
428
+ `,le=n`
429
+ query getIndividualGroupPassRates($filter: Filter) {
430
+ groupPassRates(filter: $filter) {
431
+ id
432
+ groupTitle
433
+ memberRefs
434
+ snapshotPassRate
435
+ trendPassRates
436
+ }
437
+ }
438
+ `,ue=n`
439
+ query getIndividualTrackPassRate($filter: Filter) {
440
+ individualTrackPassRate(filter: $filter) {
441
+ id
442
+ trackName
443
+ trackDescription
444
+ trackOwnerRef
445
+ levels {
446
+ levelOrdinal
447
+ levelName
448
+ snapshotPassRate
449
+ trendPassRates
450
+ }
451
+ }
452
+ }
453
+ `,ge=n`
454
+ query getOperators {
455
+ operators {
456
+ name
457
+ title
458
+ }
459
+ }
460
+ `,de=n`
461
+ query getOverallCheckPassRates($filter: Filter) {
462
+ overallCheckPassRates(filter: $filter)
463
+ }
464
+ `,he=n`
465
+ query getOverallEntityPassRates($filter: Filter) {
466
+ overallEntityPassRates(filter: $filter) {
467
+ id
468
+ trendPassRates
469
+ }
470
+ }
471
+ `,pe=n`
472
+ query getOverallGroupPassRates($filter: Filter) {
473
+ groupPassRates(filter: $filter, limit: 5) {
474
+ id
475
+ groupTitle
476
+ snapshotPassRate
477
+ }
478
+ }
479
+ `,me=n`
480
+ query getOverallTrackPassRate($filter: Filter) {
481
+ overallTrackPassRate(filter: $filter) {
482
+ levelOrdinal
483
+ snapshotPassRate
484
+ trendPassRates
485
+ }
486
+ }
487
+ `,fe=n`
488
+ query getPlaylists($entityRef: String!) {
489
+ playlists(entityRef: $entityRef) {
490
+ id
491
+ name
492
+ description
493
+ ownerEntityRef
494
+ trackIds
495
+ }
496
+ }
497
+ `,ye=n`
498
+ query getProgramOverviewForOwner($ownerEntityRef: String!, $facet: FacetInput, $first: Int, $after: String) {
499
+ programOverviewForOwner(
500
+ ownerEntityRef: $ownerEntityRef
501
+ facet: $facet
502
+ includeFilteredChecks: false
503
+ first: $first
504
+ after: $after
505
+ ) {
506
+ programs {
507
+ program {
508
+ id
509
+ name
510
+ type
511
+ }
512
+ highestLevels {
513
+ ...HighestLevel
514
+ }
515
+ levels {
516
+ ...OverviewLevelResult
517
+ }
518
+ }
519
+ entityRefs
520
+ hasNextPage
521
+ totalCount
522
+ endCursor
523
+ prevCursor
524
+ }
525
+ }
526
+ ${y}
527
+ ${b}`,Re=n`
528
+ query getTrackEntities($input: TrackEntitiesInput!) {
529
+ trackEntities(input: $input) {
530
+ totalCount
531
+ pageInfo {
532
+ hasNextPage
533
+ hasPreviousPage
534
+ startCursor
535
+ endCursor
536
+ }
537
+ edges {
538
+ node {
539
+ entityRef
540
+ badge {
541
+ ... on BadgeVariantMedal {
542
+ variant
543
+ options {
544
+ color
545
+ level
546
+ }
547
+ }
548
+ }
549
+ status {
550
+ total
551
+ passed
552
+ failed
553
+ warning
554
+ notApplicable
555
+ notReported
556
+ statusByLevel {
557
+ ordinal
558
+ total
559
+ passed
560
+ failed
561
+ warning
562
+ notApplicable
563
+ notReported
564
+ }
565
+ }
566
+ }
567
+ }
568
+ }
569
+ }
570
+ `,ke=n`
571
+ query getTracks($filter: ListEntityFilter!) {
572
+ programs(filter: $filter) {
573
+ totalCount
574
+ edges {
575
+ cursor
576
+ node {
577
+ id
578
+ ownerEntityRef
579
+ name
580
+ description
581
+ documentationURL
582
+ filter
583
+ levels {
584
+ ...TrackLevel
585
+ }
586
+ isEditable
587
+ type
588
+ }
589
+ }
590
+ pageInfo {
591
+ hasNextPage
592
+ hasPreviousPage
593
+ startCursor
594
+ endCursor
595
+ }
596
+ }
597
+ }
598
+ ${M}`,Ce=(r,t,e)=>r();function ve(r,t=Ce){return{archiveCampaign(e,a){return t(i=>r.request(H,e,{...a,...i}),"archiveCampaign","mutation")},createCampaign(e,a){return t(i=>r.request(B,e,{...a,...i}),"createCampaign","mutation")},createCheck(e,a){return t(i=>r.request(U,e,{...a,...i}),"createCheck","mutation")},createProgram(e,a){return t(i=>r.request(W,e,{...a,...i}),"createProgram","mutation")},deleteCampaign(e,a){return t(i=>r.request(V,e,{...a,...i}),"deleteCampaign","mutation")},deleteChecker(e,a){return t(i=>r.request(x,e,{...a,...i}),"deleteChecker","mutation")},deleteProgram(e,a){return t(i=>r.request(_,e,{...a,...i}),"deleteProgram","mutation")},updateCampaign(e,a){return t(i=>r.request(Y,e,{...a,...i}),"updateCampaign","mutation")},updateCheck(e,a){return t(i=>r.request(j,e,{...a,...i}),"updateCheck","mutation")},updateCollectorConfig(e,a){return t(i=>r.request(K,e,{...a,...i}),"updateCollectorConfig","mutation")},updateProgram(e,a){return t(i=>r.request(Q,e,{...a,...i}),"updateProgram","mutation")},getAllCertifications(e,a){return t(i=>r.request(z,e,{...a,...i}),"getAllCertifications","query")},getCampaignProgress(e,a){return t(i=>r.request(J,e,{...a,...i}),"getCampaignProgress","query")},getCampaigns(e,a){return t(i=>r.request(X,e,{...a,...i}),"getCampaigns","query")},getCertificationDetails(e,a){return t(i=>r.request(Z,e,{...a,...i}),"getCertificationDetails","query")},getCertificationDetailsForTrack(e,a){return t(i=>r.request(ee,e,{...a,...i}),"getCertificationDetailsForTrack","query")},getCheckResultDetails(e,a){return t(i=>r.request(te,e,{...a,...i}),"getCheckResultDetails","query")},getCheckers(e,a){return t(i=>r.request(ae,e,{...a,...i}),"getCheckers","query")},getEntityRefsForTechHealthFilter(e,a){return t(i=>r.request(re,e,{...a,...i}),"getEntityRefsForTechHealthFilter","query")},getFacetsForOwner(e,a){return t(i=>r.request(ie,e,{...a,...i}),"getFacetsForOwner","query")},getCollectors(e,a){return t(i=>r.request(se,e,{...a,...i}),"getCollectors","query")},getFactSchemas(e,a){return t(i=>r.request(ne,e,{...a,...i}),"getFactSchemas","query")},getIndividualCheckPassRates(e,a){return t(i=>r.request(ce,e,{...a,...i}),"getIndividualCheckPassRates","query")},getIndividualEntityPassRates(e,a){return t(i=>r.request(oe,e,{...a,...i}),"getIndividualEntityPassRates","query")},getIndividualGroupPassRates(e,a){return t(i=>r.request(le,e,{...a,...i}),"getIndividualGroupPassRates","query")},getIndividualTrackPassRate(e,a){return t(i=>r.request(ue,e,{...a,...i}),"getIndividualTrackPassRate","query")},getOperators(e,a){return t(i=>r.request(ge,e,{...a,...i}),"getOperators","query")},getOverallCheckPassRates(e,a){return t(i=>r.request(de,e,{...a,...i}),"getOverallCheckPassRates","query")},getOverallEntityPassRates(e,a){return t(i=>r.request(he,e,{...a,...i}),"getOverallEntityPassRates","query")},getOverallGroupPassRates(e,a){return t(i=>r.request(pe,e,{...a,...i}),"getOverallGroupPassRates","query")},getOverallTrackPassRate(e,a){return t(i=>r.request(me,e,{...a,...i}),"getOverallTrackPassRate","query")},getPlaylists(e,a){return t(i=>r.request(fe,e,{...a,...i}),"getPlaylists","query")},getProgramOverviewForOwner(e,a){return t(i=>r.request(ye,e,{...a,...i}),"getProgramOverviewForOwner","query")},getTrackEntities(e,a){return t(i=>r.request(Re,e,{...a,...i}),"getTrackEntities","query")},getTracks(e,a){return t(i=>r.request(ke,e,{...a,...i}),"getTracks","query")}}}var q=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)},s=(r,t,e)=>(q(r,t,"read from private field"),e?e.call(r):t.get(r)),h=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)},R=(r,t,e,a)=>(q(r,t,"write to private field"),a?a.call(r,e):t.set(r,e),e),m,f,c,k,o;const Pe=E({id:"plugin.soundcheck"}),$e=r=>"response"in r&&"errors"in r.response,we=r=>"response"in r&&"message"in r.response;class De{constructor(t){h(this,m,void 0),h(this,f,void 0),h(this,c,void 0),h(this,k,a=>{var i,g,C;return $e(a)?(C=(g=(i=a.response)==null?void 0:i.errors)==null?void 0:g[0].message)!=null?C:`${a}`:we(a)?a.response.message:`${a}`}),h(this,o,async a=>{try{return await a()}catch(i){throw new Error(`Error from Soundcheck backend: ${s(this,k).call(this,i)}`)}}),R(this,m,t.fetchApi),R(this,f,t.discoveryApi);const e=new O("/graphql",{fetch:async(a,i)=>{const g=`${await s(this,f).getBaseUrl("soundcheck")}${a}`;return s(this,m).fetch(g,i)}});R(this,c,ve(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:i}=await s(this,c).getCheckResultDetails({entityRef:t,programId:e,checkId:a});return i})}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,i){return s(this,o).call(this,async()=>{const{programOverviewForOwner:g}=await s(this,c).getProgramOverviewForOwner({ownerEntityRef:t,facet:e,first:a,after:i});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:i}=await s(this,c).getCampaignProgress({id:t,first:e,after:a});return i})}}m=new WeakMap,f=new WeakMap,c=new WeakMap,k=new WeakMap,o=new WeakMap;const l=r=>T(F(r)),d=p({id:"soundcheck-entity"}),Ie=p({id:"soundcheck-group"}),qe=l({id:"soundcheck-entity-certification-track-redirect",parent:d,path:"/tracks/:trackId"}),Ee=l({id:"soundcheck-entity-certification",parent:d,path:"/tracks/:trackId/checks/:checkId"}),Fe=l({id:"soundcheck-entity-playlist-redirect",parent:d,path:"/playlists/:playlistId"}),Oe=l({id:"soundcheck-entity-playlist-track-redirect",parent:d,path:"/playlists/:playlistId/tracks/:trackId"}),Te=l({id:"soundcheck-entity-playlist-track-redirect",parent:d,path:"/playlists/:playlistId/tracks/:trackId/checks/:checkId"}),Se=p({id:"soundcheck-overview"}),u=p({id:"soundcheck"}),Le=l({id:"soundcheck-checks",parent:u,path:"/checks"}),Ge=l({id:"soundcheck-check-details",parent:u,path:"/checks/:checkId"}),Ae=l({id:"soundcheck-tracks",parent:u,path:"/tracks"}),Ne=l({id:"soundcheck-track-details",parent:u,path:"/tracks/:trackId"}),be=l({id:"soundcheck-track-edit",parent:u,path:"/tracks/:trackId/edit"}),Me=l({id:"soundcheck-campaigns",parent:u,path:"/campaigns"}),He=l({id:"soundcheck-campaign-details",parent:u,path:"/campaigns/:campaignId"}),Be=l({id:"soundcheck-campaign-edit",parent:u,path:"/campaigns/:campaignId/edit"}),Ue=l({id:"soundcheck-tech-health",parent:u,path:"/tech-health"}),We=l({id:"soundcheck-collectors-page",parent:u,path:"/collectors"}),Ve=l({id:"soundcheck-collector-details",parent:u,path:"/collectors/:collectorId"});export{v as B,P as D,$ as R,De as S,w as T,Ee as a,Te as b,qe as c,Fe as d,d as e,Oe as f,Ie as g,He as h,Be as i,Me as j,Le as k,Ge as l,We as m,Ve as n,Se as o,Ae as p,Ne as q,u as r,Pe as s,Ue as t,be as u};
599
+ //# sourceMappingURL=routes-93cd1496.esm.js.map
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{P as l,O as w,T as x,U as G,V as K,K as R}from"./esm/index-9833aac9.esm.js";import"react";import"@backstage/core-plugin-api";import"graphql-request";import"graphql-tag";import"@tanstack/react-query";import"lodash";import"@material-ui/core/styles/makeStyles";import"@material-ui/core";import"@backstage/core-components";import"@backstage/plugin-catalog-react";import"@spotify/backstage-plugin-core";import"@backstage/catalog-model";import"@material-ui/lab";import"react-router-dom";import"classnames";import"@material-ui/icons/Schedule";import"luxon";import"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/RemoveCircleOutline";import"@material-ui/icons/HelpOutline";import"./images/empty-state.svg";export{l as EntitySoundcheckCard,w as EntitySoundcheckContent,x as GroupSoundcheckContent,G as SoundcheckOverviewPage,K as SoundcheckRoutingPage,R as soundcheckPlugin};
1
+ import{createPlugin as i,createApiFactory as r,discoveryApiRef as p,fetchApiRef as m,createRoutableExtension as e,createComponentExtension as c}from"@backstage/core-plugin-api";import{s as u,S as a,e as n,g as d,o as h,r as s}from"./esm/routes-93cd1496.esm.js";import"react";import"./esm/EmptyState-6a402254.esm.js";import"./esm/Card-2862fdca.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-5e4230a7.esm.js";import"react-router-dom";import"@material-ui/icons/Schedule";import"luxon";import"./esm/license-e9e73904.esm.js";const t=i({id:"soundcheck",apis:[r({api:u,deps:{discoveryApi:p,fetchApi:m},factory:o=>new a(o)})],routes:{entityContent:n}}),v=t.provide(e({name:"EntitySoundcheckContent",component:()=>import("./esm/EntitySoundcheckContent-bc7bdbe2.esm.js").then(o=>o.EntitySoundcheckContent),mountPoint:n})),R=t.provide(c({name:"EntitySoundcheckCard",component:{lazy:()=>import("./esm/index-f4bdaf5c.esm.js").then(o=>o.EntitySoundcheckCard)}})),k=t.provide(e({name:"GroupSoundcheckContent",component:()=>import("./esm/index-5610fc82.esm.js").then(o=>o.FixedGroupOverviewPage),mountPoint:d})),g=t.provide(e({name:"SoundcheckOverviewPage",component:()=>import("./esm/index-5610fc82.esm.js").then(o=>o.OverviewPage),mountPoint:h})),S=t.provide(e({name:"SoundcheckRoutingPage",component:()=>import("./esm/index-b2acbf0c.esm.js").then(o=>o.RoutingPage),mountPoint:s}));export{R as EntitySoundcheckCard,v as EntitySoundcheckContent,k as GroupSoundcheckContent,g as SoundcheckOverviewPage,S as SoundcheckRoutingPage,t as soundcheckPlugin};
2
2
  //# sourceMappingURL=index.esm.js.map