@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.
- package/CHANGELOG.md +83 -0
- package/dist/cjs/actions/app-config/index.cjs +41 -38
- package/dist/cjs/actions/app-config/index.d.cts +1 -1
- package/dist/cjs/actions/association/index.cjs +85 -0
- package/dist/cjs/actions/{registration → association}/index.d.cts +9 -13
- package/dist/cjs/actions/config/index.cjs +21 -32
- package/dist/cjs/actions/installation/index.cjs +72 -51
- package/dist/cjs/actions/installation/index.d.cts +2 -2
- package/dist/cjs/actions/scope-tree/index.cjs +18 -17
- package/dist/{es/app-DrYHK-z1.d.mts → cjs/app-D3P-Z6uY.d.cts} +1085 -1035
- package/dist/cjs/association-repository-BAs3-VkW.cjs +69 -0
- package/dist/cjs/commands/index.cjs +512 -298
- package/dist/cjs/commands/templates/admin-ui/tsconfig.json +14 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/index.css +5 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/index.html +17 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/src/app.jsx +13 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/src/components/welcome.jsx +12 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
- package/dist/cjs/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
- package/dist/cjs/commands/templates/app-management/app-config.js.template +1 -14
- package/dist/cjs/commands/templates/app-management/association.js.template +6 -0
- package/dist/cjs/commands/templates/app-management/installation.js.template +1 -13
- package/dist/cjs/commands/templates/business-configuration/config.js.template +2 -15
- package/dist/cjs/commands/templates/business-configuration/scope-tree.js.template +0 -12
- package/dist/cjs/config/index.browser.cjs +18 -0
- package/dist/cjs/config/index.browser.d.cts +16 -0
- package/dist/cjs/config/{index.cjs → index.node.cjs} +9 -8
- package/dist/cjs/config/{index.d.cts → index.node.d.cts} +954 -386
- package/dist/cjs/define-DBxAlJfN.d.cts +34 -0
- package/dist/cjs/define-hlcQw7Cv.cjs +41 -0
- package/dist/cjs/environment-B7EnozSg.cjs +135 -0
- package/dist/cjs/{index-B5gJ-q4U.d.cts → index-CzReNwbF.d.cts} +17 -12
- package/dist/cjs/index.cjs +250 -0
- package/dist/cjs/index.d.cts +217 -0
- package/dist/cjs/{config-D-s0GSep.cjs → index.node-Dz4lV4qe.cjs} +119 -35
- package/dist/cjs/{logging-BVz3weoC.cjs → logging-udPuAJPt.cjs} +2 -2
- package/dist/cjs/management/index.cjs +1 -1
- package/dist/cjs/management/index.d.cts +1 -1
- package/dist/cjs/{management-Dehz9qSJ.cjs → management-B9ItB80R.cjs} +385 -582
- package/dist/cjs/{openapi-Cux6K4ZD.cjs → openapi-CwytYdWl.cjs} +476 -600
- package/dist/cjs/{router-BOR7T6qR.cjs → router-hA_Y9gZ1.cjs} +42 -44
- package/dist/cjs/{schemas-FngDuIeo.cjs → schemas-mLxMh_ko.cjs} +2 -2
- package/dist/cjs/utils-DSCmZ_iJ.cjs +408 -0
- package/dist/cjs/{validate-oAOpyFyb.cjs → validate-BfxhZ5Wv.cjs} +20 -20
- package/dist/cjs/{webhooks-tbZy9G3p.cjs → webhooks-B5tb9NeF.cjs} +159 -151
- package/dist/es/actions/app-config/index.d.mts +1 -1
- package/dist/es/actions/app-config/index.mjs +39 -36
- package/dist/es/actions/{registration → association}/index.d.mts +9 -13
- package/dist/es/actions/association/index.mjs +82 -0
- package/dist/es/actions/config/index.mjs +17 -28
- package/dist/es/actions/installation/index.d.mts +2 -2
- package/dist/es/actions/installation/index.mjs +69 -48
- package/dist/es/actions/scope-tree/index.mjs +14 -13
- package/dist/{cjs/app-DrYHK-z1.d.cts → es/app-D3P-Z6uY.d.mts} +1085 -1035
- package/dist/es/association-repository-BbQv9WCl.mjs +52 -0
- package/dist/es/commands/index.mjs +544 -328
- package/dist/es/commands/templates/admin-ui/tsconfig.json +14 -0
- package/dist/es/commands/templates/admin-ui/web-src/index.css +5 -0
- package/dist/es/commands/templates/admin-ui/web-src/index.html +17 -0
- package/dist/es/commands/templates/admin-ui/web-src/src/app.jsx +13 -0
- package/dist/es/commands/templates/admin-ui/web-src/src/components/welcome.jsx +12 -0
- package/dist/es/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
- package/dist/es/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
- package/dist/es/commands/templates/app-management/app-config.js.template +1 -14
- package/dist/es/commands/templates/app-management/association.js.template +6 -0
- package/dist/es/commands/templates/app-management/installation.js.template +1 -13
- package/dist/es/commands/templates/business-configuration/config.js.template +2 -15
- package/dist/es/commands/templates/business-configuration/scope-tree.js.template +0 -12
- package/dist/es/config/index.browser.d.mts +16 -0
- package/dist/es/config/index.browser.mjs +17 -0
- package/dist/es/config/{index.d.mts → index.node.d.mts} +954 -386
- package/dist/es/config/{index.mjs → index.node.mjs} +5 -4
- package/dist/es/define-EoYRZbpe.d.mts +34 -0
- package/dist/es/define-Z_Glf1-_.mjs +35 -0
- package/dist/es/environment-C84BPRJZ.mjs +104 -0
- package/dist/es/{index-DLMbTtKS.d.mts → index-D52xglhZ.d.mts} +17 -12
- package/dist/es/index.d.mts +217 -0
- package/dist/es/index.mjs +242 -0
- package/dist/es/{config-3I4eLyyR.mjs → index.node-CDH5gwJE.mjs} +94 -30
- package/dist/es/management/index.d.mts +1 -1
- package/dist/es/management/index.mjs +1 -1
- package/dist/es/{management-BUX-w2Ji.mjs → management-B89ApQVY.mjs} +353 -550
- package/dist/es/{openapi-B6uP0SRn.mjs → openapi-CXonvevE.mjs} +476 -600
- package/dist/es/{router-D58JJHHA.mjs → router-B_h0cvjc.mjs} +40 -42
- package/dist/es/utils-_gj8L6eN.mjs +289 -0
- package/dist/es/{validate-Dfajrp99.mjs → validate-9cRZWGrA.mjs} +17 -17
- package/dist/es/{webhooks-B5oq9ULL.mjs → webhooks-BBPbY2mb.mjs} +150 -142
- package/package.json +40 -17
- package/dist/cjs/actions/registration/index.cjs +0 -50
- package/dist/cjs/admin-ui-sdk-EU915zlR.d.cts +0 -664
- package/dist/es/actions/registration/index.mjs +0 -49
- package/dist/es/admin-ui-sdk-BwnD0xjK.d.mts +0 -664
- /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,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
|
+
}
|
|
@@ -10,11 +10,16 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
declare module "#app.commerce.config" {
|
|
14
|
+
const config: {
|
|
15
|
+
metadata: {
|
|
16
|
+
displayName: string;
|
|
17
|
+
id: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
15
20
|
|
|
16
|
-
|
|
21
|
+
export default config;
|
|
22
|
+
}
|
|
17
23
|
|
|
18
|
-
|
|
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
|
-
|
|
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);
|
|
@@ -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 "
|
|
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
|
-
|
|
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
|
|
17
|
-
const
|
|
18
|
-
const
|
|
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 =
|
|
22
|
+
exports.defineConfig = require_define.defineConfig;
|
|
22
23
|
exports.getConfigDomains = require_validate.getConfigDomains;
|
|
23
|
-
exports.
|
|
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 =
|
|
35
|
-
exports.readCommerceAppConfig =
|
|
36
|
-
exports.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;
|