@dokamerce/web-sdk 0.21.2 → 0.25.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.
Files changed (28) hide show
  1. package/dist/graphql/__generated__/gateway.d.ts +1590 -661
  2. package/dist/graphql/__generated__/gateway.js +424 -63
  3. package/dist/graphql/__generated__/gateway.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/dist/web-sdk/src/functions/init-sdk-client.function.d.ts +1 -2
  6. package/dist/web-sdk/src/functions/init-sdk.function.d.ts +1 -2
  7. package/dist/web-sdk/src/index.d.ts +5 -13
  8. package/dist/web-sdk/src/index.js +18 -36
  9. package/dist/web-sdk/src/index.js.map +1 -1
  10. package/dist/web-sdk/src/main.d.ts +10 -0
  11. package/dist/web-sdk/src/main.js +43 -0
  12. package/dist/web-sdk/src/main.js.map +1 -0
  13. package/dist/web-sdk/src/services/attributes.d.ts +1 -1
  14. package/dist/web-sdk/src/services/customer-addresses.d.ts +10 -0
  15. package/dist/web-sdk/src/services/customer-addresses.js +27 -0
  16. package/dist/web-sdk/src/services/customer-addresses.js.map +1 -0
  17. package/dist/web-sdk/src/services/customer-email-addresses.d.ts +10 -0
  18. package/dist/web-sdk/src/services/customer-email-addresses.js +27 -0
  19. package/dist/web-sdk/src/services/customer-email-addresses.js.map +1 -0
  20. package/dist/web-sdk/src/services/customer-telephone-numbers.d.ts +10 -0
  21. package/dist/web-sdk/src/services/customer-telephone-numbers.js +27 -0
  22. package/dist/web-sdk/src/services/customer-telephone-numbers.js.map +1 -0
  23. package/dist/web-sdk/src/services/index.d.ts +4 -0
  24. package/dist/web-sdk/src/services/index.js +4 -0
  25. package/dist/web-sdk/src/services/index.js.map +1 -1
  26. package/dist/web-sdk/src/services/products.d.ts +1 -1
  27. package/dist/web-sdk/src/typings/sdk.typing.d.ts +6 -5
  28. package/package.json +2 -2
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FileUploadFieldsFragmentDoc = exports.FileUploadUrlFieldsFragmentDoc = exports.FileFieldsFragmentDoc = exports.FileThumbnailsFieldsFragmentDoc = exports.CustomerTelephoneNumberFragmentFragmentDoc = exports.CustomerFragmentFragmentDoc = exports.CustomFieldFragmentFragmentDoc = exports.ColorFragmentFragmentDoc = exports.CategoryFragmentFragmentDoc = exports.CartItemFragmentFragmentDoc = exports.ProductVariantFragmentFragmentDoc = exports.ProductVariantSellerFragmentFragmentDoc = exports.ProductVariantStockFragmentFragmentDoc = 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.OrderFragmentFragmentDoc = exports.MetricFragmentFragmentDoc = void 0;
3
+ exports.FileUploadUrlFieldsFragmentDoc = exports.FileFieldsFragmentDoc = exports.FileThumbnailsFieldsFragmentDoc = exports.CustomerFragmentFragmentDoc = exports.CustomerTelephoneNumberFragmentFragmentDoc = exports.CustomerEmailAddressFragmentFragmentDoc = 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.EmailAddressRole = exports.CustomerTelephoneNumberFieldsEnum = exports.CustomerFieldsEnum = exports.CustomerEmailAddressFieldsEnum = exports.CustomerAddressFieldsEnum = exports.CustomFieldType = exports.CustomFieldTarget = exports.CustomFieldFieldsEnum = exports.CountryCodeEnum = exports.ColorFieldsEnum = exports.CategoryFieldsEnum = exports.BrandFieldsEnum = exports.AttributeFieldsEnum = void 0;
4
+ exports.InfiniteProductsDocument = exports.OrderDocument = exports.PaginatedOrdersDocument = exports.InfiniteOrdersDocument = exports.FinalizeOrderDocument = exports.InfiniteMetricsDocument = exports.FileDocument = exports.CompleteFileUploadDocument = exports.InitiateFileUploadDocument = exports.UpdateCustomerDocument = exports.CreateCustomerDocument = exports.CustomerDocument = exports.PaginatedCustomersDocument = exports.InfiniteCustomersDocument = exports.PaginatedCustomerTelephoneNumberDocument = exports.InfiniteCustomerTelephoneNumberDocument = exports.DeleteCustomerTelephoneNumberDocument = exports.UpdateCustomerTelephoneNumberDocument = exports.CreateCustomerTelephoneNumberDocument = exports.PaginatedCustomerEmailAddressDocument = exports.InfiniteCustomerEmailAddressDocument = exports.DeleteCustomerEmailAddressDocument = exports.UpdateCustomerEmailAddressDocument = exports.CreateCustomerEmailAddressDocument = exports.PaginatedCustomerAddressDocument = exports.InfiniteCustomerAddressDocument = exports.DeleteCustomerAddressDocument = exports.UpdateCustomerAddressDocument = exports.CreateCustomerAddressDocument = 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 = exports.OrderFragmentFragmentDoc = exports.MetricFragmentFragmentDoc = exports.FileUploadFieldsFragmentDoc = void 0;
5
+ 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 = void 0;
5
6
  const graphql_tag_1 = require("graphql-tag");
6
7
  var AttributeFieldsEnum;
7
8
  (function (AttributeFieldsEnum) {
@@ -331,6 +332,15 @@ var CustomerAddressFieldsEnum;
331
332
  CustomerAddressFieldsEnum["RegionCode"] = "regionCode";
332
333
  CustomerAddressFieldsEnum["RegionName"] = "regionName";
333
334
  })(CustomerAddressFieldsEnum || (exports.CustomerAddressFieldsEnum = CustomerAddressFieldsEnum = {}));
335
+ var CustomerEmailAddressFieldsEnum;
336
+ (function (CustomerEmailAddressFieldsEnum) {
337
+ CustomerEmailAddressFieldsEnum["Bcc"] = "bcc";
338
+ CustomerEmailAddressFieldsEnum["Confirmed"] = "confirmed";
339
+ CustomerEmailAddressFieldsEnum["CreatedAt"] = "createdAt";
340
+ CustomerEmailAddressFieldsEnum["Id"] = "id";
341
+ CustomerEmailAddressFieldsEnum["Roles"] = "roles";
342
+ CustomerEmailAddressFieldsEnum["UpdatedAt"] = "updatedAt";
343
+ })(CustomerEmailAddressFieldsEnum || (exports.CustomerEmailAddressFieldsEnum = CustomerEmailAddressFieldsEnum = {}));
334
344
  var CustomerFieldsEnum;
335
345
  (function (CustomerFieldsEnum) {
336
346
  CustomerFieldsEnum["Active"] = "active";
@@ -348,6 +358,14 @@ var CustomerTelephoneNumberFieldsEnum;
348
358
  CustomerTelephoneNumberFieldsEnum["Targets"] = "targets";
349
359
  CustomerTelephoneNumberFieldsEnum["UpdatedAt"] = "updatedAt";
350
360
  })(CustomerTelephoneNumberFieldsEnum || (exports.CustomerTelephoneNumberFieldsEnum = CustomerTelephoneNumberFieldsEnum = {}));
361
+ var EmailAddressRole;
362
+ (function (EmailAddressRole) {
363
+ EmailAddressRole["Billing"] = "BILLING";
364
+ EmailAddressRole["Marketing"] = "MARKETING";
365
+ EmailAddressRole["Notification"] = "NOTIFICATION";
366
+ EmailAddressRole["Primary"] = "PRIMARY";
367
+ EmailAddressRole["Support"] = "SUPPORT";
368
+ })(EmailAddressRole || (exports.EmailAddressRole = EmailAddressRole = {}));
351
369
  var FileStatusEnum;
352
370
  (function (FileStatusEnum) {
353
371
  FileStatusEnum["Completed"] = "COMPLETED";
@@ -1159,8 +1177,19 @@ exports.CartFragmentFragmentDoc = (0, graphql_tag_1.default) `
1159
1177
  exports.CustomerAddressFragmentFragmentDoc = (0, graphql_tag_1.default) `
1160
1178
  fragment CustomerAddressFragment on CustomerAddress {
1161
1179
  id
1180
+ name
1181
+ postalCode
1182
+ regionCode
1183
+ regionName
1162
1184
  address
1163
1185
  address2
1186
+ city
1187
+ countryCode
1188
+ default
1189
+ geometry {
1190
+ coordinates
1191
+ type
1192
+ }
1164
1193
  createdAt
1165
1194
  updatedAt
1166
1195
  }
@@ -1207,34 +1236,6 @@ exports.SellerFragmentFragmentDoc = (0, graphql_tag_1.default) `
1207
1236
  updatedAt
1208
1237
  }
1209
1238
  `;
1210
- exports.ProductVariantStockFragmentFragmentDoc = (0, graphql_tag_1.default) `
1211
- fragment ProductVariantStockFragment on ProductVariantStock {
1212
- quantity
1213
- seller {
1214
- ...SellerFragment
1215
- }
1216
- }
1217
- ${exports.SellerFragmentFragmentDoc}`;
1218
- exports.ProductVariantSellerFragmentFragmentDoc = (0, graphql_tag_1.default) `
1219
- fragment ProductVariantSellerFragment on ProductVariantSeller {
1220
- active
1221
- barcode
1222
- discountEndAt
1223
- discountFixed
1224
- discountPercentage
1225
- discountStartAt
1226
- priceDiff
1227
- quantity
1228
- seller {
1229
- ...SellerFragment
1230
- }
1231
- sku
1232
- stock {
1233
- ...ProductVariantStockFragment
1234
- }
1235
- }
1236
- ${exports.SellerFragmentFragmentDoc}
1237
- ${exports.ProductVariantStockFragmentFragmentDoc}`;
1238
1239
  exports.ProductVariantFragmentFragmentDoc = (0, graphql_tag_1.default) `
1239
1240
  fragment ProductVariantFragment on ProductVariant {
1240
1241
  active
@@ -1255,11 +1256,8 @@ exports.ProductVariantFragmentFragmentDoc = (0, graphql_tag_1.default) `
1255
1256
  }
1256
1257
  default
1257
1258
  id
1258
- sellers {
1259
- ...ProductVariantSellerFragment
1260
- }
1261
1259
  }
1262
- ${exports.ProductVariantSellerFragmentFragmentDoc}`;
1260
+ `;
1263
1261
  exports.CartItemFragmentFragmentDoc = (0, graphql_tag_1.default) `
1264
1262
  fragment CartItemFragment on CartItem {
1265
1263
  id
@@ -1324,13 +1322,16 @@ exports.CustomFieldFragmentFragmentDoc = (0, graphql_tag_1.default) `
1324
1322
  updatedAt
1325
1323
  }
1326
1324
  `;
1327
- exports.CustomerFragmentFragmentDoc = (0, graphql_tag_1.default) `
1328
- fragment CustomerFragment on Customer {
1329
- id
1330
- fullName
1331
- username
1332
- active
1325
+ exports.CustomerEmailAddressFragmentFragmentDoc = (0, graphql_tag_1.default) `
1326
+ fragment CustomerEmailAddressFragment on CustomerEmailAddress {
1327
+ bcc
1328
+ confirmed
1333
1329
  createdAt
1330
+ emailAddress {
1331
+ value
1332
+ }
1333
+ id
1334
+ roles
1334
1335
  updatedAt
1335
1336
  }
1336
1337
  `;
@@ -1343,6 +1344,17 @@ exports.CustomerTelephoneNumberFragmentFragmentDoc = (0, graphql_tag_1.default)
1343
1344
  updatedAt
1344
1345
  }
1345
1346
  `;
1347
+ exports.CustomerFragmentFragmentDoc = (0, graphql_tag_1.default) `
1348
+ fragment CustomerFragment on Customer {
1349
+ id
1350
+ fullName
1351
+ username
1352
+ active
1353
+ orderCount
1354
+ createdAt
1355
+ updatedAt
1356
+ }
1357
+ `;
1346
1358
  exports.FileThumbnailsFieldsFragmentDoc = (0, graphql_tag_1.default) `
1347
1359
  fragment FileThumbnailsFields on FileThumbnails {
1348
1360
  thumbnail450Url
@@ -1400,6 +1412,26 @@ exports.OrderFragmentFragmentDoc = (0, graphql_tag_1.default) `
1400
1412
  updatedAt
1401
1413
  }
1402
1414
  `;
1415
+ exports.ProductSellerFragmentFragmentDoc = (0, graphql_tag_1.default) `
1416
+ fragment ProductSellerFragment on ProductSeller {
1417
+ active
1418
+ barcode
1419
+ discountEndAt
1420
+ discountFixed
1421
+ discountPercentage
1422
+ discountStartAt
1423
+ priceDiff
1424
+ quantity
1425
+ seller {
1426
+ ...SellerFragment
1427
+ }
1428
+ sku
1429
+ variant {
1430
+ ...ProductVariantFragment
1431
+ }
1432
+ }
1433
+ ${exports.SellerFragmentFragmentDoc}
1434
+ ${exports.ProductVariantFragmentFragmentDoc}`;
1403
1435
  exports.TagFragmentFragmentDoc = (0, graphql_tag_1.default) `
1404
1436
  fragment TagFragment on Tag {
1405
1437
  id
@@ -1739,22 +1771,227 @@ exports.CustomFieldDocument = (0, graphql_tag_1.default) `
1739
1771
  }
1740
1772
  }
1741
1773
  ${exports.CustomFieldFragmentFragmentDoc}`;
1742
- exports.CreateCustomerDocument = (0, graphql_tag_1.default) `
1743
- mutation CreateCustomer($data: CreateCustomerInput!) {
1744
- createCustomer(data: $data) {
1745
- ...CustomerFragment
1774
+ exports.CreateCustomerAddressDocument = (0, graphql_tag_1.default) `
1775
+ mutation CreateCustomerAddress($customerId: ID!, $data: CreateCustomerAddressInput!) {
1776
+ createCustomerAddress(customerId: $customerId, data: $data) {
1777
+ ...CustomerAddressFragment
1746
1778
  }
1747
1779
  }
1748
- ${exports.CustomerFragmentFragmentDoc}`;
1749
- exports.UpdateCustomerDocument = (0, graphql_tag_1.default) `
1750
- mutation UpdateCustomer($data: UpdateCustomerInput!, $id: ID!) {
1751
- updateCustomer(data: $data, id: $id) {
1752
- ...CustomerFragment
1780
+ ${exports.CustomerAddressFragmentFragmentDoc}`;
1781
+ exports.UpdateCustomerAddressDocument = (0, graphql_tag_1.default) `
1782
+ mutation UpdateCustomerAddress($customerId: ID!, $data: UpdateCustomerAddressInput!, $id: ID!) {
1783
+ updateCustomerAddress(customerId: $customerId, data: $data, id: $id) {
1784
+ ...CustomerAddressFragment
1753
1785
  }
1754
1786
  }
1755
- ${exports.CustomerFragmentFragmentDoc}`;
1787
+ ${exports.CustomerAddressFragmentFragmentDoc}`;
1788
+ exports.DeleteCustomerAddressDocument = (0, graphql_tag_1.default) `
1789
+ mutation DeleteCustomerAddress($customerId: ID!, $id: ID!) {
1790
+ deleteCustomerAddress(customerId: $customerId, id: $id) {
1791
+ reason
1792
+ status
1793
+ }
1794
+ }
1795
+ `;
1796
+ exports.InfiniteCustomerAddressDocument = (0, graphql_tag_1.default) `
1797
+ query InfiniteCustomerAddress($after: String, $before: String, $filter: CustomerAddressFilter, $first: Int, $last: Int, $sort: [CustomerAddressSort!], $customerId: ID!) {
1798
+ infiniteCustomerAddress(
1799
+ after: $after
1800
+ before: $before
1801
+ filter: $filter
1802
+ first: $first
1803
+ last: $last
1804
+ sort: $sort
1805
+ customerId: $customerId
1806
+ ) {
1807
+ edges {
1808
+ cursor
1809
+ node {
1810
+ ...CustomerAddressFragment
1811
+ }
1812
+ }
1813
+ pageInfo {
1814
+ endCursor
1815
+ hasNextPage
1816
+ hasPreviousPage
1817
+ startCursor
1818
+ }
1819
+ }
1820
+ }
1821
+ ${exports.CustomerAddressFragmentFragmentDoc}`;
1822
+ exports.PaginatedCustomerAddressDocument = (0, graphql_tag_1.default) `
1823
+ query PaginatedCustomerAddress($filter: CustomerAddressFilter, $limit: Int, $page: Int, $sort: [CustomerAddressSort!], $customerId: ID!) {
1824
+ paginatedCustomerAddress(
1825
+ filter: $filter
1826
+ limit: $limit
1827
+ page: $page
1828
+ sort: $sort
1829
+ customerId: $customerId
1830
+ ) {
1831
+ edges {
1832
+ cursor
1833
+ node {
1834
+ ...CustomerAddressFragment
1835
+ }
1836
+ }
1837
+ pageInfo {
1838
+ currentPage
1839
+ hasNextPage
1840
+ hasPreviousPage
1841
+ totalEdges
1842
+ totalPages
1843
+ }
1844
+ }
1845
+ }
1846
+ ${exports.CustomerAddressFragmentFragmentDoc}`;
1847
+ exports.CreateCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1848
+ mutation CreateCustomerEmailAddress($customerId: ID!, $data: CreateCustomerEmailAddressInput!) {
1849
+ createCustomerEmailAddress(customerId: $customerId, data: $data) {
1850
+ ...CustomerEmailAddressFragment
1851
+ }
1852
+ }
1853
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}`;
1854
+ exports.UpdateCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1855
+ mutation UpdateCustomerEmailAddress($customerId: ID!, $data: UpdateCustomerEmailAddressInput!, $id: ID!) {
1856
+ updateCustomerEmailAddress(customerId: $customerId, data: $data, id: $id) {
1857
+ ...CustomerEmailAddressFragment
1858
+ }
1859
+ }
1860
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}`;
1861
+ exports.DeleteCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1862
+ mutation DeleteCustomerEmailAddress($customerId: ID!, $id: ID!) {
1863
+ deleteCustomerEmailAddress(customerId: $customerId, id: $id) {
1864
+ reason
1865
+ status
1866
+ }
1867
+ }
1868
+ `;
1869
+ exports.InfiniteCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1870
+ query InfiniteCustomerEmailAddress($after: String, $before: String, $filter: CustomerEmailAddressFilter, $first: Int, $last: Int, $sort: [CustomerEmailAddressSort!], $customerId: ID!) {
1871
+ infiniteCustomerEmailAddresses(
1872
+ after: $after
1873
+ before: $before
1874
+ filter: $filter
1875
+ first: $first
1876
+ last: $last
1877
+ sort: $sort
1878
+ customerId: $customerId
1879
+ ) {
1880
+ edges {
1881
+ cursor
1882
+ node {
1883
+ ...CustomerEmailAddressFragment
1884
+ }
1885
+ }
1886
+ pageInfo {
1887
+ endCursor
1888
+ hasNextPage
1889
+ hasPreviousPage
1890
+ startCursor
1891
+ }
1892
+ }
1893
+ }
1894
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}`;
1895
+ exports.PaginatedCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1896
+ query PaginatedCustomerEmailAddress($filter: CustomerEmailAddressFilter, $limit: Int, $page: Int, $sort: [CustomerEmailAddressSort!], $customerId: ID!) {
1897
+ paginatedCustomerEmailAddresses(
1898
+ filter: $filter
1899
+ limit: $limit
1900
+ page: $page
1901
+ sort: $sort
1902
+ customerId: $customerId
1903
+ ) {
1904
+ edges {
1905
+ cursor
1906
+ node {
1907
+ ...CustomerEmailAddressFragment
1908
+ }
1909
+ }
1910
+ pageInfo {
1911
+ currentPage
1912
+ hasNextPage
1913
+ hasPreviousPage
1914
+ totalEdges
1915
+ totalPages
1916
+ }
1917
+ }
1918
+ }
1919
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}`;
1920
+ exports.CreateCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1921
+ mutation CreateCustomerTelephoneNumber($customerId: ID!, $data: CreateCustomerTelephoneNumberInput!) {
1922
+ createCustomerTelephoneNumber(customerId: $customerId, data: $data) {
1923
+ ...CustomerTelephoneNumberFragment
1924
+ }
1925
+ }
1926
+ ${exports.CustomerTelephoneNumberFragmentFragmentDoc}`;
1927
+ exports.UpdateCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1928
+ mutation UpdateCustomerTelephoneNumber($customerId: ID!, $data: UpdateCustomerTelephoneNumberInput!, $id: ID!) {
1929
+ updateCustomerTelephoneNumber(customerId: $customerId, data: $data, id: $id) {
1930
+ ...CustomerTelephoneNumberFragment
1931
+ }
1932
+ }
1933
+ ${exports.CustomerTelephoneNumberFragmentFragmentDoc}`;
1934
+ exports.DeleteCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1935
+ mutation DeleteCustomerTelephoneNumber($customerId: ID!, $id: ID!) {
1936
+ deleteCustomerTelephoneNumber(customerId: $customerId, id: $id) {
1937
+ reason
1938
+ status
1939
+ }
1940
+ }
1941
+ `;
1942
+ exports.InfiniteCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1943
+ query InfiniteCustomerTelephoneNumber($after: String, $before: String, $filter: CustomerTelephoneNumberFilter, $first: Int, $last: Int, $sort: [CustomerTelephoneNumberSort!], $customerId: ID!) {
1944
+ infiniteCustomerTelephoneNumbers(
1945
+ after: $after
1946
+ before: $before
1947
+ filter: $filter
1948
+ first: $first
1949
+ last: $last
1950
+ sort: $sort
1951
+ customerId: $customerId
1952
+ ) {
1953
+ edges {
1954
+ cursor
1955
+ node {
1956
+ ...CustomerTelephoneNumberFragment
1957
+ }
1958
+ }
1959
+ pageInfo {
1960
+ endCursor
1961
+ hasNextPage
1962
+ hasPreviousPage
1963
+ startCursor
1964
+ }
1965
+ }
1966
+ }
1967
+ ${exports.CustomerTelephoneNumberFragmentFragmentDoc}`;
1968
+ exports.PaginatedCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1969
+ query PaginatedCustomerTelephoneNumber($filter: CustomerTelephoneNumberFilter, $limit: Int, $page: Int, $sort: [CustomerTelephoneNumberSort!], $customerId: ID!) {
1970
+ paginatedCustomerTelephoneNumbers(
1971
+ filter: $filter
1972
+ limit: $limit
1973
+ page: $page
1974
+ sort: $sort
1975
+ customerId: $customerId
1976
+ ) {
1977
+ edges {
1978
+ cursor
1979
+ node {
1980
+ ...CustomerTelephoneNumberFragment
1981
+ }
1982
+ }
1983
+ pageInfo {
1984
+ currentPage
1985
+ hasNextPage
1986
+ hasPreviousPage
1987
+ totalEdges
1988
+ totalPages
1989
+ }
1990
+ }
1991
+ }
1992
+ ${exports.CustomerTelephoneNumberFragmentFragmentDoc}`;
1756
1993
  exports.InfiniteCustomersDocument = (0, graphql_tag_1.default) `
1757
- query InfiniteCustomers($after: String, $before: String, $filter: CustomerFilter, $first: Int, $last: Int, $sort: [CustomerSort!], $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false) {
1994
+ query InfiniteCustomers($after: String, $before: String, $filter: CustomerFilter, $first: Int, $last: Int, $sort: [CustomerSort!], $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false, $withTags: Boolean = false, $withEmails: Boolean = false) {
1758
1995
  infiniteCustomers(
1759
1996
  after: $after
1760
1997
  before: $before
@@ -1773,6 +2010,12 @@ exports.InfiniteCustomersDocument = (0, graphql_tag_1.default) `
1773
2010
  telephoneNumbers @include(if: $withTelephoneNumbers) {
1774
2011
  ...CustomerTelephoneNumberFragment
1775
2012
  }
2013
+ tags @include(if: $withTags) {
2014
+ ...TagFragment
2015
+ }
2016
+ emails @include(if: $withEmails) {
2017
+ ...CustomerEmailAddressFragment
2018
+ }
1776
2019
  image @include(if: $withImage) {
1777
2020
  ...FileFields
1778
2021
  }
@@ -1789,9 +2032,11 @@ exports.InfiniteCustomersDocument = (0, graphql_tag_1.default) `
1789
2032
  ${exports.CustomerFragmentFragmentDoc}
1790
2033
  ${exports.CustomerAddressFragmentFragmentDoc}
1791
2034
  ${exports.CustomerTelephoneNumberFragmentFragmentDoc}
2035
+ ${exports.TagFragmentFragmentDoc}
2036
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}
1792
2037
  ${exports.FileFieldsFragmentDoc}`;
1793
2038
  exports.PaginatedCustomersDocument = (0, graphql_tag_1.default) `
1794
- query PaginatedCustomers($filter: CustomerFilter, $limit: Int, $page: Int, $sort: [CustomerSort!], $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false) {
2039
+ query PaginatedCustomers($filter: CustomerFilter, $limit: Int, $page: Int, $sort: [CustomerSort!], $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false, $withTags: Boolean = false, $withEmails: Boolean = false) {
1795
2040
  paginatedCustomers(filter: $filter, limit: $limit, page: $page, sort: $sort) {
1796
2041
  edges {
1797
2042
  cursor
@@ -1803,6 +2048,12 @@ exports.PaginatedCustomersDocument = (0, graphql_tag_1.default) `
1803
2048
  telephoneNumbers @include(if: $withTelephoneNumbers) {
1804
2049
  ...CustomerTelephoneNumberFragment
1805
2050
  }
2051
+ tags @include(if: $withTags) {
2052
+ ...TagFragment
2053
+ }
2054
+ emails @include(if: $withEmails) {
2055
+ ...CustomerEmailAddressFragment
2056
+ }
1806
2057
  image @include(if: $withImage) {
1807
2058
  ...FileFields
1808
2059
  }
@@ -1820,9 +2071,11 @@ exports.PaginatedCustomersDocument = (0, graphql_tag_1.default) `
1820
2071
  ${exports.CustomerFragmentFragmentDoc}
1821
2072
  ${exports.CustomerAddressFragmentFragmentDoc}
1822
2073
  ${exports.CustomerTelephoneNumberFragmentFragmentDoc}
2074
+ ${exports.TagFragmentFragmentDoc}
2075
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}
1823
2076
  ${exports.FileFieldsFragmentDoc}`;
1824
2077
  exports.CustomerDocument = (0, graphql_tag_1.default) `
1825
- query Customer($id: ID!, $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false) {
2078
+ query Customer($id: ID!, $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false, $withTags: Boolean = false, $withEmails: Boolean = false) {
1826
2079
  customer(id: $id) {
1827
2080
  ...CustomerFragment
1828
2081
  addresses @include(if: $withAddresses) {
@@ -1831,6 +2084,12 @@ exports.CustomerDocument = (0, graphql_tag_1.default) `
1831
2084
  telephoneNumbers @include(if: $withTelephoneNumbers) {
1832
2085
  ...CustomerTelephoneNumberFragment
1833
2086
  }
2087
+ tags @include(if: $withTags) {
2088
+ ...TagFragment
2089
+ }
2090
+ emails @include(if: $withEmails) {
2091
+ ...CustomerEmailAddressFragment
2092
+ }
1834
2093
  image @include(if: $withImage) {
1835
2094
  ...FileFields
1836
2095
  }
@@ -1839,7 +2098,23 @@ exports.CustomerDocument = (0, graphql_tag_1.default) `
1839
2098
  ${exports.CustomerFragmentFragmentDoc}
1840
2099
  ${exports.CustomerAddressFragmentFragmentDoc}
1841
2100
  ${exports.CustomerTelephoneNumberFragmentFragmentDoc}
2101
+ ${exports.TagFragmentFragmentDoc}
2102
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}
1842
2103
  ${exports.FileFieldsFragmentDoc}`;
2104
+ exports.CreateCustomerDocument = (0, graphql_tag_1.default) `
2105
+ mutation CreateCustomer($data: CreateCustomerInput!) {
2106
+ createCustomer(data: $data) {
2107
+ ...CustomerFragment
2108
+ }
2109
+ }
2110
+ ${exports.CustomerFragmentFragmentDoc}`;
2111
+ exports.UpdateCustomerDocument = (0, graphql_tag_1.default) `
2112
+ mutation UpdateCustomer($data: UpdateCustomerInput!, $id: ID!) {
2113
+ updateCustomer(data: $data, id: $id) {
2114
+ ...CustomerFragment
2115
+ }
2116
+ }
2117
+ ${exports.CustomerFragmentFragmentDoc}`;
1843
2118
  exports.InitiateFileUploadDocument = (0, graphql_tag_1.default) `
1844
2119
  mutation InitiateFileUpload($data: InitiateFileUploadInput!) {
1845
2120
  initiateFileUpload(data: $data) {
@@ -1945,7 +2220,7 @@ exports.OrderDocument = (0, graphql_tag_1.default) `
1945
2220
  }
1946
2221
  ${exports.OrderFragmentFragmentDoc}`;
1947
2222
  exports.InfiniteProductsDocument = (0, graphql_tag_1.default) `
1948
- 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) {
2223
+ 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) {
1949
2224
  infiniteProducts(
1950
2225
  after: $after
1951
2226
  before: $before
@@ -1976,6 +2251,9 @@ exports.InfiniteProductsDocument = (0, graphql_tag_1.default) `
1976
2251
  }
1977
2252
  type
1978
2253
  }
2254
+ sellers @include(if: $withSellers) {
2255
+ ...ProductSellerFragment
2256
+ }
1979
2257
  }
1980
2258
  }
1981
2259
  pageInfo {
@@ -1990,9 +2268,10 @@ exports.InfiniteProductsDocument = (0, graphql_tag_1.default) `
1990
2268
  ${exports.CategoryFragmentFragmentDoc}
1991
2269
  ${exports.BrandFragmentFragmentDoc}
1992
2270
  ${exports.ProductVariantFragmentFragmentDoc}
1993
- ${exports.FileFieldsFragmentDoc}`;
2271
+ ${exports.FileFieldsFragmentDoc}
2272
+ ${exports.ProductSellerFragmentFragmentDoc}`;
1994
2273
  exports.PaginatedProductsDocument = (0, graphql_tag_1.default) `
1995
- 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) {
2274
+ 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) {
1996
2275
  paginatedProducts(filter: $filter, limit: $limit, page: $page, sort: $sort) {
1997
2276
  edges {
1998
2277
  cursor
@@ -2016,6 +2295,9 @@ exports.PaginatedProductsDocument = (0, graphql_tag_1.default) `
2016
2295
  }
2017
2296
  type
2018
2297
  }
2298
+ sellers @include(if: $withSellers) {
2299
+ ...ProductSellerFragment
2300
+ }
2019
2301
  }
2020
2302
  }
2021
2303
  pageInfo {
@@ -2031,28 +2313,107 @@ exports.PaginatedProductsDocument = (0, graphql_tag_1.default) `
2031
2313
  ${exports.CategoryFragmentFragmentDoc}
2032
2314
  ${exports.BrandFragmentFragmentDoc}
2033
2315
  ${exports.ProductVariantFragmentFragmentDoc}
2034
- ${exports.FileFieldsFragmentDoc}`;
2316
+ ${exports.FileFieldsFragmentDoc}
2317
+ ${exports.ProductSellerFragmentFragmentDoc}`;
2035
2318
  exports.ProductDocument = (0, graphql_tag_1.default) `
2036
- query Product($id: ID!) {
2319
+ query Product($id: ID!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
2037
2320
  product(id: $id) {
2038
2321
  ...ProductFragment
2322
+ category @include(if: $withCategory) {
2323
+ ...CategoryFragment
2324
+ }
2325
+ brand @include(if: $withBrand) {
2326
+ ...BrandFragment
2327
+ }
2328
+ variants @include(if: $withVariant) {
2329
+ ...ProductVariantFragment
2330
+ }
2331
+ thumbnail @include(if: $withThumbnail) {
2332
+ ...FileFields
2333
+ }
2334
+ files @include(if: $withFiles) {
2335
+ file {
2336
+ ...FileFields
2337
+ }
2338
+ type
2339
+ }
2340
+ sellers @include(if: $withSellers) {
2341
+ ...ProductSellerFragment
2342
+ }
2039
2343
  }
2040
2344
  }
2041
- ${exports.ProductFragmentFragmentDoc}`;
2345
+ ${exports.ProductFragmentFragmentDoc}
2346
+ ${exports.CategoryFragmentFragmentDoc}
2347
+ ${exports.BrandFragmentFragmentDoc}
2348
+ ${exports.ProductVariantFragmentFragmentDoc}
2349
+ ${exports.FileFieldsFragmentDoc}
2350
+ ${exports.ProductSellerFragmentFragmentDoc}`;
2042
2351
  exports.CreateProductDocument = (0, graphql_tag_1.default) `
2043
- mutation CreateProduct($data: CreateProductInput!) {
2352
+ mutation CreateProduct($data: CreateProductInput!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
2044
2353
  createProduct(data: $data) {
2045
2354
  ...ProductFragment
2355
+ category @include(if: $withCategory) {
2356
+ ...CategoryFragment
2357
+ }
2358
+ brand @include(if: $withBrand) {
2359
+ ...BrandFragment
2360
+ }
2361
+ variants @include(if: $withVariant) {
2362
+ ...ProductVariantFragment
2363
+ }
2364
+ thumbnail @include(if: $withThumbnail) {
2365
+ ...FileFields
2366
+ }
2367
+ files @include(if: $withFiles) {
2368
+ file {
2369
+ ...FileFields
2370
+ }
2371
+ type
2372
+ }
2373
+ sellers @include(if: $withSellers) {
2374
+ ...ProductSellerFragment
2375
+ }
2046
2376
  }
2047
2377
  }
2048
- ${exports.ProductFragmentFragmentDoc}`;
2378
+ ${exports.ProductFragmentFragmentDoc}
2379
+ ${exports.CategoryFragmentFragmentDoc}
2380
+ ${exports.BrandFragmentFragmentDoc}
2381
+ ${exports.ProductVariantFragmentFragmentDoc}
2382
+ ${exports.FileFieldsFragmentDoc}
2383
+ ${exports.ProductSellerFragmentFragmentDoc}`;
2049
2384
  exports.UpdateProductDocument = (0, graphql_tag_1.default) `
2050
- mutation UpdateProduct($data: UpdateProductInput!, $id: ID!) {
2385
+ mutation UpdateProduct($data: UpdateProductInput!, $id: ID!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
2051
2386
  updateProduct(data: $data, id: $id) {
2052
2387
  ...ProductFragment
2388
+ category @include(if: $withCategory) {
2389
+ ...CategoryFragment
2390
+ }
2391
+ brand @include(if: $withBrand) {
2392
+ ...BrandFragment
2393
+ }
2394
+ variants @include(if: $withVariant) {
2395
+ ...ProductVariantFragment
2396
+ }
2397
+ thumbnail @include(if: $withThumbnail) {
2398
+ ...FileFields
2399
+ }
2400
+ files @include(if: $withFiles) {
2401
+ file {
2402
+ ...FileFields
2403
+ }
2404
+ type
2405
+ }
2406
+ sellers @include(if: $withSellers) {
2407
+ ...ProductSellerFragment
2408
+ }
2053
2409
  }
2054
2410
  }
2055
- ${exports.ProductFragmentFragmentDoc}`;
2411
+ ${exports.ProductFragmentFragmentDoc}
2412
+ ${exports.CategoryFragmentFragmentDoc}
2413
+ ${exports.BrandFragmentFragmentDoc}
2414
+ ${exports.ProductVariantFragmentFragmentDoc}
2415
+ ${exports.FileFieldsFragmentDoc}
2416
+ ${exports.ProductSellerFragmentFragmentDoc}`;
2056
2417
  exports.DeleteProductDocument = (0, graphql_tag_1.default) `
2057
2418
  mutation DeleteProduct($id: ID!) {
2058
2419
  deleteProduct(id: $id) {