@adobe/aio-commerce-lib-app 1.6.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 (110) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/dist/cjs/actions/app-config/index.cjs +205 -0
  3. package/dist/cjs/actions/{app-config.d.cts → app-config/index.d.cts} +10 -7
  4. package/dist/cjs/actions/association/index.cjs +85 -0
  5. package/dist/cjs/actions/association/index.d.cts +28 -0
  6. package/dist/cjs/actions/{config.cjs → config/index.cjs} +70 -53
  7. package/dist/{es/actions/config.d.mts → cjs/actions/config/index.d.cts} +10 -7
  8. package/dist/cjs/actions/{installation.cjs → installation/index.cjs} +106 -72
  9. package/dist/{es/actions/installation.d.mts → cjs/actions/installation/index.d.cts} +10 -8
  10. package/dist/cjs/actions/{scope-tree.cjs → scope-tree/index.cjs} +60 -22
  11. package/dist/cjs/actions/{scope-tree.d.cts → scope-tree/index.d.cts} +1 -1
  12. package/dist/cjs/app-D3P-Z6uY.d.cts +1679 -0
  13. package/dist/cjs/association-repository-BAs3-VkW.cjs +69 -0
  14. package/dist/cjs/commands/index.cjs +517 -309
  15. package/dist/cjs/commands/templates/admin-ui/tsconfig.json +14 -0
  16. package/dist/cjs/commands/templates/admin-ui/web-src/index.css +5 -0
  17. package/dist/cjs/commands/templates/admin-ui/web-src/index.html +17 -0
  18. package/dist/cjs/commands/templates/admin-ui/web-src/src/app.jsx +13 -0
  19. package/dist/cjs/commands/templates/admin-ui/web-src/src/components/welcome.jsx +12 -0
  20. package/dist/cjs/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
  21. package/dist/cjs/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
  22. package/dist/cjs/commands/templates/app-management/app-config.js.template +1 -14
  23. package/dist/cjs/commands/templates/app-management/association.js.template +6 -0
  24. package/dist/cjs/commands/templates/app-management/installation.js.template +1 -13
  25. package/dist/cjs/commands/templates/business-configuration/config.js.template +2 -15
  26. package/dist/cjs/commands/templates/business-configuration/scope-tree.js.template +0 -12
  27. package/dist/cjs/config/index.browser.cjs +18 -0
  28. package/dist/cjs/config/index.browser.d.cts +16 -0
  29. package/dist/cjs/config/{index.cjs → index.node.cjs} +9 -8
  30. package/dist/cjs/config/index.node.d.cts +1603 -0
  31. package/dist/cjs/define-DBxAlJfN.d.cts +34 -0
  32. package/dist/cjs/define-hlcQw7Cv.cjs +41 -0
  33. package/dist/cjs/environment-B7EnozSg.cjs +135 -0
  34. package/dist/cjs/index-BXm8UbK7.d.cts +16 -0
  35. package/dist/cjs/{index-Dw2NvVOY.d.cts → index-CzReNwbF.d.cts} +177 -3
  36. package/dist/cjs/index.cjs +250 -0
  37. package/dist/cjs/index.d.cts +217 -0
  38. package/dist/cjs/{config-FNMclIFO.cjs → index.node-Dz4lV4qe.cjs} +119 -35
  39. package/dist/cjs/{logging-BVz3weoC.cjs → logging-udPuAJPt.cjs} +2 -2
  40. package/dist/cjs/management/index.cjs +1 -1
  41. package/dist/cjs/management/index.d.cts +1 -2
  42. package/dist/cjs/{management-Cvsz4VMf.cjs → management-B9ItB80R.cjs} +432 -591
  43. package/dist/cjs/openapi-CwytYdWl.cjs +2948 -0
  44. package/dist/cjs/{router-BOR7T6qR.cjs → router-hA_Y9gZ1.cjs} +42 -44
  45. package/dist/cjs/{schemas-FngDuIeo.cjs → schemas-mLxMh_ko.cjs} +2 -2
  46. package/dist/cjs/utils-DSCmZ_iJ.cjs +408 -0
  47. package/dist/cjs/{validate-DydOAZha.cjs → validate-BfxhZ5Wv.cjs} +63 -31
  48. package/dist/cjs/{webhooks-tbZy9G3p.cjs → webhooks-B5tb9NeF.cjs} +159 -151
  49. package/dist/es/actions/{app-config.d.mts → app-config/index.d.mts} +10 -7
  50. package/dist/es/actions/app-config/index.mjs +202 -0
  51. package/dist/es/actions/association/index.d.mts +28 -0
  52. package/dist/es/actions/association/index.mjs +82 -0
  53. package/dist/{cjs/actions/config.d.cts → es/actions/config/index.d.mts} +10 -7
  54. package/dist/es/actions/{config.mjs → config/index.mjs} +67 -50
  55. package/dist/{cjs/actions/installation.d.cts → es/actions/installation/index.d.mts} +10 -8
  56. package/dist/es/actions/{installation.mjs → installation/index.mjs} +104 -71
  57. package/dist/es/actions/{scope-tree.d.mts → scope-tree/index.d.mts} +1 -1
  58. package/dist/es/actions/{scope-tree.mjs → scope-tree/index.mjs} +58 -20
  59. package/dist/es/app-D3P-Z6uY.d.mts +1679 -0
  60. package/dist/es/association-repository-BbQv9WCl.mjs +52 -0
  61. package/dist/es/commands/index.mjs +550 -340
  62. package/dist/es/commands/templates/admin-ui/tsconfig.json +14 -0
  63. package/dist/es/commands/templates/admin-ui/web-src/index.css +5 -0
  64. package/dist/es/commands/templates/admin-ui/web-src/index.html +17 -0
  65. package/dist/es/commands/templates/admin-ui/web-src/src/app.jsx +13 -0
  66. package/dist/es/commands/templates/admin-ui/web-src/src/components/welcome.jsx +12 -0
  67. package/dist/es/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
  68. package/dist/es/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
  69. package/dist/es/commands/templates/app-management/app-config.js.template +1 -14
  70. package/dist/es/commands/templates/app-management/association.js.template +6 -0
  71. package/dist/es/commands/templates/app-management/installation.js.template +1 -13
  72. package/dist/es/commands/templates/business-configuration/config.js.template +2 -15
  73. package/dist/es/commands/templates/business-configuration/scope-tree.js.template +0 -12
  74. package/dist/es/config/index.browser.d.mts +16 -0
  75. package/dist/es/config/index.browser.mjs +17 -0
  76. package/dist/es/config/index.node.d.mts +1604 -0
  77. package/dist/es/config/index.node.mjs +20 -0
  78. package/dist/es/define-EoYRZbpe.d.mts +34 -0
  79. package/dist/es/define-Z_Glf1-_.mjs +35 -0
  80. package/dist/es/environment-C84BPRJZ.mjs +104 -0
  81. package/dist/es/index-B0XqHwY5.d.mts +16 -0
  82. package/dist/es/{index-Bo0tQsVq.d.mts → index-D52xglhZ.d.mts} +177 -3
  83. package/dist/es/index.d.mts +217 -0
  84. package/dist/es/index.mjs +242 -0
  85. package/dist/es/{config-CcE0EBG7.mjs → index.node-CDH5gwJE.mjs} +94 -30
  86. package/dist/es/management/index.d.mts +1 -2
  87. package/dist/es/management/index.mjs +1 -1
  88. package/dist/es/{management-BZ4Y6lVp.mjs → management-B89ApQVY.mjs} +402 -562
  89. package/dist/es/openapi-CXonvevE.mjs +2900 -0
  90. package/dist/es/{router-D58JJHHA.mjs → router-B_h0cvjc.mjs} +40 -42
  91. package/dist/es/utils-_gj8L6eN.mjs +289 -0
  92. package/dist/es/{validate-Du3LhCre.mjs → validate-9cRZWGrA.mjs} +49 -29
  93. package/dist/es/{webhooks-B5oq9ULL.mjs → webhooks-BBPbY2mb.mjs} +150 -142
  94. package/package.json +52 -22
  95. package/dist/cjs/actions/app-config.cjs +0 -54
  96. package/dist/cjs/actions/registration.cjs +0 -40
  97. package/dist/cjs/actions/registration.d.cts +0 -32
  98. package/dist/cjs/admin-ui-sdk-DZZJCrdT.d.cts +0 -665
  99. package/dist/cjs/app-CakwxQvs.d.cts +0 -673
  100. package/dist/cjs/config/index.d.cts +0 -1975
  101. package/dist/cjs/step-CKVE0aJi.d.cts +0 -187
  102. package/dist/es/actions/app-config.mjs +0 -53
  103. package/dist/es/actions/registration.d.mts +0 -32
  104. package/dist/es/actions/registration.mjs +0 -39
  105. package/dist/es/admin-ui-sdk-hu6iWr0A.d.mts +0 -667
  106. package/dist/es/app-CakwxQvs.d.mts +0 -673
  107. package/dist/es/config/index.d.mts +0 -1975
  108. package/dist/es/config/index.mjs +0 -19
  109. package/dist/es/step-D64mMPrt.d.mts +0 -187
  110. /package/dist/cjs/{chunk-Cozy-1ZF.cjs → rolldown-runtime-Cozy-1ZF.cjs} +0 -0
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "@aio-commerce-sdk/config-typescript/tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true,
6
+ "noEmit": true,
7
+
8
+ "jsx": "react-jsx",
9
+ "lib": ["ES2024", "DOM", "DOM.Iterable"],
10
+ "types": ["node", "react"]
11
+ },
12
+
13
+ "include": ["web-src/src/**/*.jsx", "web-src-template.d.ts"]
14
+ }
@@ -0,0 +1,5 @@
1
+ html,
2
+ body {
3
+ margin: 0;
4
+ font-family: "Adobe Clean", sans-serif;
5
+ }
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta
6
+ content="width=device-width, initial-scale=1.0, shrink-to-fit=no"
7
+ name="viewport"
8
+ >
9
+ <title>APP_TITLE</title>
10
+ <link href="./index.css" rel="stylesheet">
11
+ </head>
12
+ <body>
13
+ <noscript>You need to enable JavaScript to run this app.</noscript>
14
+ <div id="root"></div>
15
+ <script async src="./src/app.jsx" type="module"></script>
16
+ </body>
17
+ </html>
@@ -0,0 +1,13 @@
1
+ import { createExtensionApp } from "@adobe/aio-commerce-lib-admin-ui/web";
2
+ import "@react-spectrum/s2/page.css";
3
+
4
+ import config from "#app.commerce.config";
5
+ import { MainPage } from "#web/pages/main-page.jsx";
6
+
7
+ createExtensionApp({
8
+ metadata: {
9
+ extensionId: config.metadata.id,
10
+ },
11
+
12
+ routes: [{ element: <MainPage />, index: true }],
13
+ });
@@ -0,0 +1,12 @@
1
+ import { useIms } from "@adobe/aio-commerce-lib-admin-ui/web";
2
+
3
+ /** A simple welcome component that displays the IMS token and org ID. */
4
+ export function Welcome() {
5
+ const { imsOrgId } = useIms();
6
+ return (
7
+ <>
8
+ <h1>Welcome to your Adobe Commerce App</h1>
9
+ <p>Your IMS Org ID is {imsOrgId}</p>
10
+ </>
11
+ );
12
+ }
@@ -0,0 +1,10 @@
1
+ import { Welcome } from "#web/components/welcome.jsx";
2
+
3
+ /** Entrypoint for the main page of the app. */
4
+ export function MainPage() {
5
+ return (
6
+ <main>
7
+ <Welcome />
8
+ </main>
9
+ );
10
+ }
@@ -10,11 +10,16 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
14
- // Do not modify this file directly
13
+ declare module "#app.commerce.config" {
14
+ const config: {
15
+ metadata: {
16
+ displayName: string;
17
+ id: string;
18
+ };
19
+ };
15
20
 
16
- import { registrationRuntimeAction } from "@adobe/aio-commerce-lib-app/actions/registration";
21
+ export default config;
22
+ }
17
23
 
18
- // {{REGISTRATION_JSON}}
19
-
20
- export const main = registrationRuntimeAction({ registration });
24
+ declare module "#web/*";
25
+ declare module "*.css";
@@ -1,22 +1,9 @@
1
- /*
2
- * Copyright 2026 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
1
  // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
14
2
  // Do not modify this file directly
15
3
 
16
4
  import { appConfigRuntimeAction } from "@adobe/aio-commerce-lib-app/actions/app-config";
17
5
 
18
- // The manifest is always at this relative constant path from the action.
19
- import appConfig from "../../app.commerce.manifest.json" with { type: "json" };
6
+ import appConfig from "#app.commerce.config";
20
7
 
21
8
  const args = { appConfig };
22
9
  export const main = appConfigRuntimeAction(args);
@@ -0,0 +1,6 @@
1
+ // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
2
+ // Do not modify this file directly
3
+
4
+ import { associationRuntimeAction } from "@adobe/aio-commerce-lib-app/actions/association";
5
+
6
+ export const main = associationRuntimeAction();
@@ -1,20 +1,8 @@
1
- /*
2
- * Copyright 2026 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
1
  // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
14
2
  // Do not modify this file directly
15
3
 
16
4
  import { installationRuntimeAction } from "@adobe/aio-commerce-lib-app/actions/installation"
17
- import appConfig from "../../app.commerce.manifest.json" with { type: "json" };
5
+ import appConfig from "#app.commerce.config";
18
6
 
19
7
  // {{CUSTOM_SCRIPTS_LOADER}}
20
8
  const args = { appConfig };
@@ -1,22 +1,9 @@
1
- /*
2
- * Copyright 2026 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
1
  // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
14
2
  // Do not modify this file directly
15
3
 
16
4
  import { configRuntimeAction } from "@adobe/aio-commerce-lib-app/actions/config";
17
5
 
18
- // The config schema is always at this relative constant path from the action.
19
- import configSchema from "../../configuration-schema.json" with { type: "json" };
6
+ import config from "#app.commerce.config";
20
7
 
21
- const args = { configSchema };
8
+ const args = { configSchema: config.businessConfig.schema };
22
9
  export const main = configRuntimeAction(args);
@@ -1,15 +1,3 @@
1
- /*
2
- * Copyright 2026 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
1
  // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
14
2
  // Do not modify this file directly
15
3
 
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright 2026 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */
14
+
15
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
+ const require_define = require('../define-hlcQw7Cv.cjs');
17
+
18
+ exports.defineConfig = require_define.defineConfig;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright 2026 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */
14
+
15
+ import { t as defineConfig } from "../define-DBxAlJfN.cjs";
16
+ export { defineConfig };
@@ -13,14 +13,15 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_webhooks = require('../webhooks-tbZy9G3p.cjs');
17
- const require_validate = require('../validate-DydOAZha.cjs');
18
- const require_config = require('../config-FNMclIFO.cjs');
16
+ const require_define = require('../define-hlcQw7Cv.cjs');
17
+ const require_index_node = require('../index.node-Dz4lV4qe.cjs');
18
+ const require_webhooks = require('../webhooks-B5tb9NeF.cjs');
19
+ const require_validate = require('../validate-BfxhZ5Wv.cjs');
19
20
 
20
21
  exports.CommerceAppConfigSchemas = require_validate.CommerceAppConfigSchemas;
21
- exports.defineConfig = require_config.defineConfig;
22
+ exports.defineConfig = require_define.defineConfig;
22
23
  exports.getConfigDomains = require_validate.getConfigDomains;
23
- exports.hasAdminUiSdk = require_webhooks.hasAdminUiSdk;
24
+ exports.hasAdminUi = require_webhooks.hasAdminUi;
24
25
  exports.hasBusinessConfig = require_validate.hasBusinessConfig;
25
26
  exports.hasBusinessConfigSchema = require_validate.hasBusinessConfigSchema;
26
27
  exports.hasCommerceEvents = require_webhooks.hasCommerceEvents;
@@ -31,8 +32,8 @@ exports.hasEventing = require_webhooks.hasEventing;
31
32
  exports.hasExternalEvents = require_webhooks.hasExternalEvents;
32
33
  exports.hasMetadata = require_validate.hasMetadata;
33
34
  exports.hasWebhooks = require_webhooks.hasWebhooks;
34
- exports.parseCommerceAppConfig = require_config.parseCommerceAppConfig;
35
- exports.readCommerceAppConfig = require_config.readCommerceAppConfig;
36
- exports.resolveCommerceAppConfig = require_config.resolveCommerceAppConfig;
35
+ exports.parseCommerceAppConfig = require_index_node.parseCommerceAppConfig;
36
+ exports.readCommerceAppConfig = require_index_node.readCommerceAppConfig;
37
+ exports.resolveCommerceAppConfig = require_index_node.resolveCommerceAppConfig;
37
38
  exports.validateCommerceAppConfig = require_validate.validateCommerceAppConfig;
38
39
  exports.validateCommerceAppConfigDomain = require_validate.validateCommerceAppConfigDomain;