@spotify/backstage-plugin-pulse-common 0.6.2 → 0.6.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/dist/index.d.ts CHANGED
@@ -245,6 +245,521 @@ interface Choice {
245
245
  /** @public */
246
246
  declare const validateTemplate: (template: SurveyTemplate) => void;
247
247
 
248
+ /** @public */
249
+ declare const templateSchema: {
250
+ $id: string;
251
+ $schema: string;
252
+ title: string;
253
+ type: string;
254
+ properties: {
255
+ template: {
256
+ type: string;
257
+ description: string;
258
+ properties: {
259
+ id: {
260
+ type: string;
261
+ description: string;
262
+ format: string;
263
+ pattern: string;
264
+ minLength: number;
265
+ };
266
+ version: {
267
+ type: string;
268
+ format: string;
269
+ pattern: string;
270
+ description: string;
271
+ };
272
+ name: {
273
+ type: string;
274
+ description: string;
275
+ minLength: number;
276
+ };
277
+ description: {
278
+ type: string;
279
+ description: string;
280
+ };
281
+ owner: {
282
+ type: string;
283
+ description: string;
284
+ minLength: number;
285
+ };
286
+ };
287
+ required: string[];
288
+ additionalProperties: boolean;
289
+ };
290
+ parameters: {
291
+ type: string;
292
+ description: string;
293
+ items: {
294
+ type: string;
295
+ properties: {
296
+ id: {
297
+ type: string;
298
+ description: string;
299
+ format: string;
300
+ pattern: string;
301
+ };
302
+ description: {
303
+ type: string;
304
+ description: string;
305
+ };
306
+ format: {
307
+ type: string;
308
+ enum: string[];
309
+ description: string;
310
+ };
311
+ default: {
312
+ type: string[];
313
+ description: string;
314
+ };
315
+ };
316
+ required: string[];
317
+ oneOf: {
318
+ required: string[];
319
+ }[];
320
+ additionalProperties: boolean;
321
+ };
322
+ };
323
+ macros: {
324
+ type: string;
325
+ description: string;
326
+ additionalProperties: {
327
+ type: string;
328
+ };
329
+ };
330
+ sections: {
331
+ type: string;
332
+ description: string;
333
+ items: {
334
+ type: string;
335
+ description: string;
336
+ properties: {
337
+ id: {
338
+ type: string;
339
+ description: string;
340
+ format: string;
341
+ pattern: string;
342
+ };
343
+ name: {
344
+ type: string;
345
+ description: string;
346
+ };
347
+ display_logic: {
348
+ type: string;
349
+ description: string;
350
+ };
351
+ questions: {
352
+ type: string;
353
+ description: string;
354
+ items: {
355
+ $ref: string;
356
+ };
357
+ };
358
+ pages: {
359
+ type: string;
360
+ description: string;
361
+ items: {
362
+ type: string;
363
+ properties: {
364
+ questions: {
365
+ type: string;
366
+ description: string;
367
+ items: {
368
+ $ref: string;
369
+ };
370
+ };
371
+ };
372
+ required: string[];
373
+ additionalProperties: boolean;
374
+ };
375
+ };
376
+ };
377
+ additionalProperties: boolean;
378
+ required: string[];
379
+ oneOf: {
380
+ required: string[];
381
+ }[];
382
+ };
383
+ };
384
+ };
385
+ additionalProperties: boolean;
386
+ required: string[];
387
+ $defs: {
388
+ question: {
389
+ type: string;
390
+ properties: {
391
+ id: {
392
+ type: string;
393
+ description: string;
394
+ pattern: string;
395
+ };
396
+ text: {
397
+ type: string;
398
+ description: string;
399
+ };
400
+ text_html: {
401
+ type: string;
402
+ description: string;
403
+ };
404
+ type: {
405
+ type: string;
406
+ enum: string[];
407
+ description: string;
408
+ };
409
+ layout: {
410
+ type: string;
411
+ enum: string[];
412
+ description: string;
413
+ };
414
+ display_logic: {
415
+ type: string;
416
+ description: string;
417
+ };
418
+ display_logic_in_page: {
419
+ type: string;
420
+ description: string;
421
+ };
422
+ required: {
423
+ type: string;
424
+ enum: string[];
425
+ description: string;
426
+ };
427
+ validation: {
428
+ type: string;
429
+ description: string;
430
+ properties: {
431
+ min_choices: {
432
+ type: string;
433
+ description: string;
434
+ };
435
+ max_choices: {
436
+ type: string;
437
+ description: string;
438
+ };
439
+ };
440
+ additionalProperties: boolean;
441
+ };
442
+ statements: {
443
+ type: string;
444
+ items: {
445
+ $ref: string;
446
+ };
447
+ };
448
+ dynamic_statements: {
449
+ type: string;
450
+ description: string;
451
+ pattern: string;
452
+ };
453
+ statement_groups: {
454
+ type: string;
455
+ items: {
456
+ type: string;
457
+ properties: {
458
+ statements: {
459
+ type: string;
460
+ items: {
461
+ $ref: string;
462
+ };
463
+ };
464
+ id: {
465
+ type: string;
466
+ description: string;
467
+ };
468
+ display: {
469
+ type: string;
470
+ description: string;
471
+ };
472
+ display_logic: {
473
+ type: string;
474
+ description: string;
475
+ };
476
+ randomization: {
477
+ $ref: string;
478
+ };
479
+ };
480
+ required: string[];
481
+ additionalProperties: boolean;
482
+ };
483
+ };
484
+ choices: {
485
+ type: string;
486
+ items: {
487
+ $ref: string;
488
+ };
489
+ };
490
+ dynamic_choices: {
491
+ type: string;
492
+ description: string;
493
+ pattern: string;
494
+ };
495
+ choice_groups: {
496
+ type: string;
497
+ items: {
498
+ type: string;
499
+ properties: {
500
+ choices: {
501
+ type: string;
502
+ items: {
503
+ $ref: string;
504
+ };
505
+ };
506
+ id: {
507
+ type: string;
508
+ description: string;
509
+ };
510
+ display: {
511
+ type: string;
512
+ description: string;
513
+ };
514
+ display_logic: {
515
+ type: string;
516
+ description: string;
517
+ };
518
+ randomization: {
519
+ $ref: string;
520
+ };
521
+ };
522
+ required: string[];
523
+ additionalProperties: boolean;
524
+ };
525
+ };
526
+ randomization: {
527
+ $ref: string;
528
+ };
529
+ };
530
+ additionalProperties: boolean;
531
+ allOf: ({
532
+ oneOf: {
533
+ required: string[];
534
+ }[];
535
+ } | {
536
+ oneOf: {
537
+ $ref: string;
538
+ }[];
539
+ })[];
540
+ };
541
+ "question-mc-horizontal": {
542
+ type: string;
543
+ properties: {
544
+ type: {
545
+ enum: string[];
546
+ };
547
+ position: {
548
+ const: string;
549
+ };
550
+ };
551
+ required: string[];
552
+ not: {
553
+ anyOf: {
554
+ required: string[];
555
+ }[];
556
+ };
557
+ };
558
+ "question-mc-vertical": {
559
+ type: string;
560
+ properties: {
561
+ type: {
562
+ enum: string[];
563
+ };
564
+ position: {
565
+ const: string;
566
+ };
567
+ };
568
+ required: string[];
569
+ not: {
570
+ anyOf: {
571
+ required: string[];
572
+ }[];
573
+ };
574
+ oneOf: ({
575
+ anyOf: {
576
+ required: string[];
577
+ }[];
578
+ not: {
579
+ required: string[];
580
+ anyOf?: undefined;
581
+ };
582
+ required?: undefined;
583
+ } | {
584
+ required: string[];
585
+ not: {
586
+ anyOf: {
587
+ required: string[];
588
+ }[];
589
+ required?: undefined;
590
+ };
591
+ anyOf?: undefined;
592
+ })[];
593
+ };
594
+ "question-matrix": {
595
+ type: string;
596
+ properties: {
597
+ type: {
598
+ enum: string[];
599
+ };
600
+ };
601
+ required: string[];
602
+ not: {
603
+ anyOf: {
604
+ required: string[];
605
+ }[];
606
+ };
607
+ oneOf: ({
608
+ anyOf: {
609
+ required: string[];
610
+ }[];
611
+ not: {
612
+ required: string[];
613
+ anyOf?: undefined;
614
+ };
615
+ required?: undefined;
616
+ } | {
617
+ required: string[];
618
+ not: {
619
+ anyOf: {
620
+ required: string[];
621
+ }[];
622
+ required?: undefined;
623
+ };
624
+ anyOf?: undefined;
625
+ })[];
626
+ };
627
+ "question-text": {
628
+ type: string;
629
+ properties: {
630
+ type: {
631
+ enum: string[];
632
+ };
633
+ };
634
+ required: string[];
635
+ not: {
636
+ anyOf: {
637
+ required: string[];
638
+ }[];
639
+ };
640
+ };
641
+ "question-description": {
642
+ type: string;
643
+ properties: {
644
+ type: {
645
+ const: string;
646
+ };
647
+ };
648
+ not: {
649
+ anyOf: {
650
+ required: string[];
651
+ }[];
652
+ };
653
+ };
654
+ statement: {
655
+ type: string;
656
+ properties: {
657
+ id: {
658
+ type: string;
659
+ pattern: string;
660
+ description: string;
661
+ };
662
+ display: {
663
+ type: string;
664
+ description: string;
665
+ };
666
+ display_logic: {
667
+ type: string;
668
+ description: string;
669
+ };
670
+ };
671
+ required: string[];
672
+ additionalProperties: boolean;
673
+ };
674
+ choice: {
675
+ type: string;
676
+ properties: {
677
+ display: {
678
+ type: string;
679
+ description: string;
680
+ };
681
+ id: {
682
+ type: string;
683
+ pattern: string;
684
+ description: string;
685
+ };
686
+ value: {
687
+ type: string;
688
+ description: string;
689
+ };
690
+ display_logic: {
691
+ type: string;
692
+ description: string;
693
+ };
694
+ text: {
695
+ type: string;
696
+ enum: string[];
697
+ description: string;
698
+ };
699
+ exclusive_answer: {
700
+ type: string;
701
+ description: string;
702
+ };
703
+ };
704
+ required: string[];
705
+ oneOf: {
706
+ required: string[];
707
+ }[];
708
+ additionalProperties: boolean;
709
+ };
710
+ randomization: {
711
+ type: string;
712
+ description: string;
713
+ properties: {
714
+ type: {
715
+ type: string;
716
+ description: string;
717
+ enum: string[];
718
+ };
719
+ total: {
720
+ type: string;
721
+ description: string;
722
+ };
723
+ order: {
724
+ type: string;
725
+ description: string;
726
+ };
727
+ };
728
+ required: string[];
729
+ oneOf: ({
730
+ properties: {
731
+ type: {
732
+ const: string;
733
+ };
734
+ };
735
+ not: {
736
+ required: string[];
737
+ };
738
+ required?: undefined;
739
+ } | {
740
+ properties: {
741
+ type: {
742
+ const: string;
743
+ };
744
+ };
745
+ required: string[];
746
+ not: {
747
+ required: string[];
748
+ };
749
+ } | {
750
+ properties: {
751
+ type: {
752
+ const: string;
753
+ };
754
+ };
755
+ required: string[];
756
+ not?: undefined;
757
+ })[];
758
+ additionalProperties: boolean;
759
+ };
760
+ };
761
+ };
762
+
248
763
  /** @public */
249
764
  declare const DEFAULT_TEMPLATE_ID = "pulse_default_alpha";
250
765
 
@@ -255,4 +770,4 @@ declare const permissions: {
255
770
  surveyAdministerPermission: _backstage_plugin_permission_common.BasicPermission;
256
771
  };
257
772
 
258
- export { Choice, DEFAULT_TEMPLATE_ID, Question, Randomization, Statement, SurveyTemplate, permissions, validateTemplate };
773
+ export { Choice, DEFAULT_TEMPLATE_ID, Question, Randomization, Statement, SurveyTemplate, permissions, templateSchema, validateTemplate };