@unchainedshop/api 1.1.9 → 1.2.0
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/jest.config.js +5 -0
- package/lib/acl.d.ts +1 -0
- package/lib/api-index.d.ts +1 -0
- package/lib/context.d.ts +1 -0
- package/lib/context.js +8 -3
- package/lib/context.js.map +1 -1
- package/lib/createGraphQLServer.js +3 -0
- package/lib/createGraphQLServer.js.map +1 -1
- package/lib/loaders/index.d.ts +1 -1
- package/lib/locale-context.d.ts +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 +5 -1
- 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 +6 -1
- package/lib/resolvers/mutations/accounts/loginAsGuest.d.ts +5 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.d.ts +5 -1
- 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 +5 -1
- 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 +5 -1
- 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 +2 -1
- 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 +2 -1
- package/lib/resolvers/mutations/payment/removePaymentProvider.d.ts +2 -1
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.d.ts +1 -1
- package/lib/resolvers/mutations/payment/updatePaymentProvider.d.ts +2 -1
- 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 +2 -1
- 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/deliveryInterfaces.d.ts +5 -0
- 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/paymentInterfaces.d.ts +5 -0
- 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/warehousingInterfaces.d.ts +5 -0
- 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/workQueue.d.ts +14 -0
- package/lib/resolvers/queries/worker/workQueueCount.d.ts +1 -1
- package/lib/resolvers/type/delivery-provider-types.d.ts +27 -0
- package/lib/resolvers/type/login-method-response-types.d.ts +19 -1
- package/lib/resolvers/type/order/order-delivery-types.d.ts +3 -1
- package/lib/resolvers/type/order/order-payment-types.d.ts +3 -1
- package/lib/resolvers/type/payment/payment-provider-types.d.ts +12 -0
- package/lib/schema/types/worker.js +1 -1
- package/lib/user-context.d.ts +1 -1
- package/package.json +19 -16
- package/src/context.ts +12 -4
- package/src/createGraphQLServer.ts +5 -0
- package/src/schema/types/worker.js +1 -1
- package/tsconfig.json +26 -5
- package/license +0 -274
- package/tsconfig.build.json +0 -34
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function removeCartDiscount(root: Root, { discountId }: {
|
|
3
3
|
discountId: string;
|
|
4
|
-
}, context: Context): Promise<
|
|
4
|
+
}, context: Context): Promise<import("@unchainedshop/types/orders.discounts").OrderDiscount>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function removeCartItem(root: Root, { itemId }: {
|
|
3
3
|
itemId: string;
|
|
4
|
-
}, context: Context): Promise<
|
|
4
|
+
}, context: Context): Promise<import("@unchainedshop/types/orders.positions").OrderPosition>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Root, Context } from '@unchainedshop/types/api';
|
|
2
2
|
export default function removeOrder(root: Root, { orderId }: {
|
|
3
3
|
orderId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/orders").Order>;
|
|
@@ -2,4 +2,4 @@ import { Root, Context } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function setOrderDeliveryProvider(root: Root, params: {
|
|
3
3
|
orderId: string;
|
|
4
4
|
deliveryProviderId: string;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/orders").Order>;
|
|
@@ -2,4 +2,4 @@ import { Root, Context } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function setOrderPaymentProvider(root: Root, params: {
|
|
3
3
|
orderId: string;
|
|
4
4
|
paymentProviderId: string;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/orders").Order>;
|
|
@@ -8,5 +8,5 @@ interface UpdateCartParams {
|
|
|
8
8
|
deliveryProviderId?: string;
|
|
9
9
|
meta?: any;
|
|
10
10
|
}
|
|
11
|
-
export default function updateCart(root: Root, params: UpdateCartParams, context: Context): Promise<
|
|
11
|
+
export default function updateCart(root: Root, params: UpdateCartParams, context: Context): Promise<import("@unchainedshop/types/orders").Order>;
|
|
12
12
|
export {};
|
|
@@ -3,4 +3,4 @@ export default function updateOrderDeliveryPickUp(root: Root, params: {
|
|
|
3
3
|
orderDeliveryId: string;
|
|
4
4
|
orderPickUpLocationId: string;
|
|
5
5
|
meta: any;
|
|
6
|
-
}, context: Context): Promise<
|
|
6
|
+
}, context: Context): Promise<import("@unchainedshop/types/orders.deliveries").OrderDelivery>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function updateOrderPaymentCard(root: Root, { orderPaymentId, meta }: {
|
|
3
3
|
orderPaymentId: string;
|
|
4
4
|
meta?: any;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/orders.payments").OrderPayment>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function updateOrderPaymentGeneric(root: Root, { orderPaymentId, meta }: {
|
|
3
3
|
orderPaymentId: string;
|
|
4
4
|
meta?: any;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/orders.payments").OrderPayment>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function updateOrderPaymentInvoice(root: Root, { orderPaymentId, meta }: {
|
|
3
3
|
orderPaymentId: string;
|
|
4
4
|
meta?: any;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/orders.payments").OrderPayment>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Context, Root } from '@unchainedshop/types/api';
|
|
1
2
|
import { PaymentProvider } from '@unchainedshop/types/payments';
|
|
2
3
|
declare const _default: (root: Root, { paymentProvider }: {
|
|
3
4
|
paymentProvider: PaymentProvider;
|
|
4
|
-
}, { modules, userId }: Context) => Promise<
|
|
5
|
+
}, { modules, userId }: Context) => Promise<PaymentProvider>;
|
|
5
6
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function makePaymentCredentialsPreferred(root: Root, { paymentCredentialsId }: {
|
|
3
3
|
paymentCredentialsId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/payments").PaymentCredentials>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function registerPaymentCredentials(root: Root, params: {
|
|
3
3
|
paymentProviderId: string;
|
|
4
4
|
transactionContext: any;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/payments").PaymentCredentials>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { Context, Root } from '@unchainedshop/types/api';
|
|
1
2
|
declare const _default: (root: Root, { paymentCredentialsId }: {
|
|
2
3
|
paymentCredentialsId: string;
|
|
3
|
-
}, { modules, userId }: Context) => Promise<
|
|
4
|
+
}, { modules, userId }: Context) => Promise<import("@unchainedshop/types/payments").PaymentCredentials>;
|
|
4
5
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { Context, Root } from '@unchainedshop/types/api';
|
|
1
2
|
declare const _default: (root: Root, { paymentProviderId }: {
|
|
2
3
|
paymentProviderId: string;
|
|
3
|
-
}, { modules, userId }: Context) => Promise<
|
|
4
|
+
}, { modules, userId }: Context) => Promise<import("@unchainedshop/types/payments").PaymentProvider>;
|
|
4
5
|
export default _default;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function signPaymentProviderForCredentialRegistration(root: Root, params: {
|
|
3
3
|
paymentProviderId: string;
|
|
4
4
|
transactionContext: any;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<string>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Context, Root } from '@unchainedshop/types/api';
|
|
1
2
|
import { PaymentProvider } from '@unchainedshop/types/payments';
|
|
2
3
|
declare const _default: (root: Root, { paymentProviderId, paymentProvider, }: {
|
|
3
4
|
paymentProviderId: string;
|
|
4
5
|
paymentProvider: PaymentProvider;
|
|
5
|
-
}, { modules, userId }: Context) => Promise<
|
|
6
|
+
}, { modules, userId }: Context) => Promise<PaymentProvider>;
|
|
6
7
|
export default _default;
|
|
@@ -4,4 +4,4 @@ export default function addProductAssignment(root: Root, params: {
|
|
|
4
4
|
proxyId: string;
|
|
5
5
|
productId: string;
|
|
6
6
|
vectors: Array<ProductConfiguration>;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function addProductMedia(root: Root, { media, productId }: {
|
|
3
3
|
media: any;
|
|
4
4
|
productId: any;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/products.media").ProductMedia>;
|
|
@@ -4,4 +4,4 @@ export default function addProductReviewVote(root: Root, params: {
|
|
|
4
4
|
type: ProductReviewVoteType;
|
|
5
5
|
meta?: any;
|
|
6
6
|
productReviewId: string;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products.reviews").ProductReview>;
|
|
@@ -3,4 +3,4 @@ import { ProductBundleItem } from '@unchainedshop/types/products';
|
|
|
3
3
|
export default function createProductBundleItem(root: Root, { productId, item }: {
|
|
4
4
|
productId: string;
|
|
5
5
|
item: ProductBundleItem;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -3,4 +3,4 @@ import { ProductReview } from '@unchainedshop/types/products.reviews';
|
|
|
3
3
|
export default function createProductReview(root: Root, { productId, productReview }: {
|
|
4
4
|
productId: string;
|
|
5
5
|
productReview: ProductReview;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<ProductReview>;
|
|
@@ -7,4 +7,4 @@ export default function F(root: Root, params: {
|
|
|
7
7
|
type: ProductVariationType;
|
|
8
8
|
title: string;
|
|
9
9
|
};
|
|
10
|
-
}, { modules, localeContext, userId }: Context): Promise<
|
|
10
|
+
}, { modules, localeContext, userId }: Context): Promise<import("@unchainedshop/types/products.variations").ProductVariation>;
|
|
@@ -5,4 +5,4 @@ export default function createProductVariationOption(root: Root, params: {
|
|
|
5
5
|
title: string;
|
|
6
6
|
};
|
|
7
7
|
productVariationId: string;
|
|
8
|
-
}, { modules, localeContext, userId }: Context): Promise<
|
|
8
|
+
}, { modules, localeContext, userId }: Context): Promise<import("@unchainedshop/types/products.variations").ProductVariation>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function prepareProductMediaUpload(root: Root, { mediaName, productId }: {
|
|
3
3
|
mediaName: string;
|
|
4
4
|
productId: string;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/files").SignedFileUpload>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function publishProduct(root: Root, { productId }: {
|
|
3
3
|
productId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function removeBundleItem(root: Root, { productId, index }: {
|
|
3
3
|
productId: string;
|
|
4
4
|
index: number;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function removeProduct(root: Root, { productId }: {
|
|
3
3
|
productId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -3,4 +3,4 @@ import { ProductConfiguration } from '@unchainedshop/types/products';
|
|
|
3
3
|
export default function removeProductAssignment(root: Root, params: {
|
|
4
4
|
proxyId: string;
|
|
5
5
|
vectors: Array<ProductConfiguration>;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function removeProductMedia(root: Root, { productMediaId }: {
|
|
3
3
|
productMediaId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products.media").ProductMedia>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function removeProductReview(root: Root, { productReviewId }: {
|
|
3
3
|
productReviewId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products.reviews").ProductReview>;
|
|
@@ -3,4 +3,4 @@ import { ProductReviewVoteType } from '@unchainedshop/types/products.reviews';
|
|
|
3
3
|
export default function removeProductReviewVote(root: Root, params: {
|
|
4
4
|
productReviewId: string;
|
|
5
5
|
type: ProductReviewVoteType;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products.reviews").ProductReview>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function removeProductVariation(root: Root, { productVariationId }: {
|
|
3
3
|
productVariationId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products.variations").ProductVariation>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function removeProductVariationOption(root: Root, params: {
|
|
3
3
|
productVariationId: string;
|
|
4
4
|
productVariationOptionValue: string;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products.variations").ProductVariation>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
2
|
export default function unpublishProduct(root: Root, { productId }: {
|
|
3
3
|
productId: string;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -3,4 +3,4 @@ import { Product } from '@unchainedshop/types/products';
|
|
|
3
3
|
export default function updateProduct(root: Root, { product, productId }: {
|
|
4
4
|
product: Product;
|
|
5
5
|
productId: string;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<Product>;
|
|
@@ -3,4 +3,4 @@ import { ProductCommerce } from '@unchainedshop/types/products';
|
|
|
3
3
|
export default function updateProductCommerce(root: Root, { commerce, productId }: {
|
|
4
4
|
commerce: ProductCommerce;
|
|
5
5
|
productId: string;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -3,4 +3,4 @@ import { ProductMediaText } from '@unchainedshop/types/products.media';
|
|
|
3
3
|
export default function updateProductMediaTexts(root: Root, { productMediaId, texts }: {
|
|
4
4
|
productMediaId: string;
|
|
5
5
|
texts: Array<ProductMediaText>;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<ProductMediaText[]>;
|
|
@@ -3,4 +3,4 @@ import { ProductPlan } from '@unchainedshop/types/products';
|
|
|
3
3
|
export default function updateProductPlan(root: Root, { plan, productId }: {
|
|
4
4
|
plan: ProductPlan;
|
|
5
5
|
productId: string;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -3,4 +3,4 @@ import { ProductReview } from '@unchainedshop/types/products.reviews';
|
|
|
3
3
|
export default function updateProductReview(root: Root, params: {
|
|
4
4
|
productReviewId: string;
|
|
5
5
|
productReview: ProductReview;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<ProductReview>;
|
|
@@ -3,4 +3,4 @@ import { ProductSupply } from '@unchainedshop/types/products';
|
|
|
3
3
|
export default function updateProductSupply(root: Root, { supply, productId }: {
|
|
4
4
|
supply: ProductSupply;
|
|
5
5
|
productId: string;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -2,4 +2,4 @@ import { Root, Context } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function updateProductTexts(root: Root, { texts, productId }: {
|
|
3
3
|
texts: any;
|
|
4
4
|
productId: any;
|
|
5
|
-
}, { modules, userId }: Context): Promise<
|
|
5
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").ProductText[]>;
|
|
@@ -4,4 +4,4 @@ export default function F(root: Root, params: {
|
|
|
4
4
|
productVariationId: string;
|
|
5
5
|
productVariationOptionValue?: string;
|
|
6
6
|
texts: Array<ProductVariationText>;
|
|
7
|
-
}, { modules, userId }: Context): Promise<
|
|
7
|
+
}, { modules, userId }: Context): Promise<ProductVariationText[]>;
|
|
@@ -3,4 +3,4 @@ import { ProductWarehousing } from '@unchainedshop/types/products';
|
|
|
3
3
|
export default function updateProductWarehousing(root: Root, { warehousing, productId }: {
|
|
4
4
|
warehousing: ProductWarehousing;
|
|
5
5
|
productId: string;
|
|
6
|
-
}, { modules, userId }: Context): Promise<
|
|
6
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/products").Product>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function makeQuotationProposal(root: Root, params: {
|
|
3
3
|
quotationId: string;
|
|
4
4
|
quotationContext?: any;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/quotations").Quotation>;
|
|
@@ -2,4 +2,4 @@ import { Context, Root } from '@unchainedshop/types/api';
|
|
|
2
2
|
export default function rejectQuotation(root: Root, params: {
|
|
3
3
|
quotationId: string;
|
|
4
4
|
quotationContext?: any;
|
|
5
|
-
}, context: Context): Promise<
|
|
5
|
+
}, context: Context): Promise<import("@unchainedshop/types/quotations").Quotation>;
|
|
@@ -3,4 +3,4 @@ import { Configuration } from '@unchainedshop/types/common';
|
|
|
3
3
|
export default function requestQuotation(root: Root, params: {
|
|
4
4
|
productId: string;
|
|
5
5
|
configuration: Configuration;
|
|
6
|
-
}, context: Context): Promise<
|
|
6
|
+
}, context: Context): Promise<import("@unchainedshop/types/quotations").Quotation>;
|
|
@@ -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<import("@unchainedshop/types/quotations").Quotation>;
|
|
@@ -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<import("@unchainedshop/types/user").User>;
|
|
@@ -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<import("@unchainedshop/types/files").SignedFileUpload>;
|
|
@@ -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<import("@unchainedshop/types/user").User>;
|
|
@@ -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<import("@unchainedshop/types/user").User>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Context } from '@unchainedshop/types/api';
|
|
1
2
|
import { User } from '@unchainedshop/types/user';
|
|
2
3
|
export declare const getOrderCart: (params: {
|
|
3
4
|
orderId?: string;
|
|
4
5
|
user: User;
|
|
5
|
-
}, context: Context) => Promise<
|
|
6
|
+
}, context: Context) => Promise<import("@unchainedshop/types/orders").Order>;
|
|
@@ -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<WarehousingProvider>;
|
|
@@ -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<import("@unchainedshop/types/warehousing").WarehousingProvider>;
|
|
@@ -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<WarehousingProvider>;
|
|
@@ -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<import("@unchainedshop/types/worker").Work>;
|
|
@@ -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<import("@unchainedshop/types/worker").Work>;
|
|
@@ -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<any
|
|
3
|
+
export default function doWork(root: Root, work: Work, context: Context): Promise<import("@unchainedshop/types/worker").WorkResult<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<import("@unchainedshop/types/worker").Work>;
|
|
@@ -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<import("@unchainedshop/types/assortments").Assortment>;
|
|
@@ -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<import("@unchainedshop/types/assortments").Assortment[]>;
|
|
@@ -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<number>;
|