Socket
Socket
Sign inDemoInstall

pinelab-storefront-client

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinelab-storefront-client - npm Package Compare versions

Comparing version 0.46.0 to 0.47.0

2

lib/generated/graphql.js

@@ -975,2 +975,4 @@ 'use strict';

Permission['DeleteZone'] = 'DeleteZone';
/** Allows enabling e-Boekhouden plugin */
Permission['EBoekhouden'] = 'eBoekhouden';
/** Allow this user to enable invoice generation */

@@ -977,0 +979,0 @@ Permission['AllowInvoicesPermission'] = 'AllowInvoicesPermission';

5

lib/vendure/vendure.client.d.ts

@@ -54,5 +54,8 @@ import { Store } from './store';

applyCouponCode(couponCode: string): Promise<OrderFieldsFragment>;
removeCouponCode(couponCode: string): Promise<OrderFieldsFragment>;
removeCouponCode(
couponCode: string
): Promise<OrderFieldsFragment | undefined>;
removeAllOrderLines(): Promise<OrderFieldsFragment>;
validateResult(result: any): void;
request<T = void, I = void>(document: string, variables?: I): Promise<T>;
}

@@ -520,2 +520,24 @@ 'use strict';

order = _a.sent().removeCouponCode;
if (order) {
this.store.activeOrder = order;
return [2 /*return*/, order];
}
return [2 /*return*/];
}
});
});
};
VendureClient.prototype.removeAllOrderLines = function () {
return __awaiter(this, void 0, void 0, function () {
var order;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
return [
4 /*yield*/,
this.request(vendure_queries_1.REMOVE_ALL_ORDER_LINES),
];
case 1:
order = _a.sent().removeAllOrderLines;
this.validateResult(order);
this.store.activeOrder = order;

@@ -522,0 +544,0 @@ return [2 /*return*/, order];

@@ -19,2 +19,3 @@ export declare const PRODUCT_FIELDS: string;

export declare const APPLY_COUPON_CODE: string;
export declare const REMOVE_ALL_ORDER_LINES: string;
export declare const REMOVE_COUPON_CODE: string;

@@ -14,2 +14,3 @@ 'use strict';

exports.REMOVE_COUPON_CODE =
exports.REMOVE_ALL_ORDER_LINES =
exports.APPLY_COUPON_CODE =

@@ -259,3 +260,3 @@ exports.GET_DUTCH_ADDRESS =

);
exports.REMOVE_COUPON_CODE = graphql_request_1.gql(
exports.REMOVE_ALL_ORDER_LINES = graphql_request_1.gql(
templateObject_19 ||

@@ -265,2 +266,16 @@ (templateObject_19 = __makeTemplateObject(

'\n ',
'\n mutation removeAllOrderLines {\n removeAllOrderLines {\n ... on Order {\n ...OrderFields\n }\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n',
],
[
'\n ',
'\n mutation removeAllOrderLines {\n removeAllOrderLines {\n ... on Order {\n ...OrderFields\n }\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n',
]
)),
exports.ORDER_FIELDS
);
exports.REMOVE_COUPON_CODE = graphql_request_1.gql(
templateObject_20 ||
(templateObject_20 = __makeTemplateObject(
[
'\n ',
'\n mutation removeCouponCode($couponCode: String!) {\n removeCouponCode(couponCode: $couponCode) {\n ... on Order {\n ...OrderFields\n }\n }\n }\n',

@@ -293,2 +308,3 @@ ],

templateObject_18,
templateObject_19;
templateObject_19,
templateObject_20;
{
"name": "pinelab-storefront-client",
"version": "0.46.0",
"version": "0.47.0",
"description": "Generates static html pages with Gridsome and suplied Vue components",

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

},
"gitHead": "93e119e2f54fd55fd985e1ff3590c41f412a9385"
"gitHead": "a85659b595fc489c2a339238f1d24f164d6cd8be"
}

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc