@unchainedshop/api 1.1.9 → 1.2.2
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/api-index.js +1 -1
- 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 +18 -16
- package/src/api-index.ts +1 -1
- 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 translatedAssortmentMediaTexts(root: Root, { assortmentMediaId }: {
|
|
3
3
|
assortmentMediaId: any;
|
|
4
|
-
}, { modules, userId }: Context): Promise<
|
|
4
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/assortments.media").AssortmentMediaText[]>;
|
|
@@ -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<import("@unchainedshop/types/assortments").AssortmentText[]>;
|
|
@@ -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<import("@unchainedshop/types/countries").Country[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/countries").Country>;
|
|
@@ -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<import("@unchainedshop/types/currencies").Currency[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/currencies").Currency>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
|
+
import { DeliveryProviderType } from '@unchainedshop/types/delivery';
|
|
3
|
+
export default function deliveryInterfaces(root: Root, { type }: {
|
|
4
|
+
type: DeliveryProviderType;
|
|
5
|
+
}, { modules, userId }: Context): import("@unchainedshop/types/delivery").DeliveryInterface[];
|
|
@@ -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<import("@unchainedshop/types/delivery").DeliveryProvider>;
|
|
@@ -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<import("@unchainedshop/types/delivery").DeliveryProvider[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/enrollments").Enrollment>;
|
|
@@ -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<import("@unchainedshop/types/enrollments").Enrollment[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/events").Event>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/filters").Filter>;
|
|
@@ -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<import("@unchainedshop/types/filters").Filter[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/filters").SearchAssortments>;
|
|
@@ -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<import("@unchainedshop/types/filters").FilterText[]>;
|
|
@@ -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<import("@unchainedshop/types/languages").Language>;
|
|
@@ -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<import("@unchainedshop/types/languages").Language[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/orders").Order>;
|
|
@@ -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<import("@unchainedshop/types/orders").Order[]>;
|
|
@@ -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<number>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PaymentProviderType } from '@unchainedshop/types/payments';
|
|
2
|
+
import { Context, Root } from '@unchainedshop/types/api';
|
|
3
|
+
export default function paymentInterfaces(root: Root, { type }: {
|
|
4
|
+
type: PaymentProviderType;
|
|
5
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/payments").PaymentInterface[]>;
|
|
@@ -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<import("@unchainedshop/types/payments").PaymentProvider>;
|
|
@@ -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<import("@unchainedshop/types/payments").PaymentProvider[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/products").Product>;
|
|
@@ -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<import("@unchainedshop/types/products").ProductPrice[]>;
|
|
@@ -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<import("@unchainedshop/types/products.reviews").ProductReview>;
|
|
@@ -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<import("@unchainedshop/types/products.reviews").ProductReview[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/products").Product[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/products.media").ProductMediaText[]>;
|
|
@@ -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<import("@unchainedshop/types/products").ProductText[]>;
|
|
@@ -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<import("@unchainedshop/types/products.variations").ProductVariationText[]>;
|
|
@@ -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<import("@unchainedshop/types/quotations").Quotation>;
|
|
@@ -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<import("@unchainedshop/types/quotations").Quotation[]>;
|
|
@@ -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<number>;
|
|
@@ -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<import("@unchainedshop/types/user").User>;
|
|
@@ -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<import("@unchainedshop/types/user").User[]>;
|
|
@@ -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<number>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Context, Root } from '@unchainedshop/types/api';
|
|
2
|
+
import { WarehousingProviderType } from '@unchainedshop/types/warehousing';
|
|
3
|
+
export default function warehousingInterfaces(root: Root, params: {
|
|
4
|
+
type: WarehousingProviderType;
|
|
5
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/warehousing").WarehousingInterface[]>;
|
|
@@ -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<import("@unchainedshop/types/warehousing").WarehousingProvider>;
|
|
@@ -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<import("@unchainedshop/types/warehousing").WarehousingProvider[]>;
|
|
@@ -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<number>;
|
|
@@ -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<string[]>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Root, Context, SortOption } from '@unchainedshop/types/api';
|
|
2
|
+
import { WorkStatus } from '@unchainedshop/types/worker';
|
|
3
|
+
export default function workers(root: Root, { limit, offset, status, types, created, queryString, sort, }: {
|
|
4
|
+
limit?: number;
|
|
5
|
+
offset?: number;
|
|
6
|
+
queryString?: string;
|
|
7
|
+
status?: Array<WorkStatus>;
|
|
8
|
+
types?: Array<string>;
|
|
9
|
+
created?: {
|
|
10
|
+
start: Date;
|
|
11
|
+
end: Date;
|
|
12
|
+
};
|
|
13
|
+
sort?: Array<SortOption>;
|
|
14
|
+
}, { modules, userId }: Context): Promise<import("@unchainedshop/types/worker").Work[]>;
|
|
@@ -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<number>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Context } from '@unchainedshop/types/api';
|
|
2
|
+
import { DeliveryError, DeliveryProvider as DeliveryProviderType } from '@unchainedshop/types/delivery';
|
|
3
|
+
declare type HelperType<P, T> = (provider: DeliveryProviderType, params: P, context: Context) => T;
|
|
4
|
+
export interface DeliveryProviderHelperTypes {
|
|
5
|
+
interface: HelperType<never, {
|
|
6
|
+
_id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
version: string;
|
|
9
|
+
}>;
|
|
10
|
+
isActive: HelperType<void, Promise<boolean>>;
|
|
11
|
+
configurationError: HelperType<never, Promise<DeliveryError>>;
|
|
12
|
+
simulatedPrice: HelperType<{
|
|
13
|
+
currency?: string;
|
|
14
|
+
orderId: string;
|
|
15
|
+
useNetPrice?: boolean;
|
|
16
|
+
context: any;
|
|
17
|
+
}, Promise<{
|
|
18
|
+
_id: string;
|
|
19
|
+
amount: number;
|
|
20
|
+
currencyCode: string;
|
|
21
|
+
countryCode: string;
|
|
22
|
+
isTaxable: boolean;
|
|
23
|
+
isNetPrice: boolean;
|
|
24
|
+
}>>;
|
|
25
|
+
}
|
|
26
|
+
export declare const DeliveryProvider: DeliveryProviderHelperTypes;
|
|
27
|
+
export {};
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
+
import { Context } from '@unchainedshop/types/api';
|
|
1
2
|
export declare const LoginMethodResponse: {
|
|
2
3
|
user: ({ id }: {
|
|
3
4
|
id: string;
|
|
4
|
-
}, _: never, { modules }: Context) => Promise<
|
|
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
|
+
}>;
|
|
5
23
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { OrderDelivery as OrderDeliveryType } from '@unchainedshop/types/orders.deliveries';
|
|
2
|
+
import { Context } from '@unchainedshop/types/api';
|
|
1
3
|
export declare const OrderDelivery: {
|
|
2
|
-
__resolveType: (obj: OrderDeliveryType, { modules }: Context) => Promise<
|
|
4
|
+
__resolveType: (obj: OrderDeliveryType, { modules }: Context) => Promise<any>;
|
|
3
5
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Context } from '@unchainedshop/types/api';
|
|
2
|
+
import { OrderPayment as OrderPaymentType } from '@unchainedshop/types/orders.payments';
|
|
1
3
|
export declare const OrderPayment: {
|
|
2
|
-
__resolveType: (obj: OrderPaymentType, { modules }: Context) => Promise<
|
|
4
|
+
__resolveType: (obj: OrderPaymentType, { modules }: Context) => Promise<any>;
|
|
3
5
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Context } from '@unchainedshop/types/api';
|
|
2
|
+
import { PaymentError, PaymentProvider as PaymentProviderType } from '@unchainedshop/types/payments';
|
|
3
|
+
export interface PaymentProviderHelperTypes {
|
|
4
|
+
interface: (provider: PaymentProviderType, _: never, context: Context) => {
|
|
5
|
+
_id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
version: string;
|
|
8
|
+
};
|
|
9
|
+
isActive: (provider: PaymentProviderType, _: never, context: Context) => Promise<boolean>;
|
|
10
|
+
configurationError: (provider: PaymentProviderType, _: never, context: Context) => Promise<PaymentError>;
|
|
11
|
+
}
|
|
12
|
+
export declare const PaymentProvider: PaymentProviderHelperTypes;
|
package/lib/user-context.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"main": "lib/api-index.js",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": "./lib/api-index.js",
|
|
7
|
+
"./*": "./lib/*"
|
|
8
|
+
},
|
|
5
9
|
"types": "lib/api-index.d.ts",
|
|
6
10
|
"type": "module",
|
|
7
11
|
"scripts": {
|
|
8
12
|
"clean": "rm -rf lib",
|
|
9
|
-
"build": "npm run clean && tsc
|
|
10
|
-
"watch": "tsc
|
|
11
|
-
"test": "
|
|
13
|
+
"build": "npm run clean && tsc",
|
|
14
|
+
"watch": "tsc -w",
|
|
15
|
+
"test": "jest --watch"
|
|
12
16
|
},
|
|
13
17
|
"repository": {
|
|
14
18
|
"type": "git",
|
|
@@ -26,35 +30,33 @@
|
|
|
26
30
|
},
|
|
27
31
|
"homepage": "https://github.com/unchainedshop/unchained#readme",
|
|
28
32
|
"peerDependencies": {
|
|
29
|
-
"@unchainedshop/core": "1.1.x",
|
|
30
|
-
"@unchainedshop/events": "1.1.x",
|
|
31
|
-
"@unchainedshop/roles": "1.1.x",
|
|
32
33
|
"apollo-server-express": "2.x",
|
|
33
34
|
"graphql": "^15.x",
|
|
34
35
|
"graphql-scalars": "^1.x"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
38
|
+
"@unchainedshop/core": "^1.1.9",
|
|
39
|
+
"@unchainedshop/events": "^1.1.9",
|
|
37
40
|
"@unchainedshop/logger": "^1.1.9",
|
|
41
|
+
"@unchainedshop/roles": "^1.1.9",
|
|
38
42
|
"@unchainedshop/utils": "^1.1.9",
|
|
39
43
|
"accounting": "0.4.1",
|
|
40
44
|
"dataloader": "^2.1.0",
|
|
41
45
|
"locale": "0.1.0",
|
|
42
46
|
"lodash.isnumber": "3.0.3",
|
|
43
|
-
"lru-cache": "^7.10.2"
|
|
47
|
+
"lru-cache": "^7.10.2",
|
|
48
|
+
"graphql-upload": "^13.0.0"
|
|
44
49
|
},
|
|
45
50
|
"devDependencies": {
|
|
46
51
|
"@types/graphql-upload": "^8.0.11",
|
|
47
52
|
"@types/locale": "^0.1.1",
|
|
48
|
-
"@
|
|
49
|
-
"@unchainedshop/events": "^1.1.9",
|
|
50
|
-
"@unchainedshop/roles": "^1.1.9",
|
|
53
|
+
"@types/node": "^16.11.44",
|
|
51
54
|
"@unchainedshop/types": "^1.1.9",
|
|
52
|
-
"apollo-server-express": "
|
|
53
|
-
"chai": "^4.3.6",
|
|
54
|
-
"cross-env": "^7.0.3",
|
|
55
|
+
"apollo-server-express": "2.x",
|
|
55
56
|
"graphql": "^15.8.0",
|
|
56
57
|
"graphql-scalars": "^1.17.0",
|
|
58
|
+
"jest": "^28.1.2",
|
|
59
|
+
"ts-jest": "^28.0.5",
|
|
57
60
|
"typescript": "^4.7.4"
|
|
58
|
-
}
|
|
59
|
-
"gitHead": "5395cd35169a1fd13bb83ff7d11cc8a162b27b09"
|
|
61
|
+
}
|
|
60
62
|
}
|
package/src/api-index.ts
CHANGED
|
@@ -11,7 +11,7 @@ export * as roles from './roles';
|
|
|
11
11
|
|
|
12
12
|
export { createContextResolver, getCurrentContextResolver, setCurrentContextResolver };
|
|
13
13
|
|
|
14
|
-
const UNCHAINED_API_VERSION = '1.
|
|
14
|
+
const UNCHAINED_API_VERSION = '1.2.0'; // eslint-disable-line
|
|
15
15
|
|
|
16
16
|
export const startAPIServer = (options: UnchainedServerOptions) => {
|
|
17
17
|
const {
|