@data-fair/lib-common-types 1.16.4 → 1.17.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.
- package/package.json +1 -1
- package/session/.type/index.d.ts +1 -0
- package/session/.type/validate.js +227 -75
- package/session/schema.d.ts +3 -0
- package/session/schema.js +3 -0
- package/theme/index.js +1 -1
package/package.json
CHANGED
package/session/.type/index.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ import { fullFormats } from "ajv-formats/dist/formats.js";
|
|
|
5
5
|
"use strict";
|
|
6
6
|
export const validate = validate14;
|
|
7
7
|
export default validate14;
|
|
8
|
-
const schema16 = {"$id":"https://github.com/data-fair/lib/session-state","x-exports":["types","validate"],"type":"object","title":"session state","additionalProperties":false,"required":["lang"],"properties":{"user":{"$ref":"#/$defs/user"},"organization":{"$ref":"#/$defs/organizationMembership"},"account":{"$ref":"#/$defs/account"},"accountRole":{"type":"string"},"siteRole":{"type":"string"},"lang":{"type":"string"},"dark":{"deprecated":true,"type":"boolean"}},"$defs":{"organizationMembership":{"type":"object","additionalProperties":false,"required":["id","name","role"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"roleLabel":{"type":"string"},"department":{"type":"string"},"departmentName":{"type":"string"},"dflt":{"type":"integer","enum":[1]}}},"userRef":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"user":{"type":"object","additionalProperties":false,"required":["email","id","name","organizations"],"properties":{"email":{"type":"string","format":"email"},"id":{"type":"string"},"name":{"type":"string"},"organizations":{"type":"array","items":{"$ref":"#/$defs/organizationMembership"}},"isAdmin":{"type":"integer","enum":[1]},"adminMode":{"type":"integer","enum":[1]},"asAdmin":{"$ref":"#/$defs/userRef"},"pd":{"type":"string","format":"date"},"ipa":{"type":"integer","title":"short for ignorePersonalAccount","enum":[1]},"idp":{"type":"integer","title":"Is the user coming from a core ID provider ?","enum":[1]},"os":{"type":"integer","title":"short for orgStorage","enum":[1]},"rememberMe":{"type":"integer","enum":[1]},"siteOwner":{"$ref":"#/$defs/account"}}},"account":{"type":"object","additionalProperties":false,"required":["type","id","name"],"properties":{"type":{"type":"string","enum":["user","organization"]},"id":{"type":"string"},"name":{"type":"string"},"department":{"type":"string"},"departmentName":{"type":"string"}}}}};
|
|
8
|
+
const schema16 = {"$id":"https://github.com/data-fair/lib/session-state","x-exports":["types","validate"],"type":"object","title":"session state","additionalProperties":false,"required":["lang"],"properties":{"user":{"$ref":"#/$defs/user"},"organization":{"$ref":"#/$defs/organizationMembership"},"account":{"$ref":"#/$defs/account"},"accountRole":{"type":"string"},"siteRole":{"type":"string"},"lang":{"type":"string"},"dark":{"deprecated":true,"type":"boolean"}},"$defs":{"organizationMembership":{"type":"object","additionalProperties":false,"required":["id","name","role"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"roleLabel":{"type":"string"},"department":{"type":"string"},"departmentName":{"type":"string"},"dflt":{"type":"integer","enum":[1]}}},"userRef":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"user":{"type":"object","additionalProperties":false,"required":["email","id","name","organizations"],"properties":{"email":{"type":"string","format":"email"},"id":{"type":"string"},"name":{"type":"string"},"organizations":{"type":"array","items":{"$ref":"#/$defs/organizationMembership"}},"isAdmin":{"type":"integer","enum":[1]},"adminMode":{"type":"integer","enum":[1]},"asAdmin":{"$ref":"#/$defs/userRef"},"asAdminOrg":{"$ref":"#/$defs/organizationMembership"},"pd":{"type":"string","format":"date"},"ipa":{"type":"integer","title":"short for ignorePersonalAccount","enum":[1]},"idp":{"type":"integer","title":"Is the user coming from a core ID provider ?","enum":[1]},"os":{"type":"integer","title":"short for orgStorage","enum":[1]},"rememberMe":{"type":"integer","enum":[1]},"siteOwner":{"$ref":"#/$defs/account"}}},"account":{"type":"object","additionalProperties":false,"required":["type","id","name"],"properties":{"type":{"type":"string","enum":["user","organization"]},"id":{"type":"string"},"name":{"type":"string"},"department":{"type":"string"},"departmentName":{"type":"string"}}}}};
|
|
9
9
|
const schema18 = {"type":"object","additionalProperties":false,"required":["id","name","role"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"roleLabel":{"type":"string"},"department":{"type":"string"},"departmentName":{"type":"string"},"dflt":{"type":"integer","enum":[1]}}};
|
|
10
|
-
const
|
|
11
|
-
const schema17 = {"type":"object","additionalProperties":false,"required":["email","id","name","organizations"],"properties":{"email":{"type":"string","format":"email"},"id":{"type":"string"},"name":{"type":"string"},"organizations":{"type":"array","items":{"$ref":"#/$defs/organizationMembership"}},"isAdmin":{"type":"integer","enum":[1]},"adminMode":{"type":"integer","enum":[1]},"asAdmin":{"$ref":"#/$defs/userRef"},"pd":{"type":"string","format":"date"},"ipa":{"type":"integer","title":"short for ignorePersonalAccount","enum":[1]},"idp":{"type":"integer","title":"Is the user coming from a core ID provider ?","enum":[1]},"os":{"type":"integer","title":"short for orgStorage","enum":[1]},"rememberMe":{"type":"integer","enum":[1]},"siteOwner":{"$ref":"#/$defs/account"}}};
|
|
10
|
+
const schema21 = {"type":"object","additionalProperties":false,"required":["type","id","name"],"properties":{"type":{"type":"string","enum":["user","organization"]},"id":{"type":"string"},"name":{"type":"string"},"department":{"type":"string"},"departmentName":{"type":"string"}}};
|
|
11
|
+
const schema17 = {"type":"object","additionalProperties":false,"required":["email","id","name","organizations"],"properties":{"email":{"type":"string","format":"email"},"id":{"type":"string"},"name":{"type":"string"},"organizations":{"type":"array","items":{"$ref":"#/$defs/organizationMembership"}},"isAdmin":{"type":"integer","enum":[1]},"adminMode":{"type":"integer","enum":[1]},"asAdmin":{"$ref":"#/$defs/userRef"},"asAdminOrg":{"$ref":"#/$defs/organizationMembership"},"pd":{"type":"string","format":"date"},"ipa":{"type":"integer","title":"short for ignorePersonalAccount","enum":[1]},"idp":{"type":"integer","title":"Is the user coming from a core ID provider ?","enum":[1]},"os":{"type":"integer","title":"short for orgStorage","enum":[1]},"rememberMe":{"type":"integer","enum":[1]},"siteOwner":{"$ref":"#/$defs/account"}}};
|
|
12
12
|
const schema19 = {"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}};
|
|
13
13
|
const func2 = Object.prototype.hasOwnProperty;
|
|
14
14
|
const formats0 = /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;
|
|
@@ -404,11 +404,11 @@ vErrors.push(err32);
|
|
|
404
404
|
errors++;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
if(data.
|
|
408
|
-
let data17 = data.
|
|
409
|
-
if(typeof data17
|
|
410
|
-
if(
|
|
411
|
-
const err33 = {instancePath:instancePath+"/
|
|
407
|
+
if(data.asAdminOrg !== undefined){
|
|
408
|
+
let data17 = data.asAdminOrg;
|
|
409
|
+
if(data17 && typeof data17 == "object" && !Array.isArray(data17)){
|
|
410
|
+
if(data17.id === undefined){
|
|
411
|
+
const err33 = {instancePath:instancePath+"/asAdminOrg",schemaPath:"#/$defs/organizationMembership/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};
|
|
412
412
|
if(vErrors === null){
|
|
413
413
|
vErrors = [err33];
|
|
414
414
|
}
|
|
@@ -417,9 +417,8 @@ vErrors.push(err33);
|
|
|
417
417
|
}
|
|
418
418
|
errors++;
|
|
419
419
|
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
const err34 = {instancePath:instancePath+"/pd",schemaPath:"#/properties/pd/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
420
|
+
if(data17.name === undefined){
|
|
421
|
+
const err34 = {instancePath:instancePath+"/asAdminOrg",schemaPath:"#/$defs/organizationMembership/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};
|
|
423
422
|
if(vErrors === null){
|
|
424
423
|
vErrors = [err34];
|
|
425
424
|
}
|
|
@@ -428,11 +427,8 @@ vErrors.push(err34);
|
|
|
428
427
|
}
|
|
429
428
|
errors++;
|
|
430
429
|
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
let data18 = data.ipa;
|
|
434
|
-
if(!((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18)))){
|
|
435
|
-
const err35 = {instancePath:instancePath+"/ipa",schemaPath:"#/properties/ipa/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
|
|
430
|
+
if(data17.role === undefined){
|
|
431
|
+
const err35 = {instancePath:instancePath+"/asAdminOrg",schemaPath:"#/$defs/organizationMembership/required",keyword:"required",params:{missingProperty: "role"},message:"must have required property '"+"role"+"'"};
|
|
436
432
|
if(vErrors === null){
|
|
437
433
|
vErrors = [err35];
|
|
438
434
|
}
|
|
@@ -441,8 +437,9 @@ vErrors.push(err35);
|
|
|
441
437
|
}
|
|
442
438
|
errors++;
|
|
443
439
|
}
|
|
444
|
-
|
|
445
|
-
|
|
440
|
+
for(const key3 in data17){
|
|
441
|
+
if(!(((((((key3 === "id") || (key3 === "name")) || (key3 === "role")) || (key3 === "roleLabel")) || (key3 === "department")) || (key3 === "departmentName")) || (key3 === "dflt"))){
|
|
442
|
+
const err36 = {instancePath:instancePath+"/asAdminOrg",schemaPath:"#/$defs/organizationMembership/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};
|
|
446
443
|
if(vErrors === null){
|
|
447
444
|
vErrors = [err36];
|
|
448
445
|
}
|
|
@@ -452,10 +449,9 @@ vErrors.push(err36);
|
|
|
452
449
|
errors++;
|
|
453
450
|
}
|
|
454
451
|
}
|
|
455
|
-
if(
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
const err37 = {instancePath:instancePath+"/idp",schemaPath:"#/properties/idp/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
|
|
452
|
+
if(data17.id !== undefined){
|
|
453
|
+
if(typeof data17.id !== "string"){
|
|
454
|
+
const err37 = {instancePath:instancePath+"/asAdminOrg/id",schemaPath:"#/$defs/organizationMembership/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
459
455
|
if(vErrors === null){
|
|
460
456
|
vErrors = [err37];
|
|
461
457
|
}
|
|
@@ -464,8 +460,10 @@ vErrors.push(err37);
|
|
|
464
460
|
}
|
|
465
461
|
errors++;
|
|
466
462
|
}
|
|
467
|
-
|
|
468
|
-
|
|
463
|
+
}
|
|
464
|
+
if(data17.name !== undefined){
|
|
465
|
+
if(typeof data17.name !== "string"){
|
|
466
|
+
const err38 = {instancePath:instancePath+"/asAdminOrg/name",schemaPath:"#/$defs/organizationMembership/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
469
467
|
if(vErrors === null){
|
|
470
468
|
vErrors = [err38];
|
|
471
469
|
}
|
|
@@ -475,10 +473,9 @@ vErrors.push(err38);
|
|
|
475
473
|
errors++;
|
|
476
474
|
}
|
|
477
475
|
}
|
|
478
|
-
if(
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
const err39 = {instancePath:instancePath+"/os",schemaPath:"#/properties/os/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
|
|
476
|
+
if(data17.role !== undefined){
|
|
477
|
+
if(typeof data17.role !== "string"){
|
|
478
|
+
const err39 = {instancePath:instancePath+"/asAdminOrg/role",schemaPath:"#/$defs/organizationMembership/properties/role/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
482
479
|
if(vErrors === null){
|
|
483
480
|
vErrors = [err39];
|
|
484
481
|
}
|
|
@@ -487,8 +484,10 @@ vErrors.push(err39);
|
|
|
487
484
|
}
|
|
488
485
|
errors++;
|
|
489
486
|
}
|
|
490
|
-
|
|
491
|
-
|
|
487
|
+
}
|
|
488
|
+
if(data17.roleLabel !== undefined){
|
|
489
|
+
if(typeof data17.roleLabel !== "string"){
|
|
490
|
+
const err40 = {instancePath:instancePath+"/asAdminOrg/roleLabel",schemaPath:"#/$defs/organizationMembership/properties/roleLabel/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
492
491
|
if(vErrors === null){
|
|
493
492
|
vErrors = [err40];
|
|
494
493
|
}
|
|
@@ -498,10 +497,9 @@ vErrors.push(err40);
|
|
|
498
497
|
errors++;
|
|
499
498
|
}
|
|
500
499
|
}
|
|
501
|
-
if(
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
const err41 = {instancePath:instancePath+"/rememberMe",schemaPath:"#/properties/rememberMe/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
|
|
500
|
+
if(data17.department !== undefined){
|
|
501
|
+
if(typeof data17.department !== "string"){
|
|
502
|
+
const err41 = {instancePath:instancePath+"/asAdminOrg/department",schemaPath:"#/$defs/organizationMembership/properties/department/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
505
503
|
if(vErrors === null){
|
|
506
504
|
vErrors = [err41];
|
|
507
505
|
}
|
|
@@ -510,8 +508,10 @@ vErrors.push(err41);
|
|
|
510
508
|
}
|
|
511
509
|
errors++;
|
|
512
510
|
}
|
|
513
|
-
|
|
514
|
-
|
|
511
|
+
}
|
|
512
|
+
if(data17.departmentName !== undefined){
|
|
513
|
+
if(typeof data17.departmentName !== "string"){
|
|
514
|
+
const err42 = {instancePath:instancePath+"/asAdminOrg/departmentName",schemaPath:"#/$defs/organizationMembership/properties/departmentName/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
515
515
|
if(vErrors === null){
|
|
516
516
|
vErrors = [err42];
|
|
517
517
|
}
|
|
@@ -521,11 +521,10 @@ vErrors.push(err42);
|
|
|
521
521
|
errors++;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
if(
|
|
525
|
-
let
|
|
526
|
-
if(
|
|
527
|
-
|
|
528
|
-
const err43 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};
|
|
524
|
+
if(data17.dflt !== undefined){
|
|
525
|
+
let data24 = data17.dflt;
|
|
526
|
+
if(!((typeof data24 == "number") && (!(data24 % 1) && !isNaN(data24)))){
|
|
527
|
+
const err43 = {instancePath:instancePath+"/asAdminOrg/dflt",schemaPath:"#/$defs/organizationMembership/properties/dflt/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
|
|
529
528
|
if(vErrors === null){
|
|
530
529
|
vErrors = [err43];
|
|
531
530
|
}
|
|
@@ -534,8 +533,8 @@ vErrors.push(err43);
|
|
|
534
533
|
}
|
|
535
534
|
errors++;
|
|
536
535
|
}
|
|
537
|
-
if(
|
|
538
|
-
const err44 = {instancePath:instancePath+"/
|
|
536
|
+
if(!(data24 === 1)){
|
|
537
|
+
const err44 = {instancePath:instancePath+"/asAdminOrg/dflt",schemaPath:"#/$defs/organizationMembership/properties/dflt/enum",keyword:"enum",params:{allowedValues: schema18.properties.dflt.enum},message:"must be equal to one of the allowed values"};
|
|
539
538
|
if(vErrors === null){
|
|
540
539
|
vErrors = [err44];
|
|
541
540
|
}
|
|
@@ -544,8 +543,10 @@ vErrors.push(err44);
|
|
|
544
543
|
}
|
|
545
544
|
errors++;
|
|
546
545
|
}
|
|
547
|
-
|
|
548
|
-
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
else {
|
|
549
|
+
const err45 = {instancePath:instancePath+"/asAdminOrg",schemaPath:"#/$defs/organizationMembership/type",keyword:"type",params:{type: "object"},message:"must be object"};
|
|
549
550
|
if(vErrors === null){
|
|
550
551
|
vErrors = [err45];
|
|
551
552
|
}
|
|
@@ -554,9 +555,12 @@ vErrors.push(err45);
|
|
|
554
555
|
}
|
|
555
556
|
errors++;
|
|
556
557
|
}
|
|
557
|
-
|
|
558
|
-
if(
|
|
559
|
-
|
|
558
|
+
}
|
|
559
|
+
if(data.pd !== undefined){
|
|
560
|
+
let data25 = data.pd;
|
|
561
|
+
if(typeof data25 === "string"){
|
|
562
|
+
if(!(formats2.validate(data25))){
|
|
563
|
+
const err46 = {instancePath:instancePath+"/pd",schemaPath:"#/properties/pd/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\""};
|
|
560
564
|
if(vErrors === null){
|
|
561
565
|
vErrors = [err46];
|
|
562
566
|
}
|
|
@@ -566,10 +570,8 @@ vErrors.push(err46);
|
|
|
566
570
|
errors++;
|
|
567
571
|
}
|
|
568
572
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
if(typeof data23 !== "string"){
|
|
572
|
-
const err47 = {instancePath:instancePath+"/siteOwner/type",schemaPath:"#/$defs/account/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
573
|
+
else {
|
|
574
|
+
const err47 = {instancePath:instancePath+"/pd",schemaPath:"#/properties/pd/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
573
575
|
if(vErrors === null){
|
|
574
576
|
vErrors = [err47];
|
|
575
577
|
}
|
|
@@ -578,8 +580,11 @@ vErrors.push(err47);
|
|
|
578
580
|
}
|
|
579
581
|
errors++;
|
|
580
582
|
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
+
}
|
|
584
|
+
if(data.ipa !== undefined){
|
|
585
|
+
let data26 = data.ipa;
|
|
586
|
+
if(!((typeof data26 == "number") && (!(data26 % 1) && !isNaN(data26)))){
|
|
587
|
+
const err48 = {instancePath:instancePath+"/ipa",schemaPath:"#/properties/ipa/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
|
|
583
588
|
if(vErrors === null){
|
|
584
589
|
vErrors = [err48];
|
|
585
590
|
}
|
|
@@ -588,10 +593,8 @@ vErrors.push(err48);
|
|
|
588
593
|
}
|
|
589
594
|
errors++;
|
|
590
595
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
if(typeof data22.id !== "string"){
|
|
594
|
-
const err49 = {instancePath:instancePath+"/siteOwner/id",schemaPath:"#/$defs/account/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
596
|
+
if(!(data26 === 1)){
|
|
597
|
+
const err49 = {instancePath:instancePath+"/ipa",schemaPath:"#/properties/ipa/enum",keyword:"enum",params:{allowedValues: schema17.properties.ipa.enum},message:"must be equal to one of the allowed values"};
|
|
595
598
|
if(vErrors === null){
|
|
596
599
|
vErrors = [err49];
|
|
597
600
|
}
|
|
@@ -601,9 +604,10 @@ vErrors.push(err49);
|
|
|
601
604
|
errors++;
|
|
602
605
|
}
|
|
603
606
|
}
|
|
604
|
-
if(
|
|
605
|
-
|
|
606
|
-
|
|
607
|
+
if(data.idp !== undefined){
|
|
608
|
+
let data27 = data.idp;
|
|
609
|
+
if(!((typeof data27 == "number") && (!(data27 % 1) && !isNaN(data27)))){
|
|
610
|
+
const err50 = {instancePath:instancePath+"/idp",schemaPath:"#/properties/idp/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
|
|
607
611
|
if(vErrors === null){
|
|
608
612
|
vErrors = [err50];
|
|
609
613
|
}
|
|
@@ -612,10 +616,8 @@ vErrors.push(err50);
|
|
|
612
616
|
}
|
|
613
617
|
errors++;
|
|
614
618
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
if(typeof data22.department !== "string"){
|
|
618
|
-
const err51 = {instancePath:instancePath+"/siteOwner/department",schemaPath:"#/$defs/account/properties/department/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
619
|
+
if(!(data27 === 1)){
|
|
620
|
+
const err51 = {instancePath:instancePath+"/idp",schemaPath:"#/properties/idp/enum",keyword:"enum",params:{allowedValues: schema17.properties.idp.enum},message:"must be equal to one of the allowed values"};
|
|
619
621
|
if(vErrors === null){
|
|
620
622
|
vErrors = [err51];
|
|
621
623
|
}
|
|
@@ -625,9 +627,10 @@ vErrors.push(err51);
|
|
|
625
627
|
errors++;
|
|
626
628
|
}
|
|
627
629
|
}
|
|
628
|
-
if(
|
|
629
|
-
|
|
630
|
-
|
|
630
|
+
if(data.os !== undefined){
|
|
631
|
+
let data28 = data.os;
|
|
632
|
+
if(!((typeof data28 == "number") && (!(data28 % 1) && !isNaN(data28)))){
|
|
633
|
+
const err52 = {instancePath:instancePath+"/os",schemaPath:"#/properties/os/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
|
|
631
634
|
if(vErrors === null){
|
|
632
635
|
vErrors = [err52];
|
|
633
636
|
}
|
|
@@ -636,27 +639,176 @@ vErrors.push(err52);
|
|
|
636
639
|
}
|
|
637
640
|
errors++;
|
|
638
641
|
}
|
|
642
|
+
if(!(data28 === 1)){
|
|
643
|
+
const err53 = {instancePath:instancePath+"/os",schemaPath:"#/properties/os/enum",keyword:"enum",params:{allowedValues: schema17.properties.os.enum},message:"must be equal to one of the allowed values"};
|
|
644
|
+
if(vErrors === null){
|
|
645
|
+
vErrors = [err53];
|
|
646
|
+
}
|
|
647
|
+
else {
|
|
648
|
+
vErrors.push(err53);
|
|
649
|
+
}
|
|
650
|
+
errors++;
|
|
651
|
+
}
|
|
639
652
|
}
|
|
653
|
+
if(data.rememberMe !== undefined){
|
|
654
|
+
let data29 = data.rememberMe;
|
|
655
|
+
if(!((typeof data29 == "number") && (!(data29 % 1) && !isNaN(data29)))){
|
|
656
|
+
const err54 = {instancePath:instancePath+"/rememberMe",schemaPath:"#/properties/rememberMe/type",keyword:"type",params:{type: "integer"},message:"must be integer"};
|
|
657
|
+
if(vErrors === null){
|
|
658
|
+
vErrors = [err54];
|
|
640
659
|
}
|
|
641
660
|
else {
|
|
642
|
-
|
|
661
|
+
vErrors.push(err54);
|
|
662
|
+
}
|
|
663
|
+
errors++;
|
|
664
|
+
}
|
|
665
|
+
if(!(data29 === 1)){
|
|
666
|
+
const err55 = {instancePath:instancePath+"/rememberMe",schemaPath:"#/properties/rememberMe/enum",keyword:"enum",params:{allowedValues: schema17.properties.rememberMe.enum},message:"must be equal to one of the allowed values"};
|
|
643
667
|
if(vErrors === null){
|
|
644
|
-
vErrors = [
|
|
668
|
+
vErrors = [err55];
|
|
645
669
|
}
|
|
646
670
|
else {
|
|
647
|
-
vErrors.push(
|
|
671
|
+
vErrors.push(err55);
|
|
672
|
+
}
|
|
673
|
+
errors++;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
if(data.siteOwner !== undefined){
|
|
677
|
+
let data30 = data.siteOwner;
|
|
678
|
+
if(data30 && typeof data30 == "object" && !Array.isArray(data30)){
|
|
679
|
+
if(data30.type === undefined){
|
|
680
|
+
const err56 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};
|
|
681
|
+
if(vErrors === null){
|
|
682
|
+
vErrors = [err56];
|
|
683
|
+
}
|
|
684
|
+
else {
|
|
685
|
+
vErrors.push(err56);
|
|
648
686
|
}
|
|
649
687
|
errors++;
|
|
650
688
|
}
|
|
689
|
+
if(data30.id === undefined){
|
|
690
|
+
const err57 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};
|
|
691
|
+
if(vErrors === null){
|
|
692
|
+
vErrors = [err57];
|
|
693
|
+
}
|
|
694
|
+
else {
|
|
695
|
+
vErrors.push(err57);
|
|
651
696
|
}
|
|
697
|
+
errors++;
|
|
698
|
+
}
|
|
699
|
+
if(data30.name === undefined){
|
|
700
|
+
const err58 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};
|
|
701
|
+
if(vErrors === null){
|
|
702
|
+
vErrors = [err58];
|
|
652
703
|
}
|
|
653
704
|
else {
|
|
654
|
-
|
|
705
|
+
vErrors.push(err58);
|
|
706
|
+
}
|
|
707
|
+
errors++;
|
|
708
|
+
}
|
|
709
|
+
for(const key4 in data30){
|
|
710
|
+
if(!(((((key4 === "type") || (key4 === "id")) || (key4 === "name")) || (key4 === "department")) || (key4 === "departmentName"))){
|
|
711
|
+
const err59 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};
|
|
655
712
|
if(vErrors === null){
|
|
656
|
-
vErrors = [
|
|
713
|
+
vErrors = [err59];
|
|
657
714
|
}
|
|
658
715
|
else {
|
|
659
|
-
vErrors.push(
|
|
716
|
+
vErrors.push(err59);
|
|
717
|
+
}
|
|
718
|
+
errors++;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
if(data30.type !== undefined){
|
|
722
|
+
let data31 = data30.type;
|
|
723
|
+
if(typeof data31 !== "string"){
|
|
724
|
+
const err60 = {instancePath:instancePath+"/siteOwner/type",schemaPath:"#/$defs/account/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
725
|
+
if(vErrors === null){
|
|
726
|
+
vErrors = [err60];
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
vErrors.push(err60);
|
|
730
|
+
}
|
|
731
|
+
errors++;
|
|
732
|
+
}
|
|
733
|
+
if(!((data31 === "user") || (data31 === "organization"))){
|
|
734
|
+
const err61 = {instancePath:instancePath+"/siteOwner/type",schemaPath:"#/$defs/account/properties/type/enum",keyword:"enum",params:{allowedValues: schema21.properties.type.enum},message:"must be equal to one of the allowed values"};
|
|
735
|
+
if(vErrors === null){
|
|
736
|
+
vErrors = [err61];
|
|
737
|
+
}
|
|
738
|
+
else {
|
|
739
|
+
vErrors.push(err61);
|
|
740
|
+
}
|
|
741
|
+
errors++;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
if(data30.id !== undefined){
|
|
745
|
+
if(typeof data30.id !== "string"){
|
|
746
|
+
const err62 = {instancePath:instancePath+"/siteOwner/id",schemaPath:"#/$defs/account/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
747
|
+
if(vErrors === null){
|
|
748
|
+
vErrors = [err62];
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
vErrors.push(err62);
|
|
752
|
+
}
|
|
753
|
+
errors++;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
if(data30.name !== undefined){
|
|
757
|
+
if(typeof data30.name !== "string"){
|
|
758
|
+
const err63 = {instancePath:instancePath+"/siteOwner/name",schemaPath:"#/$defs/account/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
759
|
+
if(vErrors === null){
|
|
760
|
+
vErrors = [err63];
|
|
761
|
+
}
|
|
762
|
+
else {
|
|
763
|
+
vErrors.push(err63);
|
|
764
|
+
}
|
|
765
|
+
errors++;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
if(data30.department !== undefined){
|
|
769
|
+
if(typeof data30.department !== "string"){
|
|
770
|
+
const err64 = {instancePath:instancePath+"/siteOwner/department",schemaPath:"#/$defs/account/properties/department/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
771
|
+
if(vErrors === null){
|
|
772
|
+
vErrors = [err64];
|
|
773
|
+
}
|
|
774
|
+
else {
|
|
775
|
+
vErrors.push(err64);
|
|
776
|
+
}
|
|
777
|
+
errors++;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
if(data30.departmentName !== undefined){
|
|
781
|
+
if(typeof data30.departmentName !== "string"){
|
|
782
|
+
const err65 = {instancePath:instancePath+"/siteOwner/departmentName",schemaPath:"#/$defs/account/properties/departmentName/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
783
|
+
if(vErrors === null){
|
|
784
|
+
vErrors = [err65];
|
|
785
|
+
}
|
|
786
|
+
else {
|
|
787
|
+
vErrors.push(err65);
|
|
788
|
+
}
|
|
789
|
+
errors++;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
else {
|
|
794
|
+
const err66 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/type",keyword:"type",params:{type: "object"},message:"must be object"};
|
|
795
|
+
if(vErrors === null){
|
|
796
|
+
vErrors = [err66];
|
|
797
|
+
}
|
|
798
|
+
else {
|
|
799
|
+
vErrors.push(err66);
|
|
800
|
+
}
|
|
801
|
+
errors++;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
else {
|
|
806
|
+
const err67 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};
|
|
807
|
+
if(vErrors === null){
|
|
808
|
+
vErrors = [err67];
|
|
809
|
+
}
|
|
810
|
+
else {
|
|
811
|
+
vErrors.push(err67);
|
|
660
812
|
}
|
|
661
813
|
errors++;
|
|
662
814
|
}
|
|
@@ -908,7 +1060,7 @@ vErrors.push(err19);
|
|
|
908
1060
|
errors++;
|
|
909
1061
|
}
|
|
910
1062
|
if(!((data10 === "user") || (data10 === "organization"))){
|
|
911
|
-
const err20 = {instancePath:instancePath+"/account/type",schemaPath:"#/$defs/account/properties/type/enum",keyword:"enum",params:{allowedValues:
|
|
1063
|
+
const err20 = {instancePath:instancePath+"/account/type",schemaPath:"#/$defs/account/properties/type/enum",keyword:"enum",params:{allowedValues: schema21.properties.type.enum},message:"must be equal to one of the allowed values"};
|
|
912
1064
|
if(vErrors === null){
|
|
913
1065
|
vErrors = [err20];
|
|
914
1066
|
}
|
package/session/schema.d.ts
CHANGED
package/session/schema.js
CHANGED
package/theme/index.js
CHANGED
|
@@ -143,7 +143,7 @@ export const getTextColorsCss = (colors, theme) => {
|
|
|
143
143
|
const onKey = `on-${color}`;
|
|
144
144
|
if (colors[onKey]) {
|
|
145
145
|
css += `
|
|
146
|
-
.bg-${color} a { color: ${colors[onKey]} }`;
|
|
146
|
+
.v-theme--${theme} .bg-${color} a { color: ${colors[onKey]} }`;
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
return css;
|