@data-fair/lib-common-types 1.16.5 → 1.18.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-common-types",
3
- "version": "1.16.5",
3
+ "version": "1.18.0",
4
4
  "description": "Shared schemas and built type definitions in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,6 +30,7 @@ export type User = {
30
30
  isAdmin?: 1;
31
31
  adminMode?: 1;
32
32
  asAdmin?: UserRef;
33
+ asAdminOrg?: OrganizationMembership;
33
34
  pd?: string;
34
35
  ipa?: ShortForIgnorePersonalAccount;
35
36
  idp?: IsTheUserComingFromACoreIDProvider;
@@ -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 schema20 = {"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"},"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.pd !== undefined){
408
- let data17 = data.pd;
409
- if(typeof data17 === "string"){
410
- if(!(formats2.validate(data17))){
411
- const err33 = {instancePath:instancePath+"/pd",schemaPath:"#/properties/pd/format",keyword:"format",params:{format: "date"},message:"must match format \""+"date"+"\""};
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
- else {
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
- if(data.ipa !== undefined){
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
- if(!(data18 === 1)){
445
- const err36 = {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"};
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(data.idp !== undefined){
456
- let data19 = data.idp;
457
- if(!((typeof data19 == "number") && (!(data19 % 1) && !isNaN(data19)))){
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
- if(!(data19 === 1)){
468
- const err38 = {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"};
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(data.os !== undefined){
479
- let data20 = data.os;
480
- if(!((typeof data20 == "number") && (!(data20 % 1) && !isNaN(data20)))){
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
- if(!(data20 === 1)){
491
- const err40 = {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"};
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(data.rememberMe !== undefined){
502
- let data21 = data.rememberMe;
503
- if(!((typeof data21 == "number") && (!(data21 % 1) && !isNaN(data21)))){
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
- if(!(data21 === 1)){
514
- const err42 = {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"};
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(data.siteOwner !== undefined){
525
- let data22 = data.siteOwner;
526
- if(data22 && typeof data22 == "object" && !Array.isArray(data22)){
527
- if(data22.type === undefined){
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(data22.id === undefined){
538
- const err44 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};
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
- if(data22.name === undefined){
548
- const err45 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};
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
- for(const key3 in data22){
558
- if(!(((((key3 === "type") || (key3 === "id")) || (key3 === "name")) || (key3 === "department")) || (key3 === "departmentName"))){
559
- const err46 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};
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
- if(data22.type !== undefined){
570
- let data23 = data22.type;
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
- if(!((data23 === "user") || (data23 === "organization"))){
582
- const err48 = {instancePath:instancePath+"/siteOwner/type",schemaPath:"#/$defs/account/properties/type/enum",keyword:"enum",params:{allowedValues: schema20.properties.type.enum},message:"must be equal to one of the allowed values"};
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
- if(data22.id !== undefined){
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(data22.name !== undefined){
605
- if(typeof data22.name !== "string"){
606
- const err50 = {instancePath:instancePath+"/siteOwner/name",schemaPath:"#/$defs/account/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};
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
- if(data22.department !== undefined){
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(data22.departmentName !== undefined){
629
- if(typeof data22.departmentName !== "string"){
630
- const err52 = {instancePath:instancePath+"/siteOwner/departmentName",schemaPath:"#/$defs/account/properties/departmentName/type",keyword:"type",params:{type: "string"},message:"must be string"};
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
- const err53 = {instancePath:instancePath+"/siteOwner",schemaPath:"#/$defs/account/type",keyword:"type",params:{type: "object"},message:"must be object"};
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 = [err53];
668
+ vErrors = [err55];
645
669
  }
646
670
  else {
647
- vErrors.push(err53);
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
- const err54 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};
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 = [err54];
713
+ vErrors = [err59];
657
714
  }
658
715
  else {
659
- vErrors.push(err54);
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: schema20.properties.type.enum},message:"must be equal to one of the allowed values"};
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
  }
@@ -104,6 +104,9 @@ declare const _default: {
104
104
  asAdmin: {
105
105
  $ref: string;
106
106
  };
107
+ asAdminOrg: {
108
+ $ref: string;
109
+ };
107
110
  pd: {
108
111
  type: string;
109
112
  format: string;
package/session/schema.js CHANGED
@@ -116,6 +116,9 @@ export default {
116
116
  asAdmin: {
117
117
  $ref: '#/$defs/userRef'
118
118
  },
119
+ asAdminOrg: {
120
+ $ref: '#/$defs/organizationMembership'
121
+ },
119
122
  pd: {
120
123
  type: 'string',
121
124
  format: 'date'
@@ -4,12 +4,17 @@ export const schemaExports: string[]
4
4
  // see https://github.com/bcherny/json-schema-to-typescript/issues/439 if some types are not exported
5
5
  export type URLDUnLogo = string;
6
6
  /**
7
- * Par défaut une police Nunito auto-hébergée est utilisée. Vous pouvez aussi copier le CSS proposé par une plateforme comme Google Fonts, dans ce cas il faut remplacer le nom de la police par '{FONT_FAMILY}'.
7
+ * Par défaut une police Nunito auto-hébergée est utilisée
8
+ */
9
+ export type NomDePoliceDeCaracteresPourLeCorpsDuTexte = string;
10
+ /**
11
+ * Vous pouvez copier le CSS proposé par une plateforme comme Google Fonts.
8
12
  */
9
13
  export type CSSPoliceDeCaracteresPourLeCorpsDuTexte = string;
10
14
  /**
11
15
  * Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte
12
16
  */
17
+ export type NomDePoliceDeCaracteresPourLesTitres = string;
13
18
  export type CSSPoliceDeCaracteresPourLesTitres = string;
14
19
  /**
15
20
  * Si activé vous ne devrez saisir que les couleurs principales du thème, d'autres couleurs seront affectées par défaut et les couleurs de texte seront automatiquement ajustées pour être lisibles sur les couleurs de fond.
@@ -49,7 +54,9 @@ export type ProposerCeThemeAuxUtilisateurs2 = boolean;
49
54
 
50
55
  export type Theme = {
51
56
  logo?: URLDUnLogo;
57
+ bodyFontFamily?: NomDePoliceDeCaracteresPourLeCorpsDuTexte;
52
58
  bodyFontFamilyCss?: CSSPoliceDeCaracteresPourLeCorpsDuTexte;
59
+ headingFontFamily?: NomDePoliceDeCaracteresPourLesTitres;
53
60
  headingFontFamilyCss?: CSSPoliceDeCaracteresPourLesTitres;
54
61
  assistedMode?: ModeDeGestionDesCouleursSimplifie;
55
62
  assistedModeColors?: {
package/theme/index.d.ts CHANGED
@@ -3,7 +3,9 @@ import tinycolor from 'tinycolor2';
3
3
  export * from './.type/index.js';
4
4
  export declare const defaultTheme: {
5
5
  logo: undefined;
6
+ bodyFontFamily: string;
6
7
  bodyFontFamilyCss: string;
8
+ headingFontFamily: undefined;
7
9
  headingFontFamilyCss: undefined;
8
10
  colors: {
9
11
  background: string;
package/theme/index.js CHANGED
@@ -4,7 +4,9 @@ import tinycolor from 'tinycolor2';
4
4
  export * from './.type/index.js';
5
5
  export const defaultTheme = {
6
6
  logo: undefined,
7
- bodyFontFamilyCss: "@font-face{font-family:{FONT_FAMILY};font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaORs71cA-Bm_i0Dk1.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:{FONT_FAMILY};font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaHRs71cA-Cznx39fA.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:{FONT_FAMILY};font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaMRs71cA-CuWrHpFO.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:{FONT_FAMILY};font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaNRs71cA-D1eeM49Z.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:{FONT_FAMILY};font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaDRs4-BbMn9XSX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:{FONT_FAMILY};font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIOOaBXso-BWI5zH9R.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:{FONT_FAMILY};font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIMeaBXso-C3IBG1kp.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:{FONT_FAMILY};font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIOuaBXso-B55YuedR.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:{FONT_FAMILY};font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIO-aBXso-DcJfvmGA.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:{FONT_FAMILY};font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofINeaB-BaTF6Vo7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}",
7
+ bodyFontFamily: 'Nunito',
8
+ bodyFontFamilyCss: "@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaORs71cA-Bm_i0Dk1.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaHRs71cA-Cznx39fA.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaMRs71cA-CuWrHpFO.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaNRs71cA-D1eeM49Z.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nunito;font-style:italic;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXX3I6Li01BKofIMNaDRs4-BbMn9XSX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIOOaBXso-BWI5zH9R.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIMeaBXso-C3IBG1kp.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIOuaBXso-B55YuedR.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofIO-aBXso-DcJfvmGA.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Nunito;font-style:normal;font-weight:200 1000;font-display:swap;src:url({SITE_PATH}/simple-directory/fonts/XRXV3I6Li01BKofINeaB-BaTF6Vo7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}",
9
+ headingFontFamily: undefined,
8
10
  headingFontFamilyCss: undefined,
9
11
  colors: {
10
12
  // standard vuetify colors, see https://vuetifyjs.com/en/styles/colors/#material-colors
package/theme/schema.d.ts CHANGED
@@ -107,6 +107,27 @@ declare const _default: {
107
107
  };
108
108
  type: string;
109
109
  };
110
+ bodyFontFamily: {
111
+ title: string;
112
+ 'x-i18n-title': {
113
+ fr: string;
114
+ en: string;
115
+ es: string;
116
+ it: string;
117
+ pt: string;
118
+ de: string;
119
+ };
120
+ description: string;
121
+ 'x-i18n-description': {
122
+ fr: string;
123
+ en: string;
124
+ es: string;
125
+ it: string;
126
+ pt: string;
127
+ de: string;
128
+ };
129
+ type: string;
130
+ };
110
131
  bodyFontFamilyCss: {
111
132
  title: string;
112
133
  'x-i18n-title': {
@@ -132,7 +153,7 @@ declare const _default: {
132
153
  };
133
154
  type: string;
134
155
  };
135
- headingFontFamilyCss: {
156
+ headingFontFamily: {
136
157
  title: string;
137
158
  'x-i18n-title': {
138
159
  fr: string;
@@ -142,10 +163,6 @@ declare const _default: {
142
163
  pt: string;
143
164
  de: string;
144
165
  };
145
- layout: {
146
- comp: string;
147
- rows: number;
148
- };
149
166
  description: string;
150
167
  'x-i18n-description': {
151
168
  fr: string;
@@ -157,6 +174,22 @@ declare const _default: {
157
174
  };
158
175
  type: string;
159
176
  };
177
+ headingFontFamilyCss: {
178
+ title: string;
179
+ 'x-i18n-title': {
180
+ fr: string;
181
+ en: string;
182
+ es: string;
183
+ it: string;
184
+ pt: string;
185
+ de: string;
186
+ };
187
+ layout: {
188
+ comp: string;
189
+ rows: number;
190
+ };
191
+ type: string;
192
+ };
160
193
  assistedMode: {
161
194
  type: string;
162
195
  title: string;
package/theme/schema.js CHANGED
@@ -156,6 +156,27 @@ export default {
156
156
  },
157
157
  type: 'string'
158
158
  },
159
+ bodyFontFamily: {
160
+ title: 'Nom de police de caractères pour le corps du texte',
161
+ 'x-i18n-title': {
162
+ fr: 'Nom de police de caractères pour le corps du texte',
163
+ en: 'Font name for body text',
164
+ es: 'Nombre de fuente para el texto del cuerpo',
165
+ it: 'Nome del carattere per il testo del corpo',
166
+ pt: 'Nome da fonte para o texto do corpo',
167
+ de: 'Schriftartname für den Fließtext'
168
+ },
169
+ description: 'Par défaut une police Nunito auto-hébergée est utilisée',
170
+ 'x-i18n-description': {
171
+ fr: 'Par défaut une police Nunito auto-hébergée est utilisée',
172
+ en: 'By default, a self-hosted Nunito font is used',
173
+ es: 'Por defecto se utiliza una fuente Nunito autoalojada',
174
+ it: 'Per impostazione predefinita viene utilizzata una fonte Nunito auto-ospitata',
175
+ pt: 'Por padrão, é usada uma fonte Nunito auto-hospedada',
176
+ de: 'Standardmäßig wird eine selbst gehostete Nunito-Schriftart verwendet'
177
+ },
178
+ type: 'string'
179
+ },
159
180
  bodyFontFamilyCss: {
160
181
  title: 'CSS police de caractères pour le corps du texte',
161
182
  'x-i18n-title': {
@@ -170,14 +191,35 @@ export default {
170
191
  comp: 'textarea',
171
192
  rows: 3
172
193
  },
173
- description: "Par défaut une police Nunito auto-hébergée est utilisée. Vous pouvez aussi copier le CSS proposé par une plateforme comme Google Fonts, dans ce cas il faut remplacer le nom de la police par '{FONT_FAMILY}'.",
194
+ description: 'Vous pouvez copier le CSS proposé par une plateforme comme Google Fonts.',
195
+ 'x-i18n-description': {
196
+ fr: 'Vous pouvez copier le CSS proposé par une plateforme comme Google Fonts.',
197
+ en: 'You can copy the CSS proposed by a platform like Google Fonts.',
198
+ es: 'Puede copiar el CSS propuesto por una plataforma como Google Fonts.',
199
+ it: 'Puoi copiare il CSS proposto da una piattaforma come Google Fonts.',
200
+ pt: 'Você pode copiar o CSS proposto por uma plataforma como Google Fonts.',
201
+ de: 'Sie können das von einer Plattform wie Google Fonts vorgeschlagene CSS kopieren.'
202
+ },
203
+ type: 'string'
204
+ },
205
+ headingFontFamily: {
206
+ title: 'Nom de police de caractères pour les titres',
207
+ 'x-i18n-title': {
208
+ fr: 'Nom de police de caractères pour les titres',
209
+ en: 'Font name for headings',
210
+ es: 'Nombre de fuente para los títulos',
211
+ it: 'Nome del carattere per le intestazioni',
212
+ pt: 'Nome da fonte para títulos',
213
+ de: 'Schriftartname für Überschriften'
214
+ },
215
+ description: 'Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte',
174
216
  'x-i18n-description': {
175
- fr: "Par défaut une police Nunito auto-hébergée est utilisée. Vous pouvez aussi copier le CSS proposé par une plateforme comme Google Fonts, dans ce cas il faut remplacer le nom de la police par '{FONT_FAMILY}'.",
176
- en: "By default, a self-hosted Nunito font is used. You can also copy the CSS proposed by a platform like Google Fonts, in which case you need to replace the font name with '{FONT_FAMILY}'.",
177
- es: "De forma predeterminada, se utiliza una fuente Nunito autoalojada. También puede copiar el CSS propuesto por una plataforma como Google Fonts, en cuyo caso debe reemplazar el nombre de la fuente con '{FONT_FAMILY}'.",
178
- it: "Per impostazione predefinita, viene utilizzata una fonte Nunito auto-ospitata. È possibile anche copiare il CSS proposto da una piattaforma come Google Fonts, in tal caso è necessario sostituire il nome del carattere con '{FONT_FAMILY}'.",
179
- pt: "Por padrão, é usada uma fonte Nunito auto-hospedada. Você também pode copiar o CSS proposto por uma plataforma como Google Fonts, nesse caso, você precisa substituir o nome da fonte por '{FONT_FAMILY}'.",
180
- de: "Standardmäßig wird eine selbst gehostete Nunito-Schriftart verwendet. Sie können auch die von einer Plattform wie Google Fonts vorgeschlagene CSS-Datei kopieren. In diesem Fall müssen Sie den Schriftartnamen durch '{FONT_FAMILY}' ersetzen."
217
+ fr: 'Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte',
218
+ en: 'Fill in the same way as for the body text, or leave blank to use the body text font',
219
+ es: 'Complete de la misma manera que para el texto del cuerpo, o deje en blanco para usar la fuente del texto del cuerpo',
220
+ it: 'Compilare nello stesso modo del testo del corpo, o lasciare vuoto per utilizzare il carattere del testo del corpo',
221
+ pt: 'Preencha da mesma forma que para o texto do corpo, ou deixe em branco para usar a fonte do texto do corpo',
222
+ de: 'Füllen Sie wie beim Fließtext aus, oder lassen Sie das Feld leer, um die Schriftart des Fließtexts zu verwenden'
181
223
  },
182
224
  type: 'string'
183
225
  },
@@ -195,15 +237,6 @@ export default {
195
237
  comp: 'textarea',
196
238
  rows: 3
197
239
  },
198
- description: 'Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte',
199
- 'x-i18n-description': {
200
- fr: 'Renseignez de la même manière que pour le corps de texte, ou laissez vide pour utiliser la police du corps du texte',
201
- en: 'Fill in the same way as for the body text, or leave blank to use the body text font',
202
- es: 'Complete de la misma manera que para el texto del cuerpo, o deje en blanco para usar la fuente del texto del cuerpo',
203
- it: 'Compilare nello stesso modo del testo del corpo, o lasciare vuoto per utilizzare il carattere del testo del corpo',
204
- pt: 'Preencha da mesma forma que para o texto do corpo, ou deixe em branco para usar a fonte do texto do corpo',
205
- de: 'Füllen Sie wie beim Fließtext aus, oder lassen Sie das Feld leer, um die Schriftart des Fließtexts zu verwenden'
206
- },
207
240
  type: 'string'
208
241
  },
209
242
  assistedMode: {