@dokamerce/web-sdk 0.22.0 → 0.26.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.
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ 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.ReviewFieldsEnum = 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.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.ProductReviewFragmentFragmentDoc = exports.OrderFragmentFragmentDoc = exports.MetricFragmentFragmentDoc = exports.FileUploadFieldsFragmentDoc = exports.FileUploadUrlFieldsFragmentDoc = 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 = exports.InfiniteProductsDocument = exports.DeleteProductReviewDocument = exports.UpdateProductReviewDocument = exports.CreateProductReviewDocument = exports.PaginatedProductReviewsDocument = exports.InfiniteProductReviewsDocument = exports.OrderDocument = 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";
@@ -462,6 +480,15 @@ var RegionFieldsEnum;
462
480
  (function (RegionFieldsEnum) {
463
481
  RegionFieldsEnum["Code"] = "code";
464
482
  })(RegionFieldsEnum || (exports.RegionFieldsEnum = RegionFieldsEnum = {}));
483
+ var ReviewFieldsEnum;
484
+ (function (ReviewFieldsEnum) {
485
+ ReviewFieldsEnum["Content"] = "content";
486
+ ReviewFieldsEnum["CreatedAt"] = "createdAt";
487
+ ReviewFieldsEnum["Id"] = "id";
488
+ ReviewFieldsEnum["Rating"] = "rating";
489
+ ReviewFieldsEnum["Title"] = "title";
490
+ ReviewFieldsEnum["UpdatedAt"] = "updatedAt";
491
+ })(ReviewFieldsEnum || (exports.ReviewFieldsEnum = ReviewFieldsEnum = {}));
465
492
  var SellerFieldsEnum;
466
493
  (function (SellerFieldsEnum) {
467
494
  SellerFieldsEnum["CreatedAt"] = "createdAt";
@@ -1159,8 +1186,19 @@ exports.CartFragmentFragmentDoc = (0, graphql_tag_1.default) `
1159
1186
  exports.CustomerAddressFragmentFragmentDoc = (0, graphql_tag_1.default) `
1160
1187
  fragment CustomerAddressFragment on CustomerAddress {
1161
1188
  id
1189
+ name
1190
+ postalCode
1191
+ regionCode
1192
+ regionName
1162
1193
  address
1163
1194
  address2
1195
+ city
1196
+ countryCode
1197
+ default
1198
+ geometry {
1199
+ coordinates
1200
+ type
1201
+ }
1164
1202
  createdAt
1165
1203
  updatedAt
1166
1204
  }
@@ -1293,13 +1331,16 @@ exports.CustomFieldFragmentFragmentDoc = (0, graphql_tag_1.default) `
1293
1331
  updatedAt
1294
1332
  }
1295
1333
  `;
1296
- exports.CustomerFragmentFragmentDoc = (0, graphql_tag_1.default) `
1297
- fragment CustomerFragment on Customer {
1298
- id
1299
- fullName
1300
- username
1301
- active
1334
+ exports.CustomerEmailAddressFragmentFragmentDoc = (0, graphql_tag_1.default) `
1335
+ fragment CustomerEmailAddressFragment on CustomerEmailAddress {
1336
+ bcc
1337
+ confirmed
1302
1338
  createdAt
1339
+ emailAddress {
1340
+ value
1341
+ }
1342
+ id
1343
+ roles
1303
1344
  updatedAt
1304
1345
  }
1305
1346
  `;
@@ -1312,6 +1353,17 @@ exports.CustomerTelephoneNumberFragmentFragmentDoc = (0, graphql_tag_1.default)
1312
1353
  updatedAt
1313
1354
  }
1314
1355
  `;
1356
+ exports.CustomerFragmentFragmentDoc = (0, graphql_tag_1.default) `
1357
+ fragment CustomerFragment on Customer {
1358
+ id
1359
+ fullName
1360
+ username
1361
+ active
1362
+ orderCount
1363
+ createdAt
1364
+ updatedAt
1365
+ }
1366
+ `;
1315
1367
  exports.FileThumbnailsFieldsFragmentDoc = (0, graphql_tag_1.default) `
1316
1368
  fragment FileThumbnailsFields on FileThumbnails {
1317
1369
  thumbnail450Url
@@ -1369,6 +1421,16 @@ exports.OrderFragmentFragmentDoc = (0, graphql_tag_1.default) `
1369
1421
  updatedAt
1370
1422
  }
1371
1423
  `;
1424
+ exports.ProductReviewFragmentFragmentDoc = (0, graphql_tag_1.default) `
1425
+ fragment ProductReviewFragment on ProductReview {
1426
+ id
1427
+ title
1428
+ content
1429
+ rating
1430
+ createdAt
1431
+ updatedAt
1432
+ }
1433
+ `;
1372
1434
  exports.ProductSellerFragmentFragmentDoc = (0, graphql_tag_1.default) `
1373
1435
  fragment ProductSellerFragment on ProductSeller {
1374
1436
  active
@@ -1728,22 +1790,227 @@ exports.CustomFieldDocument = (0, graphql_tag_1.default) `
1728
1790
  }
1729
1791
  }
1730
1792
  ${exports.CustomFieldFragmentFragmentDoc}`;
1731
- exports.CreateCustomerDocument = (0, graphql_tag_1.default) `
1732
- mutation CreateCustomer($data: CreateCustomerInput!) {
1733
- createCustomer(data: $data) {
1734
- ...CustomerFragment
1793
+ exports.CreateCustomerAddressDocument = (0, graphql_tag_1.default) `
1794
+ mutation CreateCustomerAddress($customerId: ID!, $data: CreateCustomerAddressInput!) {
1795
+ createCustomerAddress(customerId: $customerId, data: $data) {
1796
+ ...CustomerAddressFragment
1735
1797
  }
1736
1798
  }
1737
- ${exports.CustomerFragmentFragmentDoc}`;
1738
- exports.UpdateCustomerDocument = (0, graphql_tag_1.default) `
1739
- mutation UpdateCustomer($data: UpdateCustomerInput!, $id: ID!) {
1740
- updateCustomer(data: $data, id: $id) {
1741
- ...CustomerFragment
1799
+ ${exports.CustomerAddressFragmentFragmentDoc}`;
1800
+ exports.UpdateCustomerAddressDocument = (0, graphql_tag_1.default) `
1801
+ mutation UpdateCustomerAddress($customerId: ID!, $data: UpdateCustomerAddressInput!, $id: ID!) {
1802
+ updateCustomerAddress(customerId: $customerId, data: $data, id: $id) {
1803
+ ...CustomerAddressFragment
1742
1804
  }
1743
1805
  }
1744
- ${exports.CustomerFragmentFragmentDoc}`;
1806
+ ${exports.CustomerAddressFragmentFragmentDoc}`;
1807
+ exports.DeleteCustomerAddressDocument = (0, graphql_tag_1.default) `
1808
+ mutation DeleteCustomerAddress($customerId: ID!, $id: ID!) {
1809
+ deleteCustomerAddress(customerId: $customerId, id: $id) {
1810
+ reason
1811
+ status
1812
+ }
1813
+ }
1814
+ `;
1815
+ exports.InfiniteCustomerAddressDocument = (0, graphql_tag_1.default) `
1816
+ query InfiniteCustomerAddress($after: String, $before: String, $filter: CustomerAddressFilter, $first: Int, $last: Int, $sort: [CustomerAddressSort!], $customerId: ID!) {
1817
+ infiniteCustomerAddress(
1818
+ after: $after
1819
+ before: $before
1820
+ filter: $filter
1821
+ first: $first
1822
+ last: $last
1823
+ sort: $sort
1824
+ customerId: $customerId
1825
+ ) {
1826
+ edges {
1827
+ cursor
1828
+ node {
1829
+ ...CustomerAddressFragment
1830
+ }
1831
+ }
1832
+ pageInfo {
1833
+ endCursor
1834
+ hasNextPage
1835
+ hasPreviousPage
1836
+ startCursor
1837
+ }
1838
+ }
1839
+ }
1840
+ ${exports.CustomerAddressFragmentFragmentDoc}`;
1841
+ exports.PaginatedCustomerAddressDocument = (0, graphql_tag_1.default) `
1842
+ query PaginatedCustomerAddress($filter: CustomerAddressFilter, $limit: Int, $page: Int, $sort: [CustomerAddressSort!], $customerId: ID!) {
1843
+ paginatedCustomerAddress(
1844
+ filter: $filter
1845
+ limit: $limit
1846
+ page: $page
1847
+ sort: $sort
1848
+ customerId: $customerId
1849
+ ) {
1850
+ edges {
1851
+ cursor
1852
+ node {
1853
+ ...CustomerAddressFragment
1854
+ }
1855
+ }
1856
+ pageInfo {
1857
+ currentPage
1858
+ hasNextPage
1859
+ hasPreviousPage
1860
+ totalEdges
1861
+ totalPages
1862
+ }
1863
+ }
1864
+ }
1865
+ ${exports.CustomerAddressFragmentFragmentDoc}`;
1866
+ exports.CreateCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1867
+ mutation CreateCustomerEmailAddress($customerId: ID!, $data: CreateCustomerEmailAddressInput!) {
1868
+ createCustomerEmailAddress(customerId: $customerId, data: $data) {
1869
+ ...CustomerEmailAddressFragment
1870
+ }
1871
+ }
1872
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}`;
1873
+ exports.UpdateCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1874
+ mutation UpdateCustomerEmailAddress($customerId: ID!, $data: UpdateCustomerEmailAddressInput!, $id: ID!) {
1875
+ updateCustomerEmailAddress(customerId: $customerId, data: $data, id: $id) {
1876
+ ...CustomerEmailAddressFragment
1877
+ }
1878
+ }
1879
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}`;
1880
+ exports.DeleteCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1881
+ mutation DeleteCustomerEmailAddress($customerId: ID!, $id: ID!) {
1882
+ deleteCustomerEmailAddress(customerId: $customerId, id: $id) {
1883
+ reason
1884
+ status
1885
+ }
1886
+ }
1887
+ `;
1888
+ exports.InfiniteCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1889
+ query InfiniteCustomerEmailAddress($after: String, $before: String, $filter: CustomerEmailAddressFilter, $first: Int, $last: Int, $sort: [CustomerEmailAddressSort!], $customerId: ID!) {
1890
+ infiniteCustomerEmailAddresses(
1891
+ after: $after
1892
+ before: $before
1893
+ filter: $filter
1894
+ first: $first
1895
+ last: $last
1896
+ sort: $sort
1897
+ customerId: $customerId
1898
+ ) {
1899
+ edges {
1900
+ cursor
1901
+ node {
1902
+ ...CustomerEmailAddressFragment
1903
+ }
1904
+ }
1905
+ pageInfo {
1906
+ endCursor
1907
+ hasNextPage
1908
+ hasPreviousPage
1909
+ startCursor
1910
+ }
1911
+ }
1912
+ }
1913
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}`;
1914
+ exports.PaginatedCustomerEmailAddressDocument = (0, graphql_tag_1.default) `
1915
+ query PaginatedCustomerEmailAddress($filter: CustomerEmailAddressFilter, $limit: Int, $page: Int, $sort: [CustomerEmailAddressSort!], $customerId: ID!) {
1916
+ paginatedCustomerEmailAddresses(
1917
+ filter: $filter
1918
+ limit: $limit
1919
+ page: $page
1920
+ sort: $sort
1921
+ customerId: $customerId
1922
+ ) {
1923
+ edges {
1924
+ cursor
1925
+ node {
1926
+ ...CustomerEmailAddressFragment
1927
+ }
1928
+ }
1929
+ pageInfo {
1930
+ currentPage
1931
+ hasNextPage
1932
+ hasPreviousPage
1933
+ totalEdges
1934
+ totalPages
1935
+ }
1936
+ }
1937
+ }
1938
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}`;
1939
+ exports.CreateCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1940
+ mutation CreateCustomerTelephoneNumber($customerId: ID!, $data: CreateCustomerTelephoneNumberInput!) {
1941
+ createCustomerTelephoneNumber(customerId: $customerId, data: $data) {
1942
+ ...CustomerTelephoneNumberFragment
1943
+ }
1944
+ }
1945
+ ${exports.CustomerTelephoneNumberFragmentFragmentDoc}`;
1946
+ exports.UpdateCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1947
+ mutation UpdateCustomerTelephoneNumber($customerId: ID!, $data: UpdateCustomerTelephoneNumberInput!, $id: ID!) {
1948
+ updateCustomerTelephoneNumber(customerId: $customerId, data: $data, id: $id) {
1949
+ ...CustomerTelephoneNumberFragment
1950
+ }
1951
+ }
1952
+ ${exports.CustomerTelephoneNumberFragmentFragmentDoc}`;
1953
+ exports.DeleteCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1954
+ mutation DeleteCustomerTelephoneNumber($customerId: ID!, $id: ID!) {
1955
+ deleteCustomerTelephoneNumber(customerId: $customerId, id: $id) {
1956
+ reason
1957
+ status
1958
+ }
1959
+ }
1960
+ `;
1961
+ exports.InfiniteCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1962
+ query InfiniteCustomerTelephoneNumber($after: String, $before: String, $filter: CustomerTelephoneNumberFilter, $first: Int, $last: Int, $sort: [CustomerTelephoneNumberSort!], $customerId: ID!) {
1963
+ infiniteCustomerTelephoneNumbers(
1964
+ after: $after
1965
+ before: $before
1966
+ filter: $filter
1967
+ first: $first
1968
+ last: $last
1969
+ sort: $sort
1970
+ customerId: $customerId
1971
+ ) {
1972
+ edges {
1973
+ cursor
1974
+ node {
1975
+ ...CustomerTelephoneNumberFragment
1976
+ }
1977
+ }
1978
+ pageInfo {
1979
+ endCursor
1980
+ hasNextPage
1981
+ hasPreviousPage
1982
+ startCursor
1983
+ }
1984
+ }
1985
+ }
1986
+ ${exports.CustomerTelephoneNumberFragmentFragmentDoc}`;
1987
+ exports.PaginatedCustomerTelephoneNumberDocument = (0, graphql_tag_1.default) `
1988
+ query PaginatedCustomerTelephoneNumber($filter: CustomerTelephoneNumberFilter, $limit: Int, $page: Int, $sort: [CustomerTelephoneNumberSort!], $customerId: ID!) {
1989
+ paginatedCustomerTelephoneNumbers(
1990
+ filter: $filter
1991
+ limit: $limit
1992
+ page: $page
1993
+ sort: $sort
1994
+ customerId: $customerId
1995
+ ) {
1996
+ edges {
1997
+ cursor
1998
+ node {
1999
+ ...CustomerTelephoneNumberFragment
2000
+ }
2001
+ }
2002
+ pageInfo {
2003
+ currentPage
2004
+ hasNextPage
2005
+ hasPreviousPage
2006
+ totalEdges
2007
+ totalPages
2008
+ }
2009
+ }
2010
+ }
2011
+ ${exports.CustomerTelephoneNumberFragmentFragmentDoc}`;
1745
2012
  exports.InfiniteCustomersDocument = (0, graphql_tag_1.default) `
1746
- query InfiniteCustomers($after: String, $before: String, $filter: CustomerFilter, $first: Int, $last: Int, $sort: [CustomerSort!], $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false) {
2013
+ 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) {
1747
2014
  infiniteCustomers(
1748
2015
  after: $after
1749
2016
  before: $before
@@ -1762,6 +2029,12 @@ exports.InfiniteCustomersDocument = (0, graphql_tag_1.default) `
1762
2029
  telephoneNumbers @include(if: $withTelephoneNumbers) {
1763
2030
  ...CustomerTelephoneNumberFragment
1764
2031
  }
2032
+ tags @include(if: $withTags) {
2033
+ ...TagFragment
2034
+ }
2035
+ emails @include(if: $withEmails) {
2036
+ ...CustomerEmailAddressFragment
2037
+ }
1765
2038
  image @include(if: $withImage) {
1766
2039
  ...FileFields
1767
2040
  }
@@ -1778,9 +2051,11 @@ exports.InfiniteCustomersDocument = (0, graphql_tag_1.default) `
1778
2051
  ${exports.CustomerFragmentFragmentDoc}
1779
2052
  ${exports.CustomerAddressFragmentFragmentDoc}
1780
2053
  ${exports.CustomerTelephoneNumberFragmentFragmentDoc}
2054
+ ${exports.TagFragmentFragmentDoc}
2055
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}
1781
2056
  ${exports.FileFieldsFragmentDoc}`;
1782
2057
  exports.PaginatedCustomersDocument = (0, graphql_tag_1.default) `
1783
- query PaginatedCustomers($filter: CustomerFilter, $limit: Int, $page: Int, $sort: [CustomerSort!], $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false) {
2058
+ 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) {
1784
2059
  paginatedCustomers(filter: $filter, limit: $limit, page: $page, sort: $sort) {
1785
2060
  edges {
1786
2061
  cursor
@@ -1792,6 +2067,12 @@ exports.PaginatedCustomersDocument = (0, graphql_tag_1.default) `
1792
2067
  telephoneNumbers @include(if: $withTelephoneNumbers) {
1793
2068
  ...CustomerTelephoneNumberFragment
1794
2069
  }
2070
+ tags @include(if: $withTags) {
2071
+ ...TagFragment
2072
+ }
2073
+ emails @include(if: $withEmails) {
2074
+ ...CustomerEmailAddressFragment
2075
+ }
1795
2076
  image @include(if: $withImage) {
1796
2077
  ...FileFields
1797
2078
  }
@@ -1809,9 +2090,11 @@ exports.PaginatedCustomersDocument = (0, graphql_tag_1.default) `
1809
2090
  ${exports.CustomerFragmentFragmentDoc}
1810
2091
  ${exports.CustomerAddressFragmentFragmentDoc}
1811
2092
  ${exports.CustomerTelephoneNumberFragmentFragmentDoc}
2093
+ ${exports.TagFragmentFragmentDoc}
2094
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}
1812
2095
  ${exports.FileFieldsFragmentDoc}`;
1813
2096
  exports.CustomerDocument = (0, graphql_tag_1.default) `
1814
- query Customer($id: ID!, $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false) {
2097
+ query Customer($id: ID!, $withTelephoneNumbers: Boolean = false, $withAddresses: Boolean = false, $withImage: Boolean = false, $withTags: Boolean = false, $withEmails: Boolean = false) {
1815
2098
  customer(id: $id) {
1816
2099
  ...CustomerFragment
1817
2100
  addresses @include(if: $withAddresses) {
@@ -1820,6 +2103,12 @@ exports.CustomerDocument = (0, graphql_tag_1.default) `
1820
2103
  telephoneNumbers @include(if: $withTelephoneNumbers) {
1821
2104
  ...CustomerTelephoneNumberFragment
1822
2105
  }
2106
+ tags @include(if: $withTags) {
2107
+ ...TagFragment
2108
+ }
2109
+ emails @include(if: $withEmails) {
2110
+ ...CustomerEmailAddressFragment
2111
+ }
1823
2112
  image @include(if: $withImage) {
1824
2113
  ...FileFields
1825
2114
  }
@@ -1828,7 +2117,23 @@ exports.CustomerDocument = (0, graphql_tag_1.default) `
1828
2117
  ${exports.CustomerFragmentFragmentDoc}
1829
2118
  ${exports.CustomerAddressFragmentFragmentDoc}
1830
2119
  ${exports.CustomerTelephoneNumberFragmentFragmentDoc}
2120
+ ${exports.TagFragmentFragmentDoc}
2121
+ ${exports.CustomerEmailAddressFragmentFragmentDoc}
1831
2122
  ${exports.FileFieldsFragmentDoc}`;
2123
+ exports.CreateCustomerDocument = (0, graphql_tag_1.default) `
2124
+ mutation CreateCustomer($data: CreateCustomerInput!) {
2125
+ createCustomer(data: $data) {
2126
+ ...CustomerFragment
2127
+ }
2128
+ }
2129
+ ${exports.CustomerFragmentFragmentDoc}`;
2130
+ exports.UpdateCustomerDocument = (0, graphql_tag_1.default) `
2131
+ mutation UpdateCustomer($data: UpdateCustomerInput!, $id: ID!) {
2132
+ updateCustomer(data: $data, id: $id) {
2133
+ ...CustomerFragment
2134
+ }
2135
+ }
2136
+ ${exports.CustomerFragmentFragmentDoc}`;
1832
2137
  exports.InitiateFileUploadDocument = (0, graphql_tag_1.default) `
1833
2138
  mutation InitiateFileUpload($data: InitiateFileUploadInput!) {
1834
2139
  initiateFileUpload(data: $data) {
@@ -1933,8 +2238,111 @@ exports.OrderDocument = (0, graphql_tag_1.default) `
1933
2238
  }
1934
2239
  }
1935
2240
  ${exports.OrderFragmentFragmentDoc}`;
2241
+ exports.InfiniteProductReviewsDocument = (0, graphql_tag_1.default) `
2242
+ query InfiniteProductReviews($after: String, $before: String, $filter: ProductReviewFilter, $first: Int, $last: Int, $sort: [ProductReviewSort!], $withCustomer: Boolean = false, $withProduct: Boolean = false) {
2243
+ infiniteProductReviews(
2244
+ after: $after
2245
+ before: $before
2246
+ filter: $filter
2247
+ first: $first
2248
+ last: $last
2249
+ sort: $sort
2250
+ ) {
2251
+ edges {
2252
+ cursor
2253
+ node {
2254
+ ...ProductReviewFragment
2255
+ product @include(if: $withProduct) {
2256
+ ...ProductFragment
2257
+ }
2258
+ customer @include(if: $withCustomer) {
2259
+ ...CustomerFragment
2260
+ }
2261
+ }
2262
+ }
2263
+ pageInfo {
2264
+ endCursor
2265
+ hasNextPage
2266
+ hasPreviousPage
2267
+ startCursor
2268
+ }
2269
+ }
2270
+ }
2271
+ ${exports.ProductReviewFragmentFragmentDoc}
2272
+ ${exports.ProductFragmentFragmentDoc}
2273
+ ${exports.CustomerFragmentFragmentDoc}`;
2274
+ exports.PaginatedProductReviewsDocument = (0, graphql_tag_1.default) `
2275
+ query PaginatedProductReviews($filter: ProductReviewFilter, $limit: Int, $page: Int, $sort: [ProductReviewSort!], $withCustomer: Boolean = false, $withProduct: Boolean = false) {
2276
+ paginatedProductReviews(
2277
+ filter: $filter
2278
+ limit: $limit
2279
+ page: $page
2280
+ sort: $sort
2281
+ ) {
2282
+ edges {
2283
+ cursor
2284
+ node {
2285
+ ...ProductReviewFragment
2286
+ product @include(if: $withProduct) {
2287
+ ...ProductFragment
2288
+ }
2289
+ customer @include(if: $withCustomer) {
2290
+ ...CustomerFragment
2291
+ }
2292
+ }
2293
+ }
2294
+ pageInfo {
2295
+ currentPage
2296
+ hasNextPage
2297
+ hasPreviousPage
2298
+ totalEdges
2299
+ totalPages
2300
+ }
2301
+ }
2302
+ }
2303
+ ${exports.ProductReviewFragmentFragmentDoc}
2304
+ ${exports.ProductFragmentFragmentDoc}
2305
+ ${exports.CustomerFragmentFragmentDoc}`;
2306
+ exports.CreateProductReviewDocument = (0, graphql_tag_1.default) `
2307
+ mutation CreateProductReview($data: CreateProductReviewInput!, $customerId: ID!, $withCustomer: Boolean = false, $withProduct: Boolean = false) {
2308
+ createProductReview(data: $data, customerId: $customerId) {
2309
+ ...ProductReviewFragment
2310
+ product @include(if: $withProduct) {
2311
+ ...ProductFragment
2312
+ }
2313
+ customer @include(if: $withCustomer) {
2314
+ ...CustomerFragment
2315
+ }
2316
+ }
2317
+ }
2318
+ ${exports.ProductReviewFragmentFragmentDoc}
2319
+ ${exports.ProductFragmentFragmentDoc}
2320
+ ${exports.CustomerFragmentFragmentDoc}`;
2321
+ exports.UpdateProductReviewDocument = (0, graphql_tag_1.default) `
2322
+ mutation UpdateProductReview($data: UpdateProductReviewInput!, $id: ID!, $customerId: ID!, $withCustomer: Boolean = false, $withProduct: Boolean = false) {
2323
+ updateProductReview(data: $data, id: $id, customerId: $customerId) {
2324
+ ...ProductReviewFragment
2325
+ product @include(if: $withProduct) {
2326
+ ...ProductFragment
2327
+ }
2328
+ customer @include(if: $withCustomer) {
2329
+ ...CustomerFragment
2330
+ }
2331
+ }
2332
+ }
2333
+ ${exports.ProductReviewFragmentFragmentDoc}
2334
+ ${exports.ProductFragmentFragmentDoc}
2335
+ ${exports.CustomerFragmentFragmentDoc}`;
2336
+ exports.DeleteProductReviewDocument = (0, graphql_tag_1.default) `
2337
+ mutation DeleteProductReview($id: ID!, $customerId: ID!) {
2338
+ deleteProductReview(id: $id, customerId: $customerId) {
2339
+ reason
2340
+ status
2341
+ }
2342
+ }
2343
+ `;
1936
2344
  exports.InfiniteProductsDocument = (0, graphql_tag_1.default) `
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) {
2345
+ 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, $withReviews: Boolean = false) {
1938
2346
  infiniteProducts(
1939
2347
  after: $after
1940
2348
  before: $before
@@ -1968,6 +2376,9 @@ exports.InfiniteProductsDocument = (0, graphql_tag_1.default) `
1968
2376
  sellers @include(if: $withSellers) {
1969
2377
  ...ProductSellerFragment
1970
2378
  }
2379
+ reviews @include(if: $withReviews) {
2380
+ ...ProductReviewFragment
2381
+ }
1971
2382
  }
1972
2383
  }
1973
2384
  pageInfo {
@@ -1983,9 +2394,10 @@ ${exports.CategoryFragmentFragmentDoc}
1983
2394
  ${exports.BrandFragmentFragmentDoc}
1984
2395
  ${exports.ProductVariantFragmentFragmentDoc}
1985
2396
  ${exports.FileFieldsFragmentDoc}
1986
- ${exports.ProductSellerFragmentFragmentDoc}`;
2397
+ ${exports.ProductSellerFragmentFragmentDoc}
2398
+ ${exports.ProductReviewFragmentFragmentDoc}`;
1987
2399
  exports.PaginatedProductsDocument = (0, graphql_tag_1.default) `
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) {
2400
+ 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, $withReviews: Boolean = false) {
1989
2401
  paginatedProducts(filter: $filter, limit: $limit, page: $page, sort: $sort) {
1990
2402
  edges {
1991
2403
  cursor
@@ -2012,6 +2424,9 @@ exports.PaginatedProductsDocument = (0, graphql_tag_1.default) `
2012
2424
  sellers @include(if: $withSellers) {
2013
2425
  ...ProductSellerFragment
2014
2426
  }
2427
+ reviews @include(if: $withReviews) {
2428
+ ...ProductReviewFragment
2429
+ }
2015
2430
  }
2016
2431
  }
2017
2432
  pageInfo {
@@ -2028,9 +2443,10 @@ ${exports.CategoryFragmentFragmentDoc}
2028
2443
  ${exports.BrandFragmentFragmentDoc}
2029
2444
  ${exports.ProductVariantFragmentFragmentDoc}
2030
2445
  ${exports.FileFieldsFragmentDoc}
2031
- ${exports.ProductSellerFragmentFragmentDoc}`;
2446
+ ${exports.ProductSellerFragmentFragmentDoc}
2447
+ ${exports.ProductReviewFragmentFragmentDoc}`;
2032
2448
  exports.ProductDocument = (0, graphql_tag_1.default) `
2033
- query Product($id: ID!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
2449
+ query Product($id: ID!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false, $withReviews: Boolean = false) {
2034
2450
  product(id: $id) {
2035
2451
  ...ProductFragment
2036
2452
  category @include(if: $withCategory) {
@@ -2054,6 +2470,9 @@ exports.ProductDocument = (0, graphql_tag_1.default) `
2054
2470
  sellers @include(if: $withSellers) {
2055
2471
  ...ProductSellerFragment
2056
2472
  }
2473
+ reviews @include(if: $withReviews) {
2474
+ ...ProductReviewFragment
2475
+ }
2057
2476
  }
2058
2477
  }
2059
2478
  ${exports.ProductFragmentFragmentDoc}
@@ -2061,9 +2480,10 @@ ${exports.CategoryFragmentFragmentDoc}
2061
2480
  ${exports.BrandFragmentFragmentDoc}
2062
2481
  ${exports.ProductVariantFragmentFragmentDoc}
2063
2482
  ${exports.FileFieldsFragmentDoc}
2064
- ${exports.ProductSellerFragmentFragmentDoc}`;
2483
+ ${exports.ProductSellerFragmentFragmentDoc}
2484
+ ${exports.ProductReviewFragmentFragmentDoc}`;
2065
2485
  exports.CreateProductDocument = (0, graphql_tag_1.default) `
2066
- mutation CreateProduct($data: CreateProductInput!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false) {
2486
+ mutation CreateProduct($data: CreateProductInput!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false, $withReviews: Boolean = false) {
2067
2487
  createProduct(data: $data) {
2068
2488
  ...ProductFragment
2069
2489
  category @include(if: $withCategory) {
@@ -2087,6 +2507,9 @@ exports.CreateProductDocument = (0, graphql_tag_1.default) `
2087
2507
  sellers @include(if: $withSellers) {
2088
2508
  ...ProductSellerFragment
2089
2509
  }
2510
+ reviews @include(if: $withReviews) {
2511
+ ...ProductReviewFragment
2512
+ }
2090
2513
  }
2091
2514
  }
2092
2515
  ${exports.ProductFragmentFragmentDoc}
@@ -2094,9 +2517,10 @@ ${exports.CategoryFragmentFragmentDoc}
2094
2517
  ${exports.BrandFragmentFragmentDoc}
2095
2518
  ${exports.ProductVariantFragmentFragmentDoc}
2096
2519
  ${exports.FileFieldsFragmentDoc}
2097
- ${exports.ProductSellerFragmentFragmentDoc}`;
2520
+ ${exports.ProductSellerFragmentFragmentDoc}
2521
+ ${exports.ProductReviewFragmentFragmentDoc}`;
2098
2522
  exports.UpdateProductDocument = (0, graphql_tag_1.default) `
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) {
2523
+ mutation UpdateProduct($data: UpdateProductInput!, $id: ID!, $withCategory: Boolean = false, $withBrand: Boolean = false, $withVariant: Boolean = false, $withThumbnail: Boolean = false, $withFiles: Boolean = false, $withSellers: Boolean = false, $withReviews: Boolean = false) {
2100
2524
  updateProduct(data: $data, id: $id) {
2101
2525
  ...ProductFragment
2102
2526
  category @include(if: $withCategory) {
@@ -2120,6 +2544,9 @@ exports.UpdateProductDocument = (0, graphql_tag_1.default) `
2120
2544
  sellers @include(if: $withSellers) {
2121
2545
  ...ProductSellerFragment
2122
2546
  }
2547
+ reviews @include(if: $withReviews) {
2548
+ ...ProductReviewFragment
2549
+ }
2123
2550
  }
2124
2551
  }
2125
2552
  ${exports.ProductFragmentFragmentDoc}
@@ -2127,7 +2554,8 @@ ${exports.CategoryFragmentFragmentDoc}
2127
2554
  ${exports.BrandFragmentFragmentDoc}
2128
2555
  ${exports.ProductVariantFragmentFragmentDoc}
2129
2556
  ${exports.FileFieldsFragmentDoc}
2130
- ${exports.ProductSellerFragmentFragmentDoc}`;
2557
+ ${exports.ProductSellerFragmentFragmentDoc}
2558
+ ${exports.ProductReviewFragmentFragmentDoc}`;
2131
2559
  exports.DeleteProductDocument = (0, graphql_tag_1.default) `
2132
2560
  mutation DeleteProduct($id: ID!) {
2133
2561
  deleteProduct(id: $id) {