@adobe/aio-commerce-lib-app 2.1.0 → 2.2.0-beta-20261105172845
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 +17 -0
- package/dist/cjs/actions/app-config/index.cjs +5 -5
- package/dist/cjs/actions/app-config/index.d.cts +1 -1
- package/dist/cjs/actions/association/index.cjs +2 -2
- package/dist/cjs/actions/config/index.cjs +2 -2
- package/dist/cjs/actions/installation/index.cjs +5 -5
- package/dist/cjs/actions/installation/index.d.cts +2 -2
- package/dist/cjs/actions/scope-tree/index.cjs +2 -2
- package/dist/cjs/{app-Ch19CR6g.d.cts → app-CiZuhrsm.d.cts} +326 -0
- package/dist/cjs/commands/index.cjs +10 -9
- package/dist/cjs/config/index.browser.d.cts +1 -1
- package/dist/cjs/config/index.node.cjs +3 -3
- package/dist/cjs/config/index.node.d.cts +88 -4
- package/dist/{es/define-C95h_wa0.d.mts → cjs/define-CZRjG5N_.d.cts} +1 -1
- package/dist/cjs/{index-D-Qn-irL.d.cts → index-Bu2X-HUh.d.cts} +2 -2
- package/dist/cjs/{index.node-CxdwPrOg.cjs → index.node-Boszndri.cjs} +1 -1
- package/dist/cjs/management/index.cjs +1 -1
- package/dist/cjs/management/index.d.cts +1 -1
- package/dist/cjs/{management-C_JQpgVB.cjs → management-C_cVbr0s.cjs} +17 -5
- package/dist/cjs/{openapi-DFoMdZzI.cjs → openapi-c06taOv1.cjs} +412 -45
- package/dist/cjs/{validate-B0rOILvG.cjs → validate-CunJ4fUD.cjs} +1 -1
- package/dist/cjs/{router-DpB8wpR2.cjs → version-CUu8Ks59.cjs} +77 -19
- package/dist/cjs/{webhooks-TvDm57xt.cjs → webhooks-C5ONLbQ4.cjs} +53 -12
- package/dist/{es/webhooks-C9vMZZDZ.d.mts → cjs/webhooks-DX7km8wk.d.cts} +266 -10
- package/dist/es/actions/app-config/index.d.mts +1 -1
- package/dist/es/actions/app-config/index.mjs +5 -5
- package/dist/es/actions/association/index.mjs +2 -2
- package/dist/es/actions/config/index.mjs +2 -2
- package/dist/es/actions/installation/index.d.mts +2 -2
- package/dist/es/actions/installation/index.mjs +5 -5
- package/dist/es/actions/scope-tree/index.mjs +2 -2
- package/dist/es/{app-Ch19CR6g.d.mts → app-CiZuhrsm.d.mts} +326 -0
- package/dist/es/commands/index.mjs +10 -9
- package/dist/es/config/index.browser.d.mts +1 -1
- package/dist/es/config/index.node.d.mts +88 -4
- package/dist/es/config/index.node.mjs +3 -3
- package/dist/{cjs/define-C12IwNNN.d.cts → es/define-9bwRE_UG.d.mts} +1 -1
- package/dist/es/{index-VgCNSlLP.d.mts → index-Cho-eRFD.d.mts} +2 -2
- package/dist/es/{index.node-C8EXBW94.mjs → index.node-BVO6sC7z.mjs} +1 -1
- package/dist/es/management/index.d.mts +1 -1
- package/dist/es/management/index.mjs +1 -1
- package/dist/es/{management-DKDR7-fX.mjs → management-BYmbjhGb.mjs} +17 -5
- package/dist/es/{openapi-E_1RFhAr.mjs → openapi-C_TGWLou.mjs} +412 -45
- package/dist/es/{validate-CiJIjyOr.mjs → validate-D-Oh-sxE.mjs} +1 -1
- package/dist/es/{router-C23GIyGQ.mjs → version-C-Pkqohl.mjs} +71 -20
- package/dist/{cjs/webhooks-Buu1d7AB.d.cts → es/webhooks-B7UjO8dd.d.mts} +266 -10
- package/dist/es/{webhooks-CfrYeMy_.mjs → webhooks-CMb_05b6.mjs} +48 -13
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @adobe/aio-commerce-lib-app
|
|
2
2
|
|
|
3
|
+
## 2.2.0-beta-20261105172845
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#776](https://github.com/adobe/aio-commerce-sdk/pull/776) [`32988bb`](https://github.com/adobe/aio-commerce-sdk/commit/32988bbda397d9a34f788aee721f4dca9abc362a) Thanks [@aminakhyat](https://github.com/aminakhyat)! - Add `adminUi.creditMemo.viewButtons` to the app config schema, with generated `view` and `workerProcess` operations and installation and upgrade support.
|
|
8
|
+
|
|
9
|
+
- [#746](https://github.com/adobe/aio-commerce-sdk/pull/746) [`ca065be`](https://github.com/adobe/aio-commerce-sdk/commit/ca065bec387cf90ce21309420851bef408ca194e) Thanks [@asalloum5](https://github.com/asalloum5)! - Add `adminUi.nativeUi.replacedPages` configuration to replace the native order creation form with an app page, including validation, web generation, and installation planning.
|
|
10
|
+
|
|
11
|
+
- [#732](https://github.com/adobe/aio-commerce-sdk/pull/732) [`f124cf4`](https://github.com/adobe/aio-commerce-sdk/commit/f124cf49208d930ca0f151e948a7597317365697) Thanks [@asalloum5](https://github.com/asalloum5)! - Add invoice detail-page view and worker button configuration, validation, generated operations, and installation and upgrade support.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#792](https://github.com/adobe/aio-commerce-sdk/pull/792) [`6dbdf71`](https://github.com/adobe/aio-commerce-sdk/commit/6dbdf711a6fdf6f38794dc74a0a9e16146c5d771) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Add an `x-ac-sdk-lib-versions` response header to every app-management endpoint response. It lists the lib-app version and the installed lib-config version it loads (not the app's version), for example `lib-app="2.2.0", lib-config="1.4.1"`.
|
|
16
|
+
- Updated dependencies [[`32988bb`](https://github.com/adobe/aio-commerce-sdk/commit/32988bbda397d9a34f788aee721f4dca9abc362a), [`f124cf4`](https://github.com/adobe/aio-commerce-sdk/commit/f124cf49208d930ca0f151e948a7597317365697), [`ca065be`](https://github.com/adobe/aio-commerce-sdk/commit/ca065bec387cf90ce21309420851bef408ca194e), [`32988bb`](https://github.com/adobe/aio-commerce-sdk/commit/32988bbda397d9a34f788aee721f4dca9abc362a), [`a066916`](https://github.com/adobe/aio-commerce-sdk/commit/a066916918f9d3ff66affc7783c743c34a02f263), [`6dbdf71`](https://github.com/adobe/aio-commerce-sdk/commit/6dbdf711a6fdf6f38794dc74a0a9e16146c5d771)]:
|
|
17
|
+
- @adobe/aio-commerce-lib-admin-ui@1.3.0-beta-20261105172845
|
|
18
|
+
- @adobe/aio-commerce-lib-config@1.8.2-beta-20261105172845
|
|
19
|
+
|
|
3
20
|
## 2.1.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const
|
|
17
|
+
const require_version = require("../../version-CUu8Ks59.cjs");
|
|
18
18
|
const require_environment = require("../../environment-CW6M76gS.cjs");
|
|
19
|
-
const require_validate = require("../../validate-
|
|
19
|
+
const require_validate = require("../../validate-CunJ4fUD.cjs");
|
|
20
20
|
let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
|
|
21
21
|
let _adobe_aio_commerce_lib_core_commerce = require("@adobe/aio-commerce-lib-core/commerce");
|
|
22
22
|
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-
|
|
32
|
+
const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-c06taOv1.cjs"));
|
|
33
33
|
/** Matches component schema `$ref` strings, capturing the schema name. */
|
|
34
34
|
const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(?<schema>\w+)"/gu;
|
|
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 = `2.
|
|
83
|
+
const input = `2.2.0-beta-20261105172845:${[...domains].sort().join(",")}:4.2.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. */
|
|
@@ -132,7 +132,7 @@ async function buildOpenApiSpec(domains, logger) {
|
|
|
132
132
|
* - GET / Retrieve the Commerce App configuration.
|
|
133
133
|
* - GET /openapi.json Returns the OpenAPI spec for all SDK actions
|
|
134
134
|
*/
|
|
135
|
-
const router = new
|
|
135
|
+
const router = new require_version.HttpActionRouter({ headers: require_version.SDK_LIB_VERSIONS_HEADERS }).use(require_version.logger({ name: () => "app-config" }));
|
|
136
136
|
/** GET / - Get app config */
|
|
137
137
|
router.get("/", {
|
|
138
138
|
handler: async (req, { logger, rawParams }) => {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-DWEigxhy.cjs";
|
|
16
|
-
import { n as CommerceAppConfig } from "../../app-
|
|
16
|
+
import { n as CommerceAppConfig } from "../../app-CiZuhrsm.cjs";
|
|
17
17
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
18
18
|
/** The arguments required to create the runtime action for the app-config action. */
|
|
19
19
|
type RuntimeActionFactoryArgs = {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const
|
|
17
|
+
const require_version = require("../../version-CUu8Ks59.cjs");
|
|
18
18
|
const require_repository = require("../../repository-C3nn0Mon.cjs");
|
|
19
19
|
let _adobe_aio_commerce_lib_auth = require("@adobe/aio-commerce-lib-auth");
|
|
20
20
|
let _adobe_aio_commerce_lib_core_commerce = require("@adobe/aio-commerce-lib-core/commerce");
|
|
@@ -37,7 +37,7 @@ const AssociationRequestBodySchema = valibot.object({
|
|
|
37
37
|
* - POST / Store Commerce instance details (`baseUrl`, `env`)
|
|
38
38
|
* - DELETE / Clear stored Commerce instance details
|
|
39
39
|
*/
|
|
40
|
-
const router = new
|
|
40
|
+
const router = new require_version.HttpActionRouter({ headers: require_version.SDK_LIB_VERSIONS_HEADERS }).use(require_version.logger({ name: () => "association" }));
|
|
41
41
|
/** POST / - Store association data and return the app's own `client_id`. */
|
|
42
42
|
router.post("/", {
|
|
43
43
|
body: AssociationRequestBodySchema,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const
|
|
17
|
+
const require_version = require("../../version-CUu8Ks59.cjs");
|
|
18
18
|
const require_environment = require("../../environment-CW6M76gS.cjs");
|
|
19
19
|
const require_schemas = require("../../schemas-B6ITl1bG.cjs");
|
|
20
20
|
let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
|
|
@@ -67,7 +67,7 @@ function filterPasswordFields(schema, values) {
|
|
|
67
67
|
* - GET / Get current configuration values for a given scope
|
|
68
68
|
* - PATCH / Partially update configuration (only updates provided fields, allows unsetting)
|
|
69
69
|
*/
|
|
70
|
-
const router = new
|
|
70
|
+
const router = new require_version.HttpActionRouter({ headers: require_version.SDK_LIB_VERSIONS_HEADERS }).use(require_version.logger({ name: () => "config" }));
|
|
71
71
|
/** GET / - Retrieve configuration */
|
|
72
72
|
router.get("/", {
|
|
73
73
|
handler: async (req, ctx) => {
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const
|
|
17
|
+
const require_version = require("../../version-CUu8Ks59.cjs");
|
|
18
18
|
const require_schemas = require("../../schemas-B6ITl1bG.cjs");
|
|
19
|
-
const require_management = require("../../management-
|
|
19
|
+
const require_management = require("../../management-C_cVbr0s.cjs");
|
|
20
20
|
const require_repository = require("../../repository-C3nn0Mon.cjs");
|
|
21
|
-
const require_webhooks = require("../../webhooks-
|
|
22
|
-
const require_validate = require("../../validate-
|
|
21
|
+
const require_webhooks = require("../../webhooks-C5ONLbQ4.cjs");
|
|
22
|
+
const require_validate = require("../../validate-CunJ4fUD.cjs");
|
|
23
23
|
let _adobe_aio_lib_state = require("@adobe/aio-lib-state");
|
|
24
24
|
let _adobe_aio_commerce_lib_core_error = require("@adobe/aio-commerce-lib-core/error");
|
|
25
25
|
let _adobe_aio_commerce_lib_auth = require("@adobe/aio-commerce-lib-auth");
|
|
@@ -2141,7 +2141,7 @@ async function writeBusinessConfigOnlyBaseline({ appConfig, runtime }, state, in
|
|
|
2141
2141
|
* - POST /plan Plan an install, upgrade or uninstall for review
|
|
2142
2142
|
* - POST /execution Execute a started lifecycle attempt (internal, called async)
|
|
2143
2143
|
*/
|
|
2144
|
-
const router = new
|
|
2144
|
+
const router = new require_version.HttpActionRouter({ headers: require_version.SDK_LIB_VERSIONS_HEADERS }).use(require_version.logger({ name: () => "installation" }));
|
|
2145
2145
|
/**
|
|
2146
2146
|
* GET / - Get the status of the latest lifecycle operation. Falls back to the record of an
|
|
2147
2147
|
* installation made by an older library version.
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-DWEigxhy.cjs";
|
|
16
|
-
import { G as LifecycleContext } from "../../index-
|
|
17
|
-
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-
|
|
16
|
+
import { G as LifecycleContext } from "../../index-Bu2X-HUh.cjs";
|
|
17
|
+
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-CiZuhrsm.cjs";
|
|
18
18
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
19
19
|
/** Loads generated custom installation script modules. */
|
|
20
20
|
type CustomScriptsLoader = (config: CommerceAppConfigOutputModel, logger: LifecycleContext["logger"]) => Record<string, unknown>;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const
|
|
17
|
+
const require_version = require("../../version-CUu8Ks59.cjs");
|
|
18
18
|
const require_logging = require("../../logging-Emi7P923.cjs");
|
|
19
19
|
const require_constants = require("../../constants-CgeVvu6f.cjs");
|
|
20
20
|
const require_schemas = require("../../schemas-B6ITl1bG.cjs");
|
|
@@ -53,7 +53,7 @@ const SyncCommerceScopesBodySchema = valibot.object({
|
|
|
53
53
|
* - POST /commerce Sync commerce scopes
|
|
54
54
|
* - DELETE /commerce Unsync commerce scopes
|
|
55
55
|
*/
|
|
56
|
-
const router = new
|
|
56
|
+
const router = new require_version.HttpActionRouter({ headers: require_version.SDK_LIB_VERSIONS_HEADERS }).use(require_version.logger({ name: () => "scope-tree" }));
|
|
57
57
|
/** GET / - Get scope tree */
|
|
58
58
|
router.get("/", { handler: async (_req, ctx) => {
|
|
59
59
|
const { logger } = ctx;
|
|
@@ -76,6 +76,81 @@ declare const CommerceAppConfigSchemas: {
|
|
|
76
76
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
77
77
|
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
78
78
|
}, undefined>, undefined>;
|
|
79
|
+
readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
80
|
+
readonly title: 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>;
|
|
81
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
82
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
83
|
+
readonly message: 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>;
|
|
84
|
+
readonly title: 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>;
|
|
85
|
+
}, undefined>, undefined>;
|
|
86
|
+
readonly description: 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>;
|
|
87
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
88
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
89
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
90
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
91
|
+
readonly error: 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>;
|
|
92
|
+
readonly success: 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>;
|
|
93
|
+
}, undefined>, undefined>;
|
|
94
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
95
|
+
readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
|
|
96
|
+
readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
97
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
98
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
99
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
100
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
101
|
+
readonly message: 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>;
|
|
102
|
+
readonly title: 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>;
|
|
103
|
+
}, undefined>, undefined>;
|
|
104
|
+
readonly description: 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>;
|
|
105
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
106
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
107
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
108
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
109
|
+
readonly error: 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>;
|
|
110
|
+
readonly success: 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>;
|
|
111
|
+
}, undefined>, undefined>;
|
|
112
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
113
|
+
readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
114
|
+
readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
115
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
116
|
+
}, undefined>], undefined>, undefined>, v.CheckAction<({
|
|
117
|
+
title?: string | undefined;
|
|
118
|
+
aclProtected?: boolean | undefined;
|
|
119
|
+
confirm?: {
|
|
120
|
+
message?: string | undefined;
|
|
121
|
+
title?: string | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
description?: string | undefined;
|
|
124
|
+
id: string;
|
|
125
|
+
label: string;
|
|
126
|
+
level?: 0 | 1 | -1 | undefined;
|
|
127
|
+
notifications?: {
|
|
128
|
+
error?: string | undefined;
|
|
129
|
+
success?: string | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
path: string;
|
|
132
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
133
|
+
sortOrder?: number | undefined;
|
|
134
|
+
type: "view";
|
|
135
|
+
} | {
|
|
136
|
+
aclProtected?: boolean | undefined;
|
|
137
|
+
confirm?: {
|
|
138
|
+
message?: string | undefined;
|
|
139
|
+
title?: string | undefined;
|
|
140
|
+
} | undefined;
|
|
141
|
+
description?: string | undefined;
|
|
142
|
+
id: string;
|
|
143
|
+
label: string;
|
|
144
|
+
level?: 0 | 1 | -1 | undefined;
|
|
145
|
+
notifications?: {
|
|
146
|
+
error?: string | undefined;
|
|
147
|
+
success?: string | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
runtimeAction: string;
|
|
150
|
+
sortOrder?: number | undefined;
|
|
151
|
+
timeout?: number | undefined;
|
|
152
|
+
type: "worker";
|
|
153
|
+
})[], "Credit memo view button ids must be unique after Commerce id sanitization.">]>, undefined>;
|
|
79
154
|
}, undefined>, undefined>;
|
|
80
155
|
readonly customer: v.OptionalSchema<v.ObjectSchema<{
|
|
81
156
|
readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -201,6 +276,81 @@ declare const CommerceAppConfigSchemas: {
|
|
|
201
276
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
202
277
|
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
203
278
|
}, undefined>, undefined>;
|
|
279
|
+
readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
280
|
+
readonly title: 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>;
|
|
281
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
282
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
283
|
+
readonly message: 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>;
|
|
284
|
+
readonly title: 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>;
|
|
285
|
+
}, undefined>, undefined>;
|
|
286
|
+
readonly description: 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>;
|
|
287
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
288
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
289
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
290
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
291
|
+
readonly error: 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>;
|
|
292
|
+
readonly success: 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>;
|
|
293
|
+
}, undefined>, undefined>;
|
|
294
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
295
|
+
readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
|
|
296
|
+
readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
297
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
298
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
299
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
300
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
301
|
+
readonly message: 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>;
|
|
302
|
+
readonly title: 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>;
|
|
303
|
+
}, undefined>, undefined>;
|
|
304
|
+
readonly description: 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>;
|
|
305
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
306
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
307
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
308
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
309
|
+
readonly error: 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>;
|
|
310
|
+
readonly success: 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>;
|
|
311
|
+
}, undefined>, undefined>;
|
|
312
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
313
|
+
readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
314
|
+
readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
315
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
316
|
+
}, undefined>], undefined>, undefined>, v.CheckAction<({
|
|
317
|
+
aclProtected?: boolean | undefined;
|
|
318
|
+
confirm?: {
|
|
319
|
+
message?: string | undefined;
|
|
320
|
+
title?: string | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
description?: string | undefined;
|
|
323
|
+
id: string;
|
|
324
|
+
label: string;
|
|
325
|
+
level?: 0 | 1 | -1 | undefined;
|
|
326
|
+
notifications?: {
|
|
327
|
+
error?: string | undefined;
|
|
328
|
+
success?: string | undefined;
|
|
329
|
+
} | undefined;
|
|
330
|
+
runtimeAction: string;
|
|
331
|
+
sortOrder?: number | undefined;
|
|
332
|
+
timeout?: number | undefined;
|
|
333
|
+
type: "worker";
|
|
334
|
+
} | {
|
|
335
|
+
title?: string | undefined;
|
|
336
|
+
aclProtected?: boolean | undefined;
|
|
337
|
+
confirm?: {
|
|
338
|
+
message?: string | undefined;
|
|
339
|
+
title?: string | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
description?: string | undefined;
|
|
342
|
+
id: string;
|
|
343
|
+
label: string;
|
|
344
|
+
level?: 0 | 1 | -1 | undefined;
|
|
345
|
+
notifications?: {
|
|
346
|
+
error?: string | undefined;
|
|
347
|
+
success?: string | undefined;
|
|
348
|
+
} | undefined;
|
|
349
|
+
path: string;
|
|
350
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
351
|
+
sortOrder?: number | undefined;
|
|
352
|
+
type: "view";
|
|
353
|
+
})[], "Invoice view button ids must be unique after Commerce id sanitization.">]>, undefined>;
|
|
204
354
|
}, undefined>, undefined>;
|
|
205
355
|
readonly menu: v.OptionalSchema<v.ObjectSchema<{
|
|
206
356
|
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -211,6 +361,19 @@ declare const CommerceAppConfigSchemas: {
|
|
|
211
361
|
readonly parentMenu: v.OptionalSchema<v.PicklistSchema<readonly ["sales", "catalog", "customers", "marketing", "content", "reports", "stores", "system"], "parentMenu must be a known Commerce Admin menu ID">, undefined>;
|
|
212
362
|
readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
|
|
213
363
|
}, undefined>, undefined>;
|
|
364
|
+
readonly nativeUi: v.OptionalSchema<v.ObjectSchema<{
|
|
365
|
+
readonly replacedPages: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
366
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
367
|
+
readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
|
|
368
|
+
readonly target: v.PicklistSchema<readonly ["order.create"], `Invalid native UI replaced page target. Accepted values are: ${string}`>;
|
|
369
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
370
|
+
}, undefined>, undefined>, v.CheckAction<{
|
|
371
|
+
path: string;
|
|
372
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
373
|
+
target: "order.create";
|
|
374
|
+
title: string;
|
|
375
|
+
}[], "Native UI replaced page targets must be unique.">]>;
|
|
376
|
+
}, undefined>, undefined>;
|
|
214
377
|
readonly newsletter: v.OptionalSchema<v.ObjectSchema<{
|
|
215
378
|
readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
|
|
216
379
|
readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
@@ -1462,6 +1625,81 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
1462
1625
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1463
1626
|
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1464
1627
|
}, undefined>, undefined>;
|
|
1628
|
+
readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1629
|
+
readonly title: 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>;
|
|
1630
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1631
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
1632
|
+
readonly message: 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>;
|
|
1633
|
+
readonly title: 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>;
|
|
1634
|
+
}, undefined>, undefined>;
|
|
1635
|
+
readonly description: 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>;
|
|
1636
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1637
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1638
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
1639
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
1640
|
+
readonly error: 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>;
|
|
1641
|
+
readonly success: 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>;
|
|
1642
|
+
}, undefined>, undefined>;
|
|
1643
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1644
|
+
readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
|
|
1645
|
+
readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
1646
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
1647
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1648
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1649
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
1650
|
+
readonly message: 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>;
|
|
1651
|
+
readonly title: 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>;
|
|
1652
|
+
}, undefined>, undefined>;
|
|
1653
|
+
readonly description: 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>;
|
|
1654
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1655
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1656
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
1657
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
1658
|
+
readonly error: 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>;
|
|
1659
|
+
readonly success: 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>;
|
|
1660
|
+
}, undefined>, undefined>;
|
|
1661
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1662
|
+
readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
1663
|
+
readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
1664
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
1665
|
+
}, undefined>], undefined>, undefined>, v.CheckAction<({
|
|
1666
|
+
title?: string | undefined;
|
|
1667
|
+
aclProtected?: boolean | undefined;
|
|
1668
|
+
confirm?: {
|
|
1669
|
+
message?: string | undefined;
|
|
1670
|
+
title?: string | undefined;
|
|
1671
|
+
} | undefined;
|
|
1672
|
+
description?: string | undefined;
|
|
1673
|
+
id: string;
|
|
1674
|
+
label: string;
|
|
1675
|
+
level?: 0 | 1 | -1 | undefined;
|
|
1676
|
+
notifications?: {
|
|
1677
|
+
error?: string | undefined;
|
|
1678
|
+
success?: string | undefined;
|
|
1679
|
+
} | undefined;
|
|
1680
|
+
path: string;
|
|
1681
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
1682
|
+
sortOrder?: number | undefined;
|
|
1683
|
+
type: "view";
|
|
1684
|
+
} | {
|
|
1685
|
+
aclProtected?: boolean | undefined;
|
|
1686
|
+
confirm?: {
|
|
1687
|
+
message?: string | undefined;
|
|
1688
|
+
title?: string | undefined;
|
|
1689
|
+
} | undefined;
|
|
1690
|
+
description?: string | undefined;
|
|
1691
|
+
id: string;
|
|
1692
|
+
label: string;
|
|
1693
|
+
level?: 0 | 1 | -1 | undefined;
|
|
1694
|
+
notifications?: {
|
|
1695
|
+
error?: string | undefined;
|
|
1696
|
+
success?: string | undefined;
|
|
1697
|
+
} | undefined;
|
|
1698
|
+
runtimeAction: string;
|
|
1699
|
+
sortOrder?: number | undefined;
|
|
1700
|
+
timeout?: number | undefined;
|
|
1701
|
+
type: "worker";
|
|
1702
|
+
})[], "Credit memo view button ids must be unique after Commerce id sanitization.">]>, undefined>;
|
|
1465
1703
|
}, undefined>, undefined>;
|
|
1466
1704
|
readonly customer: v.OptionalSchema<v.ObjectSchema<{
|
|
1467
1705
|
readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -1587,6 +1825,81 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
1587
1825
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1588
1826
|
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1589
1827
|
}, undefined>, undefined>;
|
|
1828
|
+
readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
1829
|
+
readonly title: 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>;
|
|
1830
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1831
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
1832
|
+
readonly message: 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>;
|
|
1833
|
+
readonly title: 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>;
|
|
1834
|
+
}, undefined>, undefined>;
|
|
1835
|
+
readonly description: 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>;
|
|
1836
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1837
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1838
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
1839
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
1840
|
+
readonly error: 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>;
|
|
1841
|
+
readonly success: 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>;
|
|
1842
|
+
}, undefined>, undefined>;
|
|
1843
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1844
|
+
readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
|
|
1845
|
+
readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
1846
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
1847
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
1848
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1849
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
1850
|
+
readonly message: 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>;
|
|
1851
|
+
readonly title: 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>;
|
|
1852
|
+
}, undefined>, undefined>;
|
|
1853
|
+
readonly description: 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>;
|
|
1854
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1855
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1856
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
1857
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
1858
|
+
readonly error: 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>;
|
|
1859
|
+
readonly success: 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>;
|
|
1860
|
+
}, undefined>, undefined>;
|
|
1861
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1862
|
+
readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
1863
|
+
readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
|
|
1864
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
1865
|
+
}, undefined>], undefined>, undefined>, v.CheckAction<({
|
|
1866
|
+
aclProtected?: boolean | undefined;
|
|
1867
|
+
confirm?: {
|
|
1868
|
+
message?: string | undefined;
|
|
1869
|
+
title?: string | undefined;
|
|
1870
|
+
} | undefined;
|
|
1871
|
+
description?: string | undefined;
|
|
1872
|
+
id: string;
|
|
1873
|
+
label: string;
|
|
1874
|
+
level?: 0 | 1 | -1 | undefined;
|
|
1875
|
+
notifications?: {
|
|
1876
|
+
error?: string | undefined;
|
|
1877
|
+
success?: string | undefined;
|
|
1878
|
+
} | undefined;
|
|
1879
|
+
runtimeAction: string;
|
|
1880
|
+
sortOrder?: number | undefined;
|
|
1881
|
+
timeout?: number | undefined;
|
|
1882
|
+
type: "worker";
|
|
1883
|
+
} | {
|
|
1884
|
+
title?: string | undefined;
|
|
1885
|
+
aclProtected?: boolean | undefined;
|
|
1886
|
+
confirm?: {
|
|
1887
|
+
message?: string | undefined;
|
|
1888
|
+
title?: string | undefined;
|
|
1889
|
+
} | undefined;
|
|
1890
|
+
description?: string | undefined;
|
|
1891
|
+
id: string;
|
|
1892
|
+
label: string;
|
|
1893
|
+
level?: 0 | 1 | -1 | undefined;
|
|
1894
|
+
notifications?: {
|
|
1895
|
+
error?: string | undefined;
|
|
1896
|
+
success?: string | undefined;
|
|
1897
|
+
} | undefined;
|
|
1898
|
+
path: string;
|
|
1899
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
1900
|
+
sortOrder?: number | undefined;
|
|
1901
|
+
type: "view";
|
|
1902
|
+
})[], "Invoice view button ids must be unique after Commerce id sanitization.">]>, undefined>;
|
|
1590
1903
|
}, undefined>, undefined>;
|
|
1591
1904
|
readonly menu: v.OptionalSchema<v.ObjectSchema<{
|
|
1592
1905
|
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -1597,6 +1910,19 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
1597
1910
|
readonly parentMenu: v.OptionalSchema<v.PicklistSchema<readonly ["sales", "catalog", "customers", "marketing", "content", "reports", "stores", "system"], "parentMenu must be a known Commerce Admin menu ID">, undefined>;
|
|
1598
1911
|
readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
|
|
1599
1912
|
}, undefined>, undefined>;
|
|
1913
|
+
readonly nativeUi: v.OptionalSchema<v.ObjectSchema<{
|
|
1914
|
+
readonly replacedPages: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
1915
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1916
|
+
readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
|
|
1917
|
+
readonly target: v.PicklistSchema<readonly ["order.create"], `Invalid native UI replaced page target. Accepted values are: ${string}`>;
|
|
1918
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1919
|
+
}, undefined>, undefined>, v.CheckAction<{
|
|
1920
|
+
path: string;
|
|
1921
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
1922
|
+
target: "order.create";
|
|
1923
|
+
title: string;
|
|
1924
|
+
}[], "Native UI replaced page targets must be unique.">]>;
|
|
1925
|
+
}, undefined>, undefined>;
|
|
1600
1926
|
readonly newsletter: v.OptionalSchema<v.ObjectSchema<{
|
|
1601
1927
|
readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
|
|
1602
1928
|
readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|