@adobe/aio-commerce-lib-app 1.7.0 → 1.8.0-beta-20260714082406

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/cjs/actions/app-config/index.cjs +41 -38
  3. package/dist/cjs/actions/app-config/index.d.cts +1 -1
  4. package/dist/cjs/actions/association/index.cjs +85 -0
  5. package/dist/cjs/actions/{registration → association}/index.d.cts +9 -13
  6. package/dist/cjs/actions/config/index.cjs +21 -32
  7. package/dist/cjs/actions/installation/index.cjs +72 -51
  8. package/dist/cjs/actions/installation/index.d.cts +2 -2
  9. package/dist/cjs/actions/scope-tree/index.cjs +18 -17
  10. package/dist/{es/app-DrYHK-z1.d.mts → cjs/app-D3P-Z6uY.d.cts} +1085 -1035
  11. package/dist/cjs/association-repository-BAs3-VkW.cjs +69 -0
  12. package/dist/cjs/commands/index.cjs +512 -298
  13. package/dist/cjs/commands/templates/admin-ui/tsconfig.json +14 -0
  14. package/dist/cjs/commands/templates/admin-ui/web-src/index.css +5 -0
  15. package/dist/cjs/commands/templates/admin-ui/web-src/index.html +17 -0
  16. package/dist/cjs/commands/templates/admin-ui/web-src/src/app.jsx +13 -0
  17. package/dist/cjs/commands/templates/admin-ui/web-src/src/components/welcome.jsx +12 -0
  18. package/dist/cjs/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
  19. package/dist/cjs/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
  20. package/dist/cjs/commands/templates/app-management/app-config.js.template +1 -14
  21. package/dist/cjs/commands/templates/app-management/association.js.template +6 -0
  22. package/dist/cjs/commands/templates/app-management/installation.js.template +1 -13
  23. package/dist/cjs/commands/templates/business-configuration/config.js.template +2 -15
  24. package/dist/cjs/commands/templates/business-configuration/scope-tree.js.template +0 -12
  25. package/dist/cjs/config/index.browser.cjs +18 -0
  26. package/dist/cjs/config/index.browser.d.cts +16 -0
  27. package/dist/cjs/config/{index.cjs → index.node.cjs} +9 -8
  28. package/dist/cjs/config/{index.d.cts → index.node.d.cts} +954 -386
  29. package/dist/cjs/define-DBxAlJfN.d.cts +34 -0
  30. package/dist/cjs/define-hlcQw7Cv.cjs +41 -0
  31. package/dist/cjs/environment-B7EnozSg.cjs +135 -0
  32. package/dist/cjs/{index-B5gJ-q4U.d.cts → index-CzReNwbF.d.cts} +17 -12
  33. package/dist/cjs/index.cjs +250 -0
  34. package/dist/cjs/index.d.cts +217 -0
  35. package/dist/cjs/{config-D-s0GSep.cjs → index.node-Dz4lV4qe.cjs} +119 -35
  36. package/dist/cjs/{logging-BVz3weoC.cjs → logging-udPuAJPt.cjs} +2 -2
  37. package/dist/cjs/management/index.cjs +1 -1
  38. package/dist/cjs/management/index.d.cts +1 -1
  39. package/dist/cjs/{management-Dehz9qSJ.cjs → management-B9ItB80R.cjs} +385 -582
  40. package/dist/cjs/{openapi-Cux6K4ZD.cjs → openapi-CwytYdWl.cjs} +476 -600
  41. package/dist/cjs/{router-BOR7T6qR.cjs → router-hA_Y9gZ1.cjs} +42 -44
  42. package/dist/cjs/{schemas-FngDuIeo.cjs → schemas-mLxMh_ko.cjs} +2 -2
  43. package/dist/cjs/utils-DSCmZ_iJ.cjs +408 -0
  44. package/dist/cjs/{validate-oAOpyFyb.cjs → validate-BfxhZ5Wv.cjs} +20 -20
  45. package/dist/cjs/{webhooks-tbZy9G3p.cjs → webhooks-B5tb9NeF.cjs} +159 -151
  46. package/dist/es/actions/app-config/index.d.mts +1 -1
  47. package/dist/es/actions/app-config/index.mjs +39 -36
  48. package/dist/es/actions/{registration → association}/index.d.mts +9 -13
  49. package/dist/es/actions/association/index.mjs +82 -0
  50. package/dist/es/actions/config/index.mjs +17 -28
  51. package/dist/es/actions/installation/index.d.mts +2 -2
  52. package/dist/es/actions/installation/index.mjs +69 -48
  53. package/dist/es/actions/scope-tree/index.mjs +14 -13
  54. package/dist/{cjs/app-DrYHK-z1.d.cts → es/app-D3P-Z6uY.d.mts} +1085 -1035
  55. package/dist/es/association-repository-BbQv9WCl.mjs +52 -0
  56. package/dist/es/commands/index.mjs +544 -328
  57. package/dist/es/commands/templates/admin-ui/tsconfig.json +14 -0
  58. package/dist/es/commands/templates/admin-ui/web-src/index.css +5 -0
  59. package/dist/es/commands/templates/admin-ui/web-src/index.html +17 -0
  60. package/dist/es/commands/templates/admin-ui/web-src/src/app.jsx +13 -0
  61. package/dist/es/commands/templates/admin-ui/web-src/src/components/welcome.jsx +12 -0
  62. package/dist/es/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
  63. package/dist/es/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
  64. package/dist/es/commands/templates/app-management/app-config.js.template +1 -14
  65. package/dist/es/commands/templates/app-management/association.js.template +6 -0
  66. package/dist/es/commands/templates/app-management/installation.js.template +1 -13
  67. package/dist/es/commands/templates/business-configuration/config.js.template +2 -15
  68. package/dist/es/commands/templates/business-configuration/scope-tree.js.template +0 -12
  69. package/dist/es/config/index.browser.d.mts +16 -0
  70. package/dist/es/config/index.browser.mjs +17 -0
  71. package/dist/es/config/{index.d.mts → index.node.d.mts} +954 -386
  72. package/dist/es/config/{index.mjs → index.node.mjs} +5 -4
  73. package/dist/es/define-EoYRZbpe.d.mts +34 -0
  74. package/dist/es/define-Z_Glf1-_.mjs +35 -0
  75. package/dist/es/environment-C84BPRJZ.mjs +104 -0
  76. package/dist/es/{index-DLMbTtKS.d.mts → index-D52xglhZ.d.mts} +17 -12
  77. package/dist/es/index.d.mts +217 -0
  78. package/dist/es/index.mjs +242 -0
  79. package/dist/es/{config-3I4eLyyR.mjs → index.node-CDH5gwJE.mjs} +94 -30
  80. package/dist/es/management/index.d.mts +1 -1
  81. package/dist/es/management/index.mjs +1 -1
  82. package/dist/es/{management-BUX-w2Ji.mjs → management-B89ApQVY.mjs} +353 -550
  83. package/dist/es/{openapi-B6uP0SRn.mjs → openapi-CXonvevE.mjs} +476 -600
  84. package/dist/es/{router-D58JJHHA.mjs → router-B_h0cvjc.mjs} +40 -42
  85. package/dist/es/utils-_gj8L6eN.mjs +289 -0
  86. package/dist/es/{validate-Dfajrp99.mjs → validate-9cRZWGrA.mjs} +17 -17
  87. package/dist/es/{webhooks-B5oq9ULL.mjs → webhooks-BBPbY2mb.mjs} +150 -142
  88. package/package.json +40 -17
  89. package/dist/cjs/actions/registration/index.cjs +0 -50
  90. package/dist/cjs/admin-ui-sdk-EU915zlR.d.cts +0 -664
  91. package/dist/es/actions/registration/index.mjs +0 -49
  92. package/dist/es/admin-ui-sdk-BwnD0xjK.d.mts +0 -664
  93. /package/dist/cjs/{chunk-Cozy-1ZF.cjs → rolldown-runtime-Cozy-1ZF.cjs} +0 -0
@@ -17,8 +17,8 @@
17
17
  var openapi = "3.1.0";
18
18
  var info = {
19
19
  "title": "App Management API",
20
- "description": "REST API for managing Adobe Commerce App Builder apps: resolving app configuration, managing configuration values, running the installation and uninstallation lifecycle, exposing the Admin UI SDK registration, and managing the scope tree.",
21
- "version": "1.0.0",
20
+ "description": "REST API for managing Adobe Commerce App Builder apps: resolving app configuration, managing configuration values, running the installation and uninstallation lifecycle, and managing the scope tree.",
21
+ "version": "2.0.0",
22
22
  "contact": {},
23
23
  "license": {
24
24
  "identifier": "Apache-2.0",
@@ -31,8 +31,17 @@ var paths = {
31
31
  "/app-config": { "get": {
32
32
  "operationId": "getAppConfig",
33
33
  "summary": "Get Commerce App Configuration",
34
- "description": "Returns the Commerce App configuration after resolving and validating it against the schema.",
34
+ "description": "Returns the Commerce App configuration after resolving and validating it against the schema. When `commerceEnv` is provided, webhooks and events are filtered to that Commerce environment; when omitted, the full, unfiltered configuration is returned.",
35
35
  "parameters": [{
36
+ "name": "commerceEnv",
37
+ "in": "query",
38
+ "description": "When provided, filters the returned webhooks and events to those applicable to this Commerce environment. When omitted, the full configuration is returned.",
39
+ "required": false,
40
+ "schema": {
41
+ "type": "string",
42
+ "enum": ["paas", "saas"]
43
+ }
44
+ }, {
36
45
  "name": "x-gw-ims-org-id",
37
46
  "in": "header",
38
47
  "description": "Adobe IMS organization ID that identifies the organization for the request.",
@@ -463,10 +472,9 @@ var paths = {
463
472
  },
464
473
  "required": []
465
474
  },
466
- "adminUiSdk": {
467
- "type": "object",
468
- "properties": { "registration": { "$ref": "#/components/schemas/AdminUiSdkRegistration" } },
469
- "required": ["registration"]
475
+ "adminUi": {
476
+ "description": "The Admin UI SDK v2 configuration block (served as the `adminUi` property of the app-config response).",
477
+ "$ref": "#/components/schemas/AdminUiConfiguration"
470
478
  },
471
479
  "installation": {
472
480
  "type": "object",
@@ -1079,6 +1087,11 @@ var paths = {
1079
1087
  "format": "date-time"
1080
1088
  },
1081
1089
  "step": { "$ref": "#/components/schemas/StepStatus" },
1090
+ "config": {
1091
+ "description": "The validated app configuration recorded at install time. Present so uninstallation can be sourced from what was actually installed rather than the current request config. Absent on states persisted before this field was introduced.",
1092
+ "type": "object",
1093
+ "additionalProperties": true
1094
+ },
1082
1095
  "data": { "anyOf": [{
1083
1096
  "type": "object",
1084
1097
  "propertyNames": { "type": "string" },
@@ -1107,6 +1120,11 @@ var paths = {
1107
1120
  "format": "date-time"
1108
1121
  },
1109
1122
  "step": { "$ref": "#/components/schemas/StepStatus" },
1123
+ "config": {
1124
+ "description": "The validated app configuration recorded at install time. Present so uninstallation can be sourced from what was actually installed rather than the current request config. Absent on states persisted before this field was introduced.",
1125
+ "type": "object",
1126
+ "additionalProperties": true
1127
+ },
1110
1128
  "data": { "anyOf": [{
1111
1129
  "type": "object",
1112
1130
  "propertyNames": { "type": "string" },
@@ -1141,6 +1159,11 @@ var paths = {
1141
1159
  "format": "date-time"
1142
1160
  },
1143
1161
  "step": { "$ref": "#/components/schemas/StepStatus" },
1162
+ "config": {
1163
+ "description": "The validated app configuration recorded at install time. Present so uninstallation can be sourced from what was actually installed rather than the current request config. Absent on states persisted before this field was introduced.",
1164
+ "type": "object",
1165
+ "additionalProperties": true
1166
+ },
1144
1167
  "data": { "anyOf": [{
1145
1168
  "type": "object",
1146
1169
  "propertyNames": { "type": "string" },
@@ -1206,7 +1229,10 @@ var paths = {
1206
1229
  "properties": {
1207
1230
  "appData": { "$ref": "#/components/schemas/AppData" },
1208
1231
  "commerceBaseUrl": { "type": "string" },
1209
- "commerceEnv": { "type": "string" },
1232
+ "commerceEnv": {
1233
+ "type": "string",
1234
+ "enum": ["paas", "saas"]
1235
+ },
1210
1236
  "ioEventsUrl": { "type": "string" },
1211
1237
  "ioEventsEnv": { "type": "string" }
1212
1238
  },
@@ -1234,6 +1260,11 @@ var paths = {
1234
1260
  "format": "date-time"
1235
1261
  },
1236
1262
  "step": { "$ref": "#/components/schemas/StepStatus" },
1263
+ "config": {
1264
+ "description": "The validated app configuration recorded at install time. Present so uninstallation can be sourced from what was actually installed rather than the current request config. Absent on states persisted before this field was introduced.",
1265
+ "type": "object",
1266
+ "additionalProperties": true
1267
+ },
1237
1268
  "data": { "anyOf": [{
1238
1269
  "type": "object",
1239
1270
  "propertyNames": { "type": "string" },
@@ -1291,7 +1322,10 @@ var paths = {
1291
1322
  "properties": {
1292
1323
  "appData": { "$ref": "#/components/schemas/AppData" },
1293
1324
  "commerceBaseUrl": { "type": "string" },
1294
- "commerceEnv": { "type": "string" },
1325
+ "commerceEnv": {
1326
+ "type": "string",
1327
+ "enum": ["paas", "saas"]
1328
+ },
1295
1329
  "ioEventsUrl": { "type": "string" },
1296
1330
  "ioEventsEnv": { "type": "string" }
1297
1331
  },
@@ -1374,6 +1408,11 @@ var paths = {
1374
1408
  "format": "date-time"
1375
1409
  },
1376
1410
  "step": { "$ref": "#/components/schemas/StepStatus" },
1411
+ "config": {
1412
+ "description": "The validated app configuration recorded at install time. Present so uninstallation can be sourced from what was actually installed rather than the current request config. Absent on states persisted before this field was introduced.",
1413
+ "type": "object",
1414
+ "additionalProperties": true
1415
+ },
1377
1416
  "data": { "anyOf": [{
1378
1417
  "type": "object",
1379
1418
  "propertyNames": { "type": "string" },
@@ -1402,6 +1441,11 @@ var paths = {
1402
1441
  "format": "date-time"
1403
1442
  },
1404
1443
  "step": { "$ref": "#/components/schemas/StepStatus" },
1444
+ "config": {
1445
+ "description": "The validated app configuration recorded at install time. Present so uninstallation can be sourced from what was actually installed rather than the current request config. Absent on states persisted before this field was introduced.",
1446
+ "type": "object",
1447
+ "additionalProperties": true
1448
+ },
1405
1449
  "data": { "anyOf": [{
1406
1450
  "type": "object",
1407
1451
  "propertyNames": { "type": "string" },
@@ -1436,6 +1480,11 @@ var paths = {
1436
1480
  "format": "date-time"
1437
1481
  },
1438
1482
  "step": { "$ref": "#/components/schemas/StepStatus" },
1483
+ "config": {
1484
+ "description": "The validated app configuration recorded at install time. Present so uninstallation can be sourced from what was actually installed rather than the current request config. Absent on states persisted before this field was introduced.",
1485
+ "type": "object",
1486
+ "additionalProperties": true
1487
+ },
1439
1488
  "data": { "anyOf": [{
1440
1489
  "type": "object",
1441
1490
  "propertyNames": { "type": "string" },
@@ -1501,7 +1550,10 @@ var paths = {
1501
1550
  "properties": {
1502
1551
  "appData": { "$ref": "#/components/schemas/AppData" },
1503
1552
  "commerceBaseUrl": { "type": "string" },
1504
- "commerceEnv": { "type": "string" },
1553
+ "commerceEnv": {
1554
+ "type": "string",
1555
+ "enum": ["paas", "saas"]
1556
+ },
1505
1557
  "ioEventsUrl": { "type": "string" },
1506
1558
  "ioEventsEnv": { "type": "string" }
1507
1559
  },
@@ -1529,6 +1581,11 @@ var paths = {
1529
1581
  "format": "date-time"
1530
1582
  },
1531
1583
  "step": { "$ref": "#/components/schemas/StepStatus" },
1584
+ "config": {
1585
+ "description": "The validated app configuration recorded at install time. Present so uninstallation can be sourced from what was actually installed rather than the current request config. Absent on states persisted before this field was introduced.",
1586
+ "type": "object",
1587
+ "additionalProperties": true
1588
+ },
1532
1589
  "data": { "anyOf": [{
1533
1590
  "type": "object",
1534
1591
  "propertyNames": { "type": "string" },
@@ -1590,35 +1647,6 @@ var paths = {
1590
1647
  "tags": ["Management"]
1591
1648
  }
1592
1649
  },
1593
- "/registration": { "get": {
1594
- "operationId": "getRegistration",
1595
- "summary": "Get Registration",
1596
- "description": "Returns the Admin UI SDK registration object configured for this app.",
1597
- "parameters": [{
1598
- "name": "x-gw-ims-org-id",
1599
- "in": "header",
1600
- "description": "Adobe IMS organization ID that identifies the organization for the request.",
1601
- "required": true,
1602
- "schema": { "type": "string" }
1603
- }],
1604
- "responses": {
1605
- "200": {
1606
- "description": "The Admin UI SDK registration payload.",
1607
- "content": { "application/json": { "schema": {
1608
- "type": "object",
1609
- "properties": { "registration": { "$ref": "#/components/schemas/AdminUiSdkRegistration" } },
1610
- "required": ["registration"]
1611
- } } }
1612
- },
1613
- "401": { "description": "You are not authorized to access this resource. Ensure the IMS token and the x-gw-ims-org-id header are correctly set and valid." },
1614
- "403": { "description": "The access token is valid, but it is not allowed to access the requested organization or operation." },
1615
- "500": {
1616
- "description": "An unexpected server error occurred.",
1617
- "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }
1618
- }
1619
- },
1620
- "tags": ["Admin UI"]
1621
- } },
1622
1650
  "/scope-tree": {
1623
1651
  "get": {
1624
1652
  "operationId": "getScopeTree",
@@ -1759,7 +1787,7 @@ var paths = {
1759
1787
  },
1760
1788
  "commerceEnv": {
1761
1789
  "type": "string",
1762
- "minLength": 1
1790
+ "enum": ["paas", "saas"]
1763
1791
  }
1764
1792
  },
1765
1793
  "required": ["commerceBaseUrl"]
@@ -1840,6 +1868,75 @@ var paths = {
1840
1868
  },
1841
1869
  "tags": ["Business Configuration"]
1842
1870
  }
1871
+ },
1872
+ "/association": {
1873
+ "post": {
1874
+ "operationId": "setAssociation",
1875
+ "summary": "Store Commerce Association",
1876
+ "description": "Persists the Commerce instance the app is associated with so runtime actions can later retrieve it via the SDK helpers.",
1877
+ "parameters": [{
1878
+ "name": "x-gw-ims-org-id",
1879
+ "in": "header",
1880
+ "description": "Adobe IMS organization ID that identifies the organization for the request.",
1881
+ "required": true,
1882
+ "schema": { "type": "string" }
1883
+ }],
1884
+ "requestBody": {
1885
+ "required": true,
1886
+ "content": { "application/json": { "schema": {
1887
+ "type": "object",
1888
+ "properties": {
1889
+ "commerceBaseUrl": {
1890
+ "description": "Commerce API base URL of the associated instance.",
1891
+ "type": "string",
1892
+ "format": "uri"
1893
+ },
1894
+ "commerceEnv": {
1895
+ "description": "Deployment type of the associated Commerce instance.",
1896
+ "type": "string",
1897
+ "enum": ["saas", "paas"]
1898
+ }
1899
+ },
1900
+ "required": ["commerceBaseUrl", "commerceEnv"]
1901
+ } } }
1902
+ },
1903
+ "responses": {
1904
+ "204": { "description": "Association data stored successfully." },
1905
+ "400": {
1906
+ "description": "Bad request, the request body is invalid.",
1907
+ "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }
1908
+ },
1909
+ "401": { "description": "You are not authorized to access this resource. Ensure the IMS token and the x-gw-ims-org-id header are correctly set and valid." },
1910
+ "403": { "description": "The access token is valid, but it is not allowed to access the requested organization or operation." },
1911
+ "500": {
1912
+ "description": "Internal server error while storing the association data.",
1913
+ "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }
1914
+ }
1915
+ },
1916
+ "tags": ["Association"]
1917
+ },
1918
+ "delete": {
1919
+ "operationId": "clearAssociation",
1920
+ "summary": "Clear Commerce Association",
1921
+ "description": "Removes the stored Commerce instance details. Called when the app is unassociated.",
1922
+ "parameters": [{
1923
+ "name": "x-gw-ims-org-id",
1924
+ "in": "header",
1925
+ "description": "Adobe IMS organization ID that identifies the organization for the request.",
1926
+ "required": true,
1927
+ "schema": { "type": "string" }
1928
+ }],
1929
+ "responses": {
1930
+ "204": { "description": "Association data cleared successfully." },
1931
+ "401": { "description": "You are not authorized to access this resource. Ensure the IMS token and the x-gw-ims-org-id header are correctly set and valid." },
1932
+ "403": { "description": "The access token is valid, but it is not allowed to access the requested organization or operation." },
1933
+ "500": {
1934
+ "description": "Internal server error while clearing the association data.",
1935
+ "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } }
1936
+ }
1937
+ },
1938
+ "tags": ["Association"]
1939
+ }
1843
1940
  }
1844
1941
  };
1845
1942
  var components = {
@@ -2350,10 +2447,187 @@ var components = {
2350
2447
  ],
2351
2448
  "title": "CustomScopeOutput"
2352
2449
  },
2353
- "AdminUiSdkRegistration": {
2450
+ "AdminUiMenu": {
2451
+ "type": "object",
2452
+ "properties": {
2453
+ "id": {
2454
+ "type": "string",
2455
+ "minLength": 1,
2456
+ "pattern": "^[A-Za-z0-9_/:]+$"
2457
+ },
2458
+ "label": {
2459
+ "type": "string",
2460
+ "minLength": 1
2461
+ },
2462
+ "description": {
2463
+ "type": "string",
2464
+ "minLength": 1
2465
+ },
2466
+ "pageTitle": {
2467
+ "type": "string",
2468
+ "minLength": 1
2469
+ },
2470
+ "parentMenu": {
2471
+ "type": "string",
2472
+ "enum": [
2473
+ "sales",
2474
+ "catalog",
2475
+ "customers",
2476
+ "marketing",
2477
+ "content",
2478
+ "reports",
2479
+ "stores",
2480
+ "system"
2481
+ ]
2482
+ },
2483
+ "sandboxPermissions": { "$ref": "#/components/schemas/AdminUiSandboxPermissions" }
2484
+ },
2485
+ "required": [
2486
+ "id",
2487
+ "label",
2488
+ "description"
2489
+ ]
2490
+ },
2491
+ "AdminUiMassAction": { "oneOf": [{
2492
+ "type": "object",
2493
+ "properties": {
2494
+ "id": {
2495
+ "type": "string",
2496
+ "minLength": 1
2497
+ },
2498
+ "label": {
2499
+ "type": "string",
2500
+ "minLength": 1
2501
+ },
2502
+ "type": { "const": "view" },
2503
+ "path": {
2504
+ "type": "string",
2505
+ "minLength": 1
2506
+ },
2507
+ "title": {
2508
+ "type": "string",
2509
+ "minLength": 1
2510
+ },
2511
+ "description": {
2512
+ "type": "string",
2513
+ "minLength": 1
2514
+ },
2515
+ "confirm": { "$ref": "#/components/schemas/AdminUiConfirm" },
2516
+ "notifications": { "$ref": "#/components/schemas/AdminUiNotifications" },
2517
+ "selectionLimit": {
2518
+ "type": "number",
2519
+ "minimum": 1
2520
+ },
2521
+ "sandboxPermissions": { "$ref": "#/components/schemas/AdminUiSandboxPermissions" }
2522
+ },
2523
+ "required": [
2524
+ "id",
2525
+ "label",
2526
+ "type",
2527
+ "path"
2528
+ ],
2529
+ "additionalProperties": false
2530
+ }, {
2531
+ "type": "object",
2532
+ "properties": {
2533
+ "id": {
2534
+ "type": "string",
2535
+ "minLength": 1
2536
+ },
2537
+ "label": {
2538
+ "type": "string",
2539
+ "minLength": 1
2540
+ },
2541
+ "type": { "const": "worker" },
2542
+ "runtimeAction": {
2543
+ "type": "string",
2544
+ "minLength": 1
2545
+ },
2546
+ "title": {
2547
+ "type": "string",
2548
+ "minLength": 1
2549
+ },
2550
+ "description": {
2551
+ "type": "string",
2552
+ "minLength": 1
2553
+ },
2554
+ "confirm": { "$ref": "#/components/schemas/AdminUiConfirm" },
2555
+ "notifications": { "$ref": "#/components/schemas/AdminUiNotifications" },
2556
+ "selectionLimit": {
2557
+ "type": "number",
2558
+ "minimum": 1
2559
+ },
2560
+ "timeout": {
2561
+ "type": "number",
2562
+ "minimum": 1
2563
+ }
2564
+ },
2565
+ "required": [
2566
+ "id",
2567
+ "label",
2568
+ "type",
2569
+ "runtimeAction"
2570
+ ],
2571
+ "additionalProperties": false
2572
+ }] },
2573
+ "AdminUiConfiguration": {
2574
+ "type": "object",
2575
+ "properties": {
2576
+ "menu": { "$ref": "#/components/schemas/AdminUiMenu" },
2577
+ "order": {
2578
+ "type": "object",
2579
+ "properties": {
2580
+ "massActions": {
2581
+ "type": "array",
2582
+ "items": { "$ref": "#/components/schemas/AdminUiMassAction" }
2583
+ },
2584
+ "gridColumns": { "$ref": "#/components/schemas/AdminUiGridColumns" },
2585
+ "viewButtons": {
2586
+ "type": "array",
2587
+ "items": { "$ref": "#/components/schemas/AdminUiOrderViewButton" }
2588
+ }
2589
+ }
2590
+ },
2591
+ "product": {
2592
+ "type": "object",
2593
+ "properties": {
2594
+ "massActions": {
2595
+ "type": "array",
2596
+ "items": { "$ref": "#/components/schemas/AdminUiMassAction" }
2597
+ },
2598
+ "gridColumns": { "$ref": "#/components/schemas/AdminUiGridColumns" }
2599
+ }
2600
+ },
2601
+ "customer": {
2602
+ "type": "object",
2603
+ "properties": {
2604
+ "massActions": {
2605
+ "type": "array",
2606
+ "items": { "$ref": "#/components/schemas/AdminUiMassAction" }
2607
+ },
2608
+ "gridColumns": { "$ref": "#/components/schemas/AdminUiGridColumns" }
2609
+ }
2610
+ }
2611
+ },
2612
+ "additionalProperties": false,
2613
+ "required": []
2614
+ },
2615
+ "AdminUiGridColumns": {
2354
2616
  "type": "object",
2355
2617
  "properties": {
2356
- "menuItems": {
2618
+ "label": {
2619
+ "type": "string",
2620
+ "minLength": 1
2621
+ },
2622
+ "description": {
2623
+ "type": "string",
2624
+ "minLength": 1
2625
+ },
2626
+ "runtimeAction": {
2627
+ "type": "string",
2628
+ "minLength": 1
2629
+ },
2630
+ "columns": {
2357
2631
  "type": "array",
2358
2632
  "items": {
2359
2633
  "type": "object",
@@ -2362,571 +2636,181 @@ var components = {
2362
2636
  "type": "string",
2363
2637
  "minLength": 1
2364
2638
  },
2365
- "title": {
2639
+ "label": {
2366
2640
  "type": "string",
2367
2641
  "minLength": 1
2368
2642
  },
2369
- "parent": {
2643
+ "type": {
2370
2644
  "type": "string",
2371
- "minLength": 1
2645
+ "enum": [
2646
+ "boolean",
2647
+ "date",
2648
+ "datetime",
2649
+ "float",
2650
+ "integer",
2651
+ "string"
2652
+ ]
2372
2653
  },
2373
- "sortOrder": { "type": "number" },
2374
- "isSection": { "type": "boolean" },
2375
- "sandbox": {
2654
+ "align": {
2376
2655
  "type": "string",
2377
- "pattern": "^(?:allow-downloads|allow-modals|allow-popups)(?: (?:allow-downloads|allow-modals|allow-popups))*$"
2656
+ "enum": [
2657
+ "left",
2658
+ "right",
2659
+ "center"
2660
+ ]
2378
2661
  }
2379
2662
  },
2380
- "required": ["id"]
2381
- }
2382
- },
2383
- "order": {
2384
- "type": "object",
2385
- "properties": {
2386
- "massActions": {
2387
- "type": "array",
2388
- "items": {
2389
- "type": "object",
2390
- "properties": {
2391
- "actionId": {
2392
- "type": "string",
2393
- "minLength": 1
2394
- },
2395
- "label": {
2396
- "type": "string",
2397
- "minLength": 1
2398
- },
2399
- "title": {
2400
- "type": "string",
2401
- "minLength": 1
2402
- },
2403
- "confirm": {
2404
- "type": "object",
2405
- "properties": {
2406
- "title": {
2407
- "type": "string",
2408
- "minLength": 1
2409
- },
2410
- "message": {
2411
- "type": "string",
2412
- "minLength": 1
2413
- }
2414
- },
2415
- "required": []
2416
- },
2417
- "path": {
2418
- "type": "string",
2419
- "minLength": 1
2420
- },
2421
- "displayIframe": { "type": "boolean" },
2422
- "timeout": {
2423
- "type": "number",
2424
- "minimum": 0
2425
- },
2426
- "sandbox": {
2427
- "type": "string",
2428
- "pattern": "^(?:allow-downloads|allow-modals|allow-popups)(?: (?:allow-downloads|allow-modals|allow-popups))*$"
2429
- },
2430
- "selectionLimit": {
2431
- "type": "number",
2432
- "minimum": 0
2433
- }
2434
- },
2435
- "required": [
2436
- "actionId",
2437
- "label",
2438
- "path"
2439
- ],
2440
- "additionalProperties": false,
2441
- "dependentSchemas": { "sandbox": {
2442
- "required": ["displayIframe"],
2443
- "properties": { "displayIframe": { "const": true } }
2444
- } }
2445
- }
2446
- },
2447
- "gridColumns": {
2448
- "type": "object",
2449
- "properties": {
2450
- "data": {
2451
- "type": "object",
2452
- "properties": { "meshId": {
2453
- "type": "string",
2454
- "minLength": 1
2455
- } },
2456
- "required": ["meshId"]
2457
- },
2458
- "properties": {
2459
- "type": "array",
2460
- "items": {
2461
- "type": "object",
2462
- "properties": {
2463
- "label": {
2464
- "type": "string",
2465
- "minLength": 1
2466
- },
2467
- "columnId": {
2468
- "type": "string",
2469
- "minLength": 1
2470
- },
2471
- "type": {
2472
- "type": "string",
2473
- "enum": [
2474
- "boolean",
2475
- "date",
2476
- "float",
2477
- "integer",
2478
- "string"
2479
- ]
2480
- },
2481
- "align": {
2482
- "type": "string",
2483
- "enum": [
2484
- "left",
2485
- "right",
2486
- "center"
2487
- ]
2488
- }
2489
- },
2490
- "required": [
2491
- "label",
2492
- "columnId",
2493
- "type",
2494
- "align"
2495
- ]
2496
- },
2497
- "minItems": 1
2498
- }
2499
- },
2500
- "required": ["data", "properties"]
2501
- },
2502
- "viewButtons": {
2503
- "type": "array",
2504
- "items": {
2505
- "type": "object",
2506
- "properties": {
2507
- "buttonId": {
2508
- "type": "string",
2509
- "minLength": 1
2510
- },
2511
- "label": {
2512
- "type": "string",
2513
- "minLength": 1
2514
- },
2515
- "confirm": {
2516
- "type": "object",
2517
- "properties": { "message": {
2518
- "type": "string",
2519
- "minLength": 1
2520
- } },
2521
- "required": []
2522
- },
2523
- "path": {
2524
- "type": "string",
2525
- "minLength": 1
2526
- },
2527
- "level": {
2528
- "type": "number",
2529
- "enum": [
2530
- -1,
2531
- 0,
2532
- 1
2533
- ]
2534
- },
2535
- "sortOrder": {
2536
- "type": "number",
2537
- "minimum": 0
2538
- },
2539
- "displayIframe": { "type": "boolean" },
2540
- "timeout": {
2541
- "type": "number",
2542
- "minimum": 0
2543
- },
2544
- "sandbox": {
2545
- "type": "string",
2546
- "pattern": "^(?:allow-downloads|allow-modals|allow-popups)(?: (?:allow-downloads|allow-modals|allow-popups))*$"
2547
- }
2548
- },
2549
- "required": [
2550
- "buttonId",
2551
- "label",
2552
- "path"
2553
- ],
2554
- "dependentSchemas": { "sandbox": {
2555
- "required": ["displayIframe"],
2556
- "properties": { "displayIframe": { "const": true } }
2557
- } }
2558
- }
2559
- },
2560
- "customFees": {
2561
- "type": "array",
2562
- "items": {
2563
- "type": "object",
2564
- "properties": {
2565
- "id": {
2566
- "type": "string",
2567
- "minLength": 1
2568
- },
2569
- "label": {
2570
- "type": "string",
2571
- "minLength": 1
2572
- },
2573
- "value": { "type": "number" },
2574
- "orderMinimumAmount": { "type": "number" },
2575
- "applyFeeOnLastInvoice": { "type": "boolean" },
2576
- "applyFeeOnLastCreditMemo": { "type": "boolean" }
2577
- },
2578
- "required": [
2579
- "id",
2580
- "label",
2581
- "value"
2582
- ]
2583
- }
2584
- }
2663
+ "required": [
2664
+ "id",
2665
+ "label",
2666
+ "type",
2667
+ "align"
2668
+ ]
2585
2669
  },
2586
- "required": []
2587
- },
2588
- "product": {
2589
- "type": "object",
2590
- "properties": {
2591
- "massActions": {
2592
- "type": "array",
2593
- "items": {
2594
- "type": "object",
2595
- "properties": {
2596
- "actionId": {
2597
- "type": "string",
2598
- "minLength": 1
2599
- },
2600
- "label": {
2601
- "type": "string",
2602
- "minLength": 1
2603
- },
2604
- "title": {
2605
- "type": "string",
2606
- "minLength": 1
2607
- },
2608
- "confirm": {
2609
- "type": "object",
2610
- "properties": {
2611
- "title": {
2612
- "type": "string",
2613
- "minLength": 1
2614
- },
2615
- "message": {
2616
- "type": "string",
2617
- "minLength": 1
2618
- }
2619
- },
2620
- "required": []
2621
- },
2622
- "path": {
2623
- "type": "string",
2624
- "minLength": 1
2625
- },
2626
- "displayIframe": { "type": "boolean" },
2627
- "timeout": {
2628
- "type": "number",
2629
- "minimum": 0
2630
- },
2631
- "sandbox": {
2632
- "type": "string",
2633
- "pattern": "^(?:allow-downloads|allow-modals|allow-popups)(?: (?:allow-downloads|allow-modals|allow-popups))*$"
2634
- },
2635
- "productSelectLimit": {
2636
- "type": "number",
2637
- "minimum": 0
2638
- }
2639
- },
2640
- "required": [
2641
- "actionId",
2642
- "label",
2643
- "path"
2644
- ],
2645
- "additionalProperties": false,
2646
- "dependentSchemas": { "sandbox": {
2647
- "required": ["displayIframe"],
2648
- "properties": { "displayIframe": { "const": true } }
2649
- } }
2650
- }
2651
- },
2652
- "gridColumns": {
2653
- "type": "object",
2654
- "properties": {
2655
- "data": {
2656
- "type": "object",
2657
- "properties": { "meshId": {
2658
- "type": "string",
2659
- "minLength": 1
2660
- } },
2661
- "required": ["meshId"]
2662
- },
2663
- "properties": {
2664
- "type": "array",
2665
- "items": {
2666
- "type": "object",
2667
- "properties": {
2668
- "label": {
2669
- "type": "string",
2670
- "minLength": 1
2671
- },
2672
- "columnId": {
2673
- "type": "string",
2674
- "minLength": 1
2675
- },
2676
- "type": {
2677
- "type": "string",
2678
- "enum": [
2679
- "boolean",
2680
- "date",
2681
- "float",
2682
- "integer",
2683
- "string"
2684
- ]
2685
- },
2686
- "align": {
2687
- "type": "string",
2688
- "enum": [
2689
- "left",
2690
- "right",
2691
- "center"
2692
- ]
2693
- }
2694
- },
2695
- "required": [
2696
- "label",
2697
- "columnId",
2698
- "type",
2699
- "align"
2700
- ]
2701
- },
2702
- "minItems": 1
2703
- }
2704
- },
2705
- "required": ["data", "properties"]
2706
- }
2670
+ "minItems": 1
2671
+ }
2672
+ },
2673
+ "required": [
2674
+ "label",
2675
+ "description",
2676
+ "runtimeAction",
2677
+ "columns"
2678
+ ]
2679
+ },
2680
+ "AdminUiOrderViewButton": {
2681
+ "discriminator": { "propertyName": "type" },
2682
+ "oneOf": [{
2683
+ "type": "object",
2684
+ "properties": {
2685
+ "type": {
2686
+ "type": "string",
2687
+ "const": "view"
2707
2688
  },
2708
- "required": []
2709
- },
2710
- "customer": {
2711
- "type": "object",
2712
- "properties": {
2713
- "massActions": {
2714
- "type": "array",
2715
- "items": {
2716
- "type": "object",
2717
- "properties": {
2718
- "actionId": {
2719
- "type": "string",
2720
- "minLength": 1
2721
- },
2722
- "label": {
2723
- "type": "string",
2724
- "minLength": 1
2725
- },
2726
- "title": {
2727
- "type": "string",
2728
- "minLength": 1
2729
- },
2730
- "confirm": {
2731
- "type": "object",
2732
- "properties": {
2733
- "title": {
2734
- "type": "string",
2735
- "minLength": 1
2736
- },
2737
- "message": {
2738
- "type": "string",
2739
- "minLength": 1
2740
- }
2741
- },
2742
- "required": []
2743
- },
2744
- "path": {
2745
- "type": "string",
2746
- "minLength": 1
2747
- },
2748
- "displayIframe": { "type": "boolean" },
2749
- "timeout": {
2750
- "type": "number",
2751
- "minimum": 0
2752
- },
2753
- "sandbox": {
2754
- "type": "string",
2755
- "pattern": "^(?:allow-downloads|allow-modals|allow-popups)(?: (?:allow-downloads|allow-modals|allow-popups))*$"
2756
- },
2757
- "customerSelectLimit": {
2758
- "type": "number",
2759
- "minimum": 0
2760
- }
2761
- },
2762
- "required": [
2763
- "actionId",
2764
- "label",
2765
- "path"
2766
- ],
2767
- "additionalProperties": false,
2768
- "dependentSchemas": { "sandbox": {
2769
- "required": ["displayIframe"],
2770
- "properties": { "displayIframe": { "const": true } }
2771
- } }
2772
- }
2773
- },
2774
- "gridColumns": {
2775
- "type": "object",
2776
- "properties": {
2777
- "data": {
2778
- "type": "object",
2779
- "properties": { "meshId": {
2780
- "type": "string",
2781
- "minLength": 1
2782
- } },
2783
- "required": ["meshId"]
2784
- },
2785
- "properties": {
2786
- "type": "array",
2787
- "items": {
2788
- "type": "object",
2789
- "properties": {
2790
- "label": {
2791
- "type": "string",
2792
- "minLength": 1
2793
- },
2794
- "columnId": {
2795
- "type": "string",
2796
- "minLength": 1
2797
- },
2798
- "type": {
2799
- "type": "string",
2800
- "enum": [
2801
- "boolean",
2802
- "date",
2803
- "float",
2804
- "integer",
2805
- "string"
2806
- ]
2807
- },
2808
- "align": {
2809
- "type": "string",
2810
- "enum": [
2811
- "left",
2812
- "right",
2813
- "center"
2814
- ]
2815
- }
2816
- },
2817
- "required": [
2818
- "label",
2819
- "columnId",
2820
- "type",
2821
- "align"
2822
- ]
2823
- },
2824
- "minItems": 1
2825
- }
2826
- },
2827
- "required": ["data", "properties"]
2828
- }
2689
+ "id": {
2690
+ "type": "string",
2691
+ "minLength": 1
2692
+ },
2693
+ "label": {
2694
+ "type": "string",
2695
+ "minLength": 1
2829
2696
  },
2830
- "required": []
2697
+ "description": {
2698
+ "type": "string",
2699
+ "minLength": 1
2700
+ },
2701
+ "path": {
2702
+ "type": "string",
2703
+ "minLength": 1
2704
+ },
2705
+ "level": {
2706
+ "type": "number",
2707
+ "enum": [
2708
+ -1,
2709
+ 0,
2710
+ 1
2711
+ ]
2712
+ },
2713
+ "sortOrder": {
2714
+ "type": "number",
2715
+ "minimum": 1
2716
+ },
2717
+ "confirm": { "$ref": "#/components/schemas/AdminUiConfirm" },
2718
+ "sandboxPermissions": { "$ref": "#/components/schemas/AdminUiSandboxPermissions" },
2719
+ "notifications": { "$ref": "#/components/schemas/AdminUiNotifications" }
2831
2720
  },
2832
- "bannerNotification": {
2833
- "type": "object",
2834
- "properties": {
2835
- "massActions": {
2836
- "type": "object",
2837
- "properties": {
2838
- "order": {
2839
- "type": "array",
2840
- "items": {
2841
- "type": "object",
2842
- "properties": {
2843
- "actionId": {
2844
- "type": "string",
2845
- "minLength": 1
2846
- },
2847
- "successMessage": {
2848
- "type": "string",
2849
- "minLength": 1
2850
- },
2851
- "errorMessage": {
2852
- "type": "string",
2853
- "minLength": 1
2854
- }
2855
- },
2856
- "required": ["actionId"]
2857
- }
2858
- },
2859
- "product": {
2860
- "type": "array",
2861
- "items": {
2862
- "type": "object",
2863
- "properties": {
2864
- "actionId": {
2865
- "type": "string",
2866
- "minLength": 1
2867
- },
2868
- "successMessage": {
2869
- "type": "string",
2870
- "minLength": 1
2871
- },
2872
- "errorMessage": {
2873
- "type": "string",
2874
- "minLength": 1
2875
- }
2876
- },
2877
- "required": ["actionId"]
2878
- }
2879
- },
2880
- "customer": {
2881
- "type": "array",
2882
- "items": {
2883
- "type": "object",
2884
- "properties": {
2885
- "actionId": {
2886
- "type": "string",
2887
- "minLength": 1
2888
- },
2889
- "successMessage": {
2890
- "type": "string",
2891
- "minLength": 1
2892
- },
2893
- "errorMessage": {
2894
- "type": "string",
2895
- "minLength": 1
2896
- }
2897
- },
2898
- "required": ["actionId"]
2899
- }
2900
- }
2901
- },
2902
- "required": []
2903
- },
2904
- "orderViewButtons": {
2905
- "type": "array",
2906
- "items": {
2907
- "type": "object",
2908
- "properties": {
2909
- "buttonId": {
2910
- "type": "string",
2911
- "minLength": 1
2912
- },
2913
- "successMessage": {
2914
- "type": "string",
2915
- "minLength": 1
2916
- },
2917
- "errorMessage": {
2918
- "type": "string",
2919
- "minLength": 1
2920
- }
2921
- },
2922
- "required": ["buttonId"]
2923
- }
2924
- }
2721
+ "required": [
2722
+ "type",
2723
+ "id",
2724
+ "label",
2725
+ "path"
2726
+ ]
2727
+ }, {
2728
+ "type": "object",
2729
+ "properties": {
2730
+ "type": {
2731
+ "type": "string",
2732
+ "const": "worker"
2733
+ },
2734
+ "id": {
2735
+ "type": "string",
2736
+ "minLength": 1
2737
+ },
2738
+ "label": {
2739
+ "type": "string",
2740
+ "minLength": 1
2741
+ },
2742
+ "description": {
2743
+ "type": "string",
2744
+ "minLength": 1
2745
+ },
2746
+ "runtimeAction": {
2747
+ "type": "string",
2748
+ "minLength": 1
2749
+ },
2750
+ "level": {
2751
+ "type": "number",
2752
+ "enum": [
2753
+ -1,
2754
+ 0,
2755
+ 1
2756
+ ]
2757
+ },
2758
+ "sortOrder": {
2759
+ "type": "number",
2760
+ "minimum": 1
2761
+ },
2762
+ "confirm": { "$ref": "#/components/schemas/AdminUiConfirm" },
2763
+ "timeout": {
2764
+ "type": "number",
2765
+ "minimum": 1
2925
2766
  },
2926
- "required": []
2767
+ "notifications": { "$ref": "#/components/schemas/AdminUiNotifications" }
2768
+ },
2769
+ "required": [
2770
+ "type",
2771
+ "id",
2772
+ "label",
2773
+ "runtimeAction"
2774
+ ]
2775
+ }]
2776
+ },
2777
+ "AdminUiConfirm": {
2778
+ "type": "object",
2779
+ "properties": {
2780
+ "title": {
2781
+ "type": "string",
2782
+ "minLength": 1
2783
+ },
2784
+ "message": {
2785
+ "type": "string",
2786
+ "minLength": 1
2787
+ }
2788
+ }
2789
+ },
2790
+ "AdminUiNotifications": {
2791
+ "type": "object",
2792
+ "properties": {
2793
+ "success": {
2794
+ "type": "string",
2795
+ "minLength": 1
2796
+ },
2797
+ "error": {
2798
+ "type": "string",
2799
+ "minLength": 1
2927
2800
  }
2801
+ }
2802
+ },
2803
+ "AdminUiSandboxPermissions": {
2804
+ "type": "array",
2805
+ "items": {
2806
+ "type": "string",
2807
+ "enum": [
2808
+ "allow-downloads",
2809
+ "allow-modals",
2810
+ "allow-popups"
2811
+ ]
2928
2812
  },
2929
- "required": []
2813
+ "minItems": 1
2930
2814
  },
2931
2815
  "CustomScopeInput": {
2932
2816
  "type": "object",
@@ -3000,14 +2884,6 @@ var tags = [
3000
2884
  "description": "Documentation",
3001
2885
  "url": "https://developer.adobe.com/commerce/extensibility/app-management/installation/"
3002
2886
  }
3003
- },
3004
- {
3005
- "name": "Admin UI",
3006
- "description": "Admin UI SDK registration.",
3007
- "externalDocs": {
3008
- "description": "Documentation",
3009
- "url": "https://developer.adobe.com/commerce/extensibility/admin-ui-sdk/"
3010
- }
3011
2887
  }
3012
2888
  ];
3013
2889
  var security = [{ "imsOAuth": ["AdobeID", "openid"] }];