@adobe/aio-commerce-lib-app 1.8.0 → 1.9.0

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 (52) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/actions/app-config/index.cjs +3 -3
  3. package/dist/cjs/actions/app-config/index.d.cts +2 -2
  4. package/dist/cjs/actions/association/index.d.cts +0 -1
  5. package/dist/cjs/actions/config/index.d.cts +1 -1
  6. package/dist/cjs/actions/installation/index.cjs +2 -2
  7. package/dist/cjs/actions/installation/index.d.cts +3 -3
  8. package/dist/cjs/{app-BwehWeu1.d.cts → app-e4bCHpek.d.cts} +0 -1
  9. package/dist/cjs/commands/index.cjs +8 -8
  10. package/dist/cjs/commands/index.d.cts +1 -1
  11. package/dist/cjs/config/index.browser.d.cts +1 -1
  12. package/dist/cjs/config/index.node.cjs +3 -3
  13. package/dist/cjs/config/index.node.d.cts +3 -13
  14. package/dist/{es/define-DxH1BFia.d.mts → cjs/define-B__VyRtO.d.cts} +1 -2
  15. package/dist/{es/index-B0XqHwY5.d.mts → cjs/index-DWEigxhy.d.cts} +3 -1
  16. package/dist/{es/index-DSk-RmwM.d.mts → cjs/index-Ds7AyoNv.d.cts} +139 -64
  17. package/dist/cjs/index.cjs +1 -1
  18. package/dist/cjs/index.d.cts +3 -2
  19. package/dist/cjs/{index.node-BWZuZLgs.cjs → index.node-Bv_FUgST.cjs} +1 -1
  20. package/dist/cjs/management/index.cjs +1 -1
  21. package/dist/cjs/management/index.d.cts +1 -1
  22. package/dist/cjs/{management-DEsRVP2L.cjs → management-DmH7fVxy.cjs} +4 -2
  23. package/dist/cjs/{openapi-C36q3dCZ.cjs → openapi-BzRN5Lc6.cjs} +1 -1
  24. package/dist/cjs/{utils-DSCmZ_iJ.cjs → utils-CGZGfXuy.cjs} +25 -0
  25. package/dist/cjs/{validate-C_eCKp21.cjs → validate-Dt0Fdj1L.cjs} +1 -1
  26. package/dist/cjs/{webhooks-L4DWHSOl.cjs → webhooks-CrHGA-sO.cjs} +0 -2
  27. package/dist/es/actions/app-config/index.d.mts +2 -2
  28. package/dist/es/actions/app-config/index.mjs +3 -3
  29. package/dist/es/actions/association/index.d.mts +0 -1
  30. package/dist/es/actions/config/index.d.mts +1 -1
  31. package/dist/es/actions/installation/index.d.mts +3 -3
  32. package/dist/es/actions/installation/index.mjs +2 -2
  33. package/dist/es/{app-BwehWeu1.d.mts → app-e4bCHpek.d.mts} +0 -1
  34. package/dist/es/commands/index.d.mts +1 -1
  35. package/dist/es/commands/index.mjs +7 -7
  36. package/dist/es/config/index.browser.d.mts +1 -1
  37. package/dist/es/config/index.node.d.mts +3 -14
  38. package/dist/es/config/index.node.mjs +3 -3
  39. package/dist/{cjs/define-DOqVyexT.d.cts → es/define-BEY_Q6rS.d.mts} +1 -2
  40. package/dist/{cjs/index-BXm8UbK7.d.cts → es/index-CgsSXApi.d.mts} +4 -1
  41. package/dist/{cjs/index-B3ISkC54.d.cts → es/index-Dsg4LZde.d.mts} +139 -64
  42. package/dist/es/index.d.mts +3 -2
  43. package/dist/es/index.mjs +1 -1
  44. package/dist/es/{index.node-DuvW9Sha.mjs → index.node-DsJ0QRGh.mjs} +1 -1
  45. package/dist/es/management/index.d.mts +1 -1
  46. package/dist/es/management/index.mjs +1 -1
  47. package/dist/es/{management-D5pmBBec.mjs → management-BpFkwoig.mjs} +4 -2
  48. package/dist/es/{openapi-BSc2NRd2.mjs → openapi-QEV7W6DH.mjs} +1 -1
  49. package/dist/es/{utils-_gj8L6eN.mjs → utils-D0O4r9jr.mjs} +20 -1
  50. package/dist/es/{validate-t0T0F2MF.mjs → validate-yqa8uIyb.mjs} +1 -1
  51. package/dist/es/{webhooks-D7DExIDM.mjs → webhooks-CVbZOxYS.mjs} +0 -2
  52. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @adobe/aio-commerce-lib-app
2
2
 
3
+ ## 1.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#599](https://github.com/adobe/aio-commerce-sdk/pull/599) [`ac6c13b`](https://github.com/adobe/aio-commerce-sdk/commit/ac6c13b4124677820f8946c92e4cd63ab228eeae) Thanks [@obarcelonap](https://github.com/obarcelonap)! - The `adminUi` config schema (menu, grid columns, mass actions, order view buttons) is now stable. Breaking changes to these types will follow standard semver going forward.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#592](https://github.com/adobe/aio-commerce-sdk/pull/592) [`14f285f`](https://github.com/adobe/aio-commerce-sdk/commit/14f285f6ad9e3eaa3a0eb81b72bf071a94d99532) Thanks [@jcuerdo](https://github.com/jcuerdo)! - Clear stored event provider data during uninstall.
12
+
13
+ - Updated dependencies [[`ac6c13b`](https://github.com/adobe/aio-commerce-sdk/commit/ac6c13b4124677820f8946c92e4cd63ab228eeae)]:
14
+ - @adobe/aio-commerce-lib-admin-ui@1.0.0
15
+
3
16
  ## 1.8.0
4
17
 
5
18
  ### Minor Changes
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
16
  const require_rolldown_runtime = require('../../rolldown-runtime-Cozy-1ZF.cjs');
17
17
  const require_environment = require('../../environment-B7EnozSg.cjs');
18
- const require_validate = require('../../validate-C_eCKp21.cjs');
18
+ const require_validate = require('../../validate-Dt0Fdj1L.cjs');
19
19
  const require_router = require('../../router-hA_Y9gZ1.cjs');
20
20
  let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
21
21
  let valibot = require("valibot");
@@ -29,7 +29,7 @@ let crypto = require("crypto");
29
29
  * Loads the committed OpenAPI spec via dynamic import so it
30
30
  * lands in its own chunk and is not parsed on every cold start.
31
31
  */
32
- const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-C36q3dCZ.cjs"));
32
+ const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-BzRN5Lc6.cjs"));
33
33
  /** Matches component schema `$ref` strings, capturing the schema name. */
34
34
  const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(\w+)"/g;
35
35
  /**
@@ -80,7 +80,7 @@ function pruneUnusedTags(spec) {
80
80
  * @param domains - The active config domains.
81
81
  */
82
82
  function getOpenApiCacheKey(domains) {
83
- const input = `1.8.0:${[...domains].sort().join(",")}:2.0.0`;
83
+ const input = `1.9.0:${[...domains].sort().join(",")}:2.0.0`;
84
84
  return (0, crypto.createHash)("sha256").update(input).digest("hex").slice(0, 8);
85
85
  }
86
86
  /** Returns the server URL to be set in the OpenAPI spec, based on the current namespace. */
@@ -12,9 +12,9 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfig } from "../../app-BwehWeu1.cjs";
15
+ import "../../index-DWEigxhy.cjs";
16
+ import { n as CommerceAppConfig } from "../../app-e4bCHpek.cjs";
16
17
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
17
-
18
18
  //#region source/actions/app-config/router.d.ts
19
19
  /** The arguments required to create the runtime action for the app-config action. */
20
20
  type RuntimeActionFactoryArgs = {
@@ -13,7 +13,6 @@
13
13
  */
14
14
 
15
15
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
16
-
17
16
  //#region source/actions/association/index.d.ts
18
17
  /**
19
18
  * Factory to create the route handler for the `association` action.
@@ -12,9 +12,9 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
+ import "../../index-DWEigxhy.cjs";
15
16
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
16
17
  import { BusinessConfigSchema } from "@adobe/aio-commerce-lib-config";
17
-
18
18
  //#region source/actions/config/router.d.ts
19
19
  /** The arguments required to create the runtime action for the config action. */
20
20
  type ConfigActionFactoryArgs = {
@@ -15,8 +15,8 @@
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
16
  const require_rolldown_runtime = require('../../rolldown-runtime-Cozy-1ZF.cjs');
17
17
  const require_schemas = require('../../schemas-mLxMh_ko.cjs');
18
- const require_validate = require('../../validate-C_eCKp21.cjs');
19
- const require_management = require('../../management-DEsRVP2L.cjs');
18
+ const require_validate = require('../../validate-Dt0Fdj1L.cjs');
19
+ const require_management = require('../../management-DmH7fVxy.cjs');
20
20
  const require_router = require('../../router-hA_Y9gZ1.cjs');
21
21
  let _adobe_aio_lib_state = require("@adobe/aio-lib-state");
22
22
  let valibot = require("valibot");
@@ -12,10 +12,10 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-BwehWeu1.cjs";
16
- import { Y as InstallationContext } from "../../index-B3ISkC54.cjs";
15
+ import "../../index-DWEigxhy.cjs";
16
+ import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-e4bCHpek.cjs";
17
+ import { Y as InstallationContext } from "../../index-Ds7AyoNv.cjs";
17
18
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
18
-
19
19
  //#region source/actions/installation/router.d.ts
20
20
  type CustomScriptsLoader = (config: CommerceAppConfigOutputModel, logger: InstallationContext["logger"]) => Record<string, unknown>;
21
21
  /** Arguments for the runtime action factory. */
@@ -13,7 +13,6 @@
13
13
  */
14
14
 
15
15
  import * as v from "valibot";
16
-
17
16
  //#region source/config/schema/domains.d.ts
18
17
  /** The individual validatable domains of the app config. */
19
18
  declare const CommerceAppConfigSchemas: {
@@ -15,19 +15,19 @@
15
15
 
16
16
  const require_rolldown_runtime = require('../rolldown-runtime-Cozy-1ZF.cjs');
17
17
  const require_error = require('../error-D-N0PKSl.cjs');
18
- const require_index_node = require('../index.node-BWZuZLgs.cjs');
19
- const require_webhooks = require('../webhooks-L4DWHSOl.cjs');
20
- const require_validate = require('../validate-C_eCKp21.cjs');
18
+ const require_index_node = require('../index.node-Bv_FUgST.cjs');
19
+ const require_webhooks = require('../webhooks-CrHGA-sO.cjs');
20
+ const require_validate = require('../validate-Dt0Fdj1L.cjs');
21
21
  const require_logging = require('../logging-udPuAJPt.cjs');
22
22
  let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
23
23
  let _adobe_aio_commerce_lib_core_error = require("@adobe/aio-commerce-lib-core/error");
24
+ let consola = require("consola");
25
+ consola = require_rolldown_runtime.__toESM(consola, 1);
26
+ let child_process = require("child_process");
24
27
  let path = require("path");
25
28
  path = require_rolldown_runtime.__toESM(path, 1);
26
29
  let fs = require("fs");
27
30
  let fs_promises = require("fs/promises");
28
- let consola = require("consola");
29
- consola = require_rolldown_runtime.__toESM(consola, 1);
30
- let child_process = require("child_process");
31
31
  let prettier = require("prettier");
32
32
  prettier = require_rolldown_runtime.__toESM(prettier, 1);
33
33
  let url = require("url");
@@ -230,7 +230,7 @@ const WEB_SOURCE_IMPORT_ALIAS = "#web/*";
230
230
  const WEB_SOURCE_DEPENDENCIES = [
231
231
  {
232
232
  name: "@adobe/aio-commerce-lib-admin-ui",
233
- version: "^0.2.0"
233
+ version: "^1.0.0"
234
234
  },
235
235
  {
236
236
  name: "react",
@@ -1650,7 +1650,7 @@ async function ensureInstallYaml(domains, cwd = process.cwd()) {
1650
1650
 
1651
1651
  //#endregion
1652
1652
  //#region source/commands/init/main.ts
1653
- const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.8.0`];
1653
+ const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@1.9.0`];
1654
1654
  /** Initialize the project */
1655
1655
  async function run(flags, extraOptions) {
1656
1656
  consola.consola.start("Initializing app...");
@@ -12,4 +12,4 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- export { };
15
+ export {}
@@ -12,5 +12,5 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as defineConfig } from "../define-DOqVyexT.cjs";
15
+ import { t as defineConfig } from "../define-B__VyRtO.cjs";
16
16
  export { defineConfig };
@@ -13,10 +13,10 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
+ const require_index_node = require('../index.node-Bv_FUgST.cjs');
16
17
  const require_define = require('../define-hlcQw7Cv.cjs');
17
- const require_index_node = require('../index.node-BWZuZLgs.cjs');
18
- const require_webhooks = require('../webhooks-L4DWHSOl.cjs');
19
- const require_validate = require('../validate-C_eCKp21.cjs');
18
+ const require_webhooks = require('../webhooks-CrHGA-sO.cjs');
19
+ const require_validate = require('../validate-Dt0Fdj1L.cjs');
20
20
 
21
21
  exports.CommerceAppConfigSchemas = require_validate.CommerceAppConfigSchemas;
22
22
  exports.defineConfig = require_define.defineConfig;
@@ -12,10 +12,11 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-BwehWeu1.cjs";
16
- import { t as defineConfig } from "../define-DOqVyexT.cjs";
15
+ import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-e4bCHpek.cjs";
16
+ import { t as defineConfig } from "../define-B__VyRtO.cjs";
17
17
  import { Get } from "type-fest";
18
18
  import * as v from "valibot";
19
+ import "@adobe/aio-commerce-lib-config";
19
20
  //#region source/config/lib/parser.d.ts
20
21
  /**
21
22
  * Try to find (up to the nearest package.json file) the app config file.
@@ -731,7 +732,6 @@ declare const MenuSchema: v.ObjectSchema<{
731
732
  /**
732
733
  * Schema for the `adminUi` config section.
733
734
  * Supports grid column extensions, mass actions, order view buttons, and menu on `commerce/backend-ui/2`.
734
- * @experimental
735
735
  */
736
736
  declare const AdminUiSchema: v.ObjectSchema<{
737
737
  readonly customer: v.OptionalSchema<v.ObjectSchema<{
@@ -959,49 +959,40 @@ declare const AdminUiSchema: v.ObjectSchema<{
959
959
  }, undefined>;
960
960
  /**
961
961
  * The Admin UI configuration for an Adobe Commerce application.
962
- * @experimental
963
962
  */
964
963
  type AdminUiConfiguration = v.InferInput<typeof AdminUiSchema>;
965
964
  /**
966
965
  * Grid columns registration configuration.
967
- * @experimental
968
966
  */
969
967
  type GridColumns = v.InferInput<typeof GridColumnsSchema>;
970
968
  /**
971
969
  * A single grid column definition.
972
- * @experimental
973
970
  */
974
971
  type GridColumn = v.InferInput<typeof GridColumnSchema>;
975
972
  /**
976
973
  * A mass action registration entry (view or worker variant).
977
- * @experimental
978
974
  */
979
975
  type MassAction = v.InferInput<typeof MassActionSchema>;
980
976
  /**
981
977
  * A view-type mass action.
982
- * @experimental
983
978
  */
984
979
  type ViewMassAction = v.InferInput<typeof ViewMassActionSchema>;
985
980
  /**
986
981
  * A worker-type mass action.
987
- * @experimental
988
982
  */
989
983
  type WorkerMassAction = v.InferInput<typeof WorkerMassActionSchema>;
990
984
  /**
991
985
  * An order view button registration entry (v2, `adminUi`).
992
- * @experimental
993
986
  */
994
987
  type OrderViewButton = v.InferInput<typeof OrderViewButtonSchema>;
995
988
  /**
996
989
  * Inlined notification strings on an `adminUi` registration entry.
997
- * @experimental
998
990
  */
999
991
  type Notifications = v.InferInput<typeof NotificationsSchema>;
1000
992
  /**
1001
993
  * Admin UI menu registration configuration.
1002
994
  * Includes the optional `aclProtected` flag — when `true`, Commerce auto-generates
1003
995
  * a per-app ACL resource from `metadata.id` for role-based menu access control.
1004
- * @experimental
1005
996
  */
1006
997
  type Menu = v.InferInput<typeof MenuSchema>;
1007
998
  /** Config type when `adminUi` configuration is present. */
@@ -1010,7 +1001,6 @@ type AdminUiConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel
1010
1001
  };
1011
1002
  /**
1012
1003
  * Check if config has Admin UI configuration.
1013
- * @experimental
1014
1004
  */
1015
1005
  declare function hasAdminUi<T extends AnyCommerceAppConfig>(config: T): config is AdminUiConfig<T>;
1016
1006
  //#endregion
@@ -12,8 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfig } from "./app-BwehWeu1.mjs";
16
-
15
+ import { n as CommerceAppConfig } from "./app-e4bCHpek.cjs";
17
16
  //#region source/config/lib/define.d.ts
18
17
  /**
19
18
  * Helper to type-safely define the app config.
@@ -12,5 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
+ import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
15
16
  import AioLogger from "@adobe/aio-lib-core-logging";
16
- import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
17
+ import "@adobe/aio-commerce-lib-core/responses";
18
+ import "type-fest";