@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 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, ...other: any[]) => Promise<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, ...other: any[]) => Promise<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
- return async (root, params, context, ...other) => {
40
- const args = options.mapArgs(root, params, ...other);
41
- await checkAction(context, action, args, {
42
- key: options.showKey ? key : '',
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) => {
@@ -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
- for (let j = 0; j < texts.length; j++) {
4
- const text = texts[j];
5
- if (!text.locale)
6
- continue;
7
- const localesForText = localeMap[text.locale];
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, ...other: any[]) => Promise<any>;
3
- loginAsGuest: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
4
- impersonate: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
5
- stopImpersonation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
6
- createWebAuthnCredentialCreationOptions: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
7
- createWebAuthnCredentialRequestOptions: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
8
- addPushSubscription: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
9
- removePushSubscription: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
10
- addWebAuthnCredentials: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
11
- removeWebAuthnCredentials: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
12
- addWeb3Address: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
13
- removeWeb3Address: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
14
- verifyWeb3Address: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
15
- verifyEmail: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
16
- loginWithPassword: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
17
- loginWithWebAuthn: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
18
- pageView: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
19
- createUser: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
20
- forgotPassword: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
21
- resetPassword: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
22
- sendVerificationEmail: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
23
- sendEnrollmentEmail: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
24
- changePassword: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
25
- heartbeat: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
26
- addEmail: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
27
- removeEmail: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
28
- updateUserProfile: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
29
- removeUser: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
30
- setPassword: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
31
- prepareUserAvatarUpload: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
32
- setUserTags: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
33
- setUsername: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
34
- setRoles: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
35
- enrollUser: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
36
- registerPaymentCredentials: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
37
- markPaymentCredentialsPreferred: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
38
- removePaymentCredentials: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
39
- createLanguage: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
40
- updateLanguage: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
41
- removeLanguage: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
42
- createCountry: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
43
- updateCountry: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
44
- removeCountry: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
45
- createProduct: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
46
- publishProduct: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
47
- unpublishProduct: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
48
- removeProduct: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
49
- updateProduct: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
50
- updateProductTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
51
- updateProductMediaTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
52
- confirmMediaUpload: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
53
- prepareProductMediaUpload: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
54
- reorderProductMedia: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
55
- removeProductMedia: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
56
- updateProductCommerce: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
57
- updateProductWarehousing: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
58
- updateProductSupply: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
59
- updateProductPlan: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
60
- updateProductTokenization: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
61
- removeProductVariation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
62
- updateProductVariationTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
63
- removeProductVariationOption: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
64
- createProductVariation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
65
- createProductBundleItem: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
66
- removeBundleItem: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
67
- createProductVariationOption: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
68
- addProductAssignment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
69
- removeProductAssignment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
70
- createCurrency: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
71
- updateCurrency: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
72
- removeCurrency: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
73
- createCart: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
74
- addCartProduct: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
75
- addMultipleCartProducts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
76
- addCartDiscount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
77
- addCartQuotation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
78
- updateCart: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
79
- emptyCart: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
80
- checkoutCart: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
81
- updateCartItem: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
82
- removeCartItem: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
83
- removeCartDiscount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
84
- updateCartDeliveryPickUp: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
85
- updateCartDeliveryShipping: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
86
- updateCartPaymentGeneric: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
87
- updateCartPaymentInvoice: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
88
- setOrderPaymentProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
89
- setOrderDeliveryProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
90
- updateOrderDeliveryShipping: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
91
- updateOrderDeliveryPickUp: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
92
- updateOrderPaymentGeneric: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
93
- updateOrderPaymentInvoice: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
94
- removeOrder: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
95
- confirmOrder: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
96
- rejectOrder: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
97
- payOrder: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
98
- deliverOrder: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
99
- createEnrollment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
100
- terminateEnrollment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
101
- activateEnrollment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
102
- updateEnrollment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
103
- createPaymentProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
104
- updatePaymentProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
105
- removePaymentProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
106
- createDeliveryProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
107
- updateDeliveryProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
108
- removeDeliveryProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
109
- createWarehousingProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
110
- updateWarehousingProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
111
- removeWarehousingProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
112
- exportToken: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
113
- invalidateToken: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
114
- createFilter: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
115
- updateFilter: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
116
- removeFilter: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
117
- updateFilterTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
118
- removeFilterOption: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
119
- createFilterOption: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
120
- createAssortment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
121
- prepareAssortmentMediaUpload: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
122
- updateAssortment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
123
- removeAssortment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
124
- reorderAssortmentMedia: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
125
- removeAssortmentMedia: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
126
- updateAssortmentMediaTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
127
- updateAssortmentTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
128
- addAssortmentProduct: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
129
- removeAssortmentProduct: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
130
- reorderAssortmentProducts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
131
- addAssortmentLink: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
132
- removeAssortmentLink: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
133
- reorderAssortmentLinks: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
134
- addAssortmentFilter: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
135
- removeAssortmentFilter: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
136
- reorderAssortmentFilters: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
137
- createProductReview: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
138
- updateProductReview: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
139
- removeProductReview: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
140
- addProductReviewVote: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
141
- removeProductReviewVote: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
142
- requestQuotation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
143
- rejectQuotation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
144
- verifyQuotation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
145
- makeQuotationProposal: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
146
- bookmark: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
147
- createBookmark: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
148
- removeBookmark: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
149
- addWork: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
150
- allocateWork: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
151
- finishWork: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
152
- removeWork: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
153
- processNextWork: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
154
- signPaymentProviderForCredentialRegistration: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
155
- signPaymentProviderForCheckout: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
156
- removeUserProductReviews: (root: any, params: any, context: any, ...other: any[]) => Promise<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, ...other: any[]) => Promise<any>;
7
- users: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
8
- usersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
9
- product: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
10
- products: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
11
- productsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
12
- productCatalogPrices: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
13
- languagesCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
14
- languages: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
15
- language: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
16
- countriesCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
17
- countries: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
18
- country: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
19
- currenciesCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
20
- currencies: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
21
- currency: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
22
- paymentProviders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
23
- paymentProvidersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
24
- paymentProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
25
- paymentInterfaces: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
26
- deliveryProvidersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
27
- deliveryProviders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
28
- deliveryProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
29
- deliveryInterfaces: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
30
- warehousingProvidersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
31
- warehousingProviders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
32
- warehousingProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
33
- warehousingInterfaces: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
34
- token: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
35
- tokens: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
36
- tokensCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
37
- translatedProductTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
38
- translatedProductMediaTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
39
- translatedProductVariationTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
40
- ordersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
41
- orders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
42
- order: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
43
- assortmentsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
44
- assortments: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
45
- translatedAssortmentMediaTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
46
- assortment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
47
- filtersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
48
- filters: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
49
- filter: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
50
- shopInfo: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
51
- translatedAssortmentTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
52
- translatedFilterTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
53
- productReview: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
54
- productReviews: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
55
- productReviewsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
56
- quotation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
57
- quotations: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
58
- quotationsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
59
- searchProducts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
60
- searchAssortments: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
61
- workQueue: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
62
- workQueueCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
63
- activeWorkTypes: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
64
- enrollment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
65
- enrollments: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
66
- enrollmentsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
67
- work: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
68
- event: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
69
- events: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
70
- eventsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
71
- registeredEventTypes: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
72
- validateResetPasswordToken: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
73
- validateVerifyEmailToken: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
74
- workStatistics: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
75
- eventStatistics: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
76
- orderStatistics: (root: any, params: any, context: any, ...other: any[]) => Promise<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.2",
4
+ "version": "4.8.4",
5
5
  "main": "lib/api-index.js",
6
6
  "types": "lib/api-index.d.ts",
7
7
  "type": "module",