@forge/manifest 12.6.0 → 12.7.0-next.1

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,22 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 12.7.0-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 22613fc: Update manifest definitions
8
+
9
+ ## 12.7.0-next.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 56e38e9: Added support for new v2 url format and validation
14
+
15
+ ### Patch Changes
16
+
17
+ - a99c9f1: Add customerServiceManagement:queuePage and customerServiceManagement:requestDetail to AllModuleTypes enum, add corresponding CLI templates (UI Kit + Custom UI) for both module types, and register Customer Service Management as a product context in forge create (shown as "Customer Service Management (EAP)").
18
+ - aed9912: Update manifest definitions
19
+
3
20
  ## 12.6.0
4
21
 
5
22
  ### Minor Changes
@@ -494,11 +494,19 @@
494
494
  "title": "function",
495
495
  "type": "string"
496
496
  },
497
+ "request": {
498
+ "$ref": "#/definitions/RequestOptions",
499
+ "description": "Request options for the webtrigger module.",
500
+ "title": "request"
501
+ },
497
502
  "response": {
498
503
  "$ref": "#/definitions/ResponseOptions",
499
504
  "description": "Response options for the webtrigger module.",
500
505
  "title": "response"
501
506
  },
507
+ "urlFormat": {
508
+ "$ref": "#/definitions/UrlFormat"
509
+ },
502
510
  "key": {
503
511
  "$ref": "#/definitions/ModuleKeySchema"
504
512
  }
@@ -519,9 +527,16 @@
519
527
  "$ref": "#/definitions/ExtensionKey",
520
528
  "description": "The key of the service that should be invoked for this webtrigger."
521
529
  },
530
+ "request": {
531
+ "$ref": "#/definitions/RequestOptions",
532
+ "description": "Request options for the webtrigger module."
533
+ },
522
534
  "response": {
523
535
  "$ref": "#/definitions/ResponseOptions"
524
536
  },
537
+ "urlFormat": {
538
+ "$ref": "#/definitions/UrlFormat"
539
+ },
525
540
  "key": {
526
541
  "$ref": "#/definitions/ModuleKeySchema"
527
542
  }
@@ -7122,7 +7137,8 @@
7122
7137
  "enum": [
7123
7138
  "MULTI_SELECT",
7124
7139
  "SINGLE_SELECT",
7125
- "TEXT"
7140
+ "TEXT",
7141
+ "RICH_TEXT"
7126
7142
  ],
7127
7143
  "type": "string"
7128
7144
  }
@@ -7625,7 +7641,8 @@
7625
7641
  "enum": [
7626
7642
  "MULTI_SELECT",
7627
7643
  "SINGLE_SELECT",
7628
- "TEXT"
7644
+ "TEXT",
7645
+ "RICH_TEXT"
7629
7646
  ],
7630
7647
  "type": "string"
7631
7648
  }
@@ -8075,7 +8092,8 @@
8075
8092
  "enum": [
8076
8093
  "MULTI_SELECT",
8077
8094
  "SINGLE_SELECT",
8078
- "TEXT"
8095
+ "TEXT",
8096
+ "RICH_TEXT"
8079
8097
  ],
8080
8098
  "type": "string"
8081
8099
  }
@@ -10135,12 +10153,7 @@
10135
10153
  "resource",
10136
10154
  "title",
10137
10155
  "key"
10138
- ],
10139
- "not": {
10140
- "required": [
10141
- "unlicensedAccess"
10142
- ]
10143
- }
10156
+ ]
10144
10157
  },
10145
10158
  "minItems": 1
10146
10159
  },
@@ -19998,6 +20011,423 @@
19998
20011
  },
19999
20012
  "minItems": 1
20000
20013
  },
20014
+ "customerServiceManagement:queuePage": {
20015
+ "type": "array",
20016
+ "items": {
20017
+ "oneOf": [
20018
+ {
20019
+ "type": "object",
20020
+ "required": [
20021
+ "title",
20022
+ "function",
20023
+ "key"
20024
+ ],
20025
+ "properties": {
20026
+ "title": {
20027
+ "oneOf": [
20028
+ {
20029
+ "type": "object",
20030
+ "additionalProperties": false,
20031
+ "properties": {
20032
+ "i18n": {
20033
+ "type": "string",
20034
+ "minLength": 1,
20035
+ "maxLength": 300,
20036
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
20037
+ }
20038
+ },
20039
+ "required": [
20040
+ "i18n"
20041
+ ]
20042
+ },
20043
+ {
20044
+ "type": "string",
20045
+ "minLength": 1,
20046
+ "maxLength": 255
20047
+ }
20048
+ ]
20049
+ },
20050
+ "title__i18n": {
20051
+ "type": "string",
20052
+ "minLength": 1,
20053
+ "maxLength": 300,
20054
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
20055
+ },
20056
+ "icon": {
20057
+ "type": "string",
20058
+ "minLength": 1,
20059
+ "maxLength": 255
20060
+ },
20061
+ "layout": {
20062
+ "type": "string",
20063
+ "minLength": 1,
20064
+ "maxLength": 255,
20065
+ "enum": [
20066
+ "native",
20067
+ "basic"
20068
+ ]
20069
+ },
20070
+ "function": {
20071
+ "type": "string",
20072
+ "minLength": 1,
20073
+ "maxLength": 255,
20074
+ "pattern": "^[a-zA-Z0-9-_]+$"
20075
+ },
20076
+ "key": {
20077
+ "$ref": "#/definitions/ModuleKeySchema"
20078
+ }
20079
+ },
20080
+ "not": {
20081
+ "required": [
20082
+ "unlicensedAccess"
20083
+ ]
20084
+ }
20085
+ },
20086
+ {
20087
+ "type": "object",
20088
+ "required": [
20089
+ "title",
20090
+ "resource",
20091
+ "key"
20092
+ ],
20093
+ "properties": {
20094
+ "title": {
20095
+ "oneOf": [
20096
+ {
20097
+ "type": "object",
20098
+ "additionalProperties": false,
20099
+ "properties": {
20100
+ "i18n": {
20101
+ "type": "string",
20102
+ "minLength": 1,
20103
+ "maxLength": 300,
20104
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
20105
+ }
20106
+ },
20107
+ "required": [
20108
+ "i18n"
20109
+ ]
20110
+ },
20111
+ {
20112
+ "type": "string",
20113
+ "minLength": 1,
20114
+ "maxLength": 255
20115
+ }
20116
+ ]
20117
+ },
20118
+ "title__i18n": {
20119
+ "type": "string",
20120
+ "minLength": 1,
20121
+ "maxLength": 300,
20122
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
20123
+ },
20124
+ "icon": {
20125
+ "type": "string",
20126
+ "minLength": 1,
20127
+ "maxLength": 255
20128
+ },
20129
+ "layout": {
20130
+ "type": "string",
20131
+ "minLength": 1,
20132
+ "maxLength": 255,
20133
+ "enum": [
20134
+ "native",
20135
+ "basic",
20136
+ "blank"
20137
+ ]
20138
+ },
20139
+ "resolver": {
20140
+ "anyOf": [
20141
+ {
20142
+ "additionalProperties": false,
20143
+ "type": "object",
20144
+ "properties": {
20145
+ "function": {
20146
+ "type": "string",
20147
+ "minLength": 1,
20148
+ "maxLength": 255,
20149
+ "pattern": "^[a-zA-Z0-9-_]+$"
20150
+ }
20151
+ },
20152
+ "required": [
20153
+ "function"
20154
+ ]
20155
+ },
20156
+ {
20157
+ "additionalProperties": false,
20158
+ "type": "object",
20159
+ "properties": {
20160
+ "endpoint": {
20161
+ "type": "string",
20162
+ "minLength": 1,
20163
+ "maxLength": 255,
20164
+ "pattern": "^[a-zA-Z0-9-_]+$"
20165
+ }
20166
+ },
20167
+ "required": [
20168
+ "endpoint"
20169
+ ]
20170
+ }
20171
+ ]
20172
+ },
20173
+ "resource": {
20174
+ "type": "string",
20175
+ "minLength": 1,
20176
+ "maxLength": 23,
20177
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
20178
+ },
20179
+ "resourceUploadId": {
20180
+ "type": "string",
20181
+ "minLength": 1,
20182
+ "maxLength": 255
20183
+ },
20184
+ "render": {
20185
+ "enum": [
20186
+ "native",
20187
+ "default"
20188
+ ],
20189
+ "type": "string",
20190
+ "default": "default"
20191
+ },
20192
+ "renderRuntimeType": {
20193
+ "enum": [
20194
+ "webworker",
20195
+ "iframe"
20196
+ ],
20197
+ "type": "string",
20198
+ "default": "iframe"
20199
+ },
20200
+ "key": {
20201
+ "$ref": "#/definitions/ModuleKeySchema"
20202
+ }
20203
+ },
20204
+ "not": {
20205
+ "required": [
20206
+ "unlicensedAccess"
20207
+ ]
20208
+ }
20209
+ }
20210
+ ]
20211
+ },
20212
+ "minItems": 1
20213
+ },
20214
+ "customerServiceManagement:requestDetail": {
20215
+ "type": "array",
20216
+ "items": {
20217
+ "oneOf": [
20218
+ {
20219
+ "type": "object",
20220
+ "required": [
20221
+ "title",
20222
+ "function",
20223
+ "key"
20224
+ ],
20225
+ "properties": {
20226
+ "title": {
20227
+ "oneOf": [
20228
+ {
20229
+ "type": "object",
20230
+ "additionalProperties": false,
20231
+ "properties": {
20232
+ "i18n": {
20233
+ "type": "string",
20234
+ "minLength": 1,
20235
+ "maxLength": 300,
20236
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
20237
+ }
20238
+ },
20239
+ "required": [
20240
+ "i18n"
20241
+ ]
20242
+ },
20243
+ {
20244
+ "type": "string",
20245
+ "minLength": 1,
20246
+ "maxLength": 255
20247
+ }
20248
+ ]
20249
+ },
20250
+ "title__i18n": {
20251
+ "type": "string",
20252
+ "minLength": 1,
20253
+ "maxLength": 300,
20254
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
20255
+ },
20256
+ "icon": {
20257
+ "type": "string",
20258
+ "minLength": 1,
20259
+ "maxLength": 255
20260
+ },
20261
+ "layout": {
20262
+ "type": "string",
20263
+ "minLength": 1,
20264
+ "maxLength": 255,
20265
+ "enum": [
20266
+ "native",
20267
+ "basic"
20268
+ ]
20269
+ },
20270
+ "viewportSize": {
20271
+ "type": "string",
20272
+ "minLength": 1,
20273
+ "maxLength": 255,
20274
+ "enum": [
20275
+ "small",
20276
+ "medium",
20277
+ "large",
20278
+ "xlarge"
20279
+ ]
20280
+ },
20281
+ "function": {
20282
+ "type": "string",
20283
+ "minLength": 1,
20284
+ "maxLength": 255,
20285
+ "pattern": "^[a-zA-Z0-9-_]+$"
20286
+ },
20287
+ "displayConditions": {
20288
+ "type": "object"
20289
+ },
20290
+ "key": {
20291
+ "$ref": "#/definitions/ModuleKeySchema"
20292
+ }
20293
+ }
20294
+ },
20295
+ {
20296
+ "type": "object",
20297
+ "required": [
20298
+ "title",
20299
+ "resource",
20300
+ "key"
20301
+ ],
20302
+ "properties": {
20303
+ "title": {
20304
+ "oneOf": [
20305
+ {
20306
+ "type": "object",
20307
+ "additionalProperties": false,
20308
+ "properties": {
20309
+ "i18n": {
20310
+ "type": "string",
20311
+ "minLength": 1,
20312
+ "maxLength": 300,
20313
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
20314
+ }
20315
+ },
20316
+ "required": [
20317
+ "i18n"
20318
+ ]
20319
+ },
20320
+ {
20321
+ "type": "string",
20322
+ "minLength": 1,
20323
+ "maxLength": 255
20324
+ }
20325
+ ]
20326
+ },
20327
+ "title__i18n": {
20328
+ "type": "string",
20329
+ "minLength": 1,
20330
+ "maxLength": 300,
20331
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
20332
+ },
20333
+ "icon": {
20334
+ "type": "string",
20335
+ "minLength": 1,
20336
+ "maxLength": 255
20337
+ },
20338
+ "layout": {
20339
+ "type": "string",
20340
+ "minLength": 1,
20341
+ "maxLength": 255,
20342
+ "enum": [
20343
+ "native",
20344
+ "basic"
20345
+ ]
20346
+ },
20347
+ "viewportSize": {
20348
+ "type": "string",
20349
+ "minLength": 1,
20350
+ "maxLength": 255,
20351
+ "enum": [
20352
+ "small",
20353
+ "medium",
20354
+ "large",
20355
+ "xlarge"
20356
+ ]
20357
+ },
20358
+ "resolver": {
20359
+ "anyOf": [
20360
+ {
20361
+ "additionalProperties": false,
20362
+ "type": "object",
20363
+ "properties": {
20364
+ "function": {
20365
+ "type": "string",
20366
+ "minLength": 1,
20367
+ "maxLength": 255,
20368
+ "pattern": "^[a-zA-Z0-9-_]+$"
20369
+ }
20370
+ },
20371
+ "required": [
20372
+ "function"
20373
+ ]
20374
+ },
20375
+ {
20376
+ "additionalProperties": false,
20377
+ "type": "object",
20378
+ "properties": {
20379
+ "endpoint": {
20380
+ "type": "string",
20381
+ "minLength": 1,
20382
+ "maxLength": 255,
20383
+ "pattern": "^[a-zA-Z0-9-_]+$"
20384
+ }
20385
+ },
20386
+ "required": [
20387
+ "endpoint"
20388
+ ]
20389
+ }
20390
+ ]
20391
+ },
20392
+ "resource": {
20393
+ "type": "string",
20394
+ "minLength": 1,
20395
+ "maxLength": 23,
20396
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
20397
+ },
20398
+ "resourceUploadId": {
20399
+ "type": "string",
20400
+ "minLength": 1,
20401
+ "maxLength": 255
20402
+ },
20403
+ "render": {
20404
+ "enum": [
20405
+ "native",
20406
+ "default"
20407
+ ],
20408
+ "type": "string",
20409
+ "default": "default"
20410
+ },
20411
+ "renderRuntimeType": {
20412
+ "enum": [
20413
+ "webworker",
20414
+ "iframe"
20415
+ ],
20416
+ "type": "string",
20417
+ "default": "iframe"
20418
+ },
20419
+ "displayConditions": {
20420
+ "type": "object"
20421
+ },
20422
+ "key": {
20423
+ "$ref": "#/definitions/ModuleKeySchema"
20424
+ }
20425
+ }
20426
+ }
20427
+ ]
20428
+ },
20429
+ "minItems": 1
20430
+ },
20001
20431
  "bitbucket:repoPullRequestCard": {
20002
20432
  "type": "array",
20003
20433
  "items": {
@@ -32325,6 +32755,31 @@
32325
32755
  ]
32326
32756
  }
32327
32757
  },
32758
+ "UrlFormat": {
32759
+ "description": "The URL format to use for this webtrigger.",
32760
+ "type": "string",
32761
+ "enum": [
32762
+ "v1",
32763
+ "v2"
32764
+ ]
32765
+ },
32766
+ "Authentication": {
32767
+ "description": "The authentication method to use for this webtrigger request.",
32768
+ "type": "string",
32769
+ "enum": [
32770
+ "hmac",
32771
+ "none"
32772
+ ]
32773
+ },
32774
+ "RequestOptions": {
32775
+ "additionalProperties": false,
32776
+ "properties": {
32777
+ "authentication": {
32778
+ "$ref": "#/definitions/Authentication"
32779
+ }
32780
+ },
32781
+ "type": "object"
32782
+ },
32328
32783
  "ResponseOptions": {
32329
32784
  "additionalProperties": false,
32330
32785
  "properties": {
@@ -112,12 +112,20 @@ export type Filter2 =
112
112
  * The key of the function that should be invoked for this webtrigger.
113
113
  */
114
114
  export type Function1 = string;
115
+ /**
116
+ * The authentication method to use for this webtrigger request.
117
+ */
118
+ export type Authentication = 'hmac' | 'none';
115
119
  /**
116
120
  * Response options for the webtrigger module.
117
121
  */
118
122
  export type Response = {
119
123
  [k: string]: unknown;
120
124
  };
125
+ /**
126
+ * The URL format to use for this webtrigger.
127
+ */
128
+ export type UrlFormat = 'v1' | 'v2';
121
129
  /**
122
130
  * The key of the service that should be invoked for this webtrigger.
123
131
  */
@@ -1049,13 +1057,22 @@ export interface Modules {
1049
1057
  (
1050
1058
  | {
1051
1059
  function: Function1;
1060
+ request?: Request;
1052
1061
  response?: Response;
1062
+ urlFormat?: UrlFormat;
1053
1063
  key: ModuleKeySchema;
1054
1064
  [k: string]: unknown;
1055
1065
  }
1056
1066
  | {
1057
1067
  endpoint: ExtensionKey;
1068
+ /**
1069
+ * Request options for the webtrigger module.
1070
+ */
1071
+ request?: {
1072
+ authentication?: Authentication;
1073
+ };
1058
1074
  response?: ResponseOptions;
1075
+ urlFormat?: UrlFormat;
1059
1076
  key: ModuleKeySchema;
1060
1077
  [k: string]: unknown;
1061
1078
  }
@@ -1063,13 +1080,22 @@ export interface Modules {
1063
1080
  ...(
1064
1081
  | {
1065
1082
  function: Function1;
1083
+ request?: Request;
1066
1084
  response?: Response;
1085
+ urlFormat?: UrlFormat;
1067
1086
  key: ModuleKeySchema;
1068
1087
  [k: string]: unknown;
1069
1088
  }
1070
1089
  | {
1071
1090
  endpoint: ExtensionKey;
1091
+ /**
1092
+ * Request options for the webtrigger module.
1093
+ */
1094
+ request?: {
1095
+ authentication?: Authentication;
1096
+ };
1072
1097
  response?: ResponseOptions;
1098
+ urlFormat?: UrlFormat;
1073
1099
  key: ModuleKeySchema;
1074
1100
  [k: string]: unknown;
1075
1101
  }
@@ -14635,7 +14661,7 @@ export interface Modules {
14635
14661
  connectFieldProperty?: {
14636
14662
  key?: string;
14637
14663
  path?: string;
14638
- connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT';
14664
+ connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT' | 'RICH_TEXT';
14639
14665
  [k: string]: unknown;
14640
14666
  };
14641
14667
  isUIModificationsEnabled?: boolean;
@@ -14760,7 +14786,7 @@ export interface Modules {
14760
14786
  connectFieldProperty?: {
14761
14787
  key?: string;
14762
14788
  path?: string;
14763
- connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT';
14789
+ connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT' | 'RICH_TEXT';
14764
14790
  [k: string]: unknown;
14765
14791
  };
14766
14792
  isUIModificationsEnabled?: boolean;
@@ -14874,7 +14900,7 @@ export interface Modules {
14874
14900
  connectFieldProperty?: {
14875
14901
  key?: string;
14876
14902
  path?: string;
14877
- connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT';
14903
+ connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT' | 'RICH_TEXT';
14878
14904
  [k: string]: unknown;
14879
14905
  };
14880
14906
  isUIModificationsEnabled?: boolean;
@@ -14998,7 +15024,7 @@ export interface Modules {
14998
15024
  connectFieldProperty?: {
14999
15025
  key?: string;
15000
15026
  path?: string;
15001
- connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT';
15027
+ connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT' | 'RICH_TEXT';
15002
15028
  [k: string]: unknown;
15003
15029
  };
15004
15030
  isUIModificationsEnabled?: boolean;
@@ -15123,7 +15149,7 @@ export interface Modules {
15123
15149
  connectFieldProperty?: {
15124
15150
  key?: string;
15125
15151
  path?: string;
15126
- connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT';
15152
+ connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT' | 'RICH_TEXT';
15127
15153
  [k: string]: unknown;
15128
15154
  };
15129
15155
  isUIModificationsEnabled?: boolean;
@@ -15237,7 +15263,7 @@ export interface Modules {
15237
15263
  connectFieldProperty?: {
15238
15264
  key?: string;
15239
15265
  path?: string;
15240
- connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT';
15266
+ connectFieldType?: 'MULTI_SELECT' | 'SINGLE_SELECT' | 'TEXT' | 'RICH_TEXT';
15241
15267
  [k: string]: unknown;
15242
15268
  };
15243
15269
  isUIModificationsEnabled?: boolean;
@@ -20519,6 +20545,178 @@ export interface Modules {
20519
20545
  }
20520
20546
  )[]
20521
20547
  ];
20548
+ 'customerServiceManagement:queuePage'?: [
20549
+ (
20550
+ | {
20551
+ title:
20552
+ | {
20553
+ i18n: string;
20554
+ }
20555
+ | string;
20556
+ title__i18n?: string;
20557
+ icon?: string;
20558
+ layout?: 'native' | 'basic';
20559
+ function: string;
20560
+ key: ModuleKeySchema;
20561
+ [k: string]: unknown;
20562
+ }
20563
+ | {
20564
+ title:
20565
+ | {
20566
+ i18n: string;
20567
+ }
20568
+ | string;
20569
+ title__i18n?: string;
20570
+ icon?: string;
20571
+ layout?: 'native' | 'basic' | 'blank';
20572
+ resolver?:
20573
+ | {
20574
+ function: string;
20575
+ }
20576
+ | {
20577
+ endpoint: string;
20578
+ };
20579
+ resource: string;
20580
+ resourceUploadId?: string;
20581
+ render?: 'native' | 'default';
20582
+ renderRuntimeType?: 'webworker' | 'iframe';
20583
+ key: ModuleKeySchema;
20584
+ [k: string]: unknown;
20585
+ }
20586
+ ),
20587
+ ...(
20588
+ | {
20589
+ title:
20590
+ | {
20591
+ i18n: string;
20592
+ }
20593
+ | string;
20594
+ title__i18n?: string;
20595
+ icon?: string;
20596
+ layout?: 'native' | 'basic';
20597
+ function: string;
20598
+ key: ModuleKeySchema;
20599
+ [k: string]: unknown;
20600
+ }
20601
+ | {
20602
+ title:
20603
+ | {
20604
+ i18n: string;
20605
+ }
20606
+ | string;
20607
+ title__i18n?: string;
20608
+ icon?: string;
20609
+ layout?: 'native' | 'basic' | 'blank';
20610
+ resolver?:
20611
+ | {
20612
+ function: string;
20613
+ }
20614
+ | {
20615
+ endpoint: string;
20616
+ };
20617
+ resource: string;
20618
+ resourceUploadId?: string;
20619
+ render?: 'native' | 'default';
20620
+ renderRuntimeType?: 'webworker' | 'iframe';
20621
+ key: ModuleKeySchema;
20622
+ [k: string]: unknown;
20623
+ }
20624
+ )[]
20625
+ ];
20626
+ 'customerServiceManagement:requestDetail'?: [
20627
+ (
20628
+ | {
20629
+ title:
20630
+ | {
20631
+ i18n: string;
20632
+ }
20633
+ | string;
20634
+ title__i18n?: string;
20635
+ icon?: string;
20636
+ layout?: 'native' | 'basic';
20637
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
20638
+ function: string;
20639
+ displayConditions?: {
20640
+ [k: string]: unknown;
20641
+ };
20642
+ key: ModuleKeySchema;
20643
+ [k: string]: unknown;
20644
+ }
20645
+ | {
20646
+ title:
20647
+ | {
20648
+ i18n: string;
20649
+ }
20650
+ | string;
20651
+ title__i18n?: string;
20652
+ icon?: string;
20653
+ layout?: 'native' | 'basic';
20654
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
20655
+ resolver?:
20656
+ | {
20657
+ function: string;
20658
+ }
20659
+ | {
20660
+ endpoint: string;
20661
+ };
20662
+ resource: string;
20663
+ resourceUploadId?: string;
20664
+ render?: 'native' | 'default';
20665
+ renderRuntimeType?: 'webworker' | 'iframe';
20666
+ displayConditions?: {
20667
+ [k: string]: unknown;
20668
+ };
20669
+ key: ModuleKeySchema;
20670
+ [k: string]: unknown;
20671
+ }
20672
+ ),
20673
+ ...(
20674
+ | {
20675
+ title:
20676
+ | {
20677
+ i18n: string;
20678
+ }
20679
+ | string;
20680
+ title__i18n?: string;
20681
+ icon?: string;
20682
+ layout?: 'native' | 'basic';
20683
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
20684
+ function: string;
20685
+ displayConditions?: {
20686
+ [k: string]: unknown;
20687
+ };
20688
+ key: ModuleKeySchema;
20689
+ [k: string]: unknown;
20690
+ }
20691
+ | {
20692
+ title:
20693
+ | {
20694
+ i18n: string;
20695
+ }
20696
+ | string;
20697
+ title__i18n?: string;
20698
+ icon?: string;
20699
+ layout?: 'native' | 'basic';
20700
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
20701
+ resolver?:
20702
+ | {
20703
+ function: string;
20704
+ }
20705
+ | {
20706
+ endpoint: string;
20707
+ };
20708
+ resource: string;
20709
+ resourceUploadId?: string;
20710
+ render?: 'native' | 'default';
20711
+ renderRuntimeType?: 'webworker' | 'iframe';
20712
+ displayConditions?: {
20713
+ [k: string]: unknown;
20714
+ };
20715
+ key: ModuleKeySchema;
20716
+ [k: string]: unknown;
20717
+ }
20718
+ )[]
20719
+ ];
20522
20720
  'bitbucket:repoPullRequestCard'?: [
20523
20721
  (
20524
20722
  | {
@@ -25278,6 +25476,12 @@ export interface Payload1 {
25278
25476
  export interface Payload2 {
25279
25477
  include: Include;
25280
25478
  }
25479
+ /**
25480
+ * Request options for the webtrigger module.
25481
+ */
25482
+ export interface Request {
25483
+ authentication?: Authentication;
25484
+ }
25281
25485
  export interface RuntimeLayer {
25282
25486
  identifier: string;
25283
25487
  layer: {
@@ -83,6 +83,8 @@ export declare enum AllModuleTypes {
83
83
  JiraServiceManagementPortalRequestViewAction = "jiraServiceManagement:portalRequestViewAction",
84
84
  JiraServiceManagementPortalUserMenuAction = "jiraServiceManagement:portalUserMenuAction",
85
85
  JiraServiceManagementPortalRequestCreatePropertyPanel = "jiraServiceManagement:portalRequestCreatePropertyPanel",
86
+ CustomerServiceManagementQueuePage = "customerServiceManagement:queuePage",
87
+ CustomerServiceManagementRequestDetail = "customerServiceManagement:requestDetail",
86
88
  BitbucketRepoCodeFileViewer = "bitbucket:repoCodeFileViewer",
87
89
  BitbucketRepoCodeOverviewCard = "bitbucket:repoCodeOverviewCard",
88
90
  BitbucketRepoCodeOverviewAction = "bitbucket:repoCodeOverviewAction",
@@ -1 +1 @@
1
-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AA0C;IAC7E,sCAAsC,6CAA6C;IACnF,mCAAmC,0CAA0C;IAC7E,uDAAuD,8DAA8D;IACrH,oDAAoD,2DAA2D;IAC/G,6CAA6C,oDAAoD;IACjG,yCAAyC,gDAAgD;IACzF,4BAA4B,mCAAmC;IAC/D,6BAA6B,oCAAoC;IACjE,wCAAwC,+CAA+C;IACvF,kCAAkC,yCAAyC;IAC3E,iCAAiC,wCAAwC;IACzE,2CAA2C,kDAAkD;IAC7F,0CAA0C,iDAAiD;IAC3F,8CAA8C,qDAAqD;IACnG,yCAAyC,gDAAgD;IACzF,4BAA4B,mCAAmC;IAC/D,+BAA+B,sCAAsC;IACrE,sBAAsB,6BAA6B;IACnD,2BAA2B,kCAAkC;IAC7D,qCAAqC,4CAA4C;IACjF,sCAAsC,6CAA6C;IAEnF,8BAA8B,uBAAuB;IACrD,6BAA6B,sBAAsB;IACnD,6BAA6B,sBAAsB;IACnD,gCAAgC,yBAAyB;IACzD,wCAAwC,iCAAiC;IACzE,+BAA+B,wBAAwB;IACvD,2BAA2B,oBAAoB;IAC/C,wBAAwB,8BAA8B;IAEtD,SAAS,eAAe;IACxB,kBAAkB,wBAAwB;IAC1C,UAAU,gBAAgB;IAC1B,mBAAmB,yBAAyB;IAC5C,cAAc,oBAAoB;IAClC,UAAU,oBAAoB;IAE9B,6BAA6B,mCAAmC;IAChE,6BAA6B,mCAAmC;IAChE,4BAA4B,kCAAkC;IAC9D,uBAAuB,6BAA6B;IACpD,4BAA4B,kCAAkC;IAE9D,QAAQ,cAAc;CACvB;AAED,eAAO,MAAM,iBAAiB,kBAAgC,CAAC;AAE/D,eAAO,MAAM,uBAAuB,UAAwE,CAAC"}
@@ -87,6 +87,8 @@ var AllModuleTypes;
87
87
  AllModuleTypes["JiraServiceManagementPortalRequestViewAction"] = "jiraServiceManagement:portalRequestViewAction";
88
88
  AllModuleTypes["JiraServiceManagementPortalUserMenuAction"] = "jiraServiceManagement:portalUserMenuAction";
89
89
  AllModuleTypes["JiraServiceManagementPortalRequestCreatePropertyPanel"] = "jiraServiceManagement:portalRequestCreatePropertyPanel";
90
+ AllModuleTypes["CustomerServiceManagementQueuePage"] = "customerServiceManagement:queuePage";
91
+ AllModuleTypes["CustomerServiceManagementRequestDetail"] = "customerServiceManagement:requestDetail";
90
92
  AllModuleTypes["BitbucketRepoCodeFileViewer"] = "bitbucket:repoCodeFileViewer";
91
93
  AllModuleTypes["BitbucketRepoCodeOverviewCard"] = "bitbucket:repoCodeOverviewCard";
92
94
  AllModuleTypes["BitbucketRepoCodeOverviewAction"] = "bitbucket:repoCodeOverviewAction";
@@ -1 +1 @@
1
- {"version":3,"file":"schema-validator.d.ts","sourceRoot":"","sources":["../../src/validators/schema-validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAA0C,MAAM,UAAU,CAAC;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAGjF,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAmB;gBAErB,MAAM,EAAE,MAAM;IAS3C,OAAO,CAAC,mBAAmB,CAoCzB;IAEF,OAAO,CAAC,iBAAiB,CAyBvB;IAEF,OAAO,CAAC,kBAAkB,CAyBxB;IAEF,OAAO,CAAC,iBAAiB,CAKvB;IAEF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,qBAAqB,CAa3B;IAEF,OAAO,CAAC,WAAW,CAejB;IAEI,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAkD9F"}
1
+ {"version":3,"file":"schema-validator.d.ts","sourceRoot":"","sources":["../../src/validators/schema-validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAA0C,MAAM,UAAU,CAAC;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAGjF,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAmB;gBAErB,MAAM,EAAE,MAAM;IAS3C,OAAO,CAAC,mBAAmB,CA0DzB;IAEF,OAAO,CAAC,iBAAiB,CA0BvB;IAEF,OAAO,CAAC,kBAAkB,CA0BxB;IAEF,OAAO,CAAC,iBAAiB,CAKvB;IAEF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,qBAAqB,CAa3B;IAEF,OAAO,CAAC,WAAW,CAgBjB;IAEI,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAmD9F"}
@@ -16,7 +16,7 @@ class SchemaValidator {
16
16
  ajv.addVocabulary(['defaultValue', 'fieldDescription', 'fieldTitle', 'shortClassName']);
17
17
  this.validateSchema = ajv.compile(this.schema);
18
18
  }
19
- processErrorMessage = (error) => {
19
+ processErrorMessage = (error, allErrors) => {
20
20
  if (error.keyword === 'if' && ['then', 'else'].some((keyword) => keyword === error.params.failingKeyword)) {
21
21
  return undefined;
22
22
  }
@@ -30,6 +30,18 @@ class SchemaValidator {
30
30
  return text_1.errors.schema.enumValues(error.params.allowedValues);
31
31
  }
32
32
  if (error.keyword === 'oneOf') {
33
+ if (!error.params.passingSchemas && allErrors) {
34
+ const oneOfBranches = error.schema ?? [];
35
+ const childEnumErrors = allErrors.filter((e) => e !== error && e.keyword === 'enum' && e.instancePath.startsWith(error.instancePath + '/'));
36
+ const allEnumPropertiesInAllBranches = childEnumErrors.every((enumError) => {
37
+ const propertyName = enumError.instancePath.split('/').pop();
38
+ return (propertyName !== undefined &&
39
+ oneOfBranches.every((branch) => branch?.properties && propertyName in branch.properties));
40
+ });
41
+ if (childEnumErrors.length > 0 && allEnumPropertiesInAllBranches) {
42
+ return undefined;
43
+ }
44
+ }
33
45
  if (error.params.passingSchemas) {
34
46
  const requiredProps = error.params.passingSchemas.map((v) => error.schema[v].required);
35
47
  return text_1.errors.schema.oneOf(requiredProps);
@@ -47,10 +59,10 @@ class SchemaValidator {
47
59
  }
48
60
  return error.message;
49
61
  };
50
- handleModuleError = (path, error, manifest) => {
62
+ handleModuleError = (path, error, manifest, allErrors) => {
51
63
  const hasProperty = path.length > 1;
52
64
  const propertyName = path[path.length - 1];
53
- const errorMessage = this.processErrorMessage(error);
65
+ const errorMessage = this.processErrorMessage(error, allErrors);
54
66
  if (!errorMessage) {
55
67
  return undefined;
56
68
  }
@@ -66,10 +78,10 @@ class SchemaValidator {
66
78
  ...(0, utils_1.findPosition)(searchString, manifest.yamlContentByLine)
67
79
  };
68
80
  };
69
- handleGenericError = (path, error, manifest) => {
81
+ handleGenericError = (path, error, manifest, allErrors) => {
70
82
  const hasProperty = path.length > 1;
71
83
  const propertyName = path[path.length - 1];
72
- const errorMessage = this.processErrorMessage(error);
84
+ const errorMessage = this.processErrorMessage(error, allErrors);
73
85
  if (!errorMessage) {
74
86
  return undefined;
75
87
  }
@@ -110,16 +122,16 @@ class SchemaValidator {
110
122
  ...(0, utils_1.findPosition)(`${section}:`, manifest.yamlContentByLine)
111
123
  };
112
124
  };
113
- handleError = (path, error, manifest) => {
125
+ handleError = (path, error, manifest, allErrors) => {
114
126
  const rootManifestSection = path[0];
115
127
  const manifestSection = path[path.length - 1];
116
128
  if (this.isDeprecatedField(manifestSection, error)) {
117
129
  return this.handleDeprecatedField(manifestSection, error, manifest);
118
130
  }
119
131
  if (rootManifestSection === 'modules') {
120
- return this.handleModuleError(path.slice(1), error, manifest);
132
+ return this.handleModuleError(path.slice(1), error, manifest, allErrors);
121
133
  }
122
- return this.handleGenericError(path, error, manifest);
134
+ return this.handleGenericError(path, error, manifest, allErrors);
123
135
  };
124
136
  async validate(manifest) {
125
137
  if (!manifest || !manifest.yamlContent) {
@@ -129,10 +141,11 @@ class SchemaValidator {
129
141
  };
130
142
  }
131
143
  let success = this.validateSchema(manifest.yamlContent);
132
- const errors = this.validateSchema.errors
144
+ const allErrors = this.validateSchema.errors ?? [];
145
+ const errors = allErrors
133
146
  ?.map((error) => {
134
147
  const values = error.instancePath.replace(/\/\d+/, '').split('/').slice(1);
135
- return this.handleError(values, error, manifest);
148
+ return this.handleError(values, error, manifest, allErrors);
136
149
  })
137
150
  .filter((e) => e !== undefined);
138
151
  const _isEqual = (e1, e2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "12.6.0",
3
+ "version": "12.7.0-next.1",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {