@unchainedshop/api 1.1.7 → 1.1.9
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 +0 -1
- package/lib/api-index.d.ts +0 -1
- package/lib/api-index.js +3 -3
- package/lib/api-index.js.map +1 -1
- package/lib/context.d.ts +1 -2
- package/lib/context.js +2 -3
- package/lib/context.js.map +1 -1
- package/lib/createBulkImportServer.d.ts +1 -1
- package/lib/createBulkImportServer.js +2 -2
- package/lib/createBulkImportServer.js.map +1 -1
- package/lib/createGraphQLServer.d.ts +1 -1
- package/lib/createGraphQLServer.js +3 -4
- package/lib/createGraphQLServer.js.map +1 -1
- package/lib/loaders/index.d.ts +1 -1
- package/lib/loaders/index.js +2 -1
- package/lib/loaders/index.js.map +1 -1
- package/lib/locale-context.d.ts +1 -1
- package/lib/locale-context.js +2 -1
- package/lib/locale-context.js.map +1 -1
- package/lib/resolvers/mutations/accounts/addEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/changePassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/createUser.d.ts +1 -5
- package/lib/resolvers/mutations/accounts/disableTOTP.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/enableTOTP.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/enrollUser.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/forgotPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/impersonate.d.ts +1 -6
- package/lib/resolvers/mutations/accounts/loginAsGuest.d.ts +1 -5
- package/lib/resolvers/mutations/accounts/loginWithPassword.d.ts +1 -5
- package/lib/resolvers/mutations/accounts/logout.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/logoutAllSessions.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/removeEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/resetPassword.d.ts +1 -5
- package/lib/resolvers/mutations/accounts/setPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/setUsername.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/verifyEmail.d.ts +1 -5
- package/lib/resolvers/mutations/assortments/addAssortmentFilter.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentLink.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentMedia.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentProduct.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/createAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentFilter.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentLink.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentMedia.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentProduct.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/setBaseAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts +1 -1
- package/lib/resolvers/mutations/bookmarks/bookmark.d.ts +1 -1
- package/lib/resolvers/mutations/bookmarks/createBookmark.d.ts +1 -1
- package/lib/resolvers/mutations/bookmarks/removeBookmark.d.ts +1 -1
- package/lib/resolvers/mutations/countries/createCountry.d.ts +1 -1
- package/lib/resolvers/mutations/countries/removeCountry.d.ts +1 -1
- package/lib/resolvers/mutations/countries/updateCountry.d.ts +1 -1
- package/lib/resolvers/mutations/currencies/createCurrency.d.ts +1 -1
- package/lib/resolvers/mutations/currencies/removeCurrency.d.ts +1 -1
- package/lib/resolvers/mutations/currencies/updateCurrency.d.ts +1 -1
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/delivery/removeDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/delivery/updateDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/enrollments/activateEnrollment.d.ts +1 -1
- package/lib/resolvers/mutations/enrollments/createEnrollment.d.ts +1 -1
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.d.ts +1 -1
- package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts +1 -1
- package/lib/resolvers/mutations/files/confirmMediaUpload.d.ts +1 -1
- package/lib/resolvers/mutations/filters/createFilter.d.ts +1 -1
- package/lib/resolvers/mutations/filters/createFilterOption.d.ts +1 -1
- package/lib/resolvers/mutations/filters/removeFilter.d.ts +1 -1
- package/lib/resolvers/mutations/filters/removeFilterOption.d.ts +1 -1
- package/lib/resolvers/mutations/filters/updateFilter.d.ts +1 -1
- package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts +1 -1
- package/lib/resolvers/mutations/languages/createLanguage.d.ts +1 -1
- package/lib/resolvers/mutations/languages/removeLanguage.d.ts +1 -1
- package/lib/resolvers/mutations/languages/updateLanguage.d.ts +1 -1
- package/lib/resolvers/mutations/orders/addCartDiscount.d.ts +1 -1
- package/lib/resolvers/mutations/orders/addCartProduct.d.ts +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.d.ts +1 -1
- package/lib/resolvers/mutations/orders/checkoutCart.d.ts +1 -1
- package/lib/resolvers/mutations/orders/confirmOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/createCart.d.ts +1 -1
- package/lib/resolvers/mutations/orders/deliverOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/emptyCart.d.ts +1 -1
- package/lib/resolvers/mutations/orders/payOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/rejectOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/removeCartDiscount.d.ts +1 -1
- package/lib/resolvers/mutations/orders/removeCartItem.d.ts +1 -1
- package/lib/resolvers/mutations/orders/removeOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/orders/setOrderPaymentProvider.d.ts +1 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateCart.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateCartItem.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.d.ts +1 -1
- package/lib/resolvers/mutations/payment/createPaymentProvider.d.ts +1 -2
- package/lib/resolvers/mutations/payment/markPaymentCredentialsPreferred.d.ts +1 -1
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.d.ts +1 -1
- package/lib/resolvers/mutations/payment/removePaymentCredentials.d.ts +1 -2
- package/lib/resolvers/mutations/payment/removePaymentProvider.d.ts +1 -2
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.d.ts +1 -1
- package/lib/resolvers/mutations/payment/updatePaymentProvider.d.ts +1 -2
- package/lib/resolvers/mutations/products/addProductAssignment.d.ts +1 -1
- package/lib/resolvers/mutations/products/addProductMedia.d.ts +1 -1
- package/lib/resolvers/mutations/products/addProductReviewVote.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProductBundleItem.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProductReview.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProductVariation.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProductVariationOption.d.ts +1 -1
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.d.ts +1 -1
- package/lib/resolvers/mutations/products/publishProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeBundleItem.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductAssignment.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductMedia.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductReview.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductReviewVote.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductVariation.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductVariationOption.d.ts +1 -1
- package/lib/resolvers/mutations/products/reorderProductMedia.d.ts +1 -1
- package/lib/resolvers/mutations/products/unpublishProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductCommerce.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductMediaTexts.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductPlan.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductReview.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductSupply.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductTexts.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductVariationTexts.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductWarehousing.d.ts +1 -1
- package/lib/resolvers/mutations/quotations/makeQuotationProposal.d.ts +1 -1
- package/lib/resolvers/mutations/quotations/rejectQuotation.d.ts +1 -1
- package/lib/resolvers/mutations/quotations/requestQuotation.d.ts +1 -1
- package/lib/resolvers/mutations/quotations/verifyQuotation.d.ts +1 -1
- package/lib/resolvers/mutations/users/heartbeat.d.ts +1 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.d.ts +1 -1
- package/lib/resolvers/mutations/users/setRoles.d.ts +1 -1
- package/lib/resolvers/mutations/users/setUserTags.d.ts +1 -1
- package/lib/resolvers/mutations/users/updateUserAvatar.d.ts +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.d.ts +1 -1
- package/lib/resolvers/mutations/utils/getOrderCart.d.ts +1 -2
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.d.ts +1 -1
- package/lib/resolvers/mutations/warehousing/removeWarehousingProvider.d.ts +1 -1
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.d.ts +1 -1
- package/lib/resolvers/mutations/worker/addWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/allocateWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/doWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/finishWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/removeWork.d.ts +1 -1
- package/lib/resolvers/queries/assortments/assortment.d.ts +1 -1
- package/lib/resolvers/queries/assortments/assortments.d.ts +1 -1
- package/lib/resolvers/queries/assortments/assortmentsCount.d.ts +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentMediaTexts.d.ts +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentTexts.d.ts +1 -1
- package/lib/resolvers/queries/countries/countries.d.ts +1 -1
- package/lib/resolvers/queries/countries/countriesCount.d.ts +1 -1
- package/lib/resolvers/queries/countries/country.d.ts +1 -1
- package/lib/resolvers/queries/currencies/currencies.d.ts +1 -1
- package/lib/resolvers/queries/currencies/currenciesCount.d.ts +1 -1
- package/lib/resolvers/queries/currencies/currency.d.ts +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvider.d.ts +1 -1
- package/lib/resolvers/queries/delivery/deliveryProviders.d.ts +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvidersCount.d.ts +1 -1
- package/lib/resolvers/queries/enrollments/enrollment.d.ts +1 -1
- package/lib/resolvers/queries/enrollments/enrollments.d.ts +1 -1
- package/lib/resolvers/queries/enrollments/enrollmentsCount.d.ts +1 -1
- package/lib/resolvers/queries/events/event.d.ts +1 -1
- package/lib/resolvers/queries/events/events.d.ts +1 -1
- package/lib/resolvers/queries/events/eventsCounts.d.ts +1 -1
- package/lib/resolvers/queries/filters/filter.d.ts +1 -1
- package/lib/resolvers/queries/filters/filters.d.ts +1 -1
- package/lib/resolvers/queries/filters/filtersCount.d.ts +1 -1
- package/lib/resolvers/queries/filters/searchAssortments.d.ts +1 -1
- package/lib/resolvers/queries/filters/searchProducts.d.ts +1 -1
- package/lib/resolvers/queries/filters/translatedFilterTexts.d.ts +1 -1
- package/lib/resolvers/queries/languages/language.d.ts +1 -1
- package/lib/resolvers/queries/languages/languages.d.ts +1 -1
- package/lib/resolvers/queries/languages/languagesCount.d.ts +1 -1
- package/lib/resolvers/queries/orders/order.d.ts +1 -1
- package/lib/resolvers/queries/orders/orders.d.ts +1 -1
- package/lib/resolvers/queries/orders/ordersCount.d.ts +1 -1
- package/lib/resolvers/queries/payment/paymentProvider.d.ts +1 -1
- package/lib/resolvers/queries/payment/paymentProviders.d.ts +1 -1
- package/lib/resolvers/queries/payment/paymentProvidersCount.d.ts +1 -1
- package/lib/resolvers/queries/products/product.d.ts +1 -1
- package/lib/resolvers/queries/products/productCatalogPrices.d.ts +1 -1
- package/lib/resolvers/queries/products/productReview.d.ts +1 -1
- package/lib/resolvers/queries/products/productReviews.d.ts +1 -1
- package/lib/resolvers/queries/products/productReviewsCount.d.ts +1 -1
- package/lib/resolvers/queries/products/products.d.ts +1 -1
- package/lib/resolvers/queries/products/productsCount.d.ts +1 -1
- package/lib/resolvers/queries/products/translatedProductMediaTexts.d.ts +1 -1
- package/lib/resolvers/queries/products/translatedProductTexts.d.ts +1 -1
- package/lib/resolvers/queries/products/translatedProductVariationTexts.d.ts +1 -1
- package/lib/resolvers/queries/quotations/quotation.d.ts +1 -1
- package/lib/resolvers/queries/quotations/quotations.d.ts +1 -1
- package/lib/resolvers/queries/quotations/quotationsCount.d.ts +1 -1
- package/lib/resolvers/queries/users/me.d.ts +1 -1
- package/lib/resolvers/queries/users/user.d.ts +1 -1
- package/lib/resolvers/queries/users/users.d.ts +1 -1
- package/lib/resolvers/queries/users/usersCount.d.ts +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvider.d.ts +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProviders.d.ts +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvidersCount.d.ts +1 -1
- package/lib/resolvers/queries/worker/activeWorkTypes.d.ts +1 -1
- package/lib/resolvers/queries/worker/work.d.ts +1 -1
- package/lib/resolvers/queries/worker/workQueueCount.d.ts +1 -1
- package/lib/resolvers/type/login-method-response-types.d.ts +1 -19
- package/lib/resolvers/type/order/order-delivery-types.d.ts +1 -3
- package/lib/resolvers/type/order/order-payment-types.d.ts +1 -3
- package/lib/resolvers/type/user-types.d.ts +1 -1
- package/lib/user-context.d.ts +1 -1
- package/package.json +8 -8
- package/src/api-index.ts +9 -3
- package/src/context.ts +2 -3
- package/src/createBulkImportServer.ts +2 -2
- package/src/createGraphQLServer.ts +3 -4
- package/src/loaders/index.ts +3 -1
- package/src/locale-context.ts +3 -1
- package/src/resolvers/type/user-types.ts +1 -1
- package/tsconfig.build.json +13 -5
- package/lib/resolvers/queries/delivery/deliveryInterfaces.d.ts +0 -5
- package/lib/resolvers/queries/payment/paymentInterfaces.d.ts +0 -5
- package/lib/resolvers/queries/warehousing/warehousingInterfaces.d.ts +0 -5
- package/lib/resolvers/queries/worker/workQueue.d.ts +0 -14
- package/lib/resolvers/type/delivery-provider-types.d.ts +0 -27
- package/lib/resolvers/type/payment/payment-provider-types.d.ts +0 -12
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function verifyQuotation(root: Root, params: {
|
|
3
3
|
quotationId: string;
|
|
4
4
|
quotationContext?: any;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
|
-
export default function heartbeat(root: Root, _: any, { countryContext, localeContext, modules, remoteAddress, remotePort, userAgent, userId }: Context): Promise<
|
|
2
|
+
export default function heartbeat(root: Root, _: any, { countryContext, localeContext, modules, remoteAddress, remotePort, userAgent, userId }: Context): Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function prepareUserAvatarUpload(root: Root, params: {
|
|
3
3
|
mediaName: string;
|
|
4
4
|
userId: string;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function updateUserProfile(root: Root, params: {
|
|
3
3
|
roles: Array<string>;
|
|
4
4
|
userId: string;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function updateUserProfile(root: Root, params: {
|
|
3
3
|
tags: Array<string>;
|
|
4
4
|
userId: string;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Context } from '@unchainedshop/types/api';
|
|
2
1
|
import { User } from '@unchainedshop/types/user';
|
|
3
2
|
export declare const getOrderCart: (params: {
|
|
4
3
|
orderId?: string;
|
|
5
4
|
user: User;
|
|
6
|
-
}, context: Context) => Promise<
|
|
5
|
+
}, context: Context) => Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
import { WarehousingProvider } from '@unchainedshop/types/warehousing';
|
|
3
3
|
export default function createWarehousingProvider(root: Root, params: {
|
|
4
4
|
warehousingProvider: WarehousingProvider;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function removeWarehousingProvider(root: Root, { warehousingProviderId }: {
|
|
3
3
|
warehousingProviderId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -3,4 +3,4 @@ import { WarehousingProvider } from '@unchainedshop/types/warehousing';
|
|
|
3
3
|
export default function updateWarehousingProvider(root: Root, params: {
|
|
4
4
|
warehousingProvider: WarehousingProvider;
|
|
5
5
|
warehousingProviderId: string;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { WorkData } from '@unchainedshop/types/worker';
|
|
3
|
-
export default function addWork(root: Root, workData: WorkData, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function addWork(root: Root, workData: WorkData, { modules, userId }: Context): Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function allocateWork(root: Root, { types, worker }: {
|
|
3
3
|
types?: Array<string>;
|
|
4
4
|
worker?: string;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { Work } from '@unchainedshop/types/worker';
|
|
3
|
-
export default function doWork(root: Root, work: Work, context: Context): Promise<
|
|
3
|
+
export default function doWork(root: Root, work: Work, context: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function removeWork(root: Root, { workId }: {
|
|
3
3
|
workId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function assortment(root: Root, { assortmentId, slug }: {
|
|
3
3
|
assortmentId?: string;
|
|
4
4
|
slug?: string;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -4,4 +4,4 @@ export default function assortments(root: Root, params: AssortmentQuery & {
|
|
|
4
4
|
limit?: number;
|
|
5
5
|
offset?: number;
|
|
6
6
|
sort?: Array<SortOption>;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { AssortmentQuery } from '@unchainedshop/types/assortments';
|
|
3
|
-
export default function assortmentsCount(root: Root, params: AssortmentQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function assortmentsCount(root: Root, params: AssortmentQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function translatedAssortmentMediaTexts(root: Root, { assortmentMediaId }: {
|
|
3
3
|
assortmentMediaId: any;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function translatedAssortmentTexts(root: Root, { assortmentId }: {
|
|
3
3
|
assortmentId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -4,4 +4,4 @@ export default function countries(root: Root, params: CountryQuery & {
|
|
|
4
4
|
limit?: number;
|
|
5
5
|
offset?: number;
|
|
6
6
|
sort?: Array<SortOption>;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { CountryQuery } from '@unchainedshop/types/countries';
|
|
3
|
-
export default function countriesCount(root: Root, params: CountryQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function countriesCount(root: Root, params: CountryQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
export default function country(root: Root, { countryId }: {
|
|
3
3
|
countryId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -4,4 +4,4 @@ export default function currencies(root: Root, params: CurrencyQuery & {
|
|
|
4
4
|
limit: number;
|
|
5
5
|
offset: number;
|
|
6
6
|
sort?: Array<SortOption>;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
import { CurrencyQuery } from '@unchainedshop/types/currencies';
|
|
3
|
-
export default function currenciesCount(root: Root, params: CurrencyQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function currenciesCount(root: Root, params: CurrencyQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
export default function currency(root: Root, { currencyId }: {
|
|
3
3
|
currencyId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function deliveryProvider(root: Root, { deliveryProviderId }: {
|
|
3
3
|
deliveryProviderId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { DeliveryProviderQuery } from '@unchainedshop/types/delivery';
|
|
3
|
-
export default function deliveryProviders(root: Root, params: DeliveryProviderQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function deliveryProviders(root: Root, params: DeliveryProviderQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { DeliveryProviderQuery } from '@unchainedshop/types/delivery';
|
|
3
|
-
export default function deliveryProvidersCount(root: Root, params: DeliveryProviderQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function deliveryProvidersCount(root: Root, params: DeliveryProviderQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function enrollment(root: Root, { enrollmentId }: {
|
|
3
3
|
enrollmentId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -4,4 +4,4 @@ export default function enrollments(root: Root, params: EnrollmentQuery & {
|
|
|
4
4
|
limit?: number;
|
|
5
5
|
offset?: number;
|
|
6
6
|
sort?: Array<SortOption>;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { EnrollmentQuery } from '@unchainedshop/types/enrollments';
|
|
3
|
-
export default function enrollmentsCount(root: Root, params: EnrollmentQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function enrollmentsCount(root: Root, params: EnrollmentQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { _ID } from '@unchainedshop/types/common';
|
|
|
2
2
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
3
3
|
export default function event(root: Root, { eventId }: {
|
|
4
4
|
eventId: _ID;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
import { EventQuery } from '@unchainedshop/types/events';
|
|
3
|
-
export default function eventsCount(root: Root, params: EventQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function eventsCount(root: Root, params: EventQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
export default function filter(root: Root, { filterId }: {
|
|
3
3
|
filterId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -4,4 +4,4 @@ export default function filters(root: Root, params: FilterQuery & {
|
|
|
4
4
|
limit?: number;
|
|
5
5
|
offset?: number;
|
|
6
6
|
sort?: Array<SortOption>;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
import { FilterQuery } from '@unchainedshop/types/filters';
|
|
3
|
-
export default function filtersCount(root: Root, params: FilterQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function filtersCount(root: Root, params: FilterQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { SearchQuery } from '@unchainedshop/types/filters';
|
|
3
|
-
export default function searchAssortments(root: Root, query: SearchQuery, context: Context): Promise<
|
|
3
|
+
export default function searchAssortments(root: Root, query: SearchQuery, context: Context): Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { Root, Context } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function translatedFilterTexts(root: Root, { filterId, filterOptionValue }: {
|
|
3
3
|
filterId: string;
|
|
4
4
|
filterOptionValue?: string;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function language(root: Root, { languageId }: {
|
|
3
3
|
languageId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -4,4 +4,4 @@ export default function languages(root: Root, params: LanguageQuery & {
|
|
|
4
4
|
limit: number;
|
|
5
5
|
offset: number;
|
|
6
6
|
sort?: Array<SortOption>;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { LanguageQuery } from '@unchainedshop/types/languages';
|
|
3
|
-
export default function languagesCount(root: Root, params: LanguageQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function languagesCount(root: Root, params: LanguageQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
export default function order(root: Root, { orderId }: {
|
|
3
3
|
orderId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -3,4 +3,4 @@ import { OrderQuery } from '@unchainedshop/types/orders';
|
|
|
3
3
|
export default function orders(root: Root, params: OrderQuery & {
|
|
4
4
|
limit?: number;
|
|
5
5
|
offset?: number;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
import { OrderQuery } from '@unchainedshop/types/orders';
|
|
3
|
-
export default function ordersCount(root: Root, params: OrderQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function ordersCount(root: Root, params: OrderQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function paymentProvider(root: Root, { paymentProviderId }: {
|
|
3
3
|
paymentProviderId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PaymentProviderQuery } from '@unchainedshop/types/payments';
|
|
2
2
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
3
|
-
export default function paymentProviders(root: Root, params: PaymentProviderQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function paymentProviders(root: Root, params: PaymentProviderQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PaymentProviderQuery } from '@unchainedshop/types/payments';
|
|
2
2
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
3
|
-
export default function paymentProvidersCount(root: Root, params: PaymentProviderQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function paymentProvidersCount(root: Root, params: PaymentProviderQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function product(root: Root, { productId, slug }: {
|
|
3
3
|
productId?: string;
|
|
4
4
|
slug?: string;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function productCatalogPrices(root: Root, { productId }: {
|
|
3
3
|
productId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
export default function productReview(root: Root, { productReviewId }: {
|
|
3
3
|
productReviewId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -4,4 +4,4 @@ export default function productReviews(root: Root, params: {
|
|
|
4
4
|
offset: number;
|
|
5
5
|
sort: Array<SortOption>;
|
|
6
6
|
queryString?: string;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
import { ProductReviewQuery } from '@unchainedshop/types/products.reviews';
|
|
3
|
-
export default function productReviewsCount(root: Root, params: ProductReviewQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function productReviewsCount(root: Root, params: ProductReviewQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -4,4 +4,4 @@ export default function products(root: Root, params: ProductQuery & {
|
|
|
4
4
|
sort: Array<SortOption>;
|
|
5
5
|
limit: number;
|
|
6
6
|
offset: number;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { ProductQuery } from '@unchainedshop/types/products';
|
|
3
|
-
export default function productsCount(root: Root, params: ProductQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function productsCount(root: Root, params: ProductQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function translatedProductMediaTexts(root: Root, { productMediaId }: {
|
|
3
3
|
productMediaId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function translatedProductTexts(root: Root, { productId }: {
|
|
3
3
|
productId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function translatedProductVariationTexts(root: Root, params: {
|
|
3
3
|
productVariationId: string;
|
|
4
4
|
productVariationOptionValue?: string;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function quotation(root: Root, { quotationId }: {
|
|
3
3
|
quotationId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -4,4 +4,4 @@ export default function quotations(root: Root, params: QuotationQuery & {
|
|
|
4
4
|
limit?: number;
|
|
5
5
|
offset?: number;
|
|
6
6
|
sort?: Array<SortOption>;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { QuotationQuery } from '@unchainedshop/types/quotations';
|
|
3
|
-
export default function quotationsCount(root: Root, params: QuotationQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function quotationsCount(root: Root, params: QuotationQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
|
-
export default function me(root: Root, params: any, { userId, user, remoteAddress }: Context): Promise<
|
|
2
|
+
export default function me(root: Root, params: any, { userId, user, remoteAddress }: Context): Promise<Context>;
|
|
@@ -3,4 +3,4 @@ import { UserQuery } from '@unchainedshop/types/user';
|
|
|
3
3
|
export default function users(root: Root, params: UserQuery & {
|
|
4
4
|
limit?: number;
|
|
5
5
|
offset?: number;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { UserQuery } from '@unchainedshop/types/user';
|
|
3
|
-
export default function usersCount(root: Root, params: UserQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function usersCount(root: Root, params: UserQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function warehousingProvider(root: Root, { warehousingProviderId }: {
|
|
3
3
|
warehousingProviderId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { WarehousingProviderQuery } from '@unchainedshop/types/warehousing';
|
|
3
|
-
export default function warehousingProviders(root: Root, params: WarehousingProviderQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function warehousingProviders(root: Root, params: WarehousingProviderQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
import { WarehousingProviderQuery } from '@unchainedshop/types/warehousing';
|
|
3
|
-
export default function warehousingProvidersCount(root: Root, params: WarehousingProviderQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function warehousingProvidersCount(root: Root, params: WarehousingProviderQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
|
-
export default function activeWorkTypes(root: Root, _: any, { modules, userId }: Context): Promise<
|
|
2
|
+
export default function activeWorkTypes(root: Root, _: any, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
import { WorkQueueQuery } from '@unchainedshop/types/worker';
|
|
3
|
-
export default function workQueueCount(root: Root, params: WorkQueueQuery, { modules, userId }: Context): Promise<
|
|
3
|
+
export default function workQueueCount(root: Root, params: WorkQueueQuery, { modules, userId }: Context): Promise<any>;
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
import { Context } from '@unchainedshop/types/api';
|
|
2
1
|
export declare const LoginMethodResponse: {
|
|
3
2
|
user: ({ id }: {
|
|
4
3
|
id: string;
|
|
5
|
-
}, _: never, { modules }: Context) => Promise<
|
|
6
|
-
_id?: string;
|
|
7
|
-
avatarId?: string;
|
|
8
|
-
emails: import("@unchainedshop/types/user").Email[];
|
|
9
|
-
guest: boolean;
|
|
10
|
-
initialPassword: boolean;
|
|
11
|
-
lastBillingAddress?: import("@unchainedshop/types/common").Address;
|
|
12
|
-
lastContact?: import("@unchainedshop/types/common").Contact;
|
|
13
|
-
lastLogin?: import("@unchainedshop/types/user").UserLastLogin;
|
|
14
|
-
profile?: import("@unchainedshop/types/user").UserProfile;
|
|
15
|
-
roles: string[];
|
|
16
|
-
services: any;
|
|
17
|
-
tags?: string[];
|
|
18
|
-
username?: string;
|
|
19
|
-
meta?: any;
|
|
20
|
-
} & import("@unchainedshop/types/common").TimestampFields & {
|
|
21
|
-
_inLoginMethodResponse: boolean;
|
|
22
|
-
}>;
|
|
4
|
+
}, _: never, { modules }: Context) => Promise<any>;
|
|
23
5
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { OrderDelivery as OrderDeliveryType } from '@unchainedshop/types/orders.deliveries';
|
|
2
|
-
import { Context } from '@unchainedshop/types/api';
|
|
3
1
|
export declare const OrderDelivery: {
|
|
4
|
-
__resolveType: (obj: OrderDeliveryType, { modules }: Context) => Promise<
|
|
2
|
+
__resolveType: (obj: OrderDeliveryType, { modules }: Context) => Promise<string>;
|
|
5
3
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Context } from '@unchainedshop/types/api';
|
|
2
|
-
import { OrderPayment as OrderPaymentType } from '@unchainedshop/types/orders.payments';
|
|
3
1
|
export declare const OrderPayment: {
|
|
4
|
-
__resolveType: (obj: OrderPaymentType, { modules }: Context) => Promise<
|
|
2
|
+
__resolveType: (obj: OrderPaymentType, { modules }: Context) => Promise<string>;
|
|
5
3
|
};
|
|
@@ -9,7 +9,7 @@ import { Order } from '@unchainedshop/types/orders';
|
|
|
9
9
|
import { PaymentCredentials } from '@unchainedshop/types/payments';
|
|
10
10
|
import { Quotation } from '@unchainedshop/types/quotations';
|
|
11
11
|
import { Email, User as UserType, UserProfile } from '@unchainedshop/types/user';
|
|
12
|
-
import { Locale } from 'locale';
|
|
12
|
+
import type { Locale } from 'locale';
|
|
13
13
|
declare type HelperType<P, T> = (user: UserType, params: P, context: Context) => Promise<T>;
|
|
14
14
|
export interface UserHelperTypes {
|
|
15
15
|
_id: HelperType<any, boolean>;
|
package/lib/user-context.d.ts
CHANGED