Socket
Socket
Sign inDemoInstall

@pinelab/vendure-order-client

Package Overview
Dependencies
13
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.1 to 2.7.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 2.7.0 (2023-12-06)
- Added `getMolliePaymentMethods` query
# 2.6.1 (2023-12-01)

@@ -2,0 +6,0 @@

@@ -390,3 +390,3 @@ import { gql, GraphQLClient } from 'graphql-request';

this.CREATE_MOLLIE_PAYMENT_INTENT = gql `
mutation CreateMolliPaymentIntentMutation(
mutation CreateMolliePaymentIntentMutation(
$input: MolliePaymentIntentInput!

@@ -405,3 +405,26 @@ ) {

`;
this.GET_MOLLIE_PAYMENT_METHODS = gql `
query MolliePaymentMethods($input: MolliePaymentMethodsInput!) {
molliePaymentMethods(input: $input) {
id
code
description
minimumAmount {
value
currency
}
maximumAmount {
value
currency
}
image {
size1x
size2x
svg
}
status
}
}
`;
}
}

@@ -648,2 +671,6 @@

}
async getMolliePaymentMethods(input) {
const { molliePaymentMethods } = await this.rawRequest(this.queries.GET_MOLLIE_PAYMENT_METHODS, { input });
return molliePaymentMethods;
}
async transitionOrderToState(state) {

@@ -1185,2 +1212,3 @@ const { transitionOrderToState } = await this.rawRequest(this.queries.TRANSITION_ORDER_TO_STATE, { state });

ErrorCode["MissingPasswordError"] = "MISSING_PASSWORD_ERROR";
ErrorCode["MolliePaymentIntentError"] = "MOLLIE_PAYMENT_INTENT_ERROR";
ErrorCode["NativeAuthStrategyError"] = "NATIVE_AUTH_STRATEGY_ERROR";

@@ -1187,0 +1215,0 @@ ErrorCode["NegativeQuantityError"] = "NEGATIVE_QUANTITY_ERROR";

@@ -25,2 +25,3 @@ export declare class GraphqlQueries {

CREATE_MOLLIE_PAYMENT_INTENT: string;
GET_MOLLIE_PAYMENT_METHODS: string;
}

3

lib/vendure-order-client.d.ts
import { GraphQLClient } from 'graphql-request';
import { Emitter } from 'mitt';
import { ActiveOrderFieldsFragment, CreateAddressInput, CreateCustomerInput, CurrentUserFieldsFragment, ErrorResult, PaymentInput, RegisterCustomerInput, Success, ShippingMethodQuote, MolliePaymentIntentInput } from './graphql-generated-types';
import { ActiveOrderFieldsFragment, CreateAddressInput, CreateCustomerInput, CurrentUserFieldsFragment, ErrorResult, MolliePaymentIntentInput, MolliePaymentMethodsInput, MolliePaymentMethodsQuery, PaymentInput, RegisterCustomerInput, ShippingMethodQuote, Success } from './graphql-generated-types';
import { GraphqlQueries } from './queries';

@@ -48,2 +48,3 @@ import { StateStore } from './store-helpers';

createMolliePaymentIntent(input: MolliePaymentIntentInput): Promise<string>;
getMolliePaymentMethods(input: MolliePaymentMethodsInput): Promise<MolliePaymentMethodsQuery['molliePaymentMethods']>;
transitionOrderToState(state: string): Promise<ActiveOrder<A> | undefined>;

@@ -50,0 +51,0 @@ /**

{
"name": "@pinelab/vendure-order-client",
"version": "2.6.1",
"version": "2.7.0",
"description": "A tiny, framework agnostic client for managing active orders and checkout with Vendure.",

@@ -25,3 +25,3 @@ "author": "Martijn van de Brug <martijn@pinelab.studio>",

"scripts": {
"start": "ts-node --esm ./test/dev-server.ts",
"start": "ts-node --experimental-specifier-resolution=node --esm ./test/dev-server.ts",
"build": "yarn tsc && rimraf lib && rollup -c rollup.config.js",

@@ -41,3 +41,3 @@ "test": "vitest run",

},
"gitHead": "14196e1a03e1b15efd3da8de7a33c5a42c2fd73f"
"gitHead": "f3a756ff7722cbffdb04e5f2149e026b3ba98ff6"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc