@unchainedshop/api 4.8.2 → 4.8.4
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/acl.d.ts +2 -2
- package/lib/acl.js +5 -6
- package/lib/fastify/index.js +4 -0
- package/lib/loaders/buildTextMap.js +12 -13
- package/lib/resolvers/mutations/index.d.ts +155 -155
- package/lib/resolvers/queries/index.d.ts +71 -71
- package/package.json +1 -1
package/lib/acl.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import type { CheckPermissionArgs } from '@unchainedshop/roles';
|
|
|
2
2
|
export declare const ensureActionExists: (action: any, userOptions: any) => void;
|
|
3
3
|
export declare const ensureIsFunction: (fn: any, action: any, options: any, key: any) => void;
|
|
4
4
|
declare const checkAction: (context: any, action: any, args?: CheckPermissionArgs, options?: any) => Promise<void>;
|
|
5
|
-
declare const checkResolver: (action: any, userOptions?: any) => (fn: any, name?: string) => (root: any, params: any, context: any,
|
|
5
|
+
declare const checkResolver: (action: any, userOptions?: any) => (fn: any, name?: string) => (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
6
6
|
declare const checkTypeResolver: (action: any, key: any) => (obj: any, params: any, context: any) => Promise<any>;
|
|
7
7
|
declare const resolverDecorator: (action: any, userOptions?: any) => (target: any, key: any, descriptor: any) => {
|
|
8
8
|
configurable: boolean;
|
|
9
|
-
get(): (root: any, params: any, context: any,
|
|
9
|
+
get(): (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
10
10
|
};
|
|
11
11
|
export default resolverDecorator;
|
|
12
12
|
export { resolverDecorator, checkResolver, checkTypeResolver, checkAction };
|
package/lib/acl.js
CHANGED
|
@@ -36,12 +36,11 @@ const wrapFunction = (fn, name, action, userOptions) => {
|
|
|
36
36
|
const key = name || fn.name;
|
|
37
37
|
const options = { ...defaultOptions, ...userOptions };
|
|
38
38
|
ensureIsFunction(fn, action, options, key);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return fn(root, params, context, ...other);
|
|
39
|
+
const actionOptions = { key: options.showKey ? key : '' };
|
|
40
|
+
return async (root, params, context, info) => {
|
|
41
|
+
const args = options.mapArgs(root, params, info);
|
|
42
|
+
await checkAction(context, action, args, actionOptions);
|
|
43
|
+
return fn(root, params, context, info);
|
|
45
44
|
};
|
|
46
45
|
};
|
|
47
46
|
const checkResolver = (action, userOptions) => {
|
package/lib/fastify/index.js
CHANGED
|
@@ -29,6 +29,7 @@ const middlewareHook = async function middlewareHook(req, reply) {
|
|
|
29
29
|
const { impersonator } = options;
|
|
30
30
|
req.session.userId = user._id;
|
|
31
31
|
req.session.impersonatorId = impersonator?._id;
|
|
32
|
+
await req.session.save();
|
|
32
33
|
const tokenObject = {
|
|
33
34
|
_id: req.session.sessionId,
|
|
34
35
|
userId: user._id,
|
|
@@ -45,6 +46,7 @@ const middlewareHook = async function middlewareHook(req, reply) {
|
|
|
45
46
|
};
|
|
46
47
|
req.session.userId = null;
|
|
47
48
|
req.session.impersonatorId = null;
|
|
49
|
+
await req.session.save();
|
|
48
50
|
await emit(API_EVENTS.API_LOGOUT, tokenObject);
|
|
49
51
|
return true;
|
|
50
52
|
};
|
|
@@ -109,6 +111,8 @@ export const connect = (fastify, { graphqlHandler, db, unchainedAPI, }, { allowR
|
|
|
109
111
|
fastify.register(fastifySession, {
|
|
110
112
|
secret: process.env.UNCHAINED_TOKEN_SECRET,
|
|
111
113
|
cookieName,
|
|
114
|
+
rolling: false,
|
|
115
|
+
saveUninitialized: false,
|
|
112
116
|
store: MongoStore.create({
|
|
113
117
|
client: db.client,
|
|
114
118
|
dbName: db.databaseName,
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
export default function buildTextMap(localeMap, texts, buildId) {
|
|
2
2
|
const textsMap = {};
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (!localesForText)
|
|
9
|
-
continue;
|
|
10
|
-
const idPart = buildId(text);
|
|
11
|
-
for (let k = 0; k < localesForText.length; k++) {
|
|
12
|
-
const locale = localesForText[k];
|
|
13
|
-
const key = locale + idPart;
|
|
14
|
-
if (textsMap[key] && locale !== text.locale) {
|
|
3
|
+
const localeMapKeys = Object.keys(localeMap);
|
|
4
|
+
for (const originLocale of localeMapKeys) {
|
|
5
|
+
const localesForText = localeMap[originLocale];
|
|
6
|
+
for (const text of texts) {
|
|
7
|
+
if (originLocale !== text.locale)
|
|
15
8
|
continue;
|
|
9
|
+
const idPart = buildId(text);
|
|
10
|
+
for (const locale of localesForText) {
|
|
11
|
+
const key = locale + idPart;
|
|
12
|
+
if (textsMap[key] && locale !== text.locale) {
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
textsMap[key] = text;
|
|
16
16
|
}
|
|
17
|
-
textsMap[key] = text;
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
return textsMap;
|
|
@@ -1,158 +1,158 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
logout: (root: any, params: any, context: any,
|
|
3
|
-
loginAsGuest: (root: any, params: any, context: any,
|
|
4
|
-
impersonate: (root: any, params: any, context: any,
|
|
5
|
-
stopImpersonation: (root: any, params: any, context: any,
|
|
6
|
-
createWebAuthnCredentialCreationOptions: (root: any, params: any, context: any,
|
|
7
|
-
createWebAuthnCredentialRequestOptions: (root: any, params: any, context: any,
|
|
8
|
-
addPushSubscription: (root: any, params: any, context: any,
|
|
9
|
-
removePushSubscription: (root: any, params: any, context: any,
|
|
10
|
-
addWebAuthnCredentials: (root: any, params: any, context: any,
|
|
11
|
-
removeWebAuthnCredentials: (root: any, params: any, context: any,
|
|
12
|
-
addWeb3Address: (root: any, params: any, context: any,
|
|
13
|
-
removeWeb3Address: (root: any, params: any, context: any,
|
|
14
|
-
verifyWeb3Address: (root: any, params: any, context: any,
|
|
15
|
-
verifyEmail: (root: any, params: any, context: any,
|
|
16
|
-
loginWithPassword: (root: any, params: any, context: any,
|
|
17
|
-
loginWithWebAuthn: (root: any, params: any, context: any,
|
|
18
|
-
pageView: (root: any, params: any, context: any,
|
|
19
|
-
createUser: (root: any, params: any, context: any,
|
|
20
|
-
forgotPassword: (root: any, params: any, context: any,
|
|
21
|
-
resetPassword: (root: any, params: any, context: any,
|
|
22
|
-
sendVerificationEmail: (root: any, params: any, context: any,
|
|
23
|
-
sendEnrollmentEmail: (root: any, params: any, context: any,
|
|
24
|
-
changePassword: (root: any, params: any, context: any,
|
|
25
|
-
heartbeat: (root: any, params: any, context: any,
|
|
26
|
-
addEmail: (root: any, params: any, context: any,
|
|
27
|
-
removeEmail: (root: any, params: any, context: any,
|
|
28
|
-
updateUserProfile: (root: any, params: any, context: any,
|
|
29
|
-
removeUser: (root: any, params: any, context: any,
|
|
30
|
-
setPassword: (root: any, params: any, context: any,
|
|
31
|
-
prepareUserAvatarUpload: (root: any, params: any, context: any,
|
|
32
|
-
setUserTags: (root: any, params: any, context: any,
|
|
33
|
-
setUsername: (root: any, params: any, context: any,
|
|
34
|
-
setRoles: (root: any, params: any, context: any,
|
|
35
|
-
enrollUser: (root: any, params: any, context: any,
|
|
36
|
-
registerPaymentCredentials: (root: any, params: any, context: any,
|
|
37
|
-
markPaymentCredentialsPreferred: (root: any, params: any, context: any,
|
|
38
|
-
removePaymentCredentials: (root: any, params: any, context: any,
|
|
39
|
-
createLanguage: (root: any, params: any, context: any,
|
|
40
|
-
updateLanguage: (root: any, params: any, context: any,
|
|
41
|
-
removeLanguage: (root: any, params: any, context: any,
|
|
42
|
-
createCountry: (root: any, params: any, context: any,
|
|
43
|
-
updateCountry: (root: any, params: any, context: any,
|
|
44
|
-
removeCountry: (root: any, params: any, context: any,
|
|
45
|
-
createProduct: (root: any, params: any, context: any,
|
|
46
|
-
publishProduct: (root: any, params: any, context: any,
|
|
47
|
-
unpublishProduct: (root: any, params: any, context: any,
|
|
48
|
-
removeProduct: (root: any, params: any, context: any,
|
|
49
|
-
updateProduct: (root: any, params: any, context: any,
|
|
50
|
-
updateProductTexts: (root: any, params: any, context: any,
|
|
51
|
-
updateProductMediaTexts: (root: any, params: any, context: any,
|
|
52
|
-
confirmMediaUpload: (root: any, params: any, context: any,
|
|
53
|
-
prepareProductMediaUpload: (root: any, params: any, context: any,
|
|
54
|
-
reorderProductMedia: (root: any, params: any, context: any,
|
|
55
|
-
removeProductMedia: (root: any, params: any, context: any,
|
|
56
|
-
updateProductCommerce: (root: any, params: any, context: any,
|
|
57
|
-
updateProductWarehousing: (root: any, params: any, context: any,
|
|
58
|
-
updateProductSupply: (root: any, params: any, context: any,
|
|
59
|
-
updateProductPlan: (root: any, params: any, context: any,
|
|
60
|
-
updateProductTokenization: (root: any, params: any, context: any,
|
|
61
|
-
removeProductVariation: (root: any, params: any, context: any,
|
|
62
|
-
updateProductVariationTexts: (root: any, params: any, context: any,
|
|
63
|
-
removeProductVariationOption: (root: any, params: any, context: any,
|
|
64
|
-
createProductVariation: (root: any, params: any, context: any,
|
|
65
|
-
createProductBundleItem: (root: any, params: any, context: any,
|
|
66
|
-
removeBundleItem: (root: any, params: any, context: any,
|
|
67
|
-
createProductVariationOption: (root: any, params: any, context: any,
|
|
68
|
-
addProductAssignment: (root: any, params: any, context: any,
|
|
69
|
-
removeProductAssignment: (root: any, params: any, context: any,
|
|
70
|
-
createCurrency: (root: any, params: any, context: any,
|
|
71
|
-
updateCurrency: (root: any, params: any, context: any,
|
|
72
|
-
removeCurrency: (root: any, params: any, context: any,
|
|
73
|
-
createCart: (root: any, params: any, context: any,
|
|
74
|
-
addCartProduct: (root: any, params: any, context: any,
|
|
75
|
-
addMultipleCartProducts: (root: any, params: any, context: any,
|
|
76
|
-
addCartDiscount: (root: any, params: any, context: any,
|
|
77
|
-
addCartQuotation: (root: any, params: any, context: any,
|
|
78
|
-
updateCart: (root: any, params: any, context: any,
|
|
79
|
-
emptyCart: (root: any, params: any, context: any,
|
|
80
|
-
checkoutCart: (root: any, params: any, context: any,
|
|
81
|
-
updateCartItem: (root: any, params: any, context: any,
|
|
82
|
-
removeCartItem: (root: any, params: any, context: any,
|
|
83
|
-
removeCartDiscount: (root: any, params: any, context: any,
|
|
84
|
-
updateCartDeliveryPickUp: (root: any, params: any, context: any,
|
|
85
|
-
updateCartDeliveryShipping: (root: any, params: any, context: any,
|
|
86
|
-
updateCartPaymentGeneric: (root: any, params: any, context: any,
|
|
87
|
-
updateCartPaymentInvoice: (root: any, params: any, context: any,
|
|
88
|
-
setOrderPaymentProvider: (root: any, params: any, context: any,
|
|
89
|
-
setOrderDeliveryProvider: (root: any, params: any, context: any,
|
|
90
|
-
updateOrderDeliveryShipping: (root: any, params: any, context: any,
|
|
91
|
-
updateOrderDeliveryPickUp: (root: any, params: any, context: any,
|
|
92
|
-
updateOrderPaymentGeneric: (root: any, params: any, context: any,
|
|
93
|
-
updateOrderPaymentInvoice: (root: any, params: any, context: any,
|
|
94
|
-
removeOrder: (root: any, params: any, context: any,
|
|
95
|
-
confirmOrder: (root: any, params: any, context: any,
|
|
96
|
-
rejectOrder: (root: any, params: any, context: any,
|
|
97
|
-
payOrder: (root: any, params: any, context: any,
|
|
98
|
-
deliverOrder: (root: any, params: any, context: any,
|
|
99
|
-
createEnrollment: (root: any, params: any, context: any,
|
|
100
|
-
terminateEnrollment: (root: any, params: any, context: any,
|
|
101
|
-
activateEnrollment: (root: any, params: any, context: any,
|
|
102
|
-
updateEnrollment: (root: any, params: any, context: any,
|
|
103
|
-
createPaymentProvider: (root: any, params: any, context: any,
|
|
104
|
-
updatePaymentProvider: (root: any, params: any, context: any,
|
|
105
|
-
removePaymentProvider: (root: any, params: any, context: any,
|
|
106
|
-
createDeliveryProvider: (root: any, params: any, context: any,
|
|
107
|
-
updateDeliveryProvider: (root: any, params: any, context: any,
|
|
108
|
-
removeDeliveryProvider: (root: any, params: any, context: any,
|
|
109
|
-
createWarehousingProvider: (root: any, params: any, context: any,
|
|
110
|
-
updateWarehousingProvider: (root: any, params: any, context: any,
|
|
111
|
-
removeWarehousingProvider: (root: any, params: any, context: any,
|
|
112
|
-
exportToken: (root: any, params: any, context: any,
|
|
113
|
-
invalidateToken: (root: any, params: any, context: any,
|
|
114
|
-
createFilter: (root: any, params: any, context: any,
|
|
115
|
-
updateFilter: (root: any, params: any, context: any,
|
|
116
|
-
removeFilter: (root: any, params: any, context: any,
|
|
117
|
-
updateFilterTexts: (root: any, params: any, context: any,
|
|
118
|
-
removeFilterOption: (root: any, params: any, context: any,
|
|
119
|
-
createFilterOption: (root: any, params: any, context: any,
|
|
120
|
-
createAssortment: (root: any, params: any, context: any,
|
|
121
|
-
prepareAssortmentMediaUpload: (root: any, params: any, context: any,
|
|
122
|
-
updateAssortment: (root: any, params: any, context: any,
|
|
123
|
-
removeAssortment: (root: any, params: any, context: any,
|
|
124
|
-
reorderAssortmentMedia: (root: any, params: any, context: any,
|
|
125
|
-
removeAssortmentMedia: (root: any, params: any, context: any,
|
|
126
|
-
updateAssortmentMediaTexts: (root: any, params: any, context: any,
|
|
127
|
-
updateAssortmentTexts: (root: any, params: any, context: any,
|
|
128
|
-
addAssortmentProduct: (root: any, params: any, context: any,
|
|
129
|
-
removeAssortmentProduct: (root: any, params: any, context: any,
|
|
130
|
-
reorderAssortmentProducts: (root: any, params: any, context: any,
|
|
131
|
-
addAssortmentLink: (root: any, params: any, context: any,
|
|
132
|
-
removeAssortmentLink: (root: any, params: any, context: any,
|
|
133
|
-
reorderAssortmentLinks: (root: any, params: any, context: any,
|
|
134
|
-
addAssortmentFilter: (root: any, params: any, context: any,
|
|
135
|
-
removeAssortmentFilter: (root: any, params: any, context: any,
|
|
136
|
-
reorderAssortmentFilters: (root: any, params: any, context: any,
|
|
137
|
-
createProductReview: (root: any, params: any, context: any,
|
|
138
|
-
updateProductReview: (root: any, params: any, context: any,
|
|
139
|
-
removeProductReview: (root: any, params: any, context: any,
|
|
140
|
-
addProductReviewVote: (root: any, params: any, context: any,
|
|
141
|
-
removeProductReviewVote: (root: any, params: any, context: any,
|
|
142
|
-
requestQuotation: (root: any, params: any, context: any,
|
|
143
|
-
rejectQuotation: (root: any, params: any, context: any,
|
|
144
|
-
verifyQuotation: (root: any, params: any, context: any,
|
|
145
|
-
makeQuotationProposal: (root: any, params: any, context: any,
|
|
146
|
-
bookmark: (root: any, params: any, context: any,
|
|
147
|
-
createBookmark: (root: any, params: any, context: any,
|
|
148
|
-
removeBookmark: (root: any, params: any, context: any,
|
|
149
|
-
addWork: (root: any, params: any, context: any,
|
|
150
|
-
allocateWork: (root: any, params: any, context: any,
|
|
151
|
-
finishWork: (root: any, params: any, context: any,
|
|
152
|
-
removeWork: (root: any, params: any, context: any,
|
|
153
|
-
processNextWork: (root: any, params: any, context: any,
|
|
154
|
-
signPaymentProviderForCredentialRegistration: (root: any, params: any, context: any,
|
|
155
|
-
signPaymentProviderForCheckout: (root: any, params: any, context: any,
|
|
156
|
-
removeUserProductReviews: (root: any, params: any, context: any,
|
|
2
|
+
logout: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
3
|
+
loginAsGuest: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
4
|
+
impersonate: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
5
|
+
stopImpersonation: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
6
|
+
createWebAuthnCredentialCreationOptions: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
7
|
+
createWebAuthnCredentialRequestOptions: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
8
|
+
addPushSubscription: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
9
|
+
removePushSubscription: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
10
|
+
addWebAuthnCredentials: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
11
|
+
removeWebAuthnCredentials: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
12
|
+
addWeb3Address: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
13
|
+
removeWeb3Address: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
14
|
+
verifyWeb3Address: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
15
|
+
verifyEmail: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
16
|
+
loginWithPassword: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
17
|
+
loginWithWebAuthn: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
18
|
+
pageView: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
19
|
+
createUser: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
20
|
+
forgotPassword: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
21
|
+
resetPassword: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
22
|
+
sendVerificationEmail: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
23
|
+
sendEnrollmentEmail: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
24
|
+
changePassword: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
25
|
+
heartbeat: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
26
|
+
addEmail: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
27
|
+
removeEmail: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
28
|
+
updateUserProfile: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
29
|
+
removeUser: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
30
|
+
setPassword: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
31
|
+
prepareUserAvatarUpload: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
32
|
+
setUserTags: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
33
|
+
setUsername: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
34
|
+
setRoles: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
35
|
+
enrollUser: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
36
|
+
registerPaymentCredentials: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
37
|
+
markPaymentCredentialsPreferred: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
38
|
+
removePaymentCredentials: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
39
|
+
createLanguage: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
40
|
+
updateLanguage: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
41
|
+
removeLanguage: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
42
|
+
createCountry: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
43
|
+
updateCountry: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
44
|
+
removeCountry: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
45
|
+
createProduct: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
46
|
+
publishProduct: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
47
|
+
unpublishProduct: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
48
|
+
removeProduct: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
49
|
+
updateProduct: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
50
|
+
updateProductTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
51
|
+
updateProductMediaTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
52
|
+
confirmMediaUpload: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
53
|
+
prepareProductMediaUpload: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
54
|
+
reorderProductMedia: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
55
|
+
removeProductMedia: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
56
|
+
updateProductCommerce: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
57
|
+
updateProductWarehousing: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
58
|
+
updateProductSupply: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
59
|
+
updateProductPlan: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
60
|
+
updateProductTokenization: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
61
|
+
removeProductVariation: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
62
|
+
updateProductVariationTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
63
|
+
removeProductVariationOption: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
64
|
+
createProductVariation: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
65
|
+
createProductBundleItem: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
66
|
+
removeBundleItem: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
67
|
+
createProductVariationOption: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
68
|
+
addProductAssignment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
69
|
+
removeProductAssignment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
70
|
+
createCurrency: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
71
|
+
updateCurrency: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
72
|
+
removeCurrency: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
73
|
+
createCart: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
74
|
+
addCartProduct: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
75
|
+
addMultipleCartProducts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
76
|
+
addCartDiscount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
77
|
+
addCartQuotation: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
78
|
+
updateCart: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
79
|
+
emptyCart: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
80
|
+
checkoutCart: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
81
|
+
updateCartItem: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
82
|
+
removeCartItem: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
83
|
+
removeCartDiscount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
84
|
+
updateCartDeliveryPickUp: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
85
|
+
updateCartDeliveryShipping: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
86
|
+
updateCartPaymentGeneric: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
87
|
+
updateCartPaymentInvoice: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
88
|
+
setOrderPaymentProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
89
|
+
setOrderDeliveryProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
90
|
+
updateOrderDeliveryShipping: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
91
|
+
updateOrderDeliveryPickUp: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
92
|
+
updateOrderPaymentGeneric: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
93
|
+
updateOrderPaymentInvoice: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
94
|
+
removeOrder: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
95
|
+
confirmOrder: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
96
|
+
rejectOrder: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
97
|
+
payOrder: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
98
|
+
deliverOrder: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
99
|
+
createEnrollment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
100
|
+
terminateEnrollment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
101
|
+
activateEnrollment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
102
|
+
updateEnrollment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
103
|
+
createPaymentProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
104
|
+
updatePaymentProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
105
|
+
removePaymentProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
106
|
+
createDeliveryProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
107
|
+
updateDeliveryProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
108
|
+
removeDeliveryProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
109
|
+
createWarehousingProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
110
|
+
updateWarehousingProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
111
|
+
removeWarehousingProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
112
|
+
exportToken: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
113
|
+
invalidateToken: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
114
|
+
createFilter: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
115
|
+
updateFilter: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
116
|
+
removeFilter: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
117
|
+
updateFilterTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
118
|
+
removeFilterOption: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
119
|
+
createFilterOption: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
120
|
+
createAssortment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
121
|
+
prepareAssortmentMediaUpload: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
122
|
+
updateAssortment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
123
|
+
removeAssortment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
124
|
+
reorderAssortmentMedia: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
125
|
+
removeAssortmentMedia: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
126
|
+
updateAssortmentMediaTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
127
|
+
updateAssortmentTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
128
|
+
addAssortmentProduct: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
129
|
+
removeAssortmentProduct: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
130
|
+
reorderAssortmentProducts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
131
|
+
addAssortmentLink: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
132
|
+
removeAssortmentLink: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
133
|
+
reorderAssortmentLinks: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
134
|
+
addAssortmentFilter: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
135
|
+
removeAssortmentFilter: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
136
|
+
reorderAssortmentFilters: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
137
|
+
createProductReview: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
138
|
+
updateProductReview: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
139
|
+
removeProductReview: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
140
|
+
addProductReviewVote: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
141
|
+
removeProductReviewVote: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
142
|
+
requestQuotation: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
143
|
+
rejectQuotation: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
144
|
+
verifyQuotation: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
145
|
+
makeQuotationProposal: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
146
|
+
bookmark: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
147
|
+
createBookmark: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
148
|
+
removeBookmark: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
149
|
+
addWork: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
150
|
+
allocateWork: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
151
|
+
finishWork: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
152
|
+
removeWork: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
153
|
+
processNextWork: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
154
|
+
signPaymentProviderForCredentialRegistration: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
155
|
+
signPaymentProviderForCheckout: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
156
|
+
removeUserProductReviews: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
157
157
|
};
|
|
158
158
|
export default _default;
|
|
@@ -3,76 +3,76 @@ import impersonator from './users/impersonator.ts';
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
me: typeof me;
|
|
5
5
|
impersonator: typeof impersonator;
|
|
6
|
-
user: (root: any, params: any, context: any,
|
|
7
|
-
users: (root: any, params: any, context: any,
|
|
8
|
-
usersCount: (root: any, params: any, context: any,
|
|
9
|
-
product: (root: any, params: any, context: any,
|
|
10
|
-
products: (root: any, params: any, context: any,
|
|
11
|
-
productsCount: (root: any, params: any, context: any,
|
|
12
|
-
productCatalogPrices: (root: any, params: any, context: any,
|
|
13
|
-
languagesCount: (root: any, params: any, context: any,
|
|
14
|
-
languages: (root: any, params: any, context: any,
|
|
15
|
-
language: (root: any, params: any, context: any,
|
|
16
|
-
countriesCount: (root: any, params: any, context: any,
|
|
17
|
-
countries: (root: any, params: any, context: any,
|
|
18
|
-
country: (root: any, params: any, context: any,
|
|
19
|
-
currenciesCount: (root: any, params: any, context: any,
|
|
20
|
-
currencies: (root: any, params: any, context: any,
|
|
21
|
-
currency: (root: any, params: any, context: any,
|
|
22
|
-
paymentProviders: (root: any, params: any, context: any,
|
|
23
|
-
paymentProvidersCount: (root: any, params: any, context: any,
|
|
24
|
-
paymentProvider: (root: any, params: any, context: any,
|
|
25
|
-
paymentInterfaces: (root: any, params: any, context: any,
|
|
26
|
-
deliveryProvidersCount: (root: any, params: any, context: any,
|
|
27
|
-
deliveryProviders: (root: any, params: any, context: any,
|
|
28
|
-
deliveryProvider: (root: any, params: any, context: any,
|
|
29
|
-
deliveryInterfaces: (root: any, params: any, context: any,
|
|
30
|
-
warehousingProvidersCount: (root: any, params: any, context: any,
|
|
31
|
-
warehousingProviders: (root: any, params: any, context: any,
|
|
32
|
-
warehousingProvider: (root: any, params: any, context: any,
|
|
33
|
-
warehousingInterfaces: (root: any, params: any, context: any,
|
|
34
|
-
token: (root: any, params: any, context: any,
|
|
35
|
-
tokens: (root: any, params: any, context: any,
|
|
36
|
-
tokensCount: (root: any, params: any, context: any,
|
|
37
|
-
translatedProductTexts: (root: any, params: any, context: any,
|
|
38
|
-
translatedProductMediaTexts: (root: any, params: any, context: any,
|
|
39
|
-
translatedProductVariationTexts: (root: any, params: any, context: any,
|
|
40
|
-
ordersCount: (root: any, params: any, context: any,
|
|
41
|
-
orders: (root: any, params: any, context: any,
|
|
42
|
-
order: (root: any, params: any, context: any,
|
|
43
|
-
assortmentsCount: (root: any, params: any, context: any,
|
|
44
|
-
assortments: (root: any, params: any, context: any,
|
|
45
|
-
translatedAssortmentMediaTexts: (root: any, params: any, context: any,
|
|
46
|
-
assortment: (root: any, params: any, context: any,
|
|
47
|
-
filtersCount: (root: any, params: any, context: any,
|
|
48
|
-
filters: (root: any, params: any, context: any,
|
|
49
|
-
filter: (root: any, params: any, context: any,
|
|
50
|
-
shopInfo: (root: any, params: any, context: any,
|
|
51
|
-
translatedAssortmentTexts: (root: any, params: any, context: any,
|
|
52
|
-
translatedFilterTexts: (root: any, params: any, context: any,
|
|
53
|
-
productReview: (root: any, params: any, context: any,
|
|
54
|
-
productReviews: (root: any, params: any, context: any,
|
|
55
|
-
productReviewsCount: (root: any, params: any, context: any,
|
|
56
|
-
quotation: (root: any, params: any, context: any,
|
|
57
|
-
quotations: (root: any, params: any, context: any,
|
|
58
|
-
quotationsCount: (root: any, params: any, context: any,
|
|
59
|
-
searchProducts: (root: any, params: any, context: any,
|
|
60
|
-
searchAssortments: (root: any, params: any, context: any,
|
|
61
|
-
workQueue: (root: any, params: any, context: any,
|
|
62
|
-
workQueueCount: (root: any, params: any, context: any,
|
|
63
|
-
activeWorkTypes: (root: any, params: any, context: any,
|
|
64
|
-
enrollment: (root: any, params: any, context: any,
|
|
65
|
-
enrollments: (root: any, params: any, context: any,
|
|
66
|
-
enrollmentsCount: (root: any, params: any, context: any,
|
|
67
|
-
work: (root: any, params: any, context: any,
|
|
68
|
-
event: (root: any, params: any, context: any,
|
|
69
|
-
events: (root: any, params: any, context: any,
|
|
70
|
-
eventsCount: (root: any, params: any, context: any,
|
|
71
|
-
registeredEventTypes: (root: any, params: any, context: any,
|
|
72
|
-
validateResetPasswordToken: (root: any, params: any, context: any,
|
|
73
|
-
validateVerifyEmailToken: (root: any, params: any, context: any,
|
|
74
|
-
workStatistics: (root: any, params: any, context: any,
|
|
75
|
-
eventStatistics: (root: any, params: any, context: any,
|
|
76
|
-
orderStatistics: (root: any, params: any, context: any,
|
|
6
|
+
user: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
7
|
+
users: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
8
|
+
usersCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
9
|
+
product: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
10
|
+
products: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
11
|
+
productsCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
12
|
+
productCatalogPrices: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
13
|
+
languagesCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
14
|
+
languages: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
15
|
+
language: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
16
|
+
countriesCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
17
|
+
countries: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
18
|
+
country: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
19
|
+
currenciesCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
20
|
+
currencies: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
21
|
+
currency: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
22
|
+
paymentProviders: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
23
|
+
paymentProvidersCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
24
|
+
paymentProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
25
|
+
paymentInterfaces: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
26
|
+
deliveryProvidersCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
27
|
+
deliveryProviders: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
28
|
+
deliveryProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
29
|
+
deliveryInterfaces: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
30
|
+
warehousingProvidersCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
31
|
+
warehousingProviders: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
32
|
+
warehousingProvider: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
33
|
+
warehousingInterfaces: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
34
|
+
token: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
35
|
+
tokens: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
36
|
+
tokensCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
37
|
+
translatedProductTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
38
|
+
translatedProductMediaTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
39
|
+
translatedProductVariationTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
40
|
+
ordersCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
41
|
+
orders: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
42
|
+
order: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
43
|
+
assortmentsCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
44
|
+
assortments: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
45
|
+
translatedAssortmentMediaTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
46
|
+
assortment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
47
|
+
filtersCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
48
|
+
filters: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
49
|
+
filter: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
50
|
+
shopInfo: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
51
|
+
translatedAssortmentTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
52
|
+
translatedFilterTexts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
53
|
+
productReview: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
54
|
+
productReviews: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
55
|
+
productReviewsCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
56
|
+
quotation: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
57
|
+
quotations: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
58
|
+
quotationsCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
59
|
+
searchProducts: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
60
|
+
searchAssortments: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
61
|
+
workQueue: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
62
|
+
workQueueCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
63
|
+
activeWorkTypes: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
64
|
+
enrollment: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
65
|
+
enrollments: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
66
|
+
enrollmentsCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
67
|
+
work: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
68
|
+
event: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
69
|
+
events: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
70
|
+
eventsCount: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
71
|
+
registeredEventTypes: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
72
|
+
validateResetPasswordToken: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
73
|
+
validateVerifyEmailToken: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
74
|
+
workStatistics: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
75
|
+
eventStatistics: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
76
|
+
orderStatistics: (root: any, params: any, context: any, info: any) => Promise<any>;
|
|
77
77
|
};
|
|
78
78
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/api",
|
|
3
3
|
"description": "GraphQL API layer for the Unchained Engine with Express/Fastify adapters and MCP server",
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.4",
|
|
5
5
|
"main": "lib/api-index.js",
|
|
6
6
|
"types": "lib/api-index.d.ts",
|
|
7
7
|
"type": "module",
|