@forge/manifest 7.8.1-next.0 → 7.9.0-next.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 7.9.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 63d81cf: Update i18n unit test to include macro config property
8
+ - b961661: Update manifest definitions
9
+ - 8ec88e3: Update manifest definitions
10
+
11
+ ## 7.9.0-next.1
12
+
13
+ ### Minor Changes
14
+
15
+ - 5f02b70: add `editionsEnabled` field to the licensing options
16
+
3
17
  ## 7.8.1-next.0
4
18
 
5
19
  ### Patch Changes
@@ -57,6 +57,12 @@
57
57
  "default": false,
58
58
  "title": "enabled",
59
59
  "description": "Whether to enable paid app licensing for production installations of this app. Default value of false."
60
+ },
61
+ "editionsEnabled": {
62
+ "type": "boolean",
63
+ "default": false,
64
+ "title": "editionsEnabled",
65
+ "description": "Whether to enable editions for this app. Default value of false."
60
66
  }
61
67
  }
62
68
  },
@@ -25,6 +25,10 @@ export type Name = 'sandbox' | 'nodejs18.x' | 'nodejs20.x';
25
25
  * Whether to enable paid app licensing for production installations of this app. Default value of false.
26
26
  */
27
27
  export type Enabled = boolean;
28
+ /**
29
+ * Whether to enable editions for this app. Default value of false.
30
+ */
31
+ export type EditionsEnabled = boolean;
28
32
  /**
29
33
  * This property is deprecated and no longer required to use simplified user consent. Please remove it from your manifest as in a future release this will become an error.
30
34
  */
@@ -161,6 +165,7 @@ export interface Runtime {
161
165
  */
162
166
  export interface Licensing {
163
167
  enabled: Enabled;
168
+ editionsEnabled?: EditionsEnabled;
164
169
  }
165
170
  /**
166
171
  * Features related to app
@@ -57,6 +57,12 @@
57
57
  "default": false,
58
58
  "title": "enabled",
59
59
  "description": "Whether to enable paid app licensing for production installations of this app. Default value of false."
60
+ },
61
+ "editionsEnabled": {
62
+ "type": "boolean",
63
+ "default": false,
64
+ "title": "editionsEnabled",
65
+ "description": "Whether to enable editions for this app. Default value of false."
60
66
  }
61
67
  }
62
68
  },
@@ -743,11 +749,43 @@
743
749
  "type": "array",
744
750
  "items": {
745
751
  "$schema": "http://json-schema.org/draft-07/schema#",
746
- "additionalProperties": true,
752
+ "additionalProperties": false,
747
753
  "description": "A Forge Remote definition.",
748
754
  "properties": {
749
755
  "baseUrl": {
750
- "type": "string"
756
+ "oneOf": [
757
+ {
758
+ "type": "string"
759
+ },
760
+ {
761
+ "type": "object",
762
+ "propertyNames": {
763
+ "enum": [
764
+ "EU",
765
+ "US",
766
+ "AU",
767
+ "DE",
768
+ "SG",
769
+ "CA",
770
+ "IN",
771
+ "KR",
772
+ "JP",
773
+ "GB",
774
+ "CH",
775
+ "default"
776
+ ]
777
+ },
778
+ "patternProperties": {
779
+ ".+": {
780
+ "type": "string",
781
+ "minLength": 1
782
+ }
783
+ },
784
+ "required": [
785
+ "default"
786
+ ]
787
+ }
788
+ ]
751
789
  },
752
790
  "operations": {
753
791
  "type": "array",
@@ -1402,12 +1440,55 @@
1402
1440
  },
1403
1441
  {
1404
1442
  "type": "object",
1443
+ "additionalProperties": false,
1405
1444
  "properties": {
1406
1445
  "function": {
1407
1446
  "type": "string",
1408
1447
  "minLength": 1,
1409
1448
  "maxLength": 255,
1410
1449
  "pattern": "^[a-zA-Z0-9-_]+$"
1450
+ }
1451
+ }
1452
+ },
1453
+ {
1454
+ "type": "object",
1455
+ "additionalProperties": false,
1456
+ "properties": {
1457
+ "title": {
1458
+ "oneOf": [
1459
+ {
1460
+ "type": "object",
1461
+ "additionalProperties": false,
1462
+ "properties": {
1463
+ "i18n": {
1464
+ "type": "string",
1465
+ "minLength": 1,
1466
+ "maxLength": 300,
1467
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
1468
+ }
1469
+ },
1470
+ "required": [
1471
+ "i18n"
1472
+ ]
1473
+ },
1474
+ {
1475
+ "type": "string",
1476
+ "minLength": 1,
1477
+ "maxLength": 255
1478
+ }
1479
+ ]
1480
+ },
1481
+ "title__i18n": {
1482
+ "type": "string",
1483
+ "minLength": 1,
1484
+ "maxLength": 300,
1485
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
1486
+ },
1487
+ "resource": {
1488
+ "type": "string",
1489
+ "minLength": 1,
1490
+ "maxLength": 23,
1491
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
1411
1492
  },
1412
1493
  "render": {
1413
1494
  "enum": [
@@ -1416,8 +1497,57 @@
1416
1497
  ],
1417
1498
  "type": "string",
1418
1499
  "default": "default"
1500
+ },
1501
+ "resolver": {
1502
+ "anyOf": [
1503
+ {
1504
+ "additionalProperties": false,
1505
+ "type": "object",
1506
+ "properties": {
1507
+ "function": {
1508
+ "type": "string",
1509
+ "minLength": 1,
1510
+ "maxLength": 255,
1511
+ "pattern": "^[a-zA-Z0-9-_]+$"
1512
+ }
1513
+ },
1514
+ "required": [
1515
+ "function"
1516
+ ]
1517
+ },
1518
+ {
1519
+ "additionalProperties": false,
1520
+ "type": "object",
1521
+ "properties": {
1522
+ "endpoint": {
1523
+ "type": "string",
1524
+ "minLength": 1,
1525
+ "maxLength": 255,
1526
+ "pattern": "^[a-zA-Z0-9-_]+$"
1527
+ }
1528
+ },
1529
+ "required": [
1530
+ "endpoint"
1531
+ ]
1532
+ }
1533
+ ]
1534
+ },
1535
+ "viewportSize": {
1536
+ "type": "string",
1537
+ "minLength": 1,
1538
+ "maxLength": 255,
1539
+ "enum": [
1540
+ "small",
1541
+ "medium",
1542
+ "large",
1543
+ "xlarge",
1544
+ "max"
1545
+ ]
1419
1546
  }
1420
- }
1547
+ },
1548
+ "required": [
1549
+ "resource"
1550
+ ]
1421
1551
  }
1422
1552
  ]
1423
1553
  },
@@ -25,6 +25,10 @@ export type Name = 'sandbox' | 'nodejs18.x' | 'nodejs20.x';
25
25
  * Whether to enable paid app licensing for production installations of this app. Default value of false.
26
26
  */
27
27
  export type Enabled = boolean;
28
+ /**
29
+ * Whether to enable editions for this app. Default value of false.
30
+ */
31
+ export type EditionsEnabled = boolean;
28
32
  /**
29
33
  * This property is deprecated and no longer required to use simplified user consent. Please remove it from your manifest as in a future release this will become an error.
30
34
  */
@@ -629,6 +633,7 @@ export interface Runtime {
629
633
  */
630
634
  export interface Licensing {
631
635
  enabled: Enabled;
636
+ editionsEnabled?: EditionsEnabled;
632
637
  }
633
638
  /**
634
639
  * Features related to app
@@ -915,7 +920,15 @@ export interface Modules {
915
920
  ];
916
921
  remote?: [
917
922
  {
918
- baseUrl: string;
923
+ baseUrl:
924
+ | string
925
+ | {
926
+ /**
927
+ * This interface was referenced by `undefined`'s JSON-Schema definition
928
+ * via the `patternProperty` ".+".
929
+ */
930
+ [k: string]: string;
931
+ };
919
932
  operations?: ['storage' | 'other' | 'compute' | 'fetch', ...('storage' | 'other' | 'compute' | 'fetch')[]];
920
933
  auth?: {
921
934
  appUserToken?: {
@@ -939,10 +952,17 @@ export interface Modules {
939
952
  [k: string]: unknown;
940
953
  };
941
954
  key: ModuleKeySchema;
942
- [k: string]: unknown;
943
955
  },
944
956
  ...{
945
- baseUrl: string;
957
+ baseUrl:
958
+ | string
959
+ | {
960
+ /**
961
+ * This interface was referenced by `undefined`'s JSON-Schema definition
962
+ * via the `patternProperty` ".+".
963
+ */
964
+ [k: string]: string;
965
+ };
946
966
  operations?: ['storage' | 'other' | 'compute' | 'fetch', ...('storage' | 'other' | 'compute' | 'fetch')[]];
947
967
  auth?: {
948
968
  appUserToken?: {
@@ -966,7 +986,6 @@ export interface Modules {
966
986
  [k: string]: unknown;
967
987
  };
968
988
  key: ModuleKeySchema;
969
- [k: string]: unknown;
970
989
  }[]
971
990
  ];
972
991
  action?: [
@@ -1283,8 +1302,24 @@ export interface Modules {
1283
1302
  | boolean
1284
1303
  | {
1285
1304
  function?: string;
1305
+ }
1306
+ | {
1307
+ title?:
1308
+ | {
1309
+ i18n: string;
1310
+ }
1311
+ | string;
1312
+ title__i18n?: string;
1313
+ resource: string;
1286
1314
  render?: 'native' | 'default';
1287
- [k: string]: unknown;
1315
+ resolver?:
1316
+ | {
1317
+ function: string;
1318
+ }
1319
+ | {
1320
+ endpoint: string;
1321
+ };
1322
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge' | 'max';
1288
1323
  };
1289
1324
  data?: {
1290
1325
  function?: string;
@@ -1361,8 +1396,24 @@ export interface Modules {
1361
1396
  | boolean
1362
1397
  | {
1363
1398
  function?: string;
1399
+ }
1400
+ | {
1401
+ title?:
1402
+ | {
1403
+ i18n: string;
1404
+ }
1405
+ | string;
1406
+ title__i18n?: string;
1407
+ resource: string;
1364
1408
  render?: 'native' | 'default';
1365
- [k: string]: unknown;
1409
+ resolver?:
1410
+ | {
1411
+ function: string;
1412
+ }
1413
+ | {
1414
+ endpoint: string;
1415
+ };
1416
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge' | 'max';
1366
1417
  };
1367
1418
  data?: {
1368
1419
  function?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "7.8.1-next.0",
3
+ "version": "7.9.0-next.2",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {