@unchainedshop/api 4.3.5 → 4.3.6
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/lib/chat/generateImageHandler.js +1 -1
- package/lib/chat/generateImageHandler.js.map +1 -1
- package/lib/chat/utils.js +1 -1
- package/lib/chat/utils.js.map +1 -1
- package/lib/express/chatHandler.d.ts.map +1 -1
- package/lib/express/chatHandler.js +7 -3
- package/lib/express/chatHandler.js.map +1 -1
- package/lib/express/createMCPMiddleware.d.ts +1 -1
- package/lib/express/createMCPMiddleware.d.ts.map +1 -1
- package/lib/express/createMCPMiddleware.js +21 -4
- package/lib/express/createMCPMiddleware.js.map +1 -1
- package/lib/fastify/chatHandler.d.ts.map +1 -1
- package/lib/fastify/chatHandler.js +7 -3
- package/lib/fastify/chatHandler.js.map +1 -1
- package/lib/fastify/index.d.ts.map +1 -1
- package/lib/fastify/index.js +1 -4
- package/lib/fastify/index.js.map +1 -1
- package/lib/fastify/mcpHandler.d.ts +1 -1
- package/lib/fastify/mcpHandler.d.ts.map +1 -1
- package/lib/fastify/mcpHandler.js +20 -5
- package/lib/fastify/mcpHandler.js.map +1 -1
- package/lib/mcp/index.d.ts +2 -2
- package/lib/mcp/index.d.ts.map +1 -1
- package/lib/mcp/index.js +1 -6
- package/lib/mcp/index.js.map +1 -1
- package/lib/mcp/resources/localization.d.ts +2 -2
- package/lib/mcp/resources/localization.d.ts.map +1 -1
- package/lib/mcp/tools/assortment/index.d.ts +2 -2
- package/lib/mcp/tools/assortment/index.d.ts.map +1 -1
- package/lib/mcp/tools/assortment/schemas.d.ts +167 -724
- package/lib/mcp/tools/assortment/schemas.d.ts.map +1 -1
- package/lib/mcp/tools/assortment/schemas.js +1 -1
- package/lib/mcp/tools/assortment/schemas.js.map +1 -1
- package/lib/mcp/tools/filter/index.d.ts +2 -2
- package/lib/mcp/tools/filter/index.d.ts.map +1 -1
- package/lib/mcp/tools/filter/schemas.d.ts +100 -413
- package/lib/mcp/tools/filter/schemas.d.ts.map +1 -1
- package/lib/mcp/tools/localization/index.d.ts +2 -2
- package/lib/mcp/tools/localization/index.d.ts.map +1 -1
- package/lib/mcp/tools/localization/schemas.d.ts +85 -224
- package/lib/mcp/tools/localization/schemas.d.ts.map +1 -1
- package/lib/mcp/tools/localization/schemas.js +3 -3
- package/lib/mcp/tools/localization/schemas.js.map +1 -1
- package/lib/mcp/tools/order/index.d.ts +1 -1
- package/lib/mcp/tools/order/index.d.ts.map +1 -1
- package/lib/mcp/tools/order/schemas.d.ts +160 -290
- package/lib/mcp/tools/order/schemas.d.ts.map +1 -1
- package/lib/mcp/tools/order/schemas.js +16 -10
- package/lib/mcp/tools/order/schemas.js.map +1 -1
- package/lib/mcp/tools/product/index.d.ts +1 -1
- package/lib/mcp/tools/product/index.d.ts.map +1 -1
- package/lib/mcp/tools/product/schemas.d.ts +373 -2153
- package/lib/mcp/tools/product/schemas.d.ts.map +1 -1
- package/lib/mcp/tools/product/schemas.js +5 -2
- package/lib/mcp/tools/product/schemas.js.map +1 -1
- package/lib/mcp/tools/provider/index.d.ts +1 -1
- package/lib/mcp/tools/provider/index.d.ts.map +1 -1
- package/lib/mcp/tools/provider/schemas.d.ts +193 -194
- package/lib/mcp/tools/provider/schemas.d.ts.map +1 -1
- package/lib/mcp/tools/provider/schemas.js +4 -4
- package/lib/mcp/tools/provider/schemas.js.map +1 -1
- package/lib/mcp/tools/quotation/index.d.ts +1 -1
- package/lib/mcp/tools/quotation/index.d.ts.map +1 -1
- package/lib/mcp/tools/quotation/schemas.d.ts +78 -172
- package/lib/mcp/tools/quotation/schemas.d.ts.map +1 -1
- package/lib/mcp/tools/quotation/schemas.js +4 -4
- package/lib/mcp/tools/quotation/schemas.js.map +1 -1
- package/lib/mcp/tools/system/index.d.ts +1 -1
- package/lib/mcp/tools/system/index.d.ts.map +1 -1
- package/lib/mcp/tools/system/schemas.d.ts +96 -346
- package/lib/mcp/tools/system/schemas.d.ts.map +1 -1
- package/lib/mcp/tools/users/index.d.ts +1 -1
- package/lib/mcp/tools/users/index.d.ts.map +1 -1
- package/lib/mcp/tools/users/schemas.d.ts +125 -789
- package/lib/mcp/tools/users/schemas.d.ts.map +1 -1
- package/lib/mcp/utils/sharedSchemas.d.ts +21 -29
- package/lib/mcp/utils/sharedSchemas.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/verifyWeb3Address.js.map +1 -1
- package/package.json +6 -6
- package/src/chat/generateImageHandler.ts +1 -1
- package/src/chat/utils.ts +1 -1
- package/src/express/chatHandler.ts +12 -3
- package/src/express/createMCPMiddleware.ts +36 -8
- package/src/fastify/chatHandler.ts +10 -3
- package/src/fastify/index.ts +2 -4
- package/src/fastify/mcpHandler.ts +33 -9
- package/src/mcp/index.ts +3 -9
- package/src/mcp/resources/localization.ts +2 -2
- package/src/mcp/tools/assortment/index.ts +2 -2
- package/src/mcp/tools/assortment/schemas.ts +1 -1
- package/src/mcp/tools/filter/index.ts +2 -2
- package/src/mcp/tools/localization/index.ts +2 -2
- package/src/mcp/tools/localization/schemas.ts +4 -3
- package/src/mcp/tools/order/index.ts +1 -1
- package/src/mcp/tools/order/schemas.ts +18 -10
- package/src/mcp/tools/product/index.ts +1 -1
- package/src/mcp/tools/product/schemas.ts +5 -2
- package/src/mcp/tools/provider/index.ts +1 -1
- package/src/mcp/tools/provider/schemas.ts +5 -4
- package/src/mcp/tools/quotation/index.ts +1 -1
- package/src/mcp/tools/quotation/schemas.ts +4 -4
- package/src/mcp/tools/system/index.ts +1 -1
- package/src/mcp/tools/users/index.ts +1 -1
- package/src/resolvers/mutations/accounts/verifyWeb3Address.ts +3 -3
- package/lib/express/createApolloMiddleware.d.ts +0 -4
- package/lib/express/createApolloMiddleware.d.ts.map +0 -1
- package/lib/express/createApolloMiddleware.js +0 -36
- package/lib/express/createApolloMiddleware.js.map +0 -1
- package/lib/express/createSingleSignOnMiddleware.d.ts +0 -5
- package/lib/express/createSingleSignOnMiddleware.d.ts.map +0 -1
- package/lib/express/createSingleSignOnMiddleware.js +0 -71
- package/lib/express/createSingleSignOnMiddleware.js.map +0 -1
- package/lib/hashPassword.d.ts +0 -2
- package/lib/hashPassword.d.ts.map +0 -1
- package/lib/hashPassword.js +0 -5
- package/lib/hashPassword.js.map +0 -1
- package/lib/loaders/productLoaderBySKU.d.ts +0 -10
- package/lib/loaders/productLoaderBySKU.d.ts.map +0 -1
- package/lib/loaders/productLoaderBySKU.js +0 -16
- package/lib/loaders/productLoaderBySKU.js.map +0 -1
- package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.d.ts +0 -3
- package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.d.ts.map +0 -1
- package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.js +0 -6
- package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.js.map +0 -1
- package/lib/resolvers/mutations/accounts/disableTOTP.d.ts +0 -6
- package/lib/resolvers/mutations/accounts/disableTOTP.d.ts.map +0 -1
- package/lib/resolvers/mutations/accounts/disableTOTP.js +0 -27
- package/lib/resolvers/mutations/accounts/disableTOTP.js.map +0 -1
- package/lib/resolvers/mutations/accounts/enableTOTP.d.ts +0 -6
- package/lib/resolvers/mutations/accounts/enableTOTP.d.ts.map +0 -1
- package/lib/resolvers/mutations/accounts/enableTOTP.js +0 -20
- package/lib/resolvers/mutations/accounts/enableTOTP.js.map +0 -1
- package/lib/resolvers/mutations/accounts/linkOAuthAccount.d.ts +0 -7
- package/lib/resolvers/mutations/accounts/linkOAuthAccount.d.ts.map +0 -1
- package/lib/resolvers/mutations/accounts/linkOAuthAccount.js +0 -30
- package/lib/resolvers/mutations/accounts/linkOAuthAccount.js.map +0 -1
- package/lib/resolvers/mutations/accounts/loginWithOAuth.d.ts +0 -8
- package/lib/resolvers/mutations/accounts/loginWithOAuth.d.ts.map +0 -1
- package/lib/resolvers/mutations/accounts/loginWithOAuth.js +0 -25
- package/lib/resolvers/mutations/accounts/loginWithOAuth.js.map +0 -1
- package/lib/resolvers/mutations/accounts/logoutAllSessions.d.ts +0 -5
- package/lib/resolvers/mutations/accounts/logoutAllSessions.d.ts.map +0 -1
- package/lib/resolvers/mutations/accounts/logoutAllSessions.js +0 -20
- package/lib/resolvers/mutations/accounts/logoutAllSessions.js.map +0 -1
- package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.d.ts +0 -6
- package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.d.ts.map +0 -1
- package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.js +0 -13
- package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.js.map +0 -1
- package/lib/resolvers/mutations/assortments/addAssortmentMedia.d.ts +0 -6
- package/lib/resolvers/mutations/assortments/addAssortmentMedia.d.ts.map +0 -1
- package/lib/resolvers/mutations/assortments/addAssortmentMedia.js +0 -18
- package/lib/resolvers/mutations/assortments/addAssortmentMedia.js.map +0 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts +0 -6
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts.map +0 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js +0 -26
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js.map +0 -1
- package/lib/resolvers/mutations/products/addProductMedia.d.ts +0 -6
- package/lib/resolvers/mutations/products/addProductMedia.d.ts.map +0 -1
- package/lib/resolvers/mutations/products/addProductMedia.js +0 -18
- package/lib/resolvers/mutations/products/addProductMedia.js.map +0 -1
- package/lib/resolvers/mutations/users/updateUserAvatar.d.ts +0 -6
- package/lib/resolvers/mutations/users/updateUserAvatar.d.ts.map +0 -1
- package/lib/resolvers/mutations/users/updateUserAvatar.js +0 -22
- package/lib/resolvers/mutations/users/updateUserAvatar.js.map +0 -1
- package/lib/resolvers/mutations/utils/getOrderCart.d.ts +0 -7
- package/lib/resolvers/mutations/utils/getOrderCart.d.ts.map +0 -1
- package/lib/resolvers/mutations/utils/getOrderCart.js +0 -13
- package/lib/resolvers/mutations/utils/getOrderCart.js.map +0 -1
- package/lib/resolvers/type/color-types.d.ts +0 -18
- package/lib/resolvers/type/color-types.d.ts.map +0 -1
- package/lib/resolvers/type/color-types.js +0 -31
- package/lib/resolvers/type/color-types.js.map +0 -1
- package/lib/resolvers/type/dispatch-types.d.ts +0 -15
- package/lib/resolvers/type/dispatch-types.d.ts.map +0 -1
- package/lib/resolvers/type/dispatch-types.js +0 -16
- package/lib/resolvers/type/dispatch-types.js.map +0 -1
- package/lib/resolvers/type/oauth-account.d.ts +0 -6
- package/lib/resolvers/type/oauth-account.d.ts.map +0 -1
- package/lib/resolvers/type/oauth-account.js +0 -7
- package/lib/resolvers/type/oauth-account.js.map +0 -1
- package/lib/resolvers/type/oauth-provider.d.ts +0 -6
- package/lib/resolvers/type/oauth-provider.d.ts.map +0 -1
- package/lib/resolvers/type/oauth-provider.js +0 -6
- package/lib/resolvers/type/oauth-provider.js.map +0 -1
- package/lib/resolvers/type/stock-types.d.ts +0 -14
- package/lib/resolvers/type/stock-types.d.ts.map +0 -1
- package/lib/resolvers/type/stock-types.js +0 -15
- package/lib/resolvers/type/stock-types.js.map +0 -1
- package/lib/user-context.d.ts +0 -7
- package/lib/user-context.d.ts.map +0 -1
- package/lib/user-context.js +0 -76
- package/lib/user-context.js.map +0 -1
|
@@ -1,70 +1,39 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { SortDirection } from '@unchainedshop/utils';
|
|
3
3
|
export declare const sortDirectionKeys: [keyof typeof SortDirection, ...(keyof typeof SortDirection)[]];
|
|
4
|
-
export declare const LocalizationTypeEnum: z.ZodEnum<
|
|
4
|
+
export declare const LocalizationTypeEnum: z.ZodEnum<{
|
|
5
|
+
COUNTRY: "COUNTRY";
|
|
6
|
+
CURRENCY: "CURRENCY";
|
|
7
|
+
LANGUAGE: "LANGUAGE";
|
|
8
|
+
}>;
|
|
5
9
|
export declare const LocalizationEntitySchema: z.ZodObject<{
|
|
6
10
|
isoCode: z.ZodOptional<z.ZodString>;
|
|
7
11
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
8
12
|
defaultCurrencyCode: z.ZodOptional<z.ZodString>;
|
|
9
13
|
contractAddress: z.ZodOptional<z.ZodString>;
|
|
10
14
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
},
|
|
12
|
-
isActive?: boolean | undefined;
|
|
13
|
-
isoCode?: string | undefined;
|
|
14
|
-
defaultCurrencyCode?: string | undefined;
|
|
15
|
-
contractAddress?: string | undefined;
|
|
16
|
-
decimals?: number | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
isActive?: boolean | undefined;
|
|
19
|
-
isoCode?: string | undefined;
|
|
20
|
-
defaultCurrencyCode?: string | undefined;
|
|
21
|
-
contractAddress?: string | undefined;
|
|
22
|
-
decimals?: number | undefined;
|
|
23
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
24
16
|
export declare const actionValidators: {
|
|
25
17
|
readonly CREATE: z.ZodObject<{
|
|
26
|
-
localizationType: z.ZodEnum<
|
|
18
|
+
localizationType: z.ZodEnum<{
|
|
19
|
+
COUNTRY: "COUNTRY";
|
|
20
|
+
CURRENCY: "CURRENCY";
|
|
21
|
+
LANGUAGE: "LANGUAGE";
|
|
22
|
+
}>;
|
|
27
23
|
entity: z.ZodObject<{
|
|
28
24
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
29
25
|
defaultCurrencyCode: z.ZodOptional<z.ZodString>;
|
|
30
26
|
contractAddress: z.ZodOptional<z.ZodString>;
|
|
31
27
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
32
|
-
} & {
|
|
33
28
|
isoCode: z.ZodString;
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
isActive?: boolean | undefined;
|
|
37
|
-
defaultCurrencyCode?: string | undefined;
|
|
38
|
-
contractAddress?: string | undefined;
|
|
39
|
-
decimals?: number | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
isoCode: string;
|
|
42
|
-
isActive?: boolean | undefined;
|
|
43
|
-
defaultCurrencyCode?: string | undefined;
|
|
44
|
-
contractAddress?: string | undefined;
|
|
45
|
-
decimals?: number | undefined;
|
|
46
|
-
}>;
|
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
49
|
-
entity: {
|
|
50
|
-
isoCode: string;
|
|
51
|
-
isActive?: boolean | undefined;
|
|
52
|
-
defaultCurrencyCode?: string | undefined;
|
|
53
|
-
contractAddress?: string | undefined;
|
|
54
|
-
decimals?: number | undefined;
|
|
55
|
-
};
|
|
56
|
-
}, {
|
|
57
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
58
|
-
entity: {
|
|
59
|
-
isoCode: string;
|
|
60
|
-
isActive?: boolean | undefined;
|
|
61
|
-
defaultCurrencyCode?: string | undefined;
|
|
62
|
-
contractAddress?: string | undefined;
|
|
63
|
-
decimals?: number | undefined;
|
|
64
|
-
};
|
|
65
|
-
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
}, z.core.$strip>;
|
|
66
31
|
readonly UPDATE: z.ZodObject<{
|
|
67
|
-
localizationType: z.ZodEnum<
|
|
32
|
+
localizationType: z.ZodEnum<{
|
|
33
|
+
COUNTRY: "COUNTRY";
|
|
34
|
+
CURRENCY: "CURRENCY";
|
|
35
|
+
LANGUAGE: "LANGUAGE";
|
|
36
|
+
}>;
|
|
68
37
|
entityId: z.ZodString;
|
|
69
38
|
entity: z.ZodObject<{
|
|
70
39
|
isoCode: z.ZodOptional<z.ZodString>;
|
|
@@ -72,147 +41,82 @@ export declare const actionValidators: {
|
|
|
72
41
|
defaultCurrencyCode: z.ZodOptional<z.ZodString>;
|
|
73
42
|
contractAddress: z.ZodOptional<z.ZodString>;
|
|
74
43
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
isoCode?: string | undefined;
|
|
78
|
-
defaultCurrencyCode?: string | undefined;
|
|
79
|
-
contractAddress?: string | undefined;
|
|
80
|
-
decimals?: number | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
isActive?: boolean | undefined;
|
|
83
|
-
isoCode?: string | undefined;
|
|
84
|
-
defaultCurrencyCode?: string | undefined;
|
|
85
|
-
contractAddress?: string | undefined;
|
|
86
|
-
decimals?: number | undefined;
|
|
87
|
-
}>;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
90
|
-
entity: {
|
|
91
|
-
isActive?: boolean | undefined;
|
|
92
|
-
isoCode?: string | undefined;
|
|
93
|
-
defaultCurrencyCode?: string | undefined;
|
|
94
|
-
contractAddress?: string | undefined;
|
|
95
|
-
decimals?: number | undefined;
|
|
96
|
-
};
|
|
97
|
-
entityId: string;
|
|
98
|
-
}, {
|
|
99
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
100
|
-
entity: {
|
|
101
|
-
isActive?: boolean | undefined;
|
|
102
|
-
isoCode?: string | undefined;
|
|
103
|
-
defaultCurrencyCode?: string | undefined;
|
|
104
|
-
contractAddress?: string | undefined;
|
|
105
|
-
decimals?: number | undefined;
|
|
106
|
-
};
|
|
107
|
-
entityId: string;
|
|
108
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
}, z.core.$strip>;
|
|
109
46
|
readonly REMOVE: z.ZodObject<{
|
|
110
|
-
localizationType: z.ZodEnum<
|
|
47
|
+
localizationType: z.ZodEnum<{
|
|
48
|
+
COUNTRY: "COUNTRY";
|
|
49
|
+
CURRENCY: "CURRENCY";
|
|
50
|
+
LANGUAGE: "LANGUAGE";
|
|
51
|
+
}>;
|
|
111
52
|
entityId: z.ZodString;
|
|
112
|
-
},
|
|
113
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
114
|
-
entityId: string;
|
|
115
|
-
}, {
|
|
116
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
117
|
-
entityId: string;
|
|
118
|
-
}>;
|
|
53
|
+
}, z.core.$strip>;
|
|
119
54
|
readonly GET: z.ZodObject<{
|
|
120
|
-
localizationType: z.ZodEnum<
|
|
55
|
+
localizationType: z.ZodEnum<{
|
|
56
|
+
COUNTRY: "COUNTRY";
|
|
57
|
+
CURRENCY: "CURRENCY";
|
|
58
|
+
LANGUAGE: "LANGUAGE";
|
|
59
|
+
}>;
|
|
121
60
|
entityId: z.ZodString;
|
|
122
|
-
},
|
|
123
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
124
|
-
entityId: string;
|
|
125
|
-
}, {
|
|
126
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
127
|
-
entityId: string;
|
|
128
|
-
}>;
|
|
61
|
+
}, z.core.$strip>;
|
|
129
62
|
readonly LIST: z.ZodObject<{
|
|
130
63
|
queryString: z.ZodOptional<z.ZodString>;
|
|
131
64
|
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
132
65
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
133
66
|
key: z.ZodString;
|
|
134
|
-
value: z.ZodEnum<
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}, {
|
|
139
|
-
key: string;
|
|
140
|
-
value: string;
|
|
141
|
-
}>, "many">>;
|
|
67
|
+
value: z.ZodEnum<{
|
|
68
|
+
[x: string]: string;
|
|
69
|
+
}>;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
142
71
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
143
72
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
144
|
-
localizationType: z.ZodEnum<
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
value: string;
|
|
151
|
-
}[] | undefined;
|
|
152
|
-
queryString?: string | undefined;
|
|
153
|
-
limit?: number | undefined;
|
|
154
|
-
offset?: number | undefined;
|
|
155
|
-
}, {
|
|
156
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
157
|
-
sort?: {
|
|
158
|
-
key: string;
|
|
159
|
-
value: string;
|
|
160
|
-
}[] | undefined;
|
|
161
|
-
includeInactive?: boolean | undefined;
|
|
162
|
-
queryString?: string | undefined;
|
|
163
|
-
limit?: number | undefined;
|
|
164
|
-
offset?: number | undefined;
|
|
165
|
-
}>;
|
|
73
|
+
localizationType: z.ZodEnum<{
|
|
74
|
+
COUNTRY: "COUNTRY";
|
|
75
|
+
CURRENCY: "CURRENCY";
|
|
76
|
+
LANGUAGE: "LANGUAGE";
|
|
77
|
+
}>;
|
|
78
|
+
}, z.core.$strip>;
|
|
166
79
|
readonly COUNT: z.ZodObject<{
|
|
167
80
|
queryString: z.ZodOptional<z.ZodString>;
|
|
168
81
|
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
169
|
-
localizationType: z.ZodEnum<
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
176
|
-
includeInactive?: boolean | undefined;
|
|
177
|
-
queryString?: string | undefined;
|
|
178
|
-
}>;
|
|
82
|
+
localizationType: z.ZodEnum<{
|
|
83
|
+
COUNTRY: "COUNTRY";
|
|
84
|
+
CURRENCY: "CURRENCY";
|
|
85
|
+
LANGUAGE: "LANGUAGE";
|
|
86
|
+
}>;
|
|
87
|
+
}, z.core.$strip>;
|
|
179
88
|
};
|
|
180
89
|
export declare const LocalizationManagementSchema: {
|
|
181
90
|
queryString: z.ZodOptional<z.ZodString>;
|
|
182
91
|
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
183
92
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
184
93
|
key: z.ZodString;
|
|
185
|
-
value: z.ZodEnum<
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}, {
|
|
190
|
-
key: string;
|
|
191
|
-
value: string;
|
|
192
|
-
}>, "many">>;
|
|
94
|
+
value: z.ZodEnum<{
|
|
95
|
+
[x: string]: string;
|
|
96
|
+
}>;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
193
98
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
194
99
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
195
|
-
action: z.ZodEnum<
|
|
196
|
-
|
|
100
|
+
action: z.ZodEnum<{
|
|
101
|
+
GET: "GET";
|
|
102
|
+
CREATE: "CREATE";
|
|
103
|
+
UPDATE: "UPDATE";
|
|
104
|
+
REMOVE: "REMOVE";
|
|
105
|
+
LIST: "LIST";
|
|
106
|
+
COUNT: "COUNT";
|
|
107
|
+
}>;
|
|
108
|
+
localizationType: z.ZodEnum<{
|
|
109
|
+
COUNTRY: "COUNTRY";
|
|
110
|
+
CURRENCY: "CURRENCY";
|
|
111
|
+
LANGUAGE: "LANGUAGE";
|
|
112
|
+
}>;
|
|
197
113
|
entity: z.ZodOptional<z.ZodObject<{
|
|
198
114
|
isoCode: z.ZodOptional<z.ZodString>;
|
|
199
115
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
200
116
|
defaultCurrencyCode: z.ZodOptional<z.ZodString>;
|
|
201
117
|
contractAddress: z.ZodOptional<z.ZodString>;
|
|
202
118
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
203
|
-
},
|
|
204
|
-
isActive?: boolean | undefined;
|
|
205
|
-
isoCode?: string | undefined;
|
|
206
|
-
defaultCurrencyCode?: string | undefined;
|
|
207
|
-
contractAddress?: string | undefined;
|
|
208
|
-
decimals?: number | undefined;
|
|
209
|
-
}, {
|
|
210
|
-
isActive?: boolean | undefined;
|
|
211
|
-
isoCode?: string | undefined;
|
|
212
|
-
defaultCurrencyCode?: string | undefined;
|
|
213
|
-
contractAddress?: string | undefined;
|
|
214
|
-
decimals?: number | undefined;
|
|
215
|
-
}>>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
216
120
|
entityId: z.ZodOptional<z.ZodString>;
|
|
217
121
|
};
|
|
218
122
|
export declare const LocalizationManagementZodSchema: z.ZodObject<{
|
|
@@ -220,77 +124,34 @@ export declare const LocalizationManagementZodSchema: z.ZodObject<{
|
|
|
220
124
|
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
221
125
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
222
126
|
key: z.ZodString;
|
|
223
|
-
value: z.ZodEnum<
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}, {
|
|
228
|
-
key: string;
|
|
229
|
-
value: string;
|
|
230
|
-
}>, "many">>;
|
|
127
|
+
value: z.ZodEnum<{
|
|
128
|
+
[x: string]: string;
|
|
129
|
+
}>;
|
|
130
|
+
}, z.core.$strip>>>;
|
|
231
131
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
232
132
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
233
|
-
action: z.ZodEnum<
|
|
234
|
-
|
|
133
|
+
action: z.ZodEnum<{
|
|
134
|
+
GET: "GET";
|
|
135
|
+
CREATE: "CREATE";
|
|
136
|
+
UPDATE: "UPDATE";
|
|
137
|
+
REMOVE: "REMOVE";
|
|
138
|
+
LIST: "LIST";
|
|
139
|
+
COUNT: "COUNT";
|
|
140
|
+
}>;
|
|
141
|
+
localizationType: z.ZodEnum<{
|
|
142
|
+
COUNTRY: "COUNTRY";
|
|
143
|
+
CURRENCY: "CURRENCY";
|
|
144
|
+
LANGUAGE: "LANGUAGE";
|
|
145
|
+
}>;
|
|
235
146
|
entity: z.ZodOptional<z.ZodObject<{
|
|
236
147
|
isoCode: z.ZodOptional<z.ZodString>;
|
|
237
148
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
238
149
|
defaultCurrencyCode: z.ZodOptional<z.ZodString>;
|
|
239
150
|
contractAddress: z.ZodOptional<z.ZodString>;
|
|
240
151
|
decimals: z.ZodOptional<z.ZodNumber>;
|
|
241
|
-
},
|
|
242
|
-
isActive?: boolean | undefined;
|
|
243
|
-
isoCode?: string | undefined;
|
|
244
|
-
defaultCurrencyCode?: string | undefined;
|
|
245
|
-
contractAddress?: string | undefined;
|
|
246
|
-
decimals?: number | undefined;
|
|
247
|
-
}, {
|
|
248
|
-
isActive?: boolean | undefined;
|
|
249
|
-
isoCode?: string | undefined;
|
|
250
|
-
defaultCurrencyCode?: string | undefined;
|
|
251
|
-
contractAddress?: string | undefined;
|
|
252
|
-
decimals?: number | undefined;
|
|
253
|
-
}>>;
|
|
152
|
+
}, z.core.$strip>>;
|
|
254
153
|
entityId: z.ZodOptional<z.ZodString>;
|
|
255
|
-
},
|
|
256
|
-
includeInactive: boolean;
|
|
257
|
-
action: "GET" | "CREATE" | "UPDATE" | "REMOVE" | "LIST" | "COUNT";
|
|
258
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
259
|
-
sort?: {
|
|
260
|
-
key: string;
|
|
261
|
-
value: string;
|
|
262
|
-
}[] | undefined;
|
|
263
|
-
queryString?: string | undefined;
|
|
264
|
-
limit?: number | undefined;
|
|
265
|
-
offset?: number | undefined;
|
|
266
|
-
entity?: {
|
|
267
|
-
isActive?: boolean | undefined;
|
|
268
|
-
isoCode?: string | undefined;
|
|
269
|
-
defaultCurrencyCode?: string | undefined;
|
|
270
|
-
contractAddress?: string | undefined;
|
|
271
|
-
decimals?: number | undefined;
|
|
272
|
-
} | undefined;
|
|
273
|
-
entityId?: string | undefined;
|
|
274
|
-
}, {
|
|
275
|
-
action: "GET" | "CREATE" | "UPDATE" | "REMOVE" | "LIST" | "COUNT";
|
|
276
|
-
localizationType: "COUNTRY" | "CURRENCY" | "LANGUAGE";
|
|
277
|
-
sort?: {
|
|
278
|
-
key: string;
|
|
279
|
-
value: string;
|
|
280
|
-
}[] | undefined;
|
|
281
|
-
includeInactive?: boolean | undefined;
|
|
282
|
-
queryString?: string | undefined;
|
|
283
|
-
limit?: number | undefined;
|
|
284
|
-
offset?: number | undefined;
|
|
285
|
-
entity?: {
|
|
286
|
-
isActive?: boolean | undefined;
|
|
287
|
-
isoCode?: string | undefined;
|
|
288
|
-
defaultCurrencyCode?: string | undefined;
|
|
289
|
-
contractAddress?: string | undefined;
|
|
290
|
-
decimals?: number | undefined;
|
|
291
|
-
} | undefined;
|
|
292
|
-
entityId?: string | undefined;
|
|
293
|
-
}>;
|
|
154
|
+
}, z.core.$strip>;
|
|
294
155
|
export type LocalizationManagementParams = z.infer<typeof LocalizationManagementZodSchema>;
|
|
295
156
|
export type ActionName = keyof typeof actionValidators;
|
|
296
157
|
export type Params<T extends ActionName> = z.infer<(typeof actionValidators)[T]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tools/localization/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,eAAO,MAAM,iBAAiB,EAAiC,CAC7D,MAAM,OAAO,aAAa,EAC1B,GAAG,CAAC,MAAM,OAAO,aAAa,CAAC,EAAE,CAClC,CAAC;AAEF,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tools/localization/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,eAAO,MAAM,iBAAiB,EAAiC,CAC7D,MAAM,OAAO,aAAa,EAC1B,GAAG,CAAC,MAAM,OAAO,aAAa,CAAC,EAAE,CAClC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;EAI9B,CAAC;AAEJ,eAAO,MAAM,wBAAwB;;;;;;iBAmCnC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCnB,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBxC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyC,CAAC;AACtF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAE3F,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,gBAAgB,CAAC;AACvD,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACjF,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,UAAU,IAAI,CAC1C,kBAAkB,EAAE,GAAG,EACvB,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,KACd,OAAO,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
import { SortDirection } from '@unchainedshop/utils';
|
|
3
3
|
import { PaginationSchema, SortingSchema, SearchSchema } from '../../utils/sharedSchemas.js';
|
|
4
4
|
export const sortDirectionKeys = Object.keys(SortDirection);
|
|
5
|
-
export const LocalizationTypeEnum = z
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export const LocalizationTypeEnum = z
|
|
6
|
+
.enum(['COUNTRY', 'CURRENCY', 'LANGUAGE'])
|
|
7
|
+
.describe('Type of localization entity - COUNTRY for geographic regions (US, DE, CH), CURRENCY for monetary units (USD, EUR, CHF), LANGUAGE for locale support (en, de, fr)');
|
|
8
8
|
export const LocalizationEntitySchema = z.object({
|
|
9
9
|
isoCode: z
|
|
10
10
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/mcp/tools/localization/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE7F,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAGzD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/mcp/tools/localization/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE7F,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAGzD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;KACzC,QAAQ,CACP,kKAAkK,CACnK,CAAC;AAEJ,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,4MAA4M,CAC7M;IACH,QAAQ,EAAE,CAAC;SACR,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,8FAA8F,CAC/F;IACH,mBAAmB,EAAE,CAAC;SACnB,MAAM,EAAE;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protocol/sdk/server/mcp.js';
|
|
2
2
|
import { Context } from '../../../context.js';
|
|
3
3
|
export declare const registerOrderTools: (server: McpServer, context: Context) => void;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tools/order/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tools/order/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,eAAO,MAAM,kBAAkB,GAAI,QAAQ,SAAS,EAAE,SAAS,OAAO,SAOrE,CAAC"}
|