@retailcrm/embed-ui-v1-endpoint 0.9.21 → 0.9.22-alpha.2
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/README.md +70 -11
- package/bin/embed-ui-v1-endpoint-mcp.mjs +10 -0
- package/bin/embed-ui-v1-endpoint.mjs +416 -0
- package/dist/common/targets.cjs +61 -130
- package/dist/common/targets.d.ts +38 -27
- package/dist/common/targets.documentation.d.ts +302 -0
- package/dist/common/targets.js +61 -130
- package/dist/mcp/server.cjs +115 -0
- package/dist/mcp/server.d.ts +3 -0
- package/dist/mcp/server.js +97 -0
- package/dist/meta.json +618 -0
- package/docs/README.md +8 -6
- package/docs/create-endpoint.md +8 -10
- package/docs/define-page-runner.md +3 -3
- package/docs/define-widget-runner.md +2 -2
- package/docs/layout.md +14 -37
- package/docs/menu-placements.md +11 -13
- package/docs/page-routes.md +12 -14
- package/docs/run-endpoint.md +4 -4
- package/docs/targets/customer-card-communications-after.yml +48 -0
- package/docs/targets/customer-card-inwork-after.yml +48 -0
- package/docs/targets/customer-card-inwork-before.yml +48 -0
- package/docs/targets/customer-card-phone.yml +49 -0
- package/docs/targets/order-card-comment-manager-before.yml +51 -0
- package/docs/targets/order-card-common-after.yml +51 -0
- package/docs/targets/order-card-common-before.yml +51 -0
- package/docs/targets/order-card-customer-after.yml +51 -0
- package/docs/targets/order-card-customer-before.yml +51 -0
- package/docs/targets/order-card-customer-email.yml +51 -0
- package/docs/targets/order-card-customer-phone.yml +51 -0
- package/docs/targets/order-card-delivery-address.yml +51 -0
- package/docs/targets/order-card-delivery-after.yml +51 -0
- package/docs/targets/order-card-delivery-before.yml +51 -0
- package/docs/targets/order-card-dimensions-before.yml +51 -0
- package/docs/targets/order-card-list-after.yml +51 -0
- package/docs/targets/order-card-list-before.yml +51 -0
- package/docs/targets/order-card-payment-before.yml +51 -0
- package/docs/targets/order-card-store-before.yml +51 -0
- package/docs/targets/order-mg-delivery-after.yml +51 -0
- package/docs/targets/order-mg-delivery-before.yml +51 -0
- package/docs/targets/order-mg-list-after.yml +51 -0
- package/docs/targets/order-mg-list-before.yml +51 -0
- package/docs/targets/order-mg-payment-after.yml +51 -0
- package/docs/targets/order-mg-payment-before.yml +51 -0
- package/docs/targets.md +42 -17
- package/package.json +27 -7
package/dist/common/targets.cjs
CHANGED
|
@@ -1,142 +1,73 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"customer/card",
|
|
21
|
-
"user/current",
|
|
22
|
-
"settings"
|
|
23
|
-
]),
|
|
24
|
-
"customer/card:inWork.after": defineTarget("customer/card:inWork.after", [
|
|
3
|
+
const isTargetConfig = (configOrContexts) => !Array.isArray(configOrContexts);
|
|
4
|
+
function defineTarget(id, configOrContexts) {
|
|
5
|
+
if (isTargetConfig(configOrContexts)) {
|
|
6
|
+
return {
|
|
7
|
+
id,
|
|
8
|
+
...configOrContexts
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
id,
|
|
13
|
+
contexts: configOrContexts,
|
|
14
|
+
customContexts: [],
|
|
15
|
+
actions: []
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const customerCardTarget = {
|
|
19
|
+
contexts: [
|
|
25
20
|
"customer/card",
|
|
26
21
|
"user/current",
|
|
27
22
|
"settings"
|
|
28
|
-
]
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"order/card:common.after": defineTarget("order/card:common.after", [
|
|
35
|
-
"order/card",
|
|
36
|
-
"user/current",
|
|
37
|
-
"settings"
|
|
38
|
-
]),
|
|
39
|
-
"order/card:customer.before": defineTarget("order/card:customer.before", [
|
|
40
|
-
"order/card",
|
|
41
|
-
"user/current",
|
|
42
|
-
"settings"
|
|
43
|
-
]),
|
|
44
|
-
"order/card:customer.after": defineTarget("order/card:customer.after", [
|
|
45
|
-
"order/card",
|
|
46
|
-
"user/current",
|
|
47
|
-
"settings"
|
|
48
|
-
]),
|
|
49
|
-
"order/card:customer.email": defineTarget("order/card:customer.email", [
|
|
50
|
-
"order/card",
|
|
51
|
-
"user/current",
|
|
52
|
-
"settings"
|
|
53
|
-
]),
|
|
54
|
-
"order/card:customer.phone": defineTarget("order/card:customer.phone", [
|
|
55
|
-
"order/card",
|
|
56
|
-
"user/current",
|
|
57
|
-
"settings"
|
|
58
|
-
]),
|
|
59
|
-
"order/card:list.before": defineTarget("order/card:list.before", [
|
|
60
|
-
"order/card",
|
|
61
|
-
"user/current",
|
|
62
|
-
"settings"
|
|
63
|
-
]),
|
|
64
|
-
"order/card:list.after": defineTarget("order/card:list.after", [
|
|
65
|
-
"order/card",
|
|
66
|
-
"user/current",
|
|
67
|
-
"settings"
|
|
68
|
-
]),
|
|
69
|
-
"order/card:store.before": defineTarget("order/card:store.before", [
|
|
70
|
-
"order/card",
|
|
71
|
-
"user/current",
|
|
72
|
-
"settings"
|
|
73
|
-
]),
|
|
74
|
-
"order/card:dimensions.before": defineTarget("order/card:dimensions.before", [
|
|
75
|
-
"order/card",
|
|
76
|
-
"user/current",
|
|
77
|
-
"settings"
|
|
78
|
-
]),
|
|
79
|
-
"order/card:delivery.before": defineTarget("order/card:delivery.before", [
|
|
80
|
-
"order/card",
|
|
81
|
-
"user/current",
|
|
82
|
-
"settings"
|
|
83
|
-
]),
|
|
84
|
-
"order/card:delivery.after": defineTarget("order/card:delivery.after", [
|
|
85
|
-
"order/card",
|
|
86
|
-
"user/current",
|
|
87
|
-
"settings"
|
|
88
|
-
]),
|
|
89
|
-
"order/card:delivery.address": defineTarget("order/card:delivery.address", [
|
|
90
|
-
"order/card",
|
|
91
|
-
"user/current",
|
|
92
|
-
"settings"
|
|
93
|
-
]),
|
|
94
|
-
"order/card:payment.before": defineTarget("order/card:payment.before", [
|
|
95
|
-
"order/card",
|
|
96
|
-
"user/current",
|
|
97
|
-
"settings"
|
|
98
|
-
]),
|
|
99
|
-
"order/card:comment.manager.before": defineTarget("order/card:comment.manager.before", [
|
|
100
|
-
"order/card",
|
|
101
|
-
"user/current",
|
|
102
|
-
"settings"
|
|
103
|
-
]),
|
|
104
|
-
"order/mg:list.before": defineTarget("order/mg:list.before", [
|
|
105
|
-
"order/card",
|
|
106
|
-
"order/card:settings",
|
|
107
|
-
"user/current",
|
|
108
|
-
"settings"
|
|
109
|
-
]),
|
|
110
|
-
"order/mg:list.after": defineTarget("order/mg:list.after", [
|
|
111
|
-
"order/card",
|
|
112
|
-
"order/card:settings",
|
|
113
|
-
"user/current",
|
|
114
|
-
"settings"
|
|
115
|
-
]),
|
|
116
|
-
"order/mg:delivery.before": defineTarget("order/mg:delivery.before", [
|
|
117
|
-
"order/card",
|
|
118
|
-
"order/card:settings",
|
|
119
|
-
"user/current",
|
|
120
|
-
"settings"
|
|
121
|
-
]),
|
|
122
|
-
"order/mg:delivery.after": defineTarget("order/mg:delivery.after", [
|
|
123
|
-
"order/card",
|
|
124
|
-
"order/card:settings",
|
|
125
|
-
"user/current",
|
|
126
|
-
"settings"
|
|
127
|
-
]),
|
|
128
|
-
"order/mg:payment.before": defineTarget("order/mg:payment.before", [
|
|
129
|
-
"order/card",
|
|
130
|
-
"order/card:settings",
|
|
131
|
-
"user/current",
|
|
132
|
-
"settings"
|
|
133
|
-
]),
|
|
134
|
-
"order/mg:payment.after": defineTarget("order/mg:payment.after", [
|
|
23
|
+
],
|
|
24
|
+
customContexts: ["customer"],
|
|
25
|
+
actions: []
|
|
26
|
+
};
|
|
27
|
+
const orderFormTarget = {
|
|
28
|
+
contexts: [
|
|
135
29
|
"order/card",
|
|
136
30
|
"order/card:settings",
|
|
137
31
|
"user/current",
|
|
138
32
|
"settings"
|
|
139
|
-
]
|
|
33
|
+
],
|
|
34
|
+
customContexts: ["order"],
|
|
35
|
+
actions: ["order/card"]
|
|
36
|
+
};
|
|
37
|
+
const targets = {
|
|
38
|
+
"customer/card:phone": defineTarget("customer/card:phone", {
|
|
39
|
+
...customerCardTarget,
|
|
40
|
+
contexts: [
|
|
41
|
+
"customer/card",
|
|
42
|
+
"customer/card:phone",
|
|
43
|
+
"user/current",
|
|
44
|
+
"settings"
|
|
45
|
+
]
|
|
46
|
+
}),
|
|
47
|
+
"customer/card:communications.after": defineTarget("customer/card:communications.after", customerCardTarget),
|
|
48
|
+
"customer/card:inWork.before": defineTarget("customer/card:inWork.before", customerCardTarget),
|
|
49
|
+
"customer/card:inWork.after": defineTarget("customer/card:inWork.after", customerCardTarget),
|
|
50
|
+
"order/card:common.before": defineTarget("order/card:common.before", orderFormTarget),
|
|
51
|
+
"order/card:common.after": defineTarget("order/card:common.after", orderFormTarget),
|
|
52
|
+
"order/card:customer.before": defineTarget("order/card:customer.before", orderFormTarget),
|
|
53
|
+
"order/card:customer.after": defineTarget("order/card:customer.after", orderFormTarget),
|
|
54
|
+
"order/card:customer.email": defineTarget("order/card:customer.email", orderFormTarget),
|
|
55
|
+
"order/card:customer.phone": defineTarget("order/card:customer.phone", orderFormTarget),
|
|
56
|
+
"order/card:list.before": defineTarget("order/card:list.before", orderFormTarget),
|
|
57
|
+
"order/card:list.after": defineTarget("order/card:list.after", orderFormTarget),
|
|
58
|
+
"order/card:store.before": defineTarget("order/card:store.before", orderFormTarget),
|
|
59
|
+
"order/card:dimensions.before": defineTarget("order/card:dimensions.before", orderFormTarget),
|
|
60
|
+
"order/card:delivery.before": defineTarget("order/card:delivery.before", orderFormTarget),
|
|
61
|
+
"order/card:delivery.after": defineTarget("order/card:delivery.after", orderFormTarget),
|
|
62
|
+
"order/card:delivery.address": defineTarget("order/card:delivery.address", orderFormTarget),
|
|
63
|
+
"order/card:payment.before": defineTarget("order/card:payment.before", orderFormTarget),
|
|
64
|
+
"order/card:comment.manager.before": defineTarget("order/card:comment.manager.before", orderFormTarget),
|
|
65
|
+
"order/mg:list.before": defineTarget("order/mg:list.before", orderFormTarget),
|
|
66
|
+
"order/mg:list.after": defineTarget("order/mg:list.after", orderFormTarget),
|
|
67
|
+
"order/mg:delivery.before": defineTarget("order/mg:delivery.before", orderFormTarget),
|
|
68
|
+
"order/mg:delivery.after": defineTarget("order/mg:delivery.after", orderFormTarget),
|
|
69
|
+
"order/mg:payment.before": defineTarget("order/mg:payment.before", orderFormTarget),
|
|
70
|
+
"order/mg:payment.after": defineTarget("order/mg:payment.after", orderFormTarget)
|
|
140
71
|
};
|
|
141
72
|
exports.defineTarget = defineTarget;
|
|
142
73
|
exports.targets = targets;
|
package/dist/common/targets.d.ts
CHANGED
|
@@ -1,34 +1,45 @@
|
|
|
1
1
|
import { SchemaList } from '@retailcrm/embed-ui-v1-contexts/types';
|
|
2
|
-
export type TargetDefinition<TId extends string = string, TContexts extends readonly (keyof SchemaList)[] = readonly (keyof SchemaList)[]> = {
|
|
2
|
+
export type TargetDefinition<TId extends string = string, TContexts extends readonly (keyof SchemaList)[] = readonly (keyof SchemaList)[], TCustomContexts extends readonly string[] = readonly string[], TActions extends readonly string[] = readonly string[]> = {
|
|
3
3
|
id: TId;
|
|
4
4
|
contexts: TContexts;
|
|
5
|
+
customContexts: TCustomContexts;
|
|
6
|
+
actions: TActions;
|
|
5
7
|
};
|
|
6
|
-
export
|
|
8
|
+
export type TargetConfig<TContexts extends readonly (keyof SchemaList)[] = readonly (keyof SchemaList)[], TCustomContexts extends readonly string[] = readonly string[], TActions extends readonly string[] = readonly string[]> = {
|
|
9
|
+
contexts: TContexts;
|
|
10
|
+
customContexts: TCustomContexts;
|
|
11
|
+
actions: TActions;
|
|
12
|
+
};
|
|
13
|
+
export declare function defineTarget<const TId extends string, const TContexts extends readonly (keyof SchemaList)[]>(id: TId, contexts: TContexts): TargetDefinition<TId, TContexts, readonly [], readonly []>;
|
|
14
|
+
export declare function defineTarget<const TId extends string, const TContexts extends readonly (keyof SchemaList)[], const TCustomContexts extends readonly string[], const TActions extends readonly string[]>(id: TId, config: TargetConfig<TContexts, TCustomContexts, TActions>): TargetDefinition<TId, TContexts, TCustomContexts, TActions>;
|
|
7
15
|
export declare const targets: {
|
|
8
|
-
readonly 'customer/card:phone': TargetDefinition<"customer/card:phone", readonly ["customer/card", "customer/card:phone", "user/current", "settings"]>;
|
|
9
|
-
readonly 'customer/card:communications.after': TargetDefinition<"customer/card:communications.after", readonly ["customer/card", "user/current", "settings"]>;
|
|
10
|
-
readonly 'customer/card:inWork.before': TargetDefinition<"customer/card:inWork.before", readonly ["customer/card", "user/current", "settings"]>;
|
|
11
|
-
readonly 'customer/card:inWork.after': TargetDefinition<"customer/card:inWork.after", readonly ["customer/card", "user/current", "settings"]>;
|
|
12
|
-
readonly 'order/card:common.before': TargetDefinition<"order/card:common.before", readonly ["order/card", "user/current", "settings"]>;
|
|
13
|
-
readonly 'order/card:common.after': TargetDefinition<"order/card:common.after", readonly ["order/card", "user/current", "settings"]>;
|
|
14
|
-
readonly 'order/card:customer.before': TargetDefinition<"order/card:customer.before", readonly ["order/card", "user/current", "settings"]>;
|
|
15
|
-
readonly 'order/card:customer.after': TargetDefinition<"order/card:customer.after", readonly ["order/card", "user/current", "settings"]>;
|
|
16
|
-
readonly 'order/card:customer.email': TargetDefinition<"order/card:customer.email", readonly ["order/card", "user/current", "settings"]>;
|
|
17
|
-
readonly 'order/card:customer.phone': TargetDefinition<"order/card:customer.phone", readonly ["order/card", "user/current", "settings"]>;
|
|
18
|
-
readonly 'order/card:list.before': TargetDefinition<"order/card:list.before", readonly ["order/card", "user/current", "settings"]>;
|
|
19
|
-
readonly 'order/card:list.after': TargetDefinition<"order/card:list.after", readonly ["order/card", "user/current", "settings"]>;
|
|
20
|
-
readonly 'order/card:store.before': TargetDefinition<"order/card:store.before", readonly ["order/card", "user/current", "settings"]>;
|
|
21
|
-
readonly 'order/card:dimensions.before': TargetDefinition<"order/card:dimensions.before", readonly ["order/card", "user/current", "settings"]>;
|
|
22
|
-
readonly 'order/card:delivery.before': TargetDefinition<"order/card:delivery.before", readonly ["order/card", "user/current", "settings"]>;
|
|
23
|
-
readonly 'order/card:delivery.after': TargetDefinition<"order/card:delivery.after", readonly ["order/card", "user/current", "settings"]>;
|
|
24
|
-
readonly 'order/card:delivery.address': TargetDefinition<"order/card:delivery.address", readonly ["order/card", "user/current", "settings"]>;
|
|
25
|
-
readonly 'order/card:payment.before': TargetDefinition<"order/card:payment.before", readonly ["order/card", "user/current", "settings"]>;
|
|
26
|
-
readonly 'order/card:comment.manager.before': TargetDefinition<"order/card:comment.manager.before", readonly ["order/card", "user/current", "settings"]>;
|
|
27
|
-
readonly 'order/mg:list.before': TargetDefinition<"order/mg:list.before", readonly ["order/card", "order/card:settings", "user/current", "settings"]>;
|
|
28
|
-
readonly 'order/mg:list.after': TargetDefinition<"order/mg:list.after", readonly ["order/card", "order/card:settings", "user/current", "settings"]>;
|
|
29
|
-
readonly 'order/mg:delivery.before': TargetDefinition<"order/mg:delivery.before", readonly ["order/card", "order/card:settings", "user/current", "settings"]>;
|
|
30
|
-
readonly 'order/mg:delivery.after': TargetDefinition<"order/mg:delivery.after", readonly ["order/card", "order/card:settings", "user/current", "settings"]>;
|
|
31
|
-
readonly 'order/mg:payment.before': TargetDefinition<"order/mg:payment.before", readonly ["order/card", "order/card:settings", "user/current", "settings"]>;
|
|
32
|
-
readonly 'order/mg:payment.after': TargetDefinition<"order/mg:payment.after", readonly ["order/card", "order/card:settings", "user/current", "settings"]>;
|
|
16
|
+
readonly 'customer/card:phone': TargetDefinition<"customer/card:phone", readonly ["customer/card", "customer/card:phone", "user/current", "settings"], readonly ["customer"], readonly []>;
|
|
17
|
+
readonly 'customer/card:communications.after': TargetDefinition<"customer/card:communications.after", readonly ["customer/card", "user/current", "settings"], readonly ["customer"], readonly []>;
|
|
18
|
+
readonly 'customer/card:inWork.before': TargetDefinition<"customer/card:inWork.before", readonly ["customer/card", "user/current", "settings"], readonly ["customer"], readonly []>;
|
|
19
|
+
readonly 'customer/card:inWork.after': TargetDefinition<"customer/card:inWork.after", readonly ["customer/card", "user/current", "settings"], readonly ["customer"], readonly []>;
|
|
20
|
+
readonly 'order/card:common.before': TargetDefinition<"order/card:common.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
21
|
+
readonly 'order/card:common.after': TargetDefinition<"order/card:common.after", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
22
|
+
readonly 'order/card:customer.before': TargetDefinition<"order/card:customer.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
23
|
+
readonly 'order/card:customer.after': TargetDefinition<"order/card:customer.after", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
24
|
+
readonly 'order/card:customer.email': TargetDefinition<"order/card:customer.email", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
25
|
+
readonly 'order/card:customer.phone': TargetDefinition<"order/card:customer.phone", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
26
|
+
readonly 'order/card:list.before': TargetDefinition<"order/card:list.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
27
|
+
readonly 'order/card:list.after': TargetDefinition<"order/card:list.after", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
28
|
+
readonly 'order/card:store.before': TargetDefinition<"order/card:store.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
29
|
+
readonly 'order/card:dimensions.before': TargetDefinition<"order/card:dimensions.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
30
|
+
readonly 'order/card:delivery.before': TargetDefinition<"order/card:delivery.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
31
|
+
readonly 'order/card:delivery.after': TargetDefinition<"order/card:delivery.after", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
32
|
+
readonly 'order/card:delivery.address': TargetDefinition<"order/card:delivery.address", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
33
|
+
readonly 'order/card:payment.before': TargetDefinition<"order/card:payment.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
34
|
+
readonly 'order/card:comment.manager.before': TargetDefinition<"order/card:comment.manager.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
35
|
+
readonly 'order/mg:list.before': TargetDefinition<"order/mg:list.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
36
|
+
readonly 'order/mg:list.after': TargetDefinition<"order/mg:list.after", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
37
|
+
readonly 'order/mg:delivery.before': TargetDefinition<"order/mg:delivery.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
38
|
+
readonly 'order/mg:delivery.after': TargetDefinition<"order/mg:delivery.after", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
39
|
+
readonly 'order/mg:payment.before': TargetDefinition<"order/mg:payment.before", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
40
|
+
readonly 'order/mg:payment.after': TargetDefinition<"order/mg:payment.after", readonly ["order/card", "order/card:settings", "user/current", "settings"], readonly ["order"], readonly ["order/card"]>;
|
|
33
41
|
};
|
|
34
42
|
export type TargetName = keyof typeof targets;
|
|
43
|
+
export type TargetList = {
|
|
44
|
+
[Target in TargetName]: Pick<SchemaList, (typeof targets)[Target]['contexts'][number]>;
|
|
45
|
+
};
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
export declare const targetsDocumentation: {
|
|
2
|
+
'customer/card:phone': {
|
|
3
|
+
description: {
|
|
4
|
+
'en-GB': string;
|
|
5
|
+
'es-ES': string;
|
|
6
|
+
'ru-RU': string;
|
|
7
|
+
};
|
|
8
|
+
location: {
|
|
9
|
+
'en-GB': string;
|
|
10
|
+
'es-ES': string;
|
|
11
|
+
'ru-RU': string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
'customer/card:communications.after': {
|
|
15
|
+
description: {
|
|
16
|
+
'en-GB': string;
|
|
17
|
+
'es-ES': string;
|
|
18
|
+
'ru-RU': string;
|
|
19
|
+
};
|
|
20
|
+
location: {
|
|
21
|
+
'en-GB': string;
|
|
22
|
+
'es-ES': string;
|
|
23
|
+
'ru-RU': string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
'customer/card:inWork.before': {
|
|
27
|
+
description: {
|
|
28
|
+
'en-GB': string;
|
|
29
|
+
'es-ES': string;
|
|
30
|
+
'ru-RU': string;
|
|
31
|
+
};
|
|
32
|
+
location: {
|
|
33
|
+
'en-GB': string;
|
|
34
|
+
'es-ES': string;
|
|
35
|
+
'ru-RU': string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
'customer/card:inWork.after': {
|
|
39
|
+
description: {
|
|
40
|
+
'en-GB': string;
|
|
41
|
+
'es-ES': string;
|
|
42
|
+
'ru-RU': string;
|
|
43
|
+
};
|
|
44
|
+
location: {
|
|
45
|
+
'en-GB': string;
|
|
46
|
+
'es-ES': string;
|
|
47
|
+
'ru-RU': string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
'order/card:common.before': {
|
|
51
|
+
description: {
|
|
52
|
+
'en-GB': string;
|
|
53
|
+
'es-ES': string;
|
|
54
|
+
'ru-RU': string;
|
|
55
|
+
};
|
|
56
|
+
location: {
|
|
57
|
+
'en-GB': string;
|
|
58
|
+
'es-ES': string;
|
|
59
|
+
'ru-RU': string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
'order/card:common.after': {
|
|
63
|
+
description: {
|
|
64
|
+
'en-GB': string;
|
|
65
|
+
'es-ES': string;
|
|
66
|
+
'ru-RU': string;
|
|
67
|
+
};
|
|
68
|
+
location: {
|
|
69
|
+
'en-GB': string;
|
|
70
|
+
'es-ES': string;
|
|
71
|
+
'ru-RU': string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
'order/card:customer.before': {
|
|
75
|
+
description: {
|
|
76
|
+
'en-GB': string;
|
|
77
|
+
'es-ES': string;
|
|
78
|
+
'ru-RU': string;
|
|
79
|
+
};
|
|
80
|
+
location: {
|
|
81
|
+
'en-GB': string;
|
|
82
|
+
'es-ES': string;
|
|
83
|
+
'ru-RU': string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
'order/card:customer.after': {
|
|
87
|
+
description: {
|
|
88
|
+
'en-GB': string;
|
|
89
|
+
'es-ES': string;
|
|
90
|
+
'ru-RU': string;
|
|
91
|
+
};
|
|
92
|
+
location: {
|
|
93
|
+
'en-GB': string;
|
|
94
|
+
'es-ES': string;
|
|
95
|
+
'ru-RU': string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
'order/card:customer.email': {
|
|
99
|
+
description: {
|
|
100
|
+
'en-GB': string;
|
|
101
|
+
'es-ES': string;
|
|
102
|
+
'ru-RU': string;
|
|
103
|
+
};
|
|
104
|
+
location: {
|
|
105
|
+
'en-GB': string;
|
|
106
|
+
'es-ES': string;
|
|
107
|
+
'ru-RU': string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
'order/card:customer.phone': {
|
|
111
|
+
description: {
|
|
112
|
+
'en-GB': string;
|
|
113
|
+
'es-ES': string;
|
|
114
|
+
'ru-RU': string;
|
|
115
|
+
};
|
|
116
|
+
location: {
|
|
117
|
+
'en-GB': string;
|
|
118
|
+
'es-ES': string;
|
|
119
|
+
'ru-RU': string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
'order/card:list.before': {
|
|
123
|
+
description: {
|
|
124
|
+
'en-GB': string;
|
|
125
|
+
'es-ES': string;
|
|
126
|
+
'ru-RU': string;
|
|
127
|
+
};
|
|
128
|
+
location: {
|
|
129
|
+
'en-GB': string;
|
|
130
|
+
'es-ES': string;
|
|
131
|
+
'ru-RU': string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
'order/card:list.after': {
|
|
135
|
+
description: {
|
|
136
|
+
'en-GB': string;
|
|
137
|
+
'es-ES': string;
|
|
138
|
+
'ru-RU': string;
|
|
139
|
+
};
|
|
140
|
+
location: {
|
|
141
|
+
'en-GB': string;
|
|
142
|
+
'es-ES': string;
|
|
143
|
+
'ru-RU': string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
'order/card:store.before': {
|
|
147
|
+
description: {
|
|
148
|
+
'en-GB': string;
|
|
149
|
+
'es-ES': string;
|
|
150
|
+
'ru-RU': string;
|
|
151
|
+
};
|
|
152
|
+
location: {
|
|
153
|
+
'en-GB': string;
|
|
154
|
+
'es-ES': string;
|
|
155
|
+
'ru-RU': string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
'order/card:dimensions.before': {
|
|
159
|
+
description: {
|
|
160
|
+
'en-GB': string;
|
|
161
|
+
'es-ES': string;
|
|
162
|
+
'ru-RU': string;
|
|
163
|
+
};
|
|
164
|
+
location: {
|
|
165
|
+
'en-GB': string;
|
|
166
|
+
'es-ES': string;
|
|
167
|
+
'ru-RU': string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
'order/card:delivery.before': {
|
|
171
|
+
description: {
|
|
172
|
+
'en-GB': string;
|
|
173
|
+
'es-ES': string;
|
|
174
|
+
'ru-RU': string;
|
|
175
|
+
};
|
|
176
|
+
location: {
|
|
177
|
+
'en-GB': string;
|
|
178
|
+
'es-ES': string;
|
|
179
|
+
'ru-RU': string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
'order/card:delivery.after': {
|
|
183
|
+
description: {
|
|
184
|
+
'en-GB': string;
|
|
185
|
+
'es-ES': string;
|
|
186
|
+
'ru-RU': string;
|
|
187
|
+
};
|
|
188
|
+
location: {
|
|
189
|
+
'en-GB': string;
|
|
190
|
+
'es-ES': string;
|
|
191
|
+
'ru-RU': string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
'order/card:delivery.address': {
|
|
195
|
+
description: {
|
|
196
|
+
'en-GB': string;
|
|
197
|
+
'es-ES': string;
|
|
198
|
+
'ru-RU': string;
|
|
199
|
+
};
|
|
200
|
+
location: {
|
|
201
|
+
'en-GB': string;
|
|
202
|
+
'es-ES': string;
|
|
203
|
+
'ru-RU': string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
'order/card:payment.before': {
|
|
207
|
+
description: {
|
|
208
|
+
'en-GB': string;
|
|
209
|
+
'es-ES': string;
|
|
210
|
+
'ru-RU': string;
|
|
211
|
+
};
|
|
212
|
+
location: {
|
|
213
|
+
'en-GB': string;
|
|
214
|
+
'es-ES': string;
|
|
215
|
+
'ru-RU': string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
'order/card:comment.manager.before': {
|
|
219
|
+
description: {
|
|
220
|
+
'en-GB': string;
|
|
221
|
+
'es-ES': string;
|
|
222
|
+
'ru-RU': string;
|
|
223
|
+
};
|
|
224
|
+
location: {
|
|
225
|
+
'en-GB': string;
|
|
226
|
+
'es-ES': string;
|
|
227
|
+
'ru-RU': string;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
'order/mg:list.before': {
|
|
231
|
+
description: {
|
|
232
|
+
'en-GB': string;
|
|
233
|
+
'es-ES': string;
|
|
234
|
+
'ru-RU': string;
|
|
235
|
+
};
|
|
236
|
+
location: {
|
|
237
|
+
'en-GB': string;
|
|
238
|
+
'es-ES': string;
|
|
239
|
+
'ru-RU': string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
'order/mg:list.after': {
|
|
243
|
+
description: {
|
|
244
|
+
'en-GB': string;
|
|
245
|
+
'es-ES': string;
|
|
246
|
+
'ru-RU': string;
|
|
247
|
+
};
|
|
248
|
+
location: {
|
|
249
|
+
'en-GB': string;
|
|
250
|
+
'es-ES': string;
|
|
251
|
+
'ru-RU': string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
'order/mg:delivery.before': {
|
|
255
|
+
description: {
|
|
256
|
+
'en-GB': string;
|
|
257
|
+
'es-ES': string;
|
|
258
|
+
'ru-RU': string;
|
|
259
|
+
};
|
|
260
|
+
location: {
|
|
261
|
+
'en-GB': string;
|
|
262
|
+
'es-ES': string;
|
|
263
|
+
'ru-RU': string;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
'order/mg:delivery.after': {
|
|
267
|
+
description: {
|
|
268
|
+
'en-GB': string;
|
|
269
|
+
'es-ES': string;
|
|
270
|
+
'ru-RU': string;
|
|
271
|
+
};
|
|
272
|
+
location: {
|
|
273
|
+
'en-GB': string;
|
|
274
|
+
'es-ES': string;
|
|
275
|
+
'ru-RU': string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
'order/mg:payment.before': {
|
|
279
|
+
description: {
|
|
280
|
+
'en-GB': string;
|
|
281
|
+
'es-ES': string;
|
|
282
|
+
'ru-RU': string;
|
|
283
|
+
};
|
|
284
|
+
location: {
|
|
285
|
+
'en-GB': string;
|
|
286
|
+
'es-ES': string;
|
|
287
|
+
'ru-RU': string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
'order/mg:payment.after': {
|
|
291
|
+
description: {
|
|
292
|
+
'en-GB': string;
|
|
293
|
+
'es-ES': string;
|
|
294
|
+
'ru-RU': string;
|
|
295
|
+
};
|
|
296
|
+
location: {
|
|
297
|
+
'en-GB': string;
|
|
298
|
+
'es-ES': string;
|
|
299
|
+
'ru-RU': string;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|