@adobe/aio-commerce-lib-app 0.3.2 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +1 -4
  3. package/bin/cli.mjs +24 -0
  4. package/dist/cjs/actions/app-config.cjs +27 -0
  5. package/dist/cjs/actions/app-config.d.cts +15 -0
  6. package/dist/cjs/actions/config.cjs +79 -0
  7. package/dist/cjs/actions/config.d.cts +15 -0
  8. package/dist/cjs/actions/installation.cjs +424 -0
  9. package/dist/cjs/actions/{index.d.cts → installation.d.cts} +4 -3
  10. package/dist/cjs/actions/scope-tree.cjs +97 -0
  11. package/dist/cjs/actions/scope-tree.d.cts +8 -0
  12. package/dist/{es/app-Cx1-6dn0.d.mts → cjs/app-DWX5-Hsf.d.cts} +14 -14
  13. package/dist/cjs/commands/generate/actions/templates/app-management/app-config.js.template +22 -0
  14. package/dist/cjs/commands/generate/actions/templates/app-management/installation.js.template +1 -1
  15. package/dist/cjs/commands/generate/actions/templates/business-configuration/config.js.template +22 -0
  16. package/dist/cjs/commands/generate/actions/templates/business-configuration/scope-tree.js.template +18 -0
  17. package/dist/cjs/commands/index.cjs +91 -106
  18. package/dist/cjs/config/index.cjs +21 -19
  19. package/dist/cjs/config/index.d.cts +52 -352
  20. package/dist/cjs/error-DJ2UAPH2.cjs +24 -0
  21. package/dist/cjs/installation-CLbceU9F.cjs +243 -0
  22. package/dist/cjs/{logging-DYwr5WQk.cjs → logging-IDRQG0as.cjs} +2 -2
  23. package/dist/cjs/management/index.cjs +9 -8
  24. package/dist/cjs/management/index.d.cts +2 -2
  25. package/dist/cjs/parser-BPpg_9QB.cjs +267 -0
  26. package/dist/cjs/router-DCw7oEQ9.cjs +417 -0
  27. package/dist/{es/index-Bxr3zvCT.d.mts → cjs/runner-DemKouFJ.d.cts} +49 -95
  28. package/dist/cjs/{management-Dm5h0E6l.cjs → runner-NHMvoMO2.cjs} +24 -30
  29. package/dist/cjs/schemas-CZ6c8Id9.cjs +98 -0
  30. package/dist/cjs/validate-Btzn9ilZ.cjs +235 -0
  31. package/dist/es/actions/app-config.d.mts +15 -0
  32. package/dist/es/actions/app-config.mjs +25 -0
  33. package/dist/es/actions/config.d.mts +15 -0
  34. package/dist/es/actions/config.mjs +77 -0
  35. package/dist/es/actions/{index.d.mts → installation.d.mts} +4 -3
  36. package/dist/es/actions/{index.mjs → installation.mjs} +27 -427
  37. package/dist/es/actions/scope-tree.d.mts +8 -0
  38. package/dist/es/actions/scope-tree.mjs +95 -0
  39. package/dist/{cjs/app-Dx0ca6oL.d.cts → es/app-BAiyvNo2.d.mts} +14 -14
  40. package/dist/es/commands/generate/actions/templates/app-management/app-config.js.template +22 -0
  41. package/dist/es/commands/generate/actions/templates/app-management/installation.js.template +1 -1
  42. package/dist/es/commands/generate/actions/templates/business-configuration/config.js.template +22 -0
  43. package/dist/es/commands/generate/actions/templates/business-configuration/scope-tree.js.template +18 -0
  44. package/dist/es/commands/index.mjs +68 -84
  45. package/dist/es/config/index.d.mts +52 -352
  46. package/dist/es/config/index.mjs +3 -2
  47. package/dist/es/error-CMV3IjBz.mjs +18 -0
  48. package/dist/es/{error-P7JgUTds.mjs → installation-BTL9X7iv.mjs} +78 -128
  49. package/dist/es/management/index.d.mts +2 -3
  50. package/dist/es/management/index.mjs +1 -1
  51. package/dist/es/parser-CQZTVG6i.mjs +201 -0
  52. package/dist/es/router-CJ4VWoCt.mjs +404 -0
  53. package/dist/{cjs/index-C5SutkJQ.d.cts → es/runner-BD-lItnK.d.mts} +49 -95
  54. package/dist/es/{management-Y7pwEbNI.mjs → runner-vwAhjD5r.mjs} +17 -24
  55. package/dist/es/schemas-B8yIv0_b.mjs +41 -0
  56. package/dist/es/validate-DKnju9-R.mjs +187 -0
  57. package/package.json +38 -24
  58. package/dist/cjs/actions/index.cjs +0 -824
  59. package/dist/cjs/commands/generate/actions/templates/app-management/get-app-config.js.template +0 -62
  60. package/dist/cjs/commands/generate/actions/templates/business-configuration/get-config-schema.js.template +0 -63
  61. package/dist/cjs/commands/generate/actions/templates/business-configuration/get-configuration.js.template +0 -104
  62. package/dist/cjs/commands/generate/actions/templates/business-configuration/get-scope-tree.js.template +0 -69
  63. package/dist/cjs/commands/generate/actions/templates/business-configuration/set-configuration.js.template +0 -125
  64. package/dist/cjs/commands/generate/actions/templates/business-configuration/set-custom-scope-tree.js.template +0 -83
  65. package/dist/cjs/commands/generate/actions/templates/business-configuration/sync-commerce-scopes.js.template +0 -113
  66. package/dist/cjs/commands/generate/actions/templates/business-configuration/unsync-commerce-scopes.js.template +0 -56
  67. package/dist/cjs/config-JQ_n-5Nk.cjs +0 -565
  68. package/dist/cjs/error-Byj1DVHZ.cjs +0 -344
  69. package/dist/es/commands/generate/actions/templates/app-management/get-app-config.js.template +0 -62
  70. package/dist/es/commands/generate/actions/templates/business-configuration/get-config-schema.js.template +0 -63
  71. package/dist/es/commands/generate/actions/templates/business-configuration/get-configuration.js.template +0 -104
  72. package/dist/es/commands/generate/actions/templates/business-configuration/get-scope-tree.js.template +0 -69
  73. package/dist/es/commands/generate/actions/templates/business-configuration/set-configuration.js.template +0 -125
  74. package/dist/es/commands/generate/actions/templates/business-configuration/set-custom-scope-tree.js.template +0 -83
  75. package/dist/es/commands/generate/actions/templates/business-configuration/sync-commerce-scopes.js.template +0 -113
  76. package/dist/es/commands/generate/actions/templates/business-configuration/unsync-commerce-scopes.js.template +0 -56
  77. package/dist/es/config-BSGerqCG.mjs +0 -457
  78. /package/dist/es/{logging-VgerMhp6.mjs → logging-CzmXDzxI.mjs} +0 -0
@@ -0,0 +1,97 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_schemas = require('../schemas-CZ6c8Id9.cjs');
3
+ const require_router = require('../router-DCw7oEQ9.cjs');
4
+ const require_logging = require('../logging-IDRQG0as.cjs');
5
+ let _adobe_aio_commerce_lib_core_responses = require("@adobe/aio-commerce-lib-core/responses");
6
+ let valibot = require("valibot");
7
+ valibot = require_schemas.__toESM(valibot);
8
+ let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
9
+ let _adobe_aio_commerce_lib_api = require("@adobe/aio-commerce-lib-api");
10
+
11
+ //#region source/actions/scope-tree.ts
12
+ const router = new require_router.HttpActionRouter().use(require_router.logger());
13
+ /** GET / - Get scope tree */
14
+ router.get("/", { handler: async (_req, ctx) => {
15
+ const { logger } = ctx;
16
+ const result = await (0, _adobe_aio_commerce_lib_config.getScopeTree)();
17
+ logger.debug(`Successfully retrieved scope tree (cached: ${result.isCachedData}): ${require_logging.inspect(result.scopeTree)}`);
18
+ if (result.isCachedData) return (0, _adobe_aio_commerce_lib_core_responses.nonAuthoritativeInformation)({
19
+ headers: { "x-cache": "hit" },
20
+ body: { scopes: result.scopeTree }
21
+ });
22
+ return (0, _adobe_aio_commerce_lib_core_responses.ok)({ body: { scopes: result.scopeTree } });
23
+ } });
24
+ /** POST / - Set custom scope tree */
25
+ router.put("/", {
26
+ body: valibot.object({ scopes: valibot.array(valibot.any()) }),
27
+ handler: async (req, ctx) => {
28
+ const { logger } = ctx;
29
+ logger.debug(`Setting custom scope tree with ${req.body.scopes?.length || 0} scopes`);
30
+ const request = { scopes: req.body.scopes };
31
+ logger.debug(`Setting custom scope tree: ${require_logging.inspect(request)}`);
32
+ const result = await (0, _adobe_aio_commerce_lib_config.setCustomScopeTree)(request);
33
+ logger.debug(`Successfully set custom scope tree: ${require_logging.inspect(result)}`);
34
+ return (0, _adobe_aio_commerce_lib_core_responses.ok)({
35
+ body: { result },
36
+ headers: { "Cache-Control": "no-store" }
37
+ });
38
+ }
39
+ });
40
+ /** POST /commerce - Sync commerce scopes */
41
+ router.post("/commerce", {
42
+ body: valibot.object({
43
+ commerceBaseUrl: require_schemas.nonEmptyStringValueSchema("commerceBaseUrl"),
44
+ commerceEnv: valibot.optional(require_schemas.nonEmptyStringValueSchema("commerceEnv"))
45
+ }),
46
+ handler: async (req, ctx) => {
47
+ const { logger } = ctx;
48
+ logger.debug("Syncing commerce scopes...");
49
+ const { commerceBaseUrl, commerceEnv } = req.body;
50
+ const result = await (0, _adobe_aio_commerce_lib_config.syncCommerceScopes)((0, _adobe_aio_commerce_lib_api.resolveCommerceHttpClientParams)({
51
+ ...ctx.rawParams,
52
+ AIO_COMMERCE_API_BASE_URL: commerceBaseUrl,
53
+ ...commerceEnv && { AIO_COMMERCE_API_FLAVOR: commerceEnv }
54
+ }, { tryForwardAuthProvider: true }));
55
+ if (result.error) {
56
+ logger.error(`Error syncing commerce scopes: ${require_logging.inspect(result.error)}`);
57
+ return (0, _adobe_aio_commerce_lib_core_responses.internalServerError)({ body: {
58
+ message: "An internal server error occurred",
59
+ error: result.error
60
+ } });
61
+ }
62
+ if (!result.synced) {
63
+ logger.debug(`Commerce scopes not synced (cached): ${require_logging.inspect(result.scopeTree)}`);
64
+ return (0, _adobe_aio_commerce_lib_core_responses.nonAuthoritativeInformation)({
65
+ headers: { "x-cache": "hit" },
66
+ body: {
67
+ scopes: result.scopeTree,
68
+ synced: false
69
+ }
70
+ });
71
+ }
72
+ logger.debug(`Successfully synced commerce scopes: ${require_logging.inspect(result.scopeTree)}`);
73
+ return (0, _adobe_aio_commerce_lib_core_responses.ok)({ body: {
74
+ scopes: result.scopeTree,
75
+ synced: true
76
+ } });
77
+ }
78
+ });
79
+ /** DELETE /commerce - Unsync commerce scopes */
80
+ router.delete("/commerce", { handler: async (_req, ctx) => {
81
+ const { logger } = ctx;
82
+ logger.debug("Unsyncing commerce scopes...");
83
+ const { unsynced } = await (0, _adobe_aio_commerce_lib_config.unsyncCommerceScopes)();
84
+ if (unsynced) {
85
+ const message = "Commerce scopes unsynced successfully";
86
+ logger.debug(message);
87
+ return (0, _adobe_aio_commerce_lib_core_responses.ok)(message);
88
+ }
89
+ const message = "No commerce scopes to unsync";
90
+ logger.debug(message);
91
+ return (0, _adobe_aio_commerce_lib_core_responses.ok)(message);
92
+ } });
93
+ /** The handler method for the `scope-tree` action. */
94
+ const scopeTreeRuntimeAction = router.handler();
95
+
96
+ //#endregion
97
+ exports.scopeTreeRuntimeAction = scopeTreeRuntimeAction;
@@ -0,0 +1,8 @@
1
+ import * as _adobe_aio_commerce_lib_core_responses0 from "@adobe/aio-commerce-lib-core/responses";
2
+ import * as _adobe_aio_commerce_lib_core_params0 from "@adobe/aio-commerce-lib-core/params";
3
+
4
+ //#region source/actions/scope-tree.d.ts
5
+ /** The handler method for the `scope-tree` action. */
6
+ declare const scopeTreeRuntimeAction: (args: _adobe_aio_commerce_lib_core_params0.RuntimeActionParams) => Promise<_adobe_aio_commerce_lib_core_responses0.ActionResponse>;
7
+ //#endregion
8
+ export { scopeTreeRuntimeAction };
@@ -34,31 +34,31 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
34
34
  readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
35
35
  }, undefined>], undefined>, v.ObjectSchema<{
36
36
  readonly type: v.LiteralSchema<"text", "Expected the type to be 'text'">;
37
- readonly default: v.OptionalSchema<v.StringSchema<"Expected a string for the default value">, undefined>;
37
+ readonly default: v.OptionalSchema<v.StringSchema<"Expected a string for the default value">, "">;
38
38
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
39
39
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
40
40
  readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
41
41
  }, undefined>, v.ObjectSchema<{
42
42
  readonly type: v.LiteralSchema<"password", "Expected the type to be 'password'">;
43
- readonly default: v.OptionalSchema<v.StringSchema<"Expected a string for the default value">, undefined>;
43
+ readonly default: v.OptionalSchema<v.LiteralSchema<"", "Password fields do not have a default value">, "">;
44
44
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
45
45
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
46
46
  readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
47
47
  }, undefined>, v.ObjectSchema<{
48
48
  readonly type: v.LiteralSchema<"email", "Expected the type to be 'email'">;
49
- readonly default: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default email value">, v.EmailAction<string, "The email must be a valid email address">]>, undefined>;
49
+ readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default email value">, v.EmailAction<string, "The email must be a valid email address">]>], undefined>, "">;
50
50
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
51
51
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
52
52
  readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
53
53
  }, undefined>, v.ObjectSchema<{
54
54
  readonly type: v.LiteralSchema<"url", "Expected the type to be 'url'">;
55
- readonly default: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default URL value">, v.UrlAction<string, "The URL must be a valid URL">]>, undefined>;
55
+ readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default URL value">, v.UrlAction<string, "The URL must be a valid URL">]>], undefined>, "">;
56
56
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
57
57
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
58
58
  readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
59
59
  }, undefined>, v.ObjectSchema<{
60
60
  readonly type: v.LiteralSchema<"tel", "Expected the type to be 'tel'">;
61
- readonly default: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default phone number value">, v.RegexAction<string, "The phone number must contain only numbers and/or country codes">]>, undefined>;
61
+ readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default phone number value">, v.RegexAction<string, "The phone number must contain only numbers and/or country codes">]>], undefined>, "">;
62
62
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
63
63
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
64
64
  readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
@@ -86,31 +86,31 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
86
86
  description?: string | undefined;
87
87
  } | {
88
88
  type: "text";
89
- default?: string | undefined;
89
+ default: string;
90
90
  name: string;
91
91
  label?: string | undefined;
92
92
  description?: string | undefined;
93
93
  } | {
94
94
  type: "password";
95
- default?: string | undefined;
95
+ default: "";
96
96
  name: string;
97
97
  label?: string | undefined;
98
98
  description?: string | undefined;
99
99
  } | {
100
100
  type: "email";
101
- default?: string | undefined;
101
+ default: string;
102
102
  name: string;
103
103
  label?: string | undefined;
104
104
  description?: string | undefined;
105
105
  } | {
106
106
  type: "url";
107
- default?: string | undefined;
107
+ default: string;
108
108
  name: string;
109
109
  label?: string | undefined;
110
110
  description?: string | undefined;
111
111
  } | {
112
112
  type: "tel";
113
- default?: string | undefined;
113
+ default: string;
114
114
  name: string;
115
115
  label?: string | undefined;
116
116
  description?: string | undefined;
@@ -124,7 +124,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
124
124
  readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
125
125
  }, undefined>;
126
126
  readonly events: v.ArraySchema<v.ObjectSchema<{
127
- readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by lowercase letters and underscores only (e.g., \"plugin.order_placed\")">]>;
127
+ readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
128
128
  readonly fields: v.ArraySchema<v.ObjectSchema<{
129
129
  readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Field name must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), dots (.), and square brackets ([, ]), or be exactly \"*\"">]>;
130
130
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
@@ -135,8 +135,8 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
135
135
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
136
136
  }, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
137
137
  readonly destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
138
- readonly hipaaAuditRequired: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
139
- readonly prioritary: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
138
+ readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
139
+ readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
140
140
  readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
141
141
  readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
142
142
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
@@ -150,7 +150,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
150
150
  readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
151
151
  }, undefined>;
152
152
  readonly events: v.ArraySchema<v.ObjectSchema<{
153
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and underscores are allowed in string value of "${string}"${string}`>]>;
153
+ readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must contain only letters, digits, underscores, hyphens, and dots (e.g., \"external_event\", \"webhook.received\", \"my-event_123\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
154
154
  readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
155
155
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
156
156
  readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
@@ -0,0 +1,22 @@
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
+ // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
14
+ // Do not modify this file directly
15
+
16
+ import { appConfigRuntimeAction } from "@adobe/aio-commerce-lib-app/actions/app-config";
17
+
18
+ // The manifest is always at this relative constant path from the action.
19
+ import commerceAppManifest from "../../app.commerce.manifest.json" with { type: "json" };
20
+
21
+ const args = { appConfig: commerceAppManifest };
22
+ export const main = appConfigRuntimeAction(args);
@@ -13,7 +13,7 @@
13
13
  // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
14
14
  // Do not modify this file directly
15
15
 
16
- import { installationRuntimeAction } from "@adobe/aio-commerce-lib-app/actions"
16
+ import { installationRuntimeAction } from "@adobe/aio-commerce-lib-app/actions/installation"
17
17
  import appConfig from "../../app.commerce.manifest.json" with { type: "json" };
18
18
 
19
19
  // {{CUSTOM_SCRIPTS_LOADER}}
@@ -0,0 +1,22 @@
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
+ // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
14
+ // Do not modify this file directly
15
+
16
+ import { configRuntimeAction } from "@adobe/aio-commerce-lib-app/actions/config";
17
+
18
+ // The config schema is always at this relative constant path from the action.
19
+ import configSchema from "../../configuration-schema.json" with { type: "json" };
20
+
21
+ const args = { configSchema };
22
+ export const main = configRuntimeAction(args);
@@ -0,0 +1,18 @@
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
+ // This file has been auto-generated by `@adobe/aio-commerce-lib-app`
14
+ // Do not modify this file directly
15
+
16
+ import { scopeTreeRuntimeAction } from "@adobe/aio-commerce-lib-app/actions/scope-tree";
17
+
18
+ export const main = scopeTreeRuntimeAction;