@dokamerce/web-sdk 0.17.0 → 0.22.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/dist/graphql/__generated__/gateway.d.ts +1531 -412
- package/dist/graphql/__generated__/gateway.js +312 -116
- package/dist/graphql/__generated__/gateway.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web-sdk/src/functions/init-sdk-client.function.d.ts +3 -3
- package/dist/web-sdk/src/functions/init-sdk-client.function.js +3 -2
- package/dist/web-sdk/src/functions/init-sdk-client.function.js.map +1 -1
- package/dist/web-sdk/src/functions/init-sdk.function.d.ts +3 -3
- package/dist/web-sdk/src/functions/init-sdk.function.js +2 -1
- package/dist/web-sdk/src/functions/init-sdk.function.js.map +1 -1
- package/dist/web-sdk/src/index.d.ts +5 -12
- package/dist/web-sdk/src/index.js +18 -34
- package/dist/web-sdk/src/index.js.map +1 -1
- package/dist/web-sdk/src/main.d.ts +10 -0
- package/dist/web-sdk/src/main.js +40 -0
- package/dist/web-sdk/src/main.js.map +1 -0
- package/dist/web-sdk/src/services/attributes.d.ts +1 -1
- package/dist/web-sdk/src/services/cart.d.ts +10 -0
- package/dist/web-sdk/src/services/cart.js +33 -0
- package/dist/web-sdk/src/services/cart.js.map +1 -0
- package/dist/web-sdk/src/services/index.d.ts +2 -0
- package/dist/web-sdk/src/services/index.js +2 -0
- package/dist/web-sdk/src/services/index.js.map +1 -1
- package/dist/web-sdk/src/services/orders.d.ts +2 -3
- package/dist/web-sdk/src/services/orders.js +4 -9
- package/dist/web-sdk/src/services/orders.js.map +1 -1
- package/dist/web-sdk/src/services/products.d.ts +1 -1
- package/dist/web-sdk/src/typings/sdk.typing.d.ts +4 -4
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.TagDocument = exports.PaginatedTagsDocument = exports.InfiniteTagsDocument = exports.SellerDocument = exports.PaginatedSellersDocument = exports.InfiniteSellersDocument = exports.UpdateSellerDocument = exports.CreateSellerDocument = exports.DeleteProductDocument = exports.UpdateProductDocument = exports.CreateProductDocument = exports.ProductDocument = exports.PaginatedProductsDocument = exports.InfiniteProductsDocument = exports.OrderDocument = exports.PaginatedOrdersDocument = exports.InfiniteOrdersDocument = exports.
|
|
3
|
+
exports.OrderFragmentFragmentDoc = exports.MetricFragmentFragmentDoc = exports.FileUploadFieldsFragmentDoc = exports.FileUploadUrlFieldsFragmentDoc = exports.FileFieldsFragmentDoc = exports.FileThumbnailsFieldsFragmentDoc = exports.CustomerTelephoneNumberFragmentFragmentDoc = exports.CustomerFragmentFragmentDoc = exports.CustomFieldFragmentFragmentDoc = exports.ColorFragmentFragmentDoc = exports.CategoryFragmentFragmentDoc = exports.CartItemFragmentFragmentDoc = exports.ProductVariantFragmentFragmentDoc = exports.SellerFragmentFragmentDoc = exports.ProductFragmentFragmentDoc = exports.CustomerAddressFragmentFragmentDoc = exports.CartFragmentFragmentDoc = exports.BrandFragmentFragmentDoc = exports.AttributeFragmentFragmentDoc = exports.UnitType = exports.TimeZoneTypeEnum = exports.TimeZoneFieldsEnum = exports.TimeZoneEnum = exports.TelephoneNumberTarget = exports.TagFieldsEnum = exports.StatusEnum = exports.SortOrderEnum = exports.SizeFieldsEnum = exports.SellerFieldsEnum = exports.RegionFieldsEnum = exports.RegionCodeEnum = exports.ProductType = exports.ProductStatus = exports.ProductFileType = exports.ProductFieldsEnum = exports.ProductCondition = exports.OrderFieldsEnum = exports.MetricFieldsEnum = exports.FileStatusEnum = exports.CustomerTelephoneNumberFieldsEnum = exports.CustomerFieldsEnum = exports.CustomerAddressFieldsEnum = exports.CustomFieldType = exports.CustomFieldTarget = exports.CustomFieldFieldsEnum = exports.CountryCodeEnum = exports.ColorFieldsEnum = exports.CategoryFieldsEnum = exports.BrandFieldsEnum = exports.AttributeFieldsEnum = void 0;
|
|
4
|
+
exports.TagDocument = exports.PaginatedTagsDocument = exports.InfiniteTagsDocument = exports.SellerDocument = exports.PaginatedSellersDocument = exports.InfiniteSellersDocument = exports.UpdateSellerDocument = exports.CreateSellerDocument = exports.DeleteProductDocument = exports.UpdateProductDocument = exports.CreateProductDocument = exports.ProductDocument = exports.PaginatedProductsDocument = exports.InfiniteProductsDocument = exports.OrderDocument = exports.PaginatedOrdersDocument = exports.InfiniteOrdersDocument = exports.FinalizeOrderDocument = exports.InfiniteMetricsDocument = exports.FileDocument = exports.CompleteFileUploadDocument = exports.InitiateFileUploadDocument = exports.CustomerDocument = exports.PaginatedCustomersDocument = exports.InfiniteCustomersDocument = exports.UpdateCustomerDocument = exports.CreateCustomerDocument = exports.CustomFieldDocument = exports.PaginatedCustomFieldsDocument = exports.InfiniteCustomFieldsDocument = exports.PaginatedColorsDocument = exports.InfiniteColorsDocument = exports.PaginatedCategoriesDocument = exports.InfiniteCategoriesDocument = exports.CartDocument = exports.UpdateCartItemDocument = exports.SetCartAddressDocument = exports.RemoveFromCartDocument = exports.AddToCartDocument = exports.PaginatedBrandsDocument = exports.InfiniteBrandsDocument = exports.PaginatedAttributesDocument = exports.InfiniteAttributesDocument = exports.TagFragmentFragmentDoc = exports.ProductSellerFragmentFragmentDoc = void 0;
|
|
5
5
|
const graphql_tag_1 = require("graphql-tag");
|
|
6
6
|
var AttributeFieldsEnum;
|
|
7
7
|
(function (AttributeFieldsEnum) {
|
|
@@ -306,6 +306,7 @@ var CustomFieldTarget;
|
|
|
306
306
|
CustomFieldTarget["Customer"] = "CUSTOMER";
|
|
307
307
|
CustomFieldTarget["Order"] = "ORDER";
|
|
308
308
|
CustomFieldTarget["Product"] = "PRODUCT";
|
|
309
|
+
CustomFieldTarget["Seller"] = "SELLER";
|
|
309
310
|
})(CustomFieldTarget || (exports.CustomFieldTarget = CustomFieldTarget = {}));
|
|
310
311
|
var CustomFieldType;
|
|
311
312
|
(function (CustomFieldType) {
|
|
@@ -365,9 +366,13 @@ var MetricFieldsEnum;
|
|
|
365
366
|
})(MetricFieldsEnum || (exports.MetricFieldsEnum = MetricFieldsEnum = {}));
|
|
366
367
|
var OrderFieldsEnum;
|
|
367
368
|
(function (OrderFieldsEnum) {
|
|
369
|
+
OrderFieldsEnum["Amount"] = "amount";
|
|
368
370
|
OrderFieldsEnum["CreatedAt"] = "createdAt";
|
|
369
371
|
OrderFieldsEnum["Id"] = "id";
|
|
370
|
-
OrderFieldsEnum["
|
|
372
|
+
OrderFieldsEnum["Quantity"] = "quantity";
|
|
373
|
+
OrderFieldsEnum["ShippingCost"] = "shippingCost";
|
|
374
|
+
OrderFieldsEnum["TaxAmount"] = "taxAmount";
|
|
375
|
+
OrderFieldsEnum["TotalAmount"] = "totalAmount";
|
|
371
376
|
OrderFieldsEnum["UpdatedAt"] = "updatedAt";
|
|
372
377
|
})(OrderFieldsEnum || (exports.OrderFieldsEnum = OrderFieldsEnum = {}));
|
|
373
378
|
var ProductCondition;
|
|
@@ -1143,6 +1148,115 @@ exports.BrandFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
1143
1148
|
}
|
|
1144
1149
|
}
|
|
1145
1150
|
`;
|
|
1151
|
+
exports.CartFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1152
|
+
fragment CartFragment on Cart {
|
|
1153
|
+
amount
|
|
1154
|
+
shippingCost
|
|
1155
|
+
taxAmount
|
|
1156
|
+
totalAmount
|
|
1157
|
+
}
|
|
1158
|
+
`;
|
|
1159
|
+
exports.CustomerAddressFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1160
|
+
fragment CustomerAddressFragment on CustomerAddress {
|
|
1161
|
+
id
|
|
1162
|
+
address
|
|
1163
|
+
address2
|
|
1164
|
+
createdAt
|
|
1165
|
+
updatedAt
|
|
1166
|
+
}
|
|
1167
|
+
`;
|
|
1168
|
+
exports.ProductFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1169
|
+
fragment ProductFragment on Product {
|
|
1170
|
+
id
|
|
1171
|
+
active
|
|
1172
|
+
condition
|
|
1173
|
+
content
|
|
1174
|
+
createdAt
|
|
1175
|
+
description
|
|
1176
|
+
featured
|
|
1177
|
+
maxOrderQty
|
|
1178
|
+
metaDescription
|
|
1179
|
+
metaKeywords
|
|
1180
|
+
metaTitle
|
|
1181
|
+
minOrderQty
|
|
1182
|
+
name
|
|
1183
|
+
price
|
|
1184
|
+
slug
|
|
1185
|
+
soldCount
|
|
1186
|
+
status
|
|
1187
|
+
todayDeal
|
|
1188
|
+
type
|
|
1189
|
+
updatedAt
|
|
1190
|
+
views
|
|
1191
|
+
warrantyDescription
|
|
1192
|
+
warrantyTime
|
|
1193
|
+
warrantyType
|
|
1194
|
+
}
|
|
1195
|
+
`;
|
|
1196
|
+
exports.SellerFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1197
|
+
fragment SellerFragment on Seller {
|
|
1198
|
+
id
|
|
1199
|
+
name
|
|
1200
|
+
description
|
|
1201
|
+
active
|
|
1202
|
+
orderNumber
|
|
1203
|
+
slug
|
|
1204
|
+
rating
|
|
1205
|
+
verified
|
|
1206
|
+
createdAt
|
|
1207
|
+
updatedAt
|
|
1208
|
+
}
|
|
1209
|
+
`;
|
|
1210
|
+
exports.ProductVariantFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1211
|
+
fragment ProductVariantFragment on ProductVariant {
|
|
1212
|
+
active
|
|
1213
|
+
attributes {
|
|
1214
|
+
attribute {
|
|
1215
|
+
active
|
|
1216
|
+
createdAt
|
|
1217
|
+
id
|
|
1218
|
+
name
|
|
1219
|
+
type
|
|
1220
|
+
updatedAt
|
|
1221
|
+
values {
|
|
1222
|
+
default
|
|
1223
|
+
name
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
value
|
|
1227
|
+
}
|
|
1228
|
+
default
|
|
1229
|
+
id
|
|
1230
|
+
}
|
|
1231
|
+
`;
|
|
1232
|
+
exports.CartItemFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1233
|
+
fragment CartItemFragment on CartItem {
|
|
1234
|
+
id
|
|
1235
|
+
amount
|
|
1236
|
+
discountValue
|
|
1237
|
+
quantity
|
|
1238
|
+
shippingCost
|
|
1239
|
+
taxAmount
|
|
1240
|
+
totalAmount
|
|
1241
|
+
createdAt
|
|
1242
|
+
updatedAt
|
|
1243
|
+
address {
|
|
1244
|
+
...CustomerAddressFragment
|
|
1245
|
+
}
|
|
1246
|
+
product {
|
|
1247
|
+
...ProductFragment
|
|
1248
|
+
}
|
|
1249
|
+
seller {
|
|
1250
|
+
...SellerFragment
|
|
1251
|
+
}
|
|
1252
|
+
variants {
|
|
1253
|
+
...ProductVariantFragment
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
${exports.CustomerAddressFragmentFragmentDoc}
|
|
1257
|
+
${exports.ProductFragmentFragmentDoc}
|
|
1258
|
+
${exports.SellerFragmentFragmentDoc}
|
|
1259
|
+
${exports.ProductVariantFragmentFragmentDoc}`;
|
|
1146
1260
|
exports.CategoryFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1147
1261
|
fragment CategoryFragment on Category {
|
|
1148
1262
|
id
|
|
@@ -1189,15 +1303,6 @@ exports.CustomerFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
1189
1303
|
updatedAt
|
|
1190
1304
|
}
|
|
1191
1305
|
`;
|
|
1192
|
-
exports.CustomerAddressFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1193
|
-
fragment CustomerAddressFragment on CustomerAddress {
|
|
1194
|
-
id
|
|
1195
|
-
address
|
|
1196
|
-
address2
|
|
1197
|
-
createdAt
|
|
1198
|
-
updatedAt
|
|
1199
|
-
}
|
|
1200
|
-
`;
|
|
1201
1306
|
exports.CustomerTelephoneNumberFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1202
1307
|
fragment CustomerTelephoneNumberFragment on CustomerTelephoneNumber {
|
|
1203
1308
|
id
|
|
@@ -1259,63 +1364,13 @@ exports.MetricFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
1259
1364
|
exports.OrderFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1260
1365
|
fragment OrderFragment on Order {
|
|
1261
1366
|
id
|
|
1262
|
-
|
|
1263
|
-
createdAt
|
|
1264
|
-
updatedAt
|
|
1265
|
-
}
|
|
1266
|
-
`;
|
|
1267
|
-
exports.ProductFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1268
|
-
fragment ProductFragment on Product {
|
|
1269
|
-
id
|
|
1270
|
-
active
|
|
1271
|
-
condition
|
|
1272
|
-
content
|
|
1273
|
-
createdAt
|
|
1274
|
-
description
|
|
1275
|
-
featured
|
|
1276
|
-
maxOrderQty
|
|
1277
|
-
metaDescription
|
|
1278
|
-
metaKeywords
|
|
1279
|
-
metaTitle
|
|
1280
|
-
minOrderQty
|
|
1281
|
-
name
|
|
1282
|
-
price
|
|
1283
|
-
slug
|
|
1284
|
-
soldCount
|
|
1285
|
-
status
|
|
1286
|
-
todayDeal
|
|
1287
|
-
type
|
|
1288
|
-
updatedAt
|
|
1289
|
-
views
|
|
1290
|
-
warrantyDescription
|
|
1291
|
-
warrantyTime
|
|
1292
|
-
warrantyType
|
|
1293
|
-
}
|
|
1294
|
-
`;
|
|
1295
|
-
exports.SellerFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1296
|
-
fragment SellerFragment on Seller {
|
|
1297
|
-
id
|
|
1298
|
-
name
|
|
1299
|
-
description
|
|
1300
|
-
active
|
|
1301
|
-
orderNumber
|
|
1302
|
-
slug
|
|
1303
|
-
rating
|
|
1304
|
-
verified
|
|
1367
|
+
totalAmount
|
|
1305
1368
|
createdAt
|
|
1306
1369
|
updatedAt
|
|
1307
1370
|
}
|
|
1308
1371
|
`;
|
|
1309
|
-
exports.
|
|
1310
|
-
fragment
|
|
1311
|
-
quantity
|
|
1312
|
-
seller {
|
|
1313
|
-
...SellerFragment
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
${exports.SellerFragmentFragmentDoc}`;
|
|
1317
|
-
exports.ProductVariantSellerFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1318
|
-
fragment ProductVariantSellerFragment on ProductVariantSeller {
|
|
1372
|
+
exports.ProductSellerFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1373
|
+
fragment ProductSellerFragment on ProductSeller {
|
|
1319
1374
|
active
|
|
1320
1375
|
barcode
|
|
1321
1376
|
discountEndAt
|
|
@@ -1328,37 +1383,12 @@ exports.ProductVariantSellerFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
|
1328
1383
|
...SellerFragment
|
|
1329
1384
|
}
|
|
1330
1385
|
sku
|
|
1331
|
-
|
|
1332
|
-
...
|
|
1386
|
+
variant {
|
|
1387
|
+
...ProductVariantFragment
|
|
1333
1388
|
}
|
|
1334
1389
|
}
|
|
1335
1390
|
${exports.SellerFragmentFragmentDoc}
|
|
1336
|
-
${exports.
|
|
1337
|
-
exports.ProductVariantFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1338
|
-
fragment ProductVariantFragment on ProductVariant {
|
|
1339
|
-
active
|
|
1340
|
-
attributes {
|
|
1341
|
-
attribute {
|
|
1342
|
-
active
|
|
1343
|
-
createdAt
|
|
1344
|
-
id
|
|
1345
|
-
name
|
|
1346
|
-
type
|
|
1347
|
-
updatedAt
|
|
1348
|
-
values {
|
|
1349
|
-
default
|
|
1350
|
-
name
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
value
|
|
1354
|
-
}
|
|
1355
|
-
default
|
|
1356
|
-
id
|
|
1357
|
-
sellers {
|
|
1358
|
-
...ProductVariantSellerFragment
|
|
1359
|
-
}
|
|
1360
|
-
}
|
|
1361
|
-
${exports.ProductVariantSellerFragmentFragmentDoc}`;
|
|
1391
|
+
${exports.ProductVariantFragmentFragmentDoc}`;
|
|
1362
1392
|
exports.TagFragmentFragmentDoc = (0, graphql_tag_1.default) `
|
|
1363
1393
|
fragment TagFragment on Tag {
|
|
1364
1394
|
id
|
|
@@ -1464,6 +1494,81 @@ exports.PaginatedBrandsDocument = (0, graphql_tag_1.default) `
|
|
|
1464
1494
|
}
|
|
1465
1495
|
${exports.BrandFragmentFragmentDoc}
|
|
1466
1496
|
${exports.FileFieldsFragmentDoc}`;
|
|
1497
|
+
exports.AddToCartDocument = (0, graphql_tag_1.default) `
|
|
1498
|
+
mutation AddToCart($customerId: ID!, $data: [AddToCartInput!]!, $withItems: Boolean = true, $withAddress: Boolean = true) {
|
|
1499
|
+
addToCart(customerId: $customerId, data: $data) {
|
|
1500
|
+
...CartFragment
|
|
1501
|
+
items @include(if: $withItems) {
|
|
1502
|
+
...CartItemFragment
|
|
1503
|
+
}
|
|
1504
|
+
address @include(if: $withAddress) {
|
|
1505
|
+
...CustomerAddressFragment
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
${exports.CartFragmentFragmentDoc}
|
|
1510
|
+
${exports.CartItemFragmentFragmentDoc}
|
|
1511
|
+
${exports.CustomerAddressFragmentFragmentDoc}`;
|
|
1512
|
+
exports.RemoveFromCartDocument = (0, graphql_tag_1.default) `
|
|
1513
|
+
mutation RemoveFromCart($cartItemId: ID!, $customerId: ID!, $withItems: Boolean = true, $withAddress: Boolean = true) {
|
|
1514
|
+
removeFromCart(cartItemId: $cartItemId, customerId: $customerId) {
|
|
1515
|
+
...CartFragment
|
|
1516
|
+
items @include(if: $withItems) {
|
|
1517
|
+
...CartItemFragment
|
|
1518
|
+
}
|
|
1519
|
+
address @include(if: $withAddress) {
|
|
1520
|
+
...CustomerAddressFragment
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
${exports.CartFragmentFragmentDoc}
|
|
1525
|
+
${exports.CartItemFragmentFragmentDoc}
|
|
1526
|
+
${exports.CustomerAddressFragmentFragmentDoc}`;
|
|
1527
|
+
exports.SetCartAddressDocument = (0, graphql_tag_1.default) `
|
|
1528
|
+
mutation SetCartAddress($addressId: ID!, $customerId: ID!, $withItems: Boolean = true, $withAddress: Boolean = true) {
|
|
1529
|
+
setCartAddress(addressId: $addressId, customerId: $customerId) {
|
|
1530
|
+
...CartFragment
|
|
1531
|
+
items @include(if: $withItems) {
|
|
1532
|
+
...CartItemFragment
|
|
1533
|
+
}
|
|
1534
|
+
address @include(if: $withAddress) {
|
|
1535
|
+
...CustomerAddressFragment
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
${exports.CartFragmentFragmentDoc}
|
|
1540
|
+
${exports.CartItemFragmentFragmentDoc}
|
|
1541
|
+
${exports.CustomerAddressFragmentFragmentDoc}`;
|
|
1542
|
+
exports.UpdateCartItemDocument = (0, graphql_tag_1.default) `
|
|
1543
|
+
mutation UpdateCartItem($cartItemId: ID!, $customerId: ID!, $data: UpdateCartItemInput!, $withItems: Boolean = true, $withAddress: Boolean = true) {
|
|
1544
|
+
updateCartItem(cartItemId: $cartItemId, customerId: $customerId, data: $data) {
|
|
1545
|
+
...CartFragment
|
|
1546
|
+
items @include(if: $withItems) {
|
|
1547
|
+
...CartItemFragment
|
|
1548
|
+
}
|
|
1549
|
+
address @include(if: $withAddress) {
|
|
1550
|
+
...CustomerAddressFragment
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
${exports.CartFragmentFragmentDoc}
|
|
1555
|
+
${exports.CartItemFragmentFragmentDoc}
|
|
1556
|
+
${exports.CustomerAddressFragmentFragmentDoc}`;
|
|
1557
|
+
exports.CartDocument = (0, graphql_tag_1.default) `
|
|
1558
|
+
query Cart($customerId: ID!, $withItems: Boolean = true, $withAddress: Boolean = true) {
|
|
1559
|
+
cart(customerId: $customerId) {
|
|
1560
|
+
...CartFragment
|
|
1561
|
+
items @include(if: $withItems) {
|
|
1562
|
+
...CartItemFragment
|
|
1563
|
+
}
|
|
1564
|
+
address @include(if: $withAddress) {
|
|
1565
|
+
...CustomerAddressFragment
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
${exports.CartFragmentFragmentDoc}
|
|
1570
|
+
${exports.CartItemFragmentFragmentDoc}
|
|
1571
|
+
${exports.CustomerAddressFragmentFragmentDoc}`;
|
|
1467
1572
|
exports.InfiniteCategoriesDocument = (0, graphql_tag_1.default) `
|
|
1468
1573
|
query InfiniteCategories($after: String, $before: String, $filter: CategoryFilter, $first: Int, $last: Int, $sort: [CategorySort!], $withChildren: Boolean = false, $withParent: Boolean = false, $withImage: Boolean = false) {
|
|
1469
1574
|
infiniteCategories(
|
|
@@ -1598,7 +1703,7 @@ exports.InfiniteCustomFieldsDocument = (0, graphql_tag_1.default) `
|
|
|
1598
1703
|
}
|
|
1599
1704
|
${exports.CustomFieldFragmentFragmentDoc}`;
|
|
1600
1705
|
exports.PaginatedCustomFieldsDocument = (0, graphql_tag_1.default) `
|
|
1601
|
-
query PaginatedCustomFields($filter: CustomFieldFilter, $limit: Int, $page: Int, $sort: [CustomFieldSort!]
|
|
1706
|
+
query PaginatedCustomFields($filter: CustomFieldFilter, $limit: Int, $page: Int, $sort: [CustomFieldSort!]) {
|
|
1602
1707
|
paginatedCustomFields(filter: $filter, limit: $limit, page: $page, sort: $sort) {
|
|
1603
1708
|
edges {
|
|
1604
1709
|
cursor
|
|
@@ -1706,12 +1811,24 @@ ${exports.CustomerAddressFragmentFragmentDoc}
|
|
|
1706
1811
|
${exports.CustomerTelephoneNumberFragmentFragmentDoc}
|
|
1707
1812
|
${exports.FileFieldsFragmentDoc}`;
|
|
1708
1813
|
exports.CustomerDocument = (0, graphql_tag_1.default) `
|
|
1709
|
-
query Customer($id: ID
|
|
1814
|
+
query Customer($id: ID!, $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false) {
|
|
1710
1815
|
customer(id: $id) {
|
|
1711
1816
|
...CustomerFragment
|
|
1817
|
+
addresses @include(if: $withAddresses) {
|
|
1818
|
+
...CustomerAddressFragment
|
|
1819
|
+
}
|
|
1820
|
+
telephoneNumbers @include(if: $withTelephoneNumbers) {
|
|
1821
|
+
...CustomerTelephoneNumberFragment
|
|
1822
|
+
}
|
|
1823
|
+
image @include(if: $withImage) {
|
|
1824
|
+
...FileFields
|
|
1825
|
+
}
|
|
1712
1826
|
}
|
|
1713
1827
|
}
|
|
1714
|
-
${exports.CustomerFragmentFragmentDoc}
|
|
1828
|
+
${exports.CustomerFragmentFragmentDoc}
|
|
1829
|
+
${exports.CustomerAddressFragmentFragmentDoc}
|
|
1830
|
+
${exports.CustomerTelephoneNumberFragmentFragmentDoc}
|
|
1831
|
+
${exports.FileFieldsFragmentDoc}`;
|
|
1715
1832
|
exports.InitiateFileUploadDocument = (0, graphql_tag_1.default) `
|
|
1716
1833
|
mutation InitiateFileUpload($data: InitiateFileUploadInput!) {
|
|
1717
1834
|
initiateFileUpload(data: $data) {
|
|
@@ -1758,16 +1875,9 @@ exports.InfiniteMetricsDocument = (0, graphql_tag_1.default) `
|
|
|
1758
1875
|
}
|
|
1759
1876
|
}
|
|
1760
1877
|
${exports.MetricFragmentFragmentDoc}`;
|
|
1761
|
-
exports.
|
|
1762
|
-
mutation
|
|
1763
|
-
|
|
1764
|
-
...OrderFragment
|
|
1765
|
-
}
|
|
1766
|
-
}
|
|
1767
|
-
${exports.OrderFragmentFragmentDoc}`;
|
|
1768
|
-
exports.UpdateOrderDocument = (0, graphql_tag_1.default) `
|
|
1769
|
-
mutation UpdateOrder($data: UpdateOrderInput!, $id: ID!) {
|
|
1770
|
-
updateOrder(data: $data, id: $id) {
|
|
1878
|
+
exports.FinalizeOrderDocument = (0, graphql_tag_1.default) `
|
|
1879
|
+
mutation FinalizeOrder($customerId: ID!) {
|
|
1880
|
+
finalizeOrder(customerId: $customerId) {
|
|
1771
1881
|
...OrderFragment
|
|
1772
1882
|
}
|
|
1773
1883
|
}
|
|
@@ -1824,7 +1934,7 @@ exports.OrderDocument = (0, graphql_tag_1.default) `
|
|
|
1824
1934
|
}
|
|
1825
1935
|
${exports.OrderFragmentFragmentDoc}`;
|
|
1826
1936
|
exports.InfiniteProductsDocument = (0, graphql_tag_1.default) `
|
|
1827
|
-
query InfiniteProducts($after: String, $before: String, $filter: ProductFilter, $first: Int, $last: Int, $sort: [ProductSort!], $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false) {
|
|
1937
|
+
query InfiniteProducts($after: String, $before: String, $filter: ProductFilter, $first: Int, $last: Int, $sort: [ProductSort!], $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
|
|
1828
1938
|
infiniteProducts(
|
|
1829
1939
|
after: $after
|
|
1830
1940
|
before: $before
|
|
@@ -1855,6 +1965,9 @@ exports.InfiniteProductsDocument = (0, graphql_tag_1.default) `
|
|
|
1855
1965
|
}
|
|
1856
1966
|
type
|
|
1857
1967
|
}
|
|
1968
|
+
sellers @include(if: $withSellers) {
|
|
1969
|
+
...ProductSellerFragment
|
|
1970
|
+
}
|
|
1858
1971
|
}
|
|
1859
1972
|
}
|
|
1860
1973
|
pageInfo {
|
|
@@ -1869,9 +1982,10 @@ exports.InfiniteProductsDocument = (0, graphql_tag_1.default) `
|
|
|
1869
1982
|
${exports.CategoryFragmentFragmentDoc}
|
|
1870
1983
|
${exports.BrandFragmentFragmentDoc}
|
|
1871
1984
|
${exports.ProductVariantFragmentFragmentDoc}
|
|
1872
|
-
${exports.FileFieldsFragmentDoc}
|
|
1985
|
+
${exports.FileFieldsFragmentDoc}
|
|
1986
|
+
${exports.ProductSellerFragmentFragmentDoc}`;
|
|
1873
1987
|
exports.PaginatedProductsDocument = (0, graphql_tag_1.default) `
|
|
1874
|
-
query PaginatedProducts($filter: ProductFilter, $limit: Int, $page: Int, $sort: [ProductSort!], $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false) {
|
|
1988
|
+
query PaginatedProducts($filter: ProductFilter, $limit: Int, $page: Int, $sort: [ProductSort!], $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
|
|
1875
1989
|
paginatedProducts(filter: $filter, limit: $limit, page: $page, sort: $sort) {
|
|
1876
1990
|
edges {
|
|
1877
1991
|
cursor
|
|
@@ -1895,6 +2009,9 @@ exports.PaginatedProductsDocument = (0, graphql_tag_1.default) `
|
|
|
1895
2009
|
}
|
|
1896
2010
|
type
|
|
1897
2011
|
}
|
|
2012
|
+
sellers @include(if: $withSellers) {
|
|
2013
|
+
...ProductSellerFragment
|
|
2014
|
+
}
|
|
1898
2015
|
}
|
|
1899
2016
|
}
|
|
1900
2017
|
pageInfo {
|
|
@@ -1910,28 +2027,107 @@ exports.PaginatedProductsDocument = (0, graphql_tag_1.default) `
|
|
|
1910
2027
|
${exports.CategoryFragmentFragmentDoc}
|
|
1911
2028
|
${exports.BrandFragmentFragmentDoc}
|
|
1912
2029
|
${exports.ProductVariantFragmentFragmentDoc}
|
|
1913
|
-
${exports.FileFieldsFragmentDoc}
|
|
2030
|
+
${exports.FileFieldsFragmentDoc}
|
|
2031
|
+
${exports.ProductSellerFragmentFragmentDoc}`;
|
|
1914
2032
|
exports.ProductDocument = (0, graphql_tag_1.default) `
|
|
1915
|
-
query Product($id: ID
|
|
2033
|
+
query Product($id: ID!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
|
|
1916
2034
|
product(id: $id) {
|
|
1917
2035
|
...ProductFragment
|
|
2036
|
+
category @include(if: $withCategory) {
|
|
2037
|
+
...CategoryFragment
|
|
2038
|
+
}
|
|
2039
|
+
brand @include(if: $withBrand) {
|
|
2040
|
+
...BrandFragment
|
|
2041
|
+
}
|
|
2042
|
+
variants @include(if: $withVariant) {
|
|
2043
|
+
...ProductVariantFragment
|
|
2044
|
+
}
|
|
2045
|
+
thumbnail @include(if: $withThumbnail) {
|
|
2046
|
+
...FileFields
|
|
2047
|
+
}
|
|
2048
|
+
files @include(if: $withFiles) {
|
|
2049
|
+
file {
|
|
2050
|
+
...FileFields
|
|
2051
|
+
}
|
|
2052
|
+
type
|
|
2053
|
+
}
|
|
2054
|
+
sellers @include(if: $withSellers) {
|
|
2055
|
+
...ProductSellerFragment
|
|
2056
|
+
}
|
|
1918
2057
|
}
|
|
1919
2058
|
}
|
|
1920
|
-
${exports.ProductFragmentFragmentDoc}
|
|
2059
|
+
${exports.ProductFragmentFragmentDoc}
|
|
2060
|
+
${exports.CategoryFragmentFragmentDoc}
|
|
2061
|
+
${exports.BrandFragmentFragmentDoc}
|
|
2062
|
+
${exports.ProductVariantFragmentFragmentDoc}
|
|
2063
|
+
${exports.FileFieldsFragmentDoc}
|
|
2064
|
+
${exports.ProductSellerFragmentFragmentDoc}`;
|
|
1921
2065
|
exports.CreateProductDocument = (0, graphql_tag_1.default) `
|
|
1922
|
-
mutation CreateProduct($data: CreateProductInput
|
|
2066
|
+
mutation CreateProduct($data: CreateProductInput!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
|
|
1923
2067
|
createProduct(data: $data) {
|
|
1924
2068
|
...ProductFragment
|
|
2069
|
+
category @include(if: $withCategory) {
|
|
2070
|
+
...CategoryFragment
|
|
2071
|
+
}
|
|
2072
|
+
brand @include(if: $withBrand) {
|
|
2073
|
+
...BrandFragment
|
|
2074
|
+
}
|
|
2075
|
+
variants @include(if: $withVariant) {
|
|
2076
|
+
...ProductVariantFragment
|
|
2077
|
+
}
|
|
2078
|
+
thumbnail @include(if: $withThumbnail) {
|
|
2079
|
+
...FileFields
|
|
2080
|
+
}
|
|
2081
|
+
files @include(if: $withFiles) {
|
|
2082
|
+
file {
|
|
2083
|
+
...FileFields
|
|
2084
|
+
}
|
|
2085
|
+
type
|
|
2086
|
+
}
|
|
2087
|
+
sellers @include(if: $withSellers) {
|
|
2088
|
+
...ProductSellerFragment
|
|
2089
|
+
}
|
|
1925
2090
|
}
|
|
1926
2091
|
}
|
|
1927
|
-
${exports.ProductFragmentFragmentDoc}
|
|
2092
|
+
${exports.ProductFragmentFragmentDoc}
|
|
2093
|
+
${exports.CategoryFragmentFragmentDoc}
|
|
2094
|
+
${exports.BrandFragmentFragmentDoc}
|
|
2095
|
+
${exports.ProductVariantFragmentFragmentDoc}
|
|
2096
|
+
${exports.FileFieldsFragmentDoc}
|
|
2097
|
+
${exports.ProductSellerFragmentFragmentDoc}`;
|
|
1928
2098
|
exports.UpdateProductDocument = (0, graphql_tag_1.default) `
|
|
1929
|
-
mutation UpdateProduct($data: UpdateProductInput!, $id: ID
|
|
2099
|
+
mutation UpdateProduct($data: UpdateProductInput!, $id: ID!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
|
|
1930
2100
|
updateProduct(data: $data, id: $id) {
|
|
1931
2101
|
...ProductFragment
|
|
2102
|
+
category @include(if: $withCategory) {
|
|
2103
|
+
...CategoryFragment
|
|
2104
|
+
}
|
|
2105
|
+
brand @include(if: $withBrand) {
|
|
2106
|
+
...BrandFragment
|
|
2107
|
+
}
|
|
2108
|
+
variants @include(if: $withVariant) {
|
|
2109
|
+
...ProductVariantFragment
|
|
2110
|
+
}
|
|
2111
|
+
thumbnail @include(if: $withThumbnail) {
|
|
2112
|
+
...FileFields
|
|
2113
|
+
}
|
|
2114
|
+
files @include(if: $withFiles) {
|
|
2115
|
+
file {
|
|
2116
|
+
...FileFields
|
|
2117
|
+
}
|
|
2118
|
+
type
|
|
2119
|
+
}
|
|
2120
|
+
sellers @include(if: $withSellers) {
|
|
2121
|
+
...ProductSellerFragment
|
|
2122
|
+
}
|
|
1932
2123
|
}
|
|
1933
2124
|
}
|
|
1934
|
-
${exports.ProductFragmentFragmentDoc}
|
|
2125
|
+
${exports.ProductFragmentFragmentDoc}
|
|
2126
|
+
${exports.CategoryFragmentFragmentDoc}
|
|
2127
|
+
${exports.BrandFragmentFragmentDoc}
|
|
2128
|
+
${exports.ProductVariantFragmentFragmentDoc}
|
|
2129
|
+
${exports.FileFieldsFragmentDoc}
|
|
2130
|
+
${exports.ProductSellerFragmentFragmentDoc}`;
|
|
1935
2131
|
exports.DeleteProductDocument = (0, graphql_tag_1.default) `
|
|
1936
2132
|
mutation DeleteProduct($id: ID!) {
|
|
1937
2133
|
deleteProduct(id: $id) {
|