@pintahub/shopify-api 1.8.9 → 1.9.1
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/dist/classes/AdminAPI.d.ts +2 -0
- package/dist/classes/AdminAPI.js +2 -0
- package/dist/classes/admin/products-v2/UpdateProduct.d.ts +13 -0
- package/dist/classes/admin/products-v2/UpdateProduct.js +64 -0
- package/dist/classes/admin/products-v2/UpdateVariant.d.ts +15 -0
- package/dist/classes/admin/products-v2/UpdateVariant.js +54 -0
- package/dist/classes/admin/products-v2/UpdateVariants.d.ts +14 -0
- package/dist/classes/admin/products-v2/UpdateVariants.js +73 -0
- package/dist/classes/admin/products-v2/index.d.ts +13 -0
- package/dist/classes/admin/products-v2/index.js +34 -0
- package/dist/input/CreateMediaInput.d.ts +6 -0
- package/dist/input/CreateMediaInput.js +2 -0
- package/dist/input/InventoryItemInput.d.ts +5 -0
- package/dist/input/InventoryItemInput.js +2 -0
- package/dist/input/InventoryItemMeasurementInput.d.ts +4 -0
- package/dist/input/InventoryItemMeasurementInput.js +2 -0
- package/dist/input/MediaContentType.d.ts +6 -0
- package/dist/input/MediaContentType.js +10 -0
- package/dist/input/ProductUpdateInput.d.ts +10 -0
- package/dist/input/ProductUpdateInput.js +2 -0
- package/dist/input/ProductVariantsBulkInput.d.ts +9 -0
- package/dist/input/ProductVariantsBulkInput.js +2 -0
- package/dist/input/WeightInput.d.ts +5 -0
- package/dist/input/WeightInput.js +2 -0
- package/dist/input/WeightUnit.d.ts +6 -0
- package/dist/input/WeightUnit.js +10 -0
- package/dist/utils/handleErrors.js +4 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { AdminOrderAPIInterface } from "./admin/orders";
|
|
|
5
5
|
import { APIOptions } from "../interfaces/APIOptions";
|
|
6
6
|
import { AdminFileAPIInterface } from "./admin/files";
|
|
7
7
|
import { AdminMenuAPIInterface } from "./admin/menus";
|
|
8
|
+
import { AdminProductsAPIInterface } from "./admin/products-v2";
|
|
8
9
|
export declare class AdminAPI {
|
|
9
10
|
private readonly options;
|
|
10
11
|
private readonly client;
|
|
@@ -14,6 +15,7 @@ export declare class AdminAPI {
|
|
|
14
15
|
readonly order: AdminOrderAPIInterface;
|
|
15
16
|
readonly files: AdminFileAPIInterface;
|
|
16
17
|
readonly menus: AdminMenuAPIInterface;
|
|
18
|
+
readonly products: AdminProductsAPIInterface;
|
|
17
19
|
constructor(options: APIOptions);
|
|
18
20
|
private _createClient;
|
|
19
21
|
}
|
package/dist/classes/AdminAPI.js
CHANGED
|
@@ -8,6 +8,7 @@ const metaobjects_1 = require("./admin/metaobjects");
|
|
|
8
8
|
const orders_1 = require("./admin/orders");
|
|
9
9
|
const files_1 = require("./admin/files");
|
|
10
10
|
const menus_1 = require("./admin/menus");
|
|
11
|
+
const products_v2_1 = require("./admin/products-v2");
|
|
11
12
|
class AdminAPI {
|
|
12
13
|
constructor(options) {
|
|
13
14
|
this.options = options;
|
|
@@ -18,6 +19,7 @@ class AdminAPI {
|
|
|
18
19
|
this.order = new orders_1.AdminOrderAPI(this.client);
|
|
19
20
|
this.files = new files_1.AdminFileAPI(this.client); //Start migration with plurality
|
|
20
21
|
this.menus = new menus_1.AdminMenuAPI(this._createClient('2024-07'));
|
|
22
|
+
this.products = new products_v2_1.AdminProductsAPI(this._createClient('2024-10'));
|
|
21
23
|
}
|
|
22
24
|
_createClient(apiVersion = '2023-10') {
|
|
23
25
|
const { shop, accessToken } = this.options;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AdminApiClient } from "@shopify/admin-api-client/dist/ts/graphql/types";
|
|
2
|
+
import { ActionBuilder } from "../../ActionBuilder";
|
|
3
|
+
import { ProductUpdateInput } from "../../../input/ProductUpdateInput";
|
|
4
|
+
import { CreateMediaInput } from "../../../input/CreateMediaInput";
|
|
5
|
+
export interface UpdateProductInput extends Record<string, any> {
|
|
6
|
+
product: ProductUpdateInput;
|
|
7
|
+
media?: CreateMediaInput[];
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateProductOutput extends Record<string, any> {
|
|
10
|
+
}
|
|
11
|
+
export declare class UpdateProduct extends ActionBuilder<AdminApiClient, UpdateProductInput, UpdateProductOutput> {
|
|
12
|
+
run(args: UpdateProductInput): Promise<UpdateProductOutput>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.UpdateProduct = void 0;
|
|
24
|
+
const ActionBuilder_1 = require("../../ActionBuilder");
|
|
25
|
+
const getGlobalID_1 = require("../../../utils/getGlobalID");
|
|
26
|
+
const handleErrors_1 = require("../../../utils/handleErrors");
|
|
27
|
+
class UpdateProduct extends ActionBuilder_1.ActionBuilder {
|
|
28
|
+
run(args) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const query = `
|
|
31
|
+
mutation productUpdate($product: ProductUpdateInput!) {
|
|
32
|
+
productUpdate(product: $product) {
|
|
33
|
+
product {
|
|
34
|
+
id
|
|
35
|
+
status
|
|
36
|
+
title
|
|
37
|
+
handle
|
|
38
|
+
vendor
|
|
39
|
+
productType
|
|
40
|
+
tags
|
|
41
|
+
}
|
|
42
|
+
userErrors {
|
|
43
|
+
field
|
|
44
|
+
message
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
const { product } = Object.assign({}, args);
|
|
50
|
+
const _a = Object.assign({}, product), { id } = _a, rest = __rest(_a, ["id"]);
|
|
51
|
+
const globalId = (0, getGlobalID_1.getGlobalID)(id);
|
|
52
|
+
const newArgs = Object.assign(Object.assign({}, args), { product: Object.assign(Object.assign({}, rest), { id: globalId }) });
|
|
53
|
+
const result = yield this.client.request(query, {
|
|
54
|
+
variables: newArgs
|
|
55
|
+
});
|
|
56
|
+
const { data, errors } = Object.assign({}, result);
|
|
57
|
+
yield (0, handleErrors_1.handleErrors)(errors);
|
|
58
|
+
const { productUpdate } = Object.assign({}, data);
|
|
59
|
+
const { product: updatedProduct } = Object.assign({}, productUpdate);
|
|
60
|
+
return Object.assign({}, updatedProduct);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.UpdateProduct = UpdateProduct;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AdminApiClient } from "@shopify/admin-api-client/dist/ts/graphql/types";
|
|
2
|
+
import { ActionBuilder } from "../../ActionBuilder";
|
|
3
|
+
import { InventoryItemInput } from "../../../input/InventoryItemInput";
|
|
4
|
+
export interface UpdateVariantInput extends Record<string, any> {
|
|
5
|
+
id: string;
|
|
6
|
+
compareAtPrice?: string;
|
|
7
|
+
price?: string;
|
|
8
|
+
inventoryItem?: InventoryItemInput;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateVariantOutput extends Record<string, any> {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class UpdateVariant extends ActionBuilder<AdminApiClient, UpdateVariantInput, UpdateVariantOutput> {
|
|
14
|
+
run(args: UpdateVariantInput): Promise<UpdateVariantOutput>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateVariant = void 0;
|
|
13
|
+
const ActionBuilder_1 = require("../../ActionBuilder");
|
|
14
|
+
const getGlobalID_1 = require("../../../utils/getGlobalID");
|
|
15
|
+
const handleErrors_1 = require("../../../utils/handleErrors");
|
|
16
|
+
class UpdateVariant extends ActionBuilder_1.ActionBuilder {
|
|
17
|
+
run(args) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const { id } = args;
|
|
20
|
+
const globalId = (0, getGlobalID_1.getGlobalID)(id, 'ProductVariant');
|
|
21
|
+
const vArgs = Object.assign({}, args, { id: globalId });
|
|
22
|
+
const query = `
|
|
23
|
+
mutation productVariantUpdate($input: ProductVariantInput!) {
|
|
24
|
+
productVariantUpdate(input: $input) {
|
|
25
|
+
productVariant {
|
|
26
|
+
id
|
|
27
|
+
productId
|
|
28
|
+
compareAtPrice
|
|
29
|
+
price
|
|
30
|
+
mediaId
|
|
31
|
+
options
|
|
32
|
+
position
|
|
33
|
+
taxable
|
|
34
|
+
}
|
|
35
|
+
userErrors {
|
|
36
|
+
message
|
|
37
|
+
field
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
const { data, errors } = yield this.client.request(query, {
|
|
43
|
+
variables: {
|
|
44
|
+
input: vArgs
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
yield (0, handleErrors_1.handleErrors)(errors);
|
|
48
|
+
const { productVariantUpdate } = Object.assign({}, data);
|
|
49
|
+
const { productVariant } = Object.assign({}, productVariantUpdate);
|
|
50
|
+
return Object.assign({}, productVariant);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.UpdateVariant = UpdateVariant;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AdminApiClient } from "@shopify/admin-api-client/dist/ts/graphql/types";
|
|
2
|
+
import { ActionBuilder } from "../../ActionBuilder";
|
|
3
|
+
import { ProductVariantsBulkInput } from "../../../input/ProductVariantsBulkInput";
|
|
4
|
+
export interface UpdateVariantsInput extends Record<string, any> {
|
|
5
|
+
productId: string;
|
|
6
|
+
variants: Array<ProductVariantsBulkInput>;
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateVariantsOutput extends Record<string, any> {
|
|
9
|
+
id: string;
|
|
10
|
+
variants: Array<Record<string, any>>;
|
|
11
|
+
}
|
|
12
|
+
export declare class UpdateVariants extends ActionBuilder<AdminApiClient, UpdateVariantsInput, UpdateVariantsOutput> {
|
|
13
|
+
run(args: UpdateVariantsInput): Promise<UpdateVariantsOutput>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateVariants = void 0;
|
|
13
|
+
const ActionBuilder_1 = require("../../ActionBuilder");
|
|
14
|
+
const getGlobalID_1 = require("../../../utils/getGlobalID");
|
|
15
|
+
const handleErrors_1 = require("../../../utils/handleErrors");
|
|
16
|
+
class UpdateVariants extends ActionBuilder_1.ActionBuilder {
|
|
17
|
+
run(args) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const { productId, variants } = args;
|
|
20
|
+
const vVariants = variants.map(variant => {
|
|
21
|
+
const { id } = variant;
|
|
22
|
+
return Object.assign(Object.assign({}, variant), { id: (0, getGlobalID_1.getGlobalID)(id, 'ProductVariant') });
|
|
23
|
+
});
|
|
24
|
+
const vArgs = Object.assign({}, args, {
|
|
25
|
+
productId: (0, getGlobalID_1.getGlobalID)(productId, 'Product'),
|
|
26
|
+
variants: vVariants
|
|
27
|
+
});
|
|
28
|
+
const query = `
|
|
29
|
+
mutation productVariantsBulkUpdate($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {
|
|
30
|
+
productVariantsBulkUpdate(productId: $productId, variants: $variants) {
|
|
31
|
+
product {
|
|
32
|
+
id
|
|
33
|
+
}
|
|
34
|
+
productVariants {
|
|
35
|
+
id
|
|
36
|
+
title
|
|
37
|
+
availableForSale
|
|
38
|
+
price
|
|
39
|
+
compareAtPrice
|
|
40
|
+
inventoryItem {
|
|
41
|
+
id
|
|
42
|
+
measurement {
|
|
43
|
+
weight {
|
|
44
|
+
value
|
|
45
|
+
unit
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
taxable
|
|
50
|
+
position
|
|
51
|
+
createdAt
|
|
52
|
+
updatedAt
|
|
53
|
+
}
|
|
54
|
+
userErrors {
|
|
55
|
+
message
|
|
56
|
+
field
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
const { data, errors } = yield this.client.request(query, {
|
|
62
|
+
variables: vArgs
|
|
63
|
+
});
|
|
64
|
+
yield (0, handleErrors_1.handleErrors)(errors);
|
|
65
|
+
const { productVariantsBulkUpdate } = Object.assign({}, data);
|
|
66
|
+
const { product, productVariants } = Object.assign({}, productVariantsBulkUpdate);
|
|
67
|
+
return Object.assign({}, product, {
|
|
68
|
+
variants: productVariants
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.UpdateVariants = UpdateVariants;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AdminApiClient } from "@shopify/admin-api-client/dist/ts/graphql/types";
|
|
2
|
+
import { APIBase } from "../../APIBase";
|
|
3
|
+
import { UpdateVariantsInput, UpdateVariantsOutput } from "./UpdateVariants";
|
|
4
|
+
import { UpdateProductInput, UpdateProductOutput } from "./UpdateProduct";
|
|
5
|
+
export interface AdminProductsAPIInterface {
|
|
6
|
+
update(args: UpdateProductInput): Promise<UpdateProductOutput>;
|
|
7
|
+
updateVariants(args: UpdateVariantsInput): Promise<UpdateVariantsOutput>;
|
|
8
|
+
}
|
|
9
|
+
export declare class AdminProductsAPI extends APIBase<AdminApiClient> implements AdminProductsAPIInterface {
|
|
10
|
+
private _runAction;
|
|
11
|
+
update(args: UpdateProductInput): Promise<UpdateProductOutput>;
|
|
12
|
+
updateVariants(args: UpdateVariantsInput): Promise<UpdateVariantsOutput>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AdminProductsAPI = void 0;
|
|
13
|
+
const APIBase_1 = require("../../APIBase");
|
|
14
|
+
const UpdateVariants_1 = require("./UpdateVariants");
|
|
15
|
+
const UpdateProduct_1 = require("./UpdateProduct");
|
|
16
|
+
class AdminProductsAPI extends APIBase_1.APIBase {
|
|
17
|
+
_runAction(Action, args) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const action = new Action(this.client);
|
|
20
|
+
return action.run(args);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
update(args) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
return this._runAction(UpdateProduct_1.UpdateProduct, args);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
updateVariants(args) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
return this._runAction(UpdateVariants_1.UpdateVariants, args);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.AdminProductsAPI = AdminProductsAPI;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MediaContentType = void 0;
|
|
4
|
+
var MediaContentType;
|
|
5
|
+
(function (MediaContentType) {
|
|
6
|
+
MediaContentType["EXTERNAL_VIDEO"] = "EXTERNAL_VIDEO";
|
|
7
|
+
MediaContentType["IMAGE"] = "IMAGE";
|
|
8
|
+
MediaContentType["MODEL_3D"] = "MODEL_3D";
|
|
9
|
+
MediaContentType["VIDEO"] = "VIDEO";
|
|
10
|
+
})(MediaContentType = exports.MediaContentType || (exports.MediaContentType = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InventoryItemInput } from "./InventoryItemInput";
|
|
2
|
+
export interface ProductVariantsBulkInput extends Record<string, any> {
|
|
3
|
+
id: string;
|
|
4
|
+
compareAtPrice?: string;
|
|
5
|
+
price?: string;
|
|
6
|
+
taxable?: boolean;
|
|
7
|
+
mediaId?: string;
|
|
8
|
+
inventoryItem: InventoryItemInput;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WeightUnit = void 0;
|
|
4
|
+
var WeightUnit;
|
|
5
|
+
(function (WeightUnit) {
|
|
6
|
+
WeightUnit["GRAMS"] = "GRAMS";
|
|
7
|
+
WeightUnit["KILOGRAMS"] = "KILOGRAMS";
|
|
8
|
+
WeightUnit["OUNCES"] = "OUNCES";
|
|
9
|
+
WeightUnit["POUNDS"] = "POUNDS";
|
|
10
|
+
})(WeightUnit = exports.WeightUnit || (exports.WeightUnit = {}));
|
|
@@ -26,7 +26,10 @@ const handleErrors = (errors) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
26
26
|
}
|
|
27
27
|
// console.log('errors', errors)
|
|
28
28
|
if (message) {
|
|
29
|
-
|
|
29
|
+
const error = new Error(message);
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
error.graphQLErrors = graphQLErrors;
|
|
32
|
+
throw error;
|
|
30
33
|
}
|
|
31
34
|
});
|
|
32
35
|
exports.handleErrors = handleErrors;
|