insync-stage-handler 3.1.2 → 3.1.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/module.js CHANGED
@@ -2208,10 +2208,730 @@ var v3 = (stage => {
2208
2208
  return jsonSchemaValidator$2(stage);
2209
2209
  });
2210
2210
 
2211
+ var $schema$3 = "http://json-schema.org/draft-07/schema#";
2212
+ var id$3 = "stage.live.schema.json";
2213
+ var description$3 = "Version live of stage file";
2214
+ var type$3 = "object";
2215
+ var definitions$3 = {
2216
+ entitiesContainer: {
2217
+ type: "object",
2218
+ properties: {
2219
+ ids: {
2220
+ type: "array",
2221
+ items: {
2222
+ type: "string"
2223
+ }
2224
+ },
2225
+ byId: {
2226
+ type: "object",
2227
+ additionalProperties: {
2228
+ type: "object"
2229
+ }
2230
+ }
2231
+ }
2232
+ },
2233
+ entity: {
2234
+ type: "object",
2235
+ properties: {
2236
+ id: {
2237
+ type: "string"
2238
+ }
2239
+ },
2240
+ required: [
2241
+ "id"
2242
+ ]
2243
+ },
2244
+ asset: {
2245
+ allOf: [
2246
+ {
2247
+ $ref: "#/definitions/entity"
2248
+ },
2249
+ {
2250
+ type: "object",
2251
+ properties: {
2252
+ resource: {
2253
+ type: "string"
2254
+ },
2255
+ annotationsViewerId: {
2256
+ type: "string"
2257
+ }
2258
+ }
2259
+ }
2260
+ ]
2261
+ },
2262
+ file: {
2263
+ allOf: [
2264
+ {
2265
+ $ref: "#/definitions/entity"
2266
+ },
2267
+ {
2268
+ type: "object",
2269
+ properties: {
2270
+ type: {
2271
+ type: "string"
2272
+ },
2273
+ path: {
2274
+ type: "string"
2275
+ },
2276
+ start: {
2277
+ format: "date-time",
2278
+ message: "Is not a valid date time"
2279
+ },
2280
+ end: {
2281
+ format: "date-time",
2282
+ message: "Is not a valid date time",
2283
+ formatMinimum: {
2284
+ $data: "1/start"
2285
+ }
2286
+ }
2287
+ },
2288
+ required: [
2289
+ "type",
2290
+ "path"
2291
+ ],
2292
+ "if": {
2293
+ properties: {
2294
+ type: {
2295
+ "const": "video"
2296
+ }
2297
+ }
2298
+ },
2299
+ then: {
2300
+ required: [
2301
+ "fps"
2302
+ ]
2303
+ }
2304
+ }
2305
+ ]
2306
+ },
2307
+ resource: {
2308
+ allOf: [
2309
+ {
2310
+ $ref: "#/definitions/entity"
2311
+ },
2312
+ {
2313
+ type: "object",
2314
+ properties: {
2315
+ type: {
2316
+ type: "string"
2317
+ },
2318
+ files: {
2319
+ type: "array",
2320
+ items: {
2321
+ type: "string"
2322
+ }
2323
+ }
2324
+ }
2325
+ }
2326
+ ]
2327
+ },
2328
+ dataViewer: {
2329
+ allOf: [
2330
+ {
2331
+ $ref: "#/definitions/entity"
2332
+ },
2333
+ {
2334
+ type: "object",
2335
+ properties: {
2336
+ id: {
2337
+ type: "string"
2338
+ },
2339
+ configVisible: {
2340
+ type: "boolean"
2341
+ },
2342
+ configAvailable: {
2343
+ type: "boolean"
2344
+ },
2345
+ outletId: {
2346
+ type: "string"
2347
+ },
2348
+ registered: {
2349
+ type: "boolean"
2350
+ }
2351
+ }
2352
+ }
2353
+ ]
2354
+ },
2355
+ dataStream: {
2356
+ allOf: [
2357
+ {
2358
+ $ref: "#/definitions/entity"
2359
+ },
2360
+ {
2361
+ type: "object",
2362
+ properties: {
2363
+ color: {
2364
+ type: "string"
2365
+ }
2366
+ },
2367
+ required: [
2368
+ "color"
2369
+ ]
2370
+ }
2371
+ ]
2372
+ },
2373
+ outlet: {
2374
+ allOf: [
2375
+ {
2376
+ $ref: "#/definitions/entity"
2377
+ },
2378
+ {
2379
+ type: "object",
2380
+ properties: {
2381
+ streams: {
2382
+ type: "array",
2383
+ items: {
2384
+ type: "string"
2385
+ }
2386
+ },
2387
+ loading: {
2388
+ type: "boolean"
2389
+ },
2390
+ resolution: {
2391
+ type: "number"
2392
+ },
2393
+ visible: {
2394
+ type: "number"
2395
+ }
2396
+ }
2397
+ }
2398
+ ]
2399
+ },
2400
+ annotation: {
2401
+ allOf: [
2402
+ {
2403
+ $ref: "#/definitions/entity"
2404
+ },
2405
+ {
2406
+ type: "object",
2407
+ properties: {
2408
+ type: {
2409
+ type: "string"
2410
+ },
2411
+ content: {
2412
+ type: "string"
2413
+ },
2414
+ contentRevision: {
2415
+ type: "number"
2416
+ },
2417
+ streamPoints: {
2418
+ type: "array",
2419
+ items: {
2420
+ type: "string"
2421
+ }
2422
+ },
2423
+ textEditable: {
2424
+ type: "boolean"
2425
+ },
2426
+ style: {
2427
+ type: "object"
2428
+ }
2429
+ }
2430
+ }
2431
+ ]
2432
+ },
2433
+ streamPoint: {
2434
+ allOf: [
2435
+ {
2436
+ $ref: "#/definitions/entity"
2437
+ },
2438
+ {
2439
+ type: "object",
2440
+ properties: {
2441
+ frequency: {
2442
+ type: "number"
2443
+ },
2444
+ x: {
2445
+ type: "object",
2446
+ properties: {
2447
+ active: {
2448
+ type: "boolean"
2449
+ },
2450
+ scaled: {
2451
+ type: "boolean"
2452
+ },
2453
+ format: {
2454
+ type: "string"
2455
+ }
2456
+ }
2457
+ },
2458
+ y: {
2459
+ type: "object",
2460
+ properties: {
2461
+ active: {
2462
+ type: "boolean"
2463
+ },
2464
+ format: {
2465
+ type: "string"
2466
+ }
2467
+ }
2468
+ },
2469
+ stream: {
2470
+ type: "string"
2471
+ },
2472
+ outletId: {
2473
+ type: "string"
2474
+ }
2475
+ }
2476
+ }
2477
+ ]
2478
+ },
2479
+ annotationViewer: {
2480
+ allOf: [
2481
+ {
2482
+ $ref: "#/definitions/entity"
2483
+ },
2484
+ {
2485
+ type: "object",
2486
+ properties: {
2487
+ id: {
2488
+ type: "string"
2489
+ },
2490
+ active: {
2491
+ type: "boolean"
2492
+ },
2493
+ editable: {
2494
+ type: "boolean"
2495
+ },
2496
+ annotations: {
2497
+ type: "array",
2498
+ items: {
2499
+ type: "string"
2500
+ }
2501
+ },
2502
+ inTextEditMode: {
2503
+ type: "boolean"
2504
+ }
2505
+ }
2506
+ }
2507
+ ]
2508
+ },
2509
+ layoutSection: {
2510
+ allOf: [
2511
+ {
2512
+ $ref: "#/definitions/entity"
2513
+ },
2514
+ {
2515
+ type: "object",
2516
+ properties: {
2517
+ type: {
2518
+ type: "string"
2519
+ },
2520
+ title: {
2521
+ type: "string"
2522
+ },
2523
+ isClosable: {
2524
+ type: "boolean"
2525
+ },
2526
+ reorderEnabled: {
2527
+ type: "boolean"
2528
+ },
2529
+ content: {
2530
+ type: "array",
2531
+ items: {
2532
+ type: "string"
2533
+ }
2534
+ },
2535
+ props: {
2536
+ type: "object"
2537
+ },
2538
+ component: {
2539
+ type: "string"
2540
+ },
2541
+ componentState: {
2542
+ type: "object"
2543
+ },
2544
+ width: {
2545
+ type: "number"
2546
+ },
2547
+ height: {
2548
+ type: "number"
2549
+ }
2550
+ }
2551
+ }
2552
+ ]
2553
+ },
2554
+ axis: {
2555
+ allOf: [
2556
+ {
2557
+ $ref: "#/definitions/entity"
2558
+ },
2559
+ {
2560
+ type: "object",
2561
+ properties: {
2562
+ color: {
2563
+ type: "string"
2564
+ },
2565
+ resources: {
2566
+ type: "array",
2567
+ items: {
2568
+ type: "string"
2569
+ }
2570
+ }
2571
+ }
2572
+ }
2573
+ ]
2574
+ },
2575
+ assetsContainer: {
2576
+ allOf: [
2577
+ {
2578
+ $ref: "#/definitions/entitiesContainer"
2579
+ },
2580
+ {
2581
+ type: "object",
2582
+ properties: {
2583
+ byId: {
2584
+ type: "object",
2585
+ additionalProperties: {
2586
+ $ref: "#/definitions/asset"
2587
+ }
2588
+ }
2589
+ }
2590
+ }
2591
+ ]
2592
+ },
2593
+ annotationsContainer: {
2594
+ allOf: [
2595
+ {
2596
+ $ref: "#/definitions/entitiesContainer"
2597
+ },
2598
+ {
2599
+ type: "object",
2600
+ properties: {
2601
+ byId: {
2602
+ type: "object",
2603
+ additionalProperties: {
2604
+ $ref: "#/definitions/annotation"
2605
+ }
2606
+ }
2607
+ }
2608
+ }
2609
+ ]
2610
+ },
2611
+ streamPointsContainer: {
2612
+ allOf: [
2613
+ {
2614
+ $ref: "#/definitions/entitiesContainer"
2615
+ },
2616
+ {
2617
+ type: "object",
2618
+ properties: {
2619
+ byId: {
2620
+ type: "object",
2621
+ additionalProperties: {
2622
+ $ref: "#/definitions/streamPoint"
2623
+ }
2624
+ }
2625
+ }
2626
+ }
2627
+ ]
2628
+ },
2629
+ annotationsViewersContainer: {
2630
+ allOf: [
2631
+ {
2632
+ $ref: "#/definitions/entitiesContainer"
2633
+ },
2634
+ {
2635
+ type: "object",
2636
+ properties: {
2637
+ byId: {
2638
+ type: "object",
2639
+ additionalProperties: {
2640
+ $ref: "#/definitions/annotationViewer"
2641
+ }
2642
+ }
2643
+ }
2644
+ }
2645
+ ]
2646
+ },
2647
+ dataViewersContainer: {
2648
+ allOf: [
2649
+ {
2650
+ $ref: "#/definitions/entitiesContainer"
2651
+ },
2652
+ {
2653
+ type: "object",
2654
+ properties: {
2655
+ byId: {
2656
+ type: "object",
2657
+ additionalProperties: {
2658
+ $ref: "#/definitions/dataViewer"
2659
+ }
2660
+ }
2661
+ }
2662
+ }
2663
+ ]
2664
+ },
2665
+ dataStreamsContainer: {
2666
+ allOf: [
2667
+ {
2668
+ $ref: "#/definitions/entitiesContainer"
2669
+ },
2670
+ {
2671
+ type: "object",
2672
+ properties: {
2673
+ byId: {
2674
+ type: "object",
2675
+ additionalProperties: {
2676
+ $ref: "#/definitions/dataStream"
2677
+ }
2678
+ }
2679
+ }
2680
+ }
2681
+ ]
2682
+ },
2683
+ outletsContainer: {
2684
+ allOf: [
2685
+ {
2686
+ $ref: "#/definitions/entitiesContainer"
2687
+ },
2688
+ {
2689
+ type: "object",
2690
+ properties: {
2691
+ byId: {
2692
+ type: "object",
2693
+ additionalProperties: {
2694
+ $ref: "#/definitions/outlet"
2695
+ }
2696
+ }
2697
+ }
2698
+ }
2699
+ ]
2700
+ },
2701
+ filesContainer: {
2702
+ allOf: [
2703
+ {
2704
+ $ref: "#/definitions/entitiesContainer"
2705
+ },
2706
+ {
2707
+ type: "object",
2708
+ properties: {
2709
+ byId: {
2710
+ type: "object",
2711
+ additionalProperties: {
2712
+ $ref: "#/definitions/file"
2713
+ }
2714
+ }
2715
+ }
2716
+ }
2717
+ ]
2718
+ },
2719
+ resourcesContainer: {
2720
+ allOf: [
2721
+ {
2722
+ $ref: "#/definitions/entitiesContainer"
2723
+ },
2724
+ {
2725
+ type: "object",
2726
+ properties: {
2727
+ byId: {
2728
+ type: "object",
2729
+ additionalProperties: {
2730
+ $ref: "#/definitions/resource"
2731
+ }
2732
+ }
2733
+ }
2734
+ }
2735
+ ]
2736
+ },
2737
+ layoutSectionsContainer: {
2738
+ allOf: [
2739
+ {
2740
+ $ref: "#/definitions/entitiesContainer"
2741
+ },
2742
+ {
2743
+ type: "object",
2744
+ properties: {
2745
+ byId: {
2746
+ type: "object",
2747
+ additionalProperties: {
2748
+ $ref: "#/definitions/layoutSection"
2749
+ }
2750
+ }
2751
+ }
2752
+ }
2753
+ ]
2754
+ },
2755
+ axesContainer: {
2756
+ allOf: [
2757
+ {
2758
+ $ref: "#/definitions/entitiesContainer"
2759
+ },
2760
+ {
2761
+ type: "object",
2762
+ properties: {
2763
+ byId: {
2764
+ type: "object",
2765
+ additionalProperties: {
2766
+ $ref: "#/definitions/axis"
2767
+ }
2768
+ }
2769
+ }
2770
+ }
2771
+ ]
2772
+ }
2773
+ };
2774
+ var properties$3 = {
2775
+ menu: {
2776
+ type: "object",
2777
+ properties: {
2778
+ visible: {
2779
+ type: "boolean"
2780
+ }
2781
+ }
2782
+ },
2783
+ files: {
2784
+ type: "object",
2785
+ properties: {
2786
+ entities: {
2787
+ type: "object",
2788
+ properties: {
2789
+ files: {
2790
+ $ref: "#/definitions/filesContainer"
2791
+ }
2792
+ }
2793
+ }
2794
+ }
2795
+ },
2796
+ resources: {
2797
+ type: "object",
2798
+ properties: {
2799
+ entities: {
2800
+ type: "object",
2801
+ properties: {
2802
+ resources: {
2803
+ $ref: "#/definitions/resourcesContainer"
2804
+ }
2805
+ }
2806
+ }
2807
+ }
2808
+ },
2809
+ assets: {
2810
+ type: "object",
2811
+ properties: {
2812
+ entities: {
2813
+ type: "object",
2814
+ properties: {
2815
+ assets: {
2816
+ $ref: "#/definitions/assetsContainer"
2817
+ }
2818
+ }
2819
+ }
2820
+ }
2821
+ },
2822
+ data: {
2823
+ type: "object",
2824
+ properties: {
2825
+ measurementScale: {
2826
+ type: "number"
2827
+ },
2828
+ entities: {
2829
+ type: "object",
2830
+ properties: {
2831
+ dataViewers: {
2832
+ $ref: "#/definitions/dataViewersContainer"
2833
+ },
2834
+ dataStreams: {
2835
+ $ref: "#/definitions/dataStreamsContainer"
2836
+ },
2837
+ outlets: {
2838
+ $ref: "#/definitions/outletsContainer"
2839
+ }
2840
+ }
2841
+ }
2842
+ }
2843
+ },
2844
+ annotations: {
2845
+ type: "object",
2846
+ properties: {
2847
+ allowed: {
2848
+ type: "boolean"
2849
+ },
2850
+ editorOpen: {
2851
+ type: "boolean"
2852
+ },
2853
+ streamPointSelectorOpen: {
2854
+ type: "boolean"
2855
+ },
2856
+ entities: {
2857
+ type: "object",
2858
+ properties: {
2859
+ annotations: {
2860
+ $ref: "#/definitions/entitiesContainer"
2861
+ },
2862
+ streamPoints: {
2863
+ $ref: "#/definitions/streamPointsContainer"
2864
+ },
2865
+ annotationsViewers: {
2866
+ $ref: "#/definitions/annotationsViewersContainer"
2867
+ }
2868
+ }
2869
+ }
2870
+ }
2871
+ },
2872
+ timeline: {
2873
+ type: "object",
2874
+ properties: {
2875
+ entities: {
2876
+ type: "object",
2877
+ properties: {
2878
+ axes: {
2879
+ $ref: "#/definitions/axesContainer"
2880
+ }
2881
+ }
2882
+ }
2883
+ }
2884
+ },
2885
+ timer: {
2886
+ type: "object",
2887
+ properties: {
2888
+ running: {
2889
+ type: "boolean"
2890
+ },
2891
+ startTime: {
2892
+ oneOf: [
2893
+ {
2894
+ type: "number"
2895
+ },
2896
+ {
2897
+ type: "null"
2898
+ }
2899
+ ]
2900
+ },
2901
+ waiting: {
2902
+ type: "boolean"
2903
+ },
2904
+ waitingReasons: {
2905
+ type: "array"
2906
+ },
2907
+ range: {
2908
+ type: "array"
2909
+ },
2910
+ rate: {
2911
+ type: "number"
2912
+ }
2913
+ }
2914
+ }
2915
+ };
2916
+ var schema$3 = {
2917
+ $schema: $schema$3,
2918
+ id: id$3,
2919
+ description: description$3,
2920
+ type: type$3,
2921
+ definitions: definitions$3,
2922
+ properties: properties$3
2923
+ };
2924
+
2925
+ const jsonSchemaValidator$3 = createAJVValidator(schema$3);
2926
+ var live = (stage => {
2927
+ return jsonSchemaValidator$3(stage);
2928
+ });
2929
+
2211
2930
  const map = Object.freeze({
2212
2931
  "1": v1,
2213
2932
  "2": v2,
2214
- "3": v3
2933
+ "3": v3,
2934
+ live
2215
2935
  });
2216
2936
 
2217
2937
  /**
@@ -2237,7 +2957,7 @@ var validate = ((stage, options = {}) => {
2237
2957
  return pipe(defaultTo(detectVersion(stage)), lookup(map), applyTo(stage))(version);
2238
2958
  });
2239
2959
 
2240
- var versions = Object.freeze([1, 2, 3]);
2960
+ var versions = Object.freeze([1, 2, 3, "live"]);
2241
2961
 
2242
2962
  /**
2243
2963
  * v1-to-v2.js
@@ -3032,8 +3752,8 @@ const settingsCleaner = pipe(dissocPath(["timer", "wantedTime"]));
3032
3752
  var settingsHandler = ((stage, settings) => pipe(settingsUpgrader(stage), settingsCleaner)(settings));
3033
3753
 
3034
3754
  var name = "insync-stage-handler";
3035
- var version = "3.1.1";
3036
- var description$3 = "Handles stages files. This consists of validating, upgrading and consolodating them.";
3755
+ var version = "3.1.2";
3756
+ var description$4 = "Handles stages files. This consists of validating, upgrading and consolodating them.";
3037
3757
  var author = "David Ammeraal (Noterik B.V.)";
3038
3758
  var license = "MIT";
3039
3759
  var main = "dist/library.js";
@@ -3086,7 +3806,7 @@ var dependencies = {
3086
3806
  var pkg = {
3087
3807
  name: name,
3088
3808
  version: version,
3089
- description: description$3,
3809
+ description: description$4,
3090
3810
  author: author,
3091
3811
  license: license,
3092
3812
  main: main,