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