@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,18 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const QuotationStatusEnum: z.ZodEnum<
|
|
2
|
+
export declare const QuotationStatusEnum: z.ZodEnum<{
|
|
3
|
+
REQUESTED: "REQUESTED";
|
|
4
|
+
PROCESSING: "PROCESSING";
|
|
5
|
+
PROPOSED: "PROPOSED";
|
|
6
|
+
FULLFILLED: "FULLFILLED";
|
|
7
|
+
REJECTED: "REJECTED";
|
|
8
|
+
}>;
|
|
3
9
|
export declare const ProductConfigurationInput: z.ZodObject<{
|
|
4
10
|
key: z.ZodString;
|
|
5
11
|
value: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
key: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}, {
|
|
10
|
-
key: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
13
|
export declare const actionValidators: {
|
|
14
14
|
readonly LIST: z.ZodObject<{
|
|
15
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
15
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
REQUESTED: "REQUESTED";
|
|
17
|
+
PROCESSING: "PROCESSING";
|
|
18
|
+
PROPOSED: "PROPOSED";
|
|
19
|
+
FULLFILLED: "FULLFILLED";
|
|
20
|
+
REJECTED: "REJECTED";
|
|
21
|
+
}>>;
|
|
16
22
|
userId: z.ZodOptional<z.ZodString>;
|
|
17
23
|
productId: z.ZodOptional<z.ZodString>;
|
|
18
24
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -21,218 +27,118 @@ export declare const actionValidators: {
|
|
|
21
27
|
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
22
28
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
29
|
key: z.ZodString;
|
|
24
|
-
value: z.ZodEnum<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}, {
|
|
29
|
-
key: string;
|
|
30
|
-
value: string;
|
|
31
|
-
}>, "many">>;
|
|
30
|
+
value: z.ZodEnum<{
|
|
31
|
+
[x: string]: string;
|
|
32
|
+
}>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
32
34
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
33
35
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
},
|
|
35
|
-
includeInactive: boolean;
|
|
36
|
-
sort?: {
|
|
37
|
-
key: string;
|
|
38
|
-
value: string;
|
|
39
|
-
}[] | undefined;
|
|
40
|
-
productId?: string | undefined;
|
|
41
|
-
status?: "REQUESTED" | "PROCESSING" | "PROPOSED" | "FULLFILLED" | "REJECTED" | undefined;
|
|
42
|
-
userId?: string | undefined;
|
|
43
|
-
queryString?: string | undefined;
|
|
44
|
-
limit?: number | undefined;
|
|
45
|
-
offset?: number | undefined;
|
|
46
|
-
from?: string | undefined;
|
|
47
|
-
to?: string | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
sort?: {
|
|
50
|
-
key: string;
|
|
51
|
-
value: string;
|
|
52
|
-
}[] | undefined;
|
|
53
|
-
productId?: string | undefined;
|
|
54
|
-
status?: "REQUESTED" | "PROCESSING" | "PROPOSED" | "FULLFILLED" | "REJECTED" | undefined;
|
|
55
|
-
includeInactive?: boolean | undefined;
|
|
56
|
-
userId?: string | undefined;
|
|
57
|
-
queryString?: string | undefined;
|
|
58
|
-
limit?: number | undefined;
|
|
59
|
-
offset?: number | undefined;
|
|
60
|
-
from?: string | undefined;
|
|
61
|
-
to?: string | undefined;
|
|
62
|
-
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
63
37
|
readonly GET: z.ZodObject<{
|
|
64
38
|
quotationId: z.ZodString;
|
|
65
|
-
},
|
|
66
|
-
quotationId: string;
|
|
67
|
-
}, {
|
|
68
|
-
quotationId: string;
|
|
69
|
-
}>;
|
|
39
|
+
}, z.core.$strip>;
|
|
70
40
|
readonly COUNT: z.ZodObject<{
|
|
71
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
41
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
REQUESTED: "REQUESTED";
|
|
43
|
+
PROCESSING: "PROCESSING";
|
|
44
|
+
PROPOSED: "PROPOSED";
|
|
45
|
+
FULLFILLED: "FULLFILLED";
|
|
46
|
+
REJECTED: "REJECTED";
|
|
47
|
+
}>>;
|
|
72
48
|
userId: z.ZodOptional<z.ZodString>;
|
|
73
49
|
productId: z.ZodOptional<z.ZodString>;
|
|
74
50
|
from: z.ZodOptional<z.ZodString>;
|
|
75
51
|
to: z.ZodOptional<z.ZodString>;
|
|
76
52
|
queryString: z.ZodOptional<z.ZodString>;
|
|
77
53
|
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
78
|
-
},
|
|
79
|
-
includeInactive: boolean;
|
|
80
|
-
productId?: string | undefined;
|
|
81
|
-
status?: "REQUESTED" | "PROCESSING" | "PROPOSED" | "FULLFILLED" | "REJECTED" | undefined;
|
|
82
|
-
userId?: string | undefined;
|
|
83
|
-
queryString?: string | undefined;
|
|
84
|
-
from?: string | undefined;
|
|
85
|
-
to?: string | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
productId?: string | undefined;
|
|
88
|
-
status?: "REQUESTED" | "PROCESSING" | "PROPOSED" | "FULLFILLED" | "REJECTED" | undefined;
|
|
89
|
-
includeInactive?: boolean | undefined;
|
|
90
|
-
userId?: string | undefined;
|
|
91
|
-
queryString?: string | undefined;
|
|
92
|
-
from?: string | undefined;
|
|
93
|
-
to?: string | undefined;
|
|
94
|
-
}>;
|
|
54
|
+
}, z.core.$strip>;
|
|
95
55
|
readonly VERIFY: z.ZodObject<{
|
|
96
56
|
quotationId: z.ZodString;
|
|
97
|
-
quotationContext: z.ZodOptional<z.ZodRecord<z.
|
|
98
|
-
},
|
|
99
|
-
quotationId: string;
|
|
100
|
-
quotationContext?: Record<string, any> | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
quotationId: string;
|
|
103
|
-
quotationContext?: Record<string, any> | undefined;
|
|
104
|
-
}>;
|
|
57
|
+
quotationContext: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
105
59
|
readonly MAKE_PROPOSAL: z.ZodObject<{
|
|
106
60
|
quotationId: z.ZodString;
|
|
107
|
-
quotationContext: z.ZodOptional<z.ZodRecord<z.
|
|
108
|
-
},
|
|
109
|
-
quotationId: string;
|
|
110
|
-
quotationContext?: Record<string, any> | undefined;
|
|
111
|
-
}, {
|
|
112
|
-
quotationId: string;
|
|
113
|
-
quotationContext?: Record<string, any> | undefined;
|
|
114
|
-
}>;
|
|
61
|
+
quotationContext: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
115
63
|
readonly REJECT: z.ZodObject<{
|
|
116
64
|
quotationId: z.ZodString;
|
|
117
|
-
quotationContext: z.ZodOptional<z.ZodRecord<z.
|
|
118
|
-
},
|
|
119
|
-
quotationId: string;
|
|
120
|
-
quotationContext?: Record<string, any> | undefined;
|
|
121
|
-
}, {
|
|
122
|
-
quotationId: string;
|
|
123
|
-
quotationContext?: Record<string, any> | undefined;
|
|
124
|
-
}>;
|
|
65
|
+
quotationContext: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
125
67
|
};
|
|
126
68
|
export declare const QuotationManagementSchema: {
|
|
127
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
69
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
70
|
+
REQUESTED: "REQUESTED";
|
|
71
|
+
PROCESSING: "PROCESSING";
|
|
72
|
+
PROPOSED: "PROPOSED";
|
|
73
|
+
FULLFILLED: "FULLFILLED";
|
|
74
|
+
REJECTED: "REJECTED";
|
|
75
|
+
}>>;
|
|
128
76
|
userId: z.ZodOptional<z.ZodString>;
|
|
129
77
|
productId: z.ZodOptional<z.ZodString>;
|
|
130
78
|
quotationId: z.ZodOptional<z.ZodString>;
|
|
131
79
|
configuration: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
80
|
key: z.ZodString;
|
|
133
81
|
value: z.ZodString;
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
value: string;
|
|
137
|
-
}, {
|
|
138
|
-
key: string;
|
|
139
|
-
value: string;
|
|
140
|
-
}>, "many">>;
|
|
141
|
-
quotationContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
82
|
+
}, z.core.$strip>>>;
|
|
83
|
+
quotationContext: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
142
84
|
from: z.ZodOptional<z.ZodString>;
|
|
143
85
|
to: z.ZodOptional<z.ZodString>;
|
|
144
86
|
queryString: z.ZodOptional<z.ZodString>;
|
|
145
87
|
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
146
88
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
147
89
|
key: z.ZodString;
|
|
148
|
-
value: z.ZodEnum<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}, {
|
|
153
|
-
key: string;
|
|
154
|
-
value: string;
|
|
155
|
-
}>, "many">>;
|
|
90
|
+
value: z.ZodEnum<{
|
|
91
|
+
[x: string]: string;
|
|
92
|
+
}>;
|
|
93
|
+
}, z.core.$strip>>>;
|
|
156
94
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
157
95
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
158
|
-
action: z.ZodEnum<
|
|
96
|
+
action: z.ZodEnum<{
|
|
97
|
+
GET: "GET";
|
|
98
|
+
LIST: "LIST";
|
|
99
|
+
COUNT: "COUNT";
|
|
100
|
+
VERIFY: "VERIFY";
|
|
101
|
+
MAKE_PROPOSAL: "MAKE_PROPOSAL";
|
|
102
|
+
REJECT: "REJECT";
|
|
103
|
+
}>;
|
|
159
104
|
};
|
|
160
105
|
export declare const QuotationManagementZodSchema: z.ZodObject<{
|
|
161
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
106
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
REQUESTED: "REQUESTED";
|
|
108
|
+
PROCESSING: "PROCESSING";
|
|
109
|
+
PROPOSED: "PROPOSED";
|
|
110
|
+
FULLFILLED: "FULLFILLED";
|
|
111
|
+
REJECTED: "REJECTED";
|
|
112
|
+
}>>;
|
|
162
113
|
userId: z.ZodOptional<z.ZodString>;
|
|
163
114
|
productId: z.ZodOptional<z.ZodString>;
|
|
164
115
|
quotationId: z.ZodOptional<z.ZodString>;
|
|
165
116
|
configuration: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
117
|
key: z.ZodString;
|
|
167
118
|
value: z.ZodString;
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
value: string;
|
|
171
|
-
}, {
|
|
172
|
-
key: string;
|
|
173
|
-
value: string;
|
|
174
|
-
}>, "many">>;
|
|
175
|
-
quotationContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
119
|
+
}, z.core.$strip>>>;
|
|
120
|
+
quotationContext: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
176
121
|
from: z.ZodOptional<z.ZodString>;
|
|
177
122
|
to: z.ZodOptional<z.ZodString>;
|
|
178
123
|
queryString: z.ZodOptional<z.ZodString>;
|
|
179
124
|
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
180
125
|
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
181
126
|
key: z.ZodString;
|
|
182
|
-
value: z.ZodEnum<
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}, {
|
|
187
|
-
key: string;
|
|
188
|
-
value: string;
|
|
189
|
-
}>, "many">>;
|
|
127
|
+
value: z.ZodEnum<{
|
|
128
|
+
[x: string]: string;
|
|
129
|
+
}>;
|
|
130
|
+
}, z.core.$strip>>>;
|
|
190
131
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
191
132
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
192
|
-
action: z.ZodEnum<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
status?: "REQUESTED" | "PROCESSING" | "PROPOSED" | "FULLFILLED" | "REJECTED" | undefined;
|
|
202
|
-
configuration?: {
|
|
203
|
-
key: string;
|
|
204
|
-
value: string;
|
|
205
|
-
}[] | undefined;
|
|
206
|
-
userId?: string | undefined;
|
|
207
|
-
quotationId?: string | undefined;
|
|
208
|
-
queryString?: string | undefined;
|
|
209
|
-
limit?: number | undefined;
|
|
210
|
-
offset?: number | undefined;
|
|
211
|
-
quotationContext?: Record<string, any> | undefined;
|
|
212
|
-
from?: string | undefined;
|
|
213
|
-
to?: string | undefined;
|
|
214
|
-
}, {
|
|
215
|
-
action: "GET" | "LIST" | "COUNT" | "VERIFY" | "MAKE_PROPOSAL" | "REJECT";
|
|
216
|
-
sort?: {
|
|
217
|
-
key: string;
|
|
218
|
-
value: string;
|
|
219
|
-
}[] | undefined;
|
|
220
|
-
productId?: string | undefined;
|
|
221
|
-
status?: "REQUESTED" | "PROCESSING" | "PROPOSED" | "FULLFILLED" | "REJECTED" | undefined;
|
|
222
|
-
includeInactive?: boolean | undefined;
|
|
223
|
-
configuration?: {
|
|
224
|
-
key: string;
|
|
225
|
-
value: string;
|
|
226
|
-
}[] | undefined;
|
|
227
|
-
userId?: string | undefined;
|
|
228
|
-
quotationId?: string | undefined;
|
|
229
|
-
queryString?: string | undefined;
|
|
230
|
-
limit?: number | undefined;
|
|
231
|
-
offset?: number | undefined;
|
|
232
|
-
quotationContext?: Record<string, any> | undefined;
|
|
233
|
-
from?: string | undefined;
|
|
234
|
-
to?: string | undefined;
|
|
235
|
-
}>;
|
|
133
|
+
action: z.ZodEnum<{
|
|
134
|
+
GET: "GET";
|
|
135
|
+
LIST: "LIST";
|
|
136
|
+
COUNT: "COUNT";
|
|
137
|
+
VERIFY: "VERIFY";
|
|
138
|
+
MAKE_PROPOSAL: "MAKE_PROPOSAL";
|
|
139
|
+
REJECT: "REJECT";
|
|
140
|
+
}>;
|
|
141
|
+
}, z.core.$strip>;
|
|
236
142
|
export type QuotationManagementParams = z.infer<typeof QuotationManagementZodSchema>;
|
|
237
143
|
export type ActionName = keyof typeof actionValidators;
|
|
238
144
|
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/quotation/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tools/quotation/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,mBAAmB;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFnB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBrC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAsC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,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,CAAC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -44,7 +44,7 @@ export const actionValidators = {
|
|
|
44
44
|
.min(1, 'quotationId is required')
|
|
45
45
|
.describe('Quotation ID to verify. Must be in REQUESTED status.'),
|
|
46
46
|
quotationContext: z
|
|
47
|
-
.record(z.any())
|
|
47
|
+
.record(z.any(), z.any())
|
|
48
48
|
.optional()
|
|
49
49
|
.describe('Optional context for verification (e.g., verification notes, approval details)'),
|
|
50
50
|
})
|
|
@@ -56,7 +56,7 @@ export const actionValidators = {
|
|
|
56
56
|
.min(1, 'quotationId is required')
|
|
57
57
|
.describe('Quotation ID to create proposal for. Must be in PROCESSING status.'),
|
|
58
58
|
quotationContext: z
|
|
59
|
-
.record(z.any())
|
|
59
|
+
.record(z.any(), z.any())
|
|
60
60
|
.optional()
|
|
61
61
|
.describe('Optional context for the proposal (e.g., pricing details, terms, delivery estimates)'),
|
|
62
62
|
})
|
|
@@ -68,7 +68,7 @@ export const actionValidators = {
|
|
|
68
68
|
.min(1, 'quotationId is required')
|
|
69
69
|
.describe('Quotation ID to reject. Cannot be FULLFILLED.'),
|
|
70
70
|
quotationContext: z
|
|
71
|
-
.record(z.any())
|
|
71
|
+
.record(z.any(), z.any())
|
|
72
72
|
.optional()
|
|
73
73
|
.describe('Optional context for rejection (e.g., reason for rejection, alternative suggestions)'),
|
|
74
74
|
})
|
|
@@ -91,7 +91,7 @@ export const QuotationManagementSchema = {
|
|
|
91
91
|
.optional()
|
|
92
92
|
.describe('Use this to add any additional information for the quotation, it can be how many for when or price or anything a user might want to add'),
|
|
93
93
|
quotationContext: z
|
|
94
|
-
.record(z.any())
|
|
94
|
+
.record(z.any(), z.any())
|
|
95
95
|
.optional()
|
|
96
96
|
.describe('Context object (VERIFY, MAKE_PROPOSAL, REJECT only)'),
|
|
97
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/mcp/tools/quotation/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,eAAe,GAChB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,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EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wDAAwD,CAAC;IACrG,aAAa,EAAE,CAAC;SACb,KAAK,CAAC,yBAAyB,CAAC;SAChC,QAAQ,EAAE;SACV,QAAQ,CACP,yIAAyI,CAC1I;IACH,gBAAgB,EAAE,CAAC;SAChB,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;SACxB,QAAQ,EAAE;SACV,QAAQ,CAAC,qDAAqD,CAAC;CACnE,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
1
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
2
|
import { Context } from '../../../context.js';
|
|
3
3
|
export declare const registerSystemTools: (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/system/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tools/system/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAI9C,eAAO,MAAM,mBAAmB,GAAI,QAAQ,SAAS,EAAE,SAAS,OAAO,SAOtE,CAAC"}
|